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