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