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