1 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
3 * std-operator.def: Remove unbalanced, stray double quote
6 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7 Chris January <chris.january@arm.com>
8 Daniel Everett <daniel.everett@arm.com>
9 Nick Forrington <nick.forrington@arm.com>
10 Richard Bunt <richard.bunt@arm.com>
12 * cp-valprint.c (cp_print_value_fields): Allow an additional level
13 of depth when printing anonymous structs or unions.
14 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
15 Don't print either the top-level value, or the children if the
16 max-depth is exceeded.
17 (ppscm_print_children): When printing the key of a map, allow one
19 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
20 print either the top-level value, or the children if the max-depth
22 (print_children): When printing the key of a map, allow one extra
24 * python/py-value.c (valpy_format_string): Add max_depth keyword.
25 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
26 (user_print_options): Initialise max_depth field.
27 (val_print_scalar_or_string_type_p): New function.
28 (val_print): Check to see if the max depth has been reached.
29 (val_print_check_max_depth): Define new function.
30 (show_print_max_depth): New function.
31 (_initialize_valprint): Add 'print max-depth' option.
32 * valprint.h (struct value_print_options) <max_depth>: New field.
33 (val_print_check_max_depth): Declare new function.
34 * NEWS: Document new feature.
36 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
38 * ada-lang.c (ada_language_defn): Initialise new field.
39 * c-lang.c (c_is_string_type_p): New function.
40 (c_language_defn): Initialise new field.
41 (cplus_language_defn): Initialise new field.
42 (asm_language_defn): Initialise new field.
43 (minimal_language_defn): Initialise new field.
44 * c-lang.h (c_is_string_type_p): Declare new function.
45 * d-lang.c (d_language_defn): Initialise new field.
46 * f-lang.c (f_is_string_type_p): New function.
47 (f_language_defn): Initialise new field.
48 * go-lang.c (go_is_string_type_p): New function.
49 (go_language_defn): Initialise new field.
50 * language.c (default_is_string_type_p): New function.
51 (unknown_language_defn): Initialise new field.
52 (auto_language_defn): Initialise new field.
53 * language.h (struct language_defn) <la_is_string_type_p>: New
55 (default_is_string_type_p): Declare new function.
56 * m2-lang.c (m2_language_defn): Initialise new field.
57 * objc-lang.c (objc_language_defn): Initialise new field.
58 * opencl-lang.c (opencl_language_defn): Initialise new field.
59 * p-lang.c (pascal_is_string_type_p): New function.
60 (pascal_language_defn): Initialise new field.
61 * rust-lang.c (rust_is_string_type_p): New function.
62 (rust_language_defn): Initialise new field.
64 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
66 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
68 * ada-lang.c (ada_language_defn): Initialise new field.
69 * c-lang.c (c_language_defn): Likewise.
70 (cplus_language_defn): Likewise.
71 (asm_language_defn): Likewise.
72 (minimal_language_defn): Likewise.
73 * d-lang.c (d_language_defn): Likewise.
74 * f-lang.c (f_language_defn): Likewise.
75 * go-lang.c (go_language_defn): Likewise.
76 * language.c (unknown_language_defn): Likewise.
77 (auto_language_defn): Likewise.
78 * m2-lang.c (m2_language_defn): Likewise.
79 * objc-lang.c (objc_language_defn): Likewise.
80 * opencl-lang.c (opencl_language_defn): Likewise.
81 * p-lang.c (pascal_language_defn): Likewise.
82 * rust-lang.c (rust_language_defn): Likewise.
84 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
86 * ada-lang.c (ada_is_character_type): Change return type to bool.
87 (ada_is_string_type): Likewise.
88 * ada-lang.h (ada_is_character_type): Update declaration
89 (ada_is_string_type): Likewise.
91 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
93 Support style in 'frame|thread apply'
95 * gdbcmd.h (execute_command_to_string): New term_out parameter.
96 * record.c (record_start, record_stop): Update callers of
97 execute_command_to_string with false.
98 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
99 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
101 (class string_file): New constructor with term_out parameter.
102 Override methods term_out and can_emit_style_escape. New member
104 (class stdio_file): Override can_emit_style_escape.
105 (class tee_file): Override term_out and can_emit_style_escape.
106 * utils.h (can_emit_style_escape): Remove.
107 * utils.c (can_emit_style_escape): Likewise.
108 Update all callers of can_emit_style_escape (SOMESTREAM) to
109 SOMESTREAM->can_emit_style_escape.
110 * source-cache.c (source_cache::get_source_lines): Likewise.
111 * stack.c (frame_apply_command_count): Call execute_command_to_string
112 passing the term_out characteristic of the current gdb_stdout.
113 * thread.c (thr_try_catch_cmd): Likewise.
114 * top.c (execute_command_to_string): pass term_out parameter
115 to construct the string_file for the command output.
116 * ui-file.c (term_cli_styling): New function (most code moved
117 from utils.c can_emit_style_escape).
118 (string_file::string_file, string_file::can_emit_style_escape,
119 stdio_file::can_emit_style_escape, tee_file::term_out,
120 tee_file::can_emit_style_escape): New functions.
122 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
124 * NEWS: Mention the new set|show may-call-functions.
125 * infcall.c (may_call_functions_p): New variable.
126 (show_may_call_functions_p): New function.
127 (call_function_by_hand_dummy): Throws an error if not
129 (_initialize_infcall): Call add_setshow_boolean_cmd for
132 2019-04-25 Keith Seitz <keiths@redhat.com>
135 * cp-support.c (inspect_type): Don't attempt substitutions
136 of symbol with the same name.
138 2019-04-25 Tom Tromey <tromey@adacore.com>
141 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
144 2019-04-25 Tom Tromey <tromey@adacore.com>
146 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
148 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
149 (gdb_xml_parser::parse): Use std::move.
150 * python/python-internal.h (gdbpy_convert_exception): Take a const
152 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
154 * python/py-utils.c (gdbpy_convert_exception): Take a const
156 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
158 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
160 * mi/mi-main.c (mi_print_exception): Take a const reference.
161 * main.c (handle_command_errors): Take a const reference.
162 * linespec.c (parse_linespec): Use std::move.
163 * infcall.c (run_inferior_call): Use std::move.
164 (call_function_by_hand_dummy): Use std::move.
165 * exec.c (try_open_exec_file): Use std::move.
166 * exceptions.h (exception_print, exception_fprintf)
167 (exception_print_same): Update.
168 * exceptions.c (print_exception, exception_print)
169 (exception_fprintf, exception_print_same): Change parameters to
171 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
172 * common/new-op.c: Use std::move.
173 * common/common-exceptions.h (struct gdb_exception): Add move
175 (struct gdb_exception_error, struct gdb_exception_quit, struct
176 gdb_quit_bad_alloc): Change constructor to move constructor.
177 (throw_exception): Change parameter to rvalue reference.
178 * common/common-exceptions.c (throw_exception): Take rvalue
180 * cli/cli-interp.c (safe_execute_command): Use std::move.
181 * breakpoint.c (insert_bp_location, location_to_sals): Use
184 2019-04-25 Tom Tromey <tromey@adacore.com>
186 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
187 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
188 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
189 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
190 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
191 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
192 guile/scm-value.c: Use unpack.
193 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
194 gdbscm_gdb_exception.
195 (gdbscm_throw_gdb_exception): Likewise.
196 (struct gdbscm_gdb_exception): New.
197 (unpack): New function.
198 (gdbscm_wrap): Use unpack.
200 2019-04-25 Tom Tromey <tromey@adacore.com>
202 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
203 (gdb_rl_callback_handler): Use std::move.
204 * common/common-exceptions.h (struct gdb_exception): Add move
206 (throw_exception_sjlj): Change "exception" to const reference.
207 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
208 (throw_exception_sjlj): Change "exception" to const reference.
210 2019-04-25 Tom Tromey <tromey@adacore.com>
212 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
213 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
214 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
216 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
218 * mi/mi-interp.c (mi_interp::exec): Update.
219 * linespec.c (parse_linespec): Update.
220 * infcall.c (run_inferior_call): Update.
221 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
222 * guile/scm-symbol.c (gdbscm_lookup_symbol)
223 (gdbscm_lookup_global_symbol): Update.
224 * guile/scm-param.c (gdbscm_parameter_value): Update.
225 * guile/scm-frame.c (gdbscm_frame_read_register)
226 (gdbscm_frame_read_var): Update.
227 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
228 * exec.c (try_open_exec_file): Update.
229 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
230 (gdb_rl_callback_handler): Update.
231 * common/common-exceptions.h (exception_none): Don't declare.
232 * common/common-exceptions.c (exception_none): Don't define.
233 (struct catcher) <exception>: Update.
234 * cli/cli-interp.c (safe_execute_command): Update.
235 * breakpoint.c (insert_bp_location, location_to_sals): Update.
237 2019-04-25 Ali Tamur <tamur@google.com>
239 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
240 (read_attribute_value): Likewise.
241 (dwarf2_read_addr_index): Update comment.
242 (read_str_index): Add DW_FORM_strx.
243 (dwarf2_string_attr): Likewise.
244 (dwarf2_const_value_attr): Likewise.
245 (dump_die_shallow): Likewise.
246 (dwarf2_fetch_constant_bytes): Likewise.
247 (skip_form_bytes): Likewise.
248 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
250 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
254 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
255 OFFSET. Verify if current mapping contains an ELF header.
256 (linux_find_memory_regions_full): Adjust call to
259 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
260 Kang Li <kanglictf@gmail.com>
264 * dwarf2-frame.c (read_initial_length): Be consistent about using
265 unsigned representation of length.
266 (decode_frame_entry_1): Likewise. Check for wraparound of
267 end pointer as well as buffer overflow.
269 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
271 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
274 2019-04-24 Tom Tromey <tromey@adacore.com>
276 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
278 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
280 * s12z-tdep.c (s12z_unwind_pc): Delete.
281 (s12z_unwind_sp): Delete.
282 (s12z_gdbarch_init): Don't register deleted functions with
285 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
287 * rl78-tdep.c (rl78_unwind_sp): Delete.
288 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
290 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
292 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
293 (xstormy16_unwind_pc): Delete.
294 (xstormy16_dummy_id): Delete.
295 (xstormy16_gdbarch_init): Don't register deleted functions with
298 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
300 * vax-tdep.c (vax_unwind_pc): Delete.
301 (vax_gdbarch_init): Don't register deleted function with gdbarch.
303 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
305 * v850-tdep.c (v850_unwind_sp): Delete.
306 (v850_unwind_pc): Delete.
307 (v850_dummy_id): Delete.
308 (v850_gdbarch_init): Don't register deleted functions with
311 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
313 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
314 (tilegx_unwind_pc): Delete.
315 (tilegx_unwind_dummy_id): Delete.
316 (tilegx_gdbarch_init): Don't register deleted functions with
319 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
321 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
322 (tic6x_dummy_id): Delete.
323 (tic6x_gdbarch_init): Don't register deleted functions with
326 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
328 * sparc-tdep.c (sparc_unwind_pc): Delete.
329 (sparc32_gdbarch_init): Don't register deleted function with
332 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
334 * sh-tdep.c (sh_unwind_sp): Delete.
335 (sh_unwind_pc): Delete.
336 (sh_dummy_id): Delete.
337 (sh_gdbarch_init): Don't register deleted functions with
340 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
342 * score-tdep.c (score_unwind_sp): Delete.
343 (score_unwind_pc): Delete.
344 (score_dummy_id): Delete.
345 (score_gdbarch_init): Don't register deleted functions with
348 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
350 * rx-tdep.c (rx_unwind_pc): Delete.
351 (rx_unwind_sp): Delete.
352 (rx_dummy_id): Delete.
353 (rx_gdbarch_init): Don't register deleted functions with
354 gdbarch. Update comment.
356 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
358 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
359 (rs6000_dummy_id): Delete.
360 (rs6000_gdbarch_init): Don't register deleted functions with
363 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
365 * or1k-tdep.c (or1k_dummy_id): Delete.
366 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
368 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
370 * nios2-tdep.c (nios2_dummy_id): Delete.
371 (nios2_unwind_sp): Delete.
372 (nios2_gdbarch_init): Don't register deleted functions with
375 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
377 * nds32-tdep.c (nds32_dummy_id): Delete.
378 (nds32_unwind_pc): Delete.
379 (nds32_unwind_sp): Delete.
380 (nds32_gdbarch_init): Don't register deleted functions with
383 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
385 * msp430-tdep.c (msp430_unwind_pc): Delete.
386 (msp430_unwind_sp): Delete.
387 (msp430_dummy_id): Delete.
388 (msp430_gdbarch_init): Don't register deleted functions with
391 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
393 * moxie-tdep.c (moxie_unwind_sp): Delete.
394 (moxie_unwind_pc): Delete.
395 (moxie_dummy_id): Delete.
396 (moxie_gdbarch_init): Don't register deleted functions with
399 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
401 * mn10300-tdep.c (mn10300_dummy_id): Delete.
402 (mn10300_unwind_pc): Delete.
403 (mn10300_unwind_sp): Delete.
404 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
406 (mn10300_frame_unwind_init): Don't register deleted functions with
409 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
411 * mep-tdep.c (mep_unwind_pc): Delete.
412 (mep_unwind_sp): Delete.
413 (mep_dummy_id): Delete.
414 (mep_gdbarch_init): Don't register deleted functions with
417 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
419 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
420 (m68hc11_unwind_sp): Delete.
421 (m68hc11_gdbarch_init): Don't register deleted functions with
424 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
426 * m32r-tdep.c (m32r_unwind_sp): Delete.
427 (m32r_unwind_pc): Delete.
428 (m32r_dummy_id): Delete.
429 (m32r_gdbarch_init): Don't register deleted functions with
432 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
434 * m32c-tdep.c (m32c_unwind_pc): Delete.
435 (m32c_unwind_sp): Delete.
436 (m32c_dummy_id): Delete.
437 (m32c_gdbarch_init): Don't register deleted functions with
440 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
442 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
443 (lm32_unwind_pc): Delete.
444 (lm32_dummy_id): Delete.
445 (lm32_gdbarch_init): Don't register deleted functions with
448 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
450 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
451 (iq2000_unwind_pc): Delete.
452 (iq2000_dummy_id): Delete.
453 (iq2000_gdbarch_init): Don't register deleted functions with
456 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
458 * nds32-tdep.c (nds32_type_align): Delete.
459 (nds32_push_dummy_call): Use type_align instead.
461 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
463 * arm-tdep.c (arm_type_align): Only handle vector override case.
464 (arm_push_dummy_call): Use type_align.
465 (arm_gdbarch_init): Register arm_type_align gdbarch function.
467 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
469 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
471 (pass_on_stack): Use type_align.
472 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
475 2019-04-23 Tom Tromey <tromey@adacore.com>
477 * dwarf2read.c (line_header::file_name_at): Remove unused
480 2019-04-23 Tom de Vries <tdevries@suse.de>
483 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
487 2019-03-27 Ali Tamur <tamur@google.com>
489 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
490 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
491 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
492 (dwarf_expr_context::get_addr_index): Likewise
493 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
494 (symbol_needs_eval_context::get_addr_index): Likewise
495 (disassemble_dwarf_expression): Add DW_OP_addrx
496 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
497 (read_cutu_die_from_dwo): Update comment
498 (skip_one_die): Add DW_FORM_addrx
499 (read_attribute_value): Likewise
500 (var_decode_location): Add DW_OP_addrx
501 (dwarf2_const_value_attr): Add DW_FORM_addrx
502 (dump_die_shallow): Likewise
503 (dwarf2_fetch_constant_bytes): Likewise
504 (decode_locdesc): Add DW_OP_addrx
505 (skip_form_bytes): Add DW_FORM_addrx
507 2019-04-22 Ali Tamur <tamur@google.com>
509 * MAINTAINERS (Write After Approval): Add self.
511 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
513 * solib-svr4.c (get_svr4_info): Add pspace parameter.
514 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
515 (open_symbol_file_object): Likewise.
516 (svr4_default_sos): Add info parameter.
517 (svr4_read_so_list): Likewise.
518 (svr4_current_sos_direct): Adjust functions calls to pass down
520 (svr4_current_sos_1): Add info parameter.
521 (svr4_current_sos): Call get_svr4_info, pass info down to
523 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
525 (svr4_in_dynsym_resolve_code): Pass current_program_space to
527 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
529 (probes_table_remove_objfile_probes): Likewise.
530 (register_solib_event_probe): Add info parameter.
531 (solist_update_incremental): Pass info parameter down to
533 (disable_probes_interface): Add info parameter.
534 (svr4_handle_solib_event): Pass current_program_space to
535 get_svr4_info. Adjust disable_probes_interface cleanup.
536 (svr4_create_probe_breakpoints): Add info parameter, pass it
537 down to register_solib_event_probe.
538 (svr4_create_solib_event_breakpoints): Add info parameter,
539 pass it down to svr4_create_probe_breakpoints.
540 (enable_break): Pass info down to
541 svr4_create_solib_event_breakpoints.
542 (svr4_solib_create_inferior_hook): Pass current_program_space to
544 (svr4_clear_solib): Likewise.
546 2019-04-22 Pedro Alves <palves@redhat.com>
548 * solib-svr4.c (svr4_free_objfile_observer): New.
549 (probe_and_action::objfile): New field.
550 (probes_table_htab_remove_objfile_probes)
551 (probes_table_remove_objfile_probes): New functions.
552 (register_solib_event_probe): Add 'objfile' parameter. Store it
553 in the new probe_and_action. Don't store the probe in 'lookup'.
554 (svr4_create_probe_breakpoints): Pass objfile to
555 register_solib_event_probe.
556 (_initialize_svr4_solib): Register a free_objfile observer.
558 2019-04-19 Tom Tromey <tom@tromey.com>
560 * common/queue.h: Remove.
562 2019-04-19 Tom Tromey <tom@tromey.com>
564 * event-loop.c: Don't include "common/queue.h".
566 2019-04-19 Tom Tromey <tom@tromey.com>
568 * remote.c (remote_target): Use delete.
569 * remote-notif.h: Include <list>, not "common/queue.h".
570 (notif_client_p): Remove typedef.
571 (remote_notif_state): Add constructor, destructor, initializer.
572 <notif_queue>: Now a std::list.
573 (remote_notif_state_xfree): Don't declare.
574 * remote-notif.c (remote_notif_process, handle_notification)
575 (remote_notif_state_allocate): Update.
576 (~remote_notif_state): Rename from remote_notif_state_xfree.
578 2019-04-19 Tom Tromey <tom@tromey.com>
580 * symfile.c (reread_symbols): Update.
581 * objfiles.c (objfile_register_static_link)
582 (objfile_lookup_static_link): Update
583 (~objfile) Don't delete static_links.
584 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
586 2019-04-19 Tom Tromey <tom@tromey.com>
588 * type-stack.h (struct type_stack) <insert>: Constify string.
589 * type-stack.c (type_stack::insert): Constify string.
590 * gdbtypes.h (lookup_template_type): Update.
591 (address_space_name_to_int): Update.
592 * gdbtypes.c (address_space_name_to_int): Make space_identifier
594 (lookup_template_type): Make name const.
595 * c-exp.y: Update rules.
596 (lex_one_token, classify_name, classify_inner_name)
597 (c_print_token): Update.
598 * p-exp.y: Update rules.
600 * f-exp.y: Update rules.
602 * d-exp.y: Update rules.
603 (lex_one_token, classify_name, classify_inner_name): Update.
604 * parse.c (write_dollar_variable, copy_name): Return std::string.
605 * parser-defs.h (copy_name): Change return type.
606 * m2-exp.y: Update rules.
608 * go-exp.y (lex_one_token): Update.
610 (classify_unsafe_function, classify_packaged_name)
611 (classify_name, yylex): Update.
613 2019-04-19 Sergei Trofimovich <siarheit@google.com>
615 * configure.ac: add --enable-source-highlight switch.
616 * configure: Regenerate.
617 * top.c (print_gdb_version): plumb --enable-source-highlight
618 status to "show configuration".
620 2019-04-19 Tom Tromey <tromey@adacore.com>
622 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
624 (empty_record, ada_template_to_fixed_record_type_1)
625 (template_to_static_fixed_type)
626 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
627 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
628 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
631 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
634 * source.c (print_source_lines_base): Advance "iter" when a
635 control character is seen.
637 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
639 * inferior.h (struct infcall_suspend_state_deleter):
640 Catch exception in destructor to avoid crash.
642 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
644 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
645 close to the add_com "shell".
647 2019-04-18 Tom Tromey <tromey@adacore.com>
649 * process-stratum-target.h (class process_stratum_target)
650 <stratum>: Add "final".
652 2019-04-17 Tom Tromey <tromey@adacore.com>
654 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
655 against nullptr before use.
657 2019-04-17 Alan Hayward <alan.hayward@arm.com>
659 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
661 2019-04-17 Jim Wilson <jimw@sifive.com>
662 Andrew Burgess <andrew.burgess@embecosm.com>
664 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
665 code read might fail, assume 4-byte breakpoint in that case.
667 2019-04-15 Leszek Swirski <leszeks@google.com>
669 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
670 rather than a hand-rolled POD check when checking for forced MEMORY
673 2019-04-15 Alan Hayward <alan.hayward@arm.com>
675 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
676 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
678 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
679 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
680 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
683 2019-04-15 Alan Hayward <alan.hayward@arm.com>
685 * aarch64-linux-nat.c
686 (aarch64_linux_nat_target::thread_architecture): Add override.
687 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
690 2019-04-15 Alan Hayward <alan.hayward@arm.com>
692 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
694 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
696 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
697 target types of size 96-bits, add some additional comments, and
698 check that the builtin type we found was the correct size.
700 2019-04-12 Eli Zaretskii <eliz@gnu.org>
702 * utils.c (prompt_for_continue): Don't restore the styling at the
703 end, as applied_style has the wrong value. This fixes styling in
704 long lists of file names that are interrupted by the "Continue?"
707 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
709 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
710 * c-lang.c (c_language_defn): Likewise.
711 (cplus_language_defn): Likewise.
712 (asm_language_defn): Likewise.
713 (minimal_language_defn): Likewise.
714 * d-lang.c (d_language_defn): Likewise.
715 * f-lang.c (f_language_defn): Likewise.
716 * go-lang.c (go_language_defn): Likewise.
717 * language.c (unknown_language_defn): Likewise.
718 (auto_language_defn): Likewise.
719 * language.h (struct language_defn): Remove la_magic field.
720 (LANG_MAGIC): Delete.
721 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
722 * objc-lang.c (objc_language_defn): Likewise.
723 * opencl-lang.c (opencl_language_defn): Likewise.
724 * p-lang.c (pascal_language_defn): Likewise.
725 * rust-lang.c (rust_language_defn): Likewise.
727 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
729 * riscv-tdep.c (riscv_type_align): New function.
730 (riscv_type_alignment): Delete.
731 (riscv_arg_location): Use 'type_align'.
732 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
734 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
736 * gdbtypes.c (type_align): A struct with no non-static fields also
739 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
741 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
743 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
745 (riscv_struct_info::analyse): New implementation using new
746 analyse_inner member function.
747 (riscv_struct_info::field_offset): New member function.
748 (riscv_struct_info::m_offsets): New member variable.
749 (riscv_struct_info::analyse_inner): New private member function,
750 takes the old implementation of riscv_struct_info::analyse but
751 extended to track field offsets.
752 (riscv_call_arg_struct): Update the struct folding special cases
753 to handle cases where empty C++ structs, which are non-zero
755 (riscv_arg_location): Initialise the length of each location, a
756 non-zero length now indicates the location is in use.
757 (riscv_push_dummy_call): Allow for the first location having a
758 non-zero offset when setting up arguments.
759 (riscv_return_value): Likewise, but for return values.
761 2019-04-11 Tom Tromey <tromey@adacore.com>
763 * utils.c (internal_vproblem): Make "msg" const.
765 2019-04-11 Alan Hayward <alan.hayward@arm.com>
767 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
768 * trad-frame.c (trad_frame_reset_saved_regs): New function.
769 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
770 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
772 2019-04-10 Kevin Buettner <kevinb@redhat.com>
774 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
776 (fill_gregset): Call amd64_linux_collect_native_gregset instead
777 of amd64_collect_native_gregset.
778 (amd64_linux_nat_target::store_registers): Likewise.
780 2019-04-10 Tom Tromey <tom@tromey.com>
782 * symtab.c (lookup_global_symbol_from_objfile)
783 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
784 * objfiles.h (class separate_debug_iterator): New.
785 (class separate_debug_range): New.
786 (struct objfile) <separate_debug_objfiles>: New method.
787 (objfile_separate_debug_iterate): Don't declare.
788 * objfiles.c (separate_debug_iterator::operator++): Rename from
789 objfile_separate_debug_iterate.
790 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
792 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
795 2019-04-10 Tom Tromey <tom@tromey.com>
797 * symfile.c (reread_symbols): Remove old comment.
798 * objfiles.c (free_all_objfiles): Fix a typo.
800 2019-04-10 Tom Tromey <tom@tromey.com>
802 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
803 * minsyms.c (lookup_minimal_symbol): Use foreach.
804 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
805 (lookup_minimal_symbol_solib_trampoline): Likewise.
806 * symfile.c (reread_symbols): Use foreach.
808 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
809 Tom Tromey <tromey@adacore.com>
812 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
813 (rust_lex_int_test): Change "value" to be LONGEST.
814 (rust_lex_tests): Add test for long integer literal.
816 2019-04-09 Tom Tromey <tromey@adacore.com>
818 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
820 (extended_remote_target::attach): Update.
821 (remote_target::remote_notice_new_inferior): Update.
822 (remote_target::add_current_inferior_and_thread): Update.
823 * inferior.c (exit_inferior_1): Use "false".
824 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
826 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
828 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
831 2019-04-08 Kevin Buettner <kevinb@redhat.com>
833 * python/py-inferior.c (infpy_thread_from_thread_handle):
834 Adjust comments to reflect renaming of thread_from_thread_handle
835 to thread_from_handle. Adjust keywords. Fix type error message.
836 (inferior_object_methods): Add thread_from_handle. Retain
837 thread_from_thread_handle, but mark it as deprecated.
839 2019-04-08 Kevin Buettner <kevinb@redhat.com>
841 * gdbthread.h (find_thread_by_handle): Revise declaration.
842 * thread.c (find_thread_by_handle): Likewise. Adjust
844 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
845 support for buffer objects as handles.
847 2019-04-08 Kevin Buettner <kevinb@redhat.com>
849 * python/py-infthread.c (thpy_thread_handle): New function.
850 (thread_object_methods): Register thpy_thread_handle.
852 2019-04-08 Kevin Buettner <kevinb@redhat.com>
854 * gdbthread.h (thread_to_thread_handle): Declare.
855 * thread.c (gdbtypes.h): Include.
856 (thread_to_thread_handle): New function.
858 * target.h (struct target_ops): Add thread_info_to_thread_handle.
859 (target_thread_info_to_thread_handle): Declare.
860 * target.c (target_thread_info_to_thread_handle): New function.
861 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
862 * target-delegates.c: Regenerate.
864 * linux-thread-db.c (class thread_db_target): Add method
865 thread_info_to_thread_handle.
866 (thread_db_target::thread_info_to_thread_handle): Define.
867 * remote.c (class remote_target): Add new method
868 thread_info_to_thread_handle.
869 (remote_target::thread_info_to_thread_handle): Define.
871 2019-04-08 Pedro Alves <palves@redhat.com>
873 * common/common-exceptions.c (throw_exception): Don't create
874 named object to throw; throw directly.
875 (throw_it): Likewise. Don't initialize gdb_exception::message
876 here, with new; pass FMT and AP to the ctor instead.
877 * common/common-exceptions.h: Include <string>.
878 (gdb_exception::gdb_exception(enum return_reason, enum errors,
879 const char *, va_list)): New ctor. Use std::make_shared.
880 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
882 (gdb_exception_error::gdb_exception_error(enum errors, const char
884 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
886 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
888 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
889 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
892 2019-04-08 Tom Tromey <tom@tromey.com>
894 * valops.c (value_rtti_indirect_type): Replace throw_exception
896 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
898 * thread.c (thr_try_catch_cmd): Replace throw_exception with
900 * target.c (target_translate_tls_address): Replace throw_exception
902 * stack.c (frame_apply_command_count): Replace throw_exception
904 * solib-spu.c (append_ocl_sos): Replace throw_exception with
906 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
908 * rs6000-tdep.c (rs6000_frame_cache)
909 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
910 * remote.c: Replace throw_exception with throw.
911 * record-full.c (record_full_message, record_full_wait_1)
912 (record_full_restore): Replace throw_exception with throw.
914 (get_thread_current_frame_id, record_btrace_start_replaying)
915 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
916 (cmd_record_btrace_start): Replace throw_exception with throw.
917 * parse.c (parse_exp_in_context_1): Replace throw_exception with
919 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
920 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
922 (find_linespec_symbols): Replace throw_exception with throw.
923 * infrun.c (displaced_step_prepare, resume): Replace
924 throw_exception with throw.
925 * infcmd.c (post_create_inferior): Replace throw_exception with
927 * inf-loop.c (inferior_event_handler): Replace throw_exception
929 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
930 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
931 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
932 (get_prev_frame_always, get_frame_pc_if_available)
933 (get_frame_address_in_block_if_available, get_frame_language):
934 Replace throw_exception with throw.
935 * frame-unwind.c (frame_unwind_try_unwinder): Replace
936 throw_exception with throw.
937 * eval.c (fetch_subexp_value, evaluate_var_value)
938 (evaluate_funcall, evaluate_subexp_standard): Replace
939 throw_exception with throw.
940 * dwarf2loc.c (call_site_find_chain)
941 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
942 Replace throw_exception with throw.
943 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
945 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
947 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
948 * completer.c (complete_line_internal): Replace throw_exception
950 * compile/compile-object-run.c (compile_object_run): Replace
951 throw_exception with throw.
952 * cli/cli-script.c (process_next_line): Replace throw_exception
954 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
955 (btrace_enable, btrace_maint_update_pt_packets): Replace
956 throw_exception with throw.
957 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
958 throw_exception with throw.
959 * break-catch-throw.c (re_set_exception_catchpoint): Replace
960 throw_exception with throw.
961 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
962 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
963 * aarch64-tdep.c (aarch64_make_prologue_cache)
964 (aarch64_make_stub_cache): Replace throw_exception with throw.
966 2019-04-08 Tom Tromey <tom@tromey.com>
968 * common/common-exceptions.c (throw_exception): Rename from
969 throw_exception_cxx. Remove old copy. Make argument const.
970 (throw_it): Create and throw exception objects directly.
971 * common/common-exceptions.h (throw_exception): Make argument
973 (struct gdb_exception_error): Add constructor.
974 (struct gdb_exception_quit): Add constructor.
976 2019-04-08 Tom Tromey <tom@tromey.com>
978 * common/common-exceptions.h (exception_rethrow): Don't declare.
979 (TRY_SJLJ): Update comment.
980 (TRY, CATCH, END_CATCH): Remove.
981 * common/common-exceptions.c (exception_rethrow): Remove.
983 2019-04-08 Tom Tromey <tom@tromey.com>
985 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
987 (gdb_exception_error): Rename from
988 gdb_exception_RETURN_MASK_ERROR.
989 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
990 (gdb_quit_bad_alloc): Update.
991 * aarch64-tdep.c: Update.
992 * ada-lang.c: Update.
993 * ada-typeprint.c: Update.
994 * ada-valprint.c: Update.
995 * amd64-tdep.c: Update.
996 * arch-utils.c: Update.
997 * break-catch-throw.c: Update.
998 * breakpoint.c: Update.
1000 * c-varobj.c: Update.
1001 * cli/cli-cmds.c: Update.
1002 * cli/cli-interp.c: Update.
1003 * cli/cli-script.c: Update.
1004 * common/common-exceptions.c: Update.
1005 * common/new-op.c: Update.
1006 * common/selftest.c: Update.
1007 * compile/compile-c-symbols.c: Update.
1008 * compile/compile-cplus-symbols.c: Update.
1009 * compile/compile-object-load.c: Update.
1010 * compile/compile-object-run.c: Update.
1011 * completer.c: Update.
1012 * corelow.c: Update.
1014 * cp-support.c: Update.
1015 * cp-valprint.c: Update.
1016 * darwin-nat.c: Update.
1017 * disasm-selftests.c: Update.
1018 * dtrace-probe.c: Update.
1019 * dwarf-index-cache.c: Update.
1020 * dwarf-index-write.c: Update.
1021 * dwarf2-frame-tailcall.c: Update.
1022 * dwarf2-frame.c: Update.
1023 * dwarf2loc.c: Update.
1024 * dwarf2read.c: Update.
1026 * event-loop.c: Update.
1027 * event-top.c: Update.
1029 * f-valprint.c: Update.
1030 * fbsd-tdep.c: Update.
1031 * frame-unwind.c: Update.
1033 * gdbtypes.c: Update.
1034 * gnu-v3-abi.c: Update.
1035 * guile/guile-internal.h: Update.
1036 * guile/scm-block.c: Update.
1037 * guile/scm-breakpoint.c: Update.
1038 * guile/scm-cmd.c: Update.
1039 * guile/scm-disasm.c: Update.
1040 * guile/scm-frame.c: Update.
1041 * guile/scm-lazy-string.c: Update.
1042 * guile/scm-math.c: Update.
1043 * guile/scm-param.c: Update.
1044 * guile/scm-ports.c: Update.
1045 * guile/scm-pretty-print.c: Update.
1046 * guile/scm-symbol.c: Update.
1047 * guile/scm-symtab.c: Update.
1048 * guile/scm-type.c: Update.
1049 * guile/scm-value.c: Update.
1050 * i386-linux-tdep.c: Update.
1051 * i386-tdep.c: Update.
1052 * inf-loop.c: Update.
1053 * infcall.c: Update.
1057 * language.c: Update.
1058 * linespec.c: Update.
1059 * linux-fork.c: Update.
1060 * linux-nat.c: Update.
1061 * linux-tdep.c: Update.
1062 * linux-thread-db.c: Update.
1064 * mi/mi-cmd-break.c: Update.
1065 * mi/mi-cmd-stack.c: Update.
1066 * mi/mi-interp.c: Update.
1067 * mi/mi-main.c: Update.
1068 * objc-lang.c: Update.
1069 * p-valprint.c: Update.
1071 * ppc-linux-tdep.c: Update.
1072 * printcmd.c: Update.
1073 * python/py-arch.c: Update.
1074 * python/py-breakpoint.c: Update.
1075 * python/py-cmd.c: Update.
1076 * python/py-finishbreakpoint.c: Update.
1077 * python/py-frame.c: Update.
1078 * python/py-framefilter.c: Update.
1079 * python/py-gdb-readline.c: Update.
1080 * python/py-inferior.c: Update.
1081 * python/py-infthread.c: Update.
1082 * python/py-lazy-string.c: Update.
1083 * python/py-linetable.c: Update.
1084 * python/py-objfile.c: Update.
1085 * python/py-param.c: Update.
1086 * python/py-prettyprint.c: Update.
1087 * python/py-progspace.c: Update.
1088 * python/py-record-btrace.c: Update.
1089 * python/py-record.c: Update.
1090 * python/py-symbol.c: Update.
1091 * python/py-type.c: Update.
1092 * python/py-unwind.c: Update.
1093 * python/py-utils.c: Update.
1094 * python/py-value.c: Update.
1095 * python/python.c: Update.
1096 * record-btrace.c: Update.
1097 * record-full.c: Update.
1098 * remote-fileio.c: Update.
1100 * riscv-tdep.c: Update.
1101 * rs6000-aix-tdep.c: Update.
1102 * rs6000-tdep.c: Update.
1103 * rust-exp.y: Update.
1104 * rust-lang.c: Update.
1105 * s390-tdep.c: Update.
1106 * selftest-arch.c: Update.
1107 * solib-dsbt.c: Update.
1108 * solib-frv.c: Update.
1109 * solib-spu.c: Update.
1110 * solib-svr4.c: Update.
1112 * sparc64-linux-tdep.c: Update.
1114 * symfile-mem.c: Update.
1115 * symmisc.c: Update.
1119 * tracefile-tfile.c: Update.
1120 * tui/tui.c: Update.
1121 * typeprint.c: Update.
1122 * unittests/cli-utils-selftests.c: Update.
1123 * unittests/parse-connection-spec-selftests.c: Update.
1125 * valprint.c: Update.
1128 * windows-nat.c: Update.
1129 * x86-linux-nat.c: Update.
1130 * xml-support.c: Update.
1132 2019-04-08 Tom Tromey <tom@tromey.com>
1134 * xml-support.c: Use C++ exception handling.
1135 * x86-linux-nat.c: Use C++ exception handling.
1136 * windows-nat.c: Use C++ exception handling.
1137 * varobj.c: Use C++ exception handling.
1138 * value.c: Use C++ exception handling.
1139 * valprint.c: Use C++ exception handling.
1140 * valops.c: Use C++ exception handling.
1141 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1143 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1144 * typeprint.c: Use C++ exception handling.
1145 * tui/tui.c: Use C++ exception handling.
1146 * tracefile-tfile.c: Use C++ exception handling.
1147 * top.c: Use C++ exception handling.
1148 * thread.c: Use C++ exception handling.
1149 * target.c: Use C++ exception handling.
1150 * symmisc.c: Use C++ exception handling.
1151 * symfile-mem.c: Use C++ exception handling.
1152 * stack.c: Use C++ exception handling.
1153 * sparc64-linux-tdep.c: Use C++ exception handling.
1154 * solib.c: Use C++ exception handling.
1155 * solib-svr4.c: Use C++ exception handling.
1156 * solib-spu.c: Use C++ exception handling.
1157 * solib-frv.c: Use C++ exception handling.
1158 * solib-dsbt.c: Use C++ exception handling.
1159 * selftest-arch.c: Use C++ exception handling.
1160 * s390-tdep.c: Use C++ exception handling.
1161 * rust-lang.c: Use C++ exception handling.
1162 * rust-exp.y: Use C++ exception handling.
1163 * rs6000-tdep.c: Use C++ exception handling.
1164 * rs6000-aix-tdep.c: Use C++ exception handling.
1165 * riscv-tdep.c: Use C++ exception handling.
1166 * remote.c: Use C++ exception handling.
1167 * remote-fileio.c: Use C++ exception handling.
1168 * record-full.c: Use C++ exception handling.
1169 * record-btrace.c: Use C++ exception handling.
1170 * python/python.c: Use C++ exception handling.
1171 * python/py-value.c: Use C++ exception handling.
1172 * python/py-utils.c: Use C++ exception handling.
1173 * python/py-unwind.c: Use C++ exception handling.
1174 * python/py-type.c: Use C++ exception handling.
1175 * python/py-symbol.c: Use C++ exception handling.
1176 * python/py-record.c: Use C++ exception handling.
1177 * python/py-record-btrace.c: Use C++ exception handling.
1178 * python/py-progspace.c: Use C++ exception handling.
1179 * python/py-prettyprint.c: Use C++ exception handling.
1180 * python/py-param.c: Use C++ exception handling.
1181 * python/py-objfile.c: Use C++ exception handling.
1182 * python/py-linetable.c: Use C++ exception handling.
1183 * python/py-lazy-string.c: Use C++ exception handling.
1184 * python/py-infthread.c: Use C++ exception handling.
1185 * python/py-inferior.c: Use C++ exception handling.
1186 * python/py-gdb-readline.c: Use C++ exception handling.
1187 * python/py-framefilter.c: Use C++ exception handling.
1188 * python/py-frame.c: Use C++ exception handling.
1189 * python/py-finishbreakpoint.c: Use C++ exception handling.
1190 * python/py-cmd.c: Use C++ exception handling.
1191 * python/py-breakpoint.c: Use C++ exception handling.
1192 * python/py-arch.c: Use C++ exception handling.
1193 * printcmd.c: Use C++ exception handling.
1194 * ppc-linux-tdep.c: Use C++ exception handling.
1195 * parse.c: Use C++ exception handling.
1196 * p-valprint.c: Use C++ exception handling.
1197 * objc-lang.c: Use C++ exception handling.
1198 * mi/mi-main.c: Use C++ exception handling.
1199 * mi/mi-interp.c: Use C++ exception handling.
1200 * mi/mi-cmd-stack.c: Use C++ exception handling.
1201 * mi/mi-cmd-break.c: Use C++ exception handling.
1202 * main.c: Use C++ exception handling.
1203 * linux-thread-db.c: Use C++ exception handling.
1204 * linux-tdep.c: Use C++ exception handling.
1205 * linux-nat.c: Use C++ exception handling.
1206 * linux-fork.c: Use C++ exception handling.
1207 * linespec.c: Use C++ exception handling.
1208 * language.c: Use C++ exception handling.
1209 * jit.c: Use C++ exception handling.
1210 * infrun.c: Use C++ exception handling.
1211 * infcmd.c: Use C++ exception handling.
1212 * infcall.c: Use C++ exception handling.
1213 * inf-loop.c: Use C++ exception handling.
1214 * i386-tdep.c: Use C++ exception handling.
1215 * i386-linux-tdep.c: Use C++ exception handling.
1216 * guile/scm-value.c: Use C++ exception handling.
1217 * guile/scm-type.c: Use C++ exception handling.
1218 * guile/scm-symtab.c: Use C++ exception handling.
1219 * guile/scm-symbol.c: Use C++ exception handling.
1220 * guile/scm-pretty-print.c: Use C++ exception handling.
1221 * guile/scm-ports.c: Use C++ exception handling.
1222 * guile/scm-param.c: Use C++ exception handling.
1223 * guile/scm-math.c: Use C++ exception handling.
1224 * guile/scm-lazy-string.c: Use C++ exception handling.
1225 * guile/scm-frame.c: Use C++ exception handling.
1226 * guile/scm-disasm.c: Use C++ exception handling.
1227 * guile/scm-cmd.c: Use C++ exception handling.
1228 * guile/scm-breakpoint.c: Use C++ exception handling.
1229 * guile/scm-block.c: Use C++ exception handling.
1230 * guile/guile-internal.h: Use C++ exception handling.
1231 * gnu-v3-abi.c: Use C++ exception handling.
1232 * gdbtypes.c: Use C++ exception handling.
1233 * frame.c: Use C++ exception handling.
1234 * frame-unwind.c: Use C++ exception handling.
1235 * fbsd-tdep.c: Use C++ exception handling.
1236 * f-valprint.c: Use C++ exception handling.
1237 * exec.c: Use C++ exception handling.
1238 * event-top.c: Use C++ exception handling.
1239 * event-loop.c: Use C++ exception handling.
1240 * eval.c: Use C++ exception handling.
1241 * dwarf2read.c: Use C++ exception handling.
1242 * dwarf2loc.c: Use C++ exception handling.
1243 * dwarf2-frame.c: Use C++ exception handling.
1244 * dwarf2-frame-tailcall.c: Use C++ exception handling.
1245 * dwarf-index-write.c: Use C++ exception handling.
1246 * dwarf-index-cache.c: Use C++ exception handling.
1247 * dtrace-probe.c: Use C++ exception handling.
1248 * disasm-selftests.c: Use C++ exception handling.
1249 * darwin-nat.c: Use C++ exception handling.
1250 * cp-valprint.c: Use C++ exception handling.
1251 * cp-support.c: Use C++ exception handling.
1252 * cp-abi.c: Use C++ exception handling.
1253 * corelow.c: Use C++ exception handling.
1254 * completer.c: Use C++ exception handling.
1255 * compile/compile-object-run.c: Use C++ exception handling.
1256 * compile/compile-object-load.c: Use C++ exception handling.
1257 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1258 * compile/compile-c-symbols.c: Use C++ exception handling.
1259 * common/selftest.c: Use C++ exception handling.
1260 * common/new-op.c: Use C++ exception handling.
1261 * cli/cli-script.c: Use C++ exception handling.
1262 * cli/cli-interp.c: Use C++ exception handling.
1263 * cli/cli-cmds.c: Use C++ exception handling.
1264 * c-varobj.c: Use C++ exception handling.
1265 * btrace.c: Use C++ exception handling.
1266 * breakpoint.c: Use C++ exception handling.
1267 * break-catch-throw.c: Use C++ exception handling.
1268 * arch-utils.c: Use C++ exception handling.
1269 * amd64-tdep.c: Use C++ exception handling.
1270 * ada-valprint.c: Use C++ exception handling.
1271 * ada-typeprint.c: Use C++ exception handling.
1272 * ada-lang.c: Use C++ exception handling.
1273 * aarch64-tdep.c: Use C++ exception handling.
1275 2019-04-08 Tom Tromey <tom@tromey.com>
1277 * xml-support.c (gdb_xml_parser::parse): Update.
1278 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1279 * value.c (show_convenience): Update.
1280 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
1281 (test_parse_flags_qcs): Update.
1282 * thread.c (thr_try_catch_cmd): Update.
1283 * target.c (target_translate_tls_address): Update.
1284 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1285 (info_frame_command_core, frame_apply_command_count): Update.
1286 * rust-exp.y (rust_lex_exception_test): Update.
1287 * riscv-tdep.c (riscv_print_one_register_info): Update.
1288 * remote.c (remote_target::enable_btrace): Update.
1289 * record-btrace.c (record_btrace_enable_warn): Update.
1290 * python/py-utils.c (gdbpy_convert_exception): Update.
1291 * printcmd.c (do_one_display, print_variable_and_value): Update.
1292 * mi/mi-main.c (mi_print_exception): Update.
1293 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
1294 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1295 * linux-nat.c (linux_nat_target::attach): Update.
1296 * linux-fork.c (class scoped_switch_fork_info): Update.
1297 * infrun.c (displaced_step_prepare): Update.
1298 * infcall.c (call_function_by_hand_dummy): Update.
1299 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
1300 * gnu-v3-abi.c (print_one_vtable): Update.
1301 * frame.c (get_prev_frame_always): Update.
1302 * f-valprint.c (info_common_command_for_block): Update.
1303 * exec.c (try_open_exec_file): Update.
1304 * exceptions.c (print_exception, exception_print)
1305 (exception_fprintf, exception_print_same): Update.
1306 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
1307 * dwarf-index-cache.c (index_cache::store)
1308 (index_cache::lookup_gdb_index): Update.
1309 * darwin-nat.c (maybe_cache_shell): Update.
1310 * cp-valprint.c (cp_print_value_fields): Update.
1311 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
1312 (gcc_cplus_symbol_address): Update.
1313 * compile/compile-c-symbols.c (gcc_convert_symbol)
1314 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
1315 * common/selftest.c: Update.
1316 * common/common-exceptions.h (struct gdb_exception) <message>: Now
1318 (exception_try_scope_entry, exception_try_scope_exit): Don't
1320 (struct exception_try_scope): Remove.
1321 (TRY): Don't use exception_try_scope.
1322 (struct gdb_exception): Add constructor, operator=.
1324 (struct gdb_exception_RETURN_MASK_ALL)
1325 (struct gdb_exception_RETURN_MASK_ERROR)
1326 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
1327 (struct gdb_quit_bad_alloc): Update.
1328 * common/common-exceptions.c (exception_none): Change
1330 (struct catcher) <state, exception>: Initialize inline.
1331 <prev>: Remove member.
1332 (current_catcher): Remove.
1333 (catchers): New global.
1334 (exceptions_state_mc_init): Simplify.
1335 (catcher_pop): Remove.
1336 (exceptions_state_mc, exceptions_state_mc_catch): Update.
1337 (try_scope_depth, exception_try_scope_entry)
1338 (exception_try_scope_exit): Remove.
1339 (throw_exception_sjlj): Update.
1340 (exception_messages, exception_messages_size): Remove.
1341 (throw_it): Simplify.
1342 (gdb_exception_sliced_copy): Remove.
1343 (throw_exception_cxx): Update.
1344 * cli/cli-script.c (script_from_file): Update.
1345 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
1347 * ada-valprint.c (ada_val_print): Update.
1348 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
1349 (create_excep_cond_exprs): Update.
1351 2019-04-08 Tom Tromey <tom@tromey.com>
1353 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
1354 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
1355 (TRY, CATCH, END_CATCH): Remove some definitions.
1356 * common/common-exceptions.c: Don't use GDB_XCPT.
1357 (catcher_list_size): Remove.
1358 (throw_exception, throw_it): Simplify.
1360 2019-04-05 Tom Tromey <tom@tromey.com>
1362 Revert the header-sorting patch.
1363 * ft32-tdep.c: Revert.
1364 * frv-tdep.c: Revert.
1365 * frv-linux-tdep.c: Revert.
1367 * frame-unwind.c: Revert.
1368 * frame-base.c: Revert.
1369 * fork-child.c: Revert.
1370 * findvar.c: Revert.
1371 * findcmd.c: Revert.
1372 * filesystem.c: Revert.
1373 * filename-seen-cache.h: Revert.
1374 * filename-seen-cache.c: Revert.
1375 * fbsd-tdep.c: Revert.
1376 * fbsd-nat.h: Revert.
1377 * fbsd-nat.c: Revert.
1378 * f-valprint.c: Revert.
1379 * f-typeprint.c: Revert.
1381 * extension.h: Revert.
1382 * extension.c: Revert.
1383 * extension-priv.h: Revert.
1384 * expprint.c: Revert.
1387 * exceptions.c: Revert.
1388 * event-top.c: Revert.
1389 * event-loop.c: Revert.
1391 * elfread.c: Revert.
1392 * dwarf2read.h: Revert.
1393 * dwarf2read.c: Revert.
1394 * dwarf2loc.c: Revert.
1395 * dwarf2expr.h: Revert.
1396 * dwarf2expr.c: Revert.
1397 * dwarf2-frame.c: Revert.
1398 * dwarf2-frame-tailcall.c: Revert.
1399 * dwarf-index-write.h: Revert.
1400 * dwarf-index-write.c: Revert.
1401 * dwarf-index-common.c: Revert.
1402 * dwarf-index-cache.h: Revert.
1403 * dwarf-index-cache.c: Revert.
1404 * dummy-frame.c: Revert.
1405 * dtrace-probe.c: Revert.
1408 * disasm-selftests.c: Revert.
1409 * dictionary.c: Revert.
1410 * dicos-tdep.c: Revert.
1411 * demangle.c: Revert.
1414 * darwin-nat.h: Revert.
1415 * darwin-nat.c: Revert.
1416 * darwin-nat-info.c: Revert.
1417 * d-valprint.c: Revert.
1418 * d-namespace.c: Revert.
1421 * csky-tdep.c: Revert.
1422 * csky-linux-tdep.c: Revert.
1423 * cris-tdep.c: Revert.
1424 * cris-linux-tdep.c: Revert.
1425 * cp-valprint.c: Revert.
1426 * cp-support.c: Revert.
1427 * cp-namespace.c: Revert.
1429 * corelow.c: Revert.
1430 * corefile.c: Revert.
1431 * continuations.c: Revert.
1432 * completer.h: Revert.
1433 * completer.c: Revert.
1434 * complaints.c: Revert.
1435 * coffread.c: Revert.
1436 * coff-pe-read.c: Revert.
1437 * cli-out.h: Revert.
1438 * cli-out.c: Revert.
1439 * charset.c: Revert.
1440 * c-varobj.c: Revert.
1441 * c-valprint.c: Revert.
1442 * c-typeprint.c: Revert.
1444 * buildsym.c: Revert.
1445 * buildsym-legacy.c: Revert.
1446 * build-id.h: Revert.
1447 * build-id.c: Revert.
1449 * bsd-uthread.c: Revert.
1450 * breakpoint.h: Revert.
1451 * breakpoint.c: Revert.
1452 * break-catch-throw.c: Revert.
1453 * break-catch-syscall.c: Revert.
1454 * break-catch-sig.c: Revert.
1455 * blockframe.c: Revert.
1457 * bfin-tdep.c: Revert.
1458 * bfin-linux-tdep.c: Revert.
1459 * bfd-target.c: Revert.
1461 * ax-general.c: Revert.
1464 * avr-tdep.c: Revert.
1466 * auto-load.c: Revert.
1467 * arm-wince-tdep.c: Revert.
1468 * arm-tdep.c: Revert.
1469 * arm-symbian-tdep.c: Revert.
1470 * arm-pikeos-tdep.c: Revert.
1471 * arm-obsd-tdep.c: Revert.
1472 * arm-nbsd-tdep.c: Revert.
1473 * arm-nbsd-nat.c: Revert.
1474 * arm-linux-tdep.c: Revert.
1475 * arm-linux-nat.c: Revert.
1476 * arm-fbsd-tdep.c: Revert.
1477 * arm-fbsd-nat.c: Revert.
1478 * arm-bsd-tdep.c: Revert.
1479 * arch-utils.c: Revert.
1480 * arc-tdep.c: Revert.
1481 * arc-newlib-tdep.c: Revert.
1482 * annotate.h: Revert.
1483 * annotate.c: Revert.
1484 * amd64-windows-tdep.c: Revert.
1485 * amd64-windows-nat.c: Revert.
1486 * amd64-tdep.c: Revert.
1487 * amd64-sol2-tdep.c: Revert.
1488 * amd64-obsd-tdep.c: Revert.
1489 * amd64-obsd-nat.c: Revert.
1490 * amd64-nbsd-tdep.c: Revert.
1491 * amd64-nbsd-nat.c: Revert.
1492 * amd64-nat.c: Revert.
1493 * amd64-linux-tdep.c: Revert.
1494 * amd64-linux-nat.c: Revert.
1495 * amd64-fbsd-tdep.c: Revert.
1496 * amd64-fbsd-nat.c: Revert.
1497 * amd64-dicos-tdep.c: Revert.
1498 * amd64-darwin-tdep.c: Revert.
1499 * amd64-bsd-nat.c: Revert.
1500 * alpha-tdep.c: Revert.
1501 * alpha-obsd-tdep.c: Revert.
1502 * alpha-nbsd-tdep.c: Revert.
1503 * alpha-mdebug-tdep.c: Revert.
1504 * alpha-linux-tdep.c: Revert.
1505 * alpha-linux-nat.c: Revert.
1506 * alpha-bsd-tdep.c: Revert.
1507 * alpha-bsd-nat.c: Revert.
1508 * aix-thread.c: Revert.
1510 * addrmap.c: Revert.
1511 * ada-varobj.c: Revert.
1512 * ada-valprint.c: Revert.
1513 * ada-typeprint.c: Revert.
1514 * ada-tasks.c: Revert.
1515 * ada-lang.c: Revert.
1516 * aarch64-tdep.c: Revert.
1517 * aarch64-ravenscar-thread.c: Revert.
1518 * aarch64-newlib-tdep.c: Revert.
1519 * aarch64-linux-tdep.c: Revert.
1520 * aarch64-linux-nat.c: Revert.
1521 * aarch64-fbsd-tdep.c: Revert.
1522 * aarch64-fbsd-nat.c: Revert.
1523 * aarch32-linux-nat.c: Revert.
1525 2019-04-05 Tom Tromey <tom@tromey.com>
1527 * ft32-tdep.c: Sort headers.
1528 * frv-tdep.c: Sort headers.
1529 * frv-linux-tdep.c: Sort headers.
1530 * frame.c: Sort headers.
1531 * frame-unwind.c: Sort headers.
1532 * frame-base.c: Sort headers.
1533 * fork-child.c: Sort headers.
1534 * findvar.c: Sort headers.
1535 * findcmd.c: Sort headers.
1536 * filesystem.c: Sort headers.
1537 * filename-seen-cache.h: Sort headers.
1538 * filename-seen-cache.c: Sort headers.
1539 * fbsd-tdep.c: Sort headers.
1540 * fbsd-nat.h: Sort headers.
1541 * fbsd-nat.c: Sort headers.
1542 * f-valprint.c: Sort headers.
1543 * f-typeprint.c: Sort headers.
1544 * f-lang.c: Sort headers.
1545 * extension.h: Sort headers.
1546 * extension.c: Sort headers.
1547 * extension-priv.h: Sort headers.
1548 * expprint.c: Sort headers.
1549 * exec.h: Sort headers.
1550 * exec.c: Sort headers.
1551 * exceptions.c: Sort headers.
1552 * event-top.c: Sort headers.
1553 * event-loop.c: Sort headers.
1554 * eval.c: Sort headers.
1555 * elfread.c: Sort headers.
1556 * dwarf2read.h: Sort headers.
1557 * dwarf2read.c: Sort headers.
1558 * dwarf2loc.c: Sort headers.
1559 * dwarf2expr.h: Sort headers.
1560 * dwarf2expr.c: Sort headers.
1561 * dwarf2-frame.c: Sort headers.
1562 * dwarf2-frame-tailcall.c: Sort headers.
1563 * dwarf-index-write.h: Sort headers.
1564 * dwarf-index-write.c: Sort headers.
1565 * dwarf-index-common.c: Sort headers.
1566 * dwarf-index-cache.h: Sort headers.
1567 * dwarf-index-cache.c: Sort headers.
1568 * dummy-frame.c: Sort headers.
1569 * dtrace-probe.c: Sort headers.
1570 * disasm.h: Sort headers.
1571 * disasm.c: Sort headers.
1572 * disasm-selftests.c: Sort headers.
1573 * dictionary.c: Sort headers.
1574 * dicos-tdep.c: Sort headers.
1575 * demangle.c: Sort headers.
1576 * dcache.h: Sort headers.
1577 * dcache.c: Sort headers.
1578 * darwin-nat.h: Sort headers.
1579 * darwin-nat.c: Sort headers.
1580 * darwin-nat-info.c: Sort headers.
1581 * d-valprint.c: Sort headers.
1582 * d-namespace.c: Sort headers.
1583 * d-lang.c: Sort headers.
1584 * ctf.c: Sort headers.
1585 * csky-tdep.c: Sort headers.
1586 * csky-linux-tdep.c: Sort headers.
1587 * cris-tdep.c: Sort headers.
1588 * cris-linux-tdep.c: Sort headers.
1589 * cp-valprint.c: Sort headers.
1590 * cp-support.c: Sort headers.
1591 * cp-namespace.c: Sort headers.
1592 * cp-abi.c: Sort headers.
1593 * corelow.c: Sort headers.
1594 * corefile.c: Sort headers.
1595 * continuations.c: Sort headers.
1596 * completer.h: Sort headers.
1597 * completer.c: Sort headers.
1598 * complaints.c: Sort headers.
1599 * coffread.c: Sort headers.
1600 * coff-pe-read.c: Sort headers.
1601 * cli-out.h: Sort headers.
1602 * cli-out.c: Sort headers.
1603 * charset.c: Sort headers.
1604 * c-varobj.c: Sort headers.
1605 * c-valprint.c: Sort headers.
1606 * c-typeprint.c: Sort headers.
1607 * c-lang.c: Sort headers.
1608 * buildsym.c: Sort headers.
1609 * buildsym-legacy.c: Sort headers.
1610 * build-id.h: Sort headers.
1611 * build-id.c: Sort headers.
1612 * btrace.c: Sort headers.
1613 * bsd-uthread.c: Sort headers.
1614 * breakpoint.h: Sort headers.
1615 * breakpoint.c: Sort headers.
1616 * break-catch-throw.c: Sort headers.
1617 * break-catch-syscall.c: Sort headers.
1618 * break-catch-sig.c: Sort headers.
1619 * blockframe.c: Sort headers.
1620 * block.c: Sort headers.
1621 * bfin-tdep.c: Sort headers.
1622 * bfin-linux-tdep.c: Sort headers.
1623 * bfd-target.c: Sort headers.
1624 * bcache.c: Sort headers.
1625 * ax-general.c: Sort headers.
1626 * ax-gdb.h: Sort headers.
1627 * ax-gdb.c: Sort headers.
1628 * avr-tdep.c: Sort headers.
1629 * auxv.c: Sort headers.
1630 * auto-load.c: Sort headers.
1631 * arm-wince-tdep.c: Sort headers.
1632 * arm-tdep.c: Sort headers.
1633 * arm-symbian-tdep.c: Sort headers.
1634 * arm-pikeos-tdep.c: Sort headers.
1635 * arm-obsd-tdep.c: Sort headers.
1636 * arm-nbsd-tdep.c: Sort headers.
1637 * arm-nbsd-nat.c: Sort headers.
1638 * arm-linux-tdep.c: Sort headers.
1639 * arm-linux-nat.c: Sort headers.
1640 * arm-fbsd-tdep.c: Sort headers.
1641 * arm-fbsd-nat.c: Sort headers.
1642 * arm-bsd-tdep.c: Sort headers.
1643 * arch-utils.c: Sort headers.
1644 * arc-tdep.c: Sort headers.
1645 * arc-newlib-tdep.c: Sort headers.
1646 * annotate.h: Sort headers.
1647 * annotate.c: Sort headers.
1648 * amd64-windows-tdep.c: Sort headers.
1649 * amd64-windows-nat.c: Sort headers.
1650 * amd64-tdep.c: Sort headers.
1651 * amd64-sol2-tdep.c: Sort headers.
1652 * amd64-obsd-tdep.c: Sort headers.
1653 * amd64-obsd-nat.c: Sort headers.
1654 * amd64-nbsd-tdep.c: Sort headers.
1655 * amd64-nbsd-nat.c: Sort headers.
1656 * amd64-nat.c: Sort headers.
1657 * amd64-linux-tdep.c: Sort headers.
1658 * amd64-linux-nat.c: Sort headers.
1659 * amd64-fbsd-tdep.c: Sort headers.
1660 * amd64-fbsd-nat.c: Sort headers.
1661 * amd64-dicos-tdep.c: Sort headers.
1662 * amd64-darwin-tdep.c: Sort headers.
1663 * amd64-bsd-nat.c: Sort headers.
1664 * alpha-tdep.c: Sort headers.
1665 * alpha-obsd-tdep.c: Sort headers.
1666 * alpha-nbsd-tdep.c: Sort headers.
1667 * alpha-mdebug-tdep.c: Sort headers.
1668 * alpha-linux-tdep.c: Sort headers.
1669 * alpha-linux-nat.c: Sort headers.
1670 * alpha-bsd-tdep.c: Sort headers.
1671 * alpha-bsd-nat.c: Sort headers.
1672 * aix-thread.c: Sort headers.
1673 * agent.c: Sort headers.
1674 * addrmap.c: Sort headers.
1675 * ada-varobj.c: Sort headers.
1676 * ada-valprint.c: Sort headers.
1677 * ada-typeprint.c: Sort headers.
1678 * ada-tasks.c: Sort headers.
1679 * ada-lang.c: Sort headers.
1680 * aarch64-tdep.c: Sort headers.
1681 * aarch64-ravenscar-thread.c: Sort headers.
1682 * aarch64-newlib-tdep.c: Sort headers.
1683 * aarch64-linux-tdep.c: Sort headers.
1684 * aarch64-linux-nat.c: Sort headers.
1685 * aarch64-fbsd-tdep.c: Sort headers.
1686 * aarch64-fbsd-nat.c: Sort headers.
1687 * aarch32-linux-nat.c: Sort headers.
1689 2019-04-04 Tom Tromey <tom@tromey.com>
1691 * varobj.c (varobj_create): Update.
1692 * rust-exp.y (struct rust_parser) <update_innermost_block,
1693 lookup_symbol>: New methods.
1694 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
1696 (rust_parser::rust_lookup_type)
1697 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1698 * printcmd.c (display_command, do_one_display): Update.
1699 * parser-defs.h (struct parser_state) <parser_state>: Add
1700 "tracker" parameter.
1701 (block_tracker): New member.
1702 (class innermost_block_tracker) <innermost_block_tracker>: Add
1704 <reset>: Remove method.
1705 (innermost_block): Don't declare.
1706 (null_post_parser): Update.
1707 * parse.c (innermost_block): Remove global.
1708 (write_dollar_variable): Update.
1709 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
1710 Remove "tracker_types" parameter.
1711 (parse_expression): Add "tracker" parameter.
1712 (parse_expression_for_completion): Update.
1713 (null_post_parser): Add "tracker" parameter.
1714 * p-exp.y: Update rules.
1715 * m2-exp.y: Update rules.
1716 * language.h (struct language_defn) <la_post_parser>: Add
1717 "tracker" parameter.
1718 * go-exp.y: Update rules.
1719 * f-exp.y: Update rules.
1720 * expression.h (parse_expression, parse_exp_1): Add "tracker"
1722 * d-exp.y: Update rules.
1723 * c-exp.y: Update rules.
1724 * breakpoint.c (set_breakpoint_condition): Create an
1725 innermost_block_tracker.
1726 (watch_command_1): Likewise.
1727 * ada-lang.c (resolve): Add "tracker" parameter.
1728 (resolve_subexp): Likewise.
1729 * ada-exp.y (write_var_from_sym): Update.
1731 2019-04-04 Tom Tromey <tom@tromey.com>
1733 * type-stack.h: New file.
1734 * type-stack.c: New file.
1735 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1737 (insert_into_type_stack, insert_type, push_type, push_type_int)
1738 (insert_type_address_space, pop_type, pop_type_int)
1739 (pop_typelist, pop_type_stack, append_type_stack)
1740 (push_type_stack, get_type_stack, push_typelist)
1741 (follow_type_instance_flags, follow_types): Don't declare.
1742 * parse.c (type_stack): Remove global.
1743 (parse_exp_in_context): Update.
1744 (insert_into_type_stack, insert_type, push_type, push_type_int)
1745 (insert_type_address_space, pop_type, pop_type_int)
1746 (pop_typelist, pop_type_stack, append_type_stack)
1747 (push_type_stack, get_type_stack, push_typelist)
1748 (follow_type_instance_flags, follow_types): Remove (moved to
1750 * f-exp.y (type_stack): New global.
1752 (push_kind_type, f_parse): Update.
1753 * d-exp.y (type_stack): New global.
1756 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1758 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1759 (HFILES_NO_SRCDIR): Add type-stack.h.
1761 2019-04-04 Tom Tromey <tom@tromey.com>
1763 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1764 (rust_parser::convert_ast_to_expression, rust_parse)
1765 (rust_lex_test_completion, rust_lex_tests): Update.
1766 * parser-defs.h (struct expr_completion_state): New.
1767 (struct parser_state) <parser_state>: Add completion parameter.
1768 <mark_struct_expression, mark_completion_tag>: New methods.
1769 <parse_completion, m_completion_state>: New members.
1770 (prefixify_expression, null_post_parser): Update.
1771 (mark_struct_expression, mark_completion_tag): Don't declare.
1772 * parse.c (parse_completion, expout_last_struct)
1773 (expout_tag_completion_type, expout_completion_name): Remove
1775 (parser_state::mark_struct_expression)
1776 (parser_state::mark_completion_tag): Now methods.
1777 (prefixify_expression): Add last_struct parameter.
1778 (prefixify_subexp): Likewise.
1779 (parse_exp_1): Update.
1780 (parse_exp_in_context): Add cstate parameter. Update.
1781 (parse_expression_for_completion): Create an
1782 expr_completion_state.
1783 (null_post_parser): Add "completion" parameter.
1784 * p-exp.y: Update rules.
1786 * language.h (struct language_defn) <la_post_parser>: Add
1787 "completing" parameter.
1788 * go-exp.y: Update rules.
1789 (lex_one_token): Update.
1790 * expression.h (parse_completion): Don't declare.
1791 * d-exp.y: Update rules.
1792 (lex_one_token): Update rules.
1793 * c-exp.y: Update rules.
1794 (lex_one_token): Update.
1795 * ada-lang.c (resolve): Add "parse_completion" parameter.
1796 (resolve_subexp): Likewise.
1797 (ada_resolve_function): Likewise.
1799 2019-04-04 Tom Tromey <tom@tromey.com>
1801 * parser-defs.h (struct parser_state) <start_arglist,
1802 end_arglist>: New methods.
1803 <arglist_len, m_funcall_chain>: New members.
1804 (arglist_len, start_arglist, end_arglist): Don't declare.
1805 * parse.c (arglist_len, funcall_chain): Remove global.
1806 (start_arglist, end_arglist): Remove functions.
1807 (parse_exp_in_context): Update.
1808 * p-exp.y: Update rules.
1809 * m2-exp.y: Update rules.
1810 * go-exp.y: Update rules.
1811 * f-exp.y: Update rules.
1812 * d-exp.y: Update rules.
1813 * c-exp.y: Update rules.
1815 2019-04-04 Tom Tromey <tom@tromey.com>
1817 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1818 lex_operator, push_back>: New methods.
1820 (rust_parser::lex_hex, lex_escape): Rename and update.
1821 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1822 (rust_parser::lex_operator): Rename and update.
1823 (rust_parser::lex_number, rustyylex, rustyyerror)
1824 (rust_lex_test_init, rust_lex_test_sequence)
1825 (rust_lex_test_push_back, rust_lex_tests): Update.
1826 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1828 <lexptr, prev_lexptr>: New members.
1829 (lexptr, prev_lexptr): Don't declare.
1830 * parse.c (lexptr, prev_lexptr): Remove globals.
1831 (parse_exp_in_context): Update.
1832 * p-exp.y (yylex, yyerror): Update.
1833 * m2-exp.y (parse_number, yylex, yyerror): Update.
1834 * go-exp.y (lex_one_token, yyerror): Update.
1835 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1836 * d-exp.y (lex_one_token, yyerror): Update.
1837 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1838 (lex_one_token, yyerror): Update.
1839 * ada-lex.l (YY_INPUT): Update.
1840 (rewind_to_char): Update.
1841 * ada-exp.y (yyerror): Update.
1843 2019-04-04 Tom Tromey <tom@tromey.com>
1845 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1846 * parser-defs.h (struct parser_state) <parser_state>: Add new
1848 <comma_terminates>: New member.
1849 (comma_terminates): Don't declare global.
1850 * parse.c (comma_terminates): Remove global.
1851 (parse_exp_in_context): Update.
1852 * p-exp.y (yylex): Update.
1853 * m2-exp.y (yylex): Update.
1854 * go-exp.y (lex_one_token): Update.
1855 * f-exp.y (yylex): Update.
1856 * d-exp.y (lex_one_token): Update.
1857 * c-exp.y (lex_one_token): Update.
1858 * ada-lex.l: Update.
1860 2019-04-04 Tom Tromey <tom@tromey.com>
1862 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1863 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1864 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1865 * parser-defs.h (paren_depth): Don't declare.
1866 * parse.c (paren_depth): Remove global.
1867 (parse_exp_in_context): Update.
1868 * p-exp.y (paren_depth): New global.
1869 (pascal_parse): Initialize it.
1870 * m2-exp.y (paren_depth): New global.
1871 (m2_parse): Initialize it.
1872 * go-exp.y (paren_depth): New global.
1873 (go_parse): Initialize it.
1874 * f-exp.y (paren_depth): New global.
1875 (f_parse): Initialize it.
1876 * d-exp.y (paren_depth): New global.
1877 (d_parse): Initialize it.
1878 * c-exp.y (paren_depth): New global.
1879 (c_parse): Initialize it.
1880 * ada-lex.l (paren_depth): New global.
1881 (lexer_init): Initialize it.
1883 2019-04-04 Tom Tromey <tom@tromey.com>
1885 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1886 (rust_parser::convert_ast_to_type)
1887 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1888 * parser-defs.h (struct parser_state) <parser_state>: Add
1889 parameters. Initialize new members.
1890 <expression_context_block, expression_context_pc>: New members.
1891 * parse.c (expression_context_block, expression_context_pc):
1893 (parse_exp_in_context): Update.
1894 * p-exp.y: Update all rules.
1896 * m2-exp.y: Update all rules.
1898 * go-exp.y (yylex): Update.
1899 * f-exp.y (yylex): Update.
1900 * d-exp.y: Update all rules.
1902 * c-exp.y: Update all rules.
1903 (lex_one_token, classify_name, yylex, c_parse): Update.
1904 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1906 2019-04-04 Tom Tromey <tom@tromey.com>
1908 * gdbarch.h, gdbarch.c: Rebuild.
1909 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1911 (struct stap_parse_info): Replace "parser_state" with
1913 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1914 (parser_state): New class.
1915 * parse.c (expr_builder): Rename.
1916 (expr_builder::release): Rename.
1917 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1918 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1919 (write_exp_elt_longcst, write_exp_elt_floatcst)
1920 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1921 (write_exp_string_vector, write_exp_bitstring)
1922 (write_exp_msymbol, mark_struct_expression)
1923 (write_dollar_variable)
1924 (insert_type_address_space, increase_expout_size): Replace
1925 "parser_state" with "expr_builder".
1926 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1927 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1928 "parser_state" with "expr_builder".
1930 2019-04-04 Tom Tromey <tom@tromey.com>
1932 * rust-exp.y: Replace "parse_language" with method call.
1934 (yylex): Replace "parse_language" with method call.
1936 (yylex): Replace "parse_language" with method call.
1937 * go-exp.y (classify_name): Replace "parse_language" with method
1939 * f-exp.y (yylex): Replace "parse_language" with method call.
1940 * d-exp.y (lex_one_token): Replace "parse_language" with method
1943 (lex_one_token, classify_name, yylex): Replace "parse_language"
1945 * ada-exp.y (find_primitive_type, type_char)
1946 (type_system_address): Replace "parse_language" with method call.
1948 2019-04-04 Tom Tromey <tom@tromey.com>
1950 * rust-exp.y: Replace "parse_gdbarch" with method call.
1951 * parse.c (write_dollar_variable, insert_type_address_space):
1952 Replace "parse_gdbarch" with method call.
1953 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
1955 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
1957 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
1958 "parse_gdbarch" with method call.
1959 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
1961 * f-exp.y (parse_type, parse_f_type, yylex): Replace
1962 "parse_gdbarch" with method call.
1963 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
1964 "parse_gdbarch" with method call.
1965 * c-exp.y (parse_type, parse_number, classify_name): Replace
1966 "parse_gdbarch" with method call.
1967 * ada-lex.l: Replace "parse_gdbarch" with method call.
1968 * ada-exp.y (parse_type, find_primitive_type, type_char)
1969 (type_system_address): Replace "parse_gdbarch" with method call.
1971 2019-04-04 Tom Tromey <tom@tromey.com>
1973 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1974 * stap-probe.c (stap_parse_argument): Update.
1975 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
1976 initial_size parameter.
1977 * rust-exp.y (rust_lex_tests): Update.
1978 * parse.c (parser_state): Update.
1979 (parse_exp_in_context): Update.
1980 * parser-defs.h (struct parser_state) <parser_state>: Remove
1981 "initial_size" parameter.
1983 2019-04-04 Tom Tromey <tom@tromey.com>
1985 * parser-defs.h (increase_expout_size): Don't declare.
1986 * parse.c (increase_expout_size): Now static.
1988 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
1990 * gnu-nat.c (gnu_nat_target::wait): Fix
1991 target_waitstatus_to_string call.
1993 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1995 * eval.c (evaluate_subexp_standard): Handle internal functions
1996 during Fortran function call handling.
1998 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2000 * NEWS: Mention new internal functions.
2001 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2002 (read_base_type): Use dwarf2_init_complex_target_type.
2003 * value.c (creal_internal_fn): New function.
2004 (cimag_internal_fn): New function.
2005 (_initialize_values): Register new internal functions.
2007 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2009 * infrun.c (stop_all_threads): If debug_infrun, always
2010 trace the wait status after wait_one, using
2011 target_waitstatus_to_string and target_pid_to_str.
2012 (handle_inferior_event): Replace various trace of
2013 wait status kind by a single trace.
2014 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2015 wait status kind image by target_waitstatus_to_string.
2016 * target/waitstatus.c (target_waitstatus_to_string): Fix
2019 2019-04-01 Tom Tromey <tromey@adacore.com>
2022 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2024 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2025 Pedro Alves <palves@redhat.com>
2027 * top.c (quit_force): Call 'finalize_values'.
2028 * value.c (finalize_values): New function.
2029 * value.h (finalize_values): Declare.
2031 2019-03-30 Eli Zaretskii <eliz@gnu.org>
2033 * NEWS: Announce $_gdb_major and $_gdb_minor.
2035 * top.c (init_gdb_version_vars): New function.
2036 (gdb_init): Call init_gdb_version_vars.
2038 2019-03-29 Tom Tromey <tromey@adacore.com>
2040 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2041 help text. Remove dead code.
2043 2019-03-29 Keith Seitz <keiths@redhat.com>
2045 From Siddhesh Poyarekar:
2046 * f-lang.h (f77_get_upperbound): Return LONGEST.
2047 (f77_get_lowerbound): Likewise.
2048 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2049 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2051 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2052 plongest to format print it.
2053 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2054 (f77_get_upperbound): Likewise.
2055 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2056 LOWER_BOUND to LONGEST.
2057 (f77_create_arrayprint_offset_tbl): Likewise.
2059 2019-03-29 Keith Seitz <keiths@redhat.com>
2061 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2062 %s/pulongest for TYPE_LENGTH instead of %d in format
2064 * ada-typerint.c (ada_print_type): Likewise.
2065 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2066 * compile/compile-c-support.c (generate_register_struct): Likewise.
2067 * gdbtypes.c (recursive_dump_type): Likewise.
2068 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2069 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2070 instead of %d in format strings.
2071 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2072 to std::min to ULONGEST.
2073 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2074 instead of %d in format strings.
2075 * tracepoint.c (info_scope_command): Likewise.
2076 * typeprint.c (print_offset_data::update)
2077 (print_offset_data::finish): Likewise.
2078 * xtensa-tdep.c (xtensa_store_return_value)
2079 (xtensa_push_dummy_call): Likewise.
2081 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2083 * windows-nat.c (display_selector): Fixed format specifications
2086 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2088 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2090 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2092 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2093 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2094 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2095 (nios2_linux_init_abi): Install it.
2097 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2099 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2101 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2103 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2105 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2106 Tom Tromey <tromey@adacore.com>
2108 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2110 2019-03-26 Joel Brobecker <brobecker@adacore.com>
2112 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2113 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2114 method to compute the bounds of range types. Also print "[evaluated]"
2115 if the bounds' values come from a dynamic evaluation.
2117 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2119 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2120 whitespace when pretty printing is on.
2122 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2124 * ppc-linux-nat.c: Add include.
2126 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2128 * NEWS: Mention AArch64 Pointer Authentication.
2130 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2132 * arm-linux-nat.c: Add include.
2134 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2136 * source-cache.c (source_cache::get_source_lines): Re-read
2137 fullname after calling open_source_file.
2139 2019-03-25 John Baldwin <jhb@FreeBSD.org>
2141 * NEWS: Mention TLS support for FreeBSD.
2143 2019-03-25 Tom Tromey <tromey@adacore.com>
2145 * minsyms.c (BUNCH_SIZE): Update comment.
2146 (~minimal_symbol_reader): Remove old comment.
2147 (compact_minimal_symbols): Update comment.
2148 (minimal_symbol_reader::install): Remove old comment. Update
2151 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2153 * s390-linux-nat.c: Add include.
2155 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2157 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2158 Call linux_get_hwcap.
2159 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2161 (aarch64_linux_get_hwcap): Remove function.
2162 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2164 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2166 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2167 * linux-tdep.c (linux_get_hwcap): Add function.
2168 (linux_get_hwcap2): Likewise.
2169 * linux-tdep.h (linux_get_hwcap): Add declaration.
2170 (linux_get_hwcap2): Likewise.
2171 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2172 (ppc_linux_get_hwcap2): Likewise.
2173 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2175 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2176 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2177 (ppc_linux_nat_target::read_description): Likewise.
2178 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2179 * s390-linux-nat.c: Likewise.
2180 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2182 2019-03-24 Tom Tromey <tom@tromey.com>
2184 * ada-lang.c (standard_lookup): Simplify initialization.
2185 (ada_lookup_symbol_nonlocal): Simplify return.
2186 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2187 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2188 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2189 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2191 * solib.c (solib_global_lookup): Simplify.
2192 * symtab.c (null_block_symbol): Remove.
2193 (symbol_cache_lookup): Simplify returns.
2194 (lookup_language_this): Simplify returns.
2195 (lookup_symbol_aux): Simplify return.
2196 (lookup_local_symbol): Simplify returns.
2197 (lookup_global_symbol_from_objfile): Simplify return.
2198 (lookup_symbol_in_objfile_symtabs)
2199 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2200 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2201 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2202 * cp-namespace.c (cp_lookup_bare_symbol)
2203 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2204 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2205 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2206 (cp_lookup_symbol_via_imports): Simplify initialization.
2207 (find_symbol_in_baseclass): Likewise.
2208 * symtab.h (null_block_symbol): Remove.
2209 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2210 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2211 (d_lookup_symbol_module): Likewise.
2212 (find_symbol_in_baseclass): Simplify initialization.
2214 2019-03-24 Tom Tromey <tom@tromey.com>
2216 * expression.h: Don't include symtab.h.
2217 (struct block): Forward declare.
2219 2019-03-24 Tom Tromey <tom@tromey.com>
2221 * c-exp.y (typebase): Remove casts.
2222 * gdbtypes.c (lookup_unsigned_typename, )
2223 (lookup_signed_typename): Remove cast.
2224 * eval.c (parse_to_comma_and_eval): Remove cast.
2225 * parse.c (write_dollar_variable): Remove cast.
2226 * block.h (struct block) <superblock>: Now const.
2227 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
2228 * psymtab.c (psym_map_matching_symbols): Make "block" const.
2229 (map_block): Make "block" const.
2230 * symfile.h (struct quick_symbol_functions)
2231 <map_matching_symbols>: Constify block argument to "callback".
2232 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
2234 (find_pc_sect_compunit_symtab): Make "b" const.
2235 (find_symbol_at_address): Likewise.
2236 (search_symbols): Likewise.
2237 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
2238 (dw2_debug_names_lookup_symbol): Likewise.
2239 (dw2_map_matching_symbols): Update.
2240 * p-valprint.c (pascal_val_print): Remove "block".
2241 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
2242 (aux_add_nonlocal_symbols): Make "block" const.
2243 (resolve_subexp): Remove cast.
2244 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
2246 (iterate_over_file_blocks): Likewise.
2247 * f-exp.y (%union) <bval>: Remove.
2248 * coffread.c (patch_opaque_types): Make "b" const.
2249 * spu-tdep.c (spu_catch_start): Make "block" const.
2250 * c-valprint.c (print_unpacked_pointer): Remove "block".
2251 * symmisc.c (dump_symtab_1): Make "b" const.
2252 (block_depth): Make "block" const.
2253 * d-exp.y (%union) <bval>: Remove.
2254 * cp-support.h (cp_lookup_rtti_type): Update.
2255 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
2256 * psymtab.c (psym_lookup_symbol): Make "block" const.
2257 (maintenance_check_psymtabs): Make "b" const.
2258 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2259 (enumerate_locals, enumerate_args): Update.
2260 * python/py-symtab.c (stpy_global_block): Make "block" const.
2261 (stpy_static_block): Likewise.
2262 * inline-frame.c (block_starting_point_at): Make "new_block"
2264 * block.c (find_block_in_blockvector): Make return type const.
2265 (blockvector_for_pc_sect): Make "b" const.
2266 (find_block_in_blockvector): Make "b" const.
2268 2019-03-23 Tom Tromey <tom@tromey.com>
2270 * varobj.c (varobj_create): Update.
2271 * symfile.c (clear_symtab_users): Don't reset innermost_block.
2272 * printcmd.c (display_command, do_one_display): Don't reset
2274 * parser-defs.h (enum innermost_block_tracker_type): Move to
2276 (innermost_block): Update comment.
2277 * parse.c (parse_exp_1): Add tracker_types parameter.
2278 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
2279 tracker_types parameter. Reset innermost_block.
2280 (parse_exp_in_context): Remove.
2281 (parse_expression_for_completion): Update.
2282 * objfiles.c (~objfile): Don't reset expression_context_block or
2284 * expression.h (enum innermost_block_tracker_type): Move from
2286 (parse_exp_1): Add tracker_types parameter.
2287 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
2288 reset innermost_block.
2290 2019-03-23 Tom Tromey <tom@tromey.com>
2292 * objfiles.h: Include bcache.h.
2294 2019-03-23 Tom Tromey <tom@tromey.com>
2296 * linespec.c (get_current_search_block): Use
2297 scoped_restore_current_language.
2298 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
2300 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2301 Jiong Wang <jiong.wang@arm.com>
2303 * aarch64-linux-tdep.c
2304 (aarch64_linux_iterate_over_regset_sections): Check for pauth
2306 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
2308 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2309 Jiong Wang <jiong.wang@arm.com>
2311 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
2313 (aarch64_analyze_prologue_test): Add PACIASP test.
2314 (aarch64_prologue_prev_register): Unmask PC value.
2316 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2317 Jiong Wang <jiong.wang@arm.com>
2319 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
2320 (aarch64_dwarf2_prev_register): Unmask PC value.
2321 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
2322 (aarch64_execute_dwarf_cfa_vendor_op): Check for
2323 DW_CFA_AARCH64_negate_ra_state.
2324 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
2326 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2327 Jiong Wang <jiong.wang@arm.com>
2329 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
2331 (aarch64_pseudo_register_name): Likewise.
2332 (aarch64_pseudo_register_type): Likewise.
2333 (aarch64_pseudo_register_reggroup_p): Likewise.
2334 (aarch64_gdbarch_init): Add pauth registers.
2335 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
2336 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
2337 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
2338 (struct gdbarch_tdep): Add regnum for ra_state.
2340 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2341 Jiong Wang <jiong.wang@arm.com>
2343 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
2345 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2346 Jiong Wang <jiong.wang@arm.com>
2348 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
2350 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
2351 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
2352 (aarch64_gdbarch_init): Add puth registers.
2353 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
2354 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
2355 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
2357 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2358 Jiong Wang <jiong.wang@arm.com>
2360 * aarch64-linux-nat.c
2361 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
2362 * aarch64-linux-tdep.c
2363 (aarch64_linux_core_read_description): Likewise.
2364 (aarch64_linux_get_hwcap): New function.
2365 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
2366 (aarch64_linux_get_hwcap): New declaration.
2368 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2369 Jiong Wang <jiong.wang@arm.com>
2371 * aarch64-linux-nat.c
2372 (aarch64_linux_nat_target::read_description): Add pauth param.
2373 * aarch64-linux-tdep.c
2374 (aarch64_linux_core_read_description): Likewise.
2375 * aarch64-tdep.c (struct target_desc): Add in pauth.
2376 (aarch64_read_description): Add pauth param.
2377 (aarch64_gdbarch_init): Likewise.
2378 * aarch64-tdep.h (aarch64_read_description): Likewise.
2379 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2380 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2381 * features/Makefile: Add new files.
2382 * features/aarch64-pauth.c: New file.
2383 * features/aarch64-pauth.xml: New file.
2385 2019-03-20 Tom Tromey <tromey@adacore.com>
2387 * infrun.c (handle_inferior_event): Rename from
2388 handle_inferior_event_1. Create a scoped_value_mark.
2389 (handle_inferior_event): Remove.
2391 2019-03-19 Tom Tromey <tromey@adacore.com>
2393 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
2394 * infrun.h (print_stop_event): Add "displays" parameter.
2395 * infrun.c (print_stop_event): Add "displays" parameter.
2397 2019-03-19 Pedro Alves <palves@redhat.com>
2399 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
2400 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
2401 to -1. Fix TABs vs spaces.
2402 (tui_ui_out::tui_ui_out): Don't initialize fields here.
2403 * tui/tui-out.h (tui_ui_out) Add intro comments.
2404 <m_line, m_start_of_line>: In-class initialize, and add describing
2407 2019-03-18 Alan Hayward <alan.hayward@arm.com>
2409 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
2411 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
2413 2019-03-18 Pedro Alves <palves@redhat.com>
2414 Eli Zaretskii <eliz@gnu.org>
2416 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
2417 m_line and m_start_of_line.
2419 2019-03-18 Eli Zaretskii <eliz@gnu.org>
2421 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
2422 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
2423 it returns a newline. This fixes a regression in TU mode, whereby
2424 the next line is output on the same screen line as the user input.
2426 2019-03-18 Tom Tromey <tromey@adacore.com>
2428 * minsyms.c (minimal_symbol_reader::install): Remove call to
2431 2019-03-18 Pedro Alves <palves@redhat.com>
2433 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
2435 (apply_style): New, factored out from ...
2436 (apply_ansi_escape): ... this. Handle reverse video mode.
2437 (tui_set_reverse_mode): New function.
2438 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
2439 * tui/tui-winsource.c (tui_show_source_line): Use
2440 tui_set_reverse_mode instead of setting A_STANDOUT.
2441 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
2444 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
2446 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
2449 2019-03-18 Tom Tromey <tromey@adacore.com>
2451 * ada-lang.c (empty_array): Add "high" parameter.
2452 (ada_evaluate_subexp): Update.
2454 2019-03-17 Sergei Trofimovich <siarheit@google.com>
2456 * unittests/string_view-selftests.c: Define
2457 _initialize_string_view_selftests unconditionally.
2459 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2462 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
2464 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2467 * windows-nat.c (display_selector): Fix format specifiers.
2469 2019-03-17 Eli Zaretskii <eliz@gnu.org>
2471 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
2472 tui_refill_source_window instead of tui_refresh_win, to update the
2473 current execution line. This fixes redisplay of the current line
2474 when stepping through the code with "next" or "step".
2476 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2478 * source-cache.c (source_cache::get_source_lines): Call
2479 find_source_lines to initialize s->nlines. This fixes vertical
2480 scrolling of TUI source window when the DOWN arrow is pressed.
2482 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2484 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
2485 linux-thread-db.c (_initialize_thread_db): Likewise.
2487 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2489 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
2490 wclrtoeol in tui_show_source_line". This reverts changes made in
2491 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
2493 2019-03-15 Tom Tromey <tom@tromey.com>
2495 * symtab.h (struct minimal_symbol): Derive from
2496 general_symbol_info.
2497 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
2498 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2499 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2500 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2501 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
2502 (MSYMBOL_SEARCH_NAME): Update.
2503 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
2504 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
2505 * minsyms.c (minimal_symbol_reader::record_full): Update.
2507 2019-03-15 Tom Tromey <tom@tromey.com>
2509 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
2511 2019-03-15 Tom Tromey <tom@tromey.com>
2513 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
2515 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
2517 * minsyms.c (lookup_minimal_symbol_by_pc_section)
2518 (build_minimal_symbol_hash_tables)
2519 (minimal_symbol_reader::install): Update.
2521 2019-03-15 Tom Tromey <tom@tromey.com>
2523 * symtab.c (create_demangled_names_hash): Update.
2524 (symbol_set_names): Update.
2525 * objfiles.h (struct objfile_per_bfd_storage)
2526 <demangled_names_hash>: Now an htab_up.
2527 * objfiles.c (objfile_per_bfd_storage): Simplify.
2529 2019-03-15 Tom Tromey <tom@tromey.com>
2531 * objfiles.h (struct objfile_per_bfd_storage): Declare
2533 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
2535 (get_objfile_bfd_data): Use new. Don't initialize
2537 (free_objfile_per_bfd_storage): Remove.
2538 (objfile_bfd_data_free, objfile::~objfile): Use delete.
2540 2019-03-15 Tom Tromey <tom@tromey.com>
2542 * symfile.c (reread_symbols): Update.
2543 * objfiles.c (objfile::objfile): Update.
2544 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
2545 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
2547 (minimal_symbol_reader::install): Update.
2548 (terminate_minimal_symbol_table): Remove.
2549 * jit.c (jit_object_close_impl): Update.
2551 2019-03-15 Tom Tromey <tom@tromey.com>
2553 * minsyms.c (minimal_symbol_reader::record_full): Remove some
2556 2019-03-15 Tom Tromey <tom@tromey.com>
2558 * objfiles.h (struct objfile_per_bfd_storage)
2559 <demangled_hash_languages>: Now a bitset.
2560 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
2561 (lookup_minimal_symbol): Update.
2563 2019-03-15 Tom Tromey <tom@tromey.com>
2565 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
2566 Don't return the symbol.
2567 * coffread.c (record_minimal_symbol): Use record_full.
2569 2019-03-14 Eli Zaretskii <eliz@gnu.org>
2571 The MS-Windows port of ncurses fails to switch to a color pair if
2572 one or both of the colors are the implicit default colors. This
2573 change records the default colors when TUI is initialized, and
2574 then specifies them explicitly when a color pair uses the default
2575 colors. This allows color styling in TUI mode on MS-Windows.
2577 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
2579 (tui_initialize_io) [__MINGW32__]: Record the default terminal
2580 colors in ncurses_norm_attr.
2581 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
2582 "none", replace it with the default color recorded in
2585 2019-03-14 Tom Tromey <tromey@adacore.com>
2587 * source-cache.h (class source_cache) <get_source_lines>: Return
2589 * source-cache.c (source_cache::extract_lines): Handle case where
2590 first_pos==npos. Return std::string.
2591 (source_cache::get_source_lines): Update.
2593 2019-03-14 Tom Tromey <tromey@adacore.com>
2595 * NEWS: Add item for "style sources" commands.
2596 * source-cache.c (source_cache::get_source_lines): Check
2598 * cli/cli-style.c (source_styling): New global.
2599 (_initialize_cli_style): Add "style sources" commands.
2600 (show_style_sources): New function.
2601 * cli/cli-style.h (source_styling): Declare.
2603 2019-03-14 Pedro Alves <palves@redhat.com>
2604 Tom Tromey <tromey@adacore.com>
2606 * tui/tui-winsource.h (tui_refill_source_window): Declare.
2607 * tui/tui-winsource.c (tui_refill_source_window): New function,
2609 (tui_horizontal_source_scroll): ... here. Move some logic.
2610 * cli/cli-style.c (set_style_enabled): Notify new observable.
2611 * tui/tui-hooks.c (tui_redisplay_source): New function.
2612 (tui_attach_detach_observers): Attach or detach
2613 tui_redisplay_source.
2614 * observable.h (source_styling_changed): New observable.
2615 * observable.c: Define source_styling_changed observable.
2617 2019-03-13 Tom Tromey <tromey@adacore.com>
2619 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
2620 (i386_gnu_nat_target::store_registers): Update.
2621 * target-debug.h (target_debug_print_std_string): New macro.
2622 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2623 * windows-tdep.c (display_one_tib): Update.
2624 * tui/tui-stack.c (tui_make_status_line): Update.
2625 * top.c (print_inferior_quit_action): Update.
2626 * thread.c (thr_try_catch_cmd): Update.
2627 (add_thread_with_info): Update.
2628 (thread_target_id_str): Update.
2629 (thr_try_catch_cmd): Update.
2630 (thread_command): Update.
2631 (thread_find_command): Update.
2632 * record-btrace.c (record_btrace_target::info_record)
2633 (record_btrace_resume_thread, record_btrace_target::resume)
2634 (record_btrace_cancel_resume, record_btrace_step_thread)
2635 (record_btrace_target::wait, record_btrace_target::wait)
2636 (record_btrace_target::wait, record_btrace_target::stop): Update.
2637 * progspace.c (print_program_space): Update.
2638 * process-stratum-target.c
2639 (process_stratum_target::thread_address_space): Update.
2640 * linux-fork.c (linux_fork_mourn_inferior)
2641 (detach_checkpoint_command, info_checkpoints_command)
2642 (linux_fork_context): Update.
2643 (linux_fork_detach): Update.
2644 (class scoped_switch_fork_info): Update.
2645 (delete_checkpoint_command): Update.
2646 * infrun.c (follow_fork_inferior): Update.
2647 (follow_fork_inferior): Update.
2648 (proceed_after_vfork_done): Update.
2649 (handle_vfork_child_exec_or_exit): Update.
2650 (follow_exec): Update.
2651 (displaced_step_prepare_throw): Update.
2652 (displaced_step_restore): Update.
2653 (start_step_over): Update.
2655 (clear_proceed_status_thread): Update.
2657 (print_target_wait_results): Update.
2658 (do_target_wait): Update.
2659 (context_switch): Update.
2660 (stop_all_threads): Update.
2661 (restart_threads): Update.
2662 (finish_step_over): Update.
2663 (handle_signal_stop): Update.
2664 (switch_back_to_stepped_thread): Update.
2665 (keep_going_pass_signal): Update.
2666 (print_exited_reason): Update.
2667 (normal_stop): Update.
2668 * inferior.c (inferior_pid_to_str): Change return type.
2669 (print_selected_inferior): Update.
2670 (add_inferior): Update.
2671 (detach_inferior): Update.
2672 * dummy-frame.c (fprint_dummy_frames): Update.
2673 * dcache.c (dcache_info_1): Update.
2674 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2675 (btrace_fetch, btrace_clear): Update.
2676 * linux-tdep.c (linux_core_pid_to_str): Change return type.
2677 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
2679 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
2680 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
2681 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
2682 * gdbarch.c, gdbarch.h: Rebuild.
2683 * gdbarch.sh (core_pid_to_str): Change return type.
2684 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
2686 (windows_nat_target::pid_to_str): Change return type.
2687 (windows_delete_thread): Update.
2688 (windows_nat_target::attach): Update.
2689 (windows_nat_target::files_info): Update.
2690 * target-delegates.c: Rebuild.
2691 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
2693 (sol_thread_target::pid_to_str): Change return type.
2694 * remote.c (class remote_target) <pid_to_str>: Change return
2696 (remote_target::pid_to_str): Change return type.
2697 (extended_remote_target::attach, remote_target::remote_stop_ns)
2698 (remote_target::remote_notif_remove_queued_reply)
2699 (remote_target::push_stop_reply, remote_target::disable_btrace):
2701 (extended_remote_target::attach): Update.
2702 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
2704 (gdbsim_target::pid_to_str): Change return type.
2705 * ravenscar-thread.c (struct ravenscar_thread_target)
2706 <pid_to_str>: Change return type.
2707 (ravenscar_thread_target::pid_to_str): Change return type.
2708 * procfs.c (class procfs_target) <pid_to_str>: Change return
2710 (procfs_target::pid_to_str): Change return type.
2711 (procfs_target::attach): Update.
2712 (procfs_target::detach): Update.
2713 (procfs_target::fetch_registers): Update.
2714 (procfs_target::store_registers): Update.
2715 (procfs_target::wait): Update.
2716 (procfs_target::files_info): Update.
2717 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
2718 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
2720 (nto_procfs_target::pid_to_str): Change return type.
2721 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
2722 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
2724 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
2726 (attach_proc_task_lwp_callback, get_detach_signal)
2727 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2728 (linux_nat_target::resume, wait_lwp, stop_callback)
2729 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2730 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2731 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2732 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2733 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2735 (inf_ptrace_target::attach): Update.
2736 (inf_ptrace_target::files_info): Update.
2737 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2739 (go32_nat_target::pid_to_str): Change return type.
2740 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2741 (gnu_nat_target::wait): Update.
2742 (gnu_nat_target::wait): Update.
2743 (gnu_nat_target::resume): Update.
2744 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2745 (fbsd_nat_target::wait): Update.
2746 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2748 (darwin_nat_target::attach): Update.
2749 * corelow.c (class core_target) <pid_to_str>: Change return type.
2750 (core_target::pid_to_str): Change return type.
2751 * target.c (normal_pid_to_str): Change return type.
2752 (default_pid_to_str): Likewise.
2753 (target_pid_to_str): Change return type.
2754 (target_translate_tls_address): Update.
2755 (target_announce_detach): Update.
2756 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2758 (bsd_uthread_target::pid_to_str): Change return type.
2759 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2761 (bsd_kvm_target::pid_to_str): Change return type.
2762 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2764 (aix_thread_target::pid_to_str): Change return type.
2765 * target.h (struct target_ops) <pid_to_str>: Change return type.
2766 (target_pid_to_str, normal_pid_to_str): Likewise.
2767 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2769 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2771 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2773 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2775 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2777 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2780 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
2782 * NEWS: Mention that the new default MI version is 3. Mention
2783 changes to the output of commands and events that deal with
2784 multi-location breakpoints.
2785 * breakpoint.c: Include "mi/mi-out.h".
2786 (print_one_breakpoint): Change output syntax if using MI version
2788 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2790 (mi_multi_location_breakpoint_output_fixed): New.
2791 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2792 (mi_cmd_fix_multi_location_breakpoint_output): New.
2793 (mi_multi_location_breakpoint_output_fixed): New.
2794 * mi/mi-cmds.c (mi_cmds): Register command
2795 -fix-multi-location-breakpoint-output.
2796 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2799 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2801 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2802 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2803 instantiate mi_ui_out based on interpreter name.
2804 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2805 * mi/mi-main.c (mi_load_progress): Likewise.
2807 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2809 * NEWS: Combine separate "New targets" sections for 8.3.
2811 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2813 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2814 (ppcfbsd_init_abi): Install gdbarch
2815 "fetch_tls_load_module_address" and "get_thread_local_address"
2818 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2820 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2821 (riscv_fbsd_init_abi): Install gdbarch
2822 "fetch_tls_load_module_address" and "get_thread_local_address"
2825 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2827 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2828 (i386fbsd_init_abi): Install gdbarch
2829 "fetch_tls_load_module_address" and "get_thread_local_address"
2832 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2834 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2835 (amd64fbsd_init_abi): Install gdbarch
2836 "fetch_tls_load_module_address" and "get_thread_local_address"
2839 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2841 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2842 (struct fbsd_pspace_data): New type.
2843 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2844 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2845 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2846 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2847 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2849 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2851 * gdbtypes.c (lookup_struct_elt): New function.
2852 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2853 * gdbtypes.h (struct struct_elt): New type.
2854 (lookup_struct_elt): New prototype.
2856 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2858 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2859 remove disabled code block.
2861 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2863 * gdbarch.sh (get_thread_local_address): New method.
2864 * gdbarch.h, gdbarch.c: Regenerate.
2865 * target.c (target_translate_tls_address): Use
2866 gdbarch_get_thread_local_address if present instead of
2867 target::get_thread_local_address.
2869 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2871 * target.h (target::get_thread_local_address): Update comment.
2873 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2875 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2876 objfile->separate_debug_objfile_backlink if not NULL.
2878 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2880 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2881 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2882 (amd64bsd_store_inferior_registers): Likewise.
2883 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2884 Enable segment base registers.
2885 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2886 PT_GETFSBASE and PT_GETGSBASE.
2887 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2889 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2890 segment base registers.
2891 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2893 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2895 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2896 Update calls to i386_target_description to add 'segments'
2898 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2899 add segment base registers.
2900 * arch/i386.c (i386_create_target_description): Add 'segments'
2901 parameter to enable segment base registers.
2902 * arch/i386.h (i386_create_target_description): Likewise.
2903 * features/i386/32bit-segments.xml: New file.
2904 * features/i386/32bit-segments.c: Generate.
2905 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2906 call to i386_target_description to add 'segments' parameter.
2907 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2908 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2909 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2910 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2911 if feature is present.
2912 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2913 Add 'segments' parameter to call to i386_target_description.
2914 (i386_target_description): Add 'segments' parameter to enable
2915 segment base registers.
2916 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2917 to call to i386_target_description.
2918 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2919 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2920 Define I386_NUM_REGS.
2921 (i386_target_description): Add 'segments' parameter to enable
2922 segment base registers.
2924 2019-03-12 Eli Zaretskii <eliz@gnu.org>
2927 * source-cache.c: #undef open and close, to avoid unresolved
2928 externals during linking.
2930 2019-03-12 Tom Tromey <tromey@adacore.com>
2932 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2933 const. Add initializers.
2934 (_initialize_remote): Don't initialize ptid globals.
2936 2019-03-12 Pedro Alves <palves@redhat.com>
2938 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2940 2019-03-12 Pedro Alves <palves@redhat.com>
2942 * cp-name-parser.y (main): Remove unused 'len' variable.
2944 2019-03-12 Tom Tromey <tromey@adacore.com>
2946 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
2947 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
2949 2019-03-12 Tom Tromey <tromey@adacore.com>
2951 * linux-nat.c (iterate_over_lwps): Update.
2952 (stop_callback): Remove parameter.
2953 (stop_wait_callback, detach_callback, resume_set_callback)
2954 (select_singlestep_lwp_callback, set_ignore_sigint)
2955 (status_callback, resumed_callback, resume_clear_callback)
2956 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
2958 (linux_nat_target::detach, linux_nat_target::resume)
2959 (linux_stop_and_wait_all_lwps, select_event_lwp)
2960 (linux_nat_filter_event, linux_nat_wait_1)
2961 (linux_nat_target::kill, linux_nat_target::stop)
2962 (linux_nat_target::stop): Update.
2963 (linux_nat_resume_callback): Change type.
2964 (resume_stopped_resumed_lwps, count_events_callback)
2965 (select_event_lwp_callback): Likewise.
2966 (linux_stop_lwp, linux_nat_stop_lwp): Update.
2967 * arm-linux-nat.c (struct update_registers_data): Remove.
2968 (update_registers_callback): Change type.
2969 (arm_linux_insert_hw_breakpoint1): Update.
2970 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
2972 (x86_linux_dr_set_addr): Update.
2973 (x86_linux_dr_set_control): Update.
2974 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
2975 (iterate_over_lwps): Use gdb::function_view.
2976 * nat/aarch64-linux-hw-point.c (struct
2977 aarch64_dr_update_callback_param): Remove.
2978 (debug_reg_change_callback): Change type.
2979 (aarch64_notify_debug_reg_change): Update.
2980 * s390-linux-nat.c (s390_refresh_per_info): Update.
2982 2019-03-11 Tom Tromey <tromey@adacore.com>
2984 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
2985 redundant assignment to "this_cu".
2987 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2989 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
2991 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2993 * gdbtypes.c (rank_one_type_parm_set): New function extracted
2995 (rank_one_type): ... this.
2997 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2999 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3001 (rank_one_type): ... this.
3003 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3005 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3007 (rank_one_type): ... this.
3009 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3011 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3013 (rank_one_type): ... this.
3015 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3017 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3019 (rank_one_type): ... this.
3021 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3023 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3025 (rank_one_type): ... this.
3027 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3029 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3031 (rank_one_type): ... this.
3033 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3035 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3037 (rank_one_type): ... this.
3039 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3041 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3043 (rank_one_type): ... this.
3045 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3047 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3049 (rank_one_type): ... this.
3051 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3053 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3055 (rank_one_type): ... this.
3057 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3059 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3061 (rank_one_type): ... this.
3063 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3065 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3066 inferior-events' shows the example events.
3068 2019-03-08 Eli Zaretskii <eliz@gnu.org>
3070 Support styling on native MS-Windows console
3073 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3074 on MS-Windows if $TERM is not defined.
3076 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3078 * posix-hdep.c (gdb_console_fputs):
3079 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3081 * ui-file.h (gdb_console_fputs): Add prototype.
3083 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3084 back to fputs only if the former returns zero.
3086 2019-03-07 Tom Tromey <tom@tromey.com>
3088 * symmisc.c (print_symbol_bcache_statistics): Update.
3089 (print_objfile_statistics): Update.
3090 * symfile.c (allocate_symtab): Update.
3091 * stabsread.c: Don't include bcache.h.
3092 * psymtab.h (struct psymbol_bcache): Don't declare.
3093 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3094 (psymbol_bcache_init, psymbol_bcache_free)
3095 (psymbol_bcache_get_bcache): Don't declare.
3096 * psymtab.c (struct psymbol_bcache): Remove.
3097 (psymtab_storage::psymtab_storage): Update.
3098 (psymtab_storage::~psymtab_storage): Update.
3099 (psymbol_bcache_init, psymbol_bcache_free)
3100 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3101 (add_psymbol_to_bcache): Update.
3102 (allocate_psymtab): Update.
3103 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3104 macro_cache>: No longer pointers.
3105 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3106 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3107 * macrotab.c (macro_bcache): Update.
3108 * macroexp.c: Don't include bcache.h.
3109 * gdbtypes.c (check_types_worklist): Update.
3110 (types_deeply_equal): Remove TRY/CATCH. Update.
3111 * elfread.c (elf_symtab_read): Update.
3112 * dwarf2read.c: Don't include bcache.h.
3113 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3114 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3115 (print_bcache_statistics, bcache_memory_used): Don't declare.
3116 (struct bcache): Move from bcache.c. Add constructor, destructor,
3117 methods. Rename all data members.
3118 * bcache.c (struct bcache): Move to bcache.h.
3119 (bcache::expand_hash_table): Rename from expand_hash_table.
3121 (bcache::insert): Rename from bcache_full.
3122 (bcache::compare): Rename from bcache_compare.
3123 (bcache_xmalloc): Remove.
3124 (bcache::~bcache): Rename from bcache_xfree.
3125 (bcache::print_statistics): Rename from print_bcache_statistics.
3126 (bcache::memory_used): Rename from bcache_memory_used.
3128 2019-03-07 Pedro Alves <palves@redhat.com>
3130 * infrun.c (normal_stop): Also check for
3131 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3133 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3135 * f-lang.c (value_from_host_double): Moved to...
3136 * value.c (value_from_host_double): ...here.
3137 * value.h (value_from_host_double): Declare.
3138 * guile/scm-math.c (vlscm_convert_typed_number): Use
3139 value_from_host_double.
3140 (vlscm_convert_number): Likewise.
3141 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3142 * python/py-value.c (convert_value_from_python): Likewise.
3144 2019-03-06 Tom Tromey <tom@tromey.com>
3146 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3148 2019-03-06 Tom Tromey <tom@tromey.com>
3150 * utils.h (free_current_contents): Don't declare.
3151 * utils.c (free_current_contents): Remove.
3153 2019-03-06 Tom Tromey <tom@tromey.com>
3155 * top.c (quit_force): Update.
3156 * main.c (captured_command_loop): Update.
3157 * common/new-op.c (operator new): Update.
3158 * common/common-exceptions.c (struct catcher)
3159 <save_cleanup_chain>: Remove member.
3160 (exceptions_state_mc_init): Update.
3161 (exception_try_scope_entry): Return nullptr.
3162 (exception_try_scope_exit, exception_rethrow)
3163 (throw_exception_sjlj, throw_exception_cxx): Update.
3164 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3165 (all_cleanups, do_cleanups, discard_cleanups)
3166 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3167 (restore_cleanups, restore_final_cleanups): Don't declare.
3168 (do_final_cleanups): Remove parameter.
3169 * common/cleanups.c (cleanup_chain, make_cleanup)
3170 (make_cleanup_dtor, all_cleanups, do_cleanups)
3171 (discard_my_cleanups, discard_cleanups)
3172 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3173 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3174 (null_cleanup): Remove.
3175 (do_final_cleanups): Remove parameter.
3177 2019-03-06 Tom Tromey <tom@tromey.com>
3179 * remote.c (remote_target::remote_parse_stop_reply): Use
3182 2019-03-06 Tom Tromey <tom@tromey.com>
3184 * stabsread.c (struct stabs_field_info): Rename from field_info.
3185 <list, fnlist>: Add initializers.
3186 <obstack>: New member.
3187 (read_member_functions, read_struct_fields, read_baseclasses):
3188 Allocate on obstack. Don't use cleanups.
3189 (read_one_struct_field, read_member_functions, read_struct_fields)
3190 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3191 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3192 (read_struct_type): Update.
3194 2019-03-06 Tom Tromey <tom@tromey.com>
3196 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3197 * common/filestuff.h (make_cleanup_close): Don't declare.
3198 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3201 2019-03-06 Tom Tromey <tom@tromey.com>
3203 * solib-aix.c: Use make_scope_exit.
3205 2019-03-06 Tom Tromey <tom@tromey.com>
3207 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3208 Use make_scope_exit.
3210 2019-03-06 Tom Tromey <tom@tromey.com>
3212 * solib-svr4.c (disable_probes_interface): Remove parameter.
3213 (svr4_handle_solib_event): Use make_scope_exit.
3215 2019-03-06 Tom Tromey <tom@tromey.com>
3217 * remote.c (struct stop_reply_deleter): Remove.
3218 (stop_reply_up): Update.
3219 (struct stop_reply): Derive from notif_event. Don't typedef.
3220 <regcache>: Now a std::vector.
3221 (stop_reply_xfree): Remove.
3222 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3223 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
3224 (remote_target::discard_pending_stop_replies): Use delete.
3225 (remote_target::remote_parse_stop_reply): Update.
3226 (remote_target::process_stop_reply): Update.
3227 * remote-notif.h (struct notif_event): Add virtual destructor.
3228 Remove "dtr" member.
3229 (struct notif_client) <alloc_event>: Return a unique_ptr.
3230 (notif_event_xfree): Don't declare.
3231 (notif_event_up): New typedef.
3232 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
3233 (notif_event_xfree, do_notif_event_xfree): Remove.
3234 (remote_notif_state_xfree): Update.
3236 2019-03-06 Tom Tromey <tom@tromey.com>
3238 * infrun.c (displaced_step_clear_cleanup): Now a
3239 forward_scope_exit type.
3240 (displaced_step_prepare_throw): Update.
3241 (displaced_step_fixup): Update.
3243 2019-03-06 Tom Tromey <tom@tromey.com>
3245 * inferior.h (class inferior): Update comment.
3246 * gdbthread.h (class thread_info): Update comment.
3248 2019-03-06 Joel Brobecker <brobecker@adacore.com>
3249 Tom Tromey <tom@tromey.com>
3251 * stabsread.h (struct stab_section_list): Remove.
3252 (coffstab_build_psymtabs): Update.
3253 * dbxread.c (symbuf_sections): Now a std::vector.
3254 (sect_idx): New global.
3255 (fill_symbuf): Update.
3256 (coffstab_build_psymtabs): Change type of stabsects parameter.
3258 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3260 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3261 (coff_locate_sections): Update.
3262 (coff_symfile_read): Remove cleanups. Update.
3263 (init_stringtab): Add storage parameter.
3264 (free_stringtab, free_stringtab_cleanup): Remove.
3265 (init_lineno): Add storage parameter.
3266 (free_linetab, free_linetab_cleanup): Remove.
3268 2019-03-06 Pedro Alves <palves@redhat.com>
3270 * linux-fork.c (fork_info::clobber_regs): Delete.
3271 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
3272 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
3274 (scoped_switch_fork_info::scoped_switch_fork_info)
3275 (checkpoint_command, linux_fork_context): Adjust
3276 fork_save_infrun_state calls.
3278 2019-03-06 Pedro Alves <palves@redhat.com>
3280 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
3281 (inf_has_multiple_threads): Return 'bool' and rewrite using
3282 inferior_info::threads().
3284 2019-03-06 Pedro Alves <palves@redhat.com>
3286 * linux-fork.c: Include <list>.
3287 (fork_list): Now a std::list instance.
3288 (fork_info): Add ctor, dtor, and in-class initialize all fields.
3289 (forks_exist_p, find_last_fork): Adjust.
3293 (free_fork): Delete, folded into fork_info::~fork_info().
3294 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
3296 (init_fork_list): Delete.
3297 (linux_fork_killall, linux_fork_mourn_inferior)
3298 (linux_fork_detach, info_checkpoints_command): Adjust.
3299 (_initialize_linux_fork): No longer call init_fork_list.
3301 2019-03-06 Pedro Alves <palves@redhat.com>
3303 * linux-fork.c (new_fork): New, split out of ...
3304 (add_fork): ... this. Return void. Move "first fork" special
3305 case from here, to ...
3306 (checkpoint_command): ... here.
3307 * linux-linux.h (add_fork): Return void.
3309 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3311 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
3313 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3314 Chris January <chris.january@arm.com>
3315 David Lecomber <david.lecomber@arm.com>
3317 * f-exp.y: New token, UNOP_INTRINSIC.
3318 (exp): New pattern using UNOP_INTRINSIC token.
3319 (f77_keywords): Add 'abs' keyword.
3320 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
3321 (value_from_host_double): New function.
3322 (evaluate_subexp_f): Support UNOP_ABS.
3324 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3326 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
3329 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3331 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
3332 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
3333 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
3335 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3337 * f-exp.y (convert_to_kind_type): Handle more type kinds.
3339 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3340 Chris January <chris.january@arm.com>
3342 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
3343 * f-exp.y: Define 'KIND' token.
3344 (exp): New pattern for KIND expressions.
3345 (ptype): Handle types with a kind extension.
3346 (direct_abs_decl): Extend to spot kind extensions.
3347 (f77_keywords): Add 'kind' to the list.
3348 (push_kind_type): New function.
3349 (convert_to_kind_type): New function.
3350 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
3351 * parse.c (operator_length_standard): Likewise.
3352 * parser-defs.h (enum type_pieces): Add tp_kind.
3353 * std-operator.def: Add UNOP_KIND.
3355 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3357 * f-exp.y (f_parse): Set yydebug.
3359 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3361 * f-lang.c (evaluate_subexp_f): New function.
3362 (exp_descriptor_f): New global.
3363 (f_language_defn): Use exp_descriptor_f instead of
3364 exp_descriptor_standard.
3366 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3368 * f-exp.y (struct token): Add comments.
3369 (dot_ops): Remove uppercase versions and the end marker.
3370 (f77_keywords): Likewise.
3371 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
3372 entries in the dot_ops array are case insensitive, and use
3373 strncasecmp to compare strings. Also some whitespace cleanup in
3374 this area. Similar for the f77_keywords array, except entries in
3375 this list might be case sensitive.
3377 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3379 * f-exp.y (struct f77_boolean_val): Add comments.
3380 (boolean_values): Remove uppercase versions, and end marker.
3381 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
3382 and use strncasecmp to achieve case insensitivity. Additionally,
3383 perform whitespace cleanup around this code.
3385 2019-03-06 Tom Tromey <tromey@adacore.com>
3387 * remote-sim.c (gdbsim_target_open): Use result of
3390 2019-03-06 Richard Bunt <richard.bunt@arm.com>
3391 Dirk Schubert <dirk.schubert@arm.com>
3392 Chris January <chris.january@arm.com>
3394 * eval.c (evaluate_subexp_standard): Call Fortran argument
3396 * f-lang.c (struct value): A value which can be passed into a
3397 Fortran function call.
3398 (fortran_argument_convert): Wrap Fortran arguments in a pointer
3400 (struct type): Value ready for a Fortran function call.
3401 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
3403 * f-lang.h (fortran_argument_convert): Declaration.
3404 (fortran_preserve_arg_pointer): Declaration.
3405 * infcall.c (value_arg_coerce): Call Fortran argument logic.
3407 2019-03-05 Tom Tromey <tromey@adacore.com>
3409 * python/py-prettyprint.c (print_string_repr): Remove #if.
3410 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
3412 2019-03-05 Tom Tromey <tromey@adacore.com>
3414 * target.c (the_dummy_target): Move later. Change type to
3416 (initialize_targets): Don't initialize the_dummy_target.
3418 2019-03-05 Tom Tromey <tromey@adacore.com>
3420 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
3421 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
3423 2019-03-05 Tom Tromey <tromey@adacore.com>
3425 * windows-nat.c (windows_nat_target::attach)
3426 (windows_nat_target::detach): Don't call gdb_flush.
3427 * valprint.c (generic_val_print, val_print, val_print_string):
3428 Don't call gdb_flush.
3429 * utils.c (defaulted_query): Don't call gdb_flush.
3430 * typeprint.c (print_type_scalar): Don't call gdb_flush.
3431 * target.c (target_announce_detach): Don't call gdb_flush.
3432 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
3433 * remote.c (extended_remote_target::attach): Don't call
3435 * procfs.c (procfs_target::detach): Don't call gdb_flush.
3436 * printcmd.c (do_examine): Don't call gdb_flush.
3437 (info_display_command): Don't call gdb_flush.
3438 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
3439 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
3440 * memattr.c (info_mem_command): Don't call gdb_flush.
3441 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
3442 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
3443 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
3444 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
3445 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
3446 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
3447 (gnu_nat_target::detach): Don't call gdb_flush.
3448 * f-valprint.c (f_val_print): Don't call gdb_flush.
3449 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
3450 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
3451 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
3453 * c-valprint.c (c_val_print): Don't call gdb_flush.
3454 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
3456 2019-03-05 Tom Tromey <tromey@adacore.com>
3458 * varobj.c (update_dynamic_varobj_children): Update.
3459 (install_default_visualizer): Use reset, not release.
3460 * value.c (set_internalvar): Update.
3461 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
3462 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
3463 ATTRIBUTE_UNUSED_RESULT.
3465 2019-03-05 Tom Tromey <tromey@adacore.com>
3467 * remote.c (class scoped_remote_fd) <release>: Add
3468 ATTRIBUTE_UNUSED_RESULT.
3470 2019-03-05 Tom Tromey <tromey@adacore.com>
3472 * macroexp.c (struct macro_buffer) <release>: Add
3473 ATTRIBUTE_UNUSED_RESULT.
3475 2019-03-05 Tom Tromey <tromey@adacore.com>
3477 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
3478 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
3479 ATTRIBUTE_UNUSED_RESULT.
3481 2019-03-05 Tom Tromey <tromey@adacore.com>
3483 * common/scoped_fd.h (class scoped_fd) <release>: Add
3484 ATTRIBUTE_UNUSED_RESULT.
3486 2019-03-05 Tom Tromey <tromey@adacore.com>
3488 * parser-defs.h (struct parser_state) <release>: Add
3489 ATTRIBUTE_UNUSED_RESULT.
3491 2019-03-05 Tom Tromey <tromey@adacore.com>
3493 * utils.h (class gdb_argv) <release>: Add
3494 ATTRIBUTE_UNUSED_RESULT.
3495 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
3497 2019-03-02 Eli Zaretskii <eliz@gnu.org>
3499 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
3500 for-loop range, to avoid compiler warnings.
3502 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
3503 avoid compiler warnings about unused variables.
3505 * NEWS: Mention end of support for native debugging on MS-Windows
3509 * common/netstuff.c:
3510 * gdbserver/gdbreplay.c
3511 * gdbserver/remote-utils.c:
3513 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
3514 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
3515 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
3516 'getaddrinfo' and 'freeaddrinfo' were not available before
3517 Windows XP, and mingw.org's MinGW headers by default define
3518 _WIN32_WINNT to 0x500.
3520 2019-03-01 Gary Benson <gbenson@redhat.com>
3522 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
3524 2019-02-28 Brian Vandenberg <phantall@gmail.com>
3525 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3528 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
3529 set_sigint_trap, clear_sigint_trap.
3531 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3533 * target.c (target_detach): Clear the regcache and the
3536 2019-02-27 Pedro Alves <palves@redhat.com>
3538 * utils.c (set_screen_size): When we cap the height/width sizes,
3539 tweak the corresponding command variable to show "unlimited":
3541 2019-02-27 Saagar Jha <saagar@saagarjha.com>
3542 Pedro Alves <palves@redhat.com>
3544 * utils.c (set_screen_size): Reduce "infinite" rows and columns
3545 before calling rl_set_screen_size.
3547 2019-02-27 Tom Tromey <tromey@adacore.com>
3549 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
3551 * python/py-value.c: Remove Python 2.4 workaround.
3552 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
3554 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
3555 Python 2.4 workaround.
3556 * python/python-internal.h: Remove Python 2.4 comment.
3557 (Py_ssize_t): Don't define.
3558 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
3559 (gdb_Py_DECREF): Remove Python 2.4 workaround.
3560 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
3561 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
3562 * python/python.c (do_start_initialization): Remove Python 2.4
3564 * python/py-prettyprint.c (class dummy_python_frame): Remove.
3565 (print_children): Remove Python 2.4 workaround.
3566 * python/py-inferior.c (buffer_procs): Remove Python 2.4
3568 (CHARBUFFERPROC_NAME): Remove.
3569 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
3570 Python 2.4 workaround.
3572 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3574 * NEWS: Note minimum Python version.
3576 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3578 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
3579 code from these functions. Remove corresponding ifdefs. Use
3580 Py_buffer_up instead of explicit calls to PyBuffer_Release.
3581 Remove gotos and target of gotos.
3582 (infpy_search_memory): Likewise.
3584 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3586 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
3587 (hppa_gdbarch_init): Don't register deleted functions with
3590 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3592 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
3593 (h8300_unwind_sp): Delete.
3594 (h8300_dummy_id): Delete.
3595 (h8300_gdbarch_init): Don't register deleted functions with
3598 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3600 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
3601 (ft32_unwind_pc): Delete.
3602 (ft32_unwind_sp): Delete.
3603 (ft32_gdbarch_init): Don't register deleted functions with
3606 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3608 * gdb/frv-tdep.c (frv_dummy_id): Delete.
3609 (frv_unwind_pc): Delete.
3610 (frv_unwind_sp): Delete.
3611 (frv_gdbarch_init): Don't register deleted functions with
3614 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3616 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
3617 (riscv_unwind_pc): Delete.
3618 (riscv_unwind_sp): Delete.
3619 (riscv_gdbarch_init): Don't register deleted functions with
3622 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3624 * gdb/csky-tdep.c (csky_dummy_id): Delete.
3625 (csky_unwind_pc): Delete.
3626 (csky_unwind_sp): Delete.
3627 (csky_gdbarch_init): Don't register deleted functions with
3630 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3632 * gdb/cris-tdep.c (cris_dummy_id): Delete.
3633 (cris_unwind_pc): Delete.
3634 (cris_unwind_sp): Delete.
3635 (cris_gdbarch_init): Don't register deleted functions with
3638 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3640 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
3641 (bfin_unwind_pc): Delete.
3642 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
3644 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3646 * gdb/arm-tdep.c (arm_dummy_id): Delete.
3647 (arm_unwind_pc): Delete.
3648 (arm_unwind_sp): Delete.
3649 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
3651 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3653 * gdb/arc-tdep.c (arc_dummy_id): Delete.
3654 (arc_unwind_pc): Delete.
3655 (arc_unwind_sp): Delete.
3656 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
3658 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3660 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
3661 (alpha_unwind_pc): Delete.
3662 (alpha_gdbarch_init): Don't register deleted functions with
3665 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3667 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
3668 (aarch64_unwind_pc): Delete.
3669 (aarch64_unwind_sp): Delete.
3670 (aarch64_gdbarch_init): Don't register deleted functions with
3673 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3675 * gdbtypes.c (type_align): Don't consider static members when
3676 computing structure alignment.
3678 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3680 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
3681 return 0 for other types.
3682 * arch-utils.c (default_type_align): Always return 0.
3683 * gdbarch.h: Regenerate.
3684 * gdbarch.sh (type_align): Extend comment.
3685 * gdbtypes.c (type_align): Add additional comments, always call
3686 gdbarch_type_align before applying the default rules.
3687 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
3688 generic code will then apply a suitable default.
3689 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
3690 types, return 0 for other types.
3692 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3694 * NEWS: Create a new section for the next release branch.
3695 Rename the section of the current branch, now that it has
3698 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3700 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
3701 * version.in: Bump version to 8.3.50.DATE-git.
3703 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
3705 * aix-thread.c (ptid_cmp): Remove unused variable.
3706 (get_signaled_thread): Likewise.
3707 (store_regs_user_thread): Likewise.
3708 (store_regs_kernel_thread): Likewise.
3709 (fetch_regs_kernel_thread): Remove shadowed variable.
3711 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
3713 * features/riscv/32bit-cpu.xml: Add register numbers.
3714 * features/riscv/32bit-fpu.c: Regenerate.
3715 * features/riscv/32bit-fpu.xml: Add register numbers.
3716 * features/riscv/64bit-cpu.xml: Add register numbers.
3717 * features/riscv/64bit-fpu.c: Regenerate.
3718 * features/riscv/64bit-fpu.xml: Add register numbers.
3720 2019-02-26 Kevin Buettner <kevinb@redhat.com>
3722 * NEWS: Mention two argument form of gdb.Value constructor.
3723 * python/py-value.c (convert_buffer_and_type_to_value): New
3725 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3726 Add support for handling an optional second argument. Call
3727 convert_buffer_and_type_to_value as appropriate.
3728 * python/python-internal.h (Py_buffer_deleter): New struct.
3729 (Py_buffer_up): New typedef.
3731 2019-02-25 John Baldwin <jhb@FreeBSD.org>
3733 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3734 instead of releasing ownership.
3736 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
3738 * dwarf2read.c (open_and_init_dwp_file): Call
3739 elf_numsections instead of bfd_count_sections to initialize
3740 dwp_file->num_sections.
3742 2019-02-25 Tom Tromey <tromey@adacore.com>
3744 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3746 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
3748 * gcore.in: Add '--readnever' option when invoking GDB.
3750 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3752 * MAINTAINERS: Update my email address.
3754 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3756 * build-id.c (build_id_to_debug_bfd_1): New function.
3757 (build_id_to_debug_bfd): Look for separate debug file in
3760 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
3762 * gdbarch.sh: Update the copyright year range that is placed into
3765 2019-02-22 Keith Seitz <keiths@redhat.com>
3768 * linespec.c (create_sals_line_offset): Search for the default
3769 symtab's filename instead of its fullname.
3771 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3773 * NEWS: Update style defaults.
3775 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3777 * main.c (captured_main_1): Disable styling in batch mode.
3779 2019-02-20 Tom Tromey <tom@tromey.com>
3781 * symtab.c (symtab_symbol_info): Fix typos.
3783 2019-02-20 Tom Tromey <tromey@adacore.com>
3785 * findcmd.c (_initialize_mem_search): Use upper case for
3786 metasyntactic variables.
3788 2019-02-20 Alan Hayward <alan.hayward@arm.com>
3790 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3791 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3793 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
3795 * top.h (source_file_name): Change to std::string.
3796 * top.c (source_file_name): Likewise.
3797 (command_line_input): Adjust.
3798 * cli/cli-script.c (script_from_file): Adjust.
3800 2019-02-19 Tom Tromey <tromey@adacore.com>
3802 * ravenscar-thread.c
3803 (ravenscar_thread_target::update_thread_list): Don't call
3804 ada_build_task_list.
3805 * ada-lang.h (ada_build_task_list): Don't declare.
3806 * ada-tasks.c (struct ada_tasks_inferior_data)
3807 <task_list_valid_p>: Now bool.
3808 (read_known_tasks, ada_task_list_changed)
3809 (ada_tasks_invalidate_inferior_data): Update.
3810 (read_known_tasks_array): Return bool.
3811 (read_known_tasks_list): Likewise.
3812 (read_known_tasks): Return void.
3813 (ada_build_task_list): Now static.
3815 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
3817 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3818 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3820 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3822 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3823 variant for ada_tasks_pspace_data_handle and
3824 ada_tasks_inferior_data_handle.
3825 (ada_tasks_pspace_data_cleanup): New function.
3826 (ada_tasks_inferior_data_cleanup): New function.
3828 2019-02-17 Tom Tromey <tom@tromey.com>
3830 * macrotab.h (macro_source_fullname): Return a std::string.
3831 * macrotab.c (macro_include, check_for_redefinition)
3832 (macro_undef, macro_lookup_definition, foreach_macro)
3833 (foreach_macro_in_scope): Update.
3834 (macro_source_fullname): Return a std::string.
3835 * macrocmd.c (show_pp_source_pos): Update.
3837 2019-02-17 Tom Tromey <tom@tromey.com>
3839 * macrocmd.c (show_pp_source_pos): Style the file names.
3841 2019-02-17 Tom Tromey <tom@tromey.com>
3844 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3846 2019-02-17 Tom Tromey <tom@tromey.com>
3848 * ada-lang.c (user_select_syms): Use filtered printing.
3849 * utils.c (wrap_style): New global.
3850 (desired_style): Remove.
3851 (emit_style_escape): Add stream parameter.
3852 (set_output_style, reset_terminal_style, prompt_for_continue):
3854 (flush_wrap_buffer): Only flush gdb_stdout.
3855 (wrap_here): Set wrap_style.
3856 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3857 treat escape sequences as a character. Change when wrap buffer is
3859 (fputs_styled): Do not set the output style when the default is
3861 * ui-style.h (struct ui_file_style) <is_default>: New method.
3862 * source.c (print_source_lines_base): Emit escape sequences in one
3865 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3867 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3868 integers and enumeration types.
3870 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3872 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3873 instead of lookup_symbol_in_language
3874 (do_exact_match): New function.
3875 (ada_get_symbol_name_matcher): Return do_exact_match when
3876 doing a verbatim match.
3878 2019-02-15 Tom Tromey <tromey@adacore.com>
3880 * ravenscar-thread.c (ravenscar_thread_target::resume)
3881 (ravenscar_thread_target::wait): Special case wildcard requests.
3883 2019-02-15 Tom Tromey <tromey@adacore.com>
3885 * ravenscar-thread.c (base_ptid): Remove.
3886 (struct ravenscar_thread_target) <close>: New method.
3887 <m_base_ptid>: New member.
3888 <update_inferior_ptid, active_task, task_is_currently_active,
3889 runtime_initialized>: Declare methods.
3890 <ravenscar_thread_target>: Add constructor.
3891 (ravenscar_thread_target::task_is_currently_active)
3892 (ravenscar_thread_target::update_inferior_ptid)
3893 (ravenscar_runtime_initialized): Rename. Now methods.
3894 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3895 (ravenscar_thread_target::update_thread_list): Update.
3896 (ravenscar_thread_target::active_task): Now method.
3897 (ravenscar_thread_target::store_registers)
3898 (ravenscar_thread_target::prepare_to_store)
3899 (ravenscar_thread_target::prepare_to_store)
3900 (ravenscar_thread_target::mourn_inferior): Update.
3901 (ravenscar_inferior_created): Use "new" to create target.
3902 (ravenscar_thread_target::get_ada_task_ptid): Update.
3903 (_initialize_ravenscar): Don't initialize base_ptid.
3904 (ravenscar_ops): Remove global.
3906 2019-02-15 Tom Tromey <tromey@adacore.com>
3908 * target.h (push_target): Declare new overload.
3909 * target.c (push_target): New overload, taking an rvalue reference.
3910 * remote.c (remote_target::open_1): Use push_target overload.
3911 * corelow.c (core_target_open): Use push_target overload.
3913 2019-02-15 Tom Tromey <tromey@adacore.com>
3915 * ravenscar-thread.c (is_ravenscar_task)
3916 (ravenscar_task_is_currently_active): Return bool.
3917 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3918 (_initialize_ravenscar): Remove "(void)".
3919 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3922 2019-02-15 Tom Tromey <tromey@adacore.com>
3924 * ravenscar-thread.c (ravenscar_runtime_initializer)
3925 (has_ravenscar_runtime, get_running_thread_id)
3926 (ravenscar_thread_target::resume): Fix indentation.
3928 2019-02-15 Tom Tromey <tromey@adacore.com>
3930 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3931 from ravenscar_arch_ops.
3932 (sparc_ravenscar_ops::fetch_registers)
3933 (sparc_ravenscar_ops::store_registers): Now methods.
3934 (sparc_ravenscar_prepare_to_store): Remove.
3935 (sparc_ravenscar_ops): Redefine.
3936 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3937 methods and destructor. Remove members.
3938 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3939 (ravenscar_thread_target::store_registers)
3940 (ravenscar_thread_target::prepare_to_store): Update.
3941 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
3943 (struct ppc_ravenscar_powerpc_ops): Derive from
3945 (ppc_ravenscar_powerpc_ops::fetch_registers)
3946 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
3947 (ppc_ravenscar_powerpc_ops): Redefine.
3948 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
3949 (ppc_ravenscar_e500_ops::fetch_registers)
3950 (ppc_ravenscar_e500_ops::store_registers): Now methods.
3951 (ppc_ravenscar_e500_ops): Redefine.
3952 * aarch64-ravenscar-thread.c
3953 (aarch64_ravenscar_generic_prepare_to_store): Remove.
3954 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
3955 (aarch64_ravenscar_fetch_registers)
3956 (aarch64_ravenscar_store_registers): Now methods.
3957 (aarch64_ravenscar_ops): Redefine.
3959 2019-02-15 Tom Tromey <tromey@adacore.com>
3961 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
3962 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3963 (ravenscar_thread_target::stopped_by_watchpoint)
3964 (ravenscar_thread_target::stopped_data_address)
3965 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
3967 2019-02-15 Tom Tromey <tromey@adacore.com>
3969 * ravenscar-thread.c: Fix some typos.
3971 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3972 Tom Tromey <tromey@adacore.com>
3974 * ada-lang.c (ada_exception_sal): Change addr_string to a
3976 (create_ada_exception_catchpoint): Update.
3978 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3979 Tom Tromey <tromey@adacore.com>
3981 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
3982 (bp_location_ops): Remove.
3983 (base_breakpoint_allocate_location): Update.
3984 (free_bp_location): Update.
3985 * ada-lang.c (class ada_catchpoint_location)
3986 <ada_catchpoint_location>: Remove ops parameter.
3987 (ada_catchpoint_location_dtor): Remove.
3988 (ada_catchpoint_location_ops): Remove.
3989 (allocate_location_exception): Update.
3990 * breakpoint.h (struct bp_location_ops): Remove.
3991 (class bp_location) <bp_location>: Remove bp_location_ops
3993 <~bp_location>: Add destructor.
3996 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3997 Pedro Alves <palves@redhat.com>
3999 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4002 2019-02-14 David Michael <fedora.dm0@gmail.com>
4003 Samuel Thibault <samuel.thibault@gnu.org>
4004 Thomas Schwinge <thomas@codesourcery.com>
4006 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4007 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4009 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4011 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4012 (check_empty): Use "const char *".
4014 * gnu-nat.c (gnu_nat_target::detach): Instead of
4015 'detach_inferior (pid)' call
4016 'detach_inferior (find_inferior_pid (pid))'.
4018 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4019 'nat/fork-inferior.o'.
4020 * gnu-nat.c: #include "nat/fork-inferior.h".
4022 * gnu-nat.c (gnu_nat_target::detach): Instead of
4023 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4024 * gnu-nat.h: #include "inf-child.h".
4025 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4026 'i386_gnu_nat_target::fetch_registers'.
4027 (gnu_store_registers): Rename/move to
4028 'i386_gnu_nat_target::store_registers'.
4030 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4031 * gnu-nat.h (mach_thread_info): New function.
4032 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4034 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4036 2019-02-14 Frederic Konrad <konrad@adacore.com>
4038 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4040 2019-02-14 Joel Brobecker <brobecker@adacore.com>
4042 * windows-nat.c (windows_add_thread): Add new parameter
4043 "main_thread_p" with default value set to false. Update
4044 function documentation as well as all callers.
4045 (windows_delete_thread): Likewise.
4046 (fake_create_process): Update call to windows_add_thread.
4047 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4048 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4049 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4050 call to windows_delete_thread.
4052 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4054 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4056 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4058 * symfile.c (find_separate_debug_file): Use canonical path of
4059 sysroot with child_path instead of gdb_sysroot if it is valid.
4061 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4063 * symfile.c (find_separate_debug_file): Use child_path to
4064 determine if an object file is under a sysroot.
4066 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4068 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4069 unittests/child-path-selftests.c.
4070 * common/pathstuff.c (child_path): New function.
4071 * common/pathstuff.h (child_path): New prototype.
4072 * unittests/child-path-selftests.c: New file.
4074 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4076 * symfile.c (find_separate_debug_file): Look for separate debug
4077 files in debug directories under the sysroot.
4079 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4081 * symtab.h (struct minimal_symbol data_p): New const method.
4082 (struct minimal_symbol text_p): Likewise.
4083 * symtab.c (output_source_filename): Use file name style
4085 (print_symbol_info): Likewise.
4086 (print_msymbol_info): Use address style to print addresses.
4087 Use function name style to print executable text symbols.
4088 (expand_symtab_containing_pc): Use data_p.
4089 (find_pc_sect_compunit_symtab): Likewise.
4091 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4093 * breakpoint.c (describe_other_breakpoints): Use address style
4095 (say_where): Likewise.
4097 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4099 * ada-typeprint.c (print_func_type): Print function name
4100 style to print function name.
4101 * c-typeprint.c (c_print_type_1): Likewise.
4103 2019-02-11 Alan Hayward <alan.hayward@arm.com>
4105 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4108 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4110 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4113 2019-02-10 Joel Brobecker <brobecker@adacore.com>
4115 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4116 TYPE_CODE_REF types.
4118 2019-02-08 Jim Wilson <jimw@sifive.com>
4120 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4121 (riscv_linux_fregset): New.
4122 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4124 2019-02-07 Tom Tromey <tom@tromey.com>
4126 * thread.c (thread_cancel_execution_command): Update.
4127 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4129 (struct thread_fsm_ops): Remove.
4130 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4131 (thread_fsm_should_stop, thread_fsm_return_value)
4132 (thread_fsm_set_finished, thread_fsm_finished_p)
4133 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4135 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4136 * infrun.c (clear_proceed_status_thread)
4137 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4138 (print_stop_event): Update.
4139 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4141 (step_command_fsm_ops): Remove.
4142 (new_step_command_fsm): Remove.
4144 (step_command_fsm::should_stop): Rename from
4145 step_command_fsm_should_stop.
4146 (step_command_fsm::clean_up): Rename from
4147 step_command_fsm_clean_up.
4148 (step_command_fsm::do_async_reply_reason): Rename from
4149 step_command_fsm_async_reply_reason.
4150 (struct until_next_fsm): Inherit from thread_fsm. Add
4152 (until_next_fsm_ops): Remove.
4153 (new_until_next_fsm): Remove.
4154 (until_next_fsm::should_stop): Rename from
4155 until_next_fsm_should_stop.
4156 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4157 (until_next_fsm::do_async_reply_reason): Rename from
4158 until_next_fsm_async_reply_reason.
4159 (struct finish_command_fsm): Inherit from thread_fsm. Add
4160 constructor. Change type of breakpoint.
4161 (finish_command_fsm_ops): Remove.
4162 (new_finish_command_fsm): Remove.
4163 (finish_command_fsm::should_stop): Rename from
4164 finish_command_fsm_should_stop.
4165 (finish_command_fsm::clean_up): Rename from
4166 finish_command_fsm_clean_up.
4167 (finish_command_fsm::return_value): Rename from
4168 finish_command_fsm_return_value.
4169 (finish_command_fsm::do_async_reply_reason): Rename from
4170 finish_command_fsm_async_reply_reason.
4171 (finish_command): Update.
4172 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4174 (call_thread_fsm_ops): Remove.
4175 (call_thread_fsm::call_thread_fsm): Rename from
4176 new_call_thread_fsm.
4177 (call_thread_fsm::should_stop): Rename from
4178 call_thread_fsm_should_stop.
4179 (call_thread_fsm::should_notify_stop): Rename from
4180 call_thread_fsm_should_notify_stop.
4181 (run_inferior_call, call_function_by_hand_dummy): Update.
4182 * cli/cli-interp.c (should_print_stop_to_console): Update.
4183 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4184 Add constructor. Change type of location_breakpoint,
4186 (until_break_fsm_ops): Remove.
4187 (new_until_break_fsm): Remove.
4188 (until_break_fsm::should_stop): Rename from
4189 until_break_fsm_should_stop.
4190 (until_break_fsm::clean_up): Rename from
4191 until_break_fsm_clean_up.
4192 (until_break_fsm::do_async_reply_reason): Rename from
4193 until_break_fsm_async_reply_reason.
4194 (until_break_command): Update.
4195 * thread-fsm.c: Remove.
4196 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4198 2019-02-07 Tom Tromey <tom@tromey.com>
4200 * yy-remap.h: Add include guard.
4201 * xtensa-tdep.h: Add include guard.
4202 * xcoffread.h: Rename include guard.
4203 * varobj-iter.h: Add include guard.
4204 * tui/tui.h: Rename include guard.
4205 * tui/tui-winsource.h: Rename include guard.
4206 * tui/tui-wingeneral.h: Rename include guard.
4207 * tui/tui-windata.h: Rename include guard.
4208 * tui/tui-win.h: Rename include guard.
4209 * tui/tui-stack.h: Rename include guard.
4210 * tui/tui-source.h: Rename include guard.
4211 * tui/tui-regs.h: Rename include guard.
4212 * tui/tui-out.h: Rename include guard.
4213 * tui/tui-layout.h: Rename include guard.
4214 * tui/tui-io.h: Rename include guard.
4215 * tui/tui-hooks.h: Rename include guard.
4216 * tui/tui-file.h: Rename include guard.
4217 * tui/tui-disasm.h: Rename include guard.
4218 * tui/tui-data.h: Rename include guard.
4219 * tui/tui-command.h: Rename include guard.
4220 * tic6x-tdep.h: Add include guard.
4221 * target/waitstatus.h: Rename include guard.
4222 * target/wait.h: Rename include guard.
4223 * target/target.h: Rename include guard.
4224 * target/resume.h: Rename include guard.
4225 * target-float.h: Rename include guard.
4226 * stabsread.h: Add include guard.
4227 * rs6000-tdep.h: Add include guard.
4228 * riscv-fbsd-tdep.h: Add include guard.
4229 * regformats/regdef.h: Rename include guard.
4230 * record.h: Rename include guard.
4231 * python/python.h: Rename include guard.
4232 * python/python-internal.h: Rename include guard.
4233 * python/py-stopevent.h: Rename include guard.
4234 * python/py-ref.h: Rename include guard.
4235 * python/py-record.h: Rename include guard.
4236 * python/py-record-full.h: Rename include guard.
4237 * python/py-record-btrace.h: Rename include guard.
4238 * python/py-instruction.h: Rename include guard.
4239 * python/py-events.h: Rename include guard.
4240 * python/py-event.h: Rename include guard.
4241 * procfs.h: Add include guard.
4242 * proc-utils.h: Add include guard.
4243 * p-lang.h: Add include guard.
4244 * or1k-tdep.h: Rename include guard.
4245 * observable.h: Rename include guard.
4246 * nto-tdep.h: Rename include guard.
4247 * nat/x86-linux.h: Rename include guard.
4248 * nat/x86-linux-dregs.h: Rename include guard.
4249 * nat/x86-gcc-cpuid.h: Add include guard.
4250 * nat/x86-dregs.h: Rename include guard.
4251 * nat/x86-cpuid.h: Rename include guard.
4252 * nat/ppc-linux.h: Rename include guard.
4253 * nat/mips-linux-watch.h: Rename include guard.
4254 * nat/linux-waitpid.h: Rename include guard.
4255 * nat/linux-ptrace.h: Rename include guard.
4256 * nat/linux-procfs.h: Rename include guard.
4257 * nat/linux-osdata.h: Rename include guard.
4258 * nat/linux-nat.h: Rename include guard.
4259 * nat/linux-namespaces.h: Rename include guard.
4260 * nat/linux-btrace.h: Rename include guard.
4261 * nat/glibc_thread_db.h: Rename include guard.
4262 * nat/gdb_thread_db.h: Rename include guard.
4263 * nat/gdb_ptrace.h: Rename include guard.
4264 * nat/fork-inferior.h: Rename include guard.
4265 * nat/amd64-linux-siginfo.h: Rename include guard.
4266 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
4267 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
4268 * nat/aarch64-linux.h: Rename include guard.
4269 * nat/aarch64-linux-hw-point.h: Rename include guard.
4270 * mn10300-tdep.h: Add include guard.
4271 * mips-linux-tdep.h: Add include guard.
4272 * mi/mi-parse.h: Rename include guard.
4273 * mi/mi-out.h: Rename include guard.
4274 * mi/mi-main.h: Rename include guard.
4275 * mi/mi-interp.h: Rename include guard.
4276 * mi/mi-getopt.h: Rename include guard.
4277 * mi/mi-console.h: Rename include guard.
4278 * mi/mi-common.h: Rename include guard.
4279 * mi/mi-cmds.h: Rename include guard.
4280 * mi/mi-cmd-break.h: Rename include guard.
4281 * m2-lang.h: Add include guard.
4282 * location.h: Rename include guard.
4283 * linux-record.h: Rename include guard.
4284 * linux-nat.h: Add include guard.
4285 * linux-fork.h: Add include guard.
4286 * i386-darwin-tdep.h: Rename include guard.
4287 * hppa-linux-offsets.h: Add include guard.
4288 * guile/guile.h: Rename include guard.
4289 * guile/guile-internal.h: Rename include guard.
4290 * gnu-nat.h: Rename include guard.
4291 * gdb-stabs.h: Rename include guard.
4292 * frv-tdep.h: Add include guard.
4293 * f-lang.h: Add include guard.
4294 * event-loop.h: Add include guard.
4295 * darwin-nat.h: Rename include guard.
4296 * cp-abi.h: Rename include guard.
4297 * config/sparc/nm-sol2.h: Rename include guard.
4298 * config/nm-nto.h: Rename include guard.
4299 * config/nm-linux.h: Add include guard.
4300 * config/i386/nm-i386gnu.h: Rename include guard.
4301 * config/djgpp/nl_types.h: Rename include guard.
4302 * config/djgpp/langinfo.h: Rename include guard.
4303 * compile/gcc-cp-plugin.h: Add include guard.
4304 * compile/gcc-c-plugin.h: Add include guard.
4305 * compile/compile.h: Rename include guard.
4306 * compile/compile-object-run.h: Rename include guard.
4307 * compile/compile-object-load.h: Rename include guard.
4308 * compile/compile-internal.h: Rename include guard.
4309 * compile/compile-cplus.h: Rename include guard.
4310 * compile/compile-c.h: Rename include guard.
4311 * common/xml-utils.h: Rename include guard.
4312 * common/x86-xstate.h: Rename include guard.
4313 * common/version.h: Rename include guard.
4314 * common/vec.h: Rename include guard.
4315 * common/tdesc.h: Rename include guard.
4316 * common/selftest.h: Rename include guard.
4317 * common/scoped_restore.h: Rename include guard.
4318 * common/scoped_mmap.h: Rename include guard.
4319 * common/scoped_fd.h: Rename include guard.
4320 * common/safe-iterator.h: Rename include guard.
4321 * common/run-time-clock.h: Rename include guard.
4322 * common/refcounted-object.h: Rename include guard.
4323 * common/queue.h: Rename include guard.
4324 * common/ptid.h: Rename include guard.
4325 * common/print-utils.h: Rename include guard.
4326 * common/preprocessor.h: Rename include guard.
4327 * common/pathstuff.h: Rename include guard.
4328 * common/observable.h: Rename include guard.
4329 * common/netstuff.h: Rename include guard.
4330 * common/job-control.h: Rename include guard.
4331 * common/host-defs.h: Rename include guard.
4332 * common/gdb_wait.h: Rename include guard.
4333 * common/gdb_vecs.h: Rename include guard.
4334 * common/gdb_unlinker.h: Rename include guard.
4335 * common/gdb_unique_ptr.h: Rename include guard.
4336 * common/gdb_tilde_expand.h: Rename include guard.
4337 * common/gdb_sys_time.h: Rename include guard.
4338 * common/gdb_string_view.h: Rename include guard.
4339 * common/gdb_splay_tree.h: Rename include guard.
4340 * common/gdb_setjmp.h: Rename include guard.
4341 * common/gdb_ref_ptr.h: Rename include guard.
4342 * common/gdb_optional.h: Rename include guard.
4343 * common/gdb_locale.h: Rename include guard.
4344 * common/gdb_assert.h: Rename include guard.
4345 * common/filtered-iterator.h: Rename include guard.
4346 * common/filestuff.h: Rename include guard.
4347 * common/fileio.h: Rename include guard.
4348 * common/environ.h: Rename include guard.
4349 * common/common-utils.h: Rename include guard.
4350 * common/common-types.h: Rename include guard.
4351 * common/common-regcache.h: Rename include guard.
4352 * common/common-inferior.h: Rename include guard.
4353 * common/common-gdbthread.h: Rename include guard.
4354 * common/common-exceptions.h: Rename include guard.
4355 * common/common-defs.h: Rename include guard.
4356 * common/common-debug.h: Rename include guard.
4357 * common/cleanups.h: Rename include guard.
4358 * common/buffer.h: Rename include guard.
4359 * common/btrace-common.h: Rename include guard.
4360 * common/break-common.h: Rename include guard.
4361 * cli/cli-utils.h: Rename include guard.
4362 * cli/cli-style.h: Rename include guard.
4363 * cli/cli-setshow.h: Rename include guard.
4364 * cli/cli-script.h: Rename include guard.
4365 * cli/cli-interp.h: Rename include guard.
4366 * cli/cli-decode.h: Rename include guard.
4367 * cli/cli-cmds.h: Rename include guard.
4368 * charset-list.h: Add include guard.
4369 * buildsym-legacy.h: Rename include guard.
4370 * bfin-tdep.h: Add include guard.
4371 * ax.h: Rename include guard.
4372 * arm-linux-tdep.h: Add include guard.
4373 * arm-fbsd-tdep.h: Add include guard.
4374 * arch/xtensa.h: Rename include guard.
4375 * arch/tic6x.h: Add include guard.
4376 * arch/i386.h: Add include guard.
4377 * arch/arm.h: Rename include guard.
4378 * arch/arm-linux.h: Rename include guard.
4379 * arch/arm-get-next-pcs.h: Rename include guard.
4380 * arch/amd64.h: Add include guard.
4381 * arch/aarch64-insn.h: Rename include guard.
4382 * arch-utils.h: Rename include guard.
4383 * annotate.h: Add include guard.
4384 * amd64-darwin-tdep.h: Rename include guard.
4385 * aarch64-linux-tdep.h: Add include guard.
4386 * aarch64-fbsd-tdep.h: Add include guard.
4387 * aarch32-linux-nat.h: Add include guard.
4389 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4391 * macrotab.c (macro_define_internal): New function that
4392 factorizes macro_define_object_internal and macro_define_function
4394 (macro_define_object_internal): Use macro_define_internal.
4395 (macro_define_function): Likewise.
4397 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4399 * macrocmd.c (extract_identifier): Return
4400 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
4403 2019-02-06 John Baldwin <jhb@FreeBSD.org>
4405 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
4407 2019-02-05 Tom Tromey <tom@tromey.com>
4409 * target.c (target_stack::unpush): Move assertion earlier.
4411 2019-01-30 Tom Tromey <tom@tromey.com>
4414 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
4415 (gdbpy_parse_and_eval): Likewise.
4416 * python/python-internal.h (gdbpy_allow_threads): New class.
4418 2019-01-28 John Baldwin <jhb@FreeBSD.org>
4420 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
4421 (aarch64_fbsd_fpregmap): Move earlier.
4422 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
4423 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4424 instead of individual calls to trad_frame_set_reg_addr.
4425 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
4427 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
4428 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4429 instead of individual calls to trad_frame_set_reg_addr.
4431 2019-01-28 Alan Hayward <alan.hayward@arm.com>
4433 * CONTRIBUTE: Replace contribution list with wiki link.
4435 2019-01-25 Tom Tromey <tom@tromey.com>
4437 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
4439 2019-01-25 Tom Tromey <tom@tromey.com>
4441 * xtensa-linux-nat.c: Fix common/ includes.
4442 * xml-support.h: Fix common/ includes.
4443 * xml-support.c: Fix common/ includes.
4444 * x86-linux-nat.c: Fix common/ includes.
4445 * windows-nat.c: Fix common/ includes.
4446 * varobj.h: Fix common/ includes.
4447 * varobj.c: Fix common/ includes.
4448 * value.c: Fix common/ includes.
4449 * valops.c: Fix common/ includes.
4450 * utils.c: Fix common/ includes.
4451 * unittests/xml-utils-selftests.c: Fix common/ includes.
4452 * unittests/utils-selftests.c: Fix common/ includes.
4453 * unittests/unpack-selftests.c: Fix common/ includes.
4454 * unittests/tracepoint-selftests.c: Fix common/ includes.
4455 * unittests/style-selftests.c: Fix common/ includes.
4456 * unittests/string_view-selftests.c: Fix common/ includes.
4457 * unittests/scoped_restore-selftests.c: Fix common/ includes.
4458 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
4459 * unittests/scoped_fd-selftests.c: Fix common/ includes.
4460 * unittests/rsp-low-selftests.c: Fix common/ includes.
4461 * unittests/parse-connection-spec-selftests.c: Fix common/
4463 * unittests/optional-selftests.c: Fix common/ includes.
4464 * unittests/offset-type-selftests.c: Fix common/ includes.
4465 * unittests/observable-selftests.c: Fix common/ includes.
4466 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
4467 * unittests/memrange-selftests.c: Fix common/ includes.
4468 * unittests/memory-map-selftests.c: Fix common/ includes.
4469 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
4470 * unittests/function-view-selftests.c: Fix common/ includes.
4471 * unittests/environ-selftests.c: Fix common/ includes.
4472 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
4473 * unittests/common-utils-selftests.c: Fix common/ includes.
4474 * unittests/cli-utils-selftests.c: Fix common/ includes.
4475 * unittests/array-view-selftests.c: Fix common/ includes.
4476 * ui-file.c: Fix common/ includes.
4477 * tui/tui-io.c: Fix common/ includes.
4478 * tracepoint.h: Fix common/ includes.
4479 * tracepoint.c: Fix common/ includes.
4480 * tracefile-tfile.c: Fix common/ includes.
4481 * top.h: Fix common/ includes.
4482 * top.c: Fix common/ includes.
4483 * thread.c: Fix common/ includes.
4484 * target/waitstatus.h: Fix common/ includes.
4485 * target/waitstatus.c: Fix common/ includes.
4486 * target.h: Fix common/ includes.
4487 * target.c: Fix common/ includes.
4488 * target-memory.c: Fix common/ includes.
4489 * target-descriptions.c: Fix common/ includes.
4490 * symtab.h: Fix common/ includes.
4491 * symfile.c: Fix common/ includes.
4492 * stap-probe.c: Fix common/ includes.
4493 * spu-linux-nat.c: Fix common/ includes.
4494 * sparc-nat.c: Fix common/ includes.
4495 * source.c: Fix common/ includes.
4496 * solib.c: Fix common/ includes.
4497 * solib-target.c: Fix common/ includes.
4498 * ser-unix.c: Fix common/ includes.
4499 * ser-tcp.c: Fix common/ includes.
4500 * ser-pipe.c: Fix common/ includes.
4501 * ser-base.c: Fix common/ includes.
4502 * selftest-arch.c: Fix common/ includes.
4503 * s12z-tdep.c: Fix common/ includes.
4504 * rust-exp.y: Fix common/ includes.
4505 * rs6000-aix-tdep.c: Fix common/ includes.
4506 * riscv-tdep.c: Fix common/ includes.
4507 * remote.c: Fix common/ includes.
4508 * remote-notif.h: Fix common/ includes.
4509 * remote-fileio.h: Fix common/ includes.
4510 * remote-fileio.c: Fix common/ includes.
4511 * regcache.h: Fix common/ includes.
4512 * regcache.c: Fix common/ includes.
4513 * record-btrace.c: Fix common/ includes.
4514 * python/python.c: Fix common/ includes.
4515 * python/py-type.c: Fix common/ includes.
4516 * python/py-inferior.c: Fix common/ includes.
4517 * progspace.h: Fix common/ includes.
4518 * producer.c: Fix common/ includes.
4519 * procfs.c: Fix common/ includes.
4520 * proc-api.c: Fix common/ includes.
4521 * printcmd.c: Fix common/ includes.
4522 * ppc-linux-nat.c: Fix common/ includes.
4523 * parser-defs.h: Fix common/ includes.
4524 * osdata.c: Fix common/ includes.
4525 * obsd-nat.c: Fix common/ includes.
4526 * nat/x86-linux.c: Fix common/ includes.
4527 * nat/x86-linux-dregs.c: Fix common/ includes.
4528 * nat/x86-dregs.h: Fix common/ includes.
4529 * nat/x86-dregs.c: Fix common/ includes.
4530 * nat/ppc-linux.c: Fix common/ includes.
4531 * nat/mips-linux-watch.h: Fix common/ includes.
4532 * nat/mips-linux-watch.c: Fix common/ includes.
4533 * nat/linux-waitpid.c: Fix common/ includes.
4534 * nat/linux-ptrace.h: Fix common/ includes.
4535 * nat/linux-ptrace.c: Fix common/ includes.
4536 * nat/linux-procfs.c: Fix common/ includes.
4537 * nat/linux-personality.c: Fix common/ includes.
4538 * nat/linux-osdata.c: Fix common/ includes.
4539 * nat/linux-namespaces.c: Fix common/ includes.
4540 * nat/linux-btrace.h: Fix common/ includes.
4541 * nat/linux-btrace.c: Fix common/ includes.
4542 * nat/fork-inferior.c: Fix common/ includes.
4543 * nat/amd64-linux-siginfo.c: Fix common/ includes.
4544 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
4545 * nat/aarch64-linux.c: Fix common/ includes.
4546 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
4547 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
4548 * namespace.h: Fix common/ includes.
4549 * mips-linux-tdep.c: Fix common/ includes.
4550 * minsyms.c: Fix common/ includes.
4551 * mi/mi-parse.h: Fix common/ includes.
4552 * mi/mi-main.c: Fix common/ includes.
4553 * mi/mi-cmd-env.c: Fix common/ includes.
4554 * memrange.h: Fix common/ includes.
4555 * memattr.c: Fix common/ includes.
4556 * maint.h: Fix common/ includes.
4557 * maint.c: Fix common/ includes.
4558 * main.c: Fix common/ includes.
4559 * machoread.c: Fix common/ includes.
4560 * location.c: Fix common/ includes.
4561 * linux-thread-db.c: Fix common/ includes.
4562 * linux-nat.c: Fix common/ includes.
4563 * linux-fork.c: Fix common/ includes.
4564 * inline-frame.c: Fix common/ includes.
4565 * infrun.c: Fix common/ includes.
4566 * inflow.c: Fix common/ includes.
4567 * inferior.h: Fix common/ includes.
4568 * inferior.c: Fix common/ includes.
4569 * infcmd.c: Fix common/ includes.
4570 * inf-ptrace.c: Fix common/ includes.
4571 * inf-child.c: Fix common/ includes.
4572 * ia64-linux-nat.c: Fix common/ includes.
4573 * i387-tdep.c: Fix common/ includes.
4574 * i386-tdep.c: Fix common/ includes.
4575 * i386-linux-tdep.c: Fix common/ includes.
4576 * i386-linux-nat.c: Fix common/ includes.
4577 * i386-go32-tdep.c: Fix common/ includes.
4578 * i386-fbsd-tdep.c: Fix common/ includes.
4579 * i386-fbsd-nat.c: Fix common/ includes.
4580 * guile/scm-type.c: Fix common/ includes.
4581 * guile/guile.c: Fix common/ includes.
4582 * go32-nat.c: Fix common/ includes.
4583 * gnu-nat.c: Fix common/ includes.
4584 * gdbthread.h: Fix common/ includes.
4585 * gdbarch-selftests.c: Fix common/ includes.
4586 * gdb_usleep.c: Fix common/ includes.
4587 * gdb_select.h: Fix common/ includes.
4588 * gdb_bfd.c: Fix common/ includes.
4589 * gcore.c: Fix common/ includes.
4590 * fork-child.c: Fix common/ includes.
4591 * findvar.c: Fix common/ includes.
4592 * fbsd-nat.c: Fix common/ includes.
4593 * event-top.c: Fix common/ includes.
4594 * event-loop.c: Fix common/ includes.
4595 * dwarf2read.c: Fix common/ includes.
4596 * dwarf2loc.c: Fix common/ includes.
4597 * dwarf2-frame.c: Fix common/ includes.
4598 * dwarf-index-cache.c: Fix common/ includes.
4599 * dtrace-probe.c: Fix common/ includes.
4600 * disasm-selftests.c: Fix common/ includes.
4601 * defs.h: Fix common/ includes.
4602 * csky-tdep.c: Fix common/ includes.
4603 * cp-valprint.c: Fix common/ includes.
4604 * cp-support.h: Fix common/ includes.
4605 * cp-support.c: Fix common/ includes.
4606 * corelow.c: Fix common/ includes.
4607 * completer.h: Fix common/ includes.
4608 * completer.c: Fix common/ includes.
4609 * compile/compile.c: Fix common/ includes.
4610 * compile/compile-loc2c.c: Fix common/ includes.
4611 * compile/compile-cplus-types.c: Fix common/ includes.
4612 * compile/compile-cplus-symbols.c: Fix common/ includes.
4613 * command.h: Fix common/ includes.
4614 * cli/cli-dump.c: Fix common/ includes.
4615 * cli/cli-cmds.c: Fix common/ includes.
4616 * charset.c: Fix common/ includes.
4617 * build-id.c: Fix common/ includes.
4618 * btrace.h: Fix common/ includes.
4619 * btrace.c: Fix common/ includes.
4620 * breakpoint.h: Fix common/ includes.
4621 * breakpoint.c: Fix common/ includes.
4623 (enum agent_op): Fix common/ includes.
4624 * ax-general.c (struct aop_map): Fix common/ includes.
4625 * ax-gdb.c: Fix common/ includes.
4626 * auxv.c: Fix common/ includes.
4627 * auto-load.c: Fix common/ includes.
4628 * arm-tdep.c: Fix common/ includes.
4629 * arch/riscv.c: Fix common/ includes.
4630 * arch/ppc-linux-common.c: Fix common/ includes.
4631 * arch/i386.c: Fix common/ includes.
4632 * arch/arm.c: Fix common/ includes.
4633 * arch/arm-linux.c: Fix common/ includes.
4634 * arch/arm-get-next-pcs.c: Fix common/ includes.
4635 * arch/amd64.c: Fix common/ includes.
4636 * arch/aarch64.c: Fix common/ includes.
4637 * arch/aarch64-insn.c: Fix common/ includes.
4638 * arch-utils.c: Fix common/ includes.
4639 * amd64-windows-tdep.c: Fix common/ includes.
4640 * amd64-tdep.c: Fix common/ includes.
4641 * amd64-sol2-tdep.c: Fix common/ includes.
4642 * amd64-obsd-tdep.c: Fix common/ includes.
4643 * amd64-nbsd-tdep.c: Fix common/ includes.
4644 * amd64-linux-tdep.c: Fix common/ includes.
4645 * amd64-linux-nat.c: Fix common/ includes.
4646 * amd64-fbsd-tdep.c: Fix common/ includes.
4647 * amd64-fbsd-nat.c: Fix common/ includes.
4648 * amd64-dicos-tdep.c: Fix common/ includes.
4649 * amd64-darwin-tdep.c: Fix common/ includes.
4650 * agent.c: Fix common/ includes.
4651 * ada-lang.h: Fix common/ includes.
4652 * ada-lang.c: Fix common/ includes.
4653 * aarch64-tdep.c: Fix common/ includes.
4655 2019-01-25 Tom Tromey <tom@tromey.com>
4657 * common/create-version.sh: Use common/version.h.
4659 2019-01-24 Pedro Alves <palves@redhat.com>
4661 * infrun.c (signal_stop, signal_print, signal_program)
4662 (signal_catch, signal_pass): Now arrays instead of pointers.
4663 (update_signals_program_target, do_target_resume)
4664 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
4665 * linux-nat.c (linux_nat_target::pass_signals)
4666 (linux_nat_target::create_inferior, linux_nat_target::attach):
4668 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
4669 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
4670 * procfs.c (procfs_target::pass_signals): Adjust.
4671 * record-full.c (record_full_target::resume): Adjust.
4672 * remote.c (remote_target::pass_signals)
4673 (remote_target::program_signals): Adjust.
4674 * target-debug.h (target_debug_print_signals): Now takes a
4675 gdb::array_view as parameter. Adjust.
4676 * target.h (target_ops) <pass_signals, program_signals>: Replace
4677 pointer and length parameters with gdb::array_view.
4678 (target_pass_signals, target_program_signals): Likewise.
4679 * target-delegates.c: Regenerate.
4681 2019-01-24 Pedro Alves <palves@redhat.com>
4683 * common/forward-scope-exit.h
4684 (forward_scope_exit::forward_scope_exit): Pass arguments to
4685 m_bind_function directly, instead of creating a std::bind and
4688 2019-01-24 Alan Hayward <alan.hayward@arm.com>
4690 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4692 (pass_in_v_vfp_candidate): Likewise.
4694 2019-01-23 Tom Tromey <tom@tromey.com>
4695 Pedro Alves <palves@redhat.com>
4697 * regcache.c (class regcache_invalidator): Remove.
4698 (regcache::raw_write): Use make_scope_exit.
4700 2019-01-23 Tom Tromey <tom@tromey.com>
4702 * ui-out.h (class ui_out_emit_type): Update comment.
4704 2019-01-23 Tom Tromey <tom@tromey.com>
4706 * infrun.c (fetch_inferior_event): Update comment.
4708 2019-01-23 Tom Tromey <tom@tromey.com>
4709 Pedro Alves <palves@redhat.com>
4711 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
4713 (fetch_inferior_event): Use SCOPE_EXIT.
4716 2019-01-23 Tom Tromey <tom@tromey.com>
4717 Pedro Alves <palves@redhat.com>
4719 * infrun.c (disable_thread_events): Delete.
4720 (stop_all_threads): Use SCOPE_EXIT.
4722 2019-01-23 Tom Tromey <tom@tromey.com>
4723 Pedro Alves <palves@redhat.com>
4725 * symfile.c: Include forward-scope-exit.h.
4726 (clear_symtab_users_cleanup): Replace forward declaration with
4727 a FORWARD_SCOPE_EXIT.
4728 (syms_from_objfile_1): Use the forward_scope_exit and
4729 gdb::optional instead of cleanup_function.
4730 (reread_symbols): Use the forward_scope_exit instead of
4732 (clear_symtab_users_cleanup): Remove function.
4734 2019-01-23 Tom Tromey <tom@tromey.com>
4735 Pedro Alves <palves@redhat.com>
4737 * linux-nat.c: Include scope-exit.h.
4738 (cleanup_target_stop): Remove.
4739 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4742 2019-01-23 Tom Tromey <tom@tromey.com>
4743 Pedro Alves <palves@redhat.com>
4745 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4746 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4748 2019-01-23 Tom Tromey <tom@tromey.com>
4749 Andrew Burgess <andrew.burgess@embecosm.com>
4750 Pedro Alves <palves@redhat.com>
4752 * infrun.c (fetch_inferior_event): Use scope_exit.
4753 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4754 * top.c (execute_command): Use scope_exit.
4755 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4756 * utils.c (do_bpstat_clear_actions_cleanup)
4757 (make_bpstat_clear_actions_cleanup): Remove.
4759 2019-01-23 Tom Tromey <tom@tromey.com>
4760 Pedro Alves <palves@redhat.com>
4762 * infrun.c: Include "common/scope-exit.h"
4763 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4764 (wait_for_inferior): Use SCOPE_EXIT.
4765 (fetch_inferior_event): Use scope_exit.
4767 2019-01-23 Tom Tromey <tom@tromey.com>
4768 Pedro Alves <palves@redhat.com>
4770 * breakpoint.c (create_breakpoint): Remove cleanup.
4772 2019-01-23 Tom Tromey <tom@tromey.com>
4773 Andrew Burgess <andrew.burgess@embecosm.com>
4774 Pedro Alves <palves@redhat.com>
4776 2019-01-23 Pedro Alves <palves@redhat.com>
4778 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4780 2019-01-23 Pedro Alves <palves@redhat.com>
4781 Andrew Burgess <andrew.burgess@embecosm.com>
4783 * gdbthread.h: Include "common/forward-scope-exit.h".
4784 (scoped_finish_thread_state): Redefine custom class in terms of
4787 2019-01-23 Pedro Alves <palves@redhat.com>
4788 Andrew Burgess <andrew.burgess@embecosm.com>
4790 * common/forward-scope-exit.h: New file.
4792 2019-01-23 Pedro Alves <palves@redhat.com>
4793 Andrew Burgess <andrew.burgess@embecosm.com>
4794 Tom Tromey <tom@tromey.com>
4796 * common/scope-exit.h: New file.
4798 2019-01-23 Pedro Alves <palves@redhat.com>
4800 * common/preprocessor.h (ESC): Rename to ...
4801 (ESC_PARENS): ... this.
4802 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4803 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4805 2019-01-23 Tom Tromey <tom@tromey.com>
4807 * language.h (class scoped_switch_to_sym_language_if_auto):
4808 Initialize m_lang in both cases.
4810 2019-01-23 Alan Hayward <alan.hayward@arm.com>
4812 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4815 2019-01-22 Tom Tromey <tom@tromey.com>
4817 * corelow.c: Do not include sys/file.h.
4819 2019-01-22 Tom Tromey <tom@tromey.com>
4821 * tui/tui-wingeneral.h: Include gdb_curses.h.
4823 2019-01-22 Tom Tromey <tom@tromey.com>
4825 * source-cache.h (class source_cache) <get_source_lines,
4826 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4828 2019-01-22 Tom Tromey <tom@tromey.com>
4830 * remote-fileio.h (struct remote_target): Declare.
4832 2019-01-22 Tom Tromey <tom@tromey.com>
4834 * python/py-arch.c: Do not include py-ref.h.
4835 * python/py-bpevent.c: Do not include py-ref.h.
4836 * python/py-cmd.c: Do not include py-ref.h.
4837 * python/py-continueevent.c: Do not include py-ref.h.
4838 * python/py-event.h: Do not include py-ref.h.
4839 * python/py-evtregistry.c: Do not include py-ref.h.
4840 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4841 * python/py-frame.c: Do not include py-ref.h.
4842 * python/py-framefilter.c: Do not include py-ref.h.
4843 * python/py-function.c: Do not include py-ref.h.
4844 * python/py-infevents.c: Do not include py-ref.h.
4845 * python/py-linetable.c: Do not include py-ref.h.
4846 * python/py-objfile.c: Do not include py-ref.h.
4847 * python/py-param.c: Do not include py-ref.h.
4848 * python/py-prettyprint.c: Do not include py-ref.h.
4849 * python/py-progspace.c: Do not include py-ref.h.
4850 * python/py-symbol.c: Do not include py-ref.h.
4851 * python/py-symtab.c: Do not include py-ref.h.
4852 * python/py-type.c: Do not include py-ref.h.
4853 * python/py-unwind.c: Do not include py-ref.h.
4854 * python/py-utils.c: Do not include py-ref.h.
4855 * python/py-value.c: Do not include py-ref.h.
4856 * python/py-varobj.c: Do not include py-ref.h.
4857 * python/py-xmethods.c: Do not include py-ref.h.
4858 * python/python.c: Do not include py-ref.h.
4859 * varobj.c: Do not include py-ref.h.
4861 2019-01-22 Tom Tromey <tom@tromey.com>
4863 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4866 2019-01-22 Tom Tromey <tom@tromey.com>
4868 * compile/compile-cplus-types.c: Remove a comment by #include.
4870 2019-01-22 Tom Tromey <tom@tromey.com>
4872 * compile/gcc-c-plugin.h: Include compile-internal.h.
4874 2019-01-22 Tom Tromey <tom@tromey.com>
4876 * stabsread.c (EXTERN): Do not define.
4877 (symnum, next_symbol_text_func, processing_gcc_compilation)
4878 (within_function, global_sym_chain, global_stabs)
4879 (previous_stab_code, this_object_header_files)
4880 (n_this_object_header_files)
4881 (n_allocated_this_object_header_files): Define.
4882 * stabsread.h (EXTERN): Never define. Use "extern".
4884 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4886 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4889 2019-01-21 Tom Tromey <tom@tromey.com>
4891 * ui-out.c: Fix includes.
4892 * tui/tui-source.c: Fix includes.
4893 * target.c: Fix includes.
4894 * remote.c: Fix includes.
4895 * regcache.c: Fix includes.
4896 * python/py-block.c: Fix includes.
4897 * printcmd.c: Fix includes.
4898 * or1k-tdep.c: Fix includes.
4899 * mi/mi-main.c: Fix includes.
4900 * m32r-tdep.c: Fix includes.
4901 * csky-tdep.c: Fix includes.
4902 * compile/compile-cplus-types.c: Fix includes.
4903 * cli/cli-interp.c: Fix includes.
4905 2019-01-21 Alan Hayward <alan.hayward@arm.com>
4907 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4910 2019-01-16 Tom Tromey <tom@tromey.com>
4912 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4914 (struct objfile) <msymbols_range>: Move from top level.
4915 <msymbols>: New method.
4916 (class objfile_msymbols): Remove.
4917 * symtab.c (default_collect_symbol_completion_matches_break_on):
4919 * symmisc.c (dump_msymbols): Update.
4920 * stabsread.c (scan_file_globals): Update.
4921 * objc-lang.c (info_selectors_command, info_classes_command)
4922 (find_methods): Update.
4923 * minsyms.c (find_solib_trampoline_target): Update.
4924 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4925 * coffread.c (coff_symfile_read): Update.
4926 * ada-lang.c (ada_lookup_simple_minsym)
4927 (ada_collect_symbol_completion_matches): Update.
4929 2019-01-16 Tom Tromey <tom@tromey.com>
4931 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4932 type. Remove no-argument constructor.
4933 <iterator::operator++>: Simplify.
4935 <end>: Use minimal_symbol_count.
4937 2019-01-16 Tom Tromey <tom@tromey.com>
4939 * objfiles.h (struct objfile) <psymtabs>: New method.
4940 (class objfile_psymtabs): Remove.
4941 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
4943 <range>: New method.
4944 (require_partial_symbols): Change return type.
4945 * psymtab.c (require_partial_symbols)
4946 (psym_expand_symtabs_matching): Update.
4947 * mdebugread.c (parse_partial_symbols): Update.
4948 * dbxread.c (dbx_end_psymtab): Update.
4950 2019-01-15 Tom Tromey <tom@tromey.com>
4952 * symtab.c (lookup_objfile_from_block)
4953 (lookup_symbol_in_objfile_symtabs)
4954 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
4955 (find_line_symtab, info_sources_command)
4956 (default_collect_symbol_completion_matches_break_on)
4957 (make_source_files_completion_list): Update.
4958 * symmisc.c (print_objfile_statistics, dump_objfile)
4959 (maintenance_print_symbols, maintenance_info_symtabs)
4960 (maintenance_check_symtabs, maintenance_info_line_tables):
4962 * source.c (select_source_symtab)
4963 (forget_cached_source_info_for_objfile): Update.
4964 * objfiles.h (class objfile_compunits): Remove.
4965 (struct objfile) <compunits_range>: New typedef.
4966 (compunits): New method.
4967 * objfiles.c (objfile_relocate1): Update.
4968 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4969 * maint.c (count_symtabs_and_blocks): Update.
4970 * linespec.c (iterate_over_all_matching_symtabs): Update.
4971 * cp-support.c (add_symbol_overload_list_qualified): Update.
4972 * coffread.c (coff_symtab_read): Update.
4973 * ada-lang.c (add_nonlocal_symbols)
4974 (ada_collect_symbol_completion_matches)
4975 (ada_add_global_exceptions): Update.
4977 2019-01-15 Tom Tromey <tom@tromey.com>
4979 * progspace.h (program_space) <objfiles_safe_range>: New
4981 <objfiles_safe>: New method.
4982 * objfiles.h (class all_objfiles_safe): Remove.
4983 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
4984 * jit.c (jit_inferior_exit_hook): Update.
4986 2019-01-17 Tom Tromey <tom@tromey.com>
4988 * progspace.h (program_space) <objfiles_range>: New typedef.
4989 <objfiles>: New method.
4990 <objfiles_head>: Rename from objfiles.
4991 (object_files): Update.
4992 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
4993 * guile/scm-pretty-print.c
4994 (ppscm_find_pretty_printer_from_objfiles): Update.
4995 * guile/scm-objfile.c (gdbscm_objfiles): Update.
4996 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
4998 * python/py-progspace.c (pspy_get_objfiles): Update.
4999 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5001 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5002 (objfpy_lookup_objfile_by_build_id): Update.
5003 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5004 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5006 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5007 (expand_symtab_containing_pc, lookup_objfile_from_block)
5008 (lookup_static_symbol, basic_lookup_transparent_type)
5009 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5010 (find_line_symtab, info_sources_command)
5011 (default_collect_symbol_completion_matches_break_on)
5012 (make_source_files_completion_list, find_main_name): Update.
5013 * symmisc.c (print_symbol_bcache_statistics)
5014 (print_objfile_statistics, maintenance_print_symbols)
5015 (maintenance_print_msymbols, maintenance_print_objfiles)
5016 (maintenance_info_symtabs, maintenance_check_symtabs)
5017 (maintenance_expand_symtabs, maintenance_info_line_tables):
5019 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5020 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5021 (map_overlay_command, unmap_overlay_command)
5022 (simple_overlay_update, expand_symtabs_matching)
5023 (map_symbol_filenames): Update.
5024 * symfile-debug.c (set_debug_symfile): Update.
5025 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5027 * source.c (select_source_symtab, forget_cached_source_info):
5029 * solib.c (solib_read_symbols): Update.
5030 * solib-spu.c (append_ocl_sos): Update.
5031 * psymtab.c (maintenance_print_psymbols)
5032 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5033 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5034 * printcmd.c (info_symbol_command): Update.
5035 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5037 * objfiles.h (class all_objfiles): Remove.
5038 * objfiles.c (have_partial_symbols, have_full_symbols)
5039 (have_minimal_symbols, qsort_cmp, update_section_map)
5040 (shared_objfile_contains_address_p)
5041 (default_iterate_over_objfiles_in_search_order): Update.
5042 * objc-lang.c (info_selectors_command, info_classes_command)
5043 (find_methods): Update.
5044 * minsyms.c (find_solib_trampoline_target): Update.
5045 * maint.c (maintenance_info_sections)
5046 (maintenance_translate_address, count_symtabs_and_blocks):
5048 * main.c (captured_main_1): Update.
5049 * linux-thread-db.c (try_thread_db_load_from_pdir)
5050 (has_libpthread): Update.
5051 * linespec.c (iterate_over_all_matching_symtabs)
5052 (search_minsyms_for_name): Update.
5053 * jit.c (jit_find_objf_with_entry_addr): Update.
5054 * hppa-tdep.c (find_unwind_entry)
5055 (hppa_lookup_stub_minimal_symbol): Update.
5056 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5058 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5059 (elf_gnu_ifunc_resolve_by_got): Update.
5060 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5061 * dwarf-index-write.c (save_gdb_index_command): Update.
5062 * cp-support.c (add_symbol_overload_list_qualified): Update.
5063 * breakpoint.c (create_overlay_event_breakpoint)
5064 (create_longjmp_master_breakpoint)
5065 (create_std_terminate_master_breakpoint)
5066 (create_exception_master_breakpoint): Update.
5067 * blockframe.c (find_pc_partial_function): Update.
5068 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5069 (ada_collect_symbol_completion_matches)
5070 (ada_add_global_exceptions): Update.
5072 2019-01-17 Tom Tromey <tom@tromey.com>
5074 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5076 (solib_target_parse_libraries): Change return type.
5077 (library_list_start_segment, library_list_start_section)
5078 (library_list_end_library, library_list_start_library); Update.
5079 (solib_target_free_library_list): Remove.
5080 (solib_target_parse_libraries): Remove cleanup. Change return
5082 (solib_target_current_sos): Update.
5084 2019-01-17 Tom Tromey <tromey@bapiya>
5086 * valprint.c: Replace "the the" with "the".
5087 * symtab.c: Replace "the the" with "the".
5088 * solib.c: Replace "the the" with "the".
5089 * solib-dsbt.c: Replace "the the" with "the".
5090 * linespec.c: Replace "the the" with "the".
5091 * dwarf2loc.h: Replace "the the" with "the".
5092 * amd64-windows-tdep.c: Replace "the the" with "the".
5093 * aarch64-tdep.c: Replace "the the" with "the".
5095 2019-01-16 Keith Seitz <keiths@redhat.com>
5098 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5099 <builder>: Rename to ..
5100 <m_builder>: ... this and make private.
5101 (dwarf2_cu::get_builder): New method. Change all users of
5102 `builder' to use this method.
5103 (dwarf2_start_symtab): Move to ...
5104 (dwarf2_cu::start_symtab): ... here. Update all callers
5105 (setup_type_unit_groups): Move to ...
5106 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5108 (dwarf2_cu::reset_builder): New method.
5109 (process_full_compunit, process_full_type_unit): Use
5110 dwarf2_cu::reset_builder.
5111 (follow_die_offset): Record the ancestor CU if it is different
5112 from the followed DIE's CU.
5113 (follow_die_sig_1): Likewise.
5115 2019-01-15 Tom Tromey <tom@tromey.com>
5117 * remote.c (class remote_state) <buf>: Now a char_vector.
5119 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5121 (remote_target::getpkt_or_notif_sane_1)
5122 (remote_target::getpkt_sane)
5123 (remote_target::getpkt_or_notif_sane): Likewise.
5124 (class remote_target) <putpkt>: New overload.
5125 (remote_target::read_frame): Change type of "buf_p". Remove
5127 (packet_ok): New overload.
5128 (packet_check_result): New overload.
5131 2019-01-14 Tom Tromey <tom@tromey.com>
5133 * remote-notif.c (handle_notification, remote_notif_ack)
5134 (remote_notif_parse): Make "buf" const.
5135 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5137 (remote_notif_parse, remote_notif_ack, handle_notification):
5139 * remote.c (remote_notif_stop_parse): Make "buf" const.
5140 (remote_target::remote_parse_stop_reply): Make "buf" const.
5141 (remote_notif_stop_ack): Make "buf" const.
5143 2019-01-14 Tom Tromey <tom@tromey.com>
5145 * remote.c (remote_console_output): Make parameter const.
5147 2019-01-14 Tom Tromey <tom@tromey.com>
5149 * target-debug.h (target_debug_print_signals): Constify.
5150 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5151 * procfs.c (procfs_target::pass_signals): Update.
5152 * linux-nat.c (linux_nat_target::pass_signals): Update.
5153 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5154 * target-delegates.c: Rebuild.
5155 * remote.c (remote_target::program_signals): Update.
5156 (remote_target::pass_signals): Update.
5157 * target.c (target_pass_signals): Constify argument.
5158 (target_program_signals): Likewise.
5159 * target.h (struct target_ops) <pass_signals, program_signals>:
5161 (target_pass_signals, target_program_signals): Constify argument.
5163 2019-01-14 Tom Tromey <tom@tromey.com>
5166 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5168 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5170 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5172 * rs6000-tdep.c: Include reggroups.h.
5173 (IS_V_ALIAS_PSEUDOREG): Define.
5174 (rs6000_register_name): Return names for the "vX" aliases.
5175 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5176 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5177 aliases. Call default_register_reggroup_p for all other
5179 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5181 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5182 Handle "vX" aliases.
5183 (v_alias_pseudo_register_collect): New function.
5184 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5185 (rs6000_gdbarch_init): Initialize "vX" aliases as
5186 pseudo-registers. Restore registration of
5187 rs6000_pseudo_register_reggroup_p with
5188 set_tdesc_pseudo_register_reggroup_p.
5190 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5192 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5193 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5194 set_gdbarch_num_pseudo_regs.
5196 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5198 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5199 Remove arg prefixname, add do_set and do_show.
5200 Add member functions set_list and show_list.
5201 * cli/cli-style.c (class cli_style_option): Update accordingly.
5202 (style_set_list): Move to file scope.
5203 (style_show_list): Likewise.
5204 (set_style): Call help_list.
5205 (show_style): Call cmd_show_list.
5206 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5207 Update to use the new macro.
5209 2019-10-12 Joel Brobecker <brobecker@adacore.com>
5211 * ada-lang.c (_initialize_ada_language): Expand the help text
5212 for the "catch exception" command.
5214 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5216 * symtab.c (matching_obj_sections): Initialize obj,
5217 declare it closer to its usage.
5219 2019-01-10 Tom Tromey <tom@tromey.com>
5221 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5222 (basic_inf_threads_range): Remove.
5223 (inf_threads_range, inf_non_exited_threads_range)
5224 (safe_inf_threads_range): Use next_adapter.
5226 2019-01-10 Keith Seitz <keiths@redhat.com>
5230 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
5231 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
5233 2019-01-10 Keith Seitz <keiths@redhat.com>
5237 * dictionary.c (pending_to_vector): Remove.
5238 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5239 Remove _1 suffix, replacing functions of the same name. Update
5241 (dict_create_hashed, dict_create_hashed_expandable)
5242 (dict_create_linear, dict_create_linear_expandable, dict_free)
5243 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
5244 Make functions static.
5246 2019-01-10 Keith Seitz <keiths@redhat.com>
5250 * dictionary.h (struct dictionary): Replace declaration with
5252 (dict_create_hashed, dict_create_hashed_expandable)
5253 (dict_create_linear, dict_create_linear_expandable)
5254 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
5255 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
5256 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
5257 taking multidictionary argument.
5258 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5259 * block.h (struct block) <dict>: Change to multidictionary
5260 and rename `multidict'.
5261 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
5262 symmisc.c: Update all dictionary references to multidictionary.
5264 2019-01-10 Keith Seitz <keiths@redhat.com>
5268 * dictionary.c: Include unordered_map.
5269 (pending_to_vector): New function.
5270 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5271 Rewrite the non-"_1" functions to take vector instead
5273 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
5274 "new" _1 versions of the same name.
5275 (multidictionary): Define.
5276 (std::hash<enum language): New definition.
5277 (collate_pending_symbols_by_language, mdict_create_hashed)
5278 (mdict_create_hashed_expandable, mdict_create_linear)
5279 (mdict_create_linear_expandable, mdict_free)
5280 (find_language_dictionary, create_new_language_dictionary)
5281 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
5282 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
5283 (mdict_size, mdict_empty): New functions.
5284 * dictionary.h (mdict_iterator): Define.
5286 2019-01-10 Pedro Alves <palves@redhat.com>
5288 * breakpoint.c (read_uploaded_action)
5289 (create_tracepoint_from_upload): Adjust to use
5290 gdb::unique_xmalloc_ptr.
5291 * ctf.c (ctf_write_uploaded_tp):
5292 (SET_ARRAY_FIELD): Use emplace_back.
5293 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
5294 * tracefile-tfile.c (tfile_write_uploaded_tp):
5295 * tracepoint.c (parse_tracepoint_definition): Adjust to use
5296 gdb::unique_xmalloc_ptr.
5297 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
5298 at_string, cond_string, cmd_strings>: Replace char pointers
5299 with gdb::unique_xmalloc_ptr.
5301 2019-01-10 Pedro Alves <palves@redhat.com>
5303 * solib-target.c (library_list_start_library): Don't xstrdup name.
5305 2019-01-10 Pedro Alves <palves@redhat.com>
5307 * mdebugread.c (parse_partial_symbols): Use
5308 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
5310 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5312 * linux-fork.c (scoped_switch_fork_info)
5313 <~scoped_switch_fork_info>: Fix incorrect variable name.
5315 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5317 * linux-fork.c (scoped_switch_fork_info)
5318 <scoped_switch_fork_info>: Make explicit.
5319 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
5321 2019-01-10 Tom Tromey <tom@tromey.com>
5323 * objfiles.h (objfile::reset_psymtabs): Update.
5324 * objfiles.c (objfile::objfile): Update.
5325 * psymtab.h (psymtab_storage::obstack): Update.
5326 (psymtab_storage::m_obstack): Use gdb::optional.
5327 (class psymtab_storage): Update comment. Remove objfile
5329 * psymtab.c (psymtab_storage::psymtab_storage): Update.
5331 2019-01-10 Tom Tromey <tom@tromey.com>
5333 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
5334 <free_psymtabs>: Now private.
5335 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
5336 (allocate_psymtab): Use new method.
5338 2019-01-10 Tom Tromey <tom@tromey.com>
5340 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
5341 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
5342 * mdebugread.c (parse_partial_symbols): Use
5343 allocate_dependencies.
5344 * dwarf2read.c (dwarf2_create_include_psymtab): Use
5345 allocate_dependencies.
5346 (process_psymtab_comp_unit_reader)
5347 (build_type_psymtab_dependencies): Likewise.
5348 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
5350 2019-01-10 Tom Tromey <tom@tromey.com>
5352 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
5353 PSYMBOL_SET_LANGUAGE.
5354 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
5356 2019-01-10 Tom Tromey <tom@tromey.com>
5358 * psymtab.h (psymtab_storage::obstack): New method.
5359 <m_obstack>: Rename from obstack; now private.
5360 * psymtab.c (psymtab_storage): Update.
5361 * dwarf2read.c (create_addrmap_from_index)
5362 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
5365 2019-01-10 Tom Tromey <tom@tromey.com>
5367 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
5368 * objfiles.h (objfile::reset_psymtabs): New method.
5370 2019-01-10 Tom Tromey <tom@tromey.com>
5372 * symmisc.c (print_symbol_bcache_statistics): Update.
5373 (print_objfile_statistics): Update.
5374 * symfile.c (reread_symbols): Update.
5375 * psymtab.h (class psymtab_storage): New.
5376 * psymtab.c (psymtab_storage): New constructor.
5377 (~psymtab_storage): New destructor.
5378 (require_partial_symbols): Update.
5379 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
5380 (find_pc_sect_psymtab, find_pc_sect_psymbol)
5381 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
5382 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
5383 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
5384 (start_psymtab_common, end_psymtab_common)
5385 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
5386 (allocate_psymtab): Update.
5387 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
5389 (dump_psymtab_addrmap, maintenance_print_psymbols)
5390 (maintenance_check_psymtabs): Update.
5391 (class objfile_psymtabs): Move to objfiles.h.
5392 * psympriv.h (discard_psymtab): Now inline.
5393 (psymtab_discarder::psymtab_discarder): Update.
5394 (psymtab_discarder::~psymtab_discarder): Update.
5395 (ALL_OBJFILE_PSYMTABS): Rewrite.
5396 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
5397 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
5399 <partial_symtabs>: New field.
5400 (class objfile_psymtabs): Move from psymtab.h. Update.
5401 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
5403 (objfile::~objfile): Don't destroy psymbol_cache.
5404 * mdebugread.c (parse_partial_symbols): Update.
5405 * dwarf2read.c (create_addrmap_from_index)
5406 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5407 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
5408 (add_partial_subprogram, dwarf2_ranges_read): Update.
5409 * dwarf-index-write.c (write_address_map)
5410 (write_one_signatured_type, recursively_write_psymbols)
5411 (class debug_names, class debug_names, write_psymtabs_to_index):
5414 2019-01-10 Tom Tromey <tom@tromey.com>
5416 * symtab.h (SYMBOL_SET_NAMES): Update.
5417 (symbol_set_names): Update.
5418 (MSYMBOL_SET_NAMES): Update.
5419 * symtab.c (symbol_set_names): Change argument to be an
5420 objfile_per_bfd_storage.
5421 * psymtab.c (add_psymbol_to_bcache): Update.
5422 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
5424 2019-01-10 Tom Tromey <tom@tromey.com>
5426 * symtab.c (create_demangled_names_hash): Change argument to be an
5427 objfile_per_bfd_storage.
5428 (symbol_set_names): Update.
5430 2019-01-10 Tom Tromey <tom@tromey.com>
5432 * xcoffread.c (xcoff_initial_scan): Unconditionally call
5434 * psymtab.c (init_psymbol_list): Do nothing if already called.
5435 * psympriv.h (init_psymbol_list): Add comment.
5436 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
5438 * dbxread.c (dbx_symfile_read): Unconditionally call
5441 2019-01-10 Tom Tromey <tom@tromey.com>
5443 * xcoffread.c (scan_xcoff_symtab): Update.
5444 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
5446 * mdebugread.c (parse_partial_symbols)
5447 (handle_psymbol_enumerators): Update.
5448 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
5449 * dbxread.c (read_dbx_symtab): Update.
5450 * psympriv.h (psymbol_placement): New enum.
5451 (add_psymbol_to_list): Update.
5453 2019-01-10 Tom Tromey <tom@tromey.com>
5455 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
5456 static_psymbols parameters.
5457 (scan_xcoff_symtab): Update.
5458 * psymtab.c (start_psymtab_common): Remove global_psymbols and
5459 static_psymbols parameters.
5460 * psympriv.h (start_psymtab_common): Update.
5461 * mdebugread.c (parse_partial_symbols): Update.
5462 * dwarf2read.c (create_partial_symtab): Update.
5463 * dbxread.c (read_dbx_symtab): Update.
5464 (start_psymtab): Remove global_psymbols and static_psymbols
5467 2019-01-10 Tom Tromey <tom@tromey.com>
5469 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
5470 * psymtab.c (allocate_psymtab): Add comment.
5471 * psympriv.h (allocate_psymtab): Add comment.
5472 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
5474 * dbxread.c (dbx_end_psymtab): Remove some initializations.
5476 2019-01-10 Tom Tromey <tom@tromey.com>
5478 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5480 * mipsread.c: Include mdebugread.h.
5481 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5483 * elfread.c: Include mdebugread.h.
5485 2019-01-09 Tom Tromey <tom@tromey.com>
5487 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
5488 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
5489 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
5490 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
5491 (psym_lookup_symbol, psym_find_last_source_symtab)
5492 (psym_forget_cached_source_info, psym_print_stats)
5493 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
5494 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
5495 (psym_map_matching_symbols, psym_expand_symtabs_matching)
5496 (psym_find_compunit_symtab_by_address)
5497 (maintenance_print_psymbols, maintenance_info_psymtabs)
5498 (maintenance_check_psymtabs): Use ranged for.
5499 * psymtab.h (class objfile_psymtabs): New.
5500 (require_partial_symbols): Return objfile_psymtabs.
5501 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
5503 2019-01-09 Tom Tromey <tom@tromey.com>
5505 * symfile.c (overlay_invalidate_all, find_pc_overlay)
5506 (find_pc_mapped_section, list_overlays_command)
5507 (map_overlay_command, unmap_overlay_command)
5508 (simple_overlay_update): Use all_objfiles.
5509 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
5510 * printcmd.c (info_symbol_command): Use all_objfiles.
5511 * objfiles.h (ALL_OBJSECTIONS): Remove.
5512 * maint.c (maintenance_translate_address): Use all_objfiles.
5513 * gcore.c (gcore_create_callback): Use all_objfiles.
5514 (objfile_find_memory_regions): Likewise.
5516 2019-01-09 Tom Tromey <tom@tromey.com>
5518 * symtab.c (find_line_symtab, info_sources_command)
5519 (make_source_files_completion_list): Use objfile_compunits.
5520 * source.c (select_source_symtab): Use objfile_compunits.
5521 * objfiles.h (struct objfile): Update comment.
5522 (ALL_OBJFILES): Remove.
5523 (ALL_FILETABS): Remove.
5524 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
5527 2019-01-09 Tom Tromey <tom@tromey.com>
5529 * symmisc.c (print_objfile_statistics, dump_objfile)
5530 (maintenance_print_symbols): Use compunit_filetabs.
5531 * source.c (forget_cached_source_info_for_objfile): Use
5533 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
5534 (ALL_FILETABS): Use compunit_filetabs.
5535 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
5536 * coffread.c (coff_symtab_read): Use compunit_filetabs.
5538 2019-01-09 Tom Tromey <tom@tromey.com>
5540 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
5541 (compunit_filetabs): New.
5542 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
5544 (info_sources_command, make_source_files_completion_list): Remove
5546 * symmisc.c (print_objfile_statistics, dump_objfile)
5547 (maintenance_print_symbols): Remove declaration.
5548 (maintenance_info_symtabs): Use compunit_filetabs.
5549 (maintenance_info_line_tables): Likewise.
5550 * source.c (select_source_symtab): Change local variable name.
5551 (forget_cached_source_info_for_objfile): Remove declaration.
5552 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
5553 * objfiles.c (objfile_relocate1): Remove declaration.
5554 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5556 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
5557 * coffread.c (coff_symtab_read): Remove declaration.
5558 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5561 2019-01-09 Tom Tromey <tom@tromey.com>
5563 * symtab.c (lookup_objfile_from_block)
5564 (find_pc_sect_compunit_symtab, search_symbols)
5565 (default_collect_symbol_completion_matches_break_on): Use
5567 * objfiles.h (ALL_COMPUNITS): Remove.
5568 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
5569 * cp-support.c (add_symbol_overload_list_qualified): Use
5571 * ada-lang.c (ada_collect_symbol_completion_matches)
5572 (ada_add_global_exceptions): Use objfile_compunits.
5574 2019-01-09 Tom Tromey <tom@tromey.com>
5576 * source.c (select_source_symtab)
5577 (forget_cached_source_info_for_objfile): Remove declaration.
5578 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5580 * maint.c (count_symtabs_and_blocks): Remove declaration.
5581 * cp-support.c (add_symbol_overload_list_qualified): Remove
5583 * coffread.c (coff_symtab_read): Remove declaration.
5584 * symtab.c (lookup_symbol_in_objfile_symtabs)
5585 (basic_lookup_transparent_type_1): Use objfile_compunits.
5586 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
5587 (info_sources_command, search_symbols)
5588 (default_collect_symbol_completion_matches_break_on)
5589 (make_source_files_completion_list): Remove declaration.
5590 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
5591 (ada_collect_symbol_completion_matches)
5592 (ada_add_global_exceptions): Remove declaration.
5593 * linespec.c (iterate_over_all_matching_symtabs): Use
5595 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
5596 (class objfile_compunits): New.
5597 (ALL_COMPUNITS): Use objfile_compunits.
5598 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
5599 (maintenance_check_symtabs, maintenance_info_line_tables): Use
5601 * objfiles.c (objfile_relocate1): Use objfile_compunits.
5603 2019-01-09 Tom Tromey <tom@tromey.com>
5605 * symtab.c (search_symbols)
5606 (default_collect_symbol_completion_matches_break_on): Use
5608 * ada-lang.c (ada_lookup_simple_minsym)
5609 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
5610 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
5611 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
5613 * coffread.c (coff_symfile_read): Use objfile_msymbols.
5614 * symmisc.c (dump_msymbols): Use objfile_msymbols.
5615 * objc-lang.c (find_methods): Use objfile_msymbols.
5616 (info_selectors_command, info_classes_command): Likewise.
5617 * stabsread.c (scan_file_globals): Use objfile_msymbols.
5618 * objfiles.h (class objfile_msymbols): New.
5619 (ALL_OBJFILE_MSYMBOLS): Remove.
5620 (ALL_MSYMBOLS): Remove.
5622 2019-01-09 Tom Tromey <tom@tromey.com>
5624 * common/next-iterator.h (next_adapter): Add Iterator template
5626 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
5627 (class all_objfiles_safe): New.
5628 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
5629 * objfiles.c (put_objfile_before): Update comment.
5630 (add_separate_debug_objfile): Likewise.
5631 (free_all_objfiles): Use all_objfiles_safe.
5632 (objfile_purge_solibs): Likewise.
5634 2019-01-09 Tom Tromey <tom@tromey.com>
5636 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5637 (expand_symtab_containing_pc, lookup_static_symbol)
5638 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
5639 (find_symbol_at_address, find_line_symtab, find_main_name): Use
5641 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
5642 * breakpoint.c (create_overlay_event_breakpoint)
5643 (create_longjmp_master_breakpoint)
5644 (create_std_terminate_master_breakpoint)
5645 (create_exception_master_breakpoint): Use all_objfiles.
5646 * linux-thread-db.c (try_thread_db_load_from_pdir)
5647 (has_libpthread): Use all_objfiles.
5648 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
5649 * linespec.c (iterate_over_all_matching_symtabs)
5650 (search_minsyms_for_name): Use all_objfiles.
5651 * maint.c (maintenance_info_sections): Use all_objfiles.
5652 * main.c (captured_main_1): Use all_objfiles.
5653 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
5654 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
5655 * guile/scm-pretty-print.c
5656 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
5657 * solib-spu.c (append_ocl_sos): Use all_objfiles.
5658 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
5659 (maintenance_print_msymbols): Use all_objfiles.
5660 * source.c (select_source_symtab): Use all_objfiles.
5661 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
5662 * symfile.c (remove_symbol_file_command)
5663 (expand_symtabs_matching, map_symbol_filenames): Use
5665 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
5667 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
5668 * objc-lang.c (find_methods): Use all_objfiles.
5669 * objfiles.c (have_partial_symbols, have_full_symbols)
5670 (have_minimal_symbols, qsort_cmp)
5671 (default_iterate_over_objfiles_in_search_order): Use
5673 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
5674 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
5675 (maintenance_check_psymtabs): Use all_objfiles.
5676 (ALL_PSYMTABS): Remove.
5677 * compile/compile-object-run.c (do_module_cleanup): Use
5679 * blockframe.c (find_pc_partial_function): Use all_objfiles.
5680 * cp-support.c (add_symbol_overload_list_qualified): Use
5682 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5684 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
5685 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
5687 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5688 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
5689 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5691 * solib.c (solib_read_symbols): Use all_objfiles
5693 2019-01-09 Tom Tromey <tom@tromey.com>
5695 * probe.c (parse_probes_in_pspace): Use all_objfiles.
5696 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
5698 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
5699 * symmisc.c (print_symbol_bcache_statistics)
5700 (print_objfile_statistics, maintenance_print_objfiles)
5701 (maintenance_info_symtabs, maintenance_check_symtabs)
5702 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
5704 * source.c (forget_cached_source_info): Use all_objfiles.
5705 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
5706 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5707 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
5708 * objfiles.c (update_section_map): Use all_objfiles.
5709 (shared_objfile_contains_address_p): Likewise.
5710 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
5711 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
5713 2019-01-09 Tom Tromey <tom@tromey.com>
5715 * common/next-iterator.h: New file.
5716 * objfiles.h (class all_objfiles): New.
5717 (struct objfile_iterator): New.
5719 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5721 * NEWS: Move the description of the changed "frame", "select-frame",
5722 and "info frame" commands to the Changed commands section.
5724 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
5726 * gdbtypes.c (check_stub_method_group): Remove handling of old
5728 * linespec.c (find_methods): Likewise.
5729 * stabsread.c (read_member_functions): Likewise.
5730 * valops.c (search_struct_method): Likewise.
5731 (value_struct_elt_for_reference): Likewise.
5732 * NEWS: Mention this change.
5734 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5736 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5738 * source.c (print_source_lines_base): Update line number check.
5739 (print_source_lines): New function.
5740 (source_lines_range::source_lines_range): New function.
5741 * source.h (class source_lines_range): New class.
5742 (print_source_lines): New declaration.
5744 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5746 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5748 2019-01-08 Tom Tromey <tom@tromey.com>
5749 Simon Marchi <simon.marchi@ericsson.com>
5752 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5753 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5754 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5755 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5756 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5757 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5759 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5761 * source.c (select_source_symtab): Move header comment to
5762 declaration in source.h.
5763 (forget_cached_source_info_for_objfile): Likewise.
5764 (forget_cached_source_info): Likewise.
5765 (identify_source_line): Likewise.
5766 * source.h (identify_source_line): Move declaration from symtab.h
5767 and add comment from source.c
5768 (print_source_lines): Likewise.
5769 (forget_cached_source_info_for_objfile): Likewise.
5770 (forget_cached_source_info): Likewise.
5771 (select_source_symtab): Likewise.
5772 (enum print_source_lines_flag): Move definition from symtab.h.
5773 * symtab.h (identify_source_line): Move declaration to source.h.
5774 (print_source_lines): Likewise.
5775 (forget_cached_source_info_for_objfile): Likewise.
5776 (forget_cached_source_info): Likewise.
5777 (select_source_symtab): Likewise.
5778 (enum print_source_lines_flag): Move definition to source.h.
5779 * tui/tui-hooks.c: Add 'source.h' include.
5781 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5783 * source.c (print_source_lines_base): Handle requests to print
5784 reverse line number sequences, and guard against empty lines
5787 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5789 * source.c (print_source_lines_base): Fix skip of '\r' if next
5792 2019-01-06 Tom Tromey <tom@tromey.com>
5794 * c-exp.y (struct c_parse_state) <macro_original_text,
5795 expansion_obstack>: New member.
5796 (macro_original_text, expansion_obstack): Remove globals.
5797 (scan_macro_expansion, scanning_macro_expansion)
5798 (finished_macro_expansion): Update.
5799 (scan_macro_cleanup): Remove.
5800 (yylex, c_parse): Update.
5802 2019-01-06 Tom Tromey <tom@tromey.com>
5804 * c-exp.y (struct c_parse_state) <strings>: New member.
5805 (operator_stoken): Update.
5807 2019-01-06 Tom Tromey <tom@tromey.com>
5809 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5810 (union type_stack_elt) <typelist_val>: Now a pointer to
5812 (type_stack_cleanup): Don't declare.
5813 (push_typelist): Update.
5814 * parse.c (pop_typelist): Return a std::vector.
5815 (push_typelist): Take a std::vector.
5816 (follow_types): Update. Do not free args.
5817 (type_stack_cleanup): Remove.
5818 * c-exp.y (struct c_parse_state): New.
5819 (cpstate): New global.
5820 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5821 (nonempty_typelist): Update.
5822 (func_mod): Create a new vector.
5823 (c_parse): Create a c_parse_state.
5824 (check_parameter_typelist): Do not delete params.
5825 (function_method): Update. Do not delete type_list.
5827 2019-01-06 Tom Tromey <tom@tromey.com>
5830 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5832 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5833 (print_return_value): Likewise.
5835 2019-01-05 Tom Tromey <tom@tromey.com>
5837 * contrib/cleanup_check.py: Remove.
5838 * contrib/gcc-with-excheck: Remove.
5839 * contrib/exsummary.py: Remove.
5840 * contrib/excheck.py: Remove.
5842 2019-01-05 Joel Brobecker <brobecker@adacore.com>
5844 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5845 NULL. Initialize tpprev to NULL instead of assigning it
5846 to NULL on the next statement.
5847 * windows-nat.c (windows_delete_thread): Remove check for
5848 main_thread_id before printing thread exit notifications.
5849 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5850 Remove thread ID check against main_thread_id.
5851 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5852 windows_delete_thread.
5853 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5855 2019-01-04 Tom Tromey <tom@tromey.com>
5857 * compile/compile.c (_initialize_compile): Use upper case for
5858 metasyntactic variables.
5859 * symmisc.c (_initialize_symmisc): Use upper case for
5860 metasyntactic variables.
5861 * psymtab.c (_initialize_psymtab): Use upper case for
5862 metasyntactic variables.
5863 * demangle.c (demangle_command): Use upper case for metasyntactic
5865 (_initialize_demangler): Likewise.
5866 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5869 2019-01-03 Tom Tromey <tom@tromey.com>
5871 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5873 2019-01-03 Tom Tromey <tom@tromey.com>
5875 * python/py-symtab.c (salpy_str): Update.
5876 (struct salpy_sal_object) <symtab>: Now a PyObject.
5877 (salpy_dealloc): Update.
5878 (del_objfile_sal): Use gdbpy_ref.
5880 2019-01-03 Tom Tromey <tom@tromey.com>
5882 * python/py-type.c (convert_field): Use new_reference. Return
5884 (make_fielditem): Return gdbpy_ref.
5885 (typy_fields): Update.
5886 (typy_getitem): Update.
5887 (field_name): Return gdbpy_ref. Use new_reference.
5888 (typy_iterator_iternext): Update.
5890 2019-01-03 Tom Tromey <tom@tromey.com>
5892 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5894 2019-01-03 Tom Tromey <tom@tromey.com>
5896 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5897 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5898 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5899 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5900 (pspy_set_type_printers): Likewise.
5901 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5902 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5903 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5904 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5905 (objfpy_set_type_printers): Likewise.
5907 2019-01-03 Tom Tromey <tom@tromey.com>
5909 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5910 (gdbpy_print_stack): Use gdbpy_err_fetch.
5911 * python/python-internal.h (class gdbpy_err_fetch): New class.
5912 (class gdbpy_enter) <m_error_type, m_error_value,
5913 m_error_traceback>: Remove.
5914 <m_error>: New member.
5915 (gdbpy_exception_to_string): Don't declare.
5916 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5917 * python/py-value.c (convert_value_from_python): Use
5919 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5920 gdbpy_exception_to_string.
5921 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5922 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5925 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5927 * linux-nat.c (delete_lwp_cleanup): Delete.
5928 (struct lwp_deleter): New struct.
5929 (lwp_info_up): New typedef.
5930 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5933 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5935 * linux-fork.c (class scoped_switch_fork_info): New class.
5936 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5938 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5940 * valops.c (find_overload_match): Remove use of null_cleanup, and
5941 calls to do_cleanups.
5943 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5945 * compile/compile-cplus-types.c
5946 (compile_cplus_instance::decl_name): Handle changes to
5948 * cp-support.c (cp_func_name): Update header comment, update
5950 * cp-support.h (cp_func_name): Update return type in declaration.
5951 * valops.c (find_overload_match): Move temp_func local to top
5952 level of function and change its type. Use temp_func to hold and
5953 delete temporary string obtained from cp_func_name.
5955 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5957 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
5958 gdb::char_vector, remove cleanup, and update uses of `msg`.
5960 2019-01-03 Jim Wilson <jimw@sifive.com>
5962 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
5964 2019-01-02 Tom Tromey <tom@tromey.com>
5966 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
5967 (tdesc_parse_xml): Remove cleanups.
5968 * target-descriptions.h (make_cleanup_free_target_description):
5970 (target_desc_deleter): New struct.
5971 (target_desc_up): New typedef.
5972 * target-descriptions.c (target_desc_deleter::operator()): Rename
5973 from free_target_description.
5974 (make_cleanup_free_target_description): Remove.
5976 2019-01-02 Tom Tromey <tom@tromey.com>
5978 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
5979 constructor, destructor.
5980 (linespec_parser): Remove typedef.
5981 (~linespec_parser): Rename from linespec_parser_delete.
5982 (linespec_lex_to_end, linespec_complete_label)
5983 (linespec_complete): Update.
5984 (decode_line_full): Remove cleanups.
5985 (decode_line_1): Update.
5987 2019-01-02 Tom Tromey <tom@tromey.com>
5989 * python/python-internal.h (inferior_to_inferior_object): Change
5991 * python/py-exitedevent.c (create_exited_event_object): Update.
5992 * python/py-inferior.c (inferior_to_inferior_object): Return
5994 (python_new_inferior, python_inferior_deleted)
5995 (thread_to_thread_object, delete_thread_object)
5996 (build_inferior_list, gdbpy_selected_inferior): Update.
5997 * python/py-infthread.c (create_thread_object): Update. Also fail
5998 if inferior_to_inferior_object fails.
6000 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6002 * inferior.h (class inferior) <displaced_step_state>: New field.
6003 * infrun.h (struct displaced_step_state): Move here from
6004 infrun.c. Initialize fields, add constructor.
6005 <inf>: Remove field.
6006 <reset>: New method.
6007 * infrun.c (struct displaced_step_inferior_state): Move to
6009 (displaced_step_inferior_states): Remove.
6010 (get_displaced_stepping_state): Adust.
6011 (displaced_step_in_progress_any_inferior): Adjust.
6012 (displaced_step_in_progress_thread): Adjust.
6013 (displaced_step_in_progress): Adjust.
6014 (add_displaced_stepping_state): Remove.
6015 (get_displaced_step_closure_by_addr): Adjust.
6016 (remove_displaced_stepping_state): Remove.
6017 (infrun_inferior_exit): Call displaced_step_state.reset.
6018 (use_displaced_stepping): Don't check for NULL.
6019 (displaced_step_prepare_throw): Call
6020 get_displaced_stepping_state.
6021 (displaced_step_fixup): Don't check for NULL.
6022 (prepare_for_detach): Don't check for NULL.
6024 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6026 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6027 in case of call that did not complete.
6029 2019-01-02 Andrey Utkin <autkin@undo.io>
6031 * symfile.c (find_separate_debug_file): Fix search of debug files for
6034 2019-01-02 Tom Tromey <tom@tromey.com>
6036 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6038 * python/py-frame.c (frapy_older): Remove cast.
6039 (frapy_newer): Likewise.
6040 * python/py-breakpoint.c (local_setattro): Remove cast.
6041 * python/py-arch.c (archpy_name): Remove local variable.
6042 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6044 2019-01-02 Joel Brobecker <brobecker@adacore.com>
6046 * unittests/basic_string_view/element_access/char/empty.cc:
6047 Fix year range in copyright header.
6049 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6051 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6053 <operator==>: Update with for removed field.
6055 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6056 <isa_features>: ...this.
6057 <abi_features>: New field.
6058 (riscv_isa_flen): Update comment.
6059 (riscv_abi_xlen): New declaration.
6060 (riscv_abi_flen): New declaration.
6061 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6063 (riscv_abi_xlen): New function.
6064 (riscv_isa_flen): Update to get answer from isa_features.
6065 (riscv_abi_flen): New function.
6066 (riscv_has_fp_abi): Update to get answer from abi_features.
6067 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6069 (riscv_call_info) <xlen, flen>: Update comment.
6070 (riscv_call_arg_struct): Remove invalid assertions
6071 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6073 (riscv_gdbarch_init): Gather isa features and abi features
6074 separately, ensure both match on the gdbarch when reusing an old
6075 gdbarch. Relax an error check to allow 32-bit abi float to run on
6076 a target with 64-bit float hardware.
6078 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6080 * source.c (search_command_helper): Stop reverse search
6081 when line 1 has been searched.
6083 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6085 * record-full.c (record_full_base_target::close): Rewrite
6086 record_full_core_buf_list free logic.
6088 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6090 * break-catch-syscall.c (print_one_catch_syscall): xfree
6093 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6095 * top.c (print_gdb_version): Update Copyright year in version
6098 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6100 Update copyright year range in all GDB files.
6102 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6104 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6106 For older changes see ChangeLog-2018.
6112 version-control: never