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