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