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