Use gdbpy_enter in py-breakpoint.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
25ce02ee
TT
12019-06-10 Tom Tromey <tom@tromey.com>
2
3 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5 gdbpy_enter.
6
caa429d8
TT
72019-06-10 Tom Tromey <tromey@adacore.com>
8
9 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
10 data.
11 (elf_new_init): Don't call stabsread_new_init.
12 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
13 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
14 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
15
81873cc8
TV
162019-06-10 Tom de Vries <tdevries@suse.de>
17
18 PR symtab/16264
19 PR symtab/24517
20 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
21
4fa0265e
РИ
222019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
23
24 * source.c (find_and_open_source): Also rewrite relative file
25 names.
26
1a3da2cd
AB
272019-04-26 Amos Bird <amosbird@gmail.com>
28
29 * annotate.c (annotate_thread_exited): Add "thread-exited"
30 annotation.
31
3847a7bf
TT
322019-06-06 Tom Tromey <tromey@adacore.com>
33
34 * maint.h (class scoped_command_stats): Use
35 DISABLE_COPY_AND_ASSIGN.
36 <print_time>: New method.
37 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
38 print_time.
39 (scoped_command_stats::print_time): New method.
40
312617a3
AB
412019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
44 instructions of lengths 6 or 8 bytes.
45
b02f78f9
PA
462019-06-04 Pedro Alves <palves@redhat.com>
47
48 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
49
50 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
51 * breakpoint.c (condition_completer): Likewise.
52 * cli/cli-dump.c (scan_expression): Likewise.
53 * common/filestuff.c (mkdir_recursive): Likewise.
54 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
55 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
56 (gdb_abspath): Likewise.
57 * compile/compile-cplus-types.c
58 (compile_cplus_instance::decl_name): Likewise.
59 * completer.c (complete_explicit_location):
60 (signal_completer, reg_or_group_completer_1): Likewise.
61 * cp-support.c (cp_remove_params_if_any): Likewise.
62 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
63 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
64 * infcmd.c (strip_bg_char): Likewise.
65 * linespec.c (copy_token_string): Likewise.
66 * mi/mi-main.c (output_cores): Likewise.
67 * psymtab.c (psymtab_search_name):
68 * symfile.c (test_set_ext_lang_command): Likewise.
69 * target.c (target_fileio_read_stralloc): Likewise.
70 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
71 * value.c (complete_internalvar): Likewise.
72
e1f2e1a2
CB
732019-06-04 Christian Biesinger <cbiesinger@google.com>
74
75 Add objfile property to gdb.Type.
d3238f7d
PA
76 * NEWS: Mention Python API addition.
77 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 78
e664d728
PW
792019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
80
81 * NEWS: Mention the new set|show style [title|highlight].
82 Mention changes to "show style", "help" and "apropos".
83
66d8c862
PW
842019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
85
86 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
87 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
88 instead of print_help_for_command.
89 (print_doc_of_command): New function.
90 (help_list): Add 'apropos -v word' suggestion.
91 (print_help_for_command): Style the command name using title style.
92 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
93 (_initialize_cli_cmds): Describe -v in apropos_command help.
94
9303eb2f
PW
952019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
96
97 * cli/cli-style.h (cli_style_option): Add name in constructor,
98 add m_name class member, add constructor with intensity,
99 add name class function.
100 (cli_style_option::add_setshow_commands): Remove name argument.
101 (highlight_style, title_style): New styles.
102 * cli/cli-style.c (do_show): New function that shows a style
103 characteristic styling the style name with itself.
104 (set_style_name): New function.
105 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
106 Update all callers according to the changes in cli/cli-style.h.
107 * utils.h (fputs_highlighted): New function.
108 * utils.c (fputs_highlighted): Likewise.
109
e2c52041
PW
1102019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
111
112 * NEWS: Mention new pipe command and new convenience variables.
113
947d3946
PW
1142019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
115
116 * cli/cli-cmds.c (pipe_command): New function.
117 (_initialize_cli_cmds): Call add_com for pipe_command.
118 Define | as an alias for pipe.
119 (exit_status_set_internal_vars): New function.
120 (shell_escape): Call exit_status_set_internal_vars.
121 cli/cli-decode.c (find_command_name_length): Recognize | as
122 a single character command.
123
b8fd0918
PW
1242019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
125
126 * gdbcmd.h (execute_command_to_ui_file): New declaration.
127 top.c (execute_command_to_ui_file): New function, mostly a copy
128 of execute_command_to_string.
129 (execute_command_to_string): Implement by calling
130 execute_command_to_ui_file.
131
68bb5386
PW
1322019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
133
134 * top.h (saved_command_line): Remove declaration.
135 * top.c (previous_saved_command_line, previous_repeat_arguments):
136 New variables.
137 (saved_command_line): Make static, define together with other
138 'repeat variables'.
139 (dont_repeat): Clear repeat_arguments.
140 (repeat_previous, get_saved_command_line, save_command_line):
141 New functions.
142 (gdb_init): Initialize saved_command_line
143 and previous_saved_command_line.
144 * main.c (captured_main_1): Remove saved_command_line initialization.
145 * event-top.c (handle_line_of_input): Update to use
146 the new 'repeat' related functions instead of direct access to
147 saved_command_line.
148 * command.h (repeat_previous, get_saved_command_line,
149 save_command_line): New declarations.
150 (dont_repeat): Add comment.
151
bfcdb852
TT
1522019-05-30 Tom Tromey <tromey@adacore.com>
153
154 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
155 Fix comment.
156 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
157
0ef209f2
JV
1582019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
159
160 PR cli/24587
161 * completer.c (complete): Initialize variable word.
162
955b06fa
SDJ
1632019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
164
165 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
166 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
167 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
168 'body' is NULL to the outter 'if', protecting the '!is_define'
169 situation as well.
170
fa9c3fa0
TT
1712019-05-29 Tom Tromey <tromey@adacore.com>
172
173 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
174 (dwarf_unknown): New function.
175 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
176 (dwarf_type_encoding_name): Use dwarf_unknown.
177
4330d61d
TT
1782019-05-29 Tom Tromey <tromey@adacore.com>
179
180 PR c++/20020:
181 * cp-valprint.c (cp_print_value_fields): Call
182 cp_print_static_field inside "try".
183
33a6bc35
TT
1842019-05-29 Tom Tromey <tromey@adacore.com>
185
186 * inflow.c (struct terminal_info): Add default operator=.
187 * configure: Rebuild.
188 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
189 -Wdeprecated-copy-dtor, -Wredundant-move.
190
000439d5
TT
1912019-05-29 Tom Tromey <tromey@adacore.com>
192
193 * NEWS: Add entry.
194 * infcmd.c (print_return_value_1): Handle finish_print
195 option.
196 (show_print_finish): New function.
197 (_initialize_infcmd): Add "set/show print finish" commands.
198 * valprint.c (user_print_options): Initialize new member.
199 * valprint.h (struct value_print_options) <finish_print>: New
200 member.
201
c0e70c62
TT
2022019-05-28 Tom Tromey <tromey@adacore.com>
203
204 * ada-lang.c (ada_remove_Xbn_suffix)
205 (find_old_style_renaming_symbol)
206 (parse_old_style_renaming): Remove.
207 (ada_find_renaming_symbol): Don't call
208 find_old_style_renaming_symbol.
209 (ada_is_renaming_symbol): Rename from
210 ada_find_renaming_symbol. Remove "block" parameter. Return
211 bool. Now static.
212 (ada_read_var_value): Update and simplify.
213 * ada-exp.y (write_var_or_type): Remove old code.
214
766f8836
AH
2152019-05-28 Alan Hayward <alan.hayward@arm.com>
216
217 * event-top.c: Remove include comment.
218 * inflow.c (class scoped_ignore_sigttou): Move from here...
219 * inflow.h (class scoped_ignore_sigttou): ...to here.
220 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
221 * top.c: Remove include comment.
222
eb41253a
TT
2232019-05-27 Tom Tromey <tom@tromey.com>
224
225 * NEWS: Fix typo.
226
4ca51187
TT
2272019-05-22 Tom Tromey <tromey@adacore.com>
228
229 * target.c (target_follow_exec): Constify parameter.
230 * target-delegates.c: Rebuild.
231 * remote.c (remote_target::follow_exec): Constify parameter.
232 * infrun.c (follow_exec): Constify parameter.
233 * target.h (struct target_ops) <follow_exec>: Constify parameter.
234 (target_follow_exec): Likewise.
235
8fca4da0
AH
2362019-05-22 Alan Hayward <alan.hayward@arm.com>
237
238 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
239 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
240
b7060614
AH
2412019-05-22 Alan Hayward <alan.hayward@arm.com>
242
243 * NEWS: Add debugredirect and testsuite sections.
244
0a5954bd
SC
2452019-05-22 Simon Cook <simon.cook@embecosm.com>
246
247 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
248 target descriptions using exclusively floating point register name
249 aliases.
250
dc42e902
AB
2512019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 PR gdb/18644:
254 * f-lang.c (build_fortran_types): Handle the case where
255 gdbarch_floatformat_for_type returns a nullptr.
256
fb7806c7
TV
2572019-05-21 Tom de Vries <tdevries@suse.de>
258
259 PR cli/24587
260 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
261
34d11c68
AB
2622019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 PR gdb/18644:
265 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
266 16-byte floats.
267 * i386-tdep.c (i386_floatformat_for_type): Use
268 floatformats_ia64_quad for the 16-byte floating point component
269 within a fortran 32-byte complex number.
270
122cf0f2
AB
2712019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
274 delete default constructor.
275 (find_partial_die): Update to return const struct.
276 (partial_die_parent_scope): Move variable declaration into scope
277 of its use and change its type to auto.
278 (guess_partial_die_structure_name): Likewise.
279 (partial_die_info::fixup): Likewise.
280
33d0e35a
TT
2812019-05-17 Tom Tromey <tromey@adacore.com>
282
283 * source.c (find_and_open_source): Remove cast.
284
a45575b0
TT
2852019-05-17 Tom Tromey <tromey@adacore.com>
286
287 * annotate.c (annotate_source): Make "filename" const.
288 * annotate.h (annotate_source): Use const.
289
81f47ac2
AH
2902019-05-17 Alan Hayward <alan.hayward@arm.com>
291
292 * disasm.c (set_disassembler_options): Send errors to stderr.
293
ca1285d1
AH
2942019-05-17 Alan Hayward <alan.hayward@arm.com>
295
296 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
297 (cli_interp_base::set_logging): Check debug_redirect.
298 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
299 * cli/cli-logging.c (debug_redirect): Add static variable.
300 (pop_output_files): Add default param.
301 (handle_redirections): Print debug setting.
302 (show_logging_command): Likewise.
303 (_initialize_cli_logging): Add debugredirect command.
304 * interps.c (current_interp_set_logging): Add debug_redirect
305 parameter.
306 * interps.h (set_logging): Add debug_redirect parameter.
307 (current_interp_set_logging): Likewise.
308 * mi/mi-common.h: Likewise.
309 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
310
3112019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
312 Tom Tromey <tromey@adacore.com>
313
314 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
315 directly.
316 * cli/cli-interp.h (make_logging_output): Remove declaration.
317 * cli/cli-logging.c (make_logging_output): Remove function.
318 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
319 directly.
320 * ui-file.c (tee_file::tee_file): Remove bools.
321 (tee_file::~tee_file): Remove deletes.
322 * ui-file.h (tee_file): Remove bools.
323
26648588
JV
3242019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
325
326 * mi/mi-cmds.h (mi_cmd_complete): New function.
327 * mi/mi-main.c (mi_cmd_complete): Likewise.
328 * mi/mi-cmds.c: Define new MI command -complete.
329 * NEWS: Mention new -complete command.
330
6e035501
JV
3312019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
332
333 * completer.h (complete): New function.
334 * completer.c (complete): Likewise.
335 * cli/cli-cmds.c: (complete_command): Update to use new complete()
336 function defined in completer.h.
337
7d0e2ece
JV
3382019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
339
340 * MAINTAINERS (Write After Approval): Add myself.
341
fb816e8b
TV
3422019-05-17 Tom de Vries <tdevries@suse.de>
343
344 PR gdb/24094
345 * dwarf2read.c (struct cu_partial_die_info): New struct.
346 (find_partial_die): Return cu_partial_die_info.
347 (partial_die_parent_scope, guess_partial_die_structure_name)
348 (partial_die_info::fixup): Handle new return type of find_partial_die.
349
677052f2
SDJ
3502019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
351
352 * stap-probe.c (stap_parse_register_operand): Make "regname" an
353 "std::string", simplifying the algorithm.
354
f3da9116
SDJ
3552019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
356
357 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
358 (stap_static_probe_ops::get_probes): Likewise.
359
f1bb75ab
SDJ
3602019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
361
362 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
363 '-')" and "else if".
364 (stap_parse_single_operand): Join checks for
365 "gdbarch_stap_parse_special_token_p" and
366 "gdbarch_stap_parse_special_token" in the same "if" statement.
367 Invert check when verifying for operation on register
368 displacement.
369
3ca58cde
SDJ
3702019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
371
372 * stap-probe.c (stap_get_opcode): Update comment.
373 (stap_get_expected_argument_type): Likewise.
374 (handle_stap_probe): Likewise.
375
af2d9bee
SDJ
3762019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
377
378 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
379 return type to 'bool'. Adjust comment. Use 'bool' when
380 appropriate.
381 (i386_stap_parse_special_token_three_arg_disp): Likewise.
382 * stap-probe.c (stap_parse_argument_1): Likewise.
383 (stap_is_operator): Likewise.
384 (stap_is_generic_prefix): Likewise.
385 (stap_is_register_prefix): Likewise.
386 (stap_is_register_indirection_prefix): Likewise.
387 (stap_is_integer_prefix): Likewise.
388 (stap_generic_check_suffix): Likewise.
389 (stap_check_integer_suffix): Likewise.
390 (stap_check_register_suffix): Likewise.
391 (stap_check_register_indirection_suffix): Likewise.
392 (stap_parse_register_operand): Likewise.
393 (stap_parse_single_operand): Likewise.
394 (stap_parse_argument_1): Likewise.
395 (stap_probe::get_argument_count): Likewise.
396 (stap_is_operator): Likewise.
397
61c9c421
TT
3982019-05-16 Tom Tromey <tromey@adacore.com>
399
400 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
401 keyword to foreach.
402
9ddc1af1
SM
4032019-05-15 Simon Marchi <simon.marchi@efficios.com>
404
405 * linux-thread-db.c (try_thread_db_load_1): Change return type
406 to bool.
407 (try_thread_db_load): Likewise.
408 (try_thread_db_load_from_pdir_1): Likewise.
409 (try_thread_db_load_from_pdir): Likewise.
410 (try_thread_db_load_from_sdir): Likewise.
411 (try_thread_db_load_from_dir): Likewise.
412 (thread_db_load_search): Likewise.
413 (has_libpthread): Likewise.
414 (thread_db_load): Likewise.
415
7bede828
SDJ
4162019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
417
418 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
419 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
420 NULL, and complain/return if that's the case.
421
c5358db4
JD
4222019-05-15 John Darrington <john@darrington.wattle.id.au>
423
424 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
425 (advance, posn, abstract_read_memory): New functions.
426 [struct mem_read_abstraction]: New struct.
427 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
428
c408a94f
TT
4292019-05-14 Tom Tromey <tromey@adacore.com>
430
431 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
432 value is not lval_memory.
433
e7bd7fba
TT
4342019-05-14 Tom Tromey <tromey@adacore.com>
435
436 * solib.c (info_sharedlibrary_command): Style the file name.
437
a6d0f249
AH
4382019-05-14 Alan Hayward <alan.hayward@arm.com>
439
440 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
441 (aarch64_vnv_type): Likewise.
442 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
443 * common/tdesc.c: Likewise.
444 * common/tdesc.h (enum tdesc_type_kind): Likewise.
445 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
446 * features/aarch64-fpu.xml: Add ieee half view.
447 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
448 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
449 * gdbtypes.h (struct builtin_type): Likewise.
450 (struct objfile_type): Likewise.
451
66b8bb74
SM
4522019-05-12 Paul Naert <paul.naert@polymtl.ca>
453
454 * language.c (language_sniff_from_mangled_name): Fix "langauge"
455 typo.
456 * location.h (string_to_event_location): Likewise.
457
21c219fd
JB
4582019-05-11 Joel Brobecker <brobecker@adacore.com>
459
460 GDB 8.3 released.
461
13674803
SM
4622019-05-10 Simon Marchi <simon.marchi@efficios.com>
463
464 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
465 New variable declaration.
466 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
467 New variable.
468 (print_one_breakpoint): Use ui_out::test_flags and new global
469 variable to compute use_fixed_output.
470 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
471 Remove.
472 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
473 (mi_multi_location_breakpoint_output_fixed): Remove.
474 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
475 new variable.
476 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
477 fix_multi_location_breakpoint_output flag if version >= 3.
478 * ui-out.h (enum ui_out_flag)
479 <fix_multi_location_breakpoint_output>: New enumerator.
480
a9eac7f9
SM
4812019-05-10 Simon Marchi <simon.marchi@efficios.com>
482
483 * contrib/cc-with-tweaks.sh: Validate dwz's work.
484
71bed2db
TT
4852019-05-10 Tom Tromey <tromey@adacore.com>
486
487 * ada-lang.c (catch_ada_completer): New function.
488 (_initialize_ada_language): Use it.
489
24c54127
TT
4902019-05-10 Tom Tromey <tromey@adacore.com>
491
492 * thread.c (print_thread_info): Make "requested_threads" const.
493 * gdbthread.h (print_thread_info): Make "requested_threads"
494 const.
495 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
496 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
497
7a102139
TT
4982019-05-08 Tom Tromey <tom@tromey.com>
499
500 * gdbtypes.c (objfile_type_data): Change type.
501 (objfile_type, _initialize_gdbtypes): Update.
502
924d79e2
TT
5032019-05-08 Tom Tromey <tom@tromey.com>
504
505 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
506 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
507 (_initialize_dwarf2_frame): Update.
508
4c58e337
TT
5092019-05-08 Tom Tromey <tom@tromey.com>
510
511 * objc-lang.c (objc_objfile_data): Change type.
512 (find_methods): Update.
513 (_initialize_objc_lang): Remove.
514
d772d2ab
TT
5152019-05-08 Tom Tromey <tom@tromey.com>
516
517 * stabsread.c (rs6000_builtin_type_data): Change type.
518 (rs6000_builtin_type, _initialize_stabsread): Update.
519
d11d83f4
TT
5202019-05-08 Tom Tromey <tom@tromey.com>
521
522 * mips-tdep.c (mips_pdr_data): Remove.
523 (_initialize_mips_tdep): Update.
524
9a73f0ad
TT
5252019-05-08 Tom Tromey <tom@tromey.com>
526
527 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
528 (hppa_init_objfile_priv_data, read_unwind_info)
529 (find_unwind_entry, _initialize_hppa_tdep): Update.
530
8127a2fa
TT
5312019-05-08 Tom Tromey <tom@tromey.com>
532
533 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
534 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
535 on obstack.
536 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
537
91d3055d
TT
5382019-05-08 Tom Tromey <tom@tromey.com>
539
540 * mdebugread.c (basic_type_data): Change type.
541 (basic_type, _initialize_mdebugread): Update.
542
31930bd3
TT
5432019-05-08 Tom Tromey <tom@tromey.com>
544
545 * common/gdb_unique_ptr.h (struct noop_deleter): New.
546
bdb3ed9e
TT
5472019-05-08 Tom Tromey <tom@tromey.com>
548
549 * nto-tdep.c (nto_inferior_data_reg): Change type.
550 (nto_inferior_data): Update.
551 (nto_inferior_data_cleanup, nto_new_inferior_data)
552 (_initialize_nto_tdep): Remove.
553 * nto-tdep.h (struct nto_inferior_data): Add initializers.
554
f37b313d
TT
5552019-05-08 Tom Tromey <tom@tromey.com>
556
557 * ada-lang.c (struct ada_inferior_data): Add initializers.
558 (ada_inferior_data): Change type.
559 (ada_inferior_data_cleanup): Remove.
560 (get_ada_inferior_data, ada_inferior_exit)
561 (struct ada_pspace_data): Add initializers, destructor.
562 (ada_pspace_data_handle): Change type.
563 (get_ada_pspace_data): Update.
564 (ada_pspace_data_cleanup): Remove.
565
24699405
TT
5662019-05-08 Tom Tromey <tom@tromey.com>
567
568 * coffread.c (struct coff_symfile_info): Add initializers.
569 (coff_objfile_data_key): Move lower. Change type.
570 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
571 Update.
572 (coff_free_info): Remove.
573
d4e05d2f
TT
5742019-05-08 Tom Tromey <tom@tromey.com>
575
576 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
577 (fbsd_pspace_data_handle): Move lower. Change type.
578 (get_fbsd_pspace_data): Update.
579 (fbsd_pspace_data_cleanup): Remove.
580 (_initialize_fbsd_tdep): Update.
581
14ef6690
TT
5822019-05-08 Tom Tromey <tom@tromey.com>
583
584 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
585 (get_ada_tasks_pspace_data): Update.
586 (ada_tasks_pspace_data_cleanup): Remove.
587 (_initialize_tasks): Update.
588 (ada_tasks_inferior_data_handle): Change type.
589 (get_ada_tasks_inferior_data): Update.
590 (ada_tasks_inferior_data_cleanup): Remove.
591 (struct ada_tasks_pspace_data): Add initializers.
592
814cf43a
TT
5932019-05-08 Tom Tromey <tom@tromey.com>
594
595 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
596 * symfile-debug.c (debug_sym_get_probes): Change type.
597 * stap-probe.c (handle_stap_probe):
598 (stap_static_probe_ops::get_probes): Change type.
599 * probe.h (class static_probe_ops) <get_probes>: Change type.
600 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
601 (parse_probes_in_pspace): Update.
602 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
603 Update.
604 (any_static_probe_ops::get_probes): Change type.
605 * elfread.c (elfread_data): New typedef.
606 (probe_key): Change type.
607 (elf_get_probes): Likewise. Update.
608 (probe_key_free): Remove.
609 (_initialize_elfread): Update.
610 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
611 Change type.
612 (dtrace_process_dof_probe, dtrace_process_dof)
613 (dtrace_static_probe_ops::get_probe): Change type.
614
02dc647e
TT
6152019-05-08 Tom Tromey <tom@tromey.com>
616
617 * xcoffread.c (struct xcoff_symfile_info): Rename from
618 coff_symfile_info. Add initializers.
619 (xcoff_objfile_data_key): Move lower. Change type.
620 (XCOFF_DATA): Rewrite.
621 (xcoff_free_info): Remove.
622 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
623 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
624 (xcoff_initial_scan): Update.
625
09232438
TT
6262019-05-08 Tom Tromey <tom@tromey.com>
627
628 * solib-svr4.c (struct svr4_info): Add initializers and
629 destructor.
630 <probes_table>: Now an htab_up.
631 (solib_svr4_pspace_data): Change type.
632 (free_probes_table): Simplify.
633 (~svr4_info): Rename from svr4_pspace_data_cleanup.
634 (get_svr4_info, probes_table_htab_remove_objfile_probes)
635 (probes_table_remove_objfile_probes, register_solib_event_probe)
636 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
637 (_initialize_svr4_solib): Update.
638
7b4a314f
TT
6392019-05-08 Tom Tromey <tom@tromey.com>
640
641 * remote.c (remote_pspace_data): Change type.
642 (remote_pspace_data_cleanup): Remove.
643 (get_remote_exec_file, set_pspace_remote_exec_file)
644 (_initialize_remote): Update.
645
51d3063a
TT
6462019-05-08 Tom Tromey <tom@tromey.com>
647
648 * breakpoint.c (breakpoint_objfile_key): Change type.
649 (get_breakpoint_objfile_data): Update.
650 (free_breakpoint_objfile_data): Remove.
651 (_initialize_breakpoint): Update.
652
89fb8848
TT
6532019-05-08 Tom Tromey <tom@tromey.com>
654
655 * linux-tdep.c (struct linux_info): Add initializers.
656 (linux_inferior_data): Move. Change type.
657 (invalidate_linux_cache_inf): Update.
658 (linux_inferior_data_cleanup): Remove.
659 (get_linux_inferior_data, _initialize_linux_tdep): Update.
660
e9b89e2d
TT
6612019-05-08 Tom Tromey <tom@tromey.com>
662
663 * auxv.c (auxv_inferior_data): Move. Change type.
664 (auxv_inferior_data_cleanup): Remove.
665 (invalidate_auxv_cache_inf): Rewrite.
666 (get_auxv_inferior_data, _initialize_auxv): Update.
667
8c42777c
TT
6682019-05-08 Tom Tromey <tom@tromey.com>
669
670 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
671 (symfile_debug_objfile_data_key): Change type.
672 (symfile_debug_installed, debug_qf_has_symbols)
673 (debug_qf_find_last_source_symtab)
674 (debug_qf_forget_cached_source_info)
675 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
676 (debug_qf_print_stats, debug_qf_dump)
677 (debug_qf_expand_symtabs_for_function)
678 (debug_qf_expand_all_symtabs)
679 (debug_qf_expand_symtabs_with_fullname)
680 (debug_qf_map_matching_symbols)
681 (debug_qf_expand_symtabs_matching)
682 (debug_qf_find_pc_sect_compunit_symtab)
683 (debug_qf_map_symbol_filenames)
684 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
685 (debug_sym_new_init, debug_sym_init, debug_sym_read)
686 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
687 (debug_sym_read_linetable, debug_sym_relocate): Update.
688 (symfile_debug_free_objfile): Remove.
689 (install_symfile_debug_logging, _initialize_symfile_debug):
690 Update.
691
5bfd760d
TT
6922019-05-08 Tom Tromey <tom@tromey.com>
693
694 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
695 allocate_on_obstack.
696 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
697 (get_dwarf2_per_objfile): Update.
698 (set_dwarf2_per_objfile): Remove.
699 (dwarf2_has_info, dwarf2_get_section_info): Update.
700 (dwarf2_free_objfile): Remove.
701 (_initialize_dwarf2_read): Update.
702
e85e19b4
TT
7032019-05-08 Tom Tromey <tom@tromey.com>
704
705 * auto-load.c (struct auto_load_pspace_info): Add destructor and
706 initializers.
707 <unsupported_script_warning_printed,
708 script_not_found_warning_printed>: Now bool.
709 (auto_load_pspace_data): Change type.
710 (~auto_load_pspace_info): Rename from
711 auto_load_pspace_data_cleanup.
712 (get_auto_load_pspace_data, init_loaded_scripts_info)
713 (clear_section_scripts, maybe_print_unsupported_script_warning)
714 (maybe_print_script_not_found_warning, _initialize_auto_load):
715 Update.
716
f6aa7436
TT
7172019-05-08 Tom Tromey <tom@tromey.com>
718
719 * objfiles.c (objfile_pspace_info): Add destructor and
720 initializers.
721 (objfiles_pspace_data): Change type.
722 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
723 (get_objfile_pspace_data): Update.
724 (objfiles_bfd_data): Change type.
725 (get_objfile_bfd_data): Update.
726 (objfile_bfd_data_free, _initialize_objfiles): Remove.
727
6ae614f6
TT
7282019-05-08 Tom Tromey <tom@tromey.com>
729
730 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
731 Change type.
732 (get_catch_syscall_inferior_data): Update.
733 (catch_syscall_inferior_data_cleanup): Remove.
734 (_initialize_break_catch_syscall): Update.
735
6509b8eb
TT
7362019-05-08 Tom Tromey <tom@tromey.com>
737
738 * inflow.c (struct terminal_info): Add destructor and
739 initializers.
740 (inflow_inferior_data): Change type.
741 (~terminal_info): Rename from inflow_inferior_data_cleanup.
742 (get_inflow_inferior_data, inflow_inferior_exit)
743 (swap_terminal_info, _initialize_inflow): Update.
744
35632941
TT
7452019-05-08 Tom Tromey <tom@tromey.com>
746
747 * target-dcache.c (target_dcache_cleanup): Remove.
748 (target_dcache_aspace_key): Change type.
749 (target_dcache_init_p, target_dcache_invalidate)
750 (target_dcache_get, target_dcache_get_or_init)
751 (_initialize_target_dcache): Update.
752 * dcache.h (struct dcache_deleter): New.
753
3017b94d
TT
7542019-05-08 Tom Tromey <tom@tromey.com>
755
756 * symtab.c (struct symbol_cache): Add destructor and
757 initializers.
758 (symbol_cache_key): Move. Change type.
759 (make_symbol_cache, free_symbol_cache): Remove.
760 (get_symbol_cache): Update.
761 (symbol_cache_cleanup): Remove.
762 (ALL_PSPACES, symbol_cache_flush)
763 (maintenance_print_symbol_cache)
764 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
765 Update.
766
a32ad8c5
TT
7672019-05-08 Tom Tromey <tom@tromey.com>
768
769 * symtab.c (struct main_info): Add destructor and initializers.
770 (main_progspace_key): Move. Change type.
771 (get_main_info): Update.
772 (main_info_cleanup): Remove.
773 (_initialize_symtab): Update.
774
5f6e90a0
TT
7752019-05-08 Tom Tromey <tom@tromey.com>
776
777 * registry.h (DECLARE_REGISTRY): Define the _key class.
778
1bd0c6e4
AB
7792019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
780
781 * NEWS: Merge two 'New commands' sections.
782
2228ef77
XR
7832019-05-08 Joel Brobecker <brobecker@adacore.com>
784
785 * ada-valprint.c (ada_val_print_gnat_array): Remove language
786 parameter and use Ada language definition instead.
787 (ada_val_print_ptr): Remove unused language parameter.
788 (ada_val_print_num): Remove language parameter and use Ada language
789 definition instead.
790 (ada_val_print_enum, ada_val_print_flt): Remove unused language
791 parameter.
792 (ada_val_print_struct_union, ada_val_print_ref): Remove language
793 parameter and use Ada language definition instead.
794 (ada_val_print_1): Update all ada_val_print_xxx calls.
795 Remove language parameter.
796 (ada_val_print): Update ada_val_print_1 call.
797
60fcc1c3
TT
7982019-05-08 Tom Tromey <tromey@adacore.com>
799
800 * remote.c (remote_hw_watchpoint_limit)
801 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
802 Now static.
803
ed2b7c17
TT
8042019-05-08 Tom Tromey <tromey@adacore.com>
805
806 * maint.c (_initialize_maint_cmds): Move initialization code to
807 remote.c.
808 (watchdog, show_watchdog): Move to remote.c.
809 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
810 "watchdog" static.
811 (_initialize_remote): Move initialization code from maint.c.
812 * defs.h (watchdog): Don't declare.
813
b0be6c91
TT
8142019-05-08 Tom Tromey <tromey@adacore.com>
815
816 * tui/tui-interp.c: Include main.h.
817 * interps.c: Include main.h.
818 * main.h (interpreter_p): Declare.
819 * defs.h (interpreter_p): Don't declare.
820
587ee17b
TT
8212019-05-08 Tom Tromey <tromey@adacore.com>
822
823 * dwarf2loc.c: Include dwarf2read.h.
824 * defs.h (read_unsigned_leb128): Don't declare.
825 * dwarf2read.h (read_unsigned_leb128): Declare.
826
ca1df239
TT
8272019-05-08 Tom Tromey <tromey@adacore.com>
828
829 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
830 method.
831
99f20f08
TT
8322019-05-08 Tom Tromey <tromey@adacore.com>
833
834 * utils.c (fputs_maybe_filtered): Reset style after paging, even
835 when no wrap column is set.
836
80e55b13
TT
8372019-05-08 Tom Tromey <tromey@adacore.com>
838
839 * c-lang.c (c_get_string): Handle non-C-style arrays.
840
9d3421af
TT
8412019-05-08 Tom Tromey <tromey@adacore.com>
842
843 * typeprint.c (print_offset_data::update): Print the bit offset,
844 not the number of bits remaining.
845
844333e2
TT
8462019-05-08 Tom Tromey <tromey@adacore.com>
847
848 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
849 padding at end of comment.
850
988915ee
TT
8512019-05-08 Tom Tromey <tromey@adacore.com>
852
853 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
854 Compare main types.
855
26bfd823
TT
8562019-05-06 Tom Tromey <tom@tromey.com>
857
858 * common/scoped_mmap.c: Include common-defs.h.
859 * common/scoped_mmap.h: Don't include config.h.
860
89055eaa
TT
8612019-05-04 Tom Tromey <tom@tromey.com>
862
863 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
864 (struct aarch64_call_info): Add initializers.
865 <si>: Now a std::vector.
866 (pass_on_stack, aarch64_push_dummy_call): Update.
867
5da01df5
TT
8682019-05-04 Simon Marchi <simon.marchi@efficios.com>
869 Tom Tromey <tom@tromey.com>
870
871 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
872 (ppc_threads): Now a std::vector. Now static.
873 (hwdebug_find_thread_points_by_tid)
874 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
875 Update.
876
fbdf05a1
TT
8772019-05-04 Tom Tromey <tom@tromey.com>
878
879 * arc-tdep.c (arc_tdesc_init): Return bool.
880
06d16ec9
TT
8812019-05-04 Tom Tromey <tom@tromey.com>
882
883 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
884 Use gdb_assert_not_reached.
885
9c056022
TT
8862019-05-04 Tom Tromey <tom@tromey.com>
887
888 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
889 "false".
890
fa9c2a59
TT
8912019-05-04 Tom Tromey <tom@tromey.com>
892
893 * arc-tdep.c (arc_tdesc_init): Use bool.
894
e2eb806a
TT
8952019-05-04 Tom Tromey <tom@tromey.com>
896
897 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
898
6fe87677
TT
8992019-05-04 Tom Tromey <tom@tromey.com>
900
901 * cli/cli-cmds.c (valid_command_p): Return bool.
902
7f008c9e
TT
9032019-05-04 Tom Tromey <tom@tromey.com>
904
905 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
906 * command.h (valid_user_defined_cmd_name_p): Channge return type.
907
b6484282
RT
9082019-05-04 Raul Tambre <raul@tambre.ee>
909
910 * python/lib/gdb/prompt.py (_ExtendedPrompt)
911 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
912 operator for comparison.
913
af97b416
TT
9142019-05-04 Tom Tromey <tom@tromey.com>
915
916 * psymtab.c (psymbol_name_matches, match_partial_symbol)
917 (lookup_partial_symbol, print_partial_symbols)
918 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
919 (psymbol_compare): Update.
920 (add_psymbol_to_bcache): Clear the entire psymbol.
921 (maintenance_check_psymtabs): Update.
922 * psympriv.h (struct partial_symbol): Don't derive from
923 general_symbol_info.
924 <obj_section, unrelocated_address, address,
925 set_unrelocated_address>: Update.
926 <ginfo>: New member.
927 * dwarf-index-write.c (write_psymbols, debug_names::insert)
928 (debug_names::write_psymbols): Update.
929
9d6d4be8
TV
9302019-05-04 Tom de Vries <tdevries@suse.de>
931
932 * contrib/cc-with-tweaks.sh: Support -n arg.
933
66452beb
PW
9342019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
935
936 * corelow.c (core_target::detach): Ensure frame cache and
937 register caches are cleared.
938 inferior.c (exit_inferior_1): Likewise.
939
bde09ab7
TT
9402019-05-03 Sandra Loosemore <sandra@codesourcery.com>
941 Tom Tromey <tom@tromey.com>
942
943 * dictionary.c (collate_pending_symbols_by_language): Remove
944 "struct" from foreach.
945 * symtab.c (lookup_global_symbol_from_objfile)
946 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
947 foreach.
948 * ser-tcp.c (net_open): Remove "struct" from foreach.
949 * objfiles.c (objfile_relocate, objfile_rebase)
950 (objfile_has_symbols): Remove "struct" from foreach.
951 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
952 from foreach.
953 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
954 foreach.
955 * darwin-nat.c (thread_info_from_private_thread_info): Remove
956 "struct" from foreach.
957 * ada-lang.c (create_excep_cond_exprs)
958 (ada_exception_catchpoint_cond_string): Remove "struct" from
959 foreach.
960
222a8d25
TT
9612019-05-03 Tom Tromey <tromey@adacore.com>
962
963 * ada-exp.y (convert_char_literal): Check suffix of each
964 enumerator.
965
fcd60b84
DP
9662019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
967
968 PR ada/21406:
969 * ada-exp.y (yywrap): Don't define.
970 * ada-lex.l (%option): Add noyywrap
971 (yywrap): Remove.
972
5f2459c2
EZ
9732019-05-03 Eli Zaretskii <eliz@gnu.org>
974
353ea2d1
EZ
975 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
976 _WIN32_WINNT to the XP level, unless already defined to a higher
977 level.
978
979 * unittests/parse-connection-spec-selftests.c:
980 * ser-tcp.c:
981 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
982 override.
983
5f2459c2
EZ
984 * symfile.c (find_separate_debug_file): Remove colon from the
985 drive spec of DOS/Windows file names of the target, so that the
986 file name produced from DEBUGDIR and the target's directory will
987 be valid on DOS/Windows systems.
988
80062eb9
AB
9892019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
990
991 * rust-lang.c (val_print_struct): Handle printing structures
992 containing strings.
993
b8c05e85
TT
9942019-05-02 Tom Tromey <tromey@adacore.com>
995
996 * valarith.c (_initialize_valarith): Remove.
997
4504bbde
TT
9982019-05-01 Tom Tromey <tromey@adacore.com>
999
1000 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1001 bitfields.
1002
d48e62f4
TT
10032019-05-01 Tom Tromey <tromey@adacore.com>
1004
1005 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1006 for big-endian copies.
1007
15f18d14
AT
10082019-04-30 Ali Tamur <tamur@google.com>
1009 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1010 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1011 (read_3_bytes): New function.
1012
ab4ee614
JB
10132019-04-30 Joel Brobecker <brobecker@adacore.com>
1014
1015 * windows-nat.c (main_thread_id): Delete.
1016 (handle_output_debug_string): Replace main_thread_id by
1017 current_event.dwThreadId.
1018 (fake_create_process): Likewise.
1019 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1020 Do not set main_thread_id.
1021 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1022 current_event.dwThreadId.
1023 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1024
8ed5b76e
JB
10252019-04-30 Joel Brobecker <brobecker@adacore.com>
1026
1027 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1028 Use current_event.dwThreadId instead of main_thread_id.
1029
2ff0a947
TT
10302019-04-30 Tom Tromey <tromey@adacore.com>
1031
1032 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1033 (create_excep_cond_exprs): Iterate over program spaces.
1034 (ada_exception_catchpoint_cond_string): Examine all minimal
1035 symbols for exception types.
1036
a776957c
TT
10372019-04-30 Tom Tromey <tromey@adacore.com>
1038
1039 PR c++/24470:
1040 * dwarf2read.c (process_structure_scope): Handle case where type
1041 has template parameters but no symbol was created.
1042
bc68014d
AB
10432019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1044 Chris January <chris.january@arm.com>
1045
1046 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1047 qualifier.
1048 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1049
f1fdc960
AB
10502019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * f-typeprint.c (f_print_type): Update rules for printing
1053 whitespace.
1054 (f_type_print_varspec_suffix): Likewise.
1055
bf7a4de1
AB
10562019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1057 Chris January <chris.january@arm.com>
1058
1059 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1060 function arguments.
1061
bbe75b9d
AB
10622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1063
1064 * f-lang.c (build_fortran_types): Change name of void type to
1065 lower case.
1066 * f-typeprint.c (f_type_print_base): Print the name of the void
1067 type, rather than a fixed string.
1068 * f-valprint.c (f_decorations): Use lower case void string.
1069
1db455a7
AB
10702019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1071 Chris January <chris.january@arm.com>
1072
1073 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1074 types for Fortran.
1075
b6d03bb2
AB
10762019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1077 Chris January <chris.january@arm.com>
1078 David Lecomber <david.lecomber@arm.com>
1079
1080 * f-exp.y (BINOP_INTRINSIC): New token.
1081 (exp): New parser rule handling BINOP_INTRINSIC.
1082 (f77_keywords): Add new builtin procedures.
1083 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1084 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1085 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1086 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1087 (print_unop_subexp_f): New function.
1088 (print_binop_subexp_f): New function.
1089 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1090 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1091 (dump_subexp_body_f): Likewise.
1092 (operator_check_f): Likewise.
1093 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1094 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1095
83228e93
AB
10962019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1097
1098 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1099 UNOP_KIND.
1100 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1101 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1102 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1103 (operator_length_f): New fuction.
1104 (print_subexp_f): New function.
1105 (op_name_f): New function.
1106 (dump_subexp_body_f): New function.
1107 (operator_check_f): New function.
1108 (exp_descriptor_f): Replace standard expression handling functions
1109 with new functions.
1110 * gdb/fortran-operator.def: New file.
1111 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1112 * gdb/std-operator.def: Remove UNOP_KIND.
1113
6fdcd7cc
AB
11142019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * std-operator.def: Remove unbalanced, stray double quote
1117 character.
1118
2e62ab40
AB
11192019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1120 Chris January <chris.january@arm.com>
1121 Daniel Everett <daniel.everett@arm.com>
1122 Nick Forrington <nick.forrington@arm.com>
1123 Richard Bunt <richard.bunt@arm.com>
1124
1125 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1126 of depth when printing anonymous structs or unions.
1127 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1128 Don't print either the top-level value, or the children if the
1129 max-depth is exceeded.
1130 (ppscm_print_children): When printing the key of a map, allow one
1131 extra level of depth.
1132 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1133 print either the top-level value, or the children if the max-depth
1134 is exceeded.
1135 (print_children): When printing the key of a map, allow one extra
1136 level of depth.
1137 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1138 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1139 (user_print_options): Initialise max_depth field.
1140 (val_print_scalar_or_string_type_p): New function.
1141 (val_print): Check to see if the max depth has been reached.
1142 (val_print_check_max_depth): Define new function.
1143 (show_print_max_depth): New function.
1144 (_initialize_valprint): Add 'print max-depth' option.
1145 * valprint.h (struct value_print_options) <max_depth>: New field.
1146 (val_print_check_max_depth): Declare new function.
1147 * NEWS: Document new feature.
1148
4be290b2
AB
11492019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1150
1151 * ada-lang.c (ada_language_defn): Initialise new field.
1152 * c-lang.c (c_is_string_type_p): New function.
1153 (c_language_defn): Initialise new field.
1154 (cplus_language_defn): Initialise new field.
1155 (asm_language_defn): Initialise new field.
1156 (minimal_language_defn): Initialise new field.
1157 * c-lang.h (c_is_string_type_p): Declare new function.
1158 * d-lang.c (d_language_defn): Initialise new field.
1159 * f-lang.c (f_is_string_type_p): New function.
1160 (f_language_defn): Initialise new field.
1161 * go-lang.c (go_is_string_type_p): New function.
1162 (go_language_defn): Initialise new field.
1163 * language.c (default_is_string_type_p): New function.
1164 (unknown_language_defn): Initialise new field.
1165 (auto_language_defn): Initialise new field.
1166 * language.h (struct language_defn) <la_is_string_type_p>: New
1167 member variable.
1168 (default_is_string_type_p): Declare new function.
1169 * m2-lang.c (m2_language_defn): Initialise new field.
1170 * objc-lang.c (objc_language_defn): Initialise new field.
1171 * opencl-lang.c (opencl_language_defn): Initialise new field.
1172 * p-lang.c (pascal_is_string_type_p): New function.
1173 (pascal_language_defn): Initialise new field.
1174 * rust-lang.c (rust_is_string_type_p): New function.
1175 (rust_language_defn): Initialise new field.
1176
721b08c6
AB
11772019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1180 New field.
1181 * ada-lang.c (ada_language_defn): Initialise new field.
1182 * c-lang.c (c_language_defn): Likewise.
1183 (cplus_language_defn): Likewise.
1184 (asm_language_defn): Likewise.
1185 (minimal_language_defn): Likewise.
1186 * d-lang.c (d_language_defn): Likewise.
1187 * f-lang.c (f_language_defn): Likewise.
1188 * go-lang.c (go_language_defn): Likewise.
1189 * language.c (unknown_language_defn): Likewise.
1190 (auto_language_defn): Likewise.
1191 * m2-lang.c (m2_language_defn): Likewise.
1192 * objc-lang.c (objc_language_defn): Likewise.
1193 * opencl-lang.c (opencl_language_defn): Likewise.
1194 * p-lang.c (pascal_language_defn): Likewise.
1195 * rust-lang.c (rust_language_defn): Likewise.
1196
fc913e53
AB
11972019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * ada-lang.c (ada_is_character_type): Change return type to bool.
1200 (ada_is_string_type): Likewise.
1201 * ada-lang.h (ada_is_character_type): Update declaration
1202 (ada_is_string_type): Likewise.
1203
fa731fa0
PW
12042019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1205
1206 Support style in 'frame|thread apply'
1207
1208 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1209 * record.c (record_start, record_stop): Update callers of
1210 execute_command_to_string with false.
1211 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1212 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1213 methods.
1214 (class string_file): New constructor with term_out parameter.
1215 Override methods term_out and can_emit_style_escape. New member
1216 term_out.
1217 (class stdio_file): Override can_emit_style_escape.
1218 (class tee_file): Override term_out and can_emit_style_escape.
1219 * utils.h (can_emit_style_escape): Remove.
1220 * utils.c (can_emit_style_escape): Likewise.
1221 Update all callers of can_emit_style_escape (SOMESTREAM) to
1222 SOMESTREAM->can_emit_style_escape.
1223 * source-cache.c (source_cache::get_source_lines): Likewise.
1224 * stack.c (frame_apply_command_count): Call execute_command_to_string
1225 passing the term_out characteristic of the current gdb_stdout.
1226 * thread.c (thr_try_catch_cmd): Likewise.
1227 * top.c (execute_command_to_string): pass term_out parameter
1228 to construct the string_file for the command output.
1229 * ui-file.c (term_cli_styling): New function (most code moved
1230 from utils.c can_emit_style_escape).
1231 (string_file::string_file, string_file::can_emit_style_escape,
1232 stdio_file::can_emit_style_escape, tee_file::term_out,
1233 tee_file::can_emit_style_escape): New functions.
1234
136afab8
PW
12352019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1236
1237 * NEWS: Mention the new set|show may-call-functions.
1238 * infcall.c (may_call_functions_p): New variable.
1239 (show_may_call_functions_p): New function.
1240 (call_function_by_hand_dummy): Throws an error if not
1241 may-call-functions.
1242 (_initialize_infcall): Call add_setshow_boolean_cmd for
1243 may-call-functions.
1244
725cbb63
KS
12452019-04-25 Keith Seitz <keiths@redhat.com>
1246
1247 PR c++/24367
1248 * cp-support.c (inspect_type): Don't attempt substitutions
1249 of symbol with the same name.
1250
3d1cbb78
TT
12512019-04-25 Tom Tromey <tromey@adacore.com>
1252
1253 PR gdb/24475:
1254 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1255 static.
1256
94aeb44b
TT
12572019-04-25 Tom Tromey <tromey@adacore.com>
1258
1259 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1260 rvalue reference.
1261 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1262 (gdb_xml_parser::parse): Use std::move.
1263 * python/python-internal.h (gdbpy_convert_exception): Take a const
1264 reference.
1265 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1266 std::move.
1267 * python/py-utils.c (gdbpy_convert_exception): Take a const
1268 reference.
1269 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1270 Use std::move.
1271 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1272 Use std::move.
1273 * mi/mi-main.c (mi_print_exception): Take a const reference.
1274 * main.c (handle_command_errors): Take a const reference.
1275 * linespec.c (parse_linespec): Use std::move.
1276 * infcall.c (run_inferior_call): Use std::move.
1277 (call_function_by_hand_dummy): Use std::move.
1278 * exec.c (try_open_exec_file): Use std::move.
1279 * exceptions.h (exception_print, exception_fprintf)
1280 (exception_print_same): Update.
1281 * exceptions.c (print_exception, exception_print)
1282 (exception_fprintf, exception_print_same): Change parameters to
1283 const reference.
1284 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1285 * common/new-op.c: Use std::move.
1286 * common/common-exceptions.h (struct gdb_exception): Add move
1287 constructor.
1288 (struct gdb_exception_error, struct gdb_exception_quit, struct
1289 gdb_quit_bad_alloc): Change constructor to move constructor.
1290 (throw_exception): Change parameter to rvalue reference.
1291 * common/common-exceptions.c (throw_exception): Take rvalue
1292 reference.
1293 * cli/cli-interp.c (safe_execute_command): Use std::move.
1294 * breakpoint.c (insert_bp_location, location_to_sals): Use
1295 std::move.
1296
680d7fd5
TT
12972019-04-25 Tom Tromey <tromey@adacore.com>
1298
1299 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1300 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1301 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1302 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1303 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1304 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1305 guile/scm-value.c: Use unpack.
1306 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1307 gdbscm_gdb_exception.
1308 (gdbscm_throw_gdb_exception): Likewise.
1309 (struct gdbscm_gdb_exception): New.
1310 (unpack): New function.
1311 (gdbscm_wrap): Use unpack.
1312
c6fdd8b2
TT
13132019-04-25 Tom Tromey <tromey@adacore.com>
1314
1315 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1316 (gdb_rl_callback_handler): Use std::move.
1317 * common/common-exceptions.h (struct gdb_exception): Add move
1318 assignment operator.
1319 (throw_exception_sjlj): Change "exception" to const reference.
1320 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1321 (throw_exception_sjlj): Change "exception" to const reference.
1322
cc06b668
TT
13232019-04-25 Tom Tromey <tromey@adacore.com>
1324
1325 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1326 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1327 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1328 Update.
1329 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1330 Update.
1331 * mi/mi-interp.c (mi_interp::exec): Update.
1332 * linespec.c (parse_linespec): Update.
1333 * infcall.c (run_inferior_call): Update.
1334 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1335 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1336 (gdbscm_lookup_global_symbol): Update.
1337 * guile/scm-param.c (gdbscm_parameter_value): Update.
1338 * guile/scm-frame.c (gdbscm_frame_read_register)
1339 (gdbscm_frame_read_var): Update.
1340 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1341 * exec.c (try_open_exec_file): Update.
1342 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1343 (gdb_rl_callback_handler): Update.
1344 * common/common-exceptions.h (exception_none): Don't declare.
1345 * common/common-exceptions.c (exception_none): Don't define.
1346 (struct catcher) <exception>: Update.
1347 * cli/cli-interp.c (safe_execute_command): Update.
1348 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1349
cf532bd1
AT
13502019-04-25 Ali Tamur <tamur@google.com>
1351
1352 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1353 (read_attribute_value): Likewise.
1354 (dwarf2_read_addr_index): Update comment.
1355 (read_str_index): Add DW_FORM_strx.
1356 (dwarf2_string_attr): Likewise.
1357 (dwarf2_const_value_attr): Likewise.
1358 (dump_die_shallow): Likewise.
1359 (dwarf2_fetch_constant_bytes): Likewise.
1360 (skip_form_bytes): Likewise.
1361 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1362
82433e3e
SDJ
13632019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1364
1365 PR corefiles/11608
1366 PR corefiles/18187
1367 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1368 OFFSET. Verify if current mapping contains an ELF header.
1369 (linux_find_memory_regions_full): Adjust call to
1370 dump_mapping_p.
1371
723adb65
SL
13722019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1373 Kang Li <kanglictf@gmail.com>
1374
1375 PR gdb/21600
1376
1377 * dwarf2-frame.c (read_initial_length): Be consistent about using
1378 unsigned representation of length.
1379 (decode_frame_entry_1): Likewise. Check for wraparound of
1380 end pointer as well as buffer overflow.
1381
596179f7
SDJ
13822019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1383
1384 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1385 "vq".
1386
a59240a4
TT
13872019-04-24 Tom Tromey <tromey@adacore.com>
1388
1389 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1390
f872fdbb
AB
13912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1392
1393 * s12z-tdep.c (s12z_unwind_pc): Delete.
1394 (s12z_unwind_sp): Delete.
1395 (s12z_gdbarch_init): Don't register deleted functions with
1396 gdbarch.
1397
b614e6f3
AB
13982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 * rl78-tdep.c (rl78_unwind_sp): Delete.
1401 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1402
14faed38
AB
14032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1404
1405 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1406 (xstormy16_unwind_pc): Delete.
1407 (xstormy16_dummy_id): Delete.
1408 (xstormy16_gdbarch_init): Don't register deleted functions with
1409 gdbarch.
1410
541aad8a
AB
14112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * vax-tdep.c (vax_unwind_pc): Delete.
1414 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1415
29222070
AB
14162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * v850-tdep.c (v850_unwind_sp): Delete.
1419 (v850_unwind_pc): Delete.
1420 (v850_dummy_id): Delete.
1421 (v850_gdbarch_init): Don't register deleted functions with
1422 gdbarch.
1423
0f534d76
AB
14242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1427 (tilegx_unwind_pc): Delete.
1428 (tilegx_unwind_dummy_id): Delete.
1429 (tilegx_gdbarch_init): Don't register deleted functions with
1430 gdbarch.
1431
1ba7b7f9
AB
14322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1435 (tic6x_dummy_id): Delete.
1436 (tic6x_gdbarch_init): Don't register deleted functions with
1437 gdbarch.
1438
d31f262c
AB
14392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1440
1441 * sparc-tdep.c (sparc_unwind_pc): Delete.
1442 (sparc32_gdbarch_init): Don't register deleted function with
1443 gdbarch.
1444
6d14d64d
AB
14452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * sh-tdep.c (sh_unwind_sp): Delete.
1448 (sh_unwind_pc): Delete.
1449 (sh_dummy_id): Delete.
1450 (sh_gdbarch_init): Don't register deleted functions with
1451 gdbarch.
1452
a40dde9d
AB
14532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * score-tdep.c (score_unwind_sp): Delete.
1456 (score_unwind_pc): Delete.
1457 (score_dummy_id): Delete.
1458 (score_gdbarch_init): Don't register deleted functions with
1459 gdbarch.
1460
47c47d69
AB
14612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1462
1463 * rx-tdep.c (rx_unwind_pc): Delete.
1464 (rx_unwind_sp): Delete.
1465 (rx_dummy_id): Delete.
1466 (rx_gdbarch_init): Don't register deleted functions with
1467 gdbarch. Update comment.
1468
833a4480
AB
14692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1470
1471 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1472 (rs6000_dummy_id): Delete.
1473 (rs6000_gdbarch_init): Don't register deleted functions with
1474 gdbarch.
1475
3f2cef49
AB
14762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 * or1k-tdep.c (or1k_dummy_id): Delete.
1479 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1480
96acf884
AB
14812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * nios2-tdep.c (nios2_dummy_id): Delete.
1484 (nios2_unwind_sp): Delete.
1485 (nios2_gdbarch_init): Don't register deleted functions with
1486 gdbarch.
1487
ca0ab0aa
AB
14882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1489
1490 * nds32-tdep.c (nds32_dummy_id): Delete.
1491 (nds32_unwind_pc): Delete.
1492 (nds32_unwind_sp): Delete.
1493 (nds32_gdbarch_init): Don't register deleted functions with
1494 gdbarch.
1495
c8259044
AB
14962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1497
1498 * msp430-tdep.c (msp430_unwind_pc): Delete.
1499 (msp430_unwind_sp): Delete.
1500 (msp430_dummy_id): Delete.
1501 (msp430_gdbarch_init): Don't register deleted functions with
1502 gdbarch.
1503
27f113c8
AB
15042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1505
1506 * moxie-tdep.c (moxie_unwind_sp): Delete.
1507 (moxie_unwind_pc): Delete.
1508 (moxie_dummy_id): Delete.
1509 (moxie_gdbarch_init): Don't register deleted functions with
1510 gdbarch.
1511
aee6c3cd
AB
15122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1513
1514 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1515 (mn10300_unwind_pc): Delete.
1516 (mn10300_unwind_sp): Delete.
1517 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1518 mn10300_unwind_sp.
1519 (mn10300_frame_unwind_init): Don't register deleted functions with
1520 gdbarch.
1521
8e2b5aea
AB
15222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1523
1524 * mep-tdep.c (mep_unwind_pc): Delete.
1525 (mep_unwind_sp): Delete.
1526 (mep_dummy_id): Delete.
1527 (mep_gdbarch_init): Don't register deleted functions with
1528 gdbarch.
1529
43cf3ede
AB
15302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1531
1532 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1533 (m68hc11_unwind_sp): Delete.
1534 (m68hc11_gdbarch_init): Don't register deleted functions with
1535 gdbarch.
1536
5e79b7bb
AB
15372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1538
1539 * m32r-tdep.c (m32r_unwind_sp): Delete.
1540 (m32r_unwind_pc): Delete.
1541 (m32r_dummy_id): Delete.
1542 (m32r_gdbarch_init): Don't register deleted functions with
1543 gdbarch.
1544
89b268d8
AB
15452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1546
1547 * m32c-tdep.c (m32c_unwind_pc): Delete.
1548 (m32c_unwind_sp): Delete.
1549 (m32c_dummy_id): Delete.
1550 (m32c_gdbarch_init): Don't register deleted functions with
1551 gdbarch.
1552
946c28d2
AB
15532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1554
1555 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1556 (lm32_unwind_pc): Delete.
1557 (lm32_dummy_id): Delete.
1558 (lm32_gdbarch_init): Don't register deleted functions with
1559 gdbarch.
1560
bf12844a
AB
15612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1562
1563 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1564 (iq2000_unwind_pc): Delete.
1565 (iq2000_dummy_id): Delete.
1566 (iq2000_gdbarch_init): Don't register deleted functions with
1567 gdbarch.
1568
ecbc06d2
AB
15692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1570
1571 * nds32-tdep.c (nds32_type_align): Delete.
1572 (nds32_push_dummy_call): Use type_align instead.
1573
030197b4
AB
15742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1575
1576 * arm-tdep.c (arm_type_align): Only handle vector override case.
1577 (arm_push_dummy_call): Use type_align.
1578 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1579
b907456c
AB
15802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1581
1582 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1583 case.
1584 (pass_on_stack): Use type_align.
1585 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1586 function.
1587
9e97ba43
TT
15882019-04-23 Tom Tromey <tromey@adacore.com>
1589
1590 * dwarf2read.c (line_header::file_name_at): Remove unused
1591 overload.
1592
6892f601
TV
15932019-04-23 Tom de Vries <tdevries@suse.de>
1594
1595 PR gdb/24438
1596 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1597 invocation.
1598
336d760d
AT
1599
16002019-03-27 Ali Tamur <tamur@google.com>
1601
1602 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1603 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1604 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1605 (dwarf_expr_context::get_addr_index): Likewise
1606 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1607 (symbol_needs_eval_context::get_addr_index): Likewise
1608 (disassemble_dwarf_expression): Add DW_OP_addrx
1609 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1610 (read_cutu_die_from_dwo): Update comment
1611 (skip_one_die): Add DW_FORM_addrx
1612 (read_attribute_value): Likewise
1613 (var_decode_location): Add DW_OP_addrx
1614 (dwarf2_const_value_attr): Add DW_FORM_addrx
1615 (dump_die_shallow): Likewise
1616 (dwarf2_fetch_constant_bytes): Likewise
1617 (decode_locdesc): Add DW_OP_addrx
1618 (skip_form_bytes): Add DW_FORM_addrx
1619
ad9d13f8
AT
16202019-04-22 Ali Tamur <tamur@google.com>
1621
1622 * MAINTAINERS (Write After Approval): Add self.
1623
d70cc3ba
SM
16242019-04-22 Simon Marchi <simon.marchi@efficios.com>
1625
1626 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1627 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1628 (open_symbol_file_object): Likewise.
1629 (svr4_default_sos): Add info parameter.
1630 (svr4_read_so_list): Likewise.
1631 (svr4_current_sos_direct): Adjust functions calls to pass down
1632 info.
1633 (svr4_current_sos_1): Add info parameter.
1634 (svr4_current_sos): Call get_svr4_info, pass info down to
1635 svr4_current_sos_1.
1636 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1637 get_svr4_info.
1638 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1639 get_svr4_info.
1640 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1641 to get_svr4_info.
1642 (probes_table_remove_objfile_probes): Likewise.
1643 (register_solib_event_probe): Add info parameter.
1644 (solist_update_incremental): Pass info parameter down to
1645 svr4_read_so_list.
1646 (disable_probes_interface): Add info parameter.
1647 (svr4_handle_solib_event): Pass current_program_space to
1648 get_svr4_info. Adjust disable_probes_interface cleanup.
1649 (svr4_create_probe_breakpoints): Add info parameter, pass it
1650 down to register_solib_event_probe.
1651 (svr4_create_solib_event_breakpoints): Add info parameter,
1652 pass it down to svr4_create_probe_breakpoints.
1653 (enable_break): Pass info down to
1654 svr4_create_solib_event_breakpoints.
1655 (svr4_solib_create_inferior_hook): Pass current_program_space to
1656 get_svr4_info.
1657 (svr4_clear_solib): Likewise.
1658
7905fc35
PA
16592019-04-22 Pedro Alves <palves@redhat.com>
1660
1661 * solib-svr4.c (svr4_free_objfile_observer): New.
1662 (probe_and_action::objfile): New field.
1663 (probes_table_htab_remove_objfile_probes)
1664 (probes_table_remove_objfile_probes): New functions.
1665 (register_solib_event_probe): Add 'objfile' parameter. Store it
1666 in the new probe_and_action. Don't store the probe in 'lookup'.
1667 (svr4_create_probe_breakpoints): Pass objfile to
1668 register_solib_event_probe.
1669 (_initialize_svr4_solib): Register a free_objfile observer.
1670
fb881986
TT
16712019-04-19 Tom Tromey <tom@tromey.com>
1672
1673 * common/queue.h: Remove.
1674
8732db6c
TT
16752019-04-19 Tom Tromey <tom@tromey.com>
1676
1677 * event-loop.c: Don't include "common/queue.h".
1678
97dfbadd
TT
16792019-04-19 Tom Tromey <tom@tromey.com>
1680
1681 * remote.c (remote_target): Use delete.
1682 * remote-notif.h: Include <list>, not "common/queue.h".
1683 (notif_client_p): Remove typedef.
1684 (remote_notif_state): Add constructor, destructor, initializer.
1685 <notif_queue>: Now a std::list.
1686 (remote_notif_state_xfree): Don't declare.
1687 * remote-notif.c (remote_notif_process, handle_notification)
1688 (remote_notif_state_allocate): Update.
1689 (~remote_notif_state): Rename from remote_notif_state_xfree.
1690
cf250e36
TT
16912019-04-19 Tom Tromey <tom@tromey.com>
1692
1693 * symfile.c (reread_symbols): Update.
1694 * objfiles.c (objfile_register_static_link)
1695 (objfile_lookup_static_link): Update
1696 (~objfile) Don't delete static_links.
1697 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1698
61f4b350
TT
16992019-04-19 Tom Tromey <tom@tromey.com>
1700
1701 * type-stack.h (struct type_stack) <insert>: Constify string.
1702 * type-stack.c (type_stack::insert): Constify string.
1703 * gdbtypes.h (lookup_template_type): Update.
1704 (address_space_name_to_int): Update.
1705 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1706 const.
1707 (lookup_template_type): Make name const.
1708 * c-exp.y: Update rules.
1709 (lex_one_token, classify_name, classify_inner_name)
1710 (c_print_token): Update.
1711 * p-exp.y: Update rules.
1712 (yylex): Update.
1713 * f-exp.y: Update rules.
1714 (yylex): Update.
1715 * d-exp.y: Update rules.
1716 (lex_one_token, classify_name, classify_inner_name): Update.
1717 * parse.c (write_dollar_variable, copy_name): Return std::string.
1718 * parser-defs.h (copy_name): Change return type.
1719 * m2-exp.y: Update rules.
1720 (yylex): Update.
1721 * go-exp.y (lex_one_token): Update.
1722 Update rules.
1723 (classify_unsafe_function, classify_packaged_name)
1724 (classify_name, yylex): Update.
1725
189b8c2e
ST
17262019-04-19 Sergei Trofimovich <siarheit@google.com>
1727
1728 * configure.ac: add --enable-source-highlight switch.
1729 * configure: Regenerate.
1730 * top.c (print_gdb_version): plumb --enable-source-highlight
1731 status to "show configuration".
1732
8ecb59f8
TT
17332019-04-19 Tom Tromey <tromey@adacore.com>
1734
1735 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1736 Check ADA_TYPE_P.
1737 (empty_record, ada_template_to_fixed_record_type_1)
1738 (template_to_static_fixed_type)
1739 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1740 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1741 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1742 macros.
1743
62160ec9
TT
17442019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1745
1746 PR symtab/24423:
1747 * source.c (print_source_lines_base): Advance "iter" when a
1748 control character is seen.
1749
f2ae8bc8
PW
17502019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1751
1752 * inferior.h (struct infcall_suspend_state_deleter):
1753 Catch exception in destructor to avoid crash.
1754
d563b953
PW
17552019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1756
1757 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1758 close to the add_com "shell".
1759
dc34c897
TT
17602019-04-18 Tom Tromey <tromey@adacore.com>
1761
1762 * process-stratum-target.h (class process_stratum_target)
1763 <stratum>: Add "final".
1764
a12e5744
TT
17652019-04-17 Tom Tromey <tromey@adacore.com>
1766
1767 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1768 against nullptr before use.
1769
a7e559cc
AH
17702019-04-17 Alan Hayward <alan.hayward@arm.com>
1771
1772 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1773
c01660c6
AB
17742019-04-17 Jim Wilson <jimw@sifive.com>
1775 Andrew Burgess <andrew.burgess@embecosm.com>
1776
1777 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1778 code read might fail, assume 4-byte breakpoint in that case.
1779
4aa866af
LS
17802019-04-15 Leszek Swirski <leszeks@google.com>
1781
1782 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1783 rather than a hand-rolled POD check when checking for forced MEMORY
1784 classification.
1785
48574d91
AH
17862019-04-15 Alan Hayward <alan.hayward@arm.com>
1787
1788 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1789 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1790 function.
1791 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1792 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1793 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1794 declaration.
1795
4da037ef
AH
17962019-04-15 Alan Hayward <alan.hayward@arm.com>
1797
1798 * aarch64-linux-nat.c
1799 (aarch64_linux_nat_target::thread_architecture): Add override.
1800 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1801 each VQ.
1802
ccb8d7e8
AH
18032019-04-15 Alan Hayward <alan.hayward@arm.com>
1804
1805 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1806
35add35e
AB
18072019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1808
1809 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1810 target types of size 96-bits, add some additional comments, and
1811 check that the builtin type we found was the correct size.
1812
51196bbc
EZ
18132019-04-12 Eli Zaretskii <eliz@gnu.org>
1814
1815 * utils.c (prompt_for_continue): Don't restore the styling at the
1816 end, as applied_style has the wrong value. This fixes styling in
1817 long lists of file names that are interrupted by the "Continue?"
1818 prompt.
1819
62253a61
AB
18202019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1823 * c-lang.c (c_language_defn): Likewise.
1824 (cplus_language_defn): Likewise.
1825 (asm_language_defn): Likewise.
1826 (minimal_language_defn): Likewise.
1827 * d-lang.c (d_language_defn): Likewise.
1828 * f-lang.c (f_language_defn): Likewise.
1829 * go-lang.c (go_language_defn): Likewise.
1830 * language.c (unknown_language_defn): Likewise.
1831 (auto_language_defn): Likewise.
1832 * language.h (struct language_defn): Remove la_magic field.
1833 (LANG_MAGIC): Delete.
1834 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1835 * objc-lang.c (objc_language_defn): Likewise.
1836 * opencl-lang.c (opencl_language_defn): Likewise.
1837 * p-lang.c (pascal_language_defn): Likewise.
1838 * rust-lang.c (rust_language_defn): Likewise.
1839
a9158a86
AB
18402019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * riscv-tdep.c (riscv_type_align): New function.
1843 (riscv_type_alignment): Delete.
1844 (riscv_arg_location): Use 'type_align'.
1845 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1846
41077b66
AB
18472019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1848
1849 * gdbtypes.c (type_align): A struct with no non-static fields also
1850 has alignment of 1.
1851
9f0272f8
AB
18522019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1853
1854 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1855 component to 0.
1856 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1857 member.
1858 (riscv_struct_info::analyse): New implementation using new
1859 analyse_inner member function.
1860 (riscv_struct_info::field_offset): New member function.
1861 (riscv_struct_info::m_offsets): New member variable.
1862 (riscv_struct_info::analyse_inner): New private member function,
1863 takes the old implementation of riscv_struct_info::analyse but
1864 extended to track field offsets.
1865 (riscv_call_arg_struct): Update the struct folding special cases
1866 to handle cases where empty C++ structs, which are non-zero
1867 length, are found.
1868 (riscv_arg_location): Initialise the length of each location, a
1869 non-zero length now indicates the location is in use.
1870 (riscv_push_dummy_call): Allow for the first location having a
1871 non-zero offset when setting up arguments.
1872 (riscv_return_value): Likewise, but for return values.
1873
02cf60c7
TT
18742019-04-11 Tom Tromey <tromey@adacore.com>
1875
1876 * utils.c (internal_vproblem): Make "msg" const.
1877
68811f8f
AH
18782019-04-11 Alan Hayward <alan.hayward@arm.com>
1879
1880 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1881 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1882 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1883 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1884
3f52fdbc
KB
18852019-04-10 Kevin Buettner <kevinb@redhat.com>
1886
1887 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1888 function.
1889 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1890 of amd64_collect_native_gregset.
1891 (amd64_linux_nat_target::store_registers): Likewise.
1892
e9ad22ee
TT
18932019-04-10 Tom Tromey <tom@tromey.com>
1894
1895 * symtab.c (lookup_global_symbol_from_objfile)
1896 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1897 * objfiles.h (class separate_debug_iterator): New.
1898 (class separate_debug_range): New.
1899 (struct objfile) <separate_debug_objfiles>: New method.
1900 (objfile_separate_debug_iterate): Don't declare.
1901 * objfiles.c (separate_debug_iterator::operator++): Rename from
1902 objfile_separate_debug_iterate.
1903 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1904 iterator.
1905 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1906 iterator.
1907
ee371134
TT
19082019-04-10 Tom Tromey <tom@tromey.com>
1909
1910 * symfile.c (reread_symbols): Remove old comment.
1911 * objfiles.c (free_all_objfiles): Fix a typo.
1912
bf227d61
TT
19132019-04-10 Tom Tromey <tom@tromey.com>
1914
1915 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1916 * minsyms.c (lookup_minimal_symbol): Use foreach.
1917 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1918 (lookup_minimal_symbol_solib_trampoline): Likewise.
1919 * symfile.c (reread_symbols): Use foreach.
1920
8dc433a0
TT
19212019-04-09 Ivan Begert <ivanbegert@gmail.com>
1922 Tom Tromey <tromey@adacore.com>
1923
1924 PR rust/24414:
1925 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1926 (rust_lex_int_test): Change "value" to be LONGEST.
1927 (rust_lex_tests): Add test for long integer literal.
1928
9ab8741a
TT
19292019-04-09 Tom Tromey <tromey@adacore.com>
1930
1931 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1932 to bool.
1933 (extended_remote_target::attach): Update.
1934 (remote_target::remote_notice_new_inferior): Update.
1935 (remote_target::add_current_inferior_and_thread): Update.
1936 * inferior.c (exit_inferior_1): Use "false".
1937 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1938
e242fd12
SM
19392019-04-09 Simon Marchi <simon.marchi@efficios.com>
1940
9ca1957f 1941 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
1942 the "start" command.
1943
2b0c8b01
KB
19442019-04-08 Kevin Buettner <kevinb@redhat.com>
1945
1946 * python/py-inferior.c (infpy_thread_from_thread_handle):
1947 Adjust comments to reflect renaming of thread_from_thread_handle
1948 to thread_from_handle. Adjust keywords. Fix type error message.
1949 (inferior_object_methods): Add thread_from_handle. Retain
1950 thread_from_thread_handle, but mark it as deprecated.
1951
50a82723
KB
19522019-04-08 Kevin Buettner <kevinb@redhat.com>
1953
1954 * gdbthread.h (find_thread_by_handle): Revise declaration.
1955 * thread.c (find_thread_by_handle): Likewise. Adjust
1956 implementation too.
1957 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1958 support for buffer objects as handles.
1959
cf63b016
KB
19602019-04-08 Kevin Buettner <kevinb@redhat.com>
1961
1962 * python/py-infthread.c (thpy_thread_handle): New function.
1963 (thread_object_methods): Register thpy_thread_handle.
1964
3d6c6204
KB
19652019-04-08 Kevin Buettner <kevinb@redhat.com>
1966
1967 * gdbthread.h (thread_to_thread_handle): Declare.
1968 * thread.c (gdbtypes.h): Include.
1969 (thread_to_thread_handle): New function.
1970
1971 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1972 (target_thread_info_to_thread_handle): Declare.
1973 * target.c (target_thread_info_to_thread_handle): New function.
1974 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1975 * target-delegates.c: Regenerate.
1976
1977 * linux-thread-db.c (class thread_db_target): Add method
1978 thread_info_to_thread_handle.
1979 (thread_db_target::thread_info_to_thread_handle): Define.
1980 * remote.c (class remote_target): Add new method
1981 thread_info_to_thread_handle.
1982 (remote_target::thread_info_to_thread_handle): Define.
1983
56be6ea8
PA
19842019-04-08 Pedro Alves <palves@redhat.com>
1985
1986 * common/common-exceptions.c (throw_exception): Don't create
1987 named object to throw; throw directly.
1988 (throw_it): Likewise. Don't initialize gdb_exception::message
1989 here, with new; pass FMT and AP to the ctor instead.
1990 * common/common-exceptions.h: Include <string>.
1991 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1992 const char *, va_list)): New ctor. Use std::make_shared.
1993 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1994 errors)): Delete.
1995 (gdb_exception_error::gdb_exception_error(enum errors, const char
1996 *, va_list)): New.
1997 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1998 Add assertion.
1999 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2000 errors)): Delete.
2001 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2002 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2003 Add assertion.
2004
eedc3f4f
TT
20052019-04-08 Tom Tromey <tom@tromey.com>
2006
2007 * valops.c (value_rtti_indirect_type): Replace throw_exception
2008 with throw.
2009 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2010 with throw.
2011 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2012 throw.
2013 * target.c (target_translate_tls_address): Replace throw_exception
2014 with throw.
2015 * stack.c (frame_apply_command_count): Replace throw_exception
2016 with throw.
2017 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2018 throw.
2019 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2020 with throw.
2021 * rs6000-tdep.c (rs6000_frame_cache)
2022 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2023 * remote.c: Replace throw_exception with throw.
2024 * record-full.c (record_full_message, record_full_wait_1)
2025 (record_full_restore): Replace throw_exception with throw.
2026 * record-btrace.c:
2027 (get_thread_current_frame_id, record_btrace_start_replaying)
2028 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2029 (cmd_record_btrace_start): Replace throw_exception with throw.
2030 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2031 throw.
2032 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2033 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2034 * linespec.c:
2035 (find_linespec_symbols): Replace throw_exception with throw.
2036 * infrun.c (displaced_step_prepare, resume): Replace
2037 throw_exception with throw.
2038 * infcmd.c (post_create_inferior): Replace throw_exception with
2039 throw.
2040 * inf-loop.c (inferior_event_handler): Replace throw_exception
2041 with throw.
2042 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2043 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2044 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2045 (get_prev_frame_always, get_frame_pc_if_available)
2046 (get_frame_address_in_block_if_available, get_frame_language):
2047 Replace throw_exception with throw.
2048 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2049 throw_exception with throw.
2050 * eval.c (fetch_subexp_value, evaluate_var_value)
2051 (evaluate_funcall, evaluate_subexp_standard): Replace
2052 throw_exception with throw.
2053 * dwarf2loc.c (call_site_find_chain)
2054 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2055 Replace throw_exception with throw.
2056 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2057 with throw.
2058 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2059 throw.
2060 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2061 * completer.c (complete_line_internal): Replace throw_exception
2062 with throw.
2063 * compile/compile-object-run.c (compile_object_run): Replace
2064 throw_exception with throw.
2065 * cli/cli-script.c (process_next_line): Replace throw_exception
2066 with throw.
2067 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2068 (btrace_enable, btrace_maint_update_pt_packets): Replace
2069 throw_exception with throw.
2070 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2071 throw_exception with throw.
2072 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2073 throw_exception with throw.
2074 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2075 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2076 * aarch64-tdep.c (aarch64_make_prologue_cache)
2077 (aarch64_make_stub_cache): Replace throw_exception with throw.
2078
26003a20
TT
20792019-04-08 Tom Tromey <tom@tromey.com>
2080
2081 * common/common-exceptions.c (throw_exception): Rename from
2082 throw_exception_cxx. Remove old copy. Make argument const.
2083 (throw_it): Create and throw exception objects directly.
2084 * common/common-exceptions.h (throw_exception): Make argument
2085 const.
2086 (struct gdb_exception_error): Add constructor.
2087 (struct gdb_exception_quit): Add constructor.
2088
d272eb37
TT
20892019-04-08 Tom Tromey <tom@tromey.com>
2090
2091 * common/common-exceptions.h (exception_rethrow): Don't declare.
2092 (TRY_SJLJ): Update comment.
2093 (TRY, CATCH, END_CATCH): Remove.
2094 * common/common-exceptions.c (exception_rethrow): Remove.
2095
230d2906
TT
20962019-04-08 Tom Tromey <tom@tromey.com>
2097
2098 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2099 Remove.
2100 (gdb_exception_error): Rename from
2101 gdb_exception_RETURN_MASK_ERROR.
2102 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2103 (gdb_quit_bad_alloc): Update.
2104 * aarch64-tdep.c: Update.
2105 * ada-lang.c: Update.
2106 * ada-typeprint.c: Update.
2107 * ada-valprint.c: Update.
2108 * amd64-tdep.c: Update.
2109 * arch-utils.c: Update.
2110 * break-catch-throw.c: Update.
2111 * breakpoint.c: Update.
2112 * btrace.c: Update.
2113 * c-varobj.c: Update.
2114 * cli/cli-cmds.c: Update.
2115 * cli/cli-interp.c: Update.
2116 * cli/cli-script.c: Update.
2117 * common/common-exceptions.c: Update.
2118 * common/new-op.c: Update.
2119 * common/selftest.c: Update.
2120 * compile/compile-c-symbols.c: Update.
2121 * compile/compile-cplus-symbols.c: Update.
2122 * compile/compile-object-load.c: Update.
2123 * compile/compile-object-run.c: Update.
2124 * completer.c: Update.
2125 * corelow.c: Update.
2126 * cp-abi.c: Update.
2127 * cp-support.c: Update.
2128 * cp-valprint.c: Update.
2129 * darwin-nat.c: Update.
2130 * disasm-selftests.c: Update.
2131 * dtrace-probe.c: Update.
2132 * dwarf-index-cache.c: Update.
2133 * dwarf-index-write.c: Update.
2134 * dwarf2-frame-tailcall.c: Update.
2135 * dwarf2-frame.c: Update.
2136 * dwarf2loc.c: Update.
2137 * dwarf2read.c: Update.
2138 * eval.c: Update.
2139 * event-loop.c: Update.
2140 * event-top.c: Update.
2141 * exec.c: Update.
2142 * f-valprint.c: Update.
2143 * fbsd-tdep.c: Update.
2144 * frame-unwind.c: Update.
2145 * frame.c: Update.
2146 * gdbtypes.c: Update.
2147 * gnu-v3-abi.c: Update.
2148 * guile/guile-internal.h: Update.
2149 * guile/scm-block.c: Update.
2150 * guile/scm-breakpoint.c: Update.
2151 * guile/scm-cmd.c: Update.
2152 * guile/scm-disasm.c: Update.
2153 * guile/scm-frame.c: Update.
2154 * guile/scm-lazy-string.c: Update.
2155 * guile/scm-math.c: Update.
2156 * guile/scm-param.c: Update.
2157 * guile/scm-ports.c: Update.
2158 * guile/scm-pretty-print.c: Update.
2159 * guile/scm-symbol.c: Update.
2160 * guile/scm-symtab.c: Update.
2161 * guile/scm-type.c: Update.
2162 * guile/scm-value.c: Update.
2163 * i386-linux-tdep.c: Update.
2164 * i386-tdep.c: Update.
2165 * inf-loop.c: Update.
2166 * infcall.c: Update.
2167 * infcmd.c: Update.
2168 * infrun.c: Update.
2169 * jit.c: Update.
2170 * language.c: Update.
2171 * linespec.c: Update.
2172 * linux-fork.c: Update.
2173 * linux-nat.c: Update.
2174 * linux-tdep.c: Update.
2175 * linux-thread-db.c: Update.
2176 * main.c: Update.
2177 * mi/mi-cmd-break.c: Update.
2178 * mi/mi-cmd-stack.c: Update.
2179 * mi/mi-interp.c: Update.
2180 * mi/mi-main.c: Update.
2181 * objc-lang.c: Update.
2182 * p-valprint.c: Update.
2183 * parse.c: Update.
2184 * ppc-linux-tdep.c: Update.
2185 * printcmd.c: Update.
2186 * python/py-arch.c: Update.
2187 * python/py-breakpoint.c: Update.
2188 * python/py-cmd.c: Update.
2189 * python/py-finishbreakpoint.c: Update.
2190 * python/py-frame.c: Update.
2191 * python/py-framefilter.c: Update.
2192 * python/py-gdb-readline.c: Update.
2193 * python/py-inferior.c: Update.
2194 * python/py-infthread.c: Update.
2195 * python/py-lazy-string.c: Update.
2196 * python/py-linetable.c: Update.
2197 * python/py-objfile.c: Update.
2198 * python/py-param.c: Update.
2199 * python/py-prettyprint.c: Update.
2200 * python/py-progspace.c: Update.
2201 * python/py-record-btrace.c: Update.
2202 * python/py-record.c: Update.
2203 * python/py-symbol.c: Update.
2204 * python/py-type.c: Update.
2205 * python/py-unwind.c: Update.
2206 * python/py-utils.c: Update.
2207 * python/py-value.c: Update.
2208 * python/python.c: Update.
2209 * record-btrace.c: Update.
2210 * record-full.c: Update.
2211 * remote-fileio.c: Update.
2212 * remote.c: Update.
2213 * riscv-tdep.c: Update.
2214 * rs6000-aix-tdep.c: Update.
2215 * rs6000-tdep.c: Update.
2216 * rust-exp.y: Update.
2217 * rust-lang.c: Update.
2218 * s390-tdep.c: Update.
2219 * selftest-arch.c: Update.
2220 * solib-dsbt.c: Update.
2221 * solib-frv.c: Update.
2222 * solib-spu.c: Update.
2223 * solib-svr4.c: Update.
2224 * solib.c: Update.
2225 * sparc64-linux-tdep.c: Update.
2226 * stack.c: Update.
2227 * symfile-mem.c: Update.
2228 * symmisc.c: Update.
2229 * target.c: Update.
2230 * thread.c: Update.
2231 * top.c: Update.
2232 * tracefile-tfile.c: Update.
2233 * tui/tui.c: Update.
2234 * typeprint.c: Update.
2235 * unittests/cli-utils-selftests.c: Update.
2236 * unittests/parse-connection-spec-selftests.c: Update.
2237 * valops.c: Update.
2238 * valprint.c: Update.
2239 * value.c: Update.
2240 * varobj.c: Update.
2241 * windows-nat.c: Update.
2242 * x86-linux-nat.c: Update.
2243 * xml-support.c: Update.
2244
a70b8144
TT
22452019-04-08 Tom Tromey <tom@tromey.com>
2246
2247 * xml-support.c: Use C++ exception handling.
2248 * x86-linux-nat.c: Use C++ exception handling.
2249 * windows-nat.c: Use C++ exception handling.
2250 * varobj.c: Use C++ exception handling.
2251 * value.c: Use C++ exception handling.
2252 * valprint.c: Use C++ exception handling.
2253 * valops.c: Use C++ exception handling.
2254 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2255 handling.
2256 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2257 * typeprint.c: Use C++ exception handling.
2258 * tui/tui.c: Use C++ exception handling.
2259 * tracefile-tfile.c: Use C++ exception handling.
2260 * top.c: Use C++ exception handling.
2261 * thread.c: Use C++ exception handling.
2262 * target.c: Use C++ exception handling.
2263 * symmisc.c: Use C++ exception handling.
2264 * symfile-mem.c: Use C++ exception handling.
2265 * stack.c: Use C++ exception handling.
2266 * sparc64-linux-tdep.c: Use C++ exception handling.
2267 * solib.c: Use C++ exception handling.
2268 * solib-svr4.c: Use C++ exception handling.
2269 * solib-spu.c: Use C++ exception handling.
2270 * solib-frv.c: Use C++ exception handling.
2271 * solib-dsbt.c: Use C++ exception handling.
2272 * selftest-arch.c: Use C++ exception handling.
2273 * s390-tdep.c: Use C++ exception handling.
2274 * rust-lang.c: Use C++ exception handling.
2275 * rust-exp.y: Use C++ exception handling.
2276 * rs6000-tdep.c: Use C++ exception handling.
2277 * rs6000-aix-tdep.c: Use C++ exception handling.
2278 * riscv-tdep.c: Use C++ exception handling.
2279 * remote.c: Use C++ exception handling.
2280 * remote-fileio.c: Use C++ exception handling.
2281 * record-full.c: Use C++ exception handling.
2282 * record-btrace.c: Use C++ exception handling.
2283 * python/python.c: Use C++ exception handling.
2284 * python/py-value.c: Use C++ exception handling.
2285 * python/py-utils.c: Use C++ exception handling.
2286 * python/py-unwind.c: Use C++ exception handling.
2287 * python/py-type.c: Use C++ exception handling.
2288 * python/py-symbol.c: Use C++ exception handling.
2289 * python/py-record.c: Use C++ exception handling.
2290 * python/py-record-btrace.c: Use C++ exception handling.
2291 * python/py-progspace.c: Use C++ exception handling.
2292 * python/py-prettyprint.c: Use C++ exception handling.
2293 * python/py-param.c: Use C++ exception handling.
2294 * python/py-objfile.c: Use C++ exception handling.
2295 * python/py-linetable.c: Use C++ exception handling.
2296 * python/py-lazy-string.c: Use C++ exception handling.
2297 * python/py-infthread.c: Use C++ exception handling.
2298 * python/py-inferior.c: Use C++ exception handling.
2299 * python/py-gdb-readline.c: Use C++ exception handling.
2300 * python/py-framefilter.c: Use C++ exception handling.
2301 * python/py-frame.c: Use C++ exception handling.
2302 * python/py-finishbreakpoint.c: Use C++ exception handling.
2303 * python/py-cmd.c: Use C++ exception handling.
2304 * python/py-breakpoint.c: Use C++ exception handling.
2305 * python/py-arch.c: Use C++ exception handling.
2306 * printcmd.c: Use C++ exception handling.
2307 * ppc-linux-tdep.c: Use C++ exception handling.
2308 * parse.c: Use C++ exception handling.
2309 * p-valprint.c: Use C++ exception handling.
2310 * objc-lang.c: Use C++ exception handling.
2311 * mi/mi-main.c: Use C++ exception handling.
2312 * mi/mi-interp.c: Use C++ exception handling.
2313 * mi/mi-cmd-stack.c: Use C++ exception handling.
2314 * mi/mi-cmd-break.c: Use C++ exception handling.
2315 * main.c: Use C++ exception handling.
2316 * linux-thread-db.c: Use C++ exception handling.
2317 * linux-tdep.c: Use C++ exception handling.
2318 * linux-nat.c: Use C++ exception handling.
2319 * linux-fork.c: Use C++ exception handling.
2320 * linespec.c: Use C++ exception handling.
2321 * language.c: Use C++ exception handling.
2322 * jit.c: Use C++ exception handling.
2323 * infrun.c: Use C++ exception handling.
2324 * infcmd.c: Use C++ exception handling.
2325 * infcall.c: Use C++ exception handling.
2326 * inf-loop.c: Use C++ exception handling.
2327 * i386-tdep.c: Use C++ exception handling.
2328 * i386-linux-tdep.c: Use C++ exception handling.
2329 * guile/scm-value.c: Use C++ exception handling.
2330 * guile/scm-type.c: Use C++ exception handling.
2331 * guile/scm-symtab.c: Use C++ exception handling.
2332 * guile/scm-symbol.c: Use C++ exception handling.
2333 * guile/scm-pretty-print.c: Use C++ exception handling.
2334 * guile/scm-ports.c: Use C++ exception handling.
2335 * guile/scm-param.c: Use C++ exception handling.
2336 * guile/scm-math.c: Use C++ exception handling.
2337 * guile/scm-lazy-string.c: Use C++ exception handling.
2338 * guile/scm-frame.c: Use C++ exception handling.
2339 * guile/scm-disasm.c: Use C++ exception handling.
2340 * guile/scm-cmd.c: Use C++ exception handling.
2341 * guile/scm-breakpoint.c: Use C++ exception handling.
2342 * guile/scm-block.c: Use C++ exception handling.
2343 * guile/guile-internal.h: Use C++ exception handling.
2344 * gnu-v3-abi.c: Use C++ exception handling.
2345 * gdbtypes.c: Use C++ exception handling.
2346 * frame.c: Use C++ exception handling.
2347 * frame-unwind.c: Use C++ exception handling.
2348 * fbsd-tdep.c: Use C++ exception handling.
2349 * f-valprint.c: Use C++ exception handling.
2350 * exec.c: Use C++ exception handling.
2351 * event-top.c: Use C++ exception handling.
2352 * event-loop.c: Use C++ exception handling.
2353 * eval.c: Use C++ exception handling.
2354 * dwarf2read.c: Use C++ exception handling.
2355 * dwarf2loc.c: Use C++ exception handling.
2356 * dwarf2-frame.c: Use C++ exception handling.
2357 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2358 * dwarf-index-write.c: Use C++ exception handling.
2359 * dwarf-index-cache.c: Use C++ exception handling.
2360 * dtrace-probe.c: Use C++ exception handling.
2361 * disasm-selftests.c: Use C++ exception handling.
2362 * darwin-nat.c: Use C++ exception handling.
2363 * cp-valprint.c: Use C++ exception handling.
2364 * cp-support.c: Use C++ exception handling.
2365 * cp-abi.c: Use C++ exception handling.
2366 * corelow.c: Use C++ exception handling.
2367 * completer.c: Use C++ exception handling.
2368 * compile/compile-object-run.c: Use C++ exception handling.
2369 * compile/compile-object-load.c: Use C++ exception handling.
2370 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2371 * compile/compile-c-symbols.c: Use C++ exception handling.
2372 * common/selftest.c: Use C++ exception handling.
2373 * common/new-op.c: Use C++ exception handling.
2374 * cli/cli-script.c: Use C++ exception handling.
2375 * cli/cli-interp.c: Use C++ exception handling.
2376 * cli/cli-cmds.c: Use C++ exception handling.
2377 * c-varobj.c: Use C++ exception handling.
2378 * btrace.c: Use C++ exception handling.
2379 * breakpoint.c: Use C++ exception handling.
2380 * break-catch-throw.c: Use C++ exception handling.
2381 * arch-utils.c: Use C++ exception handling.
2382 * amd64-tdep.c: Use C++ exception handling.
2383 * ada-valprint.c: Use C++ exception handling.
2384 * ada-typeprint.c: Use C++ exception handling.
2385 * ada-lang.c: Use C++ exception handling.
2386 * aarch64-tdep.c: Use C++ exception handling.
2387
3d6e9d23
TT
23882019-04-08 Tom Tromey <tom@tromey.com>
2389
2390 * xml-support.c (gdb_xml_parser::parse): Update.
2391 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2392 * value.c (show_convenience): Update.
2393 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2394 (test_parse_flags_qcs): Update.
2395 * thread.c (thr_try_catch_cmd): Update.
2396 * target.c (target_translate_tls_address): Update.
2397 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2398 (info_frame_command_core, frame_apply_command_count): Update.
2399 * rust-exp.y (rust_lex_exception_test): Update.
2400 * riscv-tdep.c (riscv_print_one_register_info): Update.
2401 * remote.c (remote_target::enable_btrace): Update.
2402 * record-btrace.c (record_btrace_enable_warn): Update.
2403 * python/py-utils.c (gdbpy_convert_exception): Update.
2404 * printcmd.c (do_one_display, print_variable_and_value): Update.
2405 * mi/mi-main.c (mi_print_exception): Update.
2406 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2407 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2408 * linux-nat.c (linux_nat_target::attach): Update.
2409 * linux-fork.c (class scoped_switch_fork_info): Update.
2410 * infrun.c (displaced_step_prepare): Update.
2411 * infcall.c (call_function_by_hand_dummy): Update.
2412 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2413 * gnu-v3-abi.c (print_one_vtable): Update.
2414 * frame.c (get_prev_frame_always): Update.
2415 * f-valprint.c (info_common_command_for_block): Update.
2416 * exec.c (try_open_exec_file): Update.
2417 * exceptions.c (print_exception, exception_print)
2418 (exception_fprintf, exception_print_same): Update.
2419 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2420 * dwarf-index-cache.c (index_cache::store)
2421 (index_cache::lookup_gdb_index): Update.
2422 * darwin-nat.c (maybe_cache_shell): Update.
2423 * cp-valprint.c (cp_print_value_fields): Update.
2424 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2425 (gcc_cplus_symbol_address): Update.
2426 * compile/compile-c-symbols.c (gcc_convert_symbol)
2427 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2428 * common/selftest.c: Update.
2429 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2430 a std::string.
2431 (exception_try_scope_entry, exception_try_scope_exit): Don't
2432 declare.
2433 (struct exception_try_scope): Remove.
2434 (TRY): Don't use exception_try_scope.
2435 (struct gdb_exception): Add constructor, operator=.
2436 <what>: New method.
2437 (struct gdb_exception_RETURN_MASK_ALL)
2438 (struct gdb_exception_RETURN_MASK_ERROR)
2439 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2440 (struct gdb_quit_bad_alloc): Update.
2441 * common/common-exceptions.c (exception_none): Change
2442 initializer.
2443 (struct catcher) <state, exception>: Initialize inline.
2444 <prev>: Remove member.
2445 (current_catcher): Remove.
2446 (catchers): New global.
2447 (exceptions_state_mc_init): Simplify.
2448 (catcher_pop): Remove.
2449 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2450 (try_scope_depth, exception_try_scope_entry)
2451 (exception_try_scope_exit): Remove.
2452 (throw_exception_sjlj): Update.
2453 (exception_messages, exception_messages_size): Remove.
2454 (throw_it): Simplify.
2455 (gdb_exception_sliced_copy): Remove.
2456 (throw_exception_cxx): Update.
2457 * cli/cli-script.c (script_from_file): Update.
2458 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2459 Update.
2460 * ada-valprint.c (ada_val_print): Update.
2461 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2462 (create_excep_cond_exprs): Update.
2463
c5c10118
TT
24642019-04-08 Tom Tromey <tom@tromey.com>
2465
2466 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2467 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2468 (TRY, CATCH, END_CATCH): Remove some definitions.
2469 * common/common-exceptions.c: Don't use GDB_XCPT.
2470 (catcher_list_size): Remove.
2471 (throw_exception, throw_it): Simplify.
2472
4de283e4
TT
24732019-04-05 Tom Tromey <tom@tromey.com>
2474
2475 Revert the header-sorting patch.
2476 * ft32-tdep.c: Revert.
2477 * frv-tdep.c: Revert.
2478 * frv-linux-tdep.c: Revert.
2479 * frame.c: Revert.
2480 * frame-unwind.c: Revert.
2481 * frame-base.c: Revert.
2482 * fork-child.c: Revert.
2483 * findvar.c: Revert.
2484 * findcmd.c: Revert.
2485 * filesystem.c: Revert.
2486 * filename-seen-cache.h: Revert.
2487 * filename-seen-cache.c: Revert.
2488 * fbsd-tdep.c: Revert.
2489 * fbsd-nat.h: Revert.
2490 * fbsd-nat.c: Revert.
2491 * f-valprint.c: Revert.
2492 * f-typeprint.c: Revert.
2493 * f-lang.c: Revert.
2494 * extension.h: Revert.
2495 * extension.c: Revert.
2496 * extension-priv.h: Revert.
2497 * expprint.c: Revert.
2498 * exec.h: Revert.
2499 * exec.c: Revert.
2500 * exceptions.c: Revert.
2501 * event-top.c: Revert.
2502 * event-loop.c: Revert.
2503 * eval.c: Revert.
2504 * elfread.c: Revert.
2505 * dwarf2read.h: Revert.
2506 * dwarf2read.c: Revert.
2507 * dwarf2loc.c: Revert.
2508 * dwarf2expr.h: Revert.
2509 * dwarf2expr.c: Revert.
2510 * dwarf2-frame.c: Revert.
2511 * dwarf2-frame-tailcall.c: Revert.
2512 * dwarf-index-write.h: Revert.
2513 * dwarf-index-write.c: Revert.
2514 * dwarf-index-common.c: Revert.
2515 * dwarf-index-cache.h: Revert.
2516 * dwarf-index-cache.c: Revert.
2517 * dummy-frame.c: Revert.
2518 * dtrace-probe.c: Revert.
2519 * disasm.h: Revert.
2520 * disasm.c: Revert.
2521 * disasm-selftests.c: Revert.
2522 * dictionary.c: Revert.
2523 * dicos-tdep.c: Revert.
2524 * demangle.c: Revert.
2525 * dcache.h: Revert.
2526 * dcache.c: Revert.
2527 * darwin-nat.h: Revert.
2528 * darwin-nat.c: Revert.
2529 * darwin-nat-info.c: Revert.
2530 * d-valprint.c: Revert.
2531 * d-namespace.c: Revert.
2532 * d-lang.c: Revert.
2533 * ctf.c: Revert.
2534 * csky-tdep.c: Revert.
2535 * csky-linux-tdep.c: Revert.
2536 * cris-tdep.c: Revert.
2537 * cris-linux-tdep.c: Revert.
2538 * cp-valprint.c: Revert.
2539 * cp-support.c: Revert.
2540 * cp-namespace.c: Revert.
2541 * cp-abi.c: Revert.
2542 * corelow.c: Revert.
2543 * corefile.c: Revert.
2544 * continuations.c: Revert.
2545 * completer.h: Revert.
2546 * completer.c: Revert.
2547 * complaints.c: Revert.
2548 * coffread.c: Revert.
2549 * coff-pe-read.c: Revert.
2550 * cli-out.h: Revert.
2551 * cli-out.c: Revert.
2552 * charset.c: Revert.
2553 * c-varobj.c: Revert.
2554 * c-valprint.c: Revert.
2555 * c-typeprint.c: Revert.
2556 * c-lang.c: Revert.
2557 * buildsym.c: Revert.
2558 * buildsym-legacy.c: Revert.
2559 * build-id.h: Revert.
2560 * build-id.c: Revert.
2561 * btrace.c: Revert.
2562 * bsd-uthread.c: Revert.
2563 * breakpoint.h: Revert.
2564 * breakpoint.c: Revert.
2565 * break-catch-throw.c: Revert.
2566 * break-catch-syscall.c: Revert.
2567 * break-catch-sig.c: Revert.
2568 * blockframe.c: Revert.
2569 * block.c: Revert.
2570 * bfin-tdep.c: Revert.
2571 * bfin-linux-tdep.c: Revert.
2572 * bfd-target.c: Revert.
2573 * bcache.c: Revert.
2574 * ax-general.c: Revert.
2575 * ax-gdb.h: Revert.
2576 * ax-gdb.c: Revert.
2577 * avr-tdep.c: Revert.
2578 * auxv.c: Revert.
2579 * auto-load.c: Revert.
2580 * arm-wince-tdep.c: Revert.
2581 * arm-tdep.c: Revert.
2582 * arm-symbian-tdep.c: Revert.
2583 * arm-pikeos-tdep.c: Revert.
2584 * arm-obsd-tdep.c: Revert.
2585 * arm-nbsd-tdep.c: Revert.
2586 * arm-nbsd-nat.c: Revert.
2587 * arm-linux-tdep.c: Revert.
2588 * arm-linux-nat.c: Revert.
2589 * arm-fbsd-tdep.c: Revert.
2590 * arm-fbsd-nat.c: Revert.
2591 * arm-bsd-tdep.c: Revert.
2592 * arch-utils.c: Revert.
2593 * arc-tdep.c: Revert.
2594 * arc-newlib-tdep.c: Revert.
2595 * annotate.h: Revert.
2596 * annotate.c: Revert.
2597 * amd64-windows-tdep.c: Revert.
2598 * amd64-windows-nat.c: Revert.
2599 * amd64-tdep.c: Revert.
2600 * amd64-sol2-tdep.c: Revert.
2601 * amd64-obsd-tdep.c: Revert.
2602 * amd64-obsd-nat.c: Revert.
2603 * amd64-nbsd-tdep.c: Revert.
2604 * amd64-nbsd-nat.c: Revert.
2605 * amd64-nat.c: Revert.
2606 * amd64-linux-tdep.c: Revert.
2607 * amd64-linux-nat.c: Revert.
2608 * amd64-fbsd-tdep.c: Revert.
2609 * amd64-fbsd-nat.c: Revert.
2610 * amd64-dicos-tdep.c: Revert.
2611 * amd64-darwin-tdep.c: Revert.
2612 * amd64-bsd-nat.c: Revert.
2613 * alpha-tdep.c: Revert.
2614 * alpha-obsd-tdep.c: Revert.
2615 * alpha-nbsd-tdep.c: Revert.
2616 * alpha-mdebug-tdep.c: Revert.
2617 * alpha-linux-tdep.c: Revert.
2618 * alpha-linux-nat.c: Revert.
2619 * alpha-bsd-tdep.c: Revert.
2620 * alpha-bsd-nat.c: Revert.
2621 * aix-thread.c: Revert.
2622 * agent.c: Revert.
2623 * addrmap.c: Revert.
2624 * ada-varobj.c: Revert.
2625 * ada-valprint.c: Revert.
2626 * ada-typeprint.c: Revert.
2627 * ada-tasks.c: Revert.
2628 * ada-lang.c: Revert.
2629 * aarch64-tdep.c: Revert.
2630 * aarch64-ravenscar-thread.c: Revert.
2631 * aarch64-newlib-tdep.c: Revert.
2632 * aarch64-linux-tdep.c: Revert.
2633 * aarch64-linux-nat.c: Revert.
2634 * aarch64-fbsd-tdep.c: Revert.
2635 * aarch64-fbsd-nat.c: Revert.
2636 * aarch32-linux-nat.c: Revert.
2637
d55e5aa6
TT
26382019-04-05 Tom Tromey <tom@tromey.com>
2639
2640 * ft32-tdep.c: Sort headers.
2641 * frv-tdep.c: Sort headers.
2642 * frv-linux-tdep.c: Sort headers.
2643 * frame.c: Sort headers.
2644 * frame-unwind.c: Sort headers.
2645 * frame-base.c: Sort headers.
2646 * fork-child.c: Sort headers.
2647 * findvar.c: Sort headers.
2648 * findcmd.c: Sort headers.
2649 * filesystem.c: Sort headers.
2650 * filename-seen-cache.h: Sort headers.
2651 * filename-seen-cache.c: Sort headers.
2652 * fbsd-tdep.c: Sort headers.
2653 * fbsd-nat.h: Sort headers.
2654 * fbsd-nat.c: Sort headers.
2655 * f-valprint.c: Sort headers.
2656 * f-typeprint.c: Sort headers.
2657 * f-lang.c: Sort headers.
2658 * extension.h: Sort headers.
2659 * extension.c: Sort headers.
2660 * extension-priv.h: Sort headers.
2661 * expprint.c: Sort headers.
2662 * exec.h: Sort headers.
2663 * exec.c: Sort headers.
2664 * exceptions.c: Sort headers.
2665 * event-top.c: Sort headers.
2666 * event-loop.c: Sort headers.
2667 * eval.c: Sort headers.
2668 * elfread.c: Sort headers.
2669 * dwarf2read.h: Sort headers.
2670 * dwarf2read.c: Sort headers.
2671 * dwarf2loc.c: Sort headers.
2672 * dwarf2expr.h: Sort headers.
2673 * dwarf2expr.c: Sort headers.
2674 * dwarf2-frame.c: Sort headers.
2675 * dwarf2-frame-tailcall.c: Sort headers.
2676 * dwarf-index-write.h: Sort headers.
2677 * dwarf-index-write.c: Sort headers.
2678 * dwarf-index-common.c: Sort headers.
2679 * dwarf-index-cache.h: Sort headers.
2680 * dwarf-index-cache.c: Sort headers.
2681 * dummy-frame.c: Sort headers.
2682 * dtrace-probe.c: Sort headers.
2683 * disasm.h: Sort headers.
2684 * disasm.c: Sort headers.
2685 * disasm-selftests.c: Sort headers.
2686 * dictionary.c: Sort headers.
2687 * dicos-tdep.c: Sort headers.
2688 * demangle.c: Sort headers.
2689 * dcache.h: Sort headers.
2690 * dcache.c: Sort headers.
2691 * darwin-nat.h: Sort headers.
2692 * darwin-nat.c: Sort headers.
2693 * darwin-nat-info.c: Sort headers.
2694 * d-valprint.c: Sort headers.
2695 * d-namespace.c: Sort headers.
2696 * d-lang.c: Sort headers.
2697 * ctf.c: Sort headers.
2698 * csky-tdep.c: Sort headers.
2699 * csky-linux-tdep.c: Sort headers.
2700 * cris-tdep.c: Sort headers.
2701 * cris-linux-tdep.c: Sort headers.
2702 * cp-valprint.c: Sort headers.
2703 * cp-support.c: Sort headers.
2704 * cp-namespace.c: Sort headers.
2705 * cp-abi.c: Sort headers.
2706 * corelow.c: Sort headers.
2707 * corefile.c: Sort headers.
2708 * continuations.c: Sort headers.
2709 * completer.h: Sort headers.
2710 * completer.c: Sort headers.
2711 * complaints.c: Sort headers.
2712 * coffread.c: Sort headers.
2713 * coff-pe-read.c: Sort headers.
2714 * cli-out.h: Sort headers.
2715 * cli-out.c: Sort headers.
2716 * charset.c: Sort headers.
2717 * c-varobj.c: Sort headers.
2718 * c-valprint.c: Sort headers.
2719 * c-typeprint.c: Sort headers.
2720 * c-lang.c: Sort headers.
2721 * buildsym.c: Sort headers.
2722 * buildsym-legacy.c: Sort headers.
2723 * build-id.h: Sort headers.
2724 * build-id.c: Sort headers.
2725 * btrace.c: Sort headers.
2726 * bsd-uthread.c: Sort headers.
2727 * breakpoint.h: Sort headers.
2728 * breakpoint.c: Sort headers.
2729 * break-catch-throw.c: Sort headers.
2730 * break-catch-syscall.c: Sort headers.
2731 * break-catch-sig.c: Sort headers.
2732 * blockframe.c: Sort headers.
2733 * block.c: Sort headers.
2734 * bfin-tdep.c: Sort headers.
2735 * bfin-linux-tdep.c: Sort headers.
2736 * bfd-target.c: Sort headers.
2737 * bcache.c: Sort headers.
2738 * ax-general.c: Sort headers.
2739 * ax-gdb.h: Sort headers.
2740 * ax-gdb.c: Sort headers.
2741 * avr-tdep.c: Sort headers.
2742 * auxv.c: Sort headers.
2743 * auto-load.c: Sort headers.
2744 * arm-wince-tdep.c: Sort headers.
2745 * arm-tdep.c: Sort headers.
2746 * arm-symbian-tdep.c: Sort headers.
2747 * arm-pikeos-tdep.c: Sort headers.
2748 * arm-obsd-tdep.c: Sort headers.
2749 * arm-nbsd-tdep.c: Sort headers.
2750 * arm-nbsd-nat.c: Sort headers.
2751 * arm-linux-tdep.c: Sort headers.
2752 * arm-linux-nat.c: Sort headers.
2753 * arm-fbsd-tdep.c: Sort headers.
2754 * arm-fbsd-nat.c: Sort headers.
2755 * arm-bsd-tdep.c: Sort headers.
2756 * arch-utils.c: Sort headers.
2757 * arc-tdep.c: Sort headers.
2758 * arc-newlib-tdep.c: Sort headers.
2759 * annotate.h: Sort headers.
2760 * annotate.c: Sort headers.
2761 * amd64-windows-tdep.c: Sort headers.
2762 * amd64-windows-nat.c: Sort headers.
2763 * amd64-tdep.c: Sort headers.
2764 * amd64-sol2-tdep.c: Sort headers.
2765 * amd64-obsd-tdep.c: Sort headers.
2766 * amd64-obsd-nat.c: Sort headers.
2767 * amd64-nbsd-tdep.c: Sort headers.
2768 * amd64-nbsd-nat.c: Sort headers.
2769 * amd64-nat.c: Sort headers.
2770 * amd64-linux-tdep.c: Sort headers.
2771 * amd64-linux-nat.c: Sort headers.
2772 * amd64-fbsd-tdep.c: Sort headers.
2773 * amd64-fbsd-nat.c: Sort headers.
2774 * amd64-dicos-tdep.c: Sort headers.
2775 * amd64-darwin-tdep.c: Sort headers.
2776 * amd64-bsd-nat.c: Sort headers.
2777 * alpha-tdep.c: Sort headers.
2778 * alpha-obsd-tdep.c: Sort headers.
2779 * alpha-nbsd-tdep.c: Sort headers.
2780 * alpha-mdebug-tdep.c: Sort headers.
2781 * alpha-linux-tdep.c: Sort headers.
2782 * alpha-linux-nat.c: Sort headers.
2783 * alpha-bsd-tdep.c: Sort headers.
2784 * alpha-bsd-nat.c: Sort headers.
2785 * aix-thread.c: Sort headers.
2786 * agent.c: Sort headers.
2787 * addrmap.c: Sort headers.
2788 * ada-varobj.c: Sort headers.
2789 * ada-valprint.c: Sort headers.
2790 * ada-typeprint.c: Sort headers.
2791 * ada-tasks.c: Sort headers.
2792 * ada-lang.c: Sort headers.
2793 * aarch64-tdep.c: Sort headers.
2794 * aarch64-ravenscar-thread.c: Sort headers.
2795 * aarch64-newlib-tdep.c: Sort headers.
2796 * aarch64-linux-tdep.c: Sort headers.
2797 * aarch64-linux-nat.c: Sort headers.
2798 * aarch64-fbsd-tdep.c: Sort headers.
2799 * aarch64-fbsd-nat.c: Sort headers.
2800 * aarch32-linux-nat.c: Sort headers.
2801
699bd4cf
TT
28022019-04-04 Tom Tromey <tom@tromey.com>
2803
2804 * varobj.c (varobj_create): Update.
2805 * rust-exp.y (struct rust_parser) <update_innermost_block,
2806 lookup_symbol>: New methods.
2807 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2808 Rename.
2809 (rust_parser::rust_lookup_type)
2810 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2811 * printcmd.c (display_command, do_one_display): Update.
2812 * parser-defs.h (struct parser_state) <parser_state>: Add
2813 "tracker" parameter.
2814 (block_tracker): New member.
2815 (class innermost_block_tracker) <innermost_block_tracker>: Add
2816 "types" parameter.
2817 <reset>: Remove method.
2818 (innermost_block): Don't declare.
2819 (null_post_parser): Update.
2820 * parse.c (innermost_block): Remove global.
2821 (write_dollar_variable): Update.
2822 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2823 Remove "tracker_types" parameter.
2824 (parse_expression): Add "tracker" parameter.
2825 (parse_expression_for_completion): Update.
2826 (null_post_parser): Add "tracker" parameter.
2827 * p-exp.y: Update rules.
2828 * m2-exp.y: Update rules.
2829 * language.h (struct language_defn) <la_post_parser>: Add
2830 "tracker" parameter.
2831 * go-exp.y: Update rules.
2832 * f-exp.y: Update rules.
2833 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2834 parameter.
2835 * d-exp.y: Update rules.
2836 * c-exp.y: Update rules.
2837 * breakpoint.c (set_breakpoint_condition): Create an
2838 innermost_block_tracker.
2839 (watch_command_1): Likewise.
2840 * ada-lang.c (resolve): Add "tracker" parameter.
2841 (resolve_subexp): Likewise.
2842 * ada-exp.y (write_var_from_sym): Update.
2843
dac43e32
TT
28442019-04-04 Tom Tromey <tom@tromey.com>
2845
2846 * type-stack.h: New file.
2847 * type-stack.c: New file.
2848 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2849 type-stack.h.
2850 (insert_into_type_stack, insert_type, push_type, push_type_int)
2851 (insert_type_address_space, pop_type, pop_type_int)
2852 (pop_typelist, pop_type_stack, append_type_stack)
2853 (push_type_stack, get_type_stack, push_typelist)
2854 (follow_type_instance_flags, follow_types): Don't declare.
2855 * parse.c (type_stack): Remove global.
2856 (parse_exp_in_context): Update.
2857 (insert_into_type_stack, insert_type, push_type, push_type_int)
2858 (insert_type_address_space, pop_type, pop_type_int)
2859 (pop_typelist, pop_type_stack, append_type_stack)
2860 (push_type_stack, get_type_stack, push_typelist)
2861 (follow_type_instance_flags, follow_types): Remove (moved to
2862 type-stack.c).
2863 * f-exp.y (type_stack): New global.
2864 Update rules.
2865 (push_kind_type, f_parse): Update.
2866 * d-exp.y (type_stack): New global.
2867 Update rules.
2868 (d_parse): Update.
2869 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2870 Update rules.
2871 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2872 (HFILES_NO_SRCDIR): Add type-stack.h.
2873
2a612529
TT
28742019-04-04 Tom Tromey <tom@tromey.com>
2875
2876 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2877 (rust_parser::convert_ast_to_expression, rust_parse)
2878 (rust_lex_test_completion, rust_lex_tests): Update.
2879 * parser-defs.h (struct expr_completion_state): New.
2880 (struct parser_state) <parser_state>: Add completion parameter.
2881 <mark_struct_expression, mark_completion_tag>: New methods.
2882 <parse_completion, m_completion_state>: New members.
2883 (prefixify_expression, null_post_parser): Update.
2884 (mark_struct_expression, mark_completion_tag): Don't declare.
2885 * parse.c (parse_completion, expout_last_struct)
2886 (expout_tag_completion_type, expout_completion_name): Remove
2887 globals.
2888 (parser_state::mark_struct_expression)
2889 (parser_state::mark_completion_tag): Now methods.
2890 (prefixify_expression): Add last_struct parameter.
2891 (prefixify_subexp): Likewise.
2892 (parse_exp_1): Update.
2893 (parse_exp_in_context): Add cstate parameter. Update.
2894 (parse_expression_for_completion): Create an
2895 expr_completion_state.
2896 (null_post_parser): Add "completion" parameter.
2897 * p-exp.y: Update rules.
2898 (yylex): Update.
2899 * language.h (struct language_defn) <la_post_parser>: Add
2900 "completing" parameter.
2901 * go-exp.y: Update rules.
2902 (lex_one_token): Update.
2903 * expression.h (parse_completion): Don't declare.
2904 * d-exp.y: Update rules.
2905 (lex_one_token): Update rules.
2906 * c-exp.y: Update rules.
2907 (lex_one_token): Update.
2908 * ada-lang.c (resolve): Add "parse_completion" parameter.
2909 (resolve_subexp): Likewise.
2910 (ada_resolve_function): Likewise.
2911
43476f0b
TT
29122019-04-04 Tom Tromey <tom@tromey.com>
2913
2914 * parser-defs.h (struct parser_state) <start_arglist,
2915 end_arglist>: New methods.
2916 <arglist_len, m_funcall_chain>: New members.
2917 (arglist_len, start_arglist, end_arglist): Don't declare.
2918 * parse.c (arglist_len, funcall_chain): Remove global.
2919 (start_arglist, end_arglist): Remove functions.
2920 (parse_exp_in_context): Update.
2921 * p-exp.y: Update rules.
2922 * m2-exp.y: Update rules.
2923 * go-exp.y: Update rules.
2924 * f-exp.y: Update rules.
2925 * d-exp.y: Update rules.
2926 * c-exp.y: Update rules.
2927
5776fca3
TT
29282019-04-04 Tom Tromey <tom@tromey.com>
2929
2930 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2931 lex_operator, push_back>: New methods.
2932 Update all rules.
2933 (rust_parser::lex_hex, lex_escape): Rename and update.
2934 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2935 (rust_parser::lex_operator): Rename and update.
2936 (rust_parser::lex_number, rustyylex, rustyyerror)
2937 (rust_lex_test_init, rust_lex_test_sequence)
2938 (rust_lex_test_push_back, rust_lex_tests): Update.
2939 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2940 parameter.
2941 <lexptr, prev_lexptr>: New members.
2942 (lexptr, prev_lexptr): Don't declare.
2943 * parse.c (lexptr, prev_lexptr): Remove globals.
2944 (parse_exp_in_context): Update.
2945 * p-exp.y (yylex, yyerror): Update.
2946 * m2-exp.y (parse_number, yylex, yyerror): Update.
2947 * go-exp.y (lex_one_token, yyerror): Update.
2948 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2949 * d-exp.y (lex_one_token, yyerror): Update.
2950 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2951 (lex_one_token, yyerror): Update.
2952 * ada-lex.l (YY_INPUT): Update.
2953 (rewind_to_char): Update.
2954 * ada-exp.y (yyerror): Update.
2955
8621b685
TT
29562019-04-04 Tom Tromey <tom@tromey.com>
2957
2958 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2959 * parser-defs.h (struct parser_state) <parser_state>: Add new
2960 parameter.
2961 <comma_terminates>: New member.
2962 (comma_terminates): Don't declare global.
2963 * parse.c (comma_terminates): Remove global.
2964 (parse_exp_in_context): Update.
2965 * p-exp.y (yylex): Update.
2966 * m2-exp.y (yylex): Update.
2967 * go-exp.y (lex_one_token): Update.
2968 * f-exp.y (yylex): Update.
2969 * d-exp.y (lex_one_token): Update.
2970 * c-exp.y (lex_one_token): Update.
2971 * ada-lex.l: Update.
2972
28aaf3fd
TT
29732019-04-04 Tom Tromey <tom@tromey.com>
2974
2975 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2976 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2977 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2978 * parser-defs.h (paren_depth): Don't declare.
2979 * parse.c (paren_depth): Remove global.
2980 (parse_exp_in_context): Update.
2981 * p-exp.y (paren_depth): New global.
2982 (pascal_parse): Initialize it.
2983 * m2-exp.y (paren_depth): New global.
2984 (m2_parse): Initialize it.
2985 * go-exp.y (paren_depth): New global.
2986 (go_parse): Initialize it.
2987 * f-exp.y (paren_depth): New global.
2988 (f_parse): Initialize it.
2989 * d-exp.y (paren_depth): New global.
2990 (d_parse): Initialize it.
2991 * c-exp.y (paren_depth): New global.
2992 (c_parse): Initialize it.
2993 * ada-lex.l (paren_depth): New global.
2994 (lexer_init): Initialize it.
2995
1e58a4a4
TT
29962019-04-04 Tom Tromey <tom@tromey.com>
2997
2998 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2999 (rust_parser::convert_ast_to_type)
3000 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3001 * parser-defs.h (struct parser_state) <parser_state>: Add
3002 parameters. Initialize new members.
3003 <expression_context_block, expression_context_pc>: New members.
3004 * parse.c (expression_context_block, expression_context_pc):
3005 Remove globals.
3006 (parse_exp_in_context): Update.
3007 * p-exp.y: Update all rules.
3008 (yylex): Update.
3009 * m2-exp.y: Update all rules.
3010 (yylex): Update.
3011 * go-exp.y (yylex): Update.
3012 * f-exp.y (yylex): Update.
3013 * d-exp.y: Update all rules.
3014 (yylex): Update.
3015 * c-exp.y: Update all rules.
3016 (lex_one_token, classify_name, yylex, c_parse): Update.
3017 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3018
37eedb39
TT
30192019-04-04 Tom Tromey <tom@tromey.com>
3020
3021 * gdbarch.h, gdbarch.c: Rebuild.
3022 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3023 * stap-probe.h:
3024 (struct stap_parse_info): Replace "parser_state" with
3025 "expr_builder".
3026 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3027 (parser_state): New class.
3028 * parse.c (expr_builder): Rename.
3029 (expr_builder::release): Rename.
3030 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3031 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3032 (write_exp_elt_longcst, write_exp_elt_floatcst)
3033 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3034 (write_exp_string_vector, write_exp_bitstring)
3035 (write_exp_msymbol, mark_struct_expression)
3036 (write_dollar_variable)
3037 (insert_type_address_space, increase_expout_size): Replace
3038 "parser_state" with "expr_builder".
3039 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3040 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3041 "parser_state" with "expr_builder".
3042
73923d7e
TT
30432019-04-04 Tom Tromey <tom@tromey.com>
3044
3045 * rust-exp.y: Replace "parse_language" with method call.
3046 * p-exp.y:
3047 (yylex): Replace "parse_language" with method call.
3048 * m2-exp.y:
3049 (yylex): Replace "parse_language" with method call.
3050 * go-exp.y (classify_name): Replace "parse_language" with method
3051 call.
3052 * f-exp.y (yylex): Replace "parse_language" with method call.
3053 * d-exp.y (lex_one_token): Replace "parse_language" with method
3054 call.
3055 * c-exp.y:
3056 (lex_one_token, classify_name, yylex): Replace "parse_language"
3057 with method call.
3058 * ada-exp.y (find_primitive_type, type_char)
3059 (type_system_address): Replace "parse_language" with method call.
3060
fa9f5be6
TT
30612019-04-04 Tom Tromey <tom@tromey.com>
3062
3063 * rust-exp.y: Replace "parse_gdbarch" with method call.
3064 * parse.c (write_dollar_variable, insert_type_address_space):
3065 Replace "parse_gdbarch" with method call.
3066 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3067 call.
3068 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3069 call.
3070 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3071 "parse_gdbarch" with method call.
3072 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3073 with method call.
3074 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3075 "parse_gdbarch" with method call.
3076 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3077 "parse_gdbarch" with method call.
3078 * c-exp.y (parse_type, parse_number, classify_name): Replace
3079 "parse_gdbarch" with method call.
3080 * ada-lex.l: Replace "parse_gdbarch" with method call.
3081 * ada-exp.y (parse_type, find_primitive_type, type_char)
3082 (type_system_address): Replace "parse_gdbarch" with method call.
3083
1201a264
TT
30842019-04-04 Tom Tromey <tom@tromey.com>
3085
3086 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3087 * stap-probe.c (stap_parse_argument): Update.
3088 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3089 initial_size parameter.
3090 * rust-exp.y (rust_lex_tests): Update.
3091 * parse.c (parser_state): Update.
3092 (parse_exp_in_context): Update.
3093 * parser-defs.h (struct parser_state) <parser_state>: Remove
3094 "initial_size" parameter.
3095
e3980ce2
TT
30962019-04-04 Tom Tromey <tom@tromey.com>
3097
3098 * parser-defs.h (increase_expout_size): Don't declare.
3099 * parse.c (increase_expout_size): Now static.
3100
e9f8e3f1
TS
31012019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3102
3103 * gnu-nat.c (gnu_nat_target::wait): Fix
3104 target_waitstatus_to_string call.
3105
d7df6549
AB
31062019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * eval.c (evaluate_subexp_standard): Handle internal functions
3109 during Fortran function call handling.
3110
8bdc1658
AB
31112019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3112
3113 * NEWS: Mention new internal functions.
3114 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3115 (read_base_type): Use dwarf2_init_complex_target_type.
3116 * value.c (creal_internal_fn): New function.
3117 (cimag_internal_fn): New function.
3118 (_initialize_values): Register new internal functions.
3119
c29705b7
PW
31202019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3121
3122 * infrun.c (stop_all_threads): If debug_infrun, always
3123 trace the wait status after wait_one, using
3124 target_waitstatus_to_string and target_pid_to_str.
3125 (handle_inferior_event): Replace various trace of
3126 wait status kind by a single trace.
3127 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3128 wait status kind image by target_waitstatus_to_string.
3129 * target/waitstatus.c (target_waitstatus_to_string): Fix
3130 obsolete comment.
3131
05caa1d2
TT
31322019-04-01 Tom Tromey <tromey@adacore.com>
3133
3134 PR symtab/23331:
3135 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3136
9d1447e0
SDJ
31372019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3138 Pedro Alves <palves@redhat.com>
3139
3140 * top.c (quit_force): Call 'finalize_values'.
3141 * value.c (finalize_values): New function.
3142 * value.h (finalize_values): Declare.
3143
7734102d
EZ
31442019-03-30 Eli Zaretskii <eliz@gnu.org>
3145
3146 * NEWS: Announce $_gdb_major and $_gdb_minor.
3147
3148 * top.c (init_gdb_version_vars): New function.
3149 (gdb_init): Call init_gdb_version_vars.
3150
188e1fa9
TT
31512019-03-29 Tom Tromey <tromey@adacore.com>
3152
3153 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3154 help text. Remove dead code.
3155
2880242d
KS
31562019-03-29 Keith Seitz <keiths@redhat.com>
3157
3158 From Siddhesh Poyarekar:
3159 * f-lang.h (f77_get_upperbound): Return LONGEST.
3160 (f77_get_lowerbound): Likewise.
3161 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3162 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3163 print them.
3164 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3165 plongest to format print it.
3166 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3167 (f77_get_upperbound): Likewise.
3168 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3169 LOWER_BOUND to LONGEST.
3170 (f77_create_arrayprint_offset_tbl): Likewise.
3171
cc1defb1
KS
31722019-03-29 Keith Seitz <keiths@redhat.com>
3173
3174 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3175 %s/pulongest for TYPE_LENGTH instead of %d in format
3176 strings.
3177 * ada-typerint.c (ada_print_type): Likewise.
3178 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3179 * compile/compile-c-support.c (generate_register_struct): Likewise.
3180 * gdbtypes.c (recursive_dump_type): Likewise.
3181 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3182 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3183 instead of %d in format strings.
3184 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3185 to std::min to ULONGEST.
3186 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3187 instead of %d in format strings.
3188 * tracepoint.c (info_scope_command): Likewise.
3189 * typeprint.c (print_offset_data::update)
3190 (print_offset_data::finish): Likewise.
3191 * xtensa-tdep.c (xtensa_store_return_value)
3192 (xtensa_push_dummy_call): Likewise.
3193
e432ccf1
JT
31942019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3195
3196 * windows-nat.c (display_selector): Fixed format specifications
3197 for 64-bit Cygwin.
3198
65d2b333
PW
31992019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3200
3201 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3202
f489207e
SL
32032019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3204
3205 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3206 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3207 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3208 (nios2_linux_init_abi): Install it.
3209
bffa1015
AH
32102019-03-28 Alan Hayward <alan.hayward@arm.com>
3211
3212 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3213
fc96163a
AH
32142019-03-28 Alan Hayward <alan.hayward@arm.com>
3215
3216 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3217
20dc7e9b
PW
32182019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3219 Tom Tromey <tromey@adacore.com>
3220
3221 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3222
7f5331a8
JB
32232019-03-26 Joel Brobecker <brobecker@adacore.com>
3224
3225 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3226 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3227 method to compute the bounds of range types. Also print "[evaluated]"
3228 if the bounds' values come from a dynamic evaluation.
3229
18c77628
AB
32302019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3231
3232 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3233 whitespace when pretty printing is on.
3234
53c973f2
AH
32352019-03-26 Alan Hayward <alan.hayward@arm.com>
3236
3237 * ppc-linux-nat.c: Add include.
3238
d851aa71
AH
32392019-03-26 Alan Hayward <alan.hayward@arm.com>
3240
3241 * NEWS: Mention AArch64 Pointer Authentication.
3242
2fe7bab7
AH
32432019-03-26 Alan Hayward <alan.hayward@arm.com>
3244
3245 * arm-linux-nat.c: Add include.
3246
068ef30e
SM
32472019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * source-cache.c (source_cache::get_source_lines): Re-read
3250 fullname after calling open_source_file.
3251
81a24d04
JB
32522019-03-25 John Baldwin <jhb@FreeBSD.org>
3253
3254 * NEWS: Mention TLS support for FreeBSD.
3255
79e7ae11
TT
32562019-03-25 Tom Tromey <tromey@adacore.com>
3257
3258 * minsyms.c (BUNCH_SIZE): Update comment.
3259 (~minimal_symbol_reader): Remove old comment.
3260 (compact_minimal_symbols): Update comment.
3261 (minimal_symbol_reader::install): Remove old comment. Update
3262 other comments.
3263
d45963c2
AH
32642019-03-25 Alan Hayward <alan.hayward@arm.com>
3265
3266 * s390-linux-nat.c: Add include.
3267
0f83012e
AH
32682019-03-25 Alan Hayward <alan.hayward@arm.com>
3269
3270 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3271 Call linux_get_hwcap.
3272 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3273 Likewise.
3274 (aarch64_linux_get_hwcap): Remove function.
3275 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3276 declaration.
3277 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3278 linux_get_hwcap.
3279 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3280 * linux-tdep.c (linux_get_hwcap): Add function.
3281 (linux_get_hwcap2): Likewise.
3282 * linux-tdep.h (linux_get_hwcap): Add declaration.
3283 (linux_get_hwcap2): Likewise.
3284 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3285 (ppc_linux_get_hwcap2): Likewise.
3286 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3287 linux_get_hwcap.
3288 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3289 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3290 (ppc_linux_nat_target::read_description): Likewise.
3291 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3292 * s390-linux-nat.c: Likewise.
3293 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3294
6640a367
TT
32952019-03-24 Tom Tromey <tom@tromey.com>
3296
3297 * ada-lang.c (standard_lookup): Simplify initialization.
3298 (ada_lookup_symbol_nonlocal): Simplify return.
3299 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3300 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3301 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3302 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3303 initialization.
3304 * solib.c (solib_global_lookup): Simplify.
3305 * symtab.c (null_block_symbol): Remove.
3306 (symbol_cache_lookup): Simplify returns.
3307 (lookup_language_this): Simplify returns.
3308 (lookup_symbol_aux): Simplify return.
3309 (lookup_local_symbol): Simplify returns.
3310 (lookup_global_symbol_from_objfile): Simplify return.
3311 (lookup_symbol_in_objfile_symtabs)
3312 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3313 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3314 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3315 * cp-namespace.c (cp_lookup_bare_symbol)
3316 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3317 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3318 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3319 (cp_lookup_symbol_via_imports): Simplify initialization.
3320 (find_symbol_in_baseclass): Likewise.
3321 * symtab.h (null_block_symbol): Remove.
3322 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3323 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3324 (d_lookup_symbol_module): Likewise.
3325 (find_symbol_in_baseclass): Simplify initialization.
3326
a930ebcd
TT
33272019-03-24 Tom Tromey <tom@tromey.com>
3328
3329 * expression.h: Don't include symtab.h.
3330 (struct block): Forward declare.
3331
582942f4
TT
33322019-03-24 Tom Tromey <tom@tromey.com>
3333
3334 * c-exp.y (typebase): Remove casts.
3335 * gdbtypes.c (lookup_unsigned_typename, )
3336 (lookup_signed_typename): Remove cast.
3337 * eval.c (parse_to_comma_and_eval): Remove cast.
3338 * parse.c (write_dollar_variable): Remove cast.
3339 * block.h (struct block) <superblock>: Now const.
3340 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3341 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3342 (map_block): Make "block" const.
3343 * symfile.h (struct quick_symbol_functions)
3344 <map_matching_symbols>: Constify block argument to "callback".
3345 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3346 const.
3347 (find_pc_sect_compunit_symtab): Make "b" const.
3348 (find_symbol_at_address): Likewise.
3349 (search_symbols): Likewise.
3350 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3351 (dw2_debug_names_lookup_symbol): Likewise.
3352 (dw2_map_matching_symbols): Update.
3353 * p-valprint.c (pascal_val_print): Remove "block".
3354 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3355 (aux_add_nonlocal_symbols): Make "block" const.
3356 (resolve_subexp): Remove cast.
3357 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3358 const.
3359 (iterate_over_file_blocks): Likewise.
3360 * f-exp.y (%union) <bval>: Remove.
3361 * coffread.c (patch_opaque_types): Make "b" const.
3362 * spu-tdep.c (spu_catch_start): Make "block" const.
3363 * c-valprint.c (print_unpacked_pointer): Remove "block".
3364 * symmisc.c (dump_symtab_1): Make "b" const.
3365 (block_depth): Make "block" const.
3366 * d-exp.y (%union) <bval>: Remove.
3367 * cp-support.h (cp_lookup_rtti_type): Update.
3368 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3369 * psymtab.c (psym_lookup_symbol): Make "block" const.
3370 (maintenance_check_psymtabs): Make "b" const.
3371 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3372 (enumerate_locals, enumerate_args): Update.
3373 * python/py-symtab.c (stpy_global_block): Make "block" const.
3374 (stpy_static_block): Likewise.
3375 * inline-frame.c (block_starting_point_at): Make "new_block"
3376 const.
3377 * block.c (find_block_in_blockvector): Make return type const.
3378 (blockvector_for_pc_sect): Make "b" const.
3379 (find_block_in_blockvector): Make "b" const.
3380
7ad417dd
TT
33812019-03-23 Tom Tromey <tom@tromey.com>
3382
3383 * varobj.c (varobj_create): Update.
3384 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3385 * printcmd.c (display_command, do_one_display): Don't reset
3386 innermost_block.
3387 * parser-defs.h (enum innermost_block_tracker_type): Move to
3388 expression.h.
3389 (innermost_block): Update comment.
3390 * parse.c (parse_exp_1): Add tracker_types parameter.
3391 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3392 tracker_types parameter. Reset innermost_block.
3393 (parse_exp_in_context): Remove.
3394 (parse_expression_for_completion): Update.
3395 * objfiles.c (~objfile): Don't reset expression_context_block or
3396 innermost_block.
3397 * expression.h (enum innermost_block_tracker_type): Move from
3398 parser-defs.h.
3399 (parse_exp_1): Add tracker_types parameter.
3400 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3401 reset innermost_block.
3402
b366c208
TT
34032019-03-23 Tom Tromey <tom@tromey.com>
3404
3405 * objfiles.h: Include bcache.h.
3406
9bb9b2f9
TT
34072019-03-23 Tom Tromey <tom@tromey.com>
3408
3409 * linespec.c (get_current_search_block): Use
3410 scoped_restore_current_language.
3411 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3412
59c28372
AH
34132019-03-22 Alan Hayward <alan.hayward@arm.com>
3414 Jiong Wang <jiong.wang@arm.com>
3415
3416 * aarch64-linux-tdep.c
3417 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3418 section.
3419 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3420
17e116a7
AH
34212019-03-22 Alan Hayward <alan.hayward@arm.com>
3422 Jiong Wang <jiong.wang@arm.com>
3423
3424 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3425 instructions.
3426 (aarch64_analyze_prologue_test): Add PACIASP test.
3427 (aarch64_prologue_prev_register): Unmask PC value.
3428
11e1b75f
AH
34292019-03-22 Alan Hayward <alan.hayward@arm.com>
3430 Jiong Wang <jiong.wang@arm.com>
3431
3432 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3433 (aarch64_dwarf2_prev_register): Unmask PC value.
3434 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3435 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3436 DW_CFA_AARCH64_negate_ra_state.
3437 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3438
34dcc7cf
AH
34392019-03-22 Alan Hayward <alan.hayward@arm.com>
3440 Jiong Wang <jiong.wang@arm.com>
3441
3442 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3443 registers.
3444 (aarch64_pseudo_register_name): Likewise.
3445 (aarch64_pseudo_register_type): Likewise.
3446 (aarch64_pseudo_register_reggroup_p): Likewise.
3447 (aarch64_gdbarch_init): Add pauth registers.
3448 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3449 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3450 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3451 (struct gdbarch_tdep): Add regnum for ra_state.
3452
1ef53e6b
AH
34532019-03-22 Alan Hayward <alan.hayward@arm.com>
3454 Jiong Wang <jiong.wang@arm.com>
3455
3456 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3457
76bed0fd
AH
34582019-03-22 Alan Hayward <alan.hayward@arm.com>
3459 Jiong Wang <jiong.wang@arm.com>
3460
3461 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3462 function.
3463 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3464 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3465 (aarch64_gdbarch_init): Add puth registers.
3466 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3467 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3468 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3469
ee4fbcfa
AH
34702019-03-22 Alan Hayward <alan.hayward@arm.com>
3471 Jiong Wang <jiong.wang@arm.com>
3472
3473 * aarch64-linux-nat.c
3474 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3475 * aarch64-linux-tdep.c
3476 (aarch64_linux_core_read_description): Likewise.
3477 (aarch64_linux_get_hwcap): New function.
3478 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3479 (aarch64_linux_get_hwcap): New declaration.
3480
6dc0ebde
AH
34812019-03-22 Alan Hayward <alan.hayward@arm.com>
3482 Jiong Wang <jiong.wang@arm.com>
3483
3484 * aarch64-linux-nat.c
3485 (aarch64_linux_nat_target::read_description): Add pauth param.
3486 * aarch64-linux-tdep.c
3487 (aarch64_linux_core_read_description): Likewise.
3488 * aarch64-tdep.c (struct target_desc): Add in pauth.
3489 (aarch64_read_description): Add pauth param.
3490 (aarch64_gdbarch_init): Likewise.
3491 * aarch64-tdep.h (aarch64_read_description): Likewise.
3492 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3493 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3494 * features/Makefile: Add new files.
3495 * features/aarch64-pauth.c: New file.
3496 * features/aarch64-pauth.xml: New file.
3497
595915c1
TT
34982019-03-20 Tom Tromey <tromey@adacore.com>
3499
3500 * infrun.c (handle_inferior_event): Rename from
3501 handle_inferior_event_1. Create a scoped_value_mark.
3502 (handle_inferior_event): Remove.
3503
4c7d57e7
TT
35042019-03-19 Tom Tromey <tromey@adacore.com>
3505
3506 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3507 * infrun.h (print_stop_event): Add "displays" parameter.
3508 * infrun.c (print_stop_event): Add "displays" parameter.
3509
cb246234
PA
35102019-03-19 Pedro Alves <palves@redhat.com>
3511
3512 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3513 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3514 to -1. Fix TABs vs spaces.
3515 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3516 * tui/tui-out.h (tui_ui_out) Add intro comments.
3517 <m_line, m_start_of_line>: In-class initialize, and add describing
3518 comment.
3519
3a0e45b2
AH
35202019-03-18 Alan Hayward <alan.hayward@arm.com>
3521
3522 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3523 variable names.
3524 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3525
5371b850
PA
35262019-03-18 Pedro Alves <palves@redhat.com>
3527 Eli Zaretskii <eliz@gnu.org>
3528
3529 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3530 m_line and m_start_of_line.
3531
b17c4cd0
EZ
35322019-03-18 Eli Zaretskii <eliz@gnu.org>
3533
3534 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3535 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3536 it returns a newline. This fixes a regression in TU mode, whereby
3537 the next line is output on the same screen line as the user input.
3538
4bd56d18
TT
35392019-03-18 Tom Tromey <tromey@adacore.com>
3540
3541 * minsyms.c (minimal_symbol_reader::install): Remove call to
3542 obstack_blank.
3543
55c10aca
PA
35442019-03-18 Pedro Alves <palves@redhat.com>
3545
3546 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3547 New globals.
3548 (apply_style): New, factored out from ...
3549 (apply_ansi_escape): ... this. Handle reverse video mode.
3550 (tui_set_reverse_mode): New function.
3551 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3552 * tui/tui-winsource.c (tui_show_source_line): Use
3553 tui_set_reverse_mode instead of setting A_STANDOUT.
3554 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3555 New setter methods.
3556
647bb750
HD
35572019-03-18 Hannes Domani <ssbssa@yahoo.de>
3558
3559 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3560 Handle tabs.
3561
bff8c71f
TT
35622019-03-18 Tom Tromey <tromey@adacore.com>
3563
3564 * ada-lang.c (empty_array): Add "high" parameter.
3565 (ada_evaluate_subexp): Update.
3566
58785d98
ST
35672019-03-17 Sergei Trofimovich <siarheit@google.com>
3568
3569 * unittests/string_view-selftests.c: Define
3570 _initialize_string_view_selftests unconditionally.
3571
d4cbef22
ВМ
35722019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3573
3574 PR gdb/24350
3575 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3576
fce4c071
ВМ
35772019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3578
3579 PR gdb/24351
3580 * windows-nat.c (display_selector): Fix format specifiers.
3581
f7f0a123
EZ
35822019-03-17 Eli Zaretskii <eliz@gnu.org>
3583
3584 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3585 tui_refill_source_window instead of tui_refresh_win, to update the
3586 current execution line. This fixes redisplay of the current line
3587 when stepping through the code with "next" or "step".
3588
ab42892f
EZ
35892019-03-16 Eli Zaretskii <eliz@gnu.org>
3590
3591 * source-cache.c (source_cache::get_source_lines): Call
3592 find_source_lines to initialize s->nlines. This fixes vertical
3593 scrolling of TUI source window when the DOWN arrow is pressed.
3594
8d8c087f
PW
35952019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3596
3597 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3598 linux-thread-db.c (_initialize_thread_db): Likewise.
3599
798e1c30
EZ
36002019-03-16 Eli Zaretskii <eliz@gnu.org>
3601
3602 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3603 wclrtoeol in tui_show_source_line". This reverts changes made in
3604 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3605
eefba3da
TT
36062019-03-15 Tom Tromey <tom@tromey.com>
3607
3608 * symtab.h (struct minimal_symbol): Derive from
3609 general_symbol_info.
3610 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3611 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3612 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3613 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3614 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3615 (MSYMBOL_SEARCH_NAME): Update.
3616 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3617 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3618 * minsyms.c (minimal_symbol_reader::record_full): Update.
3619
0de2420c
TT
36202019-03-15 Tom Tromey <tom@tromey.com>
3621
3622 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3623
042d75e4
TT
36242019-03-15 Tom Tromey <tom@tromey.com>
3625
3626 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3627 unique_xmalloc_ptr.
3628 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3629 Update.
3630 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3631 (build_minimal_symbol_hash_tables)
3632 (minimal_symbol_reader::install): Update.
3633
db92718b
TT
36342019-03-15 Tom Tromey <tom@tromey.com>
3635
3636 * symtab.c (create_demangled_names_hash): Update.
3637 (symbol_set_names): Update.
3638 * objfiles.h (struct objfile_per_bfd_storage)
3639 <demangled_names_hash>: Now an htab_up.
3640 * objfiles.c (objfile_per_bfd_storage): Simplify.
3641
d6797f46
TT
36422019-03-15 Tom Tromey <tom@tromey.com>
3643
3644 * objfiles.h (struct objfile_per_bfd_storage): Declare
3645 destructor.
3646 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3647 New.
3648 (get_objfile_bfd_data): Use new. Don't initialize
3649 language_of_main.
3650 (free_objfile_per_bfd_storage): Remove.
3651 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3652
741d7538
TT
36532019-03-15 Tom Tromey <tom@tromey.com>
3654
3655 * symfile.c (reread_symbols): Update.
3656 * objfiles.c (objfile::objfile): Update.
3657 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3658 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3659 comment.
3660 (minimal_symbol_reader::install): Update.
3661 (terminate_minimal_symbol_table): Remove.
3662 * jit.c (jit_object_close_impl): Update.
3663
788c80d1
TT
36642019-03-15 Tom Tromey <tom@tromey.com>
3665
3666 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3667 initializations.
3668
1b7a07cb
TT
36692019-03-15 Tom Tromey <tom@tromey.com>
3670
3671 * objfiles.h (struct objfile_per_bfd_storage)
3672 <demangled_hash_languages>: Now a bitset.
3673 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3674 (lookup_minimal_symbol): Update.
3675
3db066bc
TT
36762019-03-15 Tom Tromey <tom@tromey.com>
3677
3678 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3679 Don't return the symbol.
3680 * coffread.c (record_minimal_symbol): Use record_full.
3681
3fff2c37
EZ
36822019-03-14 Eli Zaretskii <eliz@gnu.org>
3683
3684 The MS-Windows port of ncurses fails to switch to a color pair if
3685 one or both of the colors are the implicit default colors. This
3686 change records the default colors when TUI is initialized, and
3687 then specifies them explicitly when a color pair uses the default
3688 colors. This allows color styling in TUI mode on MS-Windows.
3689
3690 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3691 ncurses_norm_attr.
3692 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3693 colors in ncurses_norm_attr.
3694 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3695 "none", replace it with the default color recorded in
3696 ncurses_norm_attr.
3697
3b336828
TT
36982019-03-14 Tom Tromey <tromey@adacore.com>
3699
3700 * source-cache.h (class source_cache) <get_source_lines>: Return
3701 std::string.
3702 * source-cache.c (source_cache::extract_lines): Handle case where
3703 first_pos==npos. Return std::string.
3704 (source_cache::get_source_lines): Update.
3705
d085f989
TT
37062019-03-14 Tom Tromey <tromey@adacore.com>
3707
3708 * NEWS: Add item for "style sources" commands.
3709 * source-cache.c (source_cache::get_source_lines): Check
3710 source_styling.
3711 * cli/cli-style.c (source_styling): New global.
3712 (_initialize_cli_style): Add "style sources" commands.
3713 (show_style_sources): New function.
3714 * cli/cli-style.h (source_styling): Declare.
3715
6f11e682
TT
37162019-03-14 Pedro Alves <palves@redhat.com>
3717 Tom Tromey <tromey@adacore.com>
3718
3719 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3720 * tui/tui-winsource.c (tui_refill_source_window): New function,
3721 from...
3722 (tui_horizontal_source_scroll): ... here. Move some logic.
3723 * cli/cli-style.c (set_style_enabled): Notify new observable.
3724 * tui/tui-hooks.c (tui_redisplay_source): New function.
3725 (tui_attach_detach_observers): Attach or detach
3726 tui_redisplay_source.
3727 * observable.h (source_styling_changed): New observable.
3728 * observable.c: Define source_styling_changed observable.
3729
a068643d
TT
37302019-03-13 Tom Tromey <tromey@adacore.com>
3731
3732 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3733 (i386_gnu_nat_target::store_registers): Update.
3734 * target-debug.h (target_debug_print_std_string): New macro.
3735 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3736 * windows-tdep.c (display_one_tib): Update.
3737 * tui/tui-stack.c (tui_make_status_line): Update.
3738 * top.c (print_inferior_quit_action): Update.
3739 * thread.c (thr_try_catch_cmd): Update.
3740 (add_thread_with_info): Update.
3741 (thread_target_id_str): Update.
3742 (thr_try_catch_cmd): Update.
3743 (thread_command): Update.
3744 (thread_find_command): Update.
3745 * record-btrace.c (record_btrace_target::info_record)
3746 (record_btrace_resume_thread, record_btrace_target::resume)
3747 (record_btrace_cancel_resume, record_btrace_step_thread)
3748 (record_btrace_target::wait, record_btrace_target::wait)
3749 (record_btrace_target::wait, record_btrace_target::stop): Update.
3750 * progspace.c (print_program_space): Update.
3751 * process-stratum-target.c
3752 (process_stratum_target::thread_address_space): Update.
3753 * linux-fork.c (linux_fork_mourn_inferior)
3754 (detach_checkpoint_command, info_checkpoints_command)
3755 (linux_fork_context): Update.
3756 (linux_fork_detach): Update.
3757 (class scoped_switch_fork_info): Update.
3758 (delete_checkpoint_command): Update.
3759 * infrun.c (follow_fork_inferior): Update.
3760 (follow_fork_inferior): Update.
3761 (proceed_after_vfork_done): Update.
3762 (handle_vfork_child_exec_or_exit): Update.
3763 (follow_exec): Update.
3764 (displaced_step_prepare_throw): Update.
3765 (displaced_step_restore): Update.
3766 (start_step_over): Update.
3767 (resume_1): Update.
3768 (clear_proceed_status_thread): Update.
3769 (proceed): Update.
3770 (print_target_wait_results): Update.
3771 (do_target_wait): Update.
3772 (context_switch): Update.
3773 (stop_all_threads): Update.
3774 (restart_threads): Update.
3775 (finish_step_over): Update.
3776 (handle_signal_stop): Update.
3777 (switch_back_to_stepped_thread): Update.
3778 (keep_going_pass_signal): Update.
3779 (print_exited_reason): Update.
3780 (normal_stop): Update.
3781 * inferior.c (inferior_pid_to_str): Change return type.
3782 (print_selected_inferior): Update.
3783 (add_inferior): Update.
3784 (detach_inferior): Update.
3785 * dummy-frame.c (fprint_dummy_frames): Update.
3786 * dcache.c (dcache_info_1): Update.
3787 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3788 (btrace_fetch, btrace_clear): Update.
3789 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3790 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3791 type.
3792 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3793 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3794 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3795 * gdbarch.c, gdbarch.h: Rebuild.
3796 * gdbarch.sh (core_pid_to_str): Change return type.
3797 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3798 return type.
3799 (windows_nat_target::pid_to_str): Change return type.
3800 (windows_delete_thread): Update.
3801 (windows_nat_target::attach): Update.
3802 (windows_nat_target::files_info): Update.
3803 * target-delegates.c: Rebuild.
3804 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3805 return type.
3806 (sol_thread_target::pid_to_str): Change return type.
3807 * remote.c (class remote_target) <pid_to_str>: Change return
3808 type.
3809 (remote_target::pid_to_str): Change return type.
3810 (extended_remote_target::attach, remote_target::remote_stop_ns)
3811 (remote_target::remote_notif_remove_queued_reply)
3812 (remote_target::push_stop_reply, remote_target::disable_btrace):
3813 Update.
3814 (extended_remote_target::attach): Update.
3815 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3816 type.
3817 (gdbsim_target::pid_to_str): Change return type.
3818 * ravenscar-thread.c (struct ravenscar_thread_target)
3819 <pid_to_str>: Change return type.
3820 (ravenscar_thread_target::pid_to_str): Change return type.
3821 * procfs.c (class procfs_target) <pid_to_str>: Change return
3822 type.
3823 (procfs_target::pid_to_str): Change return type.
3824 (procfs_target::attach): Update.
3825 (procfs_target::detach): Update.
3826 (procfs_target::fetch_registers): Update.
3827 (procfs_target::store_registers): Update.
3828 (procfs_target::wait): Update.
3829 (procfs_target::files_info): Update.
3830 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3831 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3832 return type.
3833 (nto_procfs_target::pid_to_str): Change return type.
3834 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3835 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3836 return type.
3837 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3838 (exit_lwp): Update.
3839 (attach_proc_task_lwp_callback, get_detach_signal)
3840 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3841 (linux_nat_target::resume, wait_lwp, stop_callback)
3842 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3843 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3844 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3845 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3846 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3847 type.
3848 (inf_ptrace_target::attach): Update.
3849 (inf_ptrace_target::files_info): Update.
3850 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3851 type.
3852 (go32_nat_target::pid_to_str): Change return type.
3853 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3854 (gnu_nat_target::wait): Update.
3855 (gnu_nat_target::wait): Update.
3856 (gnu_nat_target::resume): Update.
3857 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3858 (fbsd_nat_target::wait): Update.
3859 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3860 type.
3861 (darwin_nat_target::attach): Update.
3862 * corelow.c (class core_target) <pid_to_str>: Change return type.
3863 (core_target::pid_to_str): Change return type.
3864 * target.c (normal_pid_to_str): Change return type.
3865 (default_pid_to_str): Likewise.
3866 (target_pid_to_str): Change return type.
3867 (target_translate_tls_address): Update.
3868 (target_announce_detach): Update.
3869 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3870 return type.
3871 (bsd_uthread_target::pid_to_str): Change return type.
3872 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3873 type.
3874 (bsd_kvm_target::pid_to_str): Change return type.
3875 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3876 return type.
3877 (aix_thread_target::pid_to_str): Change return type.
3878 * target.h (struct target_ops) <pid_to_str>: Change return type.
3879 (target_pid_to_str, normal_pid_to_str): Likewise.
3880 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3881 type.
3882 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3883 type.
3884 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3885 return type.
3886 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3887 type.
3888 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3889 type.
3890 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3891 return type.
3892
b4be1b06
SM
38932019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3894
3895 * NEWS: Mention that the new default MI version is 3. Mention
3896 changes to the output of commands and events that deal with
3897 multi-location breakpoints.
3898 * breakpoint.c: Include "mi/mi-out.h".
3899 (print_one_breakpoint): Change output syntax if using MI version
3900 >= 3.
3901 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3902 New.
3903 (mi_multi_location_breakpoint_output_fixed): New.
3904 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3905 (mi_cmd_fix_multi_location_breakpoint_output): New.
3906 (mi_multi_location_breakpoint_output_fixed): New.
3907 * mi/mi-cmds.c (mi_cmds): Register command
3908 -fix-multi-location-breakpoint-output.
3909 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3910 interpreter "mi".
3911
8e5e5494
SM
39122019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3913
3914 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3915 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3916 instantiate mi_ui_out based on interpreter name.
3917 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3918 * mi/mi-main.c (mi_load_progress): Likewise.
3919
197df35e
JB
39202019-03-12 John Baldwin <jhb@FreeBSD.org>
3921
3922 * NEWS: Combine separate "New targets" sections for 8.3.
3923
8399425f
JB
39242019-03-12 John Baldwin <jhb@FreeBSD.org>
3925
3926 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3927 (ppcfbsd_init_abi): Install gdbarch
3928 "fetch_tls_load_module_address" and "get_thread_local_address"
3929 methods.
3930
b0f87ed0
JB
39312019-03-12 John Baldwin <jhb@FreeBSD.org>
3932
3933 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3934 (riscv_fbsd_init_abi): Install gdbarch
3935 "fetch_tls_load_module_address" and "get_thread_local_address"
3936 methods.
3937
ce25aa57
JB
39382019-03-12 John Baldwin <jhb@FreeBSD.org>
3939
3940 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3941 (i386fbsd_init_abi): Install gdbarch
3942 "fetch_tls_load_module_address" and "get_thread_local_address"
3943 methods.
3944
f5424cfa
JB
39452019-03-12 John Baldwin <jhb@FreeBSD.org>
3946
3947 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3948 (amd64fbsd_init_abi): Install gdbarch
3949 "fetch_tls_load_module_address" and "get_thread_local_address"
3950 methods.
3951
945f3901
JB
39522019-03-12 John Baldwin <jhb@FreeBSD.org>
3953
3954 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3955 (struct fbsd_pspace_data): New type.
3956 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3957 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3958 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3959 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3960 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3961
ef0bd204
JB
39622019-03-12 John Baldwin <jhb@FreeBSD.org>
3963
3964 * gdbtypes.c (lookup_struct_elt): New function.
3965 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3966 * gdbtypes.h (struct struct_elt): New type.
3967 (lookup_struct_elt): New prototype.
3968
36c53a02
JB
39692019-03-12 John Baldwin <jhb@FreeBSD.org>
3970
3971 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3972 remove disabled code block.
3973
6e056c81
JB
39742019-03-12 John Baldwin <jhb@FreeBSD.org>
3975
3976 * gdbarch.sh (get_thread_local_address): New method.
3977 * gdbarch.h, gdbarch.c: Regenerate.
3978 * target.c (target_translate_tls_address): Use
3979 gdbarch_get_thread_local_address if present instead of
3980 target::get_thread_local_address.
3981
cd250a18
JB
39822019-03-12 John Baldwin <jhb@FreeBSD.org>
3983
3984 * target.h (target::get_thread_local_address): Update comment.
3985
df22c1e5
JB
39862019-03-12 John Baldwin <jhb@FreeBSD.org>
3987
3988 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3989 objfile->separate_debug_objfile_backlink if not NULL.
3990
dd6876c9
JB
39912019-03-12 John Baldwin <jhb@FreeBSD.org>
3992
3993 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3994 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3995 (amd64bsd_store_inferior_registers): Likewise.
3996 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3997 Enable segment base registers.
3998 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3999 PT_GETFSBASE and PT_GETGSBASE.
4000 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4001 PT_SETGSBASE.
4002 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4003 segment base registers.
4004 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4005
1163a4b7
JB
40062019-03-12 John Baldwin <jhb@FreeBSD.org>
4007
4008 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4009 Update calls to i386_target_description to add 'segments'
4010 parameter.
4011 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4012 add segment base registers.
4013 * arch/i386.c (i386_create_target_description): Add 'segments'
4014 parameter to enable segment base registers.
4015 * arch/i386.h (i386_create_target_description): Likewise.
4016 * features/i386/32bit-segments.xml: New file.
4017 * features/i386/32bit-segments.c: Generate.
4018 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4019 call to i386_target_description to add 'segments' parameter.
4020 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4021 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4022 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4023 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4024 if feature is present.
4025 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4026 Add 'segments' parameter to call to i386_target_description.
4027 (i386_target_description): Add 'segments' parameter to enable
4028 segment base registers.
4029 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4030 to call to i386_target_description.
4031 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4032 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4033 Define I386_NUM_REGS.
4034 (i386_target_description): Add 'segments' parameter to enable
4035 segment base registers.
4036
3a350822
EZ
40372019-03-12 Eli Zaretskii <eliz@gnu.org>
4038
4039 PR/24325
4040 * source-cache.c: #undef open and close, to avoid unresolved
4041 externals during linking.
4042
ffdd69cf
TT
40432019-03-12 Tom Tromey <tromey@adacore.com>
4044
4045 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4046 const. Add initializers.
4047 (_initialize_remote): Don't initialize ptid globals.
4048
ec148c57
PA
40492019-03-12 Pedro Alves <palves@redhat.com>
4050
4051 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4052
32764270
PA
40532019-03-12 Pedro Alves <palves@redhat.com>
4054
4055 * cp-name-parser.y (main): Remove unused 'len' variable.
4056
17547186
TT
40572019-03-12 Tom Tromey <tromey@adacore.com>
4058
4059 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4060 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4061
d3a70e03
TT
40622019-03-12 Tom Tromey <tromey@adacore.com>
4063
4064 * linux-nat.c (iterate_over_lwps): Update.
4065 (stop_callback): Remove parameter.
4066 (stop_wait_callback, detach_callback, resume_set_callback)
4067 (select_singlestep_lwp_callback, set_ignore_sigint)
4068 (status_callback, resumed_callback, resume_clear_callback)
4069 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4070 data parameter.
4071 (linux_nat_target::detach, linux_nat_target::resume)
4072 (linux_stop_and_wait_all_lwps, select_event_lwp)
4073 (linux_nat_filter_event, linux_nat_wait_1)
4074 (linux_nat_target::kill, linux_nat_target::stop)
4075 (linux_nat_target::stop): Update.
4076 (linux_nat_resume_callback): Change type.
4077 (resume_stopped_resumed_lwps, count_events_callback)
4078 (select_event_lwp_callback): Likewise.
4079 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4080 * arm-linux-nat.c (struct update_registers_data): Remove.
4081 (update_registers_callback): Change type.
4082 (arm_linux_insert_hw_breakpoint1): Update.
4083 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4084 parameter.
4085 (x86_linux_dr_set_addr): Update.
4086 (x86_linux_dr_set_control): Update.
4087 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4088 (iterate_over_lwps): Use gdb::function_view.
4089 * nat/aarch64-linux-hw-point.c (struct
4090 aarch64_dr_update_callback_param): Remove.
4091 (debug_reg_change_callback): Change type.
4092 (aarch64_notify_debug_reg_change): Update.
4093 * s390-linux-nat.c (s390_refresh_per_info): Update.
4094
82cb27ff
TT
40952019-03-11 Tom Tromey <tromey@adacore.com>
4096
4097 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4098 redundant assignment to "this_cu".
4099
568c0683
SM
41002019-03-08 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4103
f09ce22d
SM
41042019-03-08 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4107 from...
4108 (rank_one_type): ... this.
4109
595f96a9
SM
41102019-03-08 Simon Marchi <simon.marchi@efficios.com>
4111
4112 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4113 from...
4114 (rank_one_type): ... this.
4115
2598a94b
SM
41162019-03-08 Simon Marchi <simon.marchi@efficios.com>
4117
4118 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4119 from...
4120 (rank_one_type): ... this.
4121
7f17b20d
SM
41222019-03-08 Simon Marchi <simon.marchi@efficios.com>
4123
4124 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4125 from...
4126 (rank_one_type): ... this.
4127
2c509035
SM
41282019-03-08 Simon Marchi <simon.marchi@efficios.com>
4129
4130 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4131 from...
4132 (rank_one_type): ... this.
4133
0dd322dc
SM
41342019-03-08 Simon Marchi <simon.marchi@efficios.com>
4135
4136 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4137 from...
4138 (rank_one_type): ... this.
4139
41ea4728
SM
41402019-03-08 Simon Marchi <simon.marchi@efficios.com>
4141
4142 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4143 from...
4144 (rank_one_type): ... this.
4145
793cd1d2
SM
41462019-03-08 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4149 from...
4150 (rank_one_type): ... this.
4151
34910087
SM
41522019-03-08 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4155 from...
4156 (rank_one_type): ... this.
4157
f1f832d6
SM
41582019-03-08 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4161 from...
4162 (rank_one_type): ... this.
4163
b9f4512f
SM
41642019-03-08 Simon Marchi <simon.marchi@efficios.com>
4165
4166 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4167 from...
4168 (rank_one_type): ... this.
4169
9293fc63
SM
41702019-03-08 Simon Marchi <simon.marchi@efficios.com>
4171
4172 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4173 from...
4174 (rank_one_type): ... this.
4175
e3abbe7e
PW
41762019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4177
4178 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4179 inferior-events' shows the example events.
4180
e4adb939
EZ
41812019-03-08 Eli Zaretskii <eliz@gnu.org>
4182
4183 Support styling on native MS-Windows console
4184
4185 PR/24315
4186 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4187 on MS-Windows if $TERM is not defined.
4188
4189 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4190
4191 * posix-hdep.c (gdb_console_fputs):
4192 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4193 functions.
4194 * ui-file.h (gdb_console_fputs): Add prototype.
4195
4196 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4197 back to fputs only if the former returns zero.
4198
25629dfd
TT
41992019-03-07 Tom Tromey <tom@tromey.com>
4200
4201 * symmisc.c (print_symbol_bcache_statistics): Update.
4202 (print_objfile_statistics): Update.
4203 * symfile.c (allocate_symtab): Update.
4204 * stabsread.c: Don't include bcache.h.
4205 * psymtab.h (struct psymbol_bcache): Don't declare.
4206 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4207 (psymbol_bcache_init, psymbol_bcache_free)
4208 (psymbol_bcache_get_bcache): Don't declare.
4209 * psymtab.c (struct psymbol_bcache): Remove.
4210 (psymtab_storage::psymtab_storage): Update.
4211 (psymtab_storage::~psymtab_storage): Update.
4212 (psymbol_bcache_init, psymbol_bcache_free)
4213 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4214 (add_psymbol_to_bcache): Update.
4215 (allocate_psymtab): Update.
4216 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4217 macro_cache>: No longer pointers.
4218 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4219 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4220 * macrotab.c (macro_bcache): Update.
4221 * macroexp.c: Don't include bcache.h.
4222 * gdbtypes.c (check_types_worklist): Update.
4223 (types_deeply_equal): Remove TRY/CATCH. Update.
4224 * elfread.c (elf_symtab_read): Update.
4225 * dwarf2read.c: Don't include bcache.h.
4226 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4227 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4228 (print_bcache_statistics, bcache_memory_used): Don't declare.
4229 (struct bcache): Move from bcache.c. Add constructor, destructor,
4230 methods. Rename all data members.
4231 * bcache.c (struct bcache): Move to bcache.h.
4232 (bcache::expand_hash_table): Rename from expand_hash_table.
4233 (bcache): Remove.
4234 (bcache::insert): Rename from bcache_full.
4235 (bcache::compare): Rename from bcache_compare.
4236 (bcache_xmalloc): Remove.
4237 (bcache::~bcache): Rename from bcache_xfree.
4238 (bcache::print_statistics): Rename from print_bcache_statistics.
4239 (bcache::memory_used): Rename from bcache_memory_used.
4240
fe726667
PA
42412019-03-07 Pedro Alves <palves@redhat.com>
4242
4243 * infrun.c (normal_stop): Also check for
4244 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4245
7584bb30
AB
42462019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4247
4248 * f-lang.c (value_from_host_double): Moved to...
4249 * value.c (value_from_host_double): ...here.
4250 * value.h (value_from_host_double): Declare.
4251 * guile/scm-math.c (vlscm_convert_typed_number): Use
4252 value_from_host_double.
4253 (vlscm_convert_number): Likewise.
4254 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4255 * python/py-value.c (convert_value_from_python): Likewise.
4256
a7b1986e
TT
42572019-03-06 Tom Tromey <tom@tromey.com>
4258
4259 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4260
0ccf4211
TT
42612019-03-06 Tom Tromey <tom@tromey.com>
4262
4263 * utils.h (free_current_contents): Don't declare.
4264 * utils.c (free_current_contents): Remove.
4265
fe7b42e5
TT
42662019-03-06 Tom Tromey <tom@tromey.com>
4267
4268 * top.c (quit_force): Update.
4269 * main.c (captured_command_loop): Update.
4270 * common/new-op.c (operator new): Update.
4271 * common/common-exceptions.c (struct catcher)
4272 <save_cleanup_chain>: Remove member.
4273 (exceptions_state_mc_init): Update.
4274 (exception_try_scope_entry): Return nullptr.
4275 (exception_try_scope_exit, exception_rethrow)
4276 (throw_exception_sjlj, throw_exception_cxx): Update.
4277 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4278 (all_cleanups, do_cleanups, discard_cleanups)
4279 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4280 (restore_cleanups, restore_final_cleanups): Don't declare.
4281 (do_final_cleanups): Remove parameter.
4282 * common/cleanups.c (cleanup_chain, make_cleanup)
4283 (make_cleanup_dtor, all_cleanups, do_cleanups)
4284 (discard_my_cleanups, discard_cleanups)
4285 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4286 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4287 (null_cleanup): Remove.
4288 (do_final_cleanups): Remove parameter.
4289
c6321f19
TT
42902019-03-06 Tom Tromey <tom@tromey.com>
4291
4292 * remote.c (remote_target::remote_parse_stop_reply): Use
4293 unique_xmalloc_ptr.
4294
61b30099
TT
42952019-03-06 Tom Tromey <tom@tromey.com>
4296
4297 * stabsread.c (struct stabs_field_info): Rename from field_info.
4298 <list, fnlist>: Add initializers.
4299 <obstack>: New member.
4300 (read_member_functions, read_struct_fields, read_baseclasses):
4301 Allocate on obstack. Don't use cleanups.
4302 (read_one_struct_field, read_member_functions, read_struct_fields)
4303 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4304 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4305 (read_struct_type): Update.
4306
6cceac94
TT
43072019-03-06 Tom Tromey <tom@tromey.com>
4308
4309 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4310 * common/filestuff.h (make_cleanup_close): Don't declare.
4311 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4312 Remove.
4313
72412762
TT
43142019-03-06 Tom Tromey <tom@tromey.com>
4315
4316 * solib-aix.c: Use make_scope_exit.
4317
2b6ff1c0
TT
43182019-03-06 Tom Tromey <tom@tromey.com>
4319
4320 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4321 Use make_scope_exit.
4322
d01c5877
TT
43232019-03-06 Tom Tromey <tom@tromey.com>
4324
4325 * solib-svr4.c (disable_probes_interface): Remove parameter.
4326 (svr4_handle_solib_event): Use make_scope_exit.
4327
32603266
TT
43282019-03-06 Tom Tromey <tom@tromey.com>
4329
4330 * remote.c (struct stop_reply_deleter): Remove.
4331 (stop_reply_up): Update.
4332 (struct stop_reply): Derive from notif_event. Don't typedef.
4333 <regcache>: Now a std::vector.
4334 (stop_reply_xfree): Remove.
4335 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4336 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4337 (remote_target::discard_pending_stop_replies): Use delete.
4338 (remote_target::remote_parse_stop_reply): Update.
4339 (remote_target::process_stop_reply): Update.
4340 * remote-notif.h (struct notif_event): Add virtual destructor.
4341 Remove "dtr" member.
4342 (struct notif_client) <alloc_event>: Return a unique_ptr.
4343 (notif_event_xfree): Don't declare.
4344 (notif_event_up): New typedef.
4345 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4346 (notif_event_xfree, do_notif_event_xfree): Remove.
4347 (remote_notif_state_xfree): Update.
4348
9799571e
TT
43492019-03-06 Tom Tromey <tom@tromey.com>
4350
4351 * infrun.c (displaced_step_clear_cleanup): Now a
4352 forward_scope_exit type.
4353 (displaced_step_prepare_throw): Update.
4354 (displaced_step_fixup): Update.
4355
09e3c4ca
TT
43562019-03-06 Tom Tromey <tom@tromey.com>
4357
4358 * inferior.h (class inferior): Update comment.
4359 * gdbthread.h (class thread_info): Update comment.
4360
e2a03548
TT
43612019-03-06 Joel Brobecker <brobecker@adacore.com>
4362 Tom Tromey <tom@tromey.com>
4363
4364 * stabsread.h (struct stab_section_list): Remove.
4365 (coffstab_build_psymtabs): Update.
4366 * dbxread.c (symbuf_sections): Now a std::vector.
4367 (sect_idx): New global.
4368 (fill_symbuf): Update.
4369 (coffstab_build_psymtabs): Change type of stabsects parameter.
4370 Update.
4371 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4372 std::vector.
4373 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4374 (coff_locate_sections): Update.
4375 (coff_symfile_read): Remove cleanups. Update.
4376 (init_stringtab): Add storage parameter.
4377 (free_stringtab, free_stringtab_cleanup): Remove.
4378 (init_lineno): Add storage parameter.
4379 (free_linetab, free_linetab_cleanup): Remove.
4380
b7e60d85
PA
43812019-03-06 Pedro Alves <palves@redhat.com>
4382
4383 * linux-fork.c (fork_info::clobber_regs): Delete.
4384 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4385 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4386 comment. Adjust.
4387 (scoped_switch_fork_info::scoped_switch_fork_info)
4388 (checkpoint_command, linux_fork_context): Adjust
4389 fork_save_infrun_state calls.
4390
e52c971f
PA
43912019-03-06 Pedro Alves <palves@redhat.com>
4392
4393 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4394 (inf_has_multiple_threads): Return 'bool' and rewrite using
4395 inferior_info::threads().
4396
06974e6c
PA
43972019-03-06 Pedro Alves <palves@redhat.com>
4398
4399 * linux-fork.c: Include <list>.
4400 (fork_list): Now a std::list instance.
4401 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4402 (forks_exist_p, find_last_fork): Adjust.
4403 (new_fork): Delete.
4404 (one_fork_p): New.
4405 (add_fork): Adjust.
4406 (free_fork): Delete, folded into fork_info::~fork_info().
4407 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4408 Adjust.
4409 (init_fork_list): Delete.
4410 (linux_fork_killall, linux_fork_mourn_inferior)
4411 (linux_fork_detach, info_checkpoints_command): Adjust.
4412 (_initialize_linux_fork): No longer call init_fork_list.
4413
72f31aea
PA
44142019-03-06 Pedro Alves <palves@redhat.com>
4415
4416 * linux-fork.c (new_fork): New, split out of ...
4417 (add_fork): ... this. Return void. Move "first fork" special
4418 case from here, to ...
4419 (checkpoint_command): ... here.
4420 * linux-linux.h (add_fork): Return void.
4421
efbecbc1
AB
44222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4423
4424 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4425
0841c79a
AB
44262019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4427 Chris January <chris.january@arm.com>
4428 David Lecomber <david.lecomber@arm.com>
4429
4430 * f-exp.y: New token, UNOP_INTRINSIC.
4431 (exp): New pattern using UNOP_INTRINSIC token.
4432 (f77_keywords): Add 'abs' keyword.
4433 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4434 (value_from_host_double): New function.
4435 (evaluate_subexp_f): Support UNOP_ABS.
4436
4a270568
AB
44372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4438
4439 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4440 types.
4441
067630bd
AB
44422019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4443
4444 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4445 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4446 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4447
3be47f7a
AB
44482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4449
4450 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4451
4d00f5d8
AB
44522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4453 Chris January <chris.january@arm.com>
4454
4455 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4456 * f-exp.y: Define 'KIND' token.
4457 (exp): New pattern for KIND expressions.
4458 (ptype): Handle types with a kind extension.
4459 (direct_abs_decl): Extend to spot kind extensions.
4460 (f77_keywords): Add 'kind' to the list.
4461 (push_kind_type): New function.
4462 (convert_to_kind_type): New function.
4463 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4464 * parse.c (operator_length_standard): Likewise.
4465 * parser-defs.h (enum type_pieces): Add tp_kind.
4466 * std-operator.def: Add UNOP_KIND.
4467
e454224f
AB
44682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4469
4470 * f-exp.y (f_parse): Set yydebug.
4471
9dad4a58
AB
44722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4473
4474 * f-lang.c (evaluate_subexp_f): New function.
4475 (exp_descriptor_f): New global.
4476 (f_language_defn): Use exp_descriptor_f instead of
4477 exp_descriptor_standard.
4478
c8f91604
AB
44792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4480
4481 * f-exp.y (struct token): Add comments.
4482 (dot_ops): Remove uppercase versions and the end marker.
4483 (f77_keywords): Likewise.
4484 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4485 entries in the dot_ops array are case insensitive, and use
4486 strncasecmp to compare strings. Also some whitespace cleanup in
4487 this area. Similar for the f77_keywords array, except entries in
4488 this list might be case sensitive.
4489
dd9f2c76
AB
44902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4491
4492 * f-exp.y (struct f77_boolean_val): Add comments.
4493 (boolean_values): Remove uppercase versions, and end marker.
4494 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4495 and use strncasecmp to achieve case insensitivity. Additionally,
4496 perform whitespace cleanup around this code.
4497
67a3048c
TT
44982019-03-06 Tom Tromey <tromey@adacore.com>
4499
4500 * remote-sim.c (gdbsim_target_open): Use result of
4501 gdb_argv::release.
4502
aa3cfbda
RB
45032019-03-06 Richard Bunt <richard.bunt@arm.com>
4504 Dirk Schubert <dirk.schubert@arm.com>
4505 Chris January <chris.january@arm.com>
4506
4507 * eval.c (evaluate_subexp_standard): Call Fortran argument
4508 wrapping logic.
4509 * f-lang.c (struct value): A value which can be passed into a
4510 Fortran function call.
4511 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4512 where appropriate.
4513 (struct type): Value ready for a Fortran function call.
4514 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4515 is needed.
4516 * f-lang.h (fortran_argument_convert): Declaration.
4517 (fortran_preserve_arg_pointer): Declaration.
4518 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4519
ea38e5df
TT
45202019-03-05 Tom Tromey <tromey@adacore.com>
4521
4522 * python/py-prettyprint.c (print_string_repr): Remove #if.
4523 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4524
06b5b831
TT
45252019-03-05 Tom Tromey <tromey@adacore.com>
4526
4527 * target.c (the_dummy_target): Move later. Change type to
4528 "dummy_target".
4529 (initialize_targets): Don't initialize the_dummy_target.
4530
edbd9e45
TT
45312019-03-05 Tom Tromey <tromey@adacore.com>
4532
4533 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4534 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4535
c119e040
TT
45362019-03-05 Tom Tromey <tromey@adacore.com>
4537
4538 * windows-nat.c (windows_nat_target::attach)
4539 (windows_nat_target::detach): Don't call gdb_flush.
4540 * valprint.c (generic_val_print, val_print, val_print_string):
4541 Don't call gdb_flush.
4542 * utils.c (defaulted_query): Don't call gdb_flush.
4543 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4544 * target.c (target_announce_detach): Don't call gdb_flush.
4545 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4546 * remote.c (extended_remote_target::attach): Don't call
4547 gdb_flush.
4548 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4549 * printcmd.c (do_examine): Don't call gdb_flush.
4550 (info_display_command): Don't call gdb_flush.
4551 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4552 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4553 * memattr.c (info_mem_command): Don't call gdb_flush.
4554 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4555 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4556 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4557 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4558 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4559 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4560 (gnu_nat_target::detach): Don't call gdb_flush.
4561 * f-valprint.c (f_val_print): Don't call gdb_flush.
4562 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4563 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4564 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4565 gdb_flush.
4566 * c-valprint.c (c_val_print): Don't call gdb_flush.
4567 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4568
895dafa6
TT
45692019-03-05 Tom Tromey <tromey@adacore.com>
4570
4571 * varobj.c (update_dynamic_varobj_children): Update.
4572 (install_default_visualizer): Use reset, not release.
4573 * value.c (set_internalvar): Update.
4574 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4575 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4576 ATTRIBUTE_UNUSED_RESULT.
4577
88a774b9
TT
45782019-03-05 Tom Tromey <tromey@adacore.com>
4579
4580 * remote.c (class scoped_remote_fd) <release>: Add
4581 ATTRIBUTE_UNUSED_RESULT.
4582
4e4a8b93
TT
45832019-03-05 Tom Tromey <tromey@adacore.com>
4584
4585 * macroexp.c (struct macro_buffer) <release>: Add
4586 ATTRIBUTE_UNUSED_RESULT.
4587
083eef1f
TT
45882019-03-05 Tom Tromey <tromey@adacore.com>
4589
4590 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4591 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4592 ATTRIBUTE_UNUSED_RESULT.
4593
3cabd438
TT
45942019-03-05 Tom Tromey <tromey@adacore.com>
4595
4596 * common/scoped_fd.h (class scoped_fd) <release>: Add
4597 ATTRIBUTE_UNUSED_RESULT.
4598
41e3300a
TT
45992019-03-05 Tom Tromey <tromey@adacore.com>
4600
4601 * parser-defs.h (struct parser_state) <release>: Add
4602 ATTRIBUTE_UNUSED_RESULT.
4603
18cb7c9f
TT
46042019-03-05 Tom Tromey <tromey@adacore.com>
4605
4606 * utils.h (class gdb_argv) <release>: Add
4607 ATTRIBUTE_UNUSED_RESULT.
4608 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4609
41fa577f
EZ
46102019-03-02 Eli Zaretskii <eliz@gnu.org>
4611
a6a4b2c6
EZ
4612 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4613 for-loop range, to avoid compiler warnings.
4614
4615 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4616 avoid compiler warnings about unused variables.
4617
742a7df5
EZ
4618 * NEWS: Mention end of support for native debugging on MS-Windows
4619 before XP.
4620
41fa577f
EZ
4621 PR gdb/24292
4622 * common/netstuff.c:
4623 * gdbserver/gdbreplay.c
4624 * gdbserver/remote-utils.c:
4625 * ser-tcp.c:
4626 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4627 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4628 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4629 'getaddrinfo' and 'freeaddrinfo' were not available before
4630 Windows XP, and mingw.org's MinGW headers by default define
4631 _WIN32_WINNT to 0x500.
4632
827f438f
GB
46332019-03-01 Gary Benson <gbenson@redhat.com>
4634
4635 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4636
92137da0
RO
46372019-02-28 Brian Vandenberg <phantall@gmail.com>
4638 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4639
4640 PR gdb/8527
4641 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4642 set_sigint_trap, clear_sigint_trap.
4643
799efbe8
PW
46442019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4645
4646 * target.c (target_detach): Clear the regcache and the
4647 frame cache.
4648
8ed25214
PA
46492019-02-27 Pedro Alves <palves@redhat.com>
4650
4651 * utils.c (set_screen_size): When we cap the height/width sizes,
4652 tweak the corresponding command variable to show "unlimited":
4653
23031e31
SJ
46542019-02-27 Saagar Jha <saagar@saagarjha.com>
4655 Pedro Alves <palves@redhat.com>
4656
4657 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4658 before calling rl_set_screen_size.
4659
6c28e44a
TT
46602019-02-27 Tom Tromey <tromey@adacore.com>
4661
4662 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4663 define.
4664 * python/py-value.c: Remove Python 2.4 workaround.
4665 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4666 workaround.
4667 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4668 Python 2.4 workaround.
4669 * python/python-internal.h: Remove Python 2.4 comment.
4670 (Py_ssize_t): Don't define.
4671 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4672 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4673 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4674 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4675 * python/python.c (do_start_initialization): Remove Python 2.4
4676 workaround.
4677 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4678 (print_children): Remove Python 2.4 workaround.
4679 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4680 workaround.
4681 (CHARBUFFERPROC_NAME): Remove.
4682 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4683 Python 2.4 workaround.
4684
2c3fc25d 46852019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 4686
2c3fc25d
KB
4687 * NEWS: Note minimum Python version.
4688
6ca62222
KB
46892019-02-27 Kevin Buettner <kevinb@redhat.com>
4690
4691 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4692 code from these functions. Remove corresponding ifdefs. Use
4693 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4694 Remove gotos and target of gotos.
4695 (infpy_search_memory): Likewise.
4696
f4bc7d2c
AB
46972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4698
4699 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4700 (hppa_gdbarch_init): Don't register deleted functions with
4701 gdbarch.
4702
9734a586
AB
47032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4704
4705 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4706 (h8300_unwind_sp): Delete.
4707 (h8300_dummy_id): Delete.
4708 (h8300_gdbarch_init): Don't register deleted functions with
4709 gdbarch.
4710
68b867f3
AB
47112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4712
4713 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4714 (ft32_unwind_pc): Delete.
4715 (ft32_unwind_sp): Delete.
4716 (ft32_gdbarch_init): Don't register deleted functions with
4717 gdbarch.
4718
2fbe7ad0
AB
47192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4720
4721 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4722 (frv_unwind_pc): Delete.
4723 (frv_unwind_sp): Delete.
4724 (frv_gdbarch_init): Don't register deleted functions with
4725 gdbarch.
4726
76055cbe
AB
47272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4728
4729 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4730 (riscv_unwind_pc): Delete.
4731 (riscv_unwind_sp): Delete.
4732 (riscv_gdbarch_init): Don't register deleted functions with
4733 gdbarch.
4734
4133e5a1
AB
47352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4736
4737 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4738 (csky_unwind_pc): Delete.
4739 (csky_unwind_sp): Delete.
4740 (csky_gdbarch_init): Don't register deleted functions with
4741 gdbarch.
4742
8010f576
AB
47432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4744
4745 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4746 (cris_unwind_pc): Delete.
4747 (cris_unwind_sp): Delete.
4748 (cris_gdbarch_init): Don't register deleted functions with
4749 gdbarch.
4750
b56bf084
AB
47512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4752
4753 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4754 (bfin_unwind_pc): Delete.
4755 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4756
a19a650f
AB
47572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4758
4759 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4760 (arm_unwind_pc): Delete.
4761 (arm_unwind_sp): Delete.
4762 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4763
f8278c3c
AB
47642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4765
4766 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4767 (arc_unwind_pc): Delete.
4768 (arc_unwind_sp): Delete.
4769 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4770
480e46cf
AB
47712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4772
4773 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4774 (alpha_unwind_pc): Delete.
4775 (alpha_gdbarch_init): Don't register deleted functions with
4776 gdbarch.
4777
7a995095
AB
47782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4779
4780 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4781 (aarch64_unwind_pc): Delete.
4782 (aarch64_unwind_sp): Delete.
4783 (aarch64_gdbarch_init): Don't register deleted functions with
4784 gdbarch.
4785
bf9a735e
AB
47862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4787
4788 * gdbtypes.c (type_align): Don't consider static members when
4789 computing structure alignment.
4790
5561fc30
AB
47912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4792
4793 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4794 return 0 for other types.
4795 * arch-utils.c (default_type_align): Always return 0.
4796 * gdbarch.h: Regenerate.
4797 * gdbarch.sh (type_align): Extend comment.
4798 * gdbtypes.c (type_align): Add additional comments, always call
4799 gdbarch_type_align before applying the default rules.
4800 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4801 generic code will then apply a suitable default.
4802 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4803 types, return 0 for other types.
4804
9335e75a
JB
48052019-02-27 Joel Brobecker <brobecker@adacore.com>
4806
4807 * NEWS: Create a new section for the next release branch.
4808 Rename the section of the current branch, now that it has
4809 been cut.
4810
3d34d8de
JB
48112019-02-27 Joel Brobecker <brobecker@adacore.com>
4812
4813 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4814 * version.in: Bump version to 8.3.50.DATE-git.
4815
143420fb
SM
48162019-02-26 Simon Marchi <simon.marchi@efficios.com>
4817
4818 * aix-thread.c (ptid_cmp): Remove unused variable.
4819 (get_signaled_thread): Likewise.
4820 (store_regs_user_thread): Likewise.
4821 (store_regs_kernel_thread): Likewise.
4822 (fetch_regs_kernel_thread): Remove shadowed variable.
4823
172fb711
AB
48242019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4825
4826 * features/riscv/32bit-cpu.xml: Add register numbers.
4827 * features/riscv/32bit-fpu.c: Regenerate.
4828 * features/riscv/32bit-fpu.xml: Add register numbers.
4829 * features/riscv/64bit-cpu.xml: Add register numbers.
4830 * features/riscv/64bit-fpu.c: Regenerate.
4831 * features/riscv/64bit-fpu.xml: Add register numbers.
4832
26c89782
KB
48332019-02-26 Kevin Buettner <kevinb@redhat.com>
4834
af54ade9 4835 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
4836 * python/py-value.c (convert_buffer_and_type_to_value): New
4837 function.
4838 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4839 Add support for handling an optional second argument. Call
4840 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
4841 * python/python-internal.h (Py_buffer_deleter): New struct.
4842 (Py_buffer_up): New typedef.
4843
0f58c9e8
JB
48442019-02-25 John Baldwin <jhb@FreeBSD.org>
4845
4846 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4847 instead of releasing ownership.
4848
0a0f4c01
JR
48492019-02-25 Jordan Rupprecht <rupprecht@google.com>
4850
4851 * dwarf2read.c (open_and_init_dwp_file): Call
4852 elf_numsections instead of bfd_count_sections to initialize
4853 dwp_file->num_sections.
4854
cd5a152c
TT
48552019-02-25 Tom Tromey <tromey@adacore.com>
4856
4857 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4858
8a6a8513
SDJ
48592019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4860
4861 * gcore.in: Add '--readnever' option when invoking GDB.
4862
04dcda9c
SM
48632019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4864
4865 * MAINTAINERS: Update my email address.
4866
07bc701d
SM
48672019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4868
4869 * build-id.c (build_id_to_debug_bfd_1): New function.
4870 (build_id_to_debug_bfd): Look for separate debug file in
4871 sysroot.
4872
c6f4a5d0
AB
48732019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4874
4875 * gdbarch.sh: Update the copyright year range that is placed into
4876 generated files.
4877
9600246d
KS
48782019-02-22 Keith Seitz <keiths@redhat.com>
4879
4880 PR symtab/23853
4881 * linespec.c (create_sals_line_offset): Search for the default
4882 symtab's filename instead of its fullname.
4883
7557a514
AH
48842019-02-21 Alan Hayward <alan.hayward@arm.com>
4885
4886 * NEWS: Update style defaults.
4887
ee2bcb0c
AH
48882019-02-21 Alan Hayward <alan.hayward@arm.com>
4889
4890 * main.c (captured_main_1): Disable styling in batch mode.
4891
0c95f9ed
TT
48922019-02-20 Tom Tromey <tom@tromey.com>
4893
4894 * symtab.c (symtab_symbol_info): Fix typos.
4895
c763b894
TT
48962019-02-20 Tom Tromey <tromey@adacore.com>
4897
4898 * findcmd.c (_initialize_mem_search): Use upper case for
4899 metasyntactic variables.
4900
0ef8a082
AH
49012019-02-20 Alan Hayward <alan.hayward@arm.com>
4902
4903 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4904 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4905
6caa91b6
SM
49062019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4907
4908 * top.h (source_file_name): Change to std::string.
4909 * top.c (source_file_name): Likewise.
4910 (command_line_input): Adjust.
4911 * cli/cli-script.c (script_from_file): Adjust.
4912
98814c6c
TT
49132019-02-19 Tom Tromey <tromey@adacore.com>
4914
4915 * ravenscar-thread.c
4916 (ravenscar_thread_target::update_thread_list): Don't call
4917 ada_build_task_list.
4918 * ada-lang.h (ada_build_task_list): Don't declare.
4919 * ada-tasks.c (struct ada_tasks_inferior_data)
4920 <task_list_valid_p>: Now bool.
4921 (read_known_tasks, ada_task_list_changed)
4922 (ada_tasks_invalidate_inferior_data): Update.
4923 (read_known_tasks_array): Return bool.
4924 (read_known_tasks_list): Likewise.
4925 (read_known_tasks): Return void.
4926 (ada_build_task_list): Now static.
4927
70cd633e
AB
49282019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4929
4930 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4931 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4932
040b3e95
PW
49332019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4934
4935 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4936 variant for ada_tasks_pspace_data_handle and
4937 ada_tasks_inferior_data_handle.
4938 (ada_tasks_pspace_data_cleanup): New function.
4939 (ada_tasks_inferior_data_cleanup): New function.
4940
9409233b
TT
49412019-02-17 Tom Tromey <tom@tromey.com>
4942
4943 * macrotab.h (macro_source_fullname): Return a std::string.
4944 * macrotab.c (macro_include, check_for_redefinition)
4945 (macro_undef, macro_lookup_definition, foreach_macro)
4946 (foreach_macro_in_scope): Update.
4947 (macro_source_fullname): Return a std::string.
4948 * macrocmd.c (show_pp_source_pos): Update.
4949
6506371f
TT
49502019-02-17 Tom Tromey <tom@tromey.com>
4951
4952 * macrocmd.c (show_pp_source_pos): Style the file names.
4953
0c820d67
TT
49542019-02-17 Tom Tromey <tom@tromey.com>
4955
4956 PR tui/24197:
4957 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4958
a0087920
TT
49592019-02-17 Tom Tromey <tom@tromey.com>
4960
4961 * ada-lang.c (user_select_syms): Use filtered printing.
4962 * utils.c (wrap_style): New global.
4963 (desired_style): Remove.
4964 (emit_style_escape): Add stream parameter.
4965 (set_output_style, reset_terminal_style, prompt_for_continue):
4966 Update.
4967 (flush_wrap_buffer): Only flush gdb_stdout.
4968 (wrap_here): Set wrap_style.
4969 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4970 treat escape sequences as a character. Change when wrap buffer is
4971 flushed.
4972 (fputs_styled): Do not set the output style when the default is
4973 requested.
4974 * ui-style.h (struct ui_file_style) <is_default>: New method.
4975 * source.c (print_source_lines_base): Emit escape sequences in one
4976 piece.
4977
75ba10dc
JB
49782019-02-17 Joel Brobecker <brobecker@adacore.com>
4979
4980 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4981 integers and enumeration types.
4982
a2cd4f14
JB
49832019-02-17 Joel Brobecker <brobecker@adacore.com>
4984
4985 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4986 instead of lookup_symbol_in_language
4987 (do_exact_match): New function.
4988 (ada_get_symbol_name_matcher): Return do_exact_match when
4989 doing a verbatim match.
4990
485b851b
TT
49912019-02-15 Tom Tromey <tromey@adacore.com>
4992
4993 * ravenscar-thread.c (ravenscar_thread_target::resume)
4994 (ravenscar_thread_target::wait): Special case wildcard requests.
4995
0b790b1e
TT
49962019-02-15 Tom Tromey <tromey@adacore.com>
4997
4998 * ravenscar-thread.c (base_ptid): Remove.
4999 (struct ravenscar_thread_target) <close>: New method.
5000 <m_base_ptid>: New member.
5001 <update_inferior_ptid, active_task, task_is_currently_active,
5002 runtime_initialized>: Declare methods.
5003 <ravenscar_thread_target>: Add constructor.
5004 (ravenscar_thread_target::task_is_currently_active)
5005 (ravenscar_thread_target::update_inferior_ptid)
5006 (ravenscar_runtime_initialized): Rename. Now methods.
5007 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5008 (ravenscar_thread_target::update_thread_list): Update.
5009 (ravenscar_thread_target::active_task): Now method.
5010 (ravenscar_thread_target::store_registers)
5011 (ravenscar_thread_target::prepare_to_store)
5012 (ravenscar_thread_target::prepare_to_store)
5013 (ravenscar_thread_target::mourn_inferior): Update.
5014 (ravenscar_inferior_created): Use "new" to create target.
5015 (ravenscar_thread_target::get_ada_task_ptid): Update.
5016 (_initialize_ravenscar): Don't initialize base_ptid.
5017 (ravenscar_ops): Remove global.
5018
dea57a62
TT
50192019-02-15 Tom Tromey <tromey@adacore.com>
5020
5021 * target.h (push_target): Declare new overload.
5022 * target.c (push_target): New overload, taking an rvalue reference.
5023 * remote.c (remote_target::open_1): Use push_target overload.
5024 * corelow.c (core_target_open): Use push_target overload.
5025
989f3c58
TT
50262019-02-15 Tom Tromey <tromey@adacore.com>
5027
5028 * ravenscar-thread.c (is_ravenscar_task)
5029 (ravenscar_task_is_currently_active): Return bool.
5030 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5031 (_initialize_ravenscar): Remove "(void)".
5032 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5033 Return bool.
5034
6cbcc006
TT
50352019-02-15 Tom Tromey <tromey@adacore.com>
5036
5037 * ravenscar-thread.c (ravenscar_runtime_initializer)
5038 (has_ravenscar_runtime, get_running_thread_id)
5039 (ravenscar_thread_target::resume): Fix indentation.
5040
7657f14d
TT
50412019-02-15 Tom Tromey <tromey@adacore.com>
5042
5043 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5044 from ravenscar_arch_ops.
5045 (sparc_ravenscar_ops::fetch_registers)
5046 (sparc_ravenscar_ops::store_registers): Now methods.
5047 (sparc_ravenscar_prepare_to_store): Remove.
5048 (sparc_ravenscar_ops): Redefine.
5049 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5050 methods and destructor. Remove members.
5051 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5052 (ravenscar_thread_target::store_registers)
5053 (ravenscar_thread_target::prepare_to_store): Update.
5054 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5055 Remove.
5056 (struct ppc_ravenscar_powerpc_ops): Derive from
5057 ravenscar_arch_ops.
5058 (ppc_ravenscar_powerpc_ops::fetch_registers)
5059 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5060 (ppc_ravenscar_powerpc_ops): Redefine.
5061 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5062 (ppc_ravenscar_e500_ops::fetch_registers)
5063 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5064 (ppc_ravenscar_e500_ops): Redefine.
5065 * aarch64-ravenscar-thread.c
5066 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5067 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5068 (aarch64_ravenscar_fetch_registers)
5069 (aarch64_ravenscar_store_registers): Now methods.
5070 (aarch64_ravenscar_ops): Redefine.
5071
5b6ea500
TT
50722019-02-15 Tom Tromey <tromey@adacore.com>
5073
5074 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5075 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5076 (ravenscar_thread_target::stopped_by_watchpoint)
5077 (ravenscar_thread_target::stopped_data_address)
5078 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5079
e397fd39
TT
50802019-02-15 Tom Tromey <tromey@adacore.com>
5081
5082 * ravenscar-thread.c: Fix some typos.
5083
cc12f4a8
TT
50842019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5085 Tom Tromey <tromey@adacore.com>
5086
5087 * ada-lang.c (ada_exception_sal): Change addr_string to a
5088 std::string.
5089 (create_ada_exception_catchpoint): Update.
5090
5f486660
TT
50912019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5092 Tom Tromey <tromey@adacore.com>
5093
5094 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5095 (bp_location_ops): Remove.
5096 (base_breakpoint_allocate_location): Update.
5097 (free_bp_location): Update.
5098 * ada-lang.c (class ada_catchpoint_location)
5099 <ada_catchpoint_location>: Remove ops parameter.
5100 (ada_catchpoint_location_dtor): Remove.
5101 (ada_catchpoint_location_ops): Remove.
5102 (allocate_location_exception): Update.
5103 * breakpoint.h (struct bp_location_ops): Remove.
5104 (class bp_location) <bp_location>: Remove bp_location_ops
5105 parameter.
5106 <~bp_location>: Add destructor.
5107 <ops>: Remove.
5108
b671c7fb
TS
51092019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5110 Pedro Alves <palves@redhat.com>
5111
5112 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5113 'PATH_MAX'.
5114
8071c5ce
DM
51152019-02-14 David Michael <fedora.dm0@gmail.com>
5116 Samuel Thibault <samuel.thibault@gnu.org>
5117 Thomas Schwinge <thomas@codesourcery.com>
5118
5119 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5120 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5121
b1041ae0
TS
51222019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5123
924514e1
TS
5124 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5125 (check_empty): Use "const char *".
5126
c29ee8d4
TS
5127 * gnu-nat.c (gnu_nat_target::detach): Instead of
5128 'detach_inferior (pid)' call
5129 'detach_inferior (find_inferior_pid (pid))'.
5130
6c6ef69f
TS
5131 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5132 'nat/fork-inferior.o'.
5133 * gnu-nat.c: #include "nat/fork-inferior.h".
5134
2d0a338c
TS
5135 * gnu-nat.c (gnu_nat_target::detach): Instead of
5136 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5137 * gnu-nat.h: #include "inf-child.h".
5138 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5139 'i386_gnu_nat_target::fetch_registers'.
5140 (gnu_store_registers): Rename/move to
5141 'i386_gnu_nat_target::store_registers'.
5142
cabb5f06
TS
5143 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5144 * gnu-nat.h (mach_thread_info): New function.
5145 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5146
b1041ae0
TS
5147 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5148
2988d01e
KF
51492019-02-14 Frederic Konrad <konrad@adacore.com>
5150
5151 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5152
c559d709
JB
51532019-02-14 Joel Brobecker <brobecker@adacore.com>
5154
5155 * windows-nat.c (windows_add_thread): Add new parameter
5156 "main_thread_p" with default value set to false. Update
5157 function documentation as well as all callers.
5158 (windows_delete_thread): Likewise.
5159 (fake_create_process): Update call to windows_add_thread.
5160 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5161 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5162 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5163 call to windows_delete_thread.
5164
007024cc
SM
51652019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5166
5167 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5168
f62318e9
JB
51692019-02-12 John Baldwin <jhb@FreeBSD.org>
5170
5171 * symfile.c (find_separate_debug_file): Use canonical path of
5172 sysroot with child_path instead of gdb_sysroot if it is valid.
5173
cd4b7848
JB
51742019-02-12 John Baldwin <jhb@FreeBSD.org>
5175
5176 * symfile.c (find_separate_debug_file): Use child_path to
5177 determine if an object file is under a sysroot.
5178
efac4bfe
JB
51792019-02-12 John Baldwin <jhb@FreeBSD.org>
5180
5181 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5182 unittests/child-path-selftests.c.
5183 * common/pathstuff.c (child_path): New function.
5184 * common/pathstuff.h (child_path): New prototype.
5185 * unittests/child-path-selftests.c: New file.
5186
402d2bfe
JB
51872019-02-12 John Baldwin <jhb@FreeBSD.org>
5188
5189 * symfile.c (find_separate_debug_file): Look for separate debug
5190 files in debug directories under the sysroot.
5191
1ed9f74e
PW
51922019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5193
5194 * symtab.h (struct minimal_symbol data_p): New const method.
5195 (struct minimal_symbol text_p): Likewise.
5196 * symtab.c (output_source_filename): Use file name style
5197 to print file name.
5198 (print_symbol_info): Likewise.
5199 (print_msymbol_info): Use address style to print addresses.
5200 Use function name style to print executable text symbols.
5201 (expand_symtab_containing_pc): Use data_p.
5202 (find_pc_sect_compunit_symtab): Likewise.
5203
2636d81d
PW
52042019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5205
5206 * breakpoint.c (describe_other_breakpoints): Use address style
5207 to print addresses.
5208 (say_where): Likewise.
5209
ac8c53cc
PW
52102019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5211
5212 * ada-typeprint.c (print_func_type): Print function name
5213 style to print function name.
5214 * c-typeprint.c (c_print_type_1): Likewise.
5215
ea638c43
AH
52162019-02-11 Alan Hayward <alan.hayward@arm.com>
5217
5218 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5219 for execve.
5220
ab759ca8
PW
52212019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5222
5223 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5224 type_stack.
5225
aff29d1c
JB
52262019-02-10 Joel Brobecker <brobecker@adacore.com>
5227
5228 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5229 TYPE_CODE_REF types.
5230
617126bc
JW
52312019-02-08 Jim Wilson <jimw@sifive.com>
5232
5233 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5234 (riscv_linux_fregset): New.
5235 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5236
46e3ed7f
TT
52372019-02-07 Tom Tromey <tom@tromey.com>
5238
5239 * thread.c (thread_cancel_execution_command): Update.
5240 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5241 methods.
5242 (struct thread_fsm_ops): Remove.
5243 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5244 (thread_fsm_should_stop, thread_fsm_return_value)
5245 (thread_fsm_set_finished, thread_fsm_finished_p)
5246 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5247 Don't declare.
5248 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5249 * infrun.c (clear_proceed_status_thread)
5250 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5251 (print_stop_event): Update.
5252 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5253 Add constructor.
5254 (step_command_fsm_ops): Remove.
5255 (new_step_command_fsm): Remove.
5256 (step_1): Update.
5257 (step_command_fsm::should_stop): Rename from
5258 step_command_fsm_should_stop.
5259 (step_command_fsm::clean_up): Rename from
5260 step_command_fsm_clean_up.
5261 (step_command_fsm::do_async_reply_reason): Rename from
5262 step_command_fsm_async_reply_reason.
5263 (struct until_next_fsm): Inherit from thread_fsm. Add
5264 constructor.
5265 (until_next_fsm_ops): Remove.
5266 (new_until_next_fsm): Remove.
5267 (until_next_fsm::should_stop): Rename from
5268 until_next_fsm_should_stop.
5269 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5270 (until_next_fsm::do_async_reply_reason): Rename from
5271 until_next_fsm_async_reply_reason.
5272 (struct finish_command_fsm): Inherit from thread_fsm. Add
5273 constructor. Change type of breakpoint.
5274 (finish_command_fsm_ops): Remove.
5275 (new_finish_command_fsm): Remove.
5276 (finish_command_fsm::should_stop): Rename from
5277 finish_command_fsm_should_stop.
5278 (finish_command_fsm::clean_up): Rename from
5279 finish_command_fsm_clean_up.
5280 (finish_command_fsm::return_value): Rename from
5281 finish_command_fsm_return_value.
5282 (finish_command_fsm::do_async_reply_reason): Rename from
5283 finish_command_fsm_async_reply_reason.
5284 (finish_command): Update.
5285 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5286 Add constructor.
5287 (call_thread_fsm_ops): Remove.
5288 (call_thread_fsm::call_thread_fsm): Rename from
5289 new_call_thread_fsm.
5290 (call_thread_fsm::should_stop): Rename from
5291 call_thread_fsm_should_stop.
5292 (call_thread_fsm::should_notify_stop): Rename from
5293 call_thread_fsm_should_notify_stop.
5294 (run_inferior_call, call_function_by_hand_dummy): Update.
5295 * cli/cli-interp.c (should_print_stop_to_console): Update.
5296 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5297 Add constructor. Change type of location_breakpoint,
5298 caller_breakpoint.
5299 (until_break_fsm_ops): Remove.
5300 (new_until_break_fsm): Remove.
5301 (until_break_fsm::should_stop): Rename from
5302 until_break_fsm_should_stop.
5303 (until_break_fsm::clean_up): Rename from
5304 until_break_fsm_clean_up.
5305 (until_break_fsm::do_async_reply_reason): Rename from
5306 until_break_fsm_async_reply_reason.
5307 (until_break_command): Update.
5308 * thread-fsm.c: Remove.
5309 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5310
1a5c2598
TT
53112019-02-07 Tom Tromey <tom@tromey.com>
5312
5313 * yy-remap.h: Add include guard.
5314 * xtensa-tdep.h: Add include guard.
5315 * xcoffread.h: Rename include guard.
5316 * varobj-iter.h: Add include guard.
5317 * tui/tui.h: Rename include guard.
5318 * tui/tui-winsource.h: Rename include guard.
5319 * tui/tui-wingeneral.h: Rename include guard.
5320 * tui/tui-windata.h: Rename include guard.
5321 * tui/tui-win.h: Rename include guard.
5322 * tui/tui-stack.h: Rename include guard.
5323 * tui/tui-source.h: Rename include guard.
5324 * tui/tui-regs.h: Rename include guard.
5325 * tui/tui-out.h: Rename include guard.
5326 * tui/tui-layout.h: Rename include guard.
5327 * tui/tui-io.h: Rename include guard.
5328 * tui/tui-hooks.h: Rename include guard.
5329 * tui/tui-file.h: Rename include guard.
5330 * tui/tui-disasm.h: Rename include guard.
5331 * tui/tui-data.h: Rename include guard.
5332 * tui/tui-command.h: Rename include guard.
5333 * tic6x-tdep.h: Add include guard.
5334 * target/waitstatus.h: Rename include guard.
5335 * target/wait.h: Rename include guard.
5336 * target/target.h: Rename include guard.
5337 * target/resume.h: Rename include guard.
5338 * target-float.h: Rename include guard.
5339 * stabsread.h: Add include guard.
5340 * rs6000-tdep.h: Add include guard.
5341 * riscv-fbsd-tdep.h: Add include guard.
5342 * regformats/regdef.h: Rename include guard.
5343 * record.h: Rename include guard.
5344 * python/python.h: Rename include guard.
5345 * python/python-internal.h: Rename include guard.
5346 * python/py-stopevent.h: Rename include guard.
5347 * python/py-ref.h: Rename include guard.
5348 * python/py-record.h: Rename include guard.
5349 * python/py-record-full.h: Rename include guard.
5350 * python/py-record-btrace.h: Rename include guard.
5351 * python/py-instruction.h: Rename include guard.
5352 * python/py-events.h: Rename include guard.
5353 * python/py-event.h: Rename include guard.
5354 * procfs.h: Add include guard.
5355 * proc-utils.h: Add include guard.
5356 * p-lang.h: Add include guard.
5357 * or1k-tdep.h: Rename include guard.
5358 * observable.h: Rename include guard.
5359 * nto-tdep.h: Rename include guard.
5360 * nat/x86-linux.h: Rename include guard.
5361 * nat/x86-linux-dregs.h: Rename include guard.
5362 * nat/x86-gcc-cpuid.h: Add include guard.
5363 * nat/x86-dregs.h: Rename include guard.
5364 * nat/x86-cpuid.h: Rename include guard.
5365 * nat/ppc-linux.h: Rename include guard.
5366 * nat/mips-linux-watch.h: Rename include guard.
5367 * nat/linux-waitpid.h: Rename include guard.
5368 * nat/linux-ptrace.h: Rename include guard.
5369 * nat/linux-procfs.h: Rename include guard.
5370 * nat/linux-osdata.h: Rename include guard.
5371 * nat/linux-nat.h: Rename include guard.
5372 * nat/linux-namespaces.h: Rename include guard.
5373 * nat/linux-btrace.h: Rename include guard.
5374 * nat/glibc_thread_db.h: Rename include guard.
5375 * nat/gdb_thread_db.h: Rename include guard.
5376 * nat/gdb_ptrace.h: Rename include guard.
5377 * nat/fork-inferior.h: Rename include guard.
5378 * nat/amd64-linux-siginfo.h: Rename include guard.
5379 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5380 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5381 * nat/aarch64-linux.h: Rename include guard.
5382 * nat/aarch64-linux-hw-point.h: Rename include guard.
5383 * mn10300-tdep.h: Add include guard.
5384 * mips-linux-tdep.h: Add include guard.
5385 * mi/mi-parse.h: Rename include guard.
5386 * mi/mi-out.h: Rename include guard.
5387 * mi/mi-main.h: Rename include guard.
5388 * mi/mi-interp.h: Rename include guard.
5389 * mi/mi-getopt.h: Rename include guard.
5390 * mi/mi-console.h: Rename include guard.
5391 * mi/mi-common.h: Rename include guard.
5392 * mi/mi-cmds.h: Rename include guard.
5393 * mi/mi-cmd-break.h: Rename include guard.
5394 * m2-lang.h: Add include guard.
5395 * location.h: Rename include guard.
5396 * linux-record.h: Rename include guard.
5397 * linux-nat.h: Add include guard.
5398 * linux-fork.h: Add include guard.
5399 * i386-darwin-tdep.h: Rename include guard.
5400 * hppa-linux-offsets.h: Add include guard.
5401 * guile/guile.h: Rename include guard.
5402 * guile/guile-internal.h: Rename include guard.
5403 * gnu-nat.h: Rename include guard.
5404 * gdb-stabs.h: Rename include guard.
5405 * frv-tdep.h: Add include guard.
5406 * f-lang.h: Add include guard.
5407 * event-loop.h: Add include guard.
5408 * darwin-nat.h: Rename include guard.
5409 * cp-abi.h: Rename include guard.
5410 * config/sparc/nm-sol2.h: Rename include guard.
5411 * config/nm-nto.h: Rename include guard.
5412 * config/nm-linux.h: Add include guard.
5413 * config/i386/nm-i386gnu.h: Rename include guard.
5414 * config/djgpp/nl_types.h: Rename include guard.
5415 * config/djgpp/langinfo.h: Rename include guard.
5416 * compile/gcc-cp-plugin.h: Add include guard.
5417 * compile/gcc-c-plugin.h: Add include guard.
5418 * compile/compile.h: Rename include guard.
5419 * compile/compile-object-run.h: Rename include guard.
5420 * compile/compile-object-load.h: Rename include guard.
5421 * compile/compile-internal.h: Rename include guard.
5422 * compile/compile-cplus.h: Rename include guard.
5423 * compile/compile-c.h: Rename include guard.
5424 * common/xml-utils.h: Rename include guard.
5425 * common/x86-xstate.h: Rename include guard.
5426 * common/version.h: Rename include guard.
5427 * common/vec.h: Rename include guard.
5428 * common/tdesc.h: Rename include guard.
5429 * common/selftest.h: Rename include guard.
5430 * common/scoped_restore.h: Rename include guard.
5431 * common/scoped_mmap.h: Rename include guard.
5432 * common/scoped_fd.h: Rename include guard.
5433 * common/safe-iterator.h: Rename include guard.
5434 * common/run-time-clock.h: Rename include guard.
5435 * common/refcounted-object.h: Rename include guard.
5436 * common/queue.h: Rename include guard.
5437 * common/ptid.h: Rename include guard.
5438 * common/print-utils.h: Rename include guard.
5439 * common/preprocessor.h: Rename include guard.
5440 * common/pathstuff.h: Rename include guard.
5441 * common/observable.h: Rename include guard.
5442 * common/netstuff.h: Rename include guard.
5443 * common/job-control.h: Rename include guard.
5444 * common/host-defs.h: Rename include guard.
5445 * common/gdb_wait.h: Rename include guard.
5446 * common/gdb_vecs.h: Rename include guard.
5447 * common/gdb_unlinker.h: Rename include guard.
5448 * common/gdb_unique_ptr.h: Rename include guard.
5449 * common/gdb_tilde_expand.h: Rename include guard.
5450 * common/gdb_sys_time.h: Rename include guard.
5451 * common/gdb_string_view.h: Rename include guard.
5452 * common/gdb_splay_tree.h: Rename include guard.
5453 * common/gdb_setjmp.h: Rename include guard.
5454 * common/gdb_ref_ptr.h: Rename include guard.
5455 * common/gdb_optional.h: Rename include guard.
5456 * common/gdb_locale.h: Rename include guard.
5457 * common/gdb_assert.h: Rename include guard.
5458 * common/filtered-iterator.h: Rename include guard.
5459 * common/filestuff.h: Rename include guard.
5460 * common/fileio.h: Rename include guard.
5461 * common/environ.h: Rename include guard.
5462 * common/common-utils.h: Rename include guard.
5463 * common/common-types.h: Rename include guard.
5464 * common/common-regcache.h: Rename include guard.
5465 * common/common-inferior.h: Rename include guard.
5466 * common/common-gdbthread.h: Rename include guard.
5467 * common/common-exceptions.h: Rename include guard.
5468 * common/common-defs.h: Rename include guard.
5469 * common/common-debug.h: Rename include guard.
5470 * common/cleanups.h: Rename include guard.
5471 * common/buffer.h: Rename include guard.
5472 * common/btrace-common.h: Rename include guard.
5473 * common/break-common.h: Rename include guard.
5474 * cli/cli-utils.h: Rename include guard.
5475 * cli/cli-style.h: Rename include guard.
5476 * cli/cli-setshow.h: Rename include guard.
5477 * cli/cli-script.h: Rename include guard.
5478 * cli/cli-interp.h: Rename include guard.
5479 * cli/cli-decode.h: Rename include guard.
5480 * cli/cli-cmds.h: Rename include guard.
5481 * charset-list.h: Add include guard.
5482 * buildsym-legacy.h: Rename include guard.
5483 * bfin-tdep.h: Add include guard.
5484 * ax.h: Rename include guard.
5485 * arm-linux-tdep.h: Add include guard.
5486 * arm-fbsd-tdep.h: Add include guard.
5487 * arch/xtensa.h: Rename include guard.
5488 * arch/tic6x.h: Add include guard.
5489 * arch/i386.h: Add include guard.
5490 * arch/arm.h: Rename include guard.
5491 * arch/arm-linux.h: Rename include guard.
5492 * arch/arm-get-next-pcs.h: Rename include guard.
5493 * arch/amd64.h: Add include guard.
5494 * arch/aarch64-insn.h: Rename include guard.
5495 * arch-utils.h: Rename include guard.
5496 * annotate.h: Add include guard.
5497 * amd64-darwin-tdep.h: Rename include guard.
5498 * aarch64-linux-tdep.h: Add include guard.
5499 * aarch64-fbsd-tdep.h: Add include guard.
5500 * aarch32-linux-nat.h: Add include guard.
5501
ab9268d2
PW
55022019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5503
5504 * macrotab.c (macro_define_internal): New function that
5505 factorizes macro_define_object_internal and macro_define_function
5506 code.
5507 (macro_define_object_internal): Use macro_define_internal.
5508 (macro_define_function): Likewise.
5509
bb0da2b4
PW
55102019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5511
5512 * macrocmd.c (extract_identifier): Return
5513 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5514 callers.
5515
424eb552
JB
55162019-02-06 John Baldwin <jhb@FreeBSD.org>
5517
5518 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5519
1688cb29
TT
55202019-02-05 Tom Tromey <tom@tromey.com>
5521
5522 * target.c (target_stack::unpush): Move assertion earlier.
5523
b5eba2d8
TT
55242019-01-30 Tom Tromey <tom@tromey.com>
5525
5526 PR python/23615:
5527 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5528 (gdbpy_parse_and_eval): Likewise.
5529 * python/python-internal.h (gdbpy_allow_threads): New class.
5530
7054e2ff
JB
55312019-01-28 John Baldwin <jhb@FreeBSD.org>
5532
5533 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5534 (aarch64_fbsd_fpregmap): Move earlier.
5535 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5536 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5537 instead of individual calls to trad_frame_set_reg_addr.
5538 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5539 earlier.
5540 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5541 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5542 instead of individual calls to trad_frame_set_reg_addr.
5543
36c25ffa
AH
55442019-01-28 Alan Hayward <alan.hayward@arm.com>
5545
5546 * CONTRIBUTE: Replace contribution list with wiki link.
5547
a0707f3c
TT
55482019-01-25 Tom Tromey <tom@tromey.com>
5549
5550 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5551
0747795c
TT
55522019-01-25 Tom Tromey <tom@tromey.com>
5553
5554 * xtensa-linux-nat.c: Fix common/ includes.
5555 * xml-support.h: Fix common/ includes.
5556 * xml-support.c: Fix common/ includes.
5557 * x86-linux-nat.c: Fix common/ includes.
5558 * windows-nat.c: Fix common/ includes.
5559 * varobj.h: Fix common/ includes.
5560 * varobj.c: Fix common/ includes.
5561 * value.c: Fix common/ includes.
5562 * valops.c: Fix common/ includes.
5563 * utils.c: Fix common/ includes.
5564 * unittests/xml-utils-selftests.c: Fix common/ includes.
5565 * unittests/utils-selftests.c: Fix common/ includes.
5566 * unittests/unpack-selftests.c: Fix common/ includes.
5567 * unittests/tracepoint-selftests.c: Fix common/ includes.
5568 * unittests/style-selftests.c: Fix common/ includes.
5569 * unittests/string_view-selftests.c: Fix common/ includes.
5570 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5571 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5572 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5573 * unittests/rsp-low-selftests.c: Fix common/ includes.
5574 * unittests/parse-connection-spec-selftests.c: Fix common/
5575 includes.
5576 * unittests/optional-selftests.c: Fix common/ includes.
5577 * unittests/offset-type-selftests.c: Fix common/ includes.
5578 * unittests/observable-selftests.c: Fix common/ includes.
5579 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5580 * unittests/memrange-selftests.c: Fix common/ includes.
5581 * unittests/memory-map-selftests.c: Fix common/ includes.
5582 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5583 * unittests/function-view-selftests.c: Fix common/ includes.
5584 * unittests/environ-selftests.c: Fix common/ includes.
5585 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5586 * unittests/common-utils-selftests.c: Fix common/ includes.
5587 * unittests/cli-utils-selftests.c: Fix common/ includes.
5588 * unittests/array-view-selftests.c: Fix common/ includes.
5589 * ui-file.c: Fix common/ includes.
5590 * tui/tui-io.c: Fix common/ includes.
5591 * tracepoint.h: Fix common/ includes.
5592 * tracepoint.c: Fix common/ includes.
5593 * tracefile-tfile.c: Fix common/ includes.
5594 * top.h: Fix common/ includes.
5595 * top.c: Fix common/ includes.
5596 * thread.c: Fix common/ includes.
5597 * target/waitstatus.h: Fix common/ includes.
5598 * target/waitstatus.c: Fix common/ includes.
5599 * target.h: Fix common/ includes.
5600 * target.c: Fix common/ includes.
5601 * target-memory.c: Fix common/ includes.
5602 * target-descriptions.c: Fix common/ includes.
5603 * symtab.h: Fix common/ includes.
5604 * symfile.c: Fix common/ includes.
5605 * stap-probe.c: Fix common/ includes.
5606 * spu-linux-nat.c: Fix common/ includes.
5607 * sparc-nat.c: Fix common/ includes.
5608 * source.c: Fix common/ includes.
5609 * solib.c: Fix common/ includes.
5610 * solib-target.c: Fix common/ includes.
5611 * ser-unix.c: Fix common/ includes.
5612 * ser-tcp.c: Fix common/ includes.
5613 * ser-pipe.c: Fix common/ includes.
5614 * ser-base.c: Fix common/ includes.
5615 * selftest-arch.c: Fix common/ includes.
5616 * s12z-tdep.c: Fix common/ includes.
5617 * rust-exp.y: Fix common/ includes.
5618 * rs6000-aix-tdep.c: Fix common/ includes.
5619 * riscv-tdep.c: Fix common/ includes.
5620 * remote.c: Fix common/ includes.
5621 * remote-notif.h: Fix common/ includes.
5622 * remote-fileio.h: Fix common/ includes.
5623 * remote-fileio.c: Fix common/ includes.
5624 * regcache.h: Fix common/ includes.
5625 * regcache.c: Fix common/ includes.
5626 * record-btrace.c: Fix common/ includes.
5627 * python/python.c: Fix common/ includes.
5628 * python/py-type.c: Fix common/ includes.
5629 * python/py-inferior.c: Fix common/ includes.
5630 * progspace.h: Fix common/ includes.
5631 * producer.c: Fix common/ includes.
5632 * procfs.c: Fix common/ includes.
5633 * proc-api.c: Fix common/ includes.
5634 * printcmd.c: Fix common/ includes.
5635 * ppc-linux-nat.c: Fix common/ includes.
5636 * parser-defs.h: Fix common/ includes.
5637 * osdata.c: Fix common/ includes.
5638 * obsd-nat.c: Fix common/ includes.
5639 * nat/x86-linux.c: Fix common/ includes.
5640 * nat/x86-linux-dregs.c: Fix common/ includes.
5641 * nat/x86-dregs.h: Fix common/ includes.
5642 * nat/x86-dregs.c: Fix common/ includes.
5643 * nat/ppc-linux.c: Fix common/ includes.
5644 * nat/mips-linux-watch.h: Fix common/ includes.
5645 * nat/mips-linux-watch.c: Fix common/ includes.
5646 * nat/linux-waitpid.c: Fix common/ includes.
5647 * nat/linux-ptrace.h: Fix common/ includes.
5648 * nat/linux-ptrace.c: Fix common/ includes.
5649 * nat/linux-procfs.c: Fix common/ includes.
5650 * nat/linux-personality.c: Fix common/ includes.
5651 * nat/linux-osdata.c: Fix common/ includes.
5652 * nat/linux-namespaces.c: Fix common/ includes.
5653 * nat/linux-btrace.h: Fix common/ includes.
5654 * nat/linux-btrace.c: Fix common/ includes.
5655 * nat/fork-inferior.c: Fix common/ includes.
5656 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5657 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5658 * nat/aarch64-linux.c: Fix common/ includes.
5659 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5660 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5661 * namespace.h: Fix common/ includes.
5662 * mips-linux-tdep.c: Fix common/ includes.
5663 * minsyms.c: Fix common/ includes.
5664 * mi/mi-parse.h: Fix common/ includes.
5665 * mi/mi-main.c: Fix common/ includes.
5666 * mi/mi-cmd-env.c: Fix common/ includes.
5667 * memrange.h: Fix common/ includes.
5668 * memattr.c: Fix common/ includes.
5669 * maint.h: Fix common/ includes.
5670 * maint.c: Fix common/ includes.
5671 * main.c: Fix common/ includes.
5672 * machoread.c: Fix common/ includes.
5673 * location.c: Fix common/ includes.
5674 * linux-thread-db.c: Fix common/ includes.
5675 * linux-nat.c: Fix common/ includes.
5676 * linux-fork.c: Fix common/ includes.
5677 * inline-frame.c: Fix common/ includes.
5678 * infrun.c: Fix common/ includes.
5679 * inflow.c: Fix common/ includes.
5680 * inferior.h: Fix common/ includes.
5681 * inferior.c: Fix common/ includes.
5682 * infcmd.c: Fix common/ includes.
5683 * inf-ptrace.c: Fix common/ includes.
5684 * inf-child.c: Fix common/ includes.
5685 * ia64-linux-nat.c: Fix common/ includes.
5686 * i387-tdep.c: Fix common/ includes.
5687 * i386-tdep.c: Fix common/ includes.
5688 * i386-linux-tdep.c: Fix common/ includes.
5689 * i386-linux-nat.c: Fix common/ includes.
5690 * i386-go32-tdep.c: Fix common/ includes.
5691 * i386-fbsd-tdep.c: Fix common/ includes.
5692 * i386-fbsd-nat.c: Fix common/ includes.
5693 * guile/scm-type.c: Fix common/ includes.
5694 * guile/guile.c: Fix common/ includes.
5695 * go32-nat.c: Fix common/ includes.
5696 * gnu-nat.c: Fix common/ includes.
5697 * gdbthread.h: Fix common/ includes.
5698 * gdbarch-selftests.c: Fix common/ includes.
5699 * gdb_usleep.c: Fix common/ includes.
5700 * gdb_select.h: Fix common/ includes.
5701 * gdb_bfd.c: Fix common/ includes.
5702 * gcore.c: Fix common/ includes.
5703 * fork-child.c: Fix common/ includes.
5704 * findvar.c: Fix common/ includes.
5705 * fbsd-nat.c: Fix common/ includes.
5706 * event-top.c: Fix common/ includes.
5707 * event-loop.c: Fix common/ includes.
5708 * dwarf2read.c: Fix common/ includes.
5709 * dwarf2loc.c: Fix common/ includes.
5710 * dwarf2-frame.c: Fix common/ includes.
5711 * dwarf-index-cache.c: Fix common/ includes.
5712 * dtrace-probe.c: Fix common/ includes.
5713 * disasm-selftests.c: Fix common/ includes.
5714 * defs.h: Fix common/ includes.
5715 * csky-tdep.c: Fix common/ includes.
5716 * cp-valprint.c: Fix common/ includes.
5717 * cp-support.h: Fix common/ includes.
5718 * cp-support.c: Fix common/ includes.
5719 * corelow.c: Fix common/ includes.
5720 * completer.h: Fix common/ includes.
5721 * completer.c: Fix common/ includes.
5722 * compile/compile.c: Fix common/ includes.
5723 * compile/compile-loc2c.c: Fix common/ includes.
5724 * compile/compile-cplus-types.c: Fix common/ includes.
5725 * compile/compile-cplus-symbols.c: Fix common/ includes.
5726 * command.h: Fix common/ includes.
5727 * cli/cli-dump.c: Fix common/ includes.
5728 * cli/cli-cmds.c: Fix common/ includes.
5729 * charset.c: Fix common/ includes.
5730 * build-id.c: Fix common/ includes.
5731 * btrace.h: Fix common/ includes.
5732 * btrace.c: Fix common/ includes.
5733 * breakpoint.h: Fix common/ includes.
5734 * breakpoint.c: Fix common/ includes.
5735 * ax.h:
5736 (enum agent_op): Fix common/ includes.
5737 * ax-general.c (struct aop_map): Fix common/ includes.
5738 * ax-gdb.c: Fix common/ includes.
5739 * auxv.c: Fix common/ includes.
5740 * auto-load.c: Fix common/ includes.
5741 * arm-tdep.c: Fix common/ includes.
5742 * arch/riscv.c: Fix common/ includes.
5743 * arch/ppc-linux-common.c: Fix common/ includes.
5744 * arch/i386.c: Fix common/ includes.
5745 * arch/arm.c: Fix common/ includes.
5746 * arch/arm-linux.c: Fix common/ includes.
5747 * arch/arm-get-next-pcs.c: Fix common/ includes.
5748 * arch/amd64.c: Fix common/ includes.
5749 * arch/aarch64.c: Fix common/ includes.
5750 * arch/aarch64-insn.c: Fix common/ includes.
5751 * arch-utils.c: Fix common/ includes.
5752 * amd64-windows-tdep.c: Fix common/ includes.
5753 * amd64-tdep.c: Fix common/ includes.
5754 * amd64-sol2-tdep.c: Fix common/ includes.
5755 * amd64-obsd-tdep.c: Fix common/ includes.
5756 * amd64-nbsd-tdep.c: Fix common/ includes.
5757 * amd64-linux-tdep.c: Fix common/ includes.
5758 * amd64-linux-nat.c: Fix common/ includes.
5759 * amd64-fbsd-tdep.c: Fix common/ includes.
5760 * amd64-fbsd-nat.c: Fix common/ includes.
5761 * amd64-dicos-tdep.c: Fix common/ includes.
5762 * amd64-darwin-tdep.c: Fix common/ includes.
5763 * agent.c: Fix common/ includes.
5764 * ada-lang.h: Fix common/ includes.
5765 * ada-lang.c: Fix common/ includes.
5766 * aarch64-tdep.c: Fix common/ includes.
5767
2f5c153e
TT
57682019-01-25 Tom Tromey <tom@tromey.com>
5769
5770 * common/create-version.sh: Use common/version.h.
5771
adc6a863
PA
57722019-01-24 Pedro Alves <palves@redhat.com>
5773
5774 * infrun.c (signal_stop, signal_print, signal_program)
5775 (signal_catch, signal_pass): Now arrays instead of pointers.
5776 (update_signals_program_target, do_target_resume)
5777 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5778 * linux-nat.c (linux_nat_target::pass_signals)
5779 (linux_nat_target::create_inferior, linux_nat_target::attach):
5780 Adjust.
5781 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5782 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5783 * procfs.c (procfs_target::pass_signals): Adjust.
5784 * record-full.c (record_full_target::resume): Adjust.
5785 * remote.c (remote_target::pass_signals)
5786 (remote_target::program_signals): Adjust.
5787 * target-debug.h (target_debug_print_signals): Now takes a
5788 gdb::array_view as parameter. Adjust.
5789 * target.h (target_ops) <pass_signals, program_signals>: Replace
5790 pointer and length parameters with gdb::array_view.
5791 (target_pass_signals, target_program_signals): Likewise.
5792 * target-delegates.c: Regenerate.
5793
3046d67a
PA
57942019-01-24 Pedro Alves <palves@redhat.com>
5795
5796 * common/forward-scope-exit.h
5797 (forward_scope_exit::forward_scope_exit): Pass arguments to
5798 m_bind_function directly, instead of creating a std::bind and
5799 copying that.
5800
353229bf
AH
58012019-01-24 Alan Hayward <alan.hayward@arm.com>
5802
5803 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5804 for static members.
5805 (pass_in_v_vfp_candidate): Likewise.
5806
311dc83a
TT
58072019-01-23 Tom Tromey <tom@tromey.com>
5808 Pedro Alves <palves@redhat.com>
5809
5810 * regcache.c (class regcache_invalidator): Remove.
5811 (regcache::raw_write): Use make_scope_exit.
5812
296bd123
TT
58132019-01-23 Tom Tromey <tom@tromey.com>
5814
5815 * ui-out.h (class ui_out_emit_type): Update comment.
5816
979a0d13
TT
58172019-01-23 Tom Tromey <tom@tromey.com>
5818
5819 * infrun.c (fetch_inferior_event): Update comment.
5820
d238133d
TT
58212019-01-23 Tom Tromey <tom@tromey.com>
5822 Pedro Alves <palves@redhat.com>
5823
5824 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5825 parameter.
5826 (fetch_inferior_event): Use SCOPE_EXIT.
5827
5828
9885e6bb
TT
58292019-01-23 Tom Tromey <tom@tromey.com>
5830 Pedro Alves <palves@redhat.com>
5831
5832 * infrun.c (disable_thread_events): Delete.
5833 (stop_all_threads): Use SCOPE_EXIT.
5834
286526c1
TT
58352019-01-23 Tom Tromey <tom@tromey.com>
5836 Pedro Alves <palves@redhat.com>
5837
5838 * symfile.c: Include forward-scope-exit.h.
5839 (clear_symtab_users_cleanup): Replace forward declaration with
5840 a FORWARD_SCOPE_EXIT.
5841 (syms_from_objfile_1): Use the forward_scope_exit and
5842 gdb::optional instead of cleanup_function.
5843 (reread_symbols): Use the forward_scope_exit instead of
5844 cleanup_function.
5845 (clear_symtab_users_cleanup): Remove function.
5846
1db93f14
TT
58472019-01-23 Tom Tromey <tom@tromey.com>
5848 Pedro Alves <palves@redhat.com>
5849
5850 * linux-nat.c: Include scope-exit.h.
5851 (cleanup_target_stop): Remove.
5852 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5853 SCOPE_EXIT.
5854
2cc83d1e
TT
58552019-01-23 Tom Tromey <tom@tromey.com>
5856 Pedro Alves <palves@redhat.com>
5857
5858 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5859 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5860
694c6bf5
TT
58612019-01-23 Tom Tromey <tom@tromey.com>
5862 Andrew Burgess <andrew.burgess@embecosm.com>
5863 Pedro Alves <palves@redhat.com>
5864
5865 * infrun.c (fetch_inferior_event): Use scope_exit.
5866 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5867 * top.c (execute_command): Use scope_exit.
5868 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5869 * utils.c (do_bpstat_clear_actions_cleanup)
5870 (make_bpstat_clear_actions_cleanup): Remove.
5871
4c41382a
TT
58722019-01-23 Tom Tromey <tom@tromey.com>
5873 Pedro Alves <palves@redhat.com>
5874
5875 * infrun.c: Include "common/scope-exit.h"
5876 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5877 (wait_for_inferior): Use SCOPE_EXIT.
5878 (fetch_inferior_event): Use scope_exit.
5879
89f8fb50
TT
58802019-01-23 Tom Tromey <tom@tromey.com>
5881 Pedro Alves <palves@redhat.com>
5882
5883 * breakpoint.c (create_breakpoint): Remove cleanup.
5884
5419bdae
TT
58852019-01-23 Tom Tromey <tom@tromey.com>
5886 Andrew Burgess <andrew.burgess@embecosm.com>
5887 Pedro Alves <palves@redhat.com>
5888
e587ef42
PA
58892019-01-23 Pedro Alves <palves@redhat.com>
5890
5891 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5892
77f0e74c
PA
58932019-01-23 Pedro Alves <palves@redhat.com>
5894 Andrew Burgess <andrew.burgess@embecosm.com>
5895
5896 * gdbthread.h: Include "common/forward-scope-exit.h".
5897 (scoped_finish_thread_state): Redefine custom class in terms of
5898 forward_scope_exit.
5899
5b9b3e53
PA
59002019-01-23 Pedro Alves <palves@redhat.com>
5901 Andrew Burgess <andrew.burgess@embecosm.com>
5902
5903 * common/forward-scope-exit.h: New file.
5904
54b65c9b
PA
59052019-01-23 Pedro Alves <palves@redhat.com>
5906 Andrew Burgess <andrew.burgess@embecosm.com>
5907 Tom Tromey <tom@tromey.com>
5908
5909 * common/scope-exit.h: New file.
5910
cf08fb29
PA
59112019-01-23 Pedro Alves <palves@redhat.com>
5912
5913 * common/preprocessor.h (ESC): Rename to ...
5914 (ESC_PARENS): ... this.
5915 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5916 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5917
ae73e2e2
TT
59182019-01-23 Tom Tromey <tom@tromey.com>
5919
5920 * language.h (class scoped_switch_to_sym_language_if_auto):
5921 Initialize m_lang in both cases.
5922
6594e122
AH
59232019-01-23 Alan Hayward <alan.hayward@arm.com>
5924
5925 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5926 with XCNEW.
5927
a7c9855d
TT
59282019-01-22 Tom Tromey <tom@tromey.com>
5929
5930 * corelow.c: Do not include sys/file.h.
5931
93cc1d53
TT
59322019-01-22 Tom Tromey <tom@tromey.com>
5933
5934 * tui/tui-wingeneral.h: Include gdb_curses.h.
5935
38561778
TT
59362019-01-22 Tom Tromey <tom@tromey.com>
5937
5938 * source-cache.h (class source_cache) <get_source_lines,
5939 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5940
37b3ab5b
TT
59412019-01-22 Tom Tromey <tom@tromey.com>
5942
5943 * remote-fileio.h (struct remote_target): Declare.
5944
3fabc016
TT
59452019-01-22 Tom Tromey <tom@tromey.com>
5946
5947 * python/py-arch.c: Do not include py-ref.h.
5948 * python/py-bpevent.c: Do not include py-ref.h.
5949 * python/py-cmd.c: Do not include py-ref.h.
5950 * python/py-continueevent.c: Do not include py-ref.h.
5951 * python/py-event.h: Do not include py-ref.h.
5952 * python/py-evtregistry.c: Do not include py-ref.h.
5953 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5954 * python/py-frame.c: Do not include py-ref.h.
5955 * python/py-framefilter.c: Do not include py-ref.h.
5956 * python/py-function.c: Do not include py-ref.h.
5957 * python/py-infevents.c: Do not include py-ref.h.
5958 * python/py-linetable.c: Do not include py-ref.h.
5959 * python/py-objfile.c: Do not include py-ref.h.
5960 * python/py-param.c: Do not include py-ref.h.
5961 * python/py-prettyprint.c: Do not include py-ref.h.
5962 * python/py-progspace.c: Do not include py-ref.h.
5963 * python/py-symbol.c: Do not include py-ref.h.
5964 * python/py-symtab.c: Do not include py-ref.h.
5965 * python/py-type.c: Do not include py-ref.h.
5966 * python/py-unwind.c: Do not include py-ref.h.
5967 * python/py-utils.c: Do not include py-ref.h.
5968 * python/py-value.c: Do not include py-ref.h.
5969 * python/py-varobj.c: Do not include py-ref.h.
5970 * python/py-xmethods.c: Do not include py-ref.h.
5971 * python/python.c: Do not include py-ref.h.
5972 * varobj.c: Do not include py-ref.h.
5973
6b4d7774
TT
59742019-01-22 Tom Tromey <tom@tromey.com>
5975
5976 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5977 keyword for bcache.
5978
7af7e9b5
TT
59792019-01-22 Tom Tromey <tom@tromey.com>
5980
5981 * compile/compile-cplus-types.c: Remove a comment by #include.
5982
951d1049
TT
59832019-01-22 Tom Tromey <tom@tromey.com>
5984
5985 * compile/gcc-c-plugin.h: Include compile-internal.h.
5986
d65d5705
TT
59872019-01-22 Tom Tromey <tom@tromey.com>
5988
5989 * stabsread.c (EXTERN): Do not define.
5990 (symnum, next_symbol_text_func, processing_gcc_compilation)
5991 (within_function, global_sym_chain, global_stabs)
5992 (previous_stab_code, this_object_header_files)
5993 (n_this_object_header_files)
5994 (n_allocated_this_object_header_files): Define.
5995 * stabsread.h (EXTERN): Never define. Use "extern".
5996
b6fb1ee5
PW
59972019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5998
5999 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6000 history_value.
6001
be6d4f74
TT
60022019-01-21 Tom Tromey <tom@tromey.com>
6003
6004 * ui-out.c: Fix includes.
6005 * tui/tui-source.c: Fix includes.
6006 * target.c: Fix includes.
6007 * remote.c: Fix includes.
6008 * regcache.c: Fix includes.
6009 * python/py-block.c: Fix includes.
6010 * printcmd.c: Fix includes.
6011 * or1k-tdep.c: Fix includes.
6012 * mi/mi-main.c: Fix includes.
6013 * m32r-tdep.c: Fix includes.
6014 * csky-tdep.c: Fix includes.
6015 * compile/compile-cplus-types.c: Fix includes.
6016 * cli/cli-interp.c: Fix includes.
6017
73021deb
AH
60182019-01-21 Alan Hayward <alan.hayward@arm.com>
6019
6020 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6021 for padding.
6022
7932255d
TT
60232019-01-16 Tom Tromey <tom@tromey.com>
6024
6025 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6026 earlier.
6027 (struct objfile) <msymbols_range>: Move from top level.
6028 <msymbols>: New method.
6029 (class objfile_msymbols): Remove.
6030 * symtab.c (default_collect_symbol_completion_matches_break_on):
6031 Update.
6032 * symmisc.c (dump_msymbols): Update.
6033 * stabsread.c (scan_file_globals): Update.
6034 * objc-lang.c (info_selectors_command, info_classes_command)
6035 (find_methods): Update.
6036 * minsyms.c (find_solib_trampoline_target): Update.
6037 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6038 * coffread.c (coff_symfile_read): Update.
6039 * ada-lang.c (ada_lookup_simple_minsym)
6040 (ada_collect_symbol_completion_matches): Update.
6041
604b1bfb
TT
60422019-01-16 Tom Tromey <tom@tromey.com>
6043
6044 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6045 type. Remove no-argument constructor.
6046 <iterator::operator++>: Simplify.
6047 <begin>: Update.
6048 <end>: Use minimal_symbol_count.
6049
f252c6d5
TT
60502019-01-16 Tom Tromey <tom@tromey.com>
6051
6052 * objfiles.h (struct objfile) <psymtabs>: New method.
6053 (class objfile_psymtabs): Remove.
6054 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6055 typedef.
6056 <range>: New method.
6057 (require_partial_symbols): Change return type.
6058 * psymtab.c (require_partial_symbols)
6059 (psym_expand_symtabs_matching): Update.
6060 * mdebugread.c (parse_partial_symbols): Update.
6061 * dbxread.c (dbx_end_psymtab): Update.
6062
b669c953
TT
60632019-01-15 Tom Tromey <tom@tromey.com>
6064
6065 * symtab.c (lookup_objfile_from_block)
6066 (lookup_symbol_in_objfile_symtabs)
6067 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6068 (find_line_symtab, info_sources_command)
6069 (default_collect_symbol_completion_matches_break_on)
6070 (make_source_files_completion_list): Update.
6071 * symmisc.c (print_objfile_statistics, dump_objfile)
6072 (maintenance_print_symbols, maintenance_info_symtabs)
6073 (maintenance_check_symtabs, maintenance_info_line_tables):
6074 Update.
6075 * source.c (select_source_symtab)
6076 (forget_cached_source_info_for_objfile): Update.
6077 * objfiles.h (class objfile_compunits): Remove.
6078 (struct objfile) <compunits_range>: New typedef.
6079 (compunits): New method.
6080 * objfiles.c (objfile_relocate1): Update.
6081 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6082 * maint.c (count_symtabs_and_blocks): Update.
6083 * linespec.c (iterate_over_all_matching_symtabs): Update.
6084 * cp-support.c (add_symbol_overload_list_qualified): Update.
6085 * coffread.c (coff_symtab_read): Update.
6086 * ada-lang.c (add_nonlocal_symbols)
6087 (ada_collect_symbol_completion_matches)
6088 (ada_add_global_exceptions): Update.
6089
7e955d83
TT
60902019-01-15 Tom Tromey <tom@tromey.com>
6091
6092 * progspace.h (program_space) <objfiles_safe_range>: New
6093 typedef.
6094 <objfiles_safe>: New method.
6095 * objfiles.h (class all_objfiles_safe): Remove.
6096 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6097 * jit.c (jit_inferior_exit_hook): Update.
6098
2030c079
TT
60992019-01-17 Tom Tromey <tom@tromey.com>
6100
6101 * progspace.h (program_space) <objfiles_range>: New typedef.
6102 <objfiles>: New method.
6103 <objfiles_head>: Rename from objfiles.
6104 (object_files): Update.
6105 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6106 * guile/scm-pretty-print.c
6107 (ppscm_find_pretty_printer_from_objfiles): Update.
6108 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6109 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6110 Update.
6111 * python/py-progspace.c (pspy_get_objfiles): Update.
6112 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6113 Update.
6114 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6115 (objfpy_lookup_objfile_by_build_id): Update.
6116 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6117 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6118 Update.
6119 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6120 (expand_symtab_containing_pc, lookup_objfile_from_block)
6121 (lookup_static_symbol, basic_lookup_transparent_type)
6122 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6123 (find_line_symtab, info_sources_command)
6124 (default_collect_symbol_completion_matches_break_on)
6125 (make_source_files_completion_list, find_main_name): Update.
6126 * symmisc.c (print_symbol_bcache_statistics)
6127 (print_objfile_statistics, maintenance_print_symbols)
6128 (maintenance_print_msymbols, maintenance_print_objfiles)
6129 (maintenance_info_symtabs, maintenance_check_symtabs)
6130 (maintenance_expand_symtabs, maintenance_info_line_tables):
6131 Update.
6132 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6133 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6134 (map_overlay_command, unmap_overlay_command)
6135 (simple_overlay_update, expand_symtabs_matching)
6136 (map_symbol_filenames): Update.
6137 * symfile-debug.c (set_debug_symfile): Update.
6138 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6139 Update.
6140 * source.c (select_source_symtab, forget_cached_source_info):
6141 Update.
6142 * solib.c (solib_read_symbols): Update.
6143 * solib-spu.c (append_ocl_sos): Update.
6144 * psymtab.c (maintenance_print_psymbols)
6145 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6146 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6147 * printcmd.c (info_symbol_command): Update.
6148 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6149 Update.
6150 * objfiles.h (class all_objfiles): Remove.
6151 * objfiles.c (have_partial_symbols, have_full_symbols)
6152 (have_minimal_symbols, qsort_cmp, update_section_map)
6153 (shared_objfile_contains_address_p)
6154 (default_iterate_over_objfiles_in_search_order): Update.
6155 * objc-lang.c (info_selectors_command, info_classes_command)
6156 (find_methods): Update.
6157 * minsyms.c (find_solib_trampoline_target): Update.
6158 * maint.c (maintenance_info_sections)
6159 (maintenance_translate_address, count_symtabs_and_blocks):
6160 Update.
6161 * main.c (captured_main_1): Update.
6162 * linux-thread-db.c (try_thread_db_load_from_pdir)
6163 (has_libpthread): Update.
6164 * linespec.c (iterate_over_all_matching_symtabs)
6165 (search_minsyms_for_name): Update.
6166 * jit.c (jit_find_objf_with_entry_addr): Update.
6167 * hppa-tdep.c (find_unwind_entry)
6168 (hppa_lookup_stub_minimal_symbol): Update.
6169 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6170 Update.
6171 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6172 (elf_gnu_ifunc_resolve_by_got): Update.
6173 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6174 * dwarf-index-write.c (save_gdb_index_command): Update.
6175 * cp-support.c (add_symbol_overload_list_qualified): Update.
6176 * breakpoint.c (create_overlay_event_breakpoint)
6177 (create_longjmp_master_breakpoint)
6178 (create_std_terminate_master_breakpoint)
6179 (create_exception_master_breakpoint): Update.
6180 * blockframe.c (find_pc_partial_function): Update.
6181 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6182 (ada_collect_symbol_completion_matches)
6183 (ada_add_global_exceptions): Update.
6184
776489e0
TT
61852019-01-17 Tom Tromey <tom@tromey.com>
6186
6187 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6188 declare VEC.
6189 (solib_target_parse_libraries): Change return type.
6190 (library_list_start_segment, library_list_start_section)
6191 (library_list_end_library, library_list_start_library); Update.
6192 (solib_target_free_library_list): Remove.
6193 (solib_target_parse_libraries): Remove cleanup. Change return
6194 type.
6195 (solib_target_current_sos): Update.
6196
6471e7d2
TT
61972019-01-17 Tom Tromey <tromey@bapiya>
6198
6199 * valprint.c: Replace "the the" with "the".
6200 * symtab.c: Replace "the the" with "the".
6201 * solib.c: Replace "the the" with "the".
6202 * solib-dsbt.c: Replace "the the" with "the".
6203 * linespec.c: Replace "the the" with "the".
6204 * dwarf2loc.h: Replace "the the" with "the".
6205 * amd64-windows-tdep.c: Replace "the the" with "the".
6206 * aarch64-tdep.c: Replace "the the" with "the".
6207
c24bdb02
KS
62082019-01-16 Keith Seitz <keiths@redhat.com>
6209
6210 PR gdb/23773
6211 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6212 <builder>: Rename to ..
6213 <m_builder>: ... this and make private.
6214 (dwarf2_cu::get_builder): New method. Change all users of
6215 `builder' to use this method.
6216 (dwarf2_start_symtab): Move to ...
6217 (dwarf2_cu::start_symtab): ... here. Update all callers
6218 (setup_type_unit_groups): Move to ...
6219 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6220 callers.
6221 (dwarf2_cu::reset_builder): New method.
6222 (process_full_compunit, process_full_type_unit): Use
6223 dwarf2_cu::reset_builder.
6224 (follow_die_offset): Record the ancestor CU if it is different
6225 from the followed DIE's CU.
6226 (follow_die_sig_1): Likewise.
6227
8d64371b
TT
62282019-01-15 Tom Tromey <tom@tromey.com>
6229
6230 * remote.c (class remote_state) <buf>: Now a char_vector.
6231 <buf_size>: Remove.
6232 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6233 parameter.
6234 (remote_target::getpkt_or_notif_sane_1)
6235 (remote_target::getpkt_sane)
6236 (remote_target::getpkt_or_notif_sane): Likewise.
6237 (class remote_target) <putpkt>: New overload.
6238 (remote_target::read_frame): Change type of "buf_p". Remove
6239 sizeof_p parameter.
6240 (packet_ok): New overload.
6241 (packet_check_result): New overload.
6242 Update all uses.
6243
bb277751
TT
62442019-01-14 Tom Tromey <tom@tromey.com>
6245
6246 * remote-notif.c (handle_notification, remote_notif_ack)
6247 (remote_notif_parse): Make "buf" const.
6248 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6249 const.
6250 (remote_notif_parse, remote_notif_ack, handle_notification):
6251 Likewise.
6252 * remote.c (remote_notif_stop_parse): Make "buf" const.
6253 (remote_target::remote_parse_stop_reply): Make "buf" const.
6254 (remote_notif_stop_ack): Make "buf" const.
6255
05be00a8
TT
62562019-01-14 Tom Tromey <tom@tromey.com>
6257
6258 * remote.c (remote_console_output): Make parameter const.
6259
491adeca
TT
62602019-01-14 Tom Tromey <tom@tromey.com>
6261
6262 * target-debug.h (target_debug_print_signals): Constify.
6263 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6264 * procfs.c (procfs_target::pass_signals): Update.
6265 * linux-nat.c (linux_nat_target::pass_signals): Update.
6266 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6267 * target-delegates.c: Rebuild.
6268 * remote.c (remote_target::program_signals): Update.
6269 (remote_target::pass_signals): Update.
6270 * target.c (target_pass_signals): Constify argument.
6271 (target_program_signals): Likewise.
6272 * target.h (struct target_ops) <pass_signals, program_signals>:
6273 Constify argument.
6274 (target_pass_signals, target_program_signals): Constify argument.
6275
bbd94648
TT
62762019-01-14 Tom Tromey <tom@tromey.com>
6277
6278 PR tui/28819:
6279 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6280
6f072a10
PFC
62812019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6282
6283 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6284 field.
6285 * rs6000-tdep.c: Include reggroups.h.
6286 (IS_V_ALIAS_PSEUDOREG): Define.
6287 (rs6000_register_name): Return names for the "vX" aliases.
6288 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6289 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6290 aliases. Call default_register_reggroup_p for all other
6291 pseudo-registers.
6292 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6293 New functions.
6294 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6295 Handle "vX" aliases.
6296 (v_alias_pseudo_register_collect): New function.
6297 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6298 (rs6000_gdbarch_init): Initialize "vX" aliases as
6299 pseudo-registers. Restore registration of
6300 rs6000_pseudo_register_reggroup_p with
6301 set_tdesc_pseudo_register_reggroup_p.
6302
1a782351
MF
63032019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6304
6305 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6306 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6307 set_gdbarch_num_pseudo_regs.
6308
d73cff18
PW
63092019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6310
6311 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6312 Remove arg prefixname, add do_set and do_show.
6313 Add member functions set_list and show_list.
6314 * cli/cli-style.c (class cli_style_option): Update accordingly.
6315 (style_set_list): Move to file scope.
6316 (style_show_list): Likewise.
6317 (set_style): Call help_list.
6318 (show_style): Call cmd_show_list.
6319 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6320 Update to use the new macro.
6321
60a90376
JB
63222019-10-12 Joel Brobecker <brobecker@adacore.com>
6323
6324 * ada-lang.c (_initialize_ada_language): Expand the help text
6325 for the "catch exception" command.
6326
9d7c67bf
PW
63272019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6328
6329 * symtab.c (matching_obj_sections): Initialize obj,
6330 declare it closer to its usage.
6331
7cf47dc4
TT
63322019-01-10 Tom Tromey <tom@tromey.com>
6333
6334 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6335 (basic_inf_threads_range): Remove.
6336 (inf_threads_range, inf_non_exited_threads_range)
6337 (safe_inf_threads_range): Use next_adapter.
6338
d3cb6808
KS
63392019-01-10 Keith Seitz <keiths@redhat.com>
6340
6341 PR gdb/23712
6342 PR symtab/23010
6343 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6344 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6345
63a20375
KS
63462019-01-10 Keith Seitz <keiths@redhat.com>
6347
6348 PR gdb/23712
6349 PR symtab/23010
6350 * dictionary.c (pending_to_vector): Remove.
6351 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6352 Remove _1 suffix, replacing functions of the same name. Update
6353 all callers.
6354 (dict_create_hashed, dict_create_hashed_expandable)
6355 (dict_create_linear, dict_create_linear_expandable, dict_free)
6356 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6357 Make functions static.
6358
b026f593
KS
63592019-01-10 Keith Seitz <keiths@redhat.com>
6360
6361 PR gdb/23712
6362 PR symtab/23010
6363 * dictionary.h (struct dictionary): Replace declaration with
6364 multidictionary.
6365 (dict_create_hashed, dict_create_hashed_expandable)
6366 (dict_create_linear, dict_create_linear_expandable)
6367 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6368 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6369 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6370 taking multidictionary argument.
6371 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6372 * block.h (struct block) <dict>: Change to multidictionary
6373 and rename `multidict'.
6374 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6375 symmisc.c: Update all dictionary references to multidictionary.
6376
c7748ee9
KS
63772019-01-10 Keith Seitz <keiths@redhat.com>
6378
6379 PR gdb/23712
6380 PR symtab/23010
6381 * dictionary.c: Include unordered_map.
6382 (pending_to_vector): New function.
6383 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6384 Rewrite the non-"_1" functions to take vector instead
6385 of linked list.
6386 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6387 "new" _1 versions of the same name.
6388 (multidictionary): Define.
6389 (std::hash<enum language): New definition.
6390 (collate_pending_symbols_by_language, mdict_create_hashed)
6391 (mdict_create_hashed_expandable, mdict_create_linear)
6392 (mdict_create_linear_expandable, mdict_free)
6393 (find_language_dictionary, create_new_language_dictionary)
6394 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6395 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6396 (mdict_size, mdict_empty): New functions.
6397 * dictionary.h (mdict_iterator): Define.
6398
67aa1f3c
PA
63992019-01-10 Pedro Alves <palves@redhat.com>
6400
6401 * breakpoint.c (read_uploaded_action)
6402 (create_tracepoint_from_upload): Adjust to use
6403 gdb::unique_xmalloc_ptr.
6404 * ctf.c (ctf_write_uploaded_tp):
6405 (SET_ARRAY_FIELD): Use emplace_back.
6406 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6407 * tracefile-tfile.c (tfile_write_uploaded_tp):
6408 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6409 gdb::unique_xmalloc_ptr.
6410 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6411 at_string, cond_string, cmd_strings>: Replace char pointers
6412 with gdb::unique_xmalloc_ptr.
6413
2f667667
PA
64142019-01-10 Pedro Alves <palves@redhat.com>
6415
6416 * solib-target.c (library_list_start_library): Don't xstrdup name.
6417
36cb7237
PA
64182019-01-10 Pedro Alves <palves@redhat.com>
6419
6420 * mdebugread.c (parse_partial_symbols): Use
6421 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6422
da584958
AB
64232019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6424
6425 * linux-fork.c (scoped_switch_fork_info)
6426 <~scoped_switch_fork_info>: Fix incorrect variable name.
6427
1ef8573c
AB
64282019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6429
6430 * linux-fork.c (scoped_switch_fork_info)
6431 <scoped_switch_fork_info>: Make explicit.
6432 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6433
8d7bcccb
TT
64342019-01-10 Tom Tromey <tom@tromey.com>
6435
6436 * objfiles.h (objfile::reset_psymtabs): Update.
6437 * objfiles.c (objfile::objfile): Update.
6438 * psymtab.h (psymtab_storage::obstack): Update.
6439 (psymtab_storage::m_obstack): Use gdb::optional.
6440 (class psymtab_storage): Update comment. Remove objfile
6441 parameter.
6442 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6443
b596a3c7
TT
64442019-01-10 Tom Tromey <tom@tromey.com>
6445
6446 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6447 <free_psymtabs>: Now private.
6448 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6449 (allocate_psymtab): Use new method.
6450
a9342b62
TT
64512019-01-10 Tom Tromey <tom@tromey.com>
6452
6453 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6454 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6455 * mdebugread.c (parse_partial_symbols): Use
6456 allocate_dependencies.
6457 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6458 allocate_dependencies.
6459 (process_psymtab_comp_unit_reader)
6460 (build_type_psymtab_dependencies): Likewise.
6461 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6462
5af70966
TT
64632019-01-10 Tom Tromey <tom@tromey.com>
6464
6465 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6466 PSYMBOL_SET_LANGUAGE.
6467 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6468
5923a04c
TT
64692019-01-10 Tom Tromey <tom@tromey.com>
6470
6471 * psymtab.h (psymtab_storage::obstack): New method.
6472 <m_obstack>: Rename from obstack; now private.
6473 * psymtab.c (psymtab_storage): Update.
6474 * dwarf2read.c (create_addrmap_from_index)
6475 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6476 Update.
6477
6d6a12bf
TT
64782019-01-10 Tom Tromey <tom@tromey.com>
6479
6480 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6481 * objfiles.h (objfile::reset_psymtabs): New method.
6482
d320c2b5
TT
64832019-01-10 Tom Tromey <tom@tromey.com>
6484
6485 * symmisc.c (print_symbol_bcache_statistics): Update.
6486 (print_objfile_statistics): Update.
6487 * symfile.c (reread_symbols): Update.
6488 * psymtab.h (class psymtab_storage): New.
6489 * psymtab.c (psymtab_storage): New constructor.
6490 (~psymtab_storage): New destructor.
6491 (require_partial_symbols): Update.
6492 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6493 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6494 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6495 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6496 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6497 (start_psymtab_common, end_psymtab_common)
6498 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6499 (allocate_psymtab): Update.
6500 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6501 Update.
6502 (dump_psymtab_addrmap, maintenance_print_psymbols)
6503 (maintenance_check_psymtabs): Update.
6504 (class objfile_psymtabs): Move to objfiles.h.
6505 * psympriv.h (discard_psymtab): Now inline.
6506 (psymtab_discarder::psymtab_discarder): Update.
6507 (psymtab_discarder::~psymtab_discarder): Update.
6508 (ALL_OBJFILE_PSYMTABS): Rewrite.
6509 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6510 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6511 Remove fields.
6512 <partial_symtabs>: New field.
6513 (class objfile_psymtabs): Move from psymtab.h. Update.
6514 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6515 psymbol_cache.
6516 (objfile::~objfile): Don't destroy psymbol_cache.
6517 * mdebugread.c (parse_partial_symbols): Update.
6518 * dwarf2read.c (create_addrmap_from_index)
6519 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6520 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6521 (add_partial_subprogram, dwarf2_ranges_read): Update.
6522 * dwarf-index-write.c (write_address_map)
6523 (write_one_signatured_type, recursively_write_psymbols)
6524 (class debug_names, class debug_names, write_psymtabs_to_index):
6525 Update.
6526
1d94a5a3
TT
65272019-01-10 Tom Tromey <tom@tromey.com>
6528
6529 * symtab.h (SYMBOL_SET_NAMES): Update.
6530 (symbol_set_names): Update.
6531 (MSYMBOL_SET_NAMES): Update.
6532 * symtab.c (symbol_set_names): Change argument to be an
6533 objfile_per_bfd_storage.
6534 * psymtab.c (add_psymbol_to_bcache): Update.
6535 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6536
0f14768a
TT
65372019-01-10 Tom Tromey <tom@tromey.com>
6538
6539 * symtab.c (create_demangled_names_hash): Change argument to be an
6540 objfile_per_bfd_storage.
6541 (symbol_set_names): Update.
6542
6eee24ce
TT
65432019-01-10 Tom Tromey <tom@tromey.com>
6544
6545 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6546 init_psymbol_list.
6547 * psymtab.c (init_psymbol_list): Do nothing if already called.
6548 * psympriv.h (init_psymbol_list): Add comment.
6549 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6550 init_psymbol_list.
6551 * dbxread.c (dbx_symfile_read): Unconditionally call
6552 init_psymbol_list.
6553
75aedd27
TT
65542019-01-10 Tom Tromey <tom@tromey.com>
6555
6556 * xcoffread.c (scan_xcoff_symtab): Update.
6557 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6558 "where".
6559 * mdebugread.c (parse_partial_symbols)
6560 (handle_psymbol_enumerators): Update.
6561 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6562 * dbxread.c (read_dbx_symtab): Update.
6563 * psympriv.h (psymbol_placement): New enum.
6564 (add_psymbol_to_list): Update.
6565
939652a5
TT
65662019-01-10 Tom Tromey <tom@tromey.com>
6567
6568 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6569 static_psymbols parameters.
6570 (scan_xcoff_symtab): Update.
6571 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6572 static_psymbols parameters.
6573 * psympriv.h (start_psymtab_common): Update.
6574 * mdebugread.c (parse_partial_symbols): Update.
6575 * dwarf2read.c (create_partial_symtab): Update.
6576 * dbxread.c (read_dbx_symtab): Update.
6577 (start_psymtab): Remove global_psymbols and static_psymbols
6578 parameters.
6579
baa62830
TT
65802019-01-10 Tom Tromey <tom@tromey.com>
6581
6582 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6583 * psymtab.c (allocate_psymtab): Add comment.
6584 * psympriv.h (allocate_psymtab): Add comment.
6585 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6586 initializations.
6587 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6588
0e8f53ba
TT
65892019-01-10 Tom Tromey <tom@tromey.com>
6590
6591 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6592 Don't declare.
6593 * mipsread.c: Include mdebugread.h.
6594 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6595 Declare.
6596 * elfread.c: Include mdebugread.h.
6597
b22a7c6a
TT
65982019-01-09 Tom Tromey <tom@tromey.com>
6599
6600 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6601 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6602 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6603 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6604 (psym_lookup_symbol, psym_find_last_source_symtab)
6605 (psym_forget_cached_source_info, psym_print_stats)
6606 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6607 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6608 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6609 (psym_find_compunit_symtab_by_address)
6610 (maintenance_print_psymbols, maintenance_info_psymtabs)
6611 (maintenance_check_psymtabs): Use ranged for.
6612 * psymtab.h (class objfile_psymtabs): New.
6613 (require_partial_symbols): Return objfile_psymtabs.
6614 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6615
3b9d3ac2
TT
66162019-01-09 Tom Tromey <tom@tromey.com>
6617
6618 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6619 (find_pc_mapped_section, list_overlays_command)
6620 (map_overlay_command, unmap_overlay_command)
6621 (simple_overlay_update): Use all_objfiles.
6622 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6623 * printcmd.c (info_symbol_command): Use all_objfiles.
6624 * objfiles.h (ALL_OBJSECTIONS): Remove.
6625 * maint.c (maintenance_translate_address): Use all_objfiles.
6626 * gcore.c (gcore_create_callback): Use all_objfiles.
6627 (objfile_find_memory_regions): Likewise.
6628
8b31193a
TT
66292019-01-09 Tom Tromey <tom@tromey.com>
6630
6631 * symtab.c (find_line_symtab, info_sources_command)
6632 (make_source_files_completion_list): Use objfile_compunits.
6633 * source.c (select_source_symtab): Use objfile_compunits.
6634 * objfiles.h (struct objfile): Update comment.
6635 (ALL_OBJFILES): Remove.
6636 (ALL_FILETABS): Remove.
6637 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6638 objfile_compunits.
6639
d5da8b3c
TT
66402019-01-09 Tom Tromey <tom@tromey.com>
6641
6642 * symmisc.c (print_objfile_statistics, dump_objfile)
6643 (maintenance_print_symbols): Use compunit_filetabs.
6644 * source.c (forget_cached_source_info_for_objfile): Use
6645 compunit_filetabs.
6646 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6647 (ALL_FILETABS): Use compunit_filetabs.
6648 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6649 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6650
5accd1a0
TT
66512019-01-09 Tom Tromey <tom@tromey.com>
6652
6653 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6654 (compunit_filetabs): New.
6655 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6656 compunit_filetabs.
6657 (info_sources_command, make_source_files_completion_list): Remove
6658 declaration.
6659 * symmisc.c (print_objfile_statistics, dump_objfile)
6660 (maintenance_print_symbols): Remove declaration.
6661 (maintenance_info_symtabs): Use compunit_filetabs.
6662 (maintenance_info_line_tables): Likewise.
6663 * source.c (select_source_symtab): Change local variable name.
6664 (forget_cached_source_info_for_objfile): Remove declaration.
6665 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6666 * objfiles.c (objfile_relocate1): Remove declaration.
6667 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6668 declaration.
6669 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6670 * coffread.c (coff_symtab_read): Remove declaration.
6671 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6672 compunit_filetabs.
6673
d8aeb77f
TT
66742019-01-09 Tom Tromey <tom@tromey.com>
6675
6676 * symtab.c (lookup_objfile_from_block)
6677 (find_pc_sect_compunit_symtab, search_symbols)
6678 (default_collect_symbol_completion_matches_break_on): Use
6679 objfile_compunits.
6680 * objfiles.h (ALL_COMPUNITS): Remove.
6681 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6682 * cp-support.c (add_symbol_overload_list_qualified): Use
6683 objfile_compunits.
6684 * ada-lang.c (ada_collect_symbol_completion_matches)
6685 (ada_add_global_exceptions): Use objfile_compunits.
6686
592553c4
TT
66872019-01-09 Tom Tromey <tom@tromey.com>
6688
6689 * source.c (select_source_symtab)
6690 (forget_cached_source_info_for_objfile): Remove declaration.
6691 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6692 declaration.
6693 * maint.c (count_symtabs_and_blocks): Remove declaration.
6694 * cp-support.c (add_symbol_overload_list_qualified): Remove
6695 declaration.
6696 * coffread.c (coff_symtab_read): Remove declaration.
6697 * symtab.c (lookup_symbol_in_objfile_symtabs)
6698 (basic_lookup_transparent_type_1): Use objfile_compunits.
6699 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6700 (info_sources_command, search_symbols)
6701 (default_collect_symbol_completion_matches_break_on)
6702 (make_source_files_completion_list): Remove declaration.
6703 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6704 (ada_collect_symbol_completion_matches)
6705 (ada_add_global_exceptions): Remove declaration.
6706 * linespec.c (iterate_over_all_matching_symtabs): Use
6707 objfile_compunits.
6708 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6709 (class objfile_compunits): New.
6710 (ALL_COMPUNITS): Use objfile_compunits.
6711 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6712 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6713 objfile_compunits.
6714 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6715
5325b9bf
TT
67162019-01-09 Tom Tromey <tom@tromey.com>
6717
6718 * symtab.c (search_symbols)
6719 (default_collect_symbol_completion_matches_break_on): Use
6720 objfile_msymbols.
6721 * ada-lang.c (ada_lookup_simple_minsym)
6722 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6723 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6724 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6725 objfile_msymbols.
6726 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6727 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6728 * objc-lang.c (find_methods): Use objfile_msymbols.
6729 (info_selectors_command, info_classes_command): Likewise.
6730 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6731 * objfiles.h (class objfile_msymbols): New.
6732 (ALL_OBJFILE_MSYMBOLS): Remove.
6733 (ALL_MSYMBOLS): Remove.
6734
cac85af2
TT
67352019-01-09 Tom Tromey <tom@tromey.com>
6736
6737 * common/next-iterator.h (next_adapter): Add Iterator template
6738 parameter.
6739 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6740 (class all_objfiles_safe): New.
6741 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6742 * objfiles.c (put_objfile_before): Update comment.
6743 (add_separate_debug_objfile): Likewise.
6744 (free_all_objfiles): Use all_objfiles_safe.
6745 (objfile_purge_solibs): Likewise.
6746
aed57c53
TT
67472019-01-09 Tom Tromey <tom@tromey.com>
6748
6749 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6750 (expand_symtab_containing_pc, lookup_static_symbol)
6751 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6752 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6753 all_objfiles.
6754 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6755 * breakpoint.c (create_overlay_event_breakpoint)
6756 (create_longjmp_master_breakpoint)
6757 (create_std_terminate_master_breakpoint)
6758 (create_exception_master_breakpoint): Use all_objfiles.
6759 * linux-thread-db.c (try_thread_db_load_from_pdir)
6760 (has_libpthread): Use all_objfiles.
6761 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6762 * linespec.c (iterate_over_all_matching_symtabs)
6763 (search_minsyms_for_name): Use all_objfiles.
6764 * maint.c (maintenance_info_sections): Use all_objfiles.
6765 * main.c (captured_main_1): Use all_objfiles.
6766 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6767 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6768 * guile/scm-pretty-print.c
6769 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6770 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6771 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6772 (maintenance_print_msymbols): Use all_objfiles.
6773 * source.c (select_source_symtab): Use all_objfiles.
6774 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6775 * symfile.c (remove_symbol_file_command)
6776 (expand_symtabs_matching, map_symbol_filenames): Use
6777 all_objfiles.
6778 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6779 all_objfiles.
6780 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6781 * objc-lang.c (find_methods): Use all_objfiles.
6782 * objfiles.c (have_partial_symbols, have_full_symbols)
6783 (have_minimal_symbols, qsort_cmp)
6784 (default_iterate_over_objfiles_in_search_order): Use
6785 all_objfiles.
6786 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6787 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6788 (maintenance_check_psymtabs): Use all_objfiles.
6789 (ALL_PSYMTABS): Remove.
6790 * compile/compile-object-run.c (do_module_cleanup): Use
6791 all_objfiles.
6792 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6793 * cp-support.c (add_symbol_overload_list_qualified): Use
6794 all_objfiles.
6795 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6796 Use all_objfiles.
6797 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6798 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6799 all_objfiles.
6800 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6801 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6802 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6803 Uses all_objfiles.
6804 * solib.c (solib_read_symbols): Use all_objfiles
6805
99d89cde
TT
68062019-01-09 Tom Tromey <tom@tromey.com>
6807
6808 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6809 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6810 all_objfiles.
6811 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6812 * symmisc.c (print_symbol_bcache_statistics)
6813 (print_objfile_statistics, maintenance_print_objfiles)
6814 (maintenance_info_symtabs, maintenance_check_symtabs)
6815 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6816 all_objfiles.
6817 * source.c (forget_cached_source_info): Use all_objfiles.
6818 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6819 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6820 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6821 * objfiles.c (update_section_map): Use all_objfiles.
6822 (shared_objfile_contains_address_p): Likewise.
6823 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6824 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6825
21708325
TT
68262019-01-09 Tom Tromey <tom@tromey.com>
6827
6828 * common/next-iterator.h: New file.
6829 * objfiles.h (class all_objfiles): New.
6830 (struct objfile_iterator): New.
6831
669e09f6
PW
68322019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6833
6834 * NEWS: Move the description of the changed "frame", "select-frame",
6835 and "info frame" commands to the Changed commands section.
6836
041be526
SM
68372019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6838
6839 * gdbtypes.c (check_stub_method_group): Remove handling of old
6840 mangling schemes.
6841 * linespec.c (find_methods): Likewise.
6842 * stabsread.c (read_member_functions): Likewise.
6843 * valops.c (search_struct_method): Likewise.
6844 (value_struct_elt_for_reference): Likewise.
6845 * NEWS: Mention this change.
6846
0e2a2133
AB
68472019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6848
6849 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6850 print_source_lines.
6851 * source.c (print_source_lines_base): Update line number check.
6852 (print_source_lines): New function.
6853 (source_lines_range::source_lines_range): New function.
6854 * source.h (class source_lines_range): New class.
6855 (print_source_lines): New declaration.
6856
1055a3b4
PW
68572019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6858
6859 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6860
cfeadda5
TT
68612019-01-08 Tom Tromey <tom@tromey.com>
6862 Simon Marchi <simon.marchi@ericsson.com>
6863
6864 PR gdb/24060
6865 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6866 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6867 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6868 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6869 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6870 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6871
583068ca
AB
68722019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6873
6874 * source.c (select_source_symtab): Move header comment to
6875 declaration in source.h.
6876 (forget_cached_source_info_for_objfile): Likewise.
6877 (forget_cached_source_info): Likewise.
6878 (identify_source_line): Likewise.
6879 * source.h (identify_source_line): Move declaration from symtab.h
6880 and add comment from source.c
6881 (print_source_lines): Likewise.
6882 (forget_cached_source_info_for_objfile): Likewise.
6883 (forget_cached_source_info): Likewise.
6884 (select_source_symtab): Likewise.
6885 (enum print_source_lines_flag): Move definition from symtab.h.
6886 * symtab.h (identify_source_line): Move declaration to source.h.
6887 (print_source_lines): Likewise.
6888 (forget_cached_source_info_for_objfile): Likewise.
6889 (forget_cached_source_info): Likewise.
6890 (select_source_symtab): Likewise.
6891 (enum print_source_lines_flag): Move definition to source.h.
6892 * tui/tui-hooks.c: Add 'source.h' include.
6893
ec98a4ad
AB
68942019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6895
6896 * source.c (print_source_lines_base): Handle requests to print
6897 reverse line number sequences, and guard against empty lines
6898 string.
6899
62ea19c1
AB
69002019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6901
6902 * source.c (print_source_lines_base): Fix skip of '\r' if next
6903 character is '\n'.
6904
9d30e1fd
TT
69052019-01-06 Tom Tromey <tom@tromey.com>
6906
6907 * c-exp.y (struct c_parse_state) <macro_original_text,
6908 expansion_obstack>: New member.
6909 (macro_original_text, expansion_obstack): Remove globals.
6910 (scan_macro_expansion, scanning_macro_expansion)
6911 (finished_macro_expansion): Update.
6912 (scan_macro_cleanup): Remove.
6913 (yylex, c_parse): Update.
6914
c65bac38
TT
69152019-01-06 Tom Tromey <tom@tromey.com>
6916
6917 * c-exp.y (struct c_parse_state) <strings>: New member.
6918 (operator_stoken): Update.
6919
02e12e38
TT
69202019-01-06 Tom Tromey <tom@tromey.com>
6921
6922 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6923 (union type_stack_elt) <typelist_val>: Now a pointer to
6924 std::vector.
6925 (type_stack_cleanup): Don't declare.
6926 (push_typelist): Update.
6927 * parse.c (pop_typelist): Return a std::vector.
6928 (push_typelist): Take a std::vector.
6929 (follow_types): Update. Do not free args.
6930 (type_stack_cleanup): Remove.
6931 * c-exp.y (struct c_parse_state): New.
6932 (cpstate): New global.
6933 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6934 (nonempty_typelist): Update.
6935 (func_mod): Create a new vector.
6936 (c_parse): Create a c_parse_state.
6937 (check_parameter_typelist): Do not delete params.
6938 (function_method): Update. Do not delete type_list.
6939
f097f5ad
TT
69402019-01-06 Tom Tromey <tom@tromey.com>
6941
6942 PR gdb/28155:
6943 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6944 check_typedef.
6945 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6946 (print_return_value): Likewise.
6947
d2adf9f1
TT
69482019-01-05 Tom Tromey <tom@tromey.com>
6949
6950 * contrib/cleanup_check.py: Remove.
6951 * contrib/gcc-with-excheck: Remove.
6952 * contrib/exsummary.py: Remove.
6953 * contrib/excheck.py: Remove.
6954
2eab46b1
JB
69552019-01-05 Joel Brobecker <brobecker@adacore.com>
6956
6957 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6958 NULL. Initialize tpprev to NULL instead of assigning it
6959 to NULL on the next statement.
6960 * windows-nat.c (windows_delete_thread): Remove check for
6961 main_thread_id before printing thread exit notifications.
6962 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6963 Remove thread ID check against main_thread_id.
6964 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6965 windows_delete_thread.
6966 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6967
48c5e7e2
TT
69682019-01-04 Tom Tromey <tom@tromey.com>
6969
6970 * compile/compile.c (_initialize_compile): Use upper case for
6971 metasyntactic variables.
6972 * symmisc.c (_initialize_symmisc): Use upper case for
6973 metasyntactic variables.
6974 * psymtab.c (_initialize_psymtab): Use upper case for
6975 metasyntactic variables.
6976 * demangle.c (demangle_command): Use upper case for metasyntactic
6977 variables.
6978 (_initialize_demangler): Likewise.
6979 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6980 variables.
6981
986041cd
TT
69822019-01-03 Tom Tromey <tom@tromey.com>
6983
6984 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6985
7c711119
TT
69862019-01-03 Tom Tromey <tom@tromey.com>
6987
6988 * python/py-symtab.c (salpy_str): Update.
6989 (struct salpy_sal_object) <symtab>: Now a PyObject.
6990 (salpy_dealloc): Update.
6991 (del_objfile_sal): Use gdbpy_ref.
6992
1b20edf0
TT
69932019-01-03 Tom Tromey <tom@tromey.com>
6994
6995 * python/py-type.c (convert_field): Use new_reference. Return
6996 gdbpy_ref.
6997 (make_fielditem): Return gdbpy_ref.
6998 (typy_fields): Update.
6999 (typy_getitem): Update.
7000 (field_name): Return gdbpy_ref. Use new_reference.
7001 (typy_iterator_iternext): Update.
7002
ea41325b
TT
70032019-01-03 Tom Tromey <tom@tromey.com>
7004
7005 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7006
2a3c71d6
TT
70072019-01-03 Tom Tromey <tom@tromey.com>
7008
7009 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7010 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7011 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7012 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7013 (pspy_set_type_printers): Likewise.
7014 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7015 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7016 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7017 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7018 (objfpy_set_type_printers): Likewise.
7019
5c329e6a
TT
70202019-01-03 Tom Tromey <tom@tromey.com>
7021
7022 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7023 (gdbpy_print_stack): Use gdbpy_err_fetch.
7024 * python/python-internal.h (class gdbpy_err_fetch): New class.
7025 (class gdbpy_enter) <m_error_type, m_error_value,
7026 m_error_traceback>: Remove.
7027 <m_error>: New member.
7028 (gdbpy_exception_to_string): Don't declare.
7029 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7030 * python/py-value.c (convert_value_from_python): Use
7031 gdbpy_err_fetch.
7032 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7033 gdbpy_exception_to_string.
7034 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7035 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7036 gdbpy_err_fetch.
7037
169bb27b
AB
70382019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7039
7040 * linux-nat.c (delete_lwp_cleanup): Delete.
7041 (struct lwp_deleter): New struct.
7042 (lwp_info_up): New typedef.
7043 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7044 lwp_info_up.
7045
a07c8880
AB
70462019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7047
7048 * linux-fork.c (class scoped_switch_fork_info): New class.
7049 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7050
26089c49
AB
70512019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7052
7053 * valops.c (find_overload_match): Remove use of null_cleanup, and
7054 calls to do_cleanups.
7055
06d3e5b0
AB
70562019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7057
7058 * compile/compile-cplus-types.c
7059 (compile_cplus_instance::decl_name): Handle changes to
7060 cp_func_name.
7061 * cp-support.c (cp_func_name): Update header comment, update
7062 return type.
7063 * cp-support.h (cp_func_name): Update return type in declaration.
7064 * valops.c (find_overload_match): Move temp_func local to top
7065 level of function and change its type. Use temp_func to hold and
7066 delete temporary string obtained from cp_func_name.
7067
66644cd3
AB
70682019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7069
7070 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7071 gdb::char_vector, remove cleanup, and update uses of `msg`.
7072
592d8c0a
JW
70732019-01-03 Jim Wilson <jimw@sifive.com>
7074
7075 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7076
c55d06ec
TT
70772019-01-02 Tom Tromey <tom@tromey.com>
7078
7079 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7080 (tdesc_parse_xml): Remove cleanups.
7081 * target-descriptions.h (make_cleanup_free_target_description):
7082 Don't declare.
7083 (target_desc_deleter): New struct.
7084 (target_desc_up): New typedef.
7085 * target-descriptions.c (target_desc_deleter::operator()): Rename
7086 from free_target_description.
7087 (make_cleanup_free_target_description): Remove.
7088
3a6ae42d
TT
70892019-01-02 Tom Tromey <tom@tromey.com>
7090
7091 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7092 constructor, destructor.
7093 (linespec_parser): Remove typedef.
7094 (~linespec_parser): Rename from linespec_parser_delete.
7095 (linespec_lex_to_end, linespec_complete_label)
7096 (linespec_complete): Update.
7097 (decode_line_full): Remove cleanups.
7098 (decode_line_1): Update.
7099
61fd3e73
TT
71002019-01-02 Tom Tromey <tom@tromey.com>
7101
7102 * python/python-internal.h (inferior_to_inferior_object): Change
7103 return type.
7104 * python/py-exitedevent.c (create_exited_event_object): Update.
7105 * python/py-inferior.c (inferior_to_inferior_object): Return
7106 gdbpy_ref.
7107 (python_new_inferior, python_inferior_deleted)
7108 (thread_to_thread_object, delete_thread_object)
7109 (build_inferior_list, gdbpy_selected_inferior): Update.
7110 * python/py-infthread.c (create_thread_object): Update. Also fail
7111 if inferior_to_inferior_object fails.
7112
d20172fc
SM
71132019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7114
7115 * inferior.h (class inferior) <displaced_step_state>: New field.
7116 * infrun.h (struct displaced_step_state): Move here from
7117 infrun.c. Initialize fields, add constructor.
7118 <inf>: Remove field.
7119 <reset>: New method.
7120 * infrun.c (struct displaced_step_inferior_state): Move to
7121 infrun.h.
7122 (displaced_step_inferior_states): Remove.
7123 (get_displaced_stepping_state): Adust.
7124 (displaced_step_in_progress_any_inferior): Adjust.
7125 (displaced_step_in_progress_thread): Adjust.
7126 (displaced_step_in_progress): Adjust.
7127 (add_displaced_stepping_state): Remove.
7128 (get_displaced_step_closure_by_addr): Adjust.
7129 (remove_displaced_stepping_state): Remove.
7130 (infrun_inferior_exit): Call displaced_step_state.reset.
7131 (use_displaced_stepping): Don't check for NULL.
7132 (displaced_step_prepare_throw): Call
7133 get_displaced_stepping_state.
7134 (displaced_step_fixup): Don't check for NULL.
7135 (prepare_for_detach): Don't check for NULL.
7136
e3319240
PW
71372019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7138
7139 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7140 in case of call that did not complete.
7141
5d36dfb9
AU
71422019-01-02 Andrey Utkin <autkin@undo.io>
7143
7144 * symfile.c (find_separate_debug_file): Fix search of debug files for
7145 remote debuggee.
7146
8833fbf0
TT
71472019-01-02 Tom Tromey <tom@tromey.com>
7148
7149 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7150 indentation.
7151 * python/py-frame.c (frapy_older): Remove cast.
7152 (frapy_newer): Likewise.
7153 * python/py-breakpoint.c (local_setattro): Remove cast.
7154 * python/py-arch.c (archpy_name): Remove local variable.
7155 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7156
4ada3dfd
JB
71572019-01-02 Joel Brobecker <brobecker@adacore.com>
7158
7159 * unittests/basic_string_view/element_access/char/empty.cc:
7160 Fix year range in copyright header.
7161
113b7b81
AB
71622019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7163
7164 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7165 Delete.
7166 <operator==>: Update with for removed field.
7167 <hash>: Likewise.
7168 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7169 <isa_features>: ...this.
7170 <abi_features>: New field.
7171 (riscv_isa_flen): Update comment.
7172 (riscv_abi_xlen): New declaration.
7173 (riscv_abi_flen): New declaration.
7174 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7175 isa_features.
7176 (riscv_abi_xlen): New function.
7177 (riscv_isa_flen): Update to get answer from isa_features.
7178 (riscv_abi_flen): New function.
7179 (riscv_has_fp_abi): Update to get answer from abi_features.
7180 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7181 xlen and flen.
7182 (riscv_call_info) <xlen, flen>: Update comment.
7183 (riscv_call_arg_struct): Remove invalid assertions
7184 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7185 is removed.
7186 (riscv_gdbarch_init): Gather isa features and abi features
7187 separately, ensure both match on the gdbarch when reusing an old
7188 gdbarch. Relax an error check to allow 32-bit abi float to run on
7189 a target with 64-bit float hardware.
7190
b18ca514
PW
71912019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7192
7193 * source.c (search_command_helper): Stop reverse search
7194 when line 1 has been searched.
7195
ec70d8db
PW
71962019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7197
7198 * record-full.c (record_full_base_target::close): Rewrite
7199 record_full_core_buf_list free logic.
7200
5b38f9c1
PW
72012019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7202
7203 * break-catch-syscall.c (print_one_catch_syscall): xfree
7204 the last text.
7205
66d91b39
JB
72062019-01-01 Joel Brobecker <brobecker@adacore.com>
7207
7208 * top.c (print_gdb_version): Update Copyright year in version
7209 message.
7210
42a4f53d
JB
72112019-01-01 Joel Brobecker <brobecker@adacore.com>
7212
7213 Update copyright year range in all GDB files.
7214
7e955d83 72152019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 7216
5bbd631d 7217 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 7218
5bbd631d 7219For older changes see ChangeLog-2018.
c906108c
SS
7220\f
7221Local Variables:
7222mode: change-log
7223left-margin: 8
7224fill-column: 74
7225version-control: never
57da7796 7226coding: utf-8
c906108c 7227End:
5bbd631d 7228
This page took 2.841421 seconds and 4 git commands to generate.