Synchronize libiberty sources with gcc mainline.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
eba4caf2
TV
12019-08-09 Tom de Vries <tdevries@suse.de>
2
3 PR gdb/24591
4 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5 pc_low with relocation offset.
6
123cd851
TT
72019-08-07 Tom Tromey <tromey@adacore.com>
8
9 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10 (print_frame_args): Update.
11 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
12 Update.
13 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
14 * frame.h (struct frame_arg): Add initializers.
15 <error>: Now a unique_xmalloc_ptr.
16
3d31bc39
AH
172019-08-07 Alan Hayward <alan.hayward@arm.com>
18
19 * NEWS: Expand the Pointer Authentication entry.
20 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
21 (aarch64_frame_unmask_lr): ... to this.
22 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
23 Call aarch64_frame_unmask_lr.
24 * frame.c (struct frame_info): Add "masked" variable.
25 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
26 (fprint_frame): Check for masked pc.
27 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
28 declarations.
29 * python/py-framefilter.c (py_print_frame): Check for masked pc.
30 * stack.c (print_frame): Check for masked pc.
31
0cf9feb9
TT
322019-08-06 Tom Tromey <tom@tromey.com>
33
34 * stabsread.c (patch_block_stabs, read_one_struct_field)
35 (read_enum_type): Use obstack_strndup.
36 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
37 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
38 * dwarf2read.c (guess_full_die_structure_name)
39 (anonymous_struct_prefix): Use obstack_strndup.
40 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
41 * c-exp.y (yylex): Use obstack_strndup.
42 * ada-exp.y (write_object_renaming, write_ambiguous_var)
43 (write_var_or_type): Use obstack_strndup.
44
efba19b0
TT
452019-08-06 Tom Tromey <tom@tromey.com>
46
47 * symfile.c (reread_symbols): Use obstack_strdup.
48 * stabsread.c (read_type): Use obstack_strdup.
49 * gdb_obstack.h (obstack_strdup): New overload.
50 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
51 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
52 (dwarf2_canonicalize_name): Use obstack_strdup.
53 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
54 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
55 Use obstack_strdup.
56
f25102f7
TT
572019-08-06 Tom Tromey <tom@tromey.com>
58
59 * gdb_obstack.h (obstack_strdup): Define.
60 * gdb_obstack.c (obstack_strdup): Don't define.
61
021887d8
TT
622019-08-06 Tom Tromey <tom@tromey.com>
63
64 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
65 obstack_strdup.
66 * typeprint.c (typedef_hash_table::find_global_typedef): Use
67 obstack_strdup.
68 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
69 * stabsread.c (common_block_start): Use obstack_strdup.
70 * objfiles.c (set_objfile_main_name, objfile): Use
71 obstack_strdup.
72 * namespace.c (add_using_directive): Use obstack_strdup.
73 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
74 * jit.c (finalize_symtab): Use obstack_strdup.
75 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
76 (guess_partial_die_structure_name, partial_die_info::fixup)
77 (dwarf2_name): Use obstack_strdup.
78 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
79 obstack_strdup.
80 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
81 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
82 obstack_strdup.
83 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
84
d2834edc
PW
852019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
86
87 * unittests/help-doc-selftests.c: New file.
88 * Makefile.in: Add the new file.
89
590042fc
PW
902019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
91
92 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
93 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
94 the full first line, except when FOR_VALUE_PREFIX. In this case,
95 the trailing '.' is not output, and the first character is uppercased.
96 (print_help_for_command): Update call to print_doc_line.
97 (print_doc_of_command): Likewise.
98 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
99 * cli/cli-option.c (append_indented_doc): Do not append newline.
100 (build_help_option): Append newline after first appended_indented_doc
101 only if a second call is done.
102 (build_help): Append 2 new lines before each option, except the first
103 one.
104 * compile/compile.c (_initialize_compile): Add new lines after
105 %OPTIONS%, when not at the end of the help.
106 Change help doc or code
107 producing the help doc to respect the invariants.
108 * maint-test-options.c (_initialize_maint_test_options): Likewise.
109 Also removed the new line after 'Options:', as all other commands
110 do not put an empty line between 'Options:' and the first option.
111 * printcmd.c (_initialize_printcmd): Likewise.
112 * stack.c (_initialize_stack): Likewise.
113 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
114 incorrectly telling COMMAND is optional.
115 * ada-lang.c (_initialize_ada_language): Change help doc or code
116 producing the help doc to respect the invariants.
117 * ada-tasks.c (_initialize_ada_tasks): Likewise.
118 * breakpoint.c (_initialize_breakpoint): Likewise.
119 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
120 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
121 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
122 * cli/cli-style.c (cli_style_option::add_setshow_commands,
123 _initialize_cli_style): Likewise.
124 * corelow.c (core_target_info): Likewise.
125 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
126 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
127 * filesystem.c (_initialize_filesystem): Likewise.
128 * frame.c (_initialize_frame): Likewise.
129 * gnu-nat.c (add_task_commands): Likewise.
130 * infcall.c (_initialize_infcall): Likewise.
131 * infcmd.c (_initialize_infcmd): Likewise.
132 * interps.c (_initialize_interpreter): Likewise.
133 * language.c (_initialize_language): Likewise.
134 * linux-fork.c (_initialize_linux_fork): Likewise.
135 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
136 * maint.c (_initialize_maint_cmds): Likewise.
137 * memattr.c (_initialize_mem): Likewise.
138 * printcmd.c (_initialize_printcmd): Likewise.
139 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
140 _RegEx): Likewise.
141 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
142 * record-btrace.c (_initialize_record_btrace): Likewise.
143 * record-full.c (_initialize_record_full): Likewise.
144 * record.c (_initialize_record): Likewise.
145 * regcache-dump.c (_initialize_regcache_dump): Likewise.
146 * regcache.c (_initialize_regcache): Likewise.
147 * remote.c (add_packet_config_cmd, init_remote_threadtests,
148 _initialize_remote): Likewise.
149 * ser-tcp.c (_initialize_ser_tcp): Likewise.
150 * serial.c (_initialize_serial): Likewise.
151 * skip.c (_initialize_step_skip): Likewise.
152 * source.c (_initialize_source): Likewise.
153 * stack.c (_initialize_stack): Likewise.
154 * symfile.c (_initialize_symfile): Likewise.
155 * symtab.c (_initialize_symtab): Likewise.
156 * target-descriptions.c (_initialize_target_descriptions): Likewise.
157 * top.c (init_main): Likewise.
158 * tracefile-tfile.c (tfile_target_info): Likewise.
159 * tracepoint.c (_initialize_tracepoint): Likewise.
160 * tui/tui-win.c (_initialize_tui_win): Likewise.
161 * utils.c (add_internal_problem_command): Likewise.
162 * valprint.c (value_print_option_defs): Likewise.
163
404f2902
FCE
1642019-08-06 Frank Ch. Eigler <fche@redhat.com>
165
166 PR build/24886
167 * configure.ac: Drop enable-libmcheck support.
168 * configure, config.in: Rebuild.
169 * libmcheck.m4: Remove.
170 * acinclude.m4: Don't include it.
171 * Makefile.in: Don't distribute it.
172 * top.c (print_gdb_configuration): Don't mention it.
173
046bebe1
TT
1742019-08-06 Tom Tromey <tom@tromey.com>
175
176 * utils.c (set_output_style): Sometimes pass stream to
177 emit_style_escape.
178 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
179 * record-btrace.c (btrace_insn_history): Update.
180 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
181 method.
182 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
183 Update initializers.
184 <m_uiout>: New field.
185 <m_di>: Move lower.
186 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
187 Remove "uiout" parameter.
188 (dump_insns): Update.
189 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
190 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
191
ddbcedf5
CB
1922019-08-06 Christian Biesinger <cbiesinger@google.com>
193
194 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
195 (error_in_psymtab_expansion): Likewise.
196 (lookup_symbol_via_quick_fns): Likewise.
197 (basic_lookup_transparent_type_quick): Likewise.
198 (basic_lookup_transparent_type_1): Likewise.
199
b08b16c8
TT
2002019-08-06 Tom Tromey <tromey@adacore.com>
201
202 * source.c (last_source_error): Now bool.
203 (print_source_lines_base): Make "noprint" bool. Only open
204 source file when last_source_visited changes.
205
cb44333d
TT
2062019-08-06 Tom Tromey <tromey@adacore.com>
207
208 * annotate.c (annotate_source_line): Use g_source_cache.
209 * source-cache.c (source_cache::get_plain_source_lines): Change
210 parameters. Populate m_offset_cache.
211 (source_cache::ensure): New method.
212 (source_cache::get_line_charpos): New method.
213 (extract_lines): Move lower. Change parameters.
214 (source_cache::get_source_lines): Move lower.
215 * source-cache.h (class source_cache): Update comment.
216 <get_line_charpos>: New method.
217 <get_source_lines>: Update comment.
218 <clear>: Clear m_offset_cache.
219 <get_plain_source_lines>: Change parameters.
220 <ensure>: New method
221 <m_offset_cache>: New member.
222 * source.c (forget_cached_source_info_for_objfile): Update.
223 (info_source_command): Use g_source_cache.
224 (find_source_lines, open_source_file_with_line_charpos): Remove.
225 (print_source_lines_base, search_command_helper): Use g_source_cache.
226 * source.h (open_source_file_with_line_charpos): Don't declare.
227 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
228 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
229 Use g_source_cache.
230
872dceaa
TT
2312019-08-06 Tom Tromey <tromey@adacore.com>
232
233 * source-cache.c (source_cache::get_plain_source_lines):
234 Remove "first_line" and "last_line" parameters.
235 (source_cache::get_source_lines): Cache plain text.
236 * source-cache.h (class source_cache)
237 <get_plain_source_lines>: Update.
238
269249d9
TT
2392019-08-06 Tom Tromey <tromey@adacore.com>
240
241 * source-cache.c (extract_lines): No longer a method.
242 Changed type of parameter. Include final newline.
243 (selftests::extract_lines_test): New function.
244 (_initialize_source_cache): Likewise.
245 * source-cache.h (class source_cache)
246 <extract_lines>: Don't declare.
247
c0e8dcd8
TT
2482019-08-06 Tom Tromey <tromey@adacore.com>
249
250 * breakpoint.c (init_breakpoint_sal): Update.
251 (breakpoint): Update.
252 * breakpoint.h (struct breakpoint) <filter>: Now a
253 unique_xmalloc_ptr.
254
0b27c27d
CB
2552019-08-05 Christian Biesinger <cbiesinger@google.com>
256
257 * NEWS: Mention dictionary access on blocks.
258 * python/py-block.c (blpy_getitem): New function.
259 (block_object_as_mapping): New struct.
260 (block_object_type): Use new struct for tp_as_mapping field.
261
4ee94178
CB
2622019-08-05 Christian Biesinger <cbiesinger@google.com>
263
264 * objfiles.h (objfile): Add a comment describing partial symbols.
265
8abfcabc
TT
2662019-08-05 Tom Tromey <tromey@adacore.com>
267
268 * compile/compile.c (_initialize_compile): Use _(), not N_().
269 * thread.c (_initialize_thread): Use _(), not N_().
270 * stack.c (_initialize_stack): Use _(), not N_().
271 * printcmd.c (_initialize_printcmd): Use _(), not N_().
272
2b79f376
SM
2732019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
274
275 * dwarf2read.c (struct dw2_symtab_iterator):
276 <want_specific_block>: Remove.
277 <block_index>: Change type to gdb::optional.
278 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
279 change type of BLOCK_INDEX parameter to gdb::optional.
280 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
281 (dw2_lookup_symbol): Don't pass argument for
282 WANT_SPECIFIC_BLOCK.
283 (dw2_expand_symtabs_for_function): Don't pass argument for
284 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
285 (class dw2_debug_names_iterator)
286 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
287 parameter, change BLOCK_INDEX type to gdb::optional.
288 <m_want_specific_block>: Remove.
289 <m_block_index>: Change type to gdb::optional.
290 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
291 gdb::optional. Re-write in function of gdb::optional.
292 (dw2_debug_names_lookup_symbol): Don't pass argument for
293 WANT_SPECIFIC_BLOCK.
294 (dw2_debug_names_expand_symtabs_for_function): Don't pass
295 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
296 BLOCK_INDEX.
297
ae60f04e
PW
2982019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
299
300 * NEWS: Mention changes to "info sources" command.
301
28cd9371
PW
3022019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
303
304 * symtab.c (filename_partial_match_opts): New struct type.
305 (struct output_source_filename_data): New members
306 regexp, c_regexp, partial_match.
307 (output_source_filename): Use new members to decide to print file.
308 (info_sources_option_defs): New variable.
309 (make_info_sources_options_def_group, print_info_sources_header,
310 info_sources_command_completer):
311 New functions.
312 (info_sources_command): Read new optional arguments.
313 (_initialize_symtab): Update info sources help.
314
ca683e3a
AO
3152019-08-02 Alexandre Oliva <oliva@adacore.com>
316
317 * ada-lang.c (exception_support_info_v0): Renamed from...
318 (default_exception_support_info): ... this. Create new
319 definition for v1.
320 (ada_has_this_exception_support): Look up catch_handlers_sym.
321 (ada_exception_support_info_sniffer): Try v0 after default.
322
f1264162
TT
3232019-08-01 Tom Tromey <tromey@adacore.com>
324
325 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
326 gdbarch.h.
327
0a7b2485
CB
3282019-08-01 Christian Biesinger <cbiesinger@google.com>
329
330 * s12z-tdep.c: Fix include path for s12z-opc.h.
331
c6bdbeb7
AH
3322019-08-01 Alan Hayward <alan.hayward@arm.com>
333
334 * NEWS: Require GNU make 3.82.
335
a2bd7b82
TT
3362019-07-16 Tom Tromey <tom@tromey.com>
337
338 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
339 declare.
340
aa3b6533
TT
3412019-07-30 Tom Tromey <tromey@adacore.com>
342
343 * block.c (contained_in): Remove BLOCK_FUNCTION check.
344
a1530dc7
KB
3452019-07-30 Kevin Buettner <kevinb@redhat.com>
346
347 * printcmd.c (print_address_symbolic): Print negative offsets.
348 (build_address_symbolic): Force signed arithmetic when computing
349 offset.
350
2906593f
CB
3512019-07-30 Christian Biesinger <cbiesinger@google.com>
352
353 PR/24474: Add a function to lookup static variables.
354 * NEWS: Mention this new function.
355 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
356 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
357 * python/python.c (python_GdbMethods): Add new function.
358
c620ed88
CB
3592019-07-29 Christian Biesinger <cbiesinger@google.com>
360
361 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
362 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
363 (objfpy_lookup_static_symbol): New function.
364 (objfile_object_methods): Add new functions.
365
bc4268a5
PW
3662019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
367
368 * NEWS: Mention 'set|show print frame-info'. Mention new
369 'presence' value for 'frame-arguments'. Mention new '-frame-info'
370 backtrace argument. Mention that python frame filtering code
371 is now consistent with what 'backtrace' command prints.
372
4b5e8d19
PW
3732019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
374
375 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
376 comments.
377 (print_frame_info_auto, print_frame_info_source_line,
378 print_frame_info_location, print_frame_info_source_and_location,
379 print_frame_info_location_and_address, print_frame_info_short_location):
380 New declarations.
381 (struct frame_print_options): New member print_frame_info.
382 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
383 * stack.h (get_user_print_what_frame_info): New declaration.
384 (frame_show_address): New declaration.
385 * stack.c (print_frame_arguments_choices): New value 'presence'.
386 (print_frame_info_auto, print_frame_info_source_line,
387 print_frame_info_location, print_frame_info_source_and_location,
388 print_frame_info_location_and_address, print_frame_info_short_location,
389 print_frame_info_choices, print_frame_info_print_what): New definitions.
390 (print_frame_args): Only print dots for args if print frame-arguments
391 is 'presence'.
392 (frame_print_option_defs): New element for "frame-info".
393 (get_user_print_what_frame_info): New function.
394 (frame_show_address): Make non static. Move comment to stack.h.
395 (print_frame_info_to_print_what): New function.
396 (print_frame_info): Update comment. Use fp_opts.print_frame_info
397 to decide what to print.
398 (backtrace_command_1): Handle the new print_frame_arguments_presence
399 value.
400 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
401 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
402 (py_print_frame): In non-mi mode, use LOCATION as default for
403 print_what, similarly to frame information printed directly by
404 backtrace command. Handle frame-info user option in non MI mode.
405
6bdfee81
KB
4062019-07-27 Kevin Buettner <kevinb@redhat.com>
407
408 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
409 Add case for debugging 32-bit target on 64-bit host. Revise
410 comment.
411
98a617f8
KB
4122019-07-27 Kevin Buettner <kevinb@redhat.com>
413
414 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
415 instead of find_function_entry_range_from_pc.
416
567238c9
KB
4172019-07-27 Kevin Buettner <kevinb@redhat.com>
418
419 * stack.c (find_frame_funname): Remove code which preferred
420 minsym over symtab sym in "certain pathological cases".
421
2dc80cf8
KB
422 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
423 parameter. Change type of "do_demangle" to bool.
424 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
425 Pass suitable "prefer_sym_over_minsym" flag to
426 build_address_symbolic(). Don't output "+" for negative offsets.
427 * printcmd.c (print_address_symbolic): Update invocation of
428 build_address_symbolic to include a "prefer_sym_over_minsym"
429 flag.
430 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
431 Restrict cases in which use of minimal symbol is preferred to that
432 of a found symbol. Update comments.
433
1aff7173
KB
434 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
435 for entry pc when entry pc is out of range for that FDE.
436
89b085ac
BC
4372019-07-26 Brian Callahan <bcallah@openbsd.org>
438
439 PR gdb/24839:
440 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
441 type.
442
f32feb4a
CB
4432019-07-25 Christian Biesinger <cbiesinger@google.com>
444
445 * python/py-objfile.c (add_separate_debug_file): Fix comment about
446 this function's Python signature.
447
448
4492019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
450
451 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
452 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
453 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
454 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
455 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
456
457
c54e4253
YS
4582019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
459
460 * h8300-tdep.c (h8300_register_name_common): New.
461 h8300_register_name): Use h8300_register_name_common.
462 (h8300s_register_name): Likewise.
463 (h8300sx_register_name): Likewise.
464 (h8300h_register_nam): New.
465 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
466
467
40eadf04
SP
4682019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
469
470 * arm-tdep.c (arm_skip_cmse_entry): New function.
471 (arm_is_sgstubs_section): New function.
472 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
473
bfa2a36d
TT
4742019-07-22 Tom Tromey <tom@tromey.com>
475
476 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
477 Don't self-assign.
478
a8e9d247
AB
4792019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
480
481 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
482 type_print.
483
eb86c5e2
AB
4842019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
485
486 * symtab.c (search_symbols): Adjust msymbol matching type arrays
487 so that GDB doesn't match any msymbols when searching in the
488 TYPES_DOMAIN.
489 (print_symbol_info): Print using typedef_print or type_print based
490 on the type of the symbol. Add updated FIXME comment moved from...
491 (_initialize_symtab): ... move and update FIXME comment to above.
492
a8eab7c6
AB
4932019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
494
495 * NEWS: Mention adding -q option to "info types".
496 * symtab.c (struct info_types_options): New struct.
497 (info_types_options_defs): New variable.
498 (make_info_types_options_def_group): New function.
499 (info_types_command): Use gdb::option framework to parse options.
500 (info_types_command_completer): New function.
501 (_initialize_symtab): Extend the help text on "info types" and
502 register command completer.
503
b4603c34
CB
5042019-07-21 Christian Biesinger <cbiesinger@google.com>
505
506 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
507 (lookup_symbol_in_objfile): Change int to block_enum and add a
508 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
509
c8cdc1e0
CB
5102019-07-20 Christian Biesinger <cbiesinger@google.com>
511
512 * MAINTAINERS (Write After Approval): Add self.
513
01e175fe
AB
5142019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
515
516 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
517 instruction to the dummy code region.
518
56f79b63
TT
5192019-07-19 Tom Tromey <tromey@adacore.com>
520
521 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
522 (ARGSUSED, PARAMS, __func__): Remove rules.
523
4c5aa8e0
AH
5242019-07-19 Alan Hayward <alan.hayward@arm.com>
525
526 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
527 * features/arm/arm-with-iwmmxt.c: Remove.
528 * features/arm/arm-with-iwmmxt.xml: Remove.
529 * features/arm/arm-with-m-fpa-layout.c: Remove.
530 * features/arm/arm-with-m-fpa-layout.xml: Remove.
531 * features/arm/arm-with-m-vfp-d16.c: Remove.
532 * features/arm/arm-with-m-vfp-d16.xml: Remove.
533 * features/arm/arm-with-m.c: Remove.
534 * features/arm/arm-with-m.xml: Remove.
535 * features/arm/arm-with-neon.c: Remove.
536 * features/arm/arm-with-neon.xml: Remove.
537 * features/arm/arm-with-vfpv2.c: Remove.
538 * features/arm/arm-with-vfpv2.xml: Remove.
539 * features/arm/arm-with-vfpv3.c: Remove.
540 * features/arm/arm-with-vfpv3.xml: Remove.
541
f42b2617
AH
5422019-07-19 Alan Hayward <alan.hayward@arm.com>
543
544 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
545
f29ec966
AH
5462019-07-19 Alan Hayward <alan.hayward@arm.com>
547
548 * arch/aarch32.c (aarch32_create_target_description): Create
549 target descriptions using features.
550 * arch/arm.c (arm_create_target_description)
551 (arm_create_mprofile_target_description): Likewise.
552 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
553
d105cce5
AH
5542019-07-19 Alan Hayward <alan.hayward@arm.com>
555
556 * Makefile.in: Add new files.
557 * aarch32-tdep.c: New file.
558 * aarch32-tdep.h: New file.
559 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
560 Call aarch32_read_description.
561 * arch/aarch32.c: New file.
562 * arch/aarch32.h: New file.
563 * arch/arm.c (arm_create_target_description)
564 (arm_create_mprofile_target_description): New function.
565 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
566 (arm_create_target_description)
567 (arm_create_mprofile_target_description): New declaration.
568 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
569 read_description functions.
570 * arm-linux-nat.c (arm_linux_nat_target::read_description):
571 Likewise.
572 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
573 * arm-tdep.c (tdesc_arm_list): New variable.
574 (arm_register_g_packet_guesses): Call create description functions.
575 (arm_read_description) (arm_read_mprofile_description): New
576 function.
577 * arm-tdep.h (arm_read_description)
578 (arm_read_mprofile_description): Add declaration.
579 * configure.tgt: Add new files.
580
afe09f0b
GL
5812019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
582
583 * top.c (new_ui_command): Open specified terminal just once.
584
cd215b2e
TT
5852019-07-18 Tom Tromey <tromey@adacore.com>
586
587 * symtab.c (main_name): Constify return type.
588 * symfile.c (set_initial_language): Update.
589 * symtab.h (main_name): Constify return type.
590
d8f68fcb
TT
5912019-07-17 Tom Tromey <tom@tromey.com>
592
593 * tui/tui-winsource.c (tui_update_source_window)
594 (tui_update_source_window_as_is)
595 (tui_update_source_windows_with_line): Remove return.
596 * tui/tui-disasm.c (tui_show_disassem)
597 (tui_show_disassem_and_update_source): Remove return.
598 * tui/tui.c (tui_reset): Remove return.
599 * tui/tui-wingeneral.c
600 (tui_check_and_display_highlight_if_needed): Remove return.
601
ca5af91e
TT
6022019-07-17 Tom Tromey <tom@tromey.com>
603
604 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
605
5104fe36
TT
6062019-07-17 Tom Tromey <tom@tromey.com>
607
608 * tui/tui-winsource.h (struct tui_exec_info_window)
609 (struct tui_source_window_base): Move from tui-data.h.
610 * tui/tui-winsource.c: Move many method definitions from
611 elsewhere. Remove "structuring" comments.
612 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
613 (tui_source_window_base::refresh_window): Move to
614 tui-winsource.c.
615 * tui/tui-win.c (tui_source_window_base::refresh_all)
616 (tui_source_window_base::update_tab_width)
617 (tui_source_window_base::set_new_height)
618 (tui_source_window_base::do_make_visible_with_new_height): Move to
619 tui-winsource.c.
620 * tui/tui-source.h: Update.
621 * tui/tui-source.c (tui_source_window_base::reset): Move to
622 tui-winsource.c.
623 * tui/tui-disasm.h: Update.
624 * tui/tui-data.h (struct tui_exec_info_window): Move to
625 tui-winsource.h.
626 (struct tui_source_window_base): Likewise.
627 * tui/tui-data.c (tui_source_window_base::clear_detail)
628 (tui_source_window_base, ~tui_source_window_base): Move to
629 tui-winsource.c.
630
daa15dde
TT
6312019-07-17 Tom Tromey <tom@tromey.com>
632
633 * tui/tui-win.c (tui_resize_all)
634 (tui_source_window_base::update_tab_width)
635 (tui_adjust_win_heights): Update.
636 (tui_win_info::make_invisible_and_set_new_height): Rename from
637 make_invisible_and_set_new_height.
638 * tui/tui-data.h (struct tui_win_info)
639 <make_invisible_and_set_new_height>: New method.
640
bfad4537
TT
6412019-07-17 Tom Tromey <tom@tromey.com>
642
643 * tui/tui.c: Update.
644 * tui/tui-source.h (struct tui_source_window): Move from
645 tui-data.h.
646 * tui/tui-layout.c: Update.
647 * tui/tui-disasm.c: Update.
648 * tui/tui-data.h (struct tui_source_window): Move to
649 tui-source.h.
650
88f7e873
TT
6512019-07-17 Tom Tromey <tom@tromey.com>
652
653 * tui/tui-disasm.h (struct tui_disasm_window): Move from
654 tui-data.h.
655 * tui/tui-data.h (struct tui_disasm_window): Move to
656 tui-disasm.h.
657
96bd6233
TT
6582019-07-17 Tom Tromey <tom@tromey.com>
659
660 * tui/tui-regs.h (struct tui_data_item_window): Move from
661 tui-data.h.
662 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
663 * tui/tui-data.h (struct tui_data_item_window): Move to
664 tui-regs.h.
665 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
666
ce38393b
TT
6672019-07-17 Tom Tromey <tom@tromey.com>
668
669 * tui/tui.c: Update.
670 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
671 (tui_cmd_window::max_height): Move to tui-command.c.
672 * tui/tui-layout.c: Update.
673 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
674 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
675 tui-command.c.
676 * tui/tui-command.h (struct tui_cmd_window): Move from
677 tui-data.h.
678 * tui/tui-command.c: Remove "structuring" comments.
679 (tui_cmd_window::clear_detail)
680 (tui_cmd_window::do_make_visible_with_new_height)
681 (tui_cmd_window::max_height): Move from elsewhere.
682
2d8b51cb
TT
6832019-07-17 Tom Tromey <tom@tromey.com>
684
685 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
686 Now static.
687 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
688 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
689
18ab23af
TT
6902019-07-17 Tom Tromey <tom@tromey.com>
691
692 * tui/tui.c: Update.
693 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
694 tui-regs.c.
695 * tui/tui-windata.h: Remove file.
696 * tui/tui-windata.c: Remove file.
697 * tui/tui-win.c (tui_data_window::set_new_height)
698 (tui_data_window::do_make_visible_with_new_height): Move to
699 tui-regs.c.
700 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
701 * tui/tui-regs.c: Remove "structuring" comments.
702 (tui_data_window::first_data_item_displayed)
703 (tui_data_window::delete_data_content_windows)
704 (tui_data_window::erase_data_content)
705 (tui_data_window::display_all_data)
706 (tui_data_window::refresh_all)
707 (tui_data_window::do_scroll_vertical)
708 (tui_data_window::clear_detail, tui_data_window::set_new_height)
709 (tui_data_window::do_make_visible_with_new_height)
710 (tui_data_window::refresh_window): Move from elsewhere.
711 (_initialize_tui_regs): Move to end of file.
712 * tui/tui-layout.c: Update.
713 * tui/tui-hooks.c: Update.
714 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
715 * tui/tui-data.c (tui_data_window::clear_detail): Move to
716 tui-regs.c.
717 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
718
88b7e7cc
TT
7192019-07-17 Tom Tromey <tom@tromey.com>
720
721 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
722 seen.
723
0fcd3711
TT
7242019-07-17 Tom Tromey <tom@tromey.com>
725
726 * tui/tui-win.c (tui_source_window_base::set_new_height)
727 (tui_source_window_base::do_make_visible_with_new_height): Use
728 m_has_locator field directly.
729 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
730 method.
731 (struct tui_source_window_base) <has_locator>: Likewise.
732
4a38112d
TT
7332019-07-17 Tom Tromey <tom@tromey.com>
734
735 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
736 Don't declare.
737 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
738 Remove.
739 * tui/tui-win.c (tui_source_window_base::set_new_height)
740 (tui_source_window_base::set_new_height)
741 (make_invisible_and_set_new_height)
742 (tui_source_window_base::do_make_visible_with_new_height)
743 (tui_source_window_base::do_make_visible_with_new_height):
744 Update.
745 * tui/tui-layout.c (show_source_disasm_command, show_data)
746 (show_source_or_disasm_and_command): Update.
747 * tui/tui-layout.c (show_layout): Update.
748
09129226
TT
7492019-07-17 Tom Tromey <tom@tromey.com>
750
751 * tui/tui-layout.c (make_data_window): Remove.
752 (show_data): Unify creation and re-initialization cases.
753
4a8a5e84
TT
7542019-07-17 Tom Tromey <tom@tromey.com>
755
756 * tui/tui-layout.c (make_source_window, make_disasm_window):
757 Remove.
758 (show_data): Unify creation and re-initialization cases.
759
76d2be8e
TT
7602019-07-17 Tom Tromey <tom@tromey.com>
761
762 * tui/tui-layout.c (make_command_window): Remove.
763 (show_source_disasm_command, show_source_or_disasm_and_command):
764 Unify creation and re-initialization cases.
765
890b8bde
TT
7662019-07-17 Tom Tromey <tom@tromey.com>
767
768 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
769 creation and re-initialization cases.
770
2cdfa113
TT
7712019-07-17 Tom Tromey <tom@tromey.com>
772
773 * tui/tui-regs.c (tui_get_register): Return void.
774
8e3cfd09
TT
7752019-07-17 Tom Tromey <tom@tromey.com>
776
777 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
778 Simplify.
779
f4e04977
TT
7802019-07-17 Tom Tromey <tom@tromey.com>
781
782 * tui/tui-layout.c (show_source_disasm_command): Simplify window
783 resetting.
784
0379b883
TT
7852019-07-17 Tom Tromey <tom@tromey.com>
786
787 * tui/tui.h (tui_set_layout_by_name): Don't declare.
788 * tui/tui-regs.c (tui_reg_layout): New function.
789 (tui_show_registers, tui_reg_command): Use it.
790 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
791 (tui_layout_command): Rename from tui_set_layout_by_name. Change
792 parameters.
793 (tui_layout_command): Remove.
794
b7fbad91
TT
7952019-07-17 Tom Tromey <tom@tromey.com>
796
797 * tui/tui-layout.h (tui/tui-layout): Return void.
798 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
799
4e1e56b9
TT
8002019-07-17 Tom Tromey <tom@tromey.com>
801
802 * tui/tui-layout.c (show_source_disasm_command, show_data):
803 Update.
804 (reset_locator): Remove.
805 (show_source_or_disasm_and_command): Update.
806
1e0c09ba
TT
8072019-07-17 Tom Tromey <tom@tromey.com>
808
809 * tui/tui-source.c (tui_source_window_base::reset): Remove
810 win_type parameter.
811 * tui/tui-layout.c (make_command_window, make_source_window)
812 (make_disasm_window, make_data_window)
813 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
814 (reset_locator, show_source_or_disasm_and_command): Update.
815 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
816 win_type parameter.
817 (struct tui_source_window_base) <reset>: Likewise.
818
1bf605de
TT
8192019-07-17 Tom Tromey <tom@tromey.com>
820
821 * tui/tui-layout.c (show_source_disasm_command): Use
822 reset_locator.
823 (reset_locator): New function.
824 (init_and_make_win): Remove.
825 (show_source_or_disasm_and_command): Use reset_locator.
826
098f9ed4
TT
8272019-07-17 Tom Tromey <tom@tromey.com>
828
829 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
830 condition.
831 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
832 Remove condition.
833 * tui/tui-source.c (tui_source_window_base::reset): New method.
834 * tui/tui-layout.c (make_command_window): Don't call
835 init_and_make_win.
836 (make_source_window, make_disasm_window): Don't call
837 make_source_or_disasm_window.
838 (make_data_window): Don't call init_and_make_win. Change calling
839 convention.
840 (show_source_disasm_command, show_data): Simplify.
841 (make_source_or_disasm_window): Remove.
842 (show_source_or_disasm_and_command): Simplify.
843 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
844 (struct tui_source_window_base) <reset>: Likewise.
845 <execution_info>: Remove initializer.
846 * tui/tui-data.c (tui_source_window_base): Initialize
847 execution_info.
848
80110957
TT
8492019-07-17 Tom Tromey <tom@tromey.com>
850
851 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
852 variable.
853
cf82af05
TT
8542019-07-17 Tom Tromey <tom@tromey.com>
855
856 * tui/tui.c (tui_rl_other_window): Update.
857 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
858 superclass method first. Always iterate over regs_content.
859 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
860 method.
861 * tui/tui-win.c (tui_set_focus_command): Update.
862
01aeb396
TT
8632019-07-17 Tom Tromey <tom@tromey.com>
864
865 * tui/tui-win.c (tui_set_focus_command): Rename from
866 tui_set_focus. Call tui_enable.
867 (tui_set_focus_command): Remove.
868
fd6c75ee
TT
8692019-07-17 Tom Tromey <tom@tromey.com>
870
871 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
872 refresh_window.
873 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
874 touchwin.
875 (tui_data_window::refresh_window): Call refresh_window on data
876 items. Always call superclass refresh_window.
877 (tui_win_info::refresh): Remove.
878 (tui_source_window_base::refresh_window): Update.
879 (tui_refresh_all): Update.
880 * tui/tui-layout.c (show_source_disasm_command): Remove call to
881 refresh_window.
882 (show_source_or_disasm_and_command): Likewise.
883 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
884 (struct tui_source_window_base) <refresh>: Likewise.
885
f6cc34a9
TT
8862019-07-17 Tom Tromey <tom@tromey.com>
887
888 * tui/tui-winsource.c (tui_clear_source_content)
889 (tui_show_source_content): Update.
890 * tui/tui-source.c (tui_source_window::showing_source_p): Check
891 whether content is empty.
892 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
893 Remove.
894
f31ec9af
TT
8952019-07-17 Tom Tromey <tom@tromey.com>
896
897 * tui/tui-winsource.c (tui_erase_source_content): Clear the
898 window's contents.
899 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
900 * tui/tui-source.c (tui_set_source_content_nil): Remove.
901
d1b6f1e5
TT
9022019-07-17 Tom Tromey <tom@tromey.com>
903
904 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
905 (struct tui_data_item_window): Update.
906
d9743a13
TT
9072019-07-17 Tom Tromey <tom@tromey.com>
908
909 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
910 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
911 defines.
912
caf0bc4e
TT
9132019-07-17 Tom Tromey <tom@tromey.com>
914
915 * tui/tui-winsource.h (tui_erase_source_content)
916 (tui_clear_source_content): Remove "display_prompt" parameter.
917 * tui/tui-winsource.c (tui_update_source_window_as_is)
918 (tui_update_source_windows_with_addr): Update.
919 (tui_clear_source_content): Remove "display_prompt" parameter.
920 (tui_erase_source_content): Likewise. Simplify.
921 (tui_show_source_content): Update.
922 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
923 * tui/tui-stack.c (tui_show_frame_info): Update.
924 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
925 Remove defines.
926
9d391078
TT
9272019-07-17 Tom Tromey <tom@tromey.com>
928
929 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
930 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
931 parameter.
932 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
933 parameter.
934
a38da35d
TT
9352019-07-17 Tom Tromey <tom@tromey.com>
936
937 * tui/tui-winsource.c (tui_clear_source_content)
938 (tui_show_source_content, tui_show_exec_info_content)
939 (tui_clear_exec_info_content): Update.
940 * tui/tui-stack.c (tui_show_locator_content): Update.
941 (tui_show_frame_info): Update.
942 * tui/tui-source.h (tui_source_window): Don't declare.
943 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
944 from tui_source_is_displayed.
945 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
946 Remove field.
947 (struct tui_source_window_base) <content_in_use>: New field. Now
948 bool.
949 (struct tui_source_window) <showing_source_p>: New method.
950 (TUI_SRC_WIN): Change cast.
951 * tui/tui-data.c (tui_initialize_static_data): Update.
952
c2cd8994
TT
9532019-07-17 Tom Tromey <tom@tromey.com>
954
955 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
956 location_matches_p.
957 * tui/tui-source.c (tui_source_window::location_matches_p): New
958 method.
959 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
960 method.
961 * tui/tui-data.h (struct tui_source_window_base)
962 <location_matches_p>: New method.
963 (struct tui_source_window, struct tui_disasm_window)
964 <location_matches_p>: Likewise.
965
4dde7b34
TT
9662019-07-17 Tom Tromey <tom@tromey.com>
967
968 * tui/tui-win.c (tui_set_win_height_command): Rename from
969 tui_set_win_height.
970 (tui_set_win_height_command): Remove.
971
b73dd877
TT
9722019-07-17 Tom Tromey <tom@tromey.com>
973
974 * tui/tui-source.c (tui_source_window): New constructor. Add
975 observer.
976 (~tui_source_window): New destructor.
977 (tui_source_window::style_changed): New method.
978 * tui/tui-hooks.c (tui_redisplay_source): Remove.
979 (tui_attach_detach_observers): Update.
980 * tui/tui-data.h (struct tui_source_window): Make constructor not
981 inline. Add destructor.
982 (struct tui_source_window) <style_changed>: New method.
983 <m_observable>: New member.
984
ae2b5380
TT
9852019-07-17 Tom Tromey <tom@tromey.com>
986
987 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
988 * tui/tui-win.c (tui_resize_all): Fix typo.
989
1ce3e844
TT
9902019-07-17 Tom Tromey <tom@tromey.com>
991
992 * tui/tui-wingeneral.h (tui_refresh_all): Update.
993 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
994 (tui_refresh_all): Remove "list" parameter. Use foreach.
995 * tui/tui-win.c (window_name_completer): Use foreach.
996 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
997 (update_tab_width): Likewise.
998 * tui/tui-layout.c (show_layout): Update.
999 * tui/tui-data.h (class tui_window_iterator): New.
1000 (struct all_tui_windows): New.
1001 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1002
fe3eaf1c
TT
10032019-07-17 Tom Tromey <tom@tromey.com>
1004
1005 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1006 parameter. Don't reference globals.
1007 (tui_reg_command): Update.
1008
368c1354
TT
10092019-07-17 Tom Tromey <tom@tromey.com>
1010
1011 * tui/tui-regs.c (tui_show_registers): Simplify.
1012
e80cd204
TT
10132019-07-17 Tom Tromey <tom@tromey.com>
1014
1015 * tui/tui-regs.c (tui_show_registers): Update.
1016 (tui_show_register_group): Add win_info parameter.
1017
aca2dd16
TT
10182019-07-17 Tom Tromey <tom@tromey.com>
1019
1020 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1021 Rename from tui_display_reg_element_at_line.
1022 (tui_data_window::display_registers_from_line): Update.
1023 * tui/tui-data.h (struct tui_data_window)
1024 <display_reg_element_at_line>: New method.
1025
517e9505
TT
10262019-07-17 Tom Tromey <tom@tromey.com>
1027
1028 * tui/tui-regs.h (tui_display_registers_from)
1029 (tui_display_registers_from_line): Don't declare.
1030 * tui/tui-windata.c (tui_data_window::display_all_data)
1031 (tui_data_window::refresh_all)
1032 (tui_data_window::do_scroll_vertical): Update.
1033 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1034 from tui_display_registers_from.
1035 (tui_display_reg_element_at_line): Update.
1036 (tui_data_window::display_registers_from_line): Rename from
1037 tui_display_registers_from_line.
1038 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1039 display_registers_from_line>: New methods.
1040
f76d8b19
TT
10412019-07-17 Tom Tromey <tom@tromey.com>
1042
1043 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1044 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1045 from tui_erase_data_content.
1046 (tui_data_window::display_all_data)
1047 (tui_data_window::refresh_all)
1048 (tui_data_window::do_scroll_vertical): Update.
1049 * tui/tui-regs.c (tui_show_registers): Update.
1050 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1051 New method.
1052
b4094625
TT
10532019-07-17 Tom Tromey <tom@tromey.com>
1054
1055 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1056 declare.
1057 * tui/tui-windata.c
1058 (tui_data_window::delete_data_content_windows): Rename from
1059 tui_delete_data_content_windows.
1060 (tui_data_window::display_all_data)
1061 (tui_data_window::do_scroll_vertical): Update.
1062 * tui/tui-data.h (struct tui_data_window)
1063 <delete_data_content_windows>: New method.
1064
c223a729
TT
10652019-07-17 Tom Tromey <tom@tromey.com>
1066
1067 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1068 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1069
50daf268
TT
10702019-07-17 Tom Tromey <tom@tromey.com>
1071
1072 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1073 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1074 from tui_display_all_data.
1075 * tui/tui-win.c
1076 (tui_data_window::do_make_visible_with_new_height): Update.
1077 * tui/tui-regs.c (tui_show_registers): Update.
1078 * tui/tui-layout.c (tui_set_layout): Update.
1079 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1080 method.
1081
df5f8cab
TT
10822019-07-17 Tom Tromey <tom@tromey.com>
1083
1084 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1085 * tui/tui-windata.c (tui_display_data_from): Remove.
1086 (tui_data_window::refresh_all): Update.
1087
80cb6c27
TT
10882019-07-17 Tom Tromey <tom@tromey.com>
1089
1090 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1091 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1092 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1093 tui_display_registers_from_line.
1094 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1095 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1096 "force_display" parameter.
1097
baff0c28
TT
10982019-07-17 Tom Tromey <tom@tromey.com>
1099
1100 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1101 declare.
1102 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1103 Rename from tui_first_reg_element_no_inline.
1104 (tui_display_reg_element_at_line)
1105 (tui_display_registers_from_line): Update.
1106 * tui/tui-data.h (struct tui_data_window)
1107 <first_reg_element_no_inline>: New method.
1108
3b23c5f2
TT
11092019-07-17 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-windata.c (tui_display_data_from)
1112 (tui_data_window::do_scroll_vertical): Update.
1113 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1114 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1115 Rename from tui_line_from_reg_element_no.
1116 (tui_display_registers_from_line): Update.
1117 * tui/tui-data.h (struct tui_data_window)
1118 <line_from_reg_element_no>: New method.
1119
0b5ec218
TT
11202019-07-17 Tom Tromey <tom@tromey.com>
1121
1122 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1123 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1124 tui_last_regs_line_no.
1125 (tui_display_reg_element_at_line)
1126 (tui_display_registers_from_line): Update.
1127 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1128 method.
1129
0807ab7b
TT
11302019-07-17 Tom Tromey <tom@tromey.com>
1131
1132 PR tui/24722:
1133 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1134 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1135 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1136 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1137 (tui_update_breakpoint_info): Likewise.
1138 * tui/tui-hooks.c (tui_event_create_breakpoint)
1139 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1140 Update.
1141
9ad7fdef
TT
11422019-07-17 Tom Tromey <tom@tromey.com>
1143
1144 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1145
5813316f
TT
11462019-07-17 Tom Tromey <tom@tromey.com>
1147
1148 * tui/tui-winsource.c (tui_update_source_window_as_is)
1149 (tui_update_source_windows_with_addr): Update.
1150 * tui/tui-source.h (tui_set_source_content)
1151 (tui_show_symtab_source): Add "win_info" parameter.
1152 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1153 parameter.
1154 (tui_show_symtab_source): Likewise.
1155
00e264e7
TT
11562019-07-17 Tom Tromey <tom@tromey.com>
1157
1158 * tui/tui-wingeneral.c
1159 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1160
06210ce4
TT
11612019-07-17 Tom Tromey <tom@tromey.com>
1162
1163 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1164 (struct tui_cmd_window) <can_scroll>: New method.
1165 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1166 method.
1167
381befee
TT
11682019-07-17 Tom Tromey <tromey@adacore.com>
1169
1170 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1171 do_field_signed>: Rename. Change type of "value".
1172 * ui-out.c (ui_out::field_signed): Rename from field_int.
1173 Change type of "value".
1174 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1175 type of "value".
1176 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1177 do_field_int. Change type of "value".
1178 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1179 do_field_int. Change type of "value".
1180 * tracepoint.c (trace_status_mi, tfind_1)
1181 (print_one_static_tracepoint_marker): Update.
1182 * thread.c (print_thread_info_1, print_selected_thread_frame):
1183 Update.
1184 * stack.c (print_frame, print_frame_info): Update.
1185 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1186 Update.
1187 * source.c (print_source_lines_base): Update.
1188 * skip.c (info_skip_command): Update.
1189 * record-btrace.c (btrace_ui_out_decode_error)
1190 (btrace_call_history_src_line): Update.
1191 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1192 Update.
1193 * progspace.c (print_program_space): Update.
1194 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1195 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1196 do_field_int. Change type of "value".
1197 * mi/mi-out.c (mi_ui_out::do_table_begin)
1198 (mi_ui_out::do_table_header): Update.
1199 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1200 type of "value".
1201 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1202 (mi_cmd_data_list_changed_registers, output_register)
1203 (mi_cmd_data_read_memory, mi_load_progress)
1204 (mi_cmd_trace_frame_collected): Update.
1205 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1206 Update.
1207 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1208 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1209 (mi_cmd_var_list_children, varobj_update_one): Update.
1210 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1211 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1212 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1213 * inferior.c (print_inferior): Update.
1214 * gdb_bfd.c (print_one_bfd): Update.
1215 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1216 Update.
1217 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1218 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1219 do_field_int. Change type of "value".
1220 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1221 do_field_int. Change type of "value".
1222 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1223 (print_one_breakpoint_location, print_it_catch_fork)
1224 (print_one_catch_fork, print_it_catch_vfork)
1225 (print_one_catch_vfork, print_it_catch_solib)
1226 (print_it_catch_exec, print_it_ranged_breakpoint)
1227 (print_mention_watchpoint, print_mention_masked_watchpoint)
1228 (bkpt_print_it, update_static_tracepoint): Update.
1229 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1230 * break-catch-syscall.c (print_it_catch_syscall): Update.
1231 * ada-tasks.c (print_ada_task_info): Update.
1232 * ada-lang.c (print_it_exception, print_mention_exception):
1233 Update.
1234
6b78c3f8
AB
12352019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1236
1237 PR breakpoints/24541
1238 * gdbarch.c: Regenerate.
1239 * gdbarch.h: Regenerate.
1240 * gdbarch.sh: Adjust return type and parameter types for
1241 'stap_adjust_register'.
1242 (i386_stap_adjust_register): Adjust signature and return new
1243 register name.
1244 * stap-probe.c (stap_parse_register_operand): Adjust use of
1245 'gdbarch_stap_adjust_register'.
1246
d72a9b85
TT
12472019-07-17 Tom Tromey <tromey@adacore.com>
1248
1249 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1250 declare VEC.
1251 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1252 std::vector.
1253 (struct s390_process_info): Add initializers.
1254 (s390_add_process): Use new.
1255 (s390_linux_nat_target::low_forget_process): Use delete.
1256 (s390_linux_nat_target::low_new_fork)
1257 (s390_linux_nat_target::stopped_by_watchpoint)
1258 (s390_linux_nat_target::low_prepare_to_resume)
1259 (s390_linux_nat_target::insert_watchpoint)
1260 (s390_linux_nat_target::insert_hw_breakpoint)
1261 (s390_linux_nat_target::remove_watchpoint)
1262 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1263
206e6c58
JB
12642019-07-16 John Baldwin <jhb@FreeBSD.org>
1265
1266 * aarch64-fbsd-nat.c: Include regcache.h.
1267 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1268 argument.
1269 (aarch64_fbsd_nat_target::fetch_registers)
1270 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1271 variable.
1272 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1273
cbde90f2
JB
12742019-07-16 John Baldwin <jhb@FreeBSD.org>
1275
1276 * fbsd-nat.c: Include gdbarch.h.
1277
07128006
TT
12782019-07-15 Tom Tromey <tromey@adacore.com>
1279
1280 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1281
1f77b012
TT
12822019-07-15 Tom Tromey <tromey@adacore.com>
1283
1284 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1285 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1286 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1287 * cli-out.c (cli_ui_out::do_field_int): New method.
1288 * ui-out.c (ui_out::field_unsigned): New method.
1289 * symfile.c (generic_load): Use field_unsigned.
1290 (print_transfer_performance): Likewise.
1291 * record-btrace.c (ui_out_field_uint): Remove.
1292 (btrace_call_history_insn_range, btrace_call_history): Use
1293 field_unsigned.
1294 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1295 field_unsigned.
1296 * ui-out.h (class ui_out) <field_unsigned>: New method.
1297 <do_field_unsigned>: Likewise.
1298
33eca680
TT
12992019-07-15 Tom Tromey <tromey@adacore.com>
1300
1301 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1302 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1303 * target.c (flash_erase_command): Use field_string.
1304 * infrun.c (print_signal_received_reason): Use field_string.
1305 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1306 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1307 field_string.
1308 * ada-tasks.c (print_ada_task_info): Use field_string.
1309
ca8d69be
TT
13102019-07-15 Tom Tromey <tromey@adacore.com>
1311
1312 * target.c (flash_erase_command): Use field_core_addr.
1313 * symfile.c (generic_load): Use field_core_addr.
1314 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1315 Use field_core_addr.
1316 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1317 field_core_addr.
1318
0d4e84ed
AB
13192019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1322 value if its desired type is smaller than a CORE_ADDR and signed.
1323
9a49df9d
AB
13242019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1325
1326 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1327 of changes to field names, and use new is_reference field to
1328 decide if a property is a reference or not.
1329 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1330 field.
1331 (struct dwarf2_property_baton): Update header comment, rename
1332 'referenced_type' to 'property_type' and update comments.
1333 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1334 default property type, store in property baton, update to take
1335 accound of renamed field.
1336 (read_func_scope): Update call to attr_to_dynamic_prop.
1337 (read_array_type): Likewise.
1338 (dwarf2_per_cu_addr_sized_int_type): New function.
1339 (read_subrange_index_type): Move type finding code to
1340 dwarf2_per_cu_addr_sized_int_type.
1341 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1342 (dwarf2_per_cu_addr_type): New function.
1343 (set_die_type): Update calls to attr_to_dynamic_prop.
1344
b86352cf
AB
13452019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * dwarf2read.c (read_subrange_index_type): New function.
1348 (read_subrange_type): Move code into new function and call it.
1349 * gdbtypes.c (create_range_type): Add some asserts.
1350
603490bf
AB
13512019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1352
1353 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1354 update return statements.
1355 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1356 declaration, and update comment to match.
1357 * gdbtypes.c (resolve_dynamic_array): Update call to
1358 dwarf2_evaluate_property to match new return type.
1359
592f9d27
AB
13602019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * valarith.c (value_subscripted_rvalue): Change lowerbound
1363 parameter type from int to LONGEST.
1364 * value.h (value_subscripted_rvalue): Likewise in declaration.
1365
60cfcb20
AB
13662019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * cli/cli-utils.c (info_print_command_completer): New function.
1369 * cli/cli-utils.h: Add 'completer.h' include, and forward
1370 declaration for 'struct cmd_list_element'.
1371 (info_print_command_completer): Declare.
1372 * stack.c (_initialize_stack): Add completer for 'info locals' and
1373 'info args'.
1374 * symtab.c (_initialize_symtab): Add completer for 'info
1375 variables' and 'info functions'.
1376 * NEWS: Mention completion for additional info commands.
1377
b16507e0
AB
13782019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1379
1380 * cli/cli-utils.c (extract_info_print_args): Delete.
1381 (extract_arg_maybe_quoted): Delete.
1382 (info_print_options_defs): New variable.
1383 (make_info_print_options_def_group): New function.
1384 (extract_info_print_options): Define new function.
1385 * cli/cli-utils.h (extract_info_print_args): Delete.
1386 (struct info_print_options): New structure.
1387 (extract_info_print_options): Declare new function.
1388 * stack.c (info_locals_command): Update to use new
1389 extract_info_print_options, also add a header comment.
1390 (info_args_command): Likewise.
1391 * symtab.c (info_variables_command): Likewise.
1392 (info_functions_command): Likewise.
1393
021d8588
AB
13942019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1397 to extract string arguments.
1398 * common/common-utils.c (extract_string_maybe_quoted): New function.
1399 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1400
b777eb6d
TT
14012019-07-11 Tom Tromey <tromey@adacore.com>
1402
1403 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1404 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1405 * top.h (gdbinit): Don't declare.
1406 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1407 into...
1408 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1409 * top.c (gdb_init): Don't call init_cli_cmds.
1410 (gdbinit): Remove.
1411 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1412
72ee03ff
TT
14132019-07-11 Tom Tromey <tromey@adacore.com>
1414
1415 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1416 after it has been moved.
1417
00db9531
SM
14182019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1419
1420 * valops.c (value_must_coerce_to_target): Change return type to
1421 bool.
1422 * value.h (value_must_coerce_to_target): Likewise.
1423
f2478a7e
SM
14242019-07-10 Simon Marchi <simon.marchi@efficios.com>
1425
1426 * breakpoint.c (is_hardware_watchpoint): Remove
1427 forward-declaration.
1428 (is_masked_watchpoint): Change return type to bool.
1429 (is_tracepoint): Likewise.
1430 (is_breakpoint): Likewise.
1431 (is_hardware_watchpoint): Likewise.
1432 (is_watchpoint): Likewise.
1433 (is_no_memory_software_watchpoint): Likewise.
1434 (is_catchpoint): Likewise.
1435 (breakpoint_1): Make FILTER parameter's return type bool.
1436 is_masked_watchpoint): Change return type to bool.
1437 (save_breakpoints): Make FILTER parameter's return type bool.
1438 * breakpoint.h (is_breakpoint): Change return type to bool.
1439 (is_watchpoint): Likewise.
1440 (is_catchpoint): Likewise.
1441 (is_tracepoint): Likewise.
1442
0d12e84c
TT
14432019-07-10 Tom Tromey <tom@tromey.com>
1444
1445 * defs.h: Don't include gdbarch.h.
1446 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1447 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1448 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1449 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1450 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1451 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1452 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1453 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1454 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1455 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1456 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1457 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1458 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1459 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1460 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1461 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1462 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1463 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1464 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1465 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1466 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1467 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1468 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1469 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1470 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1471 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1472 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1473
f06f1252
TT
14742019-07-10 Tom Tromey <tromey@adacore.com>
1475
1476 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1477 * breakpoint.c (init_ada_exception_breakpoint): Register as
1478 bp_catchpoint.
1479 (print_one_breakpoint_location, print_one_breakpoint): Use
1480 is_ada_exception_catchpoint.
1481 * ada-lang.c (class ada_catchpoint_location): Pass
1482 bp_loc_software_breakpoint to bp_location constructor.
1483 (is_ada_exception_catchpoint): New function.
1484
7a5d944b
TT
14852019-07-10 Tom Tromey <tromey@adacore.com>
1486
1487 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1488 VEC.
1489 (struct arm_exidx_entry): New method operator<.
1490 (struct arm_exidx_data) <section_maps>: Change type.
1491 (arm_exidx_data_free): Remove.
1492 (arm_exidx_data_key): Change type. Move lower.
1493 (arm_exidx_new_objfile): Update.
1494 (arm_compare_exidx_entries): Remove.
1495 (arm_find_exidx_entry, _initialize_arm_tdep)
1496
48c66e1d
TT
14972019-07-10 Tom Tromey <tromey@adacore.com>
1498
1499 * solib-spu.c (ocl_program_data_key): Change type.
1500 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1501 Update.
1502
a269fbf1
TT
15032019-07-10 Tom Tromey <tromey@adacore.com>
1504
1505 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1506 (struct solib_aix_inferior_data) <library_list>: Change type.
1507 (solib_aix_inferior_data_handle): Change type.
1508 (get_solib_aix_inferior_data): Update.
1509 (solib_aix_free_library_list): Remove.
1510 (library_list_start_library): Update.
1511 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1512 return type.
1513 (solib_aix_get_library_list)
1514 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1515 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1516
c294730c
TT
15172019-07-10 Tom Tromey <tromey@adacore.com>
1518
1519 * solib-dsbt.c (struct dsbt_info): Add initializers.
1520 (solib_dsbt_pspace_data): Change type.
1521 (dsbt_pspace_data_cleanup): Remove.
1522 (get_dsbt_info, _initialize_dsbt_solib): Update.
1523
9d52077d
TT
15242019-07-10 Tom Tromey <tromey@adacore.com>
1525
1526 * spu-tdep.c (spu_overlay_data): Change type.
1527 (spu_get_overlay_table, spu_overlay_new_objfile)
1528 (_initialize_spu_tdep): Update.
1529
22a20dca
TT
15302019-07-10 Tom Tromey <tromey@adacore.com>
1531
1532 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1533 destructor.
1534 (dbx_objfile_data_key): Change type and declare later.
1535 (DBX_SYMFILE_INFO): Rewrite.
1536 * dbxread.c (dbx_objfile_data_key): Change type.
1537 (dbx_symfile_init): Update.
1538 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1539 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1540 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1541
cb60f420
TT
15422019-07-10 Tom Tromey <tromey@adacore.com>
1543
1544 * jit.c (jit_program_space_key): Change type. Move lower.
1545 (get_jit_program_space_data): Update.
1546 (jit_program_space_data_cleanup): Remove.
1547 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1548 Update.
1549 (struct jit_program_space_data): Add initializers.
1550
51df2ae3
TT
15512019-07-10 Tom Tromey <tromey@adacore.com>
1552
1553 * solib-darwin.c (struct darwin_info): Add initializers.
1554 (solib_darwin_pspace_data): Change type.
1555 (darwin_pspace_data_cleanup): Remove.
1556 (get_darwin_info, _initialize_darwin_solib): Update.
1557
18101a35
TT
15582019-07-10 Tom Tromey <tromey@adacore.com>
1559
1560 * remote-sim.c (struct sim_inferior_data): Add initializers,
1561 constructor, and destructor.
1562 (sim_inferior_data_key): Change type. Move lower.
1563 (check_for_duplicate_sim_descriptor): Update.
1564 (get_sim_inferior_data): Use new. Update.
1565 (~sim_inferior_data_cleanup): Rename from
1566 sim_inferior_data_cleanup. Simplify.
1567 (gdbsim_close_inferior, simulator_command)
1568 (sim_command_completer, _initialize_remote_sim): Update.
1569 (next_pid, INITIAL_PID): Move earlier.
1570
05b08ac1
TT
15712019-07-10 Tom Tromey <tromey@adacore.com>
1572
1573 * python/python-internal.h (create_thread_object): Return
1574 gdbpy_ref.
1575 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1576 * python/py-inferior.c (struct threadlist_entry): Add
1577 constructor.
1578 <thread_obj>: Now a gdbpy_ref.
1579 (thread_to_thread_object): Update.
1580 (add_thread_object): Use new.
1581 (delete_thread_object): Use delete.
1582 (infpy_threads): Update.
1583 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1584 GIL.
1585
32372d80
TT
15862019-07-10 Tom Tromey <tromey@adacore.com>
1587
1588 * valops.c (value_cast): Specialize error message for Ada.
1589
5c458ae8
SM
15902019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1591
1592 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1593
4c462cb0
SM
15942019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1595
1596 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1597 bpstat_should_step): Return bool, adjust comments.
1598 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1599 bpstat_should_step): Likewise.
1600
89abbcc2
AH
16012019-07-10 Alan Hayward <alan.hayward@arm.com>
1602
1603 * features/Makefile: Use feature target descriptions for Arm.
1604 * features/arm/arm-core.c: Generate new file.
1605 * features/arm/arm-fpa.c: Likewise.
1606 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1607 * features/arm/arm-m-profile.c: Likewise.
1608 * features/arm/arm-vfpv2.c: Likewise.
1609 * features/arm/arm-vfpv3.c: Likewise.
1610 * features/arm/xscale-iwmmxt.c: Likewise.
1611 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1612
166a82be
AH
16132019-07-10 Alan Hayward <alan.hayward@arm.com>
1614
1615 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1616 ptrace earlier.
1617
9fb4c7e9
AH
16182019-07-10 Alan Hayward <alan.hayward@arm.com>
1619
1620 * features/aarch64-pauth.c: Regenerate.
1621
e2d0f980
SM
16222019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1623
1624 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1625 bool.
1626 (bpstat_what): Use false instead of 0.
1627
a38118e5
PA
16282019-07-09 Pedro Alves <palves@redhat.com>
1629
1630 * break-catch-throw.c (is_exception_catchpoint): New.
1631 * breakpoint.c (print_one_breakpoint_location): New parameter
1632 'raw_loc'. Handle it. Use
1633 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1634 looking at the breakpoint's type.
1635 (print_one_breakpoint): If handling "maint info breakpoints", also
1636 print locations of exception catchpoints.
1637 * breakpoint.h (is_exception_catchpoint): Declare.
1638
cb1e4e32
PA
16392019-07-09 Pedro Alves <palves@redhat.com>
1640
1641 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1642 "addr" field.
1643 (allocate_location_exception_catchpoint): New.
1644 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1645 (initialize_throw_catchpoint_ops): Install
1646 allocate_location_exception_catchpoint as allocate_location
1647 method.
1648 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1649 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1650 bp_loc_other.
1651 (breakpoint_address_is_meaningful): Delete.
1652 (bl_address_is_meaningful): New.
1653 (breakpoint_locations_match): Adjust comment.
1654 (bp_location_from_bp_type): New, factored out of...
1655 (bp_location::bp_location(breakpoint *)): ... this.
1656 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1657 factored out of...
1658 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1659 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1660 breakpoint_address_is_meaningful.
1661 (bp_locations_compare): Adjust comment.
1662 (update_global_location_list): Use bl_address_is_meaningful
1663 instead of breakpoint_address_is_meaningful.
1664 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1665 explicit.
1666 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1667 * python/py-breakpoint.c (bppy_get_location): No longer check
1668 whether location is null.
1669
b58a68fe
PA
16702019-07-09 Pedro Alves <palves@redhat.com>
1671
1672 PR c++/15468
1673 * breakpoint.c (print_one_breakpoint_location): Remove
1674 single-location assert.
1675
268a13a5
TT
16762019-07-09 Tom Tromey <tom@tromey.com>
1677
1678 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1679 * configure: Rebuild.
1680 * configure.ac: Change common to gdbsupport.
1681 * gdbsupport: Rename from common.
1682 * acinclude.m4: Change common to gdbsupport.
1683 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1684 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1685 gdbsupport.
1686 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1687 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1688 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1689 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1690 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1691 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1692 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1693 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1694 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1695 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1696 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1697 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1698 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1699 coff-pe-read.c, command.h, compile/compile-c-support.c,
1700 compile/compile-c.h, compile/compile-cplus-symbols.c,
1701 compile/compile-cplus-types.c, compile/compile-cplus.h,
1702 compile/compile-loc2c.c, compile/compile.c, completer.c,
1703 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1704 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1705 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1706 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1707 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1708 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1709 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1710 features/aarch64-core.c, features/aarch64-fpu.c,
1711 features/aarch64-pauth.c, features/aarch64-sve.c,
1712 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1713 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1714 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1715 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1716 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1717 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1718 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1719 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1720 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1721 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1722 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1723 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1724 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1725 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1726 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1727 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1728 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1729 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1730 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1731 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1732 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1733 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1734 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1735 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1736 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1737 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1738 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1739 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1740 minsyms.c, mips-linux-tdep.c, namespace.h,
1741 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1742 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1743 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1744 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1745 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1746 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1747 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1748 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1749 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1750 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1751 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1752 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1753 procfs.c, producer.c, progspace.h, psymtab.h,
1754 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1755 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1756 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1757 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1758 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1759 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1760 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1761 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1762 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1763 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1764 target-memory.c, target.c, target.h, target/waitstatus.c,
1765 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1766 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1767 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1768 unittests/array-view-selftests.c,
1769 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1770 unittests/common-utils-selftests.c,
1771 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1772 unittests/format_pieces-selftests.c,
1773 unittests/function-view-selftests.c,
1774 unittests/lookup_name_info-selftests.c,
1775 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1776 unittests/mkdir-recursive-selftests.c,
1777 unittests/observable-selftests.c,
1778 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1779 unittests/parse-connection-spec-selftests.c,
1780 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1781 unittests/scoped_fd-selftests.c,
1782 unittests/scoped_mmap-selftests.c,
1783 unittests/scoped_restore-selftests.c,
1784 unittests/string_view-selftests.c, unittests/style-selftests.c,
1785 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1786 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1787 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1788 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1789 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1790 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1791
5b0e2db4
AB
17922019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1795 bool value.
1796 (decode_digits_ordinary): Set explicit_line field in sal.
1797 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1798 symtab_and_line that was set on an explicit line number in
1799 assembler code. Do always update the recorded symtab and line if
1800 we do skip the prologue.
1801
0ba852ab
AB
18022019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1803
1804 * breakpoint.c (set_breakpoint_location_function): Remove
1805 explicit_loc parameter.
1806 (momentary_breakpoint_from_master): Update call to
1807 set_breakpoint_location_function.
1808 (add_location_to_breakpoint): Likewise.
1809
b3a7d171
AB
18102019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1811
1812 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1813 required features based on default bfd type when no specific bfd
1814 is present.
1815
1f6f6e21
PW
18162019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1817
1818 * NEWS: Mention that GDB printf and eval commands can now print
1819 C-style and Ada-style convenience var strings without
1820 calling the inferior.
1821 * printcmd.c (printf_c_string): Locally print GDB internal var
1822 instead of transiting via the inferior.
1823 (printf_wide_c_string): Likewise.
1824
18252019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
1826
1827 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1828
0598af48
TT
18292019-07-04 Tom Tromey <tom@tromey.com>
1830
1831 PR tui/24724:
1832 * tui/tui-winsource.c (tui_clear_source_content): Update.
1833 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1834 (tui_update_breakpoint_info): Update.
1835 (tui_set_exec_info_content): Update.
1836 * tui/tui-source.c (tui_set_source_content_nil): Update.
1837 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1838 has_break.
1839 * tui/tui-data.h (enum tui_bp_flag): New.
1840 (tui_bp_flags): New enum flags type.
1841 (struct tui_source_element) <break_mode>: Change type. Rename
1842 from has_break.
1843 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1844 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1845 constants.
1846 * tui/tui-winsource.h: Fix comment.
1847
350fab54
AH
18482019-07-04 Alan Hayward <alan.hayward@arm.com>
1849
1850 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1851 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1852 (store_fpregs_to_thread)
1853 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1854 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1855 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1856 (IWMMXT_REGS_SIZE): Add define.
1857 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1858 (fetch_vfp_regs, store_vfp_regs)
1859 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1860 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1861
f0452268
AH
18622019-07-04 Alan Hayward <alan.hayward@arm.com>
1863
1864 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1865 defines.
1866 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1867 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1868 (ARM_INT_REGISTER_SIZE): ...to this.
1869 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1870 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1871 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1872 (arm_linux_collect_gregset, supply_nwfpe_register)
1873 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
1874 defines.
1875 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
1876 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
1877 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
1878 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
1879 (arm_return_in_memory, arm_store_return_value)
1880 (arm_get_longjmp_target, arm_register_g_packet_guesses)
1881 (arm_record_ld_st_multiple): Likewise.
1882 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
1883 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
1884
e935475c
AH
18852019-07-04 Alan Hayward <alan.hayward@arm.com>
1886
1887 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
1888 AARCH64_DISPLACED_MODIFIED_INSNS.
1889 * aarch64-tdep.c (struct aarch64_displaced_step_data)
1890 (aarch64_displaced_step_copy_insn): Likewise.
1891 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1892 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
1893 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1894 ARM_DISPLACED_MODIFIED_INSNS.
1895 * arm-tdep.c (arm_gdbarch_init): Likewise.
1896 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1897 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
1898 (struct arm_displaced_step_closure): Use
1899 ARM_DISPLACED_MODIFIED_INSNS.
1900
df0bb381
AH
19012019-07-04 Alan Hayward <alan.hayward@arm.com>
1902
1903 * features/Makefile: Remove unused xml files.
1904 * features/aarch64.xml: Remove.
1905 * features/i386/amd64-avx-avx512-linux.xml: Remove.
1906 * features/i386/amd64-avx-avx512.xml: Remove.
1907 * features/i386/amd64-avx-linux.xml: Remove.
1908 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
1909 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
1910 * features/i386/amd64-avx-mpx-linux.xml: Remove.
1911 * features/i386/amd64-avx-mpx.xml: Remove.
1912 * features/i386/amd64-avx.xml: Remove.
1913 * features/i386/amd64-linux.xml: Remove.
1914 * features/i386/amd64-mpx-linux.xml: Remove.
1915 * features/i386/amd64-mpx.xml: Remove.
1916 * features/i386/amd64.xml: Remove.
1917 * features/i386/i386-avx-avx512-linux.xml: Remove.
1918 * features/i386/i386-avx-avx512.xml: Remove.
1919 * features/i386/i386-avx-linux.xml: Remove.
1920 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
1921 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
1922 * features/i386/i386-avx-mpx-linux.xml: Remove.
1923 * features/i386/i386-avx-mpx.xml: Remove.
1924 * features/i386/i386-avx.xml: Remove.
1925 * features/i386/i386-linux.xml: Remove.
1926 * features/i386/i386-mmx-linux.xml: Remove.
1927 * features/i386/i386-mmx.xml: Remove.
1928 * features/i386/i386-mpx-linux.xml: Remove.
1929 * features/i386/i386-mpx.xml: Remove.
1930 * features/i386/i386.xml: Remove.
1931 * features/i386/x32-avx-avx512-linux.xml: Remove.
1932 * features/i386/x32-avx-linux.xml: Remove.
1933 * features/i386/x32-linux.xml: Remove.
1934
edd6266a
AH
19352019-07-04 Alan Hayward <alan.hayward@arm.com>
1936
1937 * regformats/aarch64.dat: Remove.
1938 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
1939 * regformats/i386/amd64-avx-linux.dat: Remove.
1940 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
1941 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
1942 * regformats/i386/amd64-linux.dat: Remove.
1943 * regformats/i386/amd64-mpx-linux.dat: Remove.
1944 * regformats/i386/amd64.dat: Remove.
1945 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
1946 * regformats/i386/i386-avx-linux.dat: Remove.
1947 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
1948 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
1949 * regformats/i386/i386-linux.dat: Remove.
1950 * regformats/i386/i386-mmx-linux.dat: Remove.
1951 * regformats/i386/i386-mpx-linux.dat: Remove.
1952 * regformats/i386/i386.dat: Remove.
1953 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
1954 * regformats/i386/x32-avx-linux.dat: Remove.
1955 * regformats/i386/x32-linux.dat: Remove.
1956
2b40fda7
AH
19572019-07-04 Alan Hayward <alan.hayward@arm.com>
1958
1959 * aarch64-tdep.c: Remove xml self tests.
1960 * amd64-linux-tdep.c: Likewise.
1961 * amd64-tdep.c: Likewise.
1962 * i386-linux-tdep.c: Likewise.
1963 * i386-tdep.c: Likewise.
1964
5f4ba3e7
PA
19652019-07-03 Pedro Alves <palves@redhat.com>
1966
1967 PR cli/24732
1968 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
1969 (pipe_cmd_option_defs): New.
1970 (make_pipe_cmd_options_def_group): New.
1971 (pipe_command): Use gdb::option::process_options.
1972 (pipe_command_completer): New function.
1973 (_initialize_cli_cmds): Install completer for "pipe" command.
1974
3d9be6f5
PA
19752019-07-03 Pedro Alves <palves@redhat.com>
1976
1977 * cli/cli-option.c (union option_value) <string>: New field.
1978 (struct option_def_and_value): Add ctor, move ctor, dtor and
1979 use DISABLE_COPY_AND_ASSIGN.
1980 (option_def_and_value::clear_value): New.
1981 (parse_option, save_option_value_in_ctx, get_val_type_str)
1982 (add_setshow_cmds_for_options): Handle var_string.
1983 * cli-option.h (union option_def::var_address) <string>: New
1984 field.
1985 (struct string_option_def): New.
1986 * maint-test-options.c (struct test_options_opts): Add default
1987 ctor and use DISABLE_COPY_AND_ASSIGN.
1988 <string_opt>: New field.
1989 (test_options_opts::~test_options_opts): New.
1990 (test_options_opts::dump): Also dump "-string".
1991 (test_options_option_defs): Install "string.
1992
41fc454c
PA
19932019-07-03 Pedro Alves <palves@redhat.com>
1994
1995 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
1996 option_value with a null enumeration.
1997 (complete_options): Save the option values in the context.
1998 (save_option_value_in_ctx): New, factored out from ...
1999 (process_options): ... here.
2000 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2001 of the function.
2002 * maint-test-options.c (test_options_opts::dump): New, factored
2003 out from ...
2004 (maintenance_test_options_command_mode): ... here.
2005 (maintenance_test_options_command_completion_result): Delete.
2006 (maintenance_test_options_command_completion_text): Update
2007 comment.
2008 (maintenance_show_test_options_completion_result): Change
2009 prototype. Just print
2010 maintenance_test_options_command_completion_text.
2011 (save_completion_result): New.
2012 (maintenance_test_options_completer_mode): Pass options context to
2013 complete_options, and then save a dump.
2014 (_initialize_maint_test_options): Use add_cmd to install "maint
2015 show test-options-completion-result".
2016
fdbc9870
PA
20172019-07-03 Pedro Alves <palves@redhat.com>
2018
2019 * NEWS (New commands): Mention "with" and "maint with".
2020 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2021 (with_command, with_command_completer): New.
2022 (pipe_command): Adjust to new repeat_previous
2023 interface.
2024 (_initialize_cli_cmds): Install the "with" command and its "w"
2025 alias.
2026 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2027 declarations.
2028 * cli/cli-setshow.c (parse_cli_var_uinteger)
2029 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2030 argument strings for all var_types.
2031 (get_setshow_command_value_string): New, factored out from ...
2032 (do_show_command): ... this.
2033 * cli/cli-setshow.h: Include <string>.
2034 (get_setshow_command_value_string): Declare.
2035 * command.h (repeat_previous): Now returns const char *. Adjust
2036 comment.
2037 * maint.c: Include "cli/cli-cmds.h".
2038 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2039 (_initialize_maint_cmds): Register the "maintenance with" command.
2040 * top.c (repeat_previous): Move bits from pipe_command here:
2041 Return the saved command line, if any; error out if there's no
2042 command to relaunch.
2043
c6ac8931
PA
20442019-07-03 Pedro Alves <palves@redhat.com>
2045
2046 * NEWS (New commands): Mention "maint set/show test-settings"
2047 instead of "maint test-settings".
2048 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2049 (maintenance_test_settings_set_list): Rename to ...
2050 (maintenance_set_test_settings_list): ... this.
2051 (maintenance_test_settings_show_list): Rename to ...
2052 (maintenance_show_test_settings_list): ... this.
2053 (maintenance_test_settings_cmd): Delete.
2054 (maintenance_test_settings_set_cmd): ...
2055 (maintenance_set_test_settings_cmd): ... this.
2056 (maintenance_test_settings_show_cmd): ...
2057 (maintenance_show_test_settings_cmd): ... this.
2058 (maintenance_test_settings_show_value_cmd):
2059 (maintenance_show_test_settings_value_cmd): ... this.
2060 (_initialize_maint_test_settings): No longer install the "maint
2061 test-settings" prefix command. Rename "maint test-settings set"
2062 to "maint set test-settings", and "maint test-settings show" to
2063 "maint show test-settings". Adjust all subcommands.
2064
d1fcf2fd
PA
20652019-07-03 Pedro Alves <palves@redhat.com>
2066
2067 * maint-test-settings.c: Fix file's intro comment. Replace all
2068 references to "test-options" with references to "test-settings",
2069 in comments.
2070
970f9d09
PA
20712019-07-03 Pedro Alves <palves@redhat.com>
2072
2073 * maint-test-settings.c (maintenance_test_settings_xxx)
2074 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2075 New.
2076 (maintenance_test_settings_enums): Use them.
2077 (maintenance_test_settings_enum): Default to
2078 maintenance_test_settings_xxx.
2079 (_initialize_maint_test_settings): Initialize
2080 MAINTENANCE_TEST_SETTINGS_FILENAME.
2081
f3869b1a
SM
20822019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2083
2084 * breakpoint.h (remove_breakpoints_inf): Change return type to
2085 void, move function documentation here.
2086 * breakpoint.c (remove_breakpoints_inf): Change return type to
2087 void, move function documentation to header.
2088
54d66006
PA
20892019-07-02 Pedro Alves <palves@redhat.com>
2090
2091 * NEWS (Completion improvements): Mention "info threads".
2092 * thread.c (struct info_threads_opts, info_threads_option_defs)
2093 (make_info_threads_options_def_group): New.
2094 (info_threads_command): Use gdb::option::process_options.
2095 (info_threads_command_completer): New.
2096 (_initialize_thread): Use gdb::option::build_help to build the
2097 help text for "info threads".
2098
854f6088
SM
20992019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2100
2101 * defs.h (generic_load): Move from here...
2102 * symfile.h (generic_load): ... to here. Rename name parameter
2103 to args.
2104 * symfile.c (generic_load): Add comment.
2105
54ee4252
TT
21062019-07-01 Tom Tromey <tromey@adacore.com>
2107
2108 * dwarf2read.c
2109 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2110 declaration of without_params. Fix formatting.
2111
65392b3e
TT
21122019-07-01 Tom Tromey <tromey@adacore.com>
2113
2114 * ada-exp.y (find_primitive_type): Update.
2115 * ada-lang.h (ada_lookup_symbol): Update.
2116 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2117 parameter.
2118 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2119
7d7571f0
SDJ
21202019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2121
2122 PR breakpoints/24541
2123 * gdbarch.c: Regenerate.
2124 * gdbarch.h: Regenerate.
2125 * gdbarch.sh: Add 'stap_adjust_register'.
2126 * i386-tdep.c: Include '<unordered_set>'.
2127 (i386_stap_adjust_register): New function.
2128 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2129 * stap-probe.c (stap_parse_register_operand): Call
2130 'gdbarch_stap_adjust_register'.
2131
5af5392a
SDJ
21322019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2133
2134 PR python/24742
2135 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2136 * python/python.c (do_start_initialization): Use 'xmalloc'
2137 instead of 'PyMem_Malloc'.
2138
10d06d82
TT
21392019-06-28 Tom Tromey <tromey@adacore.com>
2140
2141 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2142 for Ada.
2143
1b7f24cd
TT
21442019-06-27 Tom Tromey <tromey@adacore.com>
2145
2146 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2147 objfile_key.
2148 (arm_find_mapping_symbol, arm_record_special_symbol)
2149 (_initialize_arm_tdep): Update.
2150 (arm_objfile_data_free): Remove.
2151
3d507ff2
TT
21522019-06-27 Tom Tromey <tromey@adacore.com>
2153
2154 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2155 to cp_print_static_field.
2156
762c164d
TT
21572019-06-26 Tom Tromey <tromey@adacore.com>
2158
2159 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2160 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2161 declare.
2162
aa2f9bcf
AH
21632019-06-26 Alan Hayward <alan.hayward@arm.com>
2164
2165 * features/aarch64-core.c (create_feature_aarch64_core):
2166 Regenerate.
2167 * features/aarch64-core.xml: Add cpsr flags.
2168
3426ae57
AH
21692019-06-26 Alan Hayward <alan.hayward@arm.com>
2170
2171 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2172 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2173
4838e44c
SM
21742019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2175
2176 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2177 field.
2178 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2179 use.
2180 (arm_record_special_symbol): Don't insert new symbol in sorted
2181 position, push it at the end.
2182
54cc7474
SM
21832019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2186 (arm_mapping_symbol_s): Remove.
2187 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2188 (arm_mapping_symbol_vec): New typedef.
2189 (struct arm_per_objfile): Add constructor.
2190 <section_maps>: Change type to
2191 std::unique_ptr<arm_mapping_symbol_vec[]>.
2192 (arm_compare_mapping_symbols): Remove.
2193 (arm_find_mapping_symbol): Adjust to section_maps type change.
2194 (arm_objfile_data_free): Call delete on arm_per_objfile.
2195 (arm_record_special_symbol): Adjust to section_maps type change.
2196 Allocate arm_per_objfile with new.
2197
b65b566c
PW
21982019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2199
2200 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2201 with the command prefix.
2202
c2fc64f5
TT
22032019-06-25 Tom Tromey <tom@tromey.com>
2204
2205 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2206 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2207
fb54fa76
TT
22082019-06-25 Tom Tromey <tom@tromey.com>
2209
2210 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2211 type.
2212 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2213 protected.
2214
f7952c57
TT
22152019-06-25 Tom Tromey <tom@tromey.com>
2216
2217 * tui/tui-winsource.c
2218 (tui_source_window_base::set_is_exec_point_at): Add check against
2219 LOA_ADDRESS.
2220
17568d78
TT
22212019-06-25 Tom Tromey <tom@tromey.com>
2222
2223 * tui/tui-source.c (tui_set_source_content): Don't check before
2224 xfree.
2225 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2226
53e7cdba
TT
22272019-06-25 Tom Tromey <tom@tromey.com>
2228
2229 * tui/tui-winsource.h (tui_update_source_window_as_is)
2230 (tui_alloc_source_buffer, tui_line_is_displayed)
2231 (tui_addr_is_displayed): Change type of win_info.
2232 * tui/tui-winsource.c (tui_update_source_window_as_is)
2233 (tui_clear_source_content, tui_show_source_line)
2234 (tui_show_source_content, tui_source_window_base::refill)
2235 (tui_source_window_base::set_is_exec_point_at)
2236 (tui_source_window_base::set_is_exec_point_at)
2237 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2238 (tui_alloc_source_buffer, tui_line_is_displayed)
2239 (tui_addr_is_displayed): Change type of win_info. Update.
2240 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2241 (tui_source_window_base::do_make_visible_with_new_height):
2242 Update.
2243 * tui/tui-source.c (tui_set_source_content)
2244 (tui_set_source_content_nil)
2245 (tui_source_window::do_scroll_vertical): Update.
2246 * tui/tui-layout.c (show_layout): Update.
2247 * tui/tui-disasm.c (tui_set_disassem_content)
2248 (tui_disasm_window::do_scroll_vertical): Update.
2249 * tui/tui-data.h (tui_win_content): Remove.
2250 (struct tui_gen_win_info) <content, content_size>: Remove.
2251 (struct tui_source_element): Add initializers and destructor.
2252 (union tui_which_element, struct tui_win_element): Remove.
2253 (struct tui_source_window_base) <content>: New field.
2254 (struct tui_data_window): Remove destructor.
2255 (tui_alloc_content, tui_free_win_content)
2256 (tui_free_all_source_wins_content): Don't declare.
2257 * tui/tui-data.c (tui_initialize_static_data): Update.
2258 (init_content_element, tui_alloc_content): Remove.
2259 (~tui_gen_win_info): Update.
2260 (~tui_data_window, tui_free_all_source_wins_content)
2261 (tui_free_win_content, free_content, free_content_elements):
2262 Remove.
2263
7908abbf
TT
22642019-06-25 Tom Tromey <tom@tromey.com>
2265
2266 * tui/tui-winsource.h (tui_clear_source_content)
2267 (tui_erase_source_content, tui_show_source_content): Change type
2268 of win_info.
2269 * tui/tui-winsource.c (tui_clear_source_content)
2270 (tui_erase_source_content, tui_show_source_content): Change type
2271 of win_info.
2272 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2273 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2274 win_info.
2275 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2276 win_info.
2277 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2278
02c28df0
TT
22792019-06-25 Tom Tromey <tom@tromey.com>
2280
2281 * tui/tui-winsource.c (tui_clear_source_content)
2282 (tui_source_window_base::set_is_exec_point_at): Update.
2283 * tui/tui-source.c (tui_set_source_content_nil): Update.
2284 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2285 a bool.
2286 * tui/tui-data.c (init_content_element): Update.
2287
6658b1bf
TT
22882019-06-25 Tom Tromey <tom@tromey.com>
2289
2290 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2291 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2292 * tui/tui-layout.c (init_and_make_win): Update.
2293 * tui/tui.h (enum tui_win_type): Update.
2294 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2295 tui_win_is_auxillary.
2296 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2297 tui_win_is_auxillary.
2298
21e1c91e
TT
22992019-06-25 Tom Tromey <tom@tromey.com>
2300
2301 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2302 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2303 (tui_delete_data_content_windows, tui_display_all_data)
2304 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2305 Update.
2306 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2307 * tui/tui-regs.c (tui_last_regs_line_no)
2308 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2309 (tui_show_registers): Update.
2310 (tui_show_register_group): Return void. Update.
2311 (tui_display_registers_from, tui_display_reg_element_at_line)
2312 (tui_display_registers_from_line, tui_check_register_values):
2313 Update.
2314 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2315 member.
2316 (struct tui_data_window) <regs_content>: Now a std::vector.
2317 <regs_content_count>: Remove.
2318 (tui_add_content_elements, tui_free_data_content): Don't declare.
2319 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2320 (init_content_element): Remove DATA_WIN case. Add assert.
2321 (tui_add_content_elements): Remove.
2322 (tui_data_window): Update.
2323 (tui_free_data_content): Remove.
2324 (free_content_elements): Remove DATA_WIN case.
2325
115ac53b
TT
23262019-06-25 Tom Tromey <tom@tromey.com>
2327
2328 * tui/tui-data.c (tui_data_item_window): Update.
2329 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2330 * tui/tui-windata.c (tui_display_all_data)
2331 (tui_display_data_from_line): Update.
2332 (tui_check_data_values): Remove.
2333 * tui/tui-regs.c (tui_show_register_group)
2334 (tui_display_reg_element_at_line): Update.
2335 * tui/tui-hooks.c (tui_register_changed)
2336 (tui_refresh_frame_and_register_information): Call
2337 tui_check_register_values.
2338 * tui/tui-data.h (struct tui_data_window) <data_content,
2339 data_content_count, data_type>: Remove.
2340 (enum tui_data_type): Remove.
2341
2342 * tui/tui-data.c (tui_data_window::clear_detail)
2343 (~tui_data_window): Update.
2344
eaf9738b
TT
23452019-06-25 Tom Tromey <tom@tromey.com>
2346
2347 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2348 declare.
2349 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2350 Rename from tui_first_data_item_displayed. Update.
2351 (tui_data_window::refresh_all)
2352 (tui_data_window::do_scroll_vertical): Update.
2353 * tui/tui-data.h (struct tui_data_window)
2354 <first_data_item_displayed>: Declare new method.
2355
31ca4723
TT
23562019-06-25 Tom Tromey <tom@tromey.com>
2357
2358 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2359 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2360 contents...
2361 (tui_initialize_static_data): ...here.
2362
41bcff7f
TT
23632019-06-25 Tom Tromey <tom@tromey.com>
2364
2365 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2366 (tui_display_registers_from, tui_check_register_values): Update.
2367 (tui_display_register): Remove win_info parameter; update.
2368 (tui_get_register): Change type of parameters.
2369 * tui/tui-data.h (struct tui_data_element): Remove.
2370 (union tui_which_element) <data>: Remove.
2371 <data_window>: Change type.
2372 (struct tui_data_item_window): New.
2373 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2374 case. Add assert.
2375 (~tui_data_item_window): New destructor.
2376 (free_content_elements): Remove DATA_ITEM_WIN case.
2377
d2802c33
TT
23782019-06-25 Tom Tromey <tom@tromey.com>
2379
2380 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2381 Remove.
2382
dd835f8b
TT
23832019-06-25 Tom Tromey <tom@tromey.com>
2384
2385 * tui/tui-data.h (struct tui_command_element): Remove.
2386 (union tui_which_element) <command>: Remove.
2387 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2388 assert.
2389 (free_content_elements): Remove CMD_WIN case.
2390
bd7db367
TT
23912019-06-25 Tom Tromey <tom@tromey.com>
2392
2393 * tui/tui-layout.c (tui_set_layout): Update.
2394 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2395 * tui/tui-data.c (layout_def): Update.
2396
3add462f
TT
23972019-06-25 Tom Tromey <tom@tromey.com>
2398
2399 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2400 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2401 (tui_source_window_base::set_new_height): Update.
2402 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2403 Update.
2404 (tui_set_locator_fullname, tui_set_locator_info)
2405 (tui_show_frame_info): Update.
2406 * tui/tui-source.c (tui_set_source_content)
2407 (tui_source_is_displayed): Update.
2408 * tui/tui-layout.c (show_source_disasm_command, show_data)
2409 (show_source_or_disasm_and_command): Update.
2410 * tui/tui-disasm.c (tui_set_disassem_content)
2411 (tui_get_begin_asm_address): Update.
2412 * tui/tui-data.h (struct tui_locator_element): Remove.
2413 (union tui_which_element) <locator>: Remove.
2414 (struct tui_locator_window): New.
2415 (tui_locator_win_info_ptr): Change return type.
2416 * tui/tui-data.c (_locator): Change type.
2417 (tui_locator_win_info_ptr): Change return type.
2418 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2419 (tui_alloc_content): Add assert.
2420
489e9d8b
TT
24212019-06-25 Tom Tromey <tom@tromey.com>
2422
2423 * tui/tui-winsource.c
2424 (tui_exec_info_window::maybe_allocate_content): New method.
2425 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2426 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2427 (make_source_or_disasm_window): Add cast.
2428 * tui/tui-data.h (union tui_which_element) <simple_string>:
2429 Remove.
2430 (struct tui_source_info): New.
2431 (struct tui_source_window_base) <execution_info>: Change type.
2432 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2433 case, and add assert.
2434 (tui_alloc_content): Add assert.
2435
c3fabb7d
TT
24362019-06-25 Tom Tromey <tom@tromey.com>
2437
2438 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2439 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2440 * tui/tui-data.c (tui_alloc_win_info): Remove.
2441
bbc228ee
TT
24422019-06-25 Tom Tromey <tom@tromey.com>
2443
2444 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2445 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2446 can_highlight.
2447
5fcee43a
TT
24482019-06-25 Tom Tromey <tom@tromey.com>
2449
2450 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2451 make_visible_with_new_height method.
2452 (tui_win_info::make_visible_with_new_height): New method.
2453 (tui_source_window_base::do_make_visible_with_new_height)
2454 (tui_data_window::do_make_visible_with_new_height)
2455 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2456 (make_visible_with_new_height): Remove.
2457 (tui_resize_all, tui_adjust_win_heights): Use
2458 make_visible_with_new_height method.
2459 * tui/tui-data.h (struct tui_win_info)
2460 <do_make_visible_with_new_height, make_visible_with_new_height>:
2461 New methods.
2462 (struct tui_source_window_base, struct tui_data_window)
2463 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2464 methods.
2465
d83f1fe6
TT
24662019-06-25 Tom Tromey <tom@tromey.com>
2467
2468 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2469 method.
2470 (update_tab_width): Call update_tab_width method.
2471 * tui/tui-data.h (struct tui_win_info)
2472 (struct tui_source_window_base) <update_tab_width>: New methods.
2473
17374de4
TT
24742019-06-25 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2477 parameter.
2478 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2479 parameter.
2480 (tui_gen_win_info::make_visible): Update.
2481 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2482 parameter.
2483 * tui/tui-data.h (enum tui_box): New enum.
2484 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2485
f936bca2
TT
24862019-06-25 Tom Tromey <tom@tromey.com>
2487
2488 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2489 init_and_make_win for EXEC_INFO_WIN.
2490 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2491 longer inline.
2492 (struct tui_win_info) <~tui_win_info>: Inline.
2493 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2494 Don't declare.
2495 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2496 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2497 Remove.
2498 (tui_initialize_static_data): Update.
2499 (~tui_gen_win_info): Handle more cleanup here.
2500 (~tui_source_window_base): Delete "execution_info".
2501 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2502
d6ba6a11
TT
25032019-06-25 Tom Tromey <tom@tromey.com>
2504
2505 * tui/tui-layout.c (make_command_window): Don't set
2506 can_highlight.
2507 (show_source_disasm_command): Call the reset method.
2508 (show_data): Don't set can_highlight. Call the reset method.
2509 (tui_gen_win_info::reset): Rename from init_gen_win_info
2510 (init_and_make_win): Simplify. Return tui_gen_win_info.
2511 (show_source_or_disasm_and_command): Call the reset method.
2512 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2513 (struct tui_cmd_window): Set can_highlight.
2514
48a3bd16
TT
25152019-06-25 Tom Tromey <tom@tromey.com>
2516
2517 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2518 from make_visible.
2519 (tui_make_visible, tui_make_invisible): Rewrite.
2520 (tui_win_info::make_visible): Remove.
2521 (tui_source_window_base::make_visible): Update.
2522 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2523 method. Moved from...
2524 (struct tui_win_info) <make_visible>: ...here.
2525
c3bd716f
TT
25262019-06-25 Tom Tromey <tom@tromey.com>
2527
2528 * tui/tui-winsource.c
2529 (tui_source_window_base::do_scroll_horizontal): Remove direction
2530 parameter.
2531 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2532 direction parameter.
2533 * tui/tui-win.c (tui_win_info::forward_scroll)
2534 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2535 (tui_win_info::right_scroll): Update.
2536 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2537 direction parameter.
2538 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2539 direction parameter.
2540 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2541 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2542 Remove direction parameter.
2543 (struct tui_source_window_base, struct tui_source_window)
2544 (struct tui_disasm_window, struct tui_data_window)
2545 (struct tui_cmd_window): Update.
2546
21c32dca
TT
25472019-06-25 Tom Tromey <tom@tromey.com>
2548
2549 * tui/tui-winsource.h (tui_set_exec_info_content)
2550 (tui_show_exec_info_content, tui_erase_exec_info_content)
2551 (tui_clear_exec_info_content, tui_update_exec_info): Change
2552 argument to tui_source_window_base.
2553 * tui/tui-winsource.c (tui_set_exec_info_content)
2554 (tui_show_exec_info_content, tui_erase_exec_info_content)
2555 (tui_clear_exec_info_content, tui_update_exec_info): Change
2556 argument to tui_source_window_base.
2557
73fbdc65
TT
25582019-06-25 Tom Tromey <tom@tromey.com>
2559
2560 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2561 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2562
33325343
TT
25632019-06-25 Tom Tromey <tom@tromey.com>
2564
2565 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2566 check.
2567
29d2c474
TT
25682019-06-25 Tom Tromey <tom@tromey.com>
2569
2570 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2571 type to void.
2572 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2573 type to void.
2574 * tui/tui-source.c (tui_set_source_content): Update.
2575 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2576
152f3f4b
TT
25772019-06-25 Tom Tromey <tom@tromey.com>
2578
2579 * tui/tui-win.c (window_name_completer, tui_set_focus)
2580 (tui_all_windows_info): Use name method.
2581 * tui/tui-data.h (struct tui_gen_win_info)
2582 (struct tui_source_window, struct tui_disasm_window)
2583 (struct tui_data_window, struct tui_cmd_window) <name>: New
2584 method.
2585 (tui_win_name): Don't declare.
2586 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2587 (tui_win_name): Remove.
2588
be4da588
TT
25892019-06-25 Tom Tromey <tom@tromey.com>
2590
2591 * tui/tui-winsource.h (tui_update_source_window)
2592 (tui_update_source_window_as_is): Change parameter type.
2593 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2594 to be a tui_source_window_base.
2595 (tui_update_source_window_as_is): Likewise.
2596 * tui/tui-win.c (make_visible_with_new_height): Update.
2597
5b81daba
TT
25982019-06-25 Tom Tromey <tom@tromey.com>
2599
2600 * tui/tui-winsource.c (tui_erase_source_content)
2601 (tui_show_source_content, tui_show_exec_info_content)
2602 (tui_erase_exec_info_content): Use refresh_window method.
2603 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2604 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2605 from tui_refresh_win.
2606 (tui_data_window::refresh_window): New method.
2607 (tui_win_info::refresh, tui_source_window_base::refresh)
2608 (tui_refresh_all): Use refresh_window method.
2609 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2610 method.
2611 * tui/tui-regs.c (tui_display_register): Call refresh_window
2612 method.
2613 * tui/tui-layout.c (show_source_disasm_command)
2614 (show_source_or_disasm_and_command): Call refresh_window method.
2615 * tui/tui-data.h (struct tui_gen_win_info)
2616 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2617 New method.
2618
cb2ce893
TT
26192019-06-25 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui.c (tui_rl_other_window, tui_enable)
2622 (tui_is_window_visible, tui_get_command_dimension): Update.
2623 * tui/tui-winsource.c (tui_update_source_window_as_is)
2624 (tui_clear_source_content, tui_erase_source_content)
2625 (tui_show_source_line, tui_source_window_base::refill)
2626 (tui_source_window_base::do_scroll_horizontal)
2627 (tui_source_window_base::set_is_exec_point_at)
2628 (tui_update_breakpoint_info, tui_set_exec_info_content)
2629 (tui_alloc_source_buffer, tui_line_is_displayed)
2630 (tui_addr_is_displayed): Update.
2631 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2632 (tui_check_and_display_highlight_if_needed)
2633 (tui_win_info::make_visible, tui_win_info::refresh)
2634 (tui_refresh_all): Update.
2635 * tui/tui-windata.c (tui_first_data_item_displayed)
2636 (tui_delete_data_content_windows, tui_erase_data_content)
2637 (tui_display_all_data, tui_data_window::refresh_all)
2638 (tui_check_data_values): Update.
2639 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2640 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2641 (tui_win_info::backward_scroll, tui_refresh_all_win)
2642 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2643 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2644 (tui_source_window_base::set_new_height)
2645 (tui_data_window::set_new_height)
2646 (make_invisible_and_set_new_height)
2647 (make_visible_with_new_height, new_height_ok)
2648 (parse_scrolling_args): Update.
2649 * tui/tui-stack.c (tui_show_frame_info): Update.
2650 * tui/tui-source.c (tui_set_source_content)
2651 (tui_set_source_content_nil, tui_source_is_displayed)
2652 (tui_source_window::do_scroll_vertical): Update.
2653 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2654 (tui_display_registers_from, tui_display_reg_element_at_line)
2655 (tui_check_register_values, tui_reg_command): Update.
2656 * tui/tui-layout.c (tui_default_win_height)
2657 (show_source_disasm_command, show_data, init_and_make_win)
2658 (show_source_or_disasm_and_command): Update.
2659 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2660 (tui_redisplay_readline, tui_mld_flush)
2661 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2662 (tui_getc): Update.
2663 * tui/tui-disasm.c (tui_set_disassem_content)
2664 (tui_disasm_window::do_scroll_vertical): Update.
2665 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2666 Now virtual.
2667 (struct tui_win_info): Derive from tui_gen_win_info.
2668 <~tui_win_info>: Mark as override.
2669 <generic>: Remove member.
2670 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2671 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2672 (~tui_data_window, ~tui_win_info)
2673 (tui_free_all_source_wins_content): Update.
2674 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2675
ab313b35
TT
26762019-06-25 Tom Tromey <tom@tromey.com>
2677
2678 * tui/tui-layout.c (init_and_make_win): Use new.
2679 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2680 destructor, initializers.
2681 (tui_alloc_generic_win_info): Don't declare.
2682 * tui/tui-data.c (_locator): Add argument to constructor.
2683 (source_win, disasm_win): New globals.
2684 (exec_info): Remove.
2685 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2686 Update.
2687 (tui_alloc_generic_win_info): Remove.
2688 (init_content_element): Use new.
2689 (tui_win_info::tui_win_info): Update.
2690 (free_content_elements) <case DATA_WIN>: Use delete.
2691
dc2c33e4
TT
26922019-06-25 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2695 * tui/tui-windata.c (tui_first_data_item_displayed)
2696 (tui_delete_data_content_windows): Update.
2697 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2698 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2699 (tui_display_registers_from, tui_check_register_values): Update.
2700 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2701 pointer.
2702 * tui/tui-data.c (init_content_element): Update. Allocate the new
2703 window.
2704 (tui_free_data_content): Update.
2705 (free_content_elements) <case DATA_WIN>: Free the window.
2706
214a5cbe
TT
27072019-06-25 Tom Tromey <tom@tromey.com>
2708
2709 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2710 Update.
2711 * tui/tui-layout.c (make_command_window)
2712 (show_source_disasm_command, show_data, init_and_make_win)
2713 (show_source_or_disasm_and_command): Update.
2714 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2715 method.
2716 <can_highight, is_highlighted>: Now bool.
2717 (tui_set_win_highlight): Don't declare.
2718 * tui/tui-data.c (tui_set_win_highlight): Remove.
2719
8e2daf15
TT
27202019-06-25 Tom Tromey <tom@tromey.com>
2721
2722 * tui/tui-wingeneral.c (make_visible): Remove check of window
2723 type.
2724
8903bd8a
TT
27252019-06-25 Tom Tromey <tom@tromey.com>
2726
2727 * tui/tui-win.c (tui_win_info::max_height)
2728 (tui_cmd_window::max_height): New methods.
2729 (new_height_ok): Call max_height.
2730 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2731 <max_height>: New method.
2732
3f02ce1e
TT
27332019-06-25 Tom Tromey <tom@tromey.com>
2734
2735 * tui/tui-win.c (tui_source_window_base::set_new_height)
2736 (tui_data_window::set_new_height): New methods.
2737 (make_invisible_and_set_new_height): Call set_new_height method.
2738 * tui/tui-data.h (struct tui_win_info)
2739 (struct tui_source_window_base, struct tui_data_window)
2740 <set_new_height>: New method.
2741
1825f487
TT
27422019-06-25 Tom Tromey <tom@tromey.com>
2743
2744 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2745 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2746 tui_refresh_data_win.
2747 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2748 method.
2749 (tui_refresh_all_win): Call the refresh_all method.
2750 (tui_set_focus): Likewise.
2751 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2752 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2753 Likewise.
2754
ad54d15b
TT
27552019-06-25 Tom Tromey <tom@tromey.com>
2756
2757 * tui/tui-winsource.h (tui_refill_source_window)
2758 (tui_set_is_exec_point_at): Don't declare.
2759 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2760 (tui_source_window_base::refill): Rename from
2761 tui_refill_source_window.
2762 (tui_source_window_base::do_scroll_horizontal): Update.
2763 (tui_source_window_base::set_is_exec_point_at): Rename from
2764 tui_set_is_exec_point_at.
2765 (tui_update_all_breakpoint_info): Update.
2766 * tui/tui-stack.c (tui_show_frame_info): Update.
2767 * tui/tui-layout.c (show_data): Add cast.
2768 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2769 * tui/tui-data.h (struct tui_source_window_base) <refill,
2770 set_is_exec_point_at>: New methods.
2771 (tui_source_windows, tui_add_to_source_windows): Update types.
2772 (tui_add_to_source_windows): Remove redundant declaration.
2773 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2774 (tui_source_windows): Change return type.
2775 (tui_clear_source_windows_detail): Update.
2776 (tui_add_to_source_windows): Change type of parameter.
2777 (tui_free_all_source_wins_content): Update.
2778
2042b506
TT
27792019-06-25 Tom Tromey <tom@tromey.com>
2780
2781 * tui/tui-wingeneral.c (tui_win_info::refresh)
2782 (tui_source_window_base::refresh): New methods.
2783 (tui_refresh_all): Call the refresh method.
2784 * tui/tui-data.h (struct tui_win_info)
2785 (struct tui_source_window_base) <refresh>: New method.
2786
56122977
TT
27872019-06-25 Tom Tromey <tom@tromey.com>
2788
2789 * tui/tui.h (tui_is_window_visible): Return bool.
2790 * tui/tui.c (tui_is_window_visible): Return bool.
2791 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2792 (tui_make_visible, tui_make_invisible)
2793 (tui_win_info::make_visible)
2794 (tui_source_window_base::make_visible, make_all_visible)
2795 (tui_make_all_visible, tui_make_all_invisible): Update.
2796 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2797 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2798 bool.
2799 (struct tui_win_info, struct tui_source_window_base)
2800 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2801 * tui/tui-data.c (tui_init_generic_part): Update.
2802
cda37efb
TT
28032019-06-25 Tom Tromey <tom@tromey.com>
2804
2805 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2806 (tui_source_window_base::make_visible): New methods.
2807 (make_all_visible): Make method call.
2808 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2809 (struct tui_source_window_base, struct tui_cmd_window): Override
2810 make_visible.
2811 (tui_win_is_source_type): Don't declare.
2812 * tui/tui-data.c (tui_win_is_source_type): Remove.
2813
6a0ee02c
TT
28142019-06-25 Tom Tromey <tom@tromey.com>
2815
2816 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2817 NULL check.
2818
63901aec
TT
28192019-06-25 Tom Tromey <tom@tromey.com>
2820
2821 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2822 Inline constructor. Add initializers for members.
2823 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2824 constructors; now inline in class.
2825
ceb13a13
TT
28262019-06-25 Tom Tromey <tom@tromey.com>
2827
2828 * tui/tui-regs.c (tui_show_registers): Update.
2829 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2830 bool.
2831 * tui/tui-data.c (tui_data_window::clear_detail)
2832 (tui_data_window): Update.
2833
238eb706
TT
28342019-06-25 Tom Tromey <tom@tromey.com>
2835
2836 * tui/tui-windata.c (tui_display_all_data)
2837 (tui_display_data_from_line, tui_display_data_from)
2838 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2839 Update.
2840 * tui/tui-regs.c (tui_last_regs_line_no)
2841 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2842 (tui_show_registers, tui_show_register_group)
2843 (tui_display_registers_from, tui_display_reg_element_at_line)
2844 (tui_display_registers_from_line, tui_check_register_values)
2845 (tui_reg_next, tui_reg_prev): Update.
2846 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2847 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2848 tui_data_window.
2849 (struct tui_win_info) <detail>: Remove. Add new fields from
2850 tui_data_info.
2851 (TUI_DATA_WIN): Add cast.
2852 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2853 (~tui_data_window): Simplify.
2854
81491aa0
TT
28552019-06-25 Tom Tromey <tom@tromey.com>
2856
2857 * tui/tui-layout.c (show_source_disasm_command)
2858 (show_source_or_disasm_and_command): Update.
2859 * tui/tui-io.c (update_cmdwin_start_line)
2860 (tui_redisplay_readline): Update.
2861 * tui/tui-data.h (struct tui_command_info): Remove.
2862 (struct tui_win_info) <detail>: Remove command_info member.
2863 (struct tui_data_window) <start_line>: New member, from
2864 tui_command_info.
2865 (TUI_CMD_WIN): Add casts.
2866
e6e41501
TT
28672019-06-25 Tom Tromey <tom@tromey.com>
2868
2869 * tui/tui-winsource.c (tui_update_source_window)
2870 (tui_refill_source_window)
2871 (tui_source_window_base::do_scroll_horizontal)
2872 (tui_update_breakpoint_info, tui_set_exec_info_content)
2873 (tui_show_exec_info_content, tui_erase_exec_info_content)
2874 (tui_clear_exec_info_content): Update.
2875 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
2876 Update.
2877 * tui/tui-win.c (make_invisible_and_set_new_height)
2878 (make_visible_with_new_height): Update.
2879 * tui/tui-source.c (tui_set_source_content)
2880 (tui_show_symtab_source): Update.
2881 * tui/tui-layout.c (extract_display_start_addr)
2882 (show_source_disasm_command, show_data)
2883 (make_source_or_disasm_window)
2884 (show_source_or_disasm_and_command): Update.
2885 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
2886 (tui_disasm_window::do_scroll_vertical): Remove shadowing
2887 "gdbarch".
2888 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
2889 to tui_source_window_base.
2890 (struct tui_win_info) <detail>: Remove source_info member.
2891 (struct tui_source_window_base) <has_locator>: Inline.
2892 Move contents from tui_source_info; rename has_locator member to
2893 m_has_locator.
2894 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
2895 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
2896 header file.
2897 (tui_source_window_base::clear_detail, ~tui_source_window_base):
2898 Simplify.
2899 (tui_free_all_source_wins_content): Cast to
2900 tui_source_window_base.
2901
44f0e208
TT
29022019-06-25 Tom Tromey <tom@tromey.com>
2903
2904 * tui/tui-win.c (make_invisible_and_set_new_height)
2905 (make_visible_with_new_height): Call has_locator method.
2906 * tui/tui-layout.c (show_source_disasm_command, show_data)
2907 (show_source_or_disasm_and_command): Update for bool change.
2908 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
2909 (tui_win_info) <has_locator>: New method.
2910 (struct tui_source_window_base) <has_locator>: New method.
2911 (tui_win_has_locator): Don't declare.
2912 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
2913 from tui_win_has_locator.
2914 (tui_source_window_base): Use false, not FALSE.
2915
7778b912
TT
29162019-06-25 Tom Tromey <tom@tromey.com>
2917
2918 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
2919 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
2920 clear_detail method directly.
2921 (tui_clear_win_detail): Remove.
2922
f83d391c
TT
29232019-06-25 Tom Tromey <tom@tromey.com>
2924
2925 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
2926 "this", not TUI_DISASM_WIN.
2927
13446e05
TT
29282019-06-25 Tom Tromey <tom@tromey.com>
2929
2930 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
2931 declare.
2932 * tui/tui-winsource.c
2933 (tui_source_window_base::do_scroll_horizontal): Rename from
2934 tui_horizontal_source_scroll.
2935 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
2936 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
2937 from tui_vertical_data_scroll.
2938 * tui/tui-win.h (tui_scroll): Don't declare.
2939 * tui/tui-win.c (tui_win_info::forward_scroll)
2940 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2941 (tui_win_info::right_scroll): Rename and update.
2942 (tui_scroll_forward_command, tui_scroll_backward_command)
2943 (tui_scroll_left_command, tui_scroll_right_command): Update.
2944 (tui_scroll): Remove.
2945 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
2946 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
2947 from tui_vertical_source_scroll.
2948 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
2949 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
2950 from tui_vertical_disassem_scroll.
2951 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
2952 do_scroll_horizontal>: New methods.
2953 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
2954 Likewise.
2955 (struct tui_source_window_base): Add do_scroll_horizontal.
2956 (struct tui_source_window, struct tui_disasm_window): Add
2957 do_scroll_vertical.
2958 (struct tui_data_window, struct tui_cmd_window): Add
2959 do_scroll_horizontal and do_scroll_vertical.
2960 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
2961
5cf82909
TT
29622019-06-25 Tom Tromey <tom@tromey.com>
2963
2964 * tui/tui-data.h (struct tui_source_window_base): New struct.
2965 (struct tui_source_window): Derive from tui_source_window_base.
2966 (struct tui_disasm_window): New struct.
2967 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
2968 from tui_source_window::clear_detail.
2969 (tui_source_window_base): Rename from tui_source_window.
2970 (~tui_source_window_base): Rename from ~tui_source_window.
2971 (tui_alloc_win_info): Create a tui_disasm_window.
2972
ee1d42d6
TT
29732019-06-25 Tom Tromey <tom@tromey.com>
2974
2975 * tui/tui-data.h (struct tui_source_window)
2976 (struct tui_data_window): Declare destructors.
2977 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
2978 destructors.
2979 (tui_win_info): Simplify.
2980
b4eb2452
TT
29812019-06-25 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-winsource.c (tui_display_main)
2984 (tui_update_source_windows_with_addr)
2985 (tui_update_all_breakpoint_info): Update.
2986 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2987 (new_height_ok, parse_scrolling_args): Update.
2988 * tui/tui-stack.c (tui_show_frame_info): Update.
2989 * tui/tui-data.h (struct tui_list): Remove.
2990 (tui_source_windows): Return a reference to a std::vector.
2991 * tui/tui-data.c (source_windows): Now a std::vector.
2992 (tui_source_windows): Change return type.
2993 (tui_clear_source_windows): Rewrite.
2994 (tui_clear_source_windows_detail, tui_add_to_source_windows)
2995 (tui_free_all_source_wins_content): Rewrite.
2996
8761a91b
TT
29972019-06-25 Tom Tromey <tom@tromey.com>
2998
2999 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3000 (struct tui_data_window, struct tui_cmd_window): Declare
3001 clear_detail method.
3002 * tui/tui-data.c (tui_source_window::clear_detail)
3003 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3004 methods.
3005 (tui_clear_win_detail): Simplify.
3006
0ed69eda
TT
30072019-06-25 Tom Tromey <tom@tromey.com>
3008
3009 * tui/tui-layout.c (make_source_window, make_disasm_window)
3010 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3011 Return the new window.
3012 (show_source_disasm_command, show_data)
3013 (show_source_or_disasm_and_command): Update.
3014
82432e10
TT
30152019-06-25 Tom Tromey <tom@tromey.com>
3016
3017 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3018 parameter. Return the new window.
3019 (show_source_disasm_command): Update and remove NULL check.
3020 (show_source_or_disasm_and_command): Update.
3021
ec328aa5
TT
30222019-06-25 Tom Tromey <tom@tromey.com>
3023
3024 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3025
33b906ab
TT
30262019-06-25 Tom Tromey <tom@tromey.com>
3027
3028 * tui/tui-data.h (struct tui_win_info): Make constructor
3029 protected. Make destructor virtual. Add initializers.
3030 (tui_source_window, tui_data_window, tui_cmd_window): New
3031 classes.
3032 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3033 constructor. Add "type" parameter.
3034 (tui_source_window, tui_data_window, tui_cmd_window): New
3035 constructors.
3036 (tui_alloc_win_info): Instantiate the appropriate subclass.
3037
e7e11af4
TT
30382019-06-25 Tom Tromey <tom@tromey.com>
3039
3040 * tui/tui-win.c (tui_resize_all): Use delete.
3041 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3042 destructor.
3043 (tui_free_window): Don't declare.
3044 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3045 Update.
3046
6792b55e
TT
30472019-06-25 Tom Tromey <tom@tromey.com>
3048
3049 * tui/tui-data.h (struct tui_win_info): Add constructor.
3050 * tui/tui-data.c (tui_alloc_win_info): Use new.
3051 (tui_free_window): Use delete.
3052
f95675e1
TT
30532019-06-22 Tom Tromey <tom@tromey.com>
3054
3055 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3056 declare.
3057 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3058
5bff081c
TT
30592019-06-22 Tom Tromey <tom@tromey.com>
3060
3061 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3062 declare.
3063 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3064
47e3f474
TV
30652019-06-22 Tom de Vries <tdevries@suse.de>
3066
3067 * dwarf2read.c (create_addrmap_from_aranges)
3068 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3069 instead of '%zu'.
3070
fd5866f6
SM
30712019-06-21 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * dwarf2read.h (dwarf2_section_info_def): Remove.
3074 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3075 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3076 std::vector<dwarf2_section_info>.
3077 (struct dwo_file) <~dwo_file>: Remove.
3078 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3079 types field.
3080 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3081 (dwarf2_read_debug_names): Likewise.
3082 (create_debug_types_hash_table): Change parameter type to
3083 array_view, adjust code accordingly.
3084 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3085 (partial_die_info::fixup): Likewise.
3086 (determine_prefix): Likewise.
3087 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3088
fb1eb2f9
SM
30892019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3090
3091 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3092 gdb_bfd_ref_ptr.
3093 <~dwo_file>: Remove call to gdb_bfd_unref.
3094 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3095 gdb_bfd_ref_ptr::get.
3096
51ac9db5
SM
30972019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3098
3099 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3100 type to htab_up.
3101 * dwarf2read.c (struct dwo_file): Initialize fields.
3102 <~dwo_file>: New.
3103 (free_dwo_file): Remove, move content to ~dwo_file.
3104 (struct dwo_file_deleter): Remove.
3105 (dwo_file_up>: Remove custom deleter.
3106 (free_dwo_files): Remove.
3107 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3108 dwo_files.
3109 (process_skeletonless_type_units): Call unique_ptr::get.
3110 (allocate_dwo_file_hash_table): Add deleter to created hash
3111 table. Change return type to htab_up.
3112 (lookup_dwo_file_slot): Don't memset dwo_file, call
3113 unique_ptr::get.
3114 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3115 (create_dwo_unit_in_dwp_v2): Likewise.
3116 (open_and_init_dwo_file): Likewise.
3117 (free_dwo_file_from_slot): Remove.
3118
dc4ccb6f
SM
31192019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3120
3121 * dwarf2read.h (struct dwarf2_section_info) <readin,
3122 is_virtual>: Change type to bool.
3123 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3124 true instead of 1.
3125
e6a1c5cb
TT
31262019-06-19 Tom Tromey <tom@tromey.com>
3127
3128 * tui/tui-data.h (tui_init_content_element): Don't declare.
3129
6f6ffbeb
TT
31302019-06-19 Tom Tromey <tom@tromey.com>
3131
3132 * tui/tui-data.h (tui_init_win_info): Don't declare.
3133
f23f598e
TV
31342019-06-19 Tom de Vries <tdevries@suse.de>
3135
3136 * dwarf2read.h (abstract_to_concrete): Change type to
3137 std::unordered_map<sect_offset, std::vector<sect_offset>,
3138 gdb::hash_enum<sect_offset>>.
3139
680e1bee
TT
31402019-06-19 Tom Tromey <tromey@adacore.com>
3141
3142 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3143 EVAL_AVOID_SIDE_EFFECTS specially.
3144
dcf37923
TT
31452019-06-19 Tom Tromey <tromey@adacore.com>
3146
3147 * source-cache.c (highlighter): New global.
3148 (source_cache::get_source_lines): Create a highlighter on demand.
3149
494986d5
AB
31502019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3151
3152 * defs.h (deprecated_interactive_hook): Delete declaration.
3153 * interps.c (clear_interpreter_hooks): Remove use of
3154 deprecated_interactive_hook.
3155 * top.c (deprecated_interactive_hook): Delete definition.
3156 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3157
3360b6e7
TV
31582019-06-18 Tom de Vries <tdevries@suse.de>
3159
3160 PR gdb/24515
3161 * dwarf2read.h (abstract_to_concrete): Change type from
3162 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3163 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3164 * dwarf2read.c (read_variable): Update.
3165 (dwarf2_fetch_die_loc_sect_off): Update.
3166
310b3441
TV
31672019-06-17 Tom de Vries <tdevries@suse.de>
3168
3169 PR gdb/24617
3170 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3171 accessing parent[parent_len - 1].
3172
ba9777be
PP
31732019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3174
3175 PR gdb/24364
3176 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3177 call dtrace_process_dof with NULL dof.
3178
2b9f6e89
TV
31792019-06-16 Tom de Vries <tdevries@suse.de>
3180
3181 PR gdb/24445
3182 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3183
431b3ead
TT
31842019-06-16 Tom Tromey <tom@tromey.com>
3185
3186 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3187 (make_all_visible): Use address of member.
3188
d04b44a1
TT
31892019-06-16 Tom Tromey <tom@tromey.com>
3190
3191 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3192 (tui_free_window, free_content, free_content_elements): Remove
3193 unnecessary cast.
3194 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3195 cast.
3196 * tui/tui-regs.c (tui_show_register_group)
3197 (tui_display_registers_from, tui_display_reg_element_at_line):
3198 Remove unnecessary cast.
3199
bf5142e7
AB
32002019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * linux-nat.c (normal_mask): Delete.
3203 (_initialize_linux_nat): Don't initialise normal_mask.
3204
c4973306
SM
32052019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3206
3207 PR gdb/24445
3208 * dwarf-index-write.h (write_psymtabs_to_index): Add
3209 dwz_basename parameter.
3210 * dwarf-index-write.c (write_gdbindex): Move file writing to
3211 write_gdbindex_1. Change return type void.
3212 (assert_file_size): Move up, remove filename parameter.
3213 (write_gdbindex_1): New function.
3214 (write_debug_names): Change return type to void, call
3215 assert_file_size.
3216 (struct index_wip_file): New struct.
3217 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3218 file logic to index_wip_file. Write index for dwz file if
3219 needed.
3220 (save_gdb_index_command): Pass basename of dwz file, if present.
3221 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3222 build-id of dwz file, if present.
3223 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3224 (dwarf2_get_dwz_file): Likewise.
3225 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3226 (dwarf2_get_dwz_file): Likewise.
3227
395f9c91
TT
32282019-06-16 Tom Tromey <tom@tromey.com>
3229
3230 * coffread.c (process_coff_symbol): Use xstrdup.
3231 * value.c (create_internalvar): Use xstrdup.
3232
cafb3438
TT
32332019-06-16 Tom Tromey <tom@tromey.com>
3234
3235 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3236 * breakpoint.c (stopin_command, stopat_command)
3237 (until_break_command, decode_location_default): Remove unnecessary
3238 cast.
3239 * utils.c (subset_compare): Remove unnecessary cast.
3240 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3241 cast.
3242 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3243 cast.
3244 * infcmd.c (path_command): Remove unnecessary cast.
3245 * coffread.c (decode_type): Remove unnecessary cast.
3246 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3247 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3248 * tui/tui-stack.c (tui_show_locator_content)
3249 (tui_show_frame_info): Remove unnecessary cast.
3250 * tui/tui-win.c (tui_scroll_forward_command)
3251 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3252 (parse_scrolling_args): Remove unnecessary cast.
3253 * tui/tui-data.c (init_win_info, tui_del_window)
3254 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3255 (free_content_elements): Remove unnecessary cast.
3256 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3257 unnecessary cast.
3258 * tui/tui-source.c (tui_set_source_content)
3259 (tui_vertical_source_scroll): Remove unnecessary cast.
3260 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3261 cast.
3262 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3263 * tui/tui-regs.c (tui_display_registers_from)
3264 (tui_display_register): Remove unnecessary cast.
3265 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3266 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3267 (make_visible): Remove unnecessary cast.
3268 * tui/tui-winsource.c (tui_erase_source_content)
3269 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3270 unnecessary cast.
3271 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3272 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3273 * stabsread.c (read_type, read_array_type, read_range_type):
3274 Remove unnecessary cast.
3275 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3276 (parse_symbol, parse_type, upgrade_type, parse_external)
3277 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3278 unnecessary cast.
3279 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3280
730ead81
TT
32812019-06-16 Tom Tromey <tom@tromey.com>
3282
3283 * tui/tui-data.c (tui_alloc_generic_win_info)
3284 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3285 checks.
3286
584a927c
AB
32872019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3288 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 * f-typeprint.c (f_print_type): Don't return early for not
3291 associated or not allocated types.
3292 (f_type_print_varspec_suffix): Add print_rank parameter and print
3293 ranks of array types in case they dangling.
3294 (f_type_print_base): Add print_rank parameter.
3295
30056ea0
AB
32962019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * NEWS: Mention new MI commands.
3299 * break-catch-throw.c (enum exception_event_kind): Move to
3300 breakpoint.h.
3301 (print_mention_exception_catchpoint): Output text as a single
3302 message.
3303 (catch_exception_command_1): Rename to...
3304 (catch_exception_event): ...this, make non-static, update header
3305 command, and change some parameter types.
3306 (catch_catch_command): Update for changes to
3307 catch_exception_command_1.
3308 (catch_throw_command): Likewise.
3309 (catch_rethrow_command): Likewise.
3310 * breakpoint.c (enum exception_event_kind): Delete.
3311 * breakpoint.h (enum exception_event_kind): Moved here from
3312 break-catch-throw.c.
3313 (catch_exception_event): Declare.
3314 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3315 (mi_cmd_catch_throw): New function.
3316 (mi_cmd_catch_rethrow): New function.
3317 (mi_cmd_catch_catch): New function.
3318 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3319 'catch-catch' entries.
3320 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3321 (mi_cmd_catch_rethrow): Declare.
3322 (mi_cmd_catch_catch): Declare.
3323
ec8e2b6d
AB
33242019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3325
3326 * annotate.c (annotate_source_line): Change return type to void,
3327 update implementation to match.
3328 * annotate.h (annotate_source_line): Change return type to void,
3329 update header comment.
3330 * stack.c (print_frame_info): Don't change what frame information
3331 is printed based on whether annotations are on or not.
3332
0d3abd8c
AB
33332019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3334
3335 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3336 (annotate_source): Make static.
3337 (annotate_source_line): Moved from source.c and renamed from
3338 identify_source_line. Update the return type.
3339 * annotate.h (annotate_source): Delete declaration.
3340 (annotate_source_line): Declaration moved from source.h, and
3341 renamed from identify_source_line. Return type updated.
3342 * source.c (identify_source_line): Moved to annotate.c and renamed
3343 to annotate_source_line.
3344 (info_line_command): Remove check of annotation_level.
3345 * source.h (identify_source_line): Move declaration to annotate.h
3346 and rename to annotate_source_line.
3347 * stack.c: Add 'annotate.h' include.
3348 (print_frame_info): Remove check of annotation_level before
3349 calling annotate_source_line.
3350
00df30ae
AB
33512019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3352
3353 * source-cache.c (source_cache::get_plain_source_lines): Use
3354 open_source_file_with_line_charpos instead of just
3355 open_source_file, remove call to find_source_lines.
3356 (source_cache::get_source_lines): Likewise.
3357 * source.c (find_source_lines): Make static.
3358 (get_filename_and_charpos): Renamed into...
3359 (open_source_file_with_line_charpos): ..this along with changes to
3360 return a scoped_fd, and some other minor clean ups.
3361 (identify_source_line): Use open_source_file_with_line_charpos.
3362 (search_command_helper): Use open_source_file_with_line_charpos
3363 instead of just open_source_file, remove call to
3364 find_source_lines.
3365 * source.h (open_source_file_with_line_charpos): Declare new
3366 function.
3367 (find_source_lines): Delete declaration.
3368
afda45a2
AB
33692019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3370
3371 * source.c (get_filename_and_charpos): Remove fullname
3372 parameter.
3373 (identify_source_line): Update call to get_filename_and_charpos.
3374
0735b091
TT
33752019-06-14 Tom Tromey <tromey@adacore.com>
3376
3377 PR gdb/24502:
3378 * ui-style.h (skip_ansi_escape): Update comment.
3379 * ui-file.h (class no_terminal_escape_file): New class.
3380 * ui-file.c (no_terminal_escape_file::write)
3381 (no_terminal_escape_file::puts): New methods.
3382 * cli/cli-logging.c (handle_redirections): Use
3383 no_terminal_escape_file.
3384
52ce35e2
TT
33852019-06-14 Tom Tromey <tromey@adacore.com>
3386
3387 * NEWS: Move convenience variable news above Python news.
3388
73cc7272
TT
33892019-06-14 Tom Tromey <tom@tromey.com>
3390
3391 * gnulib: Move directory to top-level.
3392 * configure.ac: Don't configure gnulib.
3393 * configure: Rebuild.
3394 * common/common-defs.h: Use new path to gnulib.
3395 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3396 (GNULIB_H): Remove.
3397 (INCGNU): Look in new gnulib location.
3398 (HFILES_NO_SRCDIR): Remove gnulib files.
3399 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3400 (generated_files): Remove GNULIB_H.
3401 ($(LIBGNU), all-lib): Remove targets.
3402 (distclean): Don't mention GNULIB_BUILDDIR.
3403 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3404
f5686554
TT
34052019-06-14 Tom Tromey <tromey@adacore.com>
3406
3407 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3408 Warn if symbol file does not provide any symbols.
3409
a0c1ffed
TT
34102019-06-14 Tom Tromey <tromey@adacore.com>
3411
3412 * source.c (find_and_open_source): Respect basenames_may_differ.
3413
7c39e397
AB
34142019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3415
3416 * annotate.c (annotate_breakpoints_invalid): Make use of
3417 scoped_restore_terminal_state.
3418 (annotate_frames_invalid): Likewise.
3419
f411722c
TT
34202019-06-14 Tom Tromey <tromey@adacore.com>
3421
3422 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3423 allow assignment to an internalvar.
3424
4268ec18
TT
34252019-06-14 Tom Tromey <tromey@adacore.com>
3426
3427 * ada-lex.l: Allow "_" in attribute names.
3428
abdb711e
TT
34292019-06-14 Tom Tromey <tromey@adacore.com>
3430
3431 PR gdb/24653:
3432 * regcache.c (registers_changed): Don't call alloca.
3433 * top.c (execute_command): Don't call alloca.
3434
4c048731
PA
34352019-06-13 Pedro Alves <palves@redhat.com>
3436
3437 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3438 'expression'. When parsing an expression, error out if there's
3439 junk after "unlimited".
3440 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3441 (do_set_command): Adjust calls to is_unlimited_literal.
3442
66eb1ed3
PA
34432019-06-13 Pedro Alves <palves@redhat.com>
3444
3445 * compile/compile.c (make_compile_options_def_group): Add braces
3446 around array_view initializer.
3447 * thread.c (make_thread_apply_all_options_def_group)
3448 (make_thread_apply_all_options_def_group): Likewise.
3449
3345721a
PA
34502019-06-13 Pedro Alves <palves@redhat.com>
3451
3452 * NEWS (New commands): Mention "maint test-options
3453 require-delimiter", "maint test-options unknown-is-error", "maint
3454 test-options unknown-is-operand" and "maint show
3455 test-options-completion-result".
3456 (New command options, command completion): New section.
3457 (Completion improvements): New section.
3458 Mention that you can abbreviate "unlimited".
3459
6206060d
PA
34602019-06-13 Pedro Alves <palves@redhat.com>
3461
3462 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3463 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3464 * unittests/cli-utils-selftests.c (test_parse_flags)
3465 (test_parse_flags_qcs): Delete.
3466 (test_cli_utils): Don't call deleted functions.
3467
6665660a
PA
34682019-06-13 Pedro Alves <palves@redhat.com>
3469
3470 * thread.c: Include "cli/cli-option.h".
3471 (tp_array_compar_ascending): Global.
3472 (tp_array_compar): Delete function.
3473 (tp_array_compar_ascending, tp_array_compar_descending): New
3474 functions.
3475 (ascending_option_def, qcs_flag_option_def)
3476 (thr_qcs_flags_option_defs)
3477 (make_thread_apply_all_options_def_group)
3478 (make_thread_apply_options_def_group): New.
3479 (thread_apply_all_command): Use gdb::option::process_options.
3480 (thread_apply_command_completer)
3481 (thread_apply_all_command_completer): New.
3482 (thread_apply_command): Use gdb::option::process_options.
3483 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3484 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3485 to generate help text of "thread apply". Adjust "taas"'s help.
3486 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3487 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3488
f7e13587
PA
34892019-06-13 Pedro Alves <palves@redhat.com>
3490
3491 * thread.c (thread_apply_command): Check for invalid TID with
3492 isdigit instead of !isalpha.
3493
5d707134
PA
34942019-06-13 Pedro Alves <palves@redhat.com>
3495
3496 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3497 (validate_flags_qcs): New.
3498 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3499 (validate_flags_qcs): Declare.
3500 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3501 (make_frame_apply_options_def_group): New.
3502 (frame_apply_command_count): Process options with
3503 gdb::option::process_options.
3504 (frame_apply_completer): New.
3505 (frame_apply_level_completer, frame_apply_all_completer)
3506 (frame_apply_completer): New.
3507 (_initialize_stack): Update help of "frame apply", "frame apply
3508 level", "frame apply all" and "faas" to mention supported options
3509 and install command completers.
3510 * stack.h (frame_apply_all_completer): Declare.
3511 * thread.c: Include "stack.h".
3512 (tfaas_command): Add "--".
3513 (_initialize_thread): Update help "tfaas" to mention supported
3514 options and install command completer.
3515
272d4594
PA
35162019-06-13 Pedro Alves <palves@redhat.com>
3517
3518 * completer.c (complete_nested_command_line): New.
3519 (gdb_completion_word_break_characters_throw): Add assertion.
3520 * completer.h (complete_nested_command_line): Declare.
3521
90a1ef87
PA
35222019-06-13 Pedro Alves <palves@redhat.com>
3523
3524 * stack.c (parse_backtrace_qualifiers): New.
3525 (backtrace_command): Use it.
3526 (backtrace_command_completer): Complete on qualifiers.
3527
d4c16835
PA
35282019-06-13 Pedro Alves <palves@redhat.com>
3529
3530 * frame.c: Include "cli/cli-option.h.
3531 (user_set_backtrace_options): New.
3532 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3533 Delete.
3534 (get_prev_frame): Adjust.
3535 (boolean_option_def, uinteger_option_def)
3536 (set_backtrace_option_defs): New.
3537 (_initialize_frame): Adjust and use
3538 gdb::option::add_setshow_cmds_for_options to install "set
3539 backtrace past-main" and "set backtrace past-entry".
3540 * frame.h: Include "cli/cli-option.h".
3541 (struct frame_print_options): Forward declare.
3542 (print_frame_arguments_all, print_frame_arguments_scalars)
3543 (print_frame_arguments_none): Declare.
3544 (print_entry_values): Delete declaration.
3545 (struct frame_print_options, user_frame_print_options): New.
3546 (struct set_backtrace_options): New.
3547 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3548 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3549 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3550 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3551 (list_args_or_locals): Add frame_print_options parameter.
3552 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3553 * python/py-framefilter.c (enumerate_args): Pass down
3554 USER_FRAME_PRINT_OPTIONS.
3555 * stack.c: Include "cli/cli-option.h".
3556 (print_frame_arguments_all, print_frame_arguments_scalars)
3557 (print_frame_arguments_none): Declare.
3558 (print_raw_frame_arguments, print_entry_values): Delete.
3559 (user_frame_print_options): New.
3560 (boolean_option_def, enum_option_def, frame_print_option_defs):
3561 New.
3562 (struct backtrace_cmd_options): New.
3563 (bt_flag_option_def): New.
3564 (backtrace_command_option_defs): New.
3565 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3566 (print_frame_arg, read_frame_arg, print_frame_args)
3567 (print_frame_info, print_frame): Add frame_print_options parameter
3568 and use it.
3569 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3570 (backtrace_command_1): Add frame_print_options and
3571 backtrace_cmd_options parameters and use them.
3572 (make_backtrace_options_def_group): New.
3573 (backtrace_command): Process command options with
3574 gdb::option::process_options.
3575 (backtrace_command_completer): New.
3576 (_initialize_stack): Extend "backtrace"'s help to mention
3577 supported options. Install completer for "backtrace".
3578 Install some settings commands with add_setshow_cmds_for_options.
3579
2daf894e
PA
35802019-06-13 Pedro Alves <palves@redhat.com>
3581
3582 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3583 and that "set/show print raw frame-arguments" are now deprecated.
3584
3585 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3586 command.
3587 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3588 * stack.c (_initialize_stack): Install "set/show print
3589 raw-frame-arguments", and deprecate "set/show print raw
3590 frame-arguments".
3591 * valprint.c (_initialize_valprint): Deprecate "set/show print
3592 raw".
3593
e6ed716c
PA
35942019-06-13 Pedro Alves <palves@redhat.com>
3595
3596 * compile/compile.c (struct compile_options): New.
3597 (compile_flag_option_def, compile_command_option_defs)
3598 (make_compile_options_def_group): New.
3599 (compile_file_command): Handle options with
3600 gdb::option::process_options.
3601 (compile_file_command_completer): New function.
3602 (compile_code_command): Handle options with
3603 gdb::option::process_options.
3604 (compile_code_command_completer): New function.
3605 (_initialize_compiler): Install completers for "compile code" and
3606 "compile file". Mention available options in "compile code" and
3607 "compile code"'s help.
3608 * completer.c (advance_to_completion_word): New, factored out from
3609 ...
3610 (advance_to_expression_complete_word_point): ... this.
3611 (advance_to_filename_complete_word_point): New.
3612 * completer.h (advance_to_filename_complete_word_point): New
3613 declaration.
3614
7d8062de
PA
36152019-06-13 Pedro Alves <palves@redhat.com>
3616
3617 * compile/compile.c: Include "cli/cli-option.h".
3618 (compile_print_value): Scope data pointer is now a
3619 value_print_options pointer; adjust.
3620 (compile_print_command): Process options. Scope data pointer is
3621 now a value_print_options pointer; adjust.
3622 (_initialize_compile): Update "compile print"'s help to include
3623 supported options. Install a completer for "compile print".
3624 * cp-valprint.c (show_vtblprint, show_objectprint)
3625 (show_static_field_print): Delete.
3626 (_initialize_cp_valprint): Don't install "set print
3627 static-members", "set print vtbl", "set print object" here.
3628 * printcmd.c: Include "cli/cli-option.h" and
3629 "common/gdb_optional.h".
3630 (print_command_parse_format): Rework to fill in a
3631 value_print_options instead of a format_data.
3632 (print_value): Change parameter type from format_data pointer to
3633 value_print_options reference. Adjust.
3634 (print_command_1): Process options. Adjust to pass down a
3635 value_print_options.
3636 (print_command_completer): New.
3637 (_initialize_printcmd): Install print_command_completer as
3638 handle_brkchars completer for the "print" command. Update
3639 "print"'s help to include supported options.
3640 * valprint.c: Include "cli/cli-option.h".
3641 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3642 here from cp-valprint.c.
3643 (boolean_option_def, uinteger_option_def)
3644 (value_print_option_defs, make_value_print_options_def_group):
3645 New. Use gdb::option::add_setshow_cmds_for_options to install
3646 "set print elements", "set print null-stop", "set print repeats",
3647 "set print pretty", "set print union", "set print array", "set
3648 print address", "set print symbol", "set print array-indexes".
3649 * valprint.h: Include <string> and "cli/cli-option.h".
3650 (make_value_print_options_def_group): Declare.
3651 (print_value): Change parameter type from format_data pointer to
3652 value_print_options reference.
3653 (print_command_completer): Declare.
3654
9d0faba9
PA
36552019-06-13 Pedro Alves <palves@redhat.com>
3656
3657 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3658 (COMMON_SFILES): Add maint-test-settings.c.
3659 * cli/cli-decode.c (boolean_enums): New global, factored out from
3660 ...
3661 (add_setshow_boolean_cmd): ... here.
3662 * cli/cli-decode.h (boolean_enums): Declare.
3663 * cli/cli-option.c: New file.
3664 * cli/cli-option.h: New file.
3665 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3666 factored out from ...
3667 (parse_cli_boolean_value(const char *)): ... this.
3668 (is_unlimited_literal): Change parameter type to pointer to
3669 pointer. Adjust and advance ARG pointer.
3670 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3671 (parse_cli_var_enum): New, factored out from ...
3672 (do_set_command): ... this. Adjust.
3673 * cli/cli-setshow.h (parse_cli_boolean_value)
3674 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3675 (parse_cli_var_enum): Declare.
3676 * cli/cli-utils.c: Include "cli/cli-option.h".
3677 (get_ulongest): New.
3678 * cli/cli-utils.h (get_ulongest): Declare.
3679 (check_for_argument): New overloads.
3680 * maint-test-options.c: New file.
3681
2c722807
PA
36822019-06-13 Pedro Alves <palves@redhat.com>
3683
3684 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3685 parse a range if "-" is at the end of the string.
3686
dee7b4c8
PA
36872019-06-13 Pedro Alves <palves@redhat.com>
3688
3689 * cli/cli-setshow.c (parse_auto_binary_operation)
3690 (parse_cli_boolean_value): Don't allow "o".
3691
dca0f6c0
PA
36922019-06-13 Pedro Alves <palves@redhat.com>
3693
3694 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3695 * NEWS: Mention maint test-settings KIND.
3696 * maint-test-settings.c: New file.
3697
597bf39d
PA
36982019-06-13 Pedro Alves <palves@redhat.com>
3699
3700 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3701 completer.
3702 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3703 "set" completers.
3704
48c410fb
PA
37052019-06-13 Pedro Alves <palves@redhat.com>
3706
3707 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3708 after item.
3709
93bcb043
PA
37102019-06-13 Pedro Alves <palves@redhat.com>
3711
3712 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3713
cbba3ecd
PA
37142019-06-13 Pedro Alves <palves@redhat.com>
3715
3716 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3717 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3718 call.
3719 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3720 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3721 calls.
3722 (check_for_argument): Skip spaces after argument.
3723
b9a3f842
PA
37242019-06-13 Pedro Alves <palves@redhat.com>
3725
3726 * thread.c (thread_apply_command): Adjust TID parsing.
3727 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3728 detected before end of string.
3729 (tid_is_in_list): Error out if LIST is invalid.
3730
3844e605
PA
37312019-06-13 Pedro Alves <palves@redhat.com>
3732
3733 * completer.c (complete_line_internal_1): Rewind completion word
3734 point.
3735 (completion_tracker::advance_custom_word_point_by): Change
3736 parameter type to int.
3737 * completer.h (completion_tracker::advance_custom_word_point_by):
3738 Likewise.
3739
00b56dbe
PA
37402019-06-13 Pedro Alves <palves@redhat.com>
3741
3742 * completer.c (advance_to_completion_word): Handle delimiters.
3743
d106773e
PA
37442019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3745
3746 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3747
08f10e02
TT
37482019-06-11 Tom Tromey <tom@tromey.com>
3749
3750 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3751 (xmalloc_failed): Move to alloc.c.
3752 * alloc.c: New file.
3753 * Makefile.in (COMMON_SFILES): Add alloc.c.
3754
1c7fe951
TT
37552019-06-11 Tom Tromey <tom@tromey.com>
3756
3757 * nat/linux-waitpid.c: Don't include server.h.
3758 (linux_debug): Remove.
3759 (my_waitpid): Update.
3760
89549d7f
TT
37612019-06-11 Tom Tromey <tromey@adacore.com>
3762
3763 * infcall.c (_initialize_infcall): Remove trailing newline from
3764 help.
3765 * user-regs.c (_initialize_user_regs): Remove trailing newline
3766 from help.
3767 * typeprint.c (_initialize_typeprint): Remove trailing newline
3768 from help.
3769 * reverse.c (_initialize_reverse): Remove trailing newlines from
3770 help.
3771 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3772 from help.
3773 * language.c (add_set_language_command): Remove trailing newline
3774 from help.
3775 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3776 help.
3777 * disasm.c (_initialize_disasm): Remove trailing newline from
3778 help.
3779 * top.c (init_main): Remove trailing newline from help.
3780 * interps.c (_initialize_interpreter): Remove trailing newline
3781 from help.
3782 * btrace.c (_initialize_btrace): Remove trailing newlines from
3783 help.
3784 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3785 from help.
3786 * python/python.c (_initialize_python): Remove trailing newline
3787 from help.
3788 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3789 help.
3790 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3791 from help. Reformat some text.
3792 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3793 from help.
3794 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3795 newline from help.
3796
86108c13
TT
37972019-06-11 Tom Tromey <tromey@adacore.com>
3798
3799 * darwin-nat.c (darwin_decode_exception_message)
3800 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3801
a7067863
AB
38022019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3803
3804 * valops.c (value_slice): Check for not allocated or not
3805 associated values.
3806
9ab08412
TV
38072019-06-10 Tom de Vries <tdevries@suse.de>
3808
3809 PR gdb/24618
3810 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3811 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3812 invalid.
3813
f19e22e9
TV
38142019-06-10 Tom de Vries <tdevries@suse.de>
3815
3816 PR gdb/24611
3817 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3818 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3819
e99f9db0
TV
38202019-06-10 Tom de Vries <tdevries@suse.de>
3821
3822 PR symtab/24545
3823 * symtab.c (struct demangled_name_entry): Add language field.
3824 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3825 static minimal symbol". Set and use language field.
3826
9bf7038b
TT
38272019-06-10 Tom Tromey <tromey@adacore.com>
3828
3829 * ada-lang.c (_initialize_ada_language): Update help text.
3830
422186a9
TT
38312019-06-10 Tom Tromey <tromey@adacore.com>
3832
3833 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3834 with a newline.
3835 * guile/guile.c (handle_boot_error): Don't end warning with a
3836 newline.
3837 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3838 warning with a newline.
3839 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3840 newline.
3841 (s12z_frame_cache): Likewise.
3842 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3843 a newline.
3844 * solib-svr4.c (disable_probes_interface): Don't end warning with
3845 a newline.
3846 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3847 newline.
3848 * python/python.c (do_finish_initialization): Don't end warning
3849 with a newline.
3850
25ce02ee
TT
38512019-06-10 Tom Tromey <tom@tromey.com>
3852
3853 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3854 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3855 gdbpy_enter.
3856
caa429d8
TT
38572019-06-10 Tom Tromey <tromey@adacore.com>
3858
3859 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3860 data.
3861 (elf_new_init): Don't call stabsread_new_init.
3862 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3863 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3864 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3865
81873cc8
TV
38662019-06-10 Tom de Vries <tdevries@suse.de>
3867
3868 PR symtab/16264
3869 PR symtab/24517
3870 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3871
4fa0265e
РИ
38722019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3873
3874 * source.c (find_and_open_source): Also rewrite relative file
3875 names.
3876
1a3da2cd
AB
38772019-04-26 Amos Bird <amosbird@gmail.com>
3878
3879 * annotate.c (annotate_thread_exited): Add "thread-exited"
3880 annotation.
3881
3847a7bf
TT
38822019-06-06 Tom Tromey <tromey@adacore.com>
3883
3884 * maint.h (class scoped_command_stats): Use
3885 DISABLE_COPY_AND_ASSIGN.
3886 <print_time>: New method.
3887 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
3888 print_time.
3889 (scoped_command_stats::print_time): New method.
3890
312617a3
AB
38912019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3892
3893 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
3894 instructions of lengths 6 or 8 bytes.
3895
b02f78f9
PA
38962019-06-04 Pedro Alves <palves@redhat.com>
3897
3898 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
3899
3900 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
3901 * breakpoint.c (condition_completer): Likewise.
3902 * cli/cli-dump.c (scan_expression): Likewise.
3903 * common/filestuff.c (mkdir_recursive): Likewise.
3904 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
3905 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
3906 (gdb_abspath): Likewise.
3907 * compile/compile-cplus-types.c
3908 (compile_cplus_instance::decl_name): Likewise.
3909 * completer.c (complete_explicit_location):
3910 (signal_completer, reg_or_group_completer_1): Likewise.
3911 * cp-support.c (cp_remove_params_if_any): Likewise.
3912 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
3913 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
3914 * infcmd.c (strip_bg_char): Likewise.
3915 * linespec.c (copy_token_string): Likewise.
3916 * mi/mi-main.c (output_cores): Likewise.
3917 * psymtab.c (psymtab_search_name):
3918 * symfile.c (test_set_ext_lang_command): Likewise.
3919 * target.c (target_fileio_read_stralloc): Likewise.
3920 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
3921 * value.c (complete_internalvar): Likewise.
3922
e1f2e1a2
CB
39232019-06-04 Christian Biesinger <cbiesinger@google.com>
3924
3925 Add objfile property to gdb.Type.
d3238f7d
PA
3926 * NEWS: Mention Python API addition.
3927 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 3928
e664d728
PW
39292019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3930
3931 * NEWS: Mention the new set|show style [title|highlight].
3932 Mention changes to "show style", "help" and "apropos".
3933
66d8c862
PW
39342019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3935
3936 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
3937 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
3938 instead of print_help_for_command.
3939 (print_doc_of_command): New function.
3940 (help_list): Add 'apropos -v word' suggestion.
3941 (print_help_for_command): Style the command name using title style.
3942 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
3943 (_initialize_cli_cmds): Describe -v in apropos_command help.
3944
9303eb2f
PW
39452019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3946
3947 * cli/cli-style.h (cli_style_option): Add name in constructor,
3948 add m_name class member, add constructor with intensity,
3949 add name class function.
3950 (cli_style_option::add_setshow_commands): Remove name argument.
3951 (highlight_style, title_style): New styles.
3952 * cli/cli-style.c (do_show): New function that shows a style
3953 characteristic styling the style name with itself.
3954 (set_style_name): New function.
3955 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
3956 Update all callers according to the changes in cli/cli-style.h.
3957 * utils.h (fputs_highlighted): New function.
3958 * utils.c (fputs_highlighted): Likewise.
3959
e2c52041
PW
39602019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3961
3962 * NEWS: Mention new pipe command and new convenience variables.
3963
947d3946
PW
39642019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3965
3966 * cli/cli-cmds.c (pipe_command): New function.
3967 (_initialize_cli_cmds): Call add_com for pipe_command.
3968 Define | as an alias for pipe.
3969 (exit_status_set_internal_vars): New function.
3970 (shell_escape): Call exit_status_set_internal_vars.
3971 cli/cli-decode.c (find_command_name_length): Recognize | as
3972 a single character command.
3973
b8fd0918
PW
39742019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3975
3976 * gdbcmd.h (execute_command_to_ui_file): New declaration.
3977 top.c (execute_command_to_ui_file): New function, mostly a copy
3978 of execute_command_to_string.
3979 (execute_command_to_string): Implement by calling
3980 execute_command_to_ui_file.
3981
68bb5386
PW
39822019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3983
3984 * top.h (saved_command_line): Remove declaration.
3985 * top.c (previous_saved_command_line, previous_repeat_arguments):
3986 New variables.
3987 (saved_command_line): Make static, define together with other
3988 'repeat variables'.
3989 (dont_repeat): Clear repeat_arguments.
3990 (repeat_previous, get_saved_command_line, save_command_line):
3991 New functions.
3992 (gdb_init): Initialize saved_command_line
3993 and previous_saved_command_line.
3994 * main.c (captured_main_1): Remove saved_command_line initialization.
3995 * event-top.c (handle_line_of_input): Update to use
3996 the new 'repeat' related functions instead of direct access to
3997 saved_command_line.
3998 * command.h (repeat_previous, get_saved_command_line,
3999 save_command_line): New declarations.
4000 (dont_repeat): Add comment.
4001
bfcdb852
TT
40022019-05-30 Tom Tromey <tromey@adacore.com>
4003
4004 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4005 Fix comment.
4006 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4007
0ef209f2
JV
40082019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4009
4010 PR cli/24587
4011 * completer.c (complete): Initialize variable word.
4012
955b06fa
SDJ
40132019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4014
4015 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4016 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4017 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4018 'body' is NULL to the outter 'if', protecting the '!is_define'
4019 situation as well.
4020
fa9c3fa0
TT
40212019-05-29 Tom Tromey <tromey@adacore.com>
4022
4023 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4024 (dwarf_unknown): New function.
4025 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4026 (dwarf_type_encoding_name): Use dwarf_unknown.
4027
4330d61d
TT
40282019-05-29 Tom Tromey <tromey@adacore.com>
4029
4030 PR c++/20020:
4031 * cp-valprint.c (cp_print_value_fields): Call
4032 cp_print_static_field inside "try".
4033
33a6bc35
TT
40342019-05-29 Tom Tromey <tromey@adacore.com>
4035
4036 * inflow.c (struct terminal_info): Add default operator=.
4037 * configure: Rebuild.
4038 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4039 -Wdeprecated-copy-dtor, -Wredundant-move.
4040
000439d5
TT
40412019-05-29 Tom Tromey <tromey@adacore.com>
4042
4043 * NEWS: Add entry.
4044 * infcmd.c (print_return_value_1): Handle finish_print
4045 option.
4046 (show_print_finish): New function.
4047 (_initialize_infcmd): Add "set/show print finish" commands.
4048 * valprint.c (user_print_options): Initialize new member.
4049 * valprint.h (struct value_print_options) <finish_print>: New
4050 member.
4051
c0e70c62
TT
40522019-05-28 Tom Tromey <tromey@adacore.com>
4053
4054 * ada-lang.c (ada_remove_Xbn_suffix)
4055 (find_old_style_renaming_symbol)
4056 (parse_old_style_renaming): Remove.
4057 (ada_find_renaming_symbol): Don't call
4058 find_old_style_renaming_symbol.
4059 (ada_is_renaming_symbol): Rename from
4060 ada_find_renaming_symbol. Remove "block" parameter. Return
4061 bool. Now static.
4062 (ada_read_var_value): Update and simplify.
4063 * ada-exp.y (write_var_or_type): Remove old code.
4064
766f8836
AH
40652019-05-28 Alan Hayward <alan.hayward@arm.com>
4066
4067 * event-top.c: Remove include comment.
4068 * inflow.c (class scoped_ignore_sigttou): Move from here...
4069 * inflow.h (class scoped_ignore_sigttou): ...to here.
4070 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4071 * top.c: Remove include comment.
4072
eb41253a
TT
40732019-05-27 Tom Tromey <tom@tromey.com>
4074
4075 * NEWS: Fix typo.
4076
4ca51187
TT
40772019-05-22 Tom Tromey <tromey@adacore.com>
4078
4079 * target.c (target_follow_exec): Constify parameter.
4080 * target-delegates.c: Rebuild.
4081 * remote.c (remote_target::follow_exec): Constify parameter.
4082 * infrun.c (follow_exec): Constify parameter.
4083 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4084 (target_follow_exec): Likewise.
4085
8fca4da0
AH
40862019-05-22 Alan Hayward <alan.hayward@arm.com>
4087
4088 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4089 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4090
b7060614
AH
40912019-05-22 Alan Hayward <alan.hayward@arm.com>
4092
4093 * NEWS: Add debugredirect and testsuite sections.
4094
0a5954bd
SC
40952019-05-22 Simon Cook <simon.cook@embecosm.com>
4096
4097 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4098 target descriptions using exclusively floating point register name
4099 aliases.
4100
dc42e902
AB
41012019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4102
4103 PR gdb/18644:
4104 * f-lang.c (build_fortran_types): Handle the case where
4105 gdbarch_floatformat_for_type returns a nullptr.
4106
fb7806c7
TV
41072019-05-21 Tom de Vries <tdevries@suse.de>
4108
4109 PR cli/24587
4110 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4111
34d11c68
AB
41122019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 PR gdb/18644:
4115 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4116 16-byte floats.
4117 * i386-tdep.c (i386_floatformat_for_type): Use
4118 floatformats_ia64_quad for the 16-byte floating point component
4119 within a fortran 32-byte complex number.
4120
122cf0f2
AB
41212019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4122
4123 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4124 delete default constructor.
4125 (find_partial_die): Update to return const struct.
4126 (partial_die_parent_scope): Move variable declaration into scope
4127 of its use and change its type to auto.
4128 (guess_partial_die_structure_name): Likewise.
4129 (partial_die_info::fixup): Likewise.
4130
33d0e35a
TT
41312019-05-17 Tom Tromey <tromey@adacore.com>
4132
4133 * source.c (find_and_open_source): Remove cast.
4134
a45575b0
TT
41352019-05-17 Tom Tromey <tromey@adacore.com>
4136
4137 * annotate.c (annotate_source): Make "filename" const.
4138 * annotate.h (annotate_source): Use const.
4139
81f47ac2
AH
41402019-05-17 Alan Hayward <alan.hayward@arm.com>
4141
4142 * disasm.c (set_disassembler_options): Send errors to stderr.
4143
ca1285d1
AH
41442019-05-17 Alan Hayward <alan.hayward@arm.com>
4145
4146 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4147 (cli_interp_base::set_logging): Check debug_redirect.
4148 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4149 * cli/cli-logging.c (debug_redirect): Add static variable.
4150 (pop_output_files): Add default param.
4151 (handle_redirections): Print debug setting.
4152 (show_logging_command): Likewise.
4153 (_initialize_cli_logging): Add debugredirect command.
4154 * interps.c (current_interp_set_logging): Add debug_redirect
4155 parameter.
4156 * interps.h (set_logging): Add debug_redirect parameter.
4157 (current_interp_set_logging): Likewise.
4158 * mi/mi-common.h: Likewise.
4159 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4160
41612019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4162 Tom Tromey <tromey@adacore.com>
4163
4164 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4165 directly.
4166 * cli/cli-interp.h (make_logging_output): Remove declaration.
4167 * cli/cli-logging.c (make_logging_output): Remove function.
4168 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4169 directly.
4170 * ui-file.c (tee_file::tee_file): Remove bools.
4171 (tee_file::~tee_file): Remove deletes.
4172 * ui-file.h (tee_file): Remove bools.
4173
26648588
JV
41742019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4175
4176 * mi/mi-cmds.h (mi_cmd_complete): New function.
4177 * mi/mi-main.c (mi_cmd_complete): Likewise.
4178 * mi/mi-cmds.c: Define new MI command -complete.
4179 * NEWS: Mention new -complete command.
4180
6e035501
JV
41812019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4182
4183 * completer.h (complete): New function.
4184 * completer.c (complete): Likewise.
4185 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4186 function defined in completer.h.
4187
7d0e2ece
JV
41882019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4189
e79be6e5 4190 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4191
fb816e8b
TV
41922019-05-17 Tom de Vries <tdevries@suse.de>
4193
4194 PR gdb/24094
4195 * dwarf2read.c (struct cu_partial_die_info): New struct.
4196 (find_partial_die): Return cu_partial_die_info.
4197 (partial_die_parent_scope, guess_partial_die_structure_name)
4198 (partial_die_info::fixup): Handle new return type of find_partial_die.
4199
677052f2
SDJ
42002019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4201
4202 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4203 "std::string", simplifying the algorithm.
4204
f3da9116
SDJ
42052019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4206
4207 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4208 (stap_static_probe_ops::get_probes): Likewise.
4209
f1bb75ab
SDJ
42102019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4211
4212 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4213 '-')" and "else if".
4214 (stap_parse_single_operand): Join checks for
4215 "gdbarch_stap_parse_special_token_p" and
4216 "gdbarch_stap_parse_special_token" in the same "if" statement.
4217 Invert check when verifying for operation on register
4218 displacement.
4219
3ca58cde
SDJ
42202019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4221
4222 * stap-probe.c (stap_get_opcode): Update comment.
4223 (stap_get_expected_argument_type): Likewise.
4224 (handle_stap_probe): Likewise.
4225
af2d9bee
SDJ
42262019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4227
4228 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4229 return type to 'bool'. Adjust comment. Use 'bool' when
4230 appropriate.
4231 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4232 * stap-probe.c (stap_parse_argument_1): Likewise.
4233 (stap_is_operator): Likewise.
4234 (stap_is_generic_prefix): Likewise.
4235 (stap_is_register_prefix): Likewise.
4236 (stap_is_register_indirection_prefix): Likewise.
4237 (stap_is_integer_prefix): Likewise.
4238 (stap_generic_check_suffix): Likewise.
4239 (stap_check_integer_suffix): Likewise.
4240 (stap_check_register_suffix): Likewise.
4241 (stap_check_register_indirection_suffix): Likewise.
4242 (stap_parse_register_operand): Likewise.
4243 (stap_parse_single_operand): Likewise.
4244 (stap_parse_argument_1): Likewise.
4245 (stap_probe::get_argument_count): Likewise.
4246 (stap_is_operator): Likewise.
4247
61c9c421
TT
42482019-05-16 Tom Tromey <tromey@adacore.com>
4249
4250 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4251 keyword to foreach.
4252
9ddc1af1
SM
42532019-05-15 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * linux-thread-db.c (try_thread_db_load_1): Change return type
4256 to bool.
4257 (try_thread_db_load): Likewise.
4258 (try_thread_db_load_from_pdir_1): Likewise.
4259 (try_thread_db_load_from_pdir): Likewise.
4260 (try_thread_db_load_from_sdir): Likewise.
4261 (try_thread_db_load_from_dir): Likewise.
4262 (thread_db_load_search): Likewise.
4263 (has_libpthread): Likewise.
4264 (thread_db_load): Likewise.
4265
7bede828
SDJ
42662019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4267
4268 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4269 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4270 NULL, and complain/return if that's the case.
4271
c5358db4
JD
42722019-05-15 John Darrington <john@darrington.wattle.id.au>
4273
4274 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4275 (advance, posn, abstract_read_memory): New functions.
4276 [struct mem_read_abstraction]: New struct.
4277 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4278
c408a94f
TT
42792019-05-14 Tom Tromey <tromey@adacore.com>
4280
4281 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4282 value is not lval_memory.
4283
e7bd7fba
TT
42842019-05-14 Tom Tromey <tromey@adacore.com>
4285
4286 * solib.c (info_sharedlibrary_command): Style the file name.
4287
a6d0f249
AH
42882019-05-14 Alan Hayward <alan.hayward@arm.com>
4289
4290 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4291 (aarch64_vnv_type): Likewise.
4292 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4293 * common/tdesc.c: Likewise.
4294 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4295 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4296 * features/aarch64-fpu.xml: Add ieee half view.
4297 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4298 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4299 * gdbtypes.h (struct builtin_type): Likewise.
4300 (struct objfile_type): Likewise.
4301
66b8bb74
SM
43022019-05-12 Paul Naert <paul.naert@polymtl.ca>
4303
4304 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4305 typo.
4306 * location.h (string_to_event_location): Likewise.
4307
21c219fd
JB
43082019-05-11 Joel Brobecker <brobecker@adacore.com>
4309
4310 GDB 8.3 released.
4311
13674803
SM
43122019-05-10 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4315 New variable declaration.
4316 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4317 New variable.
4318 (print_one_breakpoint): Use ui_out::test_flags and new global
4319 variable to compute use_fixed_output.
4320 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4321 Remove.
4322 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4323 (mi_multi_location_breakpoint_output_fixed): Remove.
4324 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4325 new variable.
4326 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4327 fix_multi_location_breakpoint_output flag if version >= 3.
4328 * ui-out.h (enum ui_out_flag)
4329 <fix_multi_location_breakpoint_output>: New enumerator.
4330
a9eac7f9
SM
43312019-05-10 Simon Marchi <simon.marchi@efficios.com>
4332
4333 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4334
71bed2db
TT
43352019-05-10 Tom Tromey <tromey@adacore.com>
4336
4337 * ada-lang.c (catch_ada_completer): New function.
4338 (_initialize_ada_language): Use it.
4339
24c54127
TT
43402019-05-10 Tom Tromey <tromey@adacore.com>
4341
4342 * thread.c (print_thread_info): Make "requested_threads" const.
4343 * gdbthread.h (print_thread_info): Make "requested_threads"
4344 const.
4345 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4346 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4347
7a102139
TT
43482019-05-08 Tom Tromey <tom@tromey.com>
4349
4350 * gdbtypes.c (objfile_type_data): Change type.
4351 (objfile_type, _initialize_gdbtypes): Update.
4352
924d79e2
TT
43532019-05-08 Tom Tromey <tom@tromey.com>
4354
4355 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4356 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4357 (_initialize_dwarf2_frame): Update.
4358
4c58e337
TT
43592019-05-08 Tom Tromey <tom@tromey.com>
4360
4361 * objc-lang.c (objc_objfile_data): Change type.
4362 (find_methods): Update.
4363 (_initialize_objc_lang): Remove.
4364
d772d2ab
TT
43652019-05-08 Tom Tromey <tom@tromey.com>
4366
4367 * stabsread.c (rs6000_builtin_type_data): Change type.
4368 (rs6000_builtin_type, _initialize_stabsread): Update.
4369
d11d83f4
TT
43702019-05-08 Tom Tromey <tom@tromey.com>
4371
4372 * mips-tdep.c (mips_pdr_data): Remove.
4373 (_initialize_mips_tdep): Update.
4374
9a73f0ad
TT
43752019-05-08 Tom Tromey <tom@tromey.com>
4376
4377 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4378 (hppa_init_objfile_priv_data, read_unwind_info)
4379 (find_unwind_entry, _initialize_hppa_tdep): Update.
4380
8127a2fa
TT
43812019-05-08 Tom Tromey <tom@tromey.com>
4382
4383 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4384 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4385 on obstack.
4386 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4387
91d3055d
TT
43882019-05-08 Tom Tromey <tom@tromey.com>
4389
4390 * mdebugread.c (basic_type_data): Change type.
4391 (basic_type, _initialize_mdebugread): Update.
4392
31930bd3
TT
43932019-05-08 Tom Tromey <tom@tromey.com>
4394
4395 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4396
bdb3ed9e
TT
43972019-05-08 Tom Tromey <tom@tromey.com>
4398
4399 * nto-tdep.c (nto_inferior_data_reg): Change type.
4400 (nto_inferior_data): Update.
4401 (nto_inferior_data_cleanup, nto_new_inferior_data)
4402 (_initialize_nto_tdep): Remove.
4403 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4404
f37b313d
TT
44052019-05-08 Tom Tromey <tom@tromey.com>
4406
4407 * ada-lang.c (struct ada_inferior_data): Add initializers.
4408 (ada_inferior_data): Change type.
4409 (ada_inferior_data_cleanup): Remove.
4410 (get_ada_inferior_data, ada_inferior_exit)
4411 (struct ada_pspace_data): Add initializers, destructor.
4412 (ada_pspace_data_handle): Change type.
4413 (get_ada_pspace_data): Update.
4414 (ada_pspace_data_cleanup): Remove.
4415
24699405
TT
44162019-05-08 Tom Tromey <tom@tromey.com>
4417
4418 * coffread.c (struct coff_symfile_info): Add initializers.
4419 (coff_objfile_data_key): Move lower. Change type.
4420 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4421 Update.
4422 (coff_free_info): Remove.
4423
d4e05d2f
TT
44242019-05-08 Tom Tromey <tom@tromey.com>
4425
4426 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4427 (fbsd_pspace_data_handle): Move lower. Change type.
4428 (get_fbsd_pspace_data): Update.
4429 (fbsd_pspace_data_cleanup): Remove.
4430 (_initialize_fbsd_tdep): Update.
4431
14ef6690
TT
44322019-05-08 Tom Tromey <tom@tromey.com>
4433
4434 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4435 (get_ada_tasks_pspace_data): Update.
4436 (ada_tasks_pspace_data_cleanup): Remove.
4437 (_initialize_tasks): Update.
4438 (ada_tasks_inferior_data_handle): Change type.
4439 (get_ada_tasks_inferior_data): Update.
4440 (ada_tasks_inferior_data_cleanup): Remove.
4441 (struct ada_tasks_pspace_data): Add initializers.
4442
814cf43a
TT
44432019-05-08 Tom Tromey <tom@tromey.com>
4444
4445 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4446 * symfile-debug.c (debug_sym_get_probes): Change type.
4447 * stap-probe.c (handle_stap_probe):
4448 (stap_static_probe_ops::get_probes): Change type.
4449 * probe.h (class static_probe_ops) <get_probes>: Change type.
4450 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4451 (parse_probes_in_pspace): Update.
4452 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4453 Update.
4454 (any_static_probe_ops::get_probes): Change type.
4455 * elfread.c (elfread_data): New typedef.
4456 (probe_key): Change type.
4457 (elf_get_probes): Likewise. Update.
4458 (probe_key_free): Remove.
4459 (_initialize_elfread): Update.
4460 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4461 Change type.
4462 (dtrace_process_dof_probe, dtrace_process_dof)
4463 (dtrace_static_probe_ops::get_probe): Change type.
4464
02dc647e
TT
44652019-05-08 Tom Tromey <tom@tromey.com>
4466
4467 * xcoffread.c (struct xcoff_symfile_info): Rename from
4468 coff_symfile_info. Add initializers.
4469 (xcoff_objfile_data_key): Move lower. Change type.
4470 (XCOFF_DATA): Rewrite.
4471 (xcoff_free_info): Remove.
4472 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4473 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4474 (xcoff_initial_scan): Update.
4475
09232438
TT
44762019-05-08 Tom Tromey <tom@tromey.com>
4477
4478 * solib-svr4.c (struct svr4_info): Add initializers and
4479 destructor.
4480 <probes_table>: Now an htab_up.
4481 (solib_svr4_pspace_data): Change type.
4482 (free_probes_table): Simplify.
4483 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4484 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4485 (probes_table_remove_objfile_probes, register_solib_event_probe)
4486 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4487 (_initialize_svr4_solib): Update.
4488
7b4a314f
TT
44892019-05-08 Tom Tromey <tom@tromey.com>
4490
4491 * remote.c (remote_pspace_data): Change type.
4492 (remote_pspace_data_cleanup): Remove.
4493 (get_remote_exec_file, set_pspace_remote_exec_file)
4494 (_initialize_remote): Update.
4495
51d3063a
TT
44962019-05-08 Tom Tromey <tom@tromey.com>
4497
4498 * breakpoint.c (breakpoint_objfile_key): Change type.
4499 (get_breakpoint_objfile_data): Update.
4500 (free_breakpoint_objfile_data): Remove.
4501 (_initialize_breakpoint): Update.
4502
89fb8848
TT
45032019-05-08 Tom Tromey <tom@tromey.com>
4504
4505 * linux-tdep.c (struct linux_info): Add initializers.
4506 (linux_inferior_data): Move. Change type.
4507 (invalidate_linux_cache_inf): Update.
4508 (linux_inferior_data_cleanup): Remove.
4509 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4510
e9b89e2d
TT
45112019-05-08 Tom Tromey <tom@tromey.com>
4512
4513 * auxv.c (auxv_inferior_data): Move. Change type.
4514 (auxv_inferior_data_cleanup): Remove.
4515 (invalidate_auxv_cache_inf): Rewrite.
4516 (get_auxv_inferior_data, _initialize_auxv): Update.
4517
8c42777c
TT
45182019-05-08 Tom Tromey <tom@tromey.com>
4519
4520 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4521 (symfile_debug_objfile_data_key): Change type.
4522 (symfile_debug_installed, debug_qf_has_symbols)
4523 (debug_qf_find_last_source_symtab)
4524 (debug_qf_forget_cached_source_info)
4525 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4526 (debug_qf_print_stats, debug_qf_dump)
4527 (debug_qf_expand_symtabs_for_function)
4528 (debug_qf_expand_all_symtabs)
4529 (debug_qf_expand_symtabs_with_fullname)
4530 (debug_qf_map_matching_symbols)
4531 (debug_qf_expand_symtabs_matching)
4532 (debug_qf_find_pc_sect_compunit_symtab)
4533 (debug_qf_map_symbol_filenames)
4534 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4535 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4536 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4537 (debug_sym_read_linetable, debug_sym_relocate): Update.
4538 (symfile_debug_free_objfile): Remove.
4539 (install_symfile_debug_logging, _initialize_symfile_debug):
4540 Update.
4541
5bfd760d
TT
45422019-05-08 Tom Tromey <tom@tromey.com>
4543
4544 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4545 allocate_on_obstack.
4546 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4547 (get_dwarf2_per_objfile): Update.
4548 (set_dwarf2_per_objfile): Remove.
4549 (dwarf2_has_info, dwarf2_get_section_info): Update.
4550 (dwarf2_free_objfile): Remove.
4551 (_initialize_dwarf2_read): Update.
4552
e85e19b4
TT
45532019-05-08 Tom Tromey <tom@tromey.com>
4554
4555 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4556 initializers.
4557 <unsupported_script_warning_printed,
4558 script_not_found_warning_printed>: Now bool.
4559 (auto_load_pspace_data): Change type.
4560 (~auto_load_pspace_info): Rename from
4561 auto_load_pspace_data_cleanup.
4562 (get_auto_load_pspace_data, init_loaded_scripts_info)
4563 (clear_section_scripts, maybe_print_unsupported_script_warning)
4564 (maybe_print_script_not_found_warning, _initialize_auto_load):
4565 Update.
4566
f6aa7436
TT
45672019-05-08 Tom Tromey <tom@tromey.com>
4568
4569 * objfiles.c (objfile_pspace_info): Add destructor and
4570 initializers.
4571 (objfiles_pspace_data): Change type.
4572 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4573 (get_objfile_pspace_data): Update.
4574 (objfiles_bfd_data): Change type.
4575 (get_objfile_bfd_data): Update.
4576 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4577
6ae614f6
TT
45782019-05-08 Tom Tromey <tom@tromey.com>
4579
4580 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4581 Change type.
4582 (get_catch_syscall_inferior_data): Update.
4583 (catch_syscall_inferior_data_cleanup): Remove.
4584 (_initialize_break_catch_syscall): Update.
4585
6509b8eb
TT
45862019-05-08 Tom Tromey <tom@tromey.com>
4587
4588 * inflow.c (struct terminal_info): Add destructor and
4589 initializers.
4590 (inflow_inferior_data): Change type.
4591 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4592 (get_inflow_inferior_data, inflow_inferior_exit)
4593 (swap_terminal_info, _initialize_inflow): Update.
4594
35632941
TT
45952019-05-08 Tom Tromey <tom@tromey.com>
4596
4597 * target-dcache.c (target_dcache_cleanup): Remove.
4598 (target_dcache_aspace_key): Change type.
4599 (target_dcache_init_p, target_dcache_invalidate)
4600 (target_dcache_get, target_dcache_get_or_init)
4601 (_initialize_target_dcache): Update.
4602 * dcache.h (struct dcache_deleter): New.
4603
3017b94d
TT
46042019-05-08 Tom Tromey <tom@tromey.com>
4605
4606 * symtab.c (struct symbol_cache): Add destructor and
4607 initializers.
4608 (symbol_cache_key): Move. Change type.
4609 (make_symbol_cache, free_symbol_cache): Remove.
4610 (get_symbol_cache): Update.
4611 (symbol_cache_cleanup): Remove.
4612 (ALL_PSPACES, symbol_cache_flush)
4613 (maintenance_print_symbol_cache)
4614 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4615 Update.
4616
a32ad8c5
TT
46172019-05-08 Tom Tromey <tom@tromey.com>
4618
4619 * symtab.c (struct main_info): Add destructor and initializers.
4620 (main_progspace_key): Move. Change type.
4621 (get_main_info): Update.
4622 (main_info_cleanup): Remove.
4623 (_initialize_symtab): Update.
4624
5f6e90a0
TT
46252019-05-08 Tom Tromey <tom@tromey.com>
4626
4627 * registry.h (DECLARE_REGISTRY): Define the _key class.
4628
1bd0c6e4
AB
46292019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4630
4631 * NEWS: Merge two 'New commands' sections.
4632
2228ef77
XR
46332019-05-08 Joel Brobecker <brobecker@adacore.com>
4634
4635 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4636 parameter and use Ada language definition instead.
4637 (ada_val_print_ptr): Remove unused language parameter.
4638 (ada_val_print_num): Remove language parameter and use Ada language
4639 definition instead.
4640 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4641 parameter.
4642 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4643 parameter and use Ada language definition instead.
4644 (ada_val_print_1): Update all ada_val_print_xxx calls.
4645 Remove language parameter.
4646 (ada_val_print): Update ada_val_print_1 call.
4647
60fcc1c3
TT
46482019-05-08 Tom Tromey <tromey@adacore.com>
4649
4650 * remote.c (remote_hw_watchpoint_limit)
4651 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4652 Now static.
4653
ed2b7c17
TT
46542019-05-08 Tom Tromey <tromey@adacore.com>
4655
4656 * maint.c (_initialize_maint_cmds): Move initialization code to
4657 remote.c.
4658 (watchdog, show_watchdog): Move to remote.c.
4659 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4660 "watchdog" static.
4661 (_initialize_remote): Move initialization code from maint.c.
4662 * defs.h (watchdog): Don't declare.
4663
b0be6c91
TT
46642019-05-08 Tom Tromey <tromey@adacore.com>
4665
4666 * tui/tui-interp.c: Include main.h.
4667 * interps.c: Include main.h.
4668 * main.h (interpreter_p): Declare.
4669 * defs.h (interpreter_p): Don't declare.
4670
587ee17b
TT
46712019-05-08 Tom Tromey <tromey@adacore.com>
4672
4673 * dwarf2loc.c: Include dwarf2read.h.
4674 * defs.h (read_unsigned_leb128): Don't declare.
4675 * dwarf2read.h (read_unsigned_leb128): Declare.
4676
ca1df239
TT
46772019-05-08 Tom Tromey <tromey@adacore.com>
4678
4679 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4680 method.
4681
99f20f08
TT
46822019-05-08 Tom Tromey <tromey@adacore.com>
4683
4684 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4685 when no wrap column is set.
4686
80e55b13
TT
46872019-05-08 Tom Tromey <tromey@adacore.com>
4688
4689 * c-lang.c (c_get_string): Handle non-C-style arrays.
4690
9d3421af
TT
46912019-05-08 Tom Tromey <tromey@adacore.com>
4692
4693 * typeprint.c (print_offset_data::update): Print the bit offset,
4694 not the number of bits remaining.
4695
844333e2
TT
46962019-05-08 Tom Tromey <tromey@adacore.com>
4697
4698 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4699 padding at end of comment.
4700
988915ee
TT
47012019-05-08 Tom Tromey <tromey@adacore.com>
4702
4703 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4704 Compare main types.
4705
26bfd823
TT
47062019-05-06 Tom Tromey <tom@tromey.com>
4707
4708 * common/scoped_mmap.c: Include common-defs.h.
4709 * common/scoped_mmap.h: Don't include config.h.
4710
89055eaa
TT
47112019-05-04 Tom Tromey <tom@tromey.com>
4712
4713 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4714 (struct aarch64_call_info): Add initializers.
4715 <si>: Now a std::vector.
4716 (pass_on_stack, aarch64_push_dummy_call): Update.
4717
5da01df5
TT
47182019-05-04 Simon Marchi <simon.marchi@efficios.com>
4719 Tom Tromey <tom@tromey.com>
4720
4721 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4722 (ppc_threads): Now a std::vector. Now static.
4723 (hwdebug_find_thread_points_by_tid)
4724 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4725 Update.
4726
fbdf05a1
TT
47272019-05-04 Tom Tromey <tom@tromey.com>
4728
4729 * arc-tdep.c (arc_tdesc_init): Return bool.
4730
06d16ec9
TT
47312019-05-04 Tom Tromey <tom@tromey.com>
4732
4733 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4734 Use gdb_assert_not_reached.
4735
9c056022
TT
47362019-05-04 Tom Tromey <tom@tromey.com>
4737
4738 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4739 "false".
4740
fa9c2a59
TT
47412019-05-04 Tom Tromey <tom@tromey.com>
4742
4743 * arc-tdep.c (arc_tdesc_init): Use bool.
4744
e2eb806a
TT
47452019-05-04 Tom Tromey <tom@tromey.com>
4746
4747 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4748
6fe87677
TT
47492019-05-04 Tom Tromey <tom@tromey.com>
4750
4751 * cli/cli-cmds.c (valid_command_p): Return bool.
4752
7f008c9e
TT
47532019-05-04 Tom Tromey <tom@tromey.com>
4754
4755 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4756 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4757
b6484282
RT
47582019-05-04 Raul Tambre <raul@tambre.ee>
4759
4760 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4761 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4762 operator for comparison.
4763
af97b416
TT
47642019-05-04 Tom Tromey <tom@tromey.com>
4765
4766 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4767 (lookup_partial_symbol, print_partial_symbols)
4768 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4769 (psymbol_compare): Update.
4770 (add_psymbol_to_bcache): Clear the entire psymbol.
4771 (maintenance_check_psymtabs): Update.
4772 * psympriv.h (struct partial_symbol): Don't derive from
4773 general_symbol_info.
4774 <obj_section, unrelocated_address, address,
4775 set_unrelocated_address>: Update.
4776 <ginfo>: New member.
4777 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4778 (debug_names::write_psymbols): Update.
4779
9d6d4be8
TV
47802019-05-04 Tom de Vries <tdevries@suse.de>
4781
4782 * contrib/cc-with-tweaks.sh: Support -n arg.
4783
66452beb
PW
47842019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4785
4786 * corelow.c (core_target::detach): Ensure frame cache and
4787 register caches are cleared.
4788 inferior.c (exit_inferior_1): Likewise.
4789
bde09ab7
TT
47902019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4791 Tom Tromey <tom@tromey.com>
4792
4793 * dictionary.c (collate_pending_symbols_by_language): Remove
4794 "struct" from foreach.
4795 * symtab.c (lookup_global_symbol_from_objfile)
4796 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4797 foreach.
4798 * ser-tcp.c (net_open): Remove "struct" from foreach.
4799 * objfiles.c (objfile_relocate, objfile_rebase)
4800 (objfile_has_symbols): Remove "struct" from foreach.
4801 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4802 from foreach.
4803 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4804 foreach.
4805 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4806 "struct" from foreach.
4807 * ada-lang.c (create_excep_cond_exprs)
4808 (ada_exception_catchpoint_cond_string): Remove "struct" from
4809 foreach.
4810
222a8d25
TT
48112019-05-03 Tom Tromey <tromey@adacore.com>
4812
4813 * ada-exp.y (convert_char_literal): Check suffix of each
4814 enumerator.
4815
fcd60b84
DP
48162019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4817
4818 PR ada/21406:
4819 * ada-exp.y (yywrap): Don't define.
4820 * ada-lex.l (%option): Add noyywrap
4821 (yywrap): Remove.
4822
5f2459c2
EZ
48232019-05-03 Eli Zaretskii <eliz@gnu.org>
4824
353ea2d1
EZ
4825 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4826 _WIN32_WINNT to the XP level, unless already defined to a higher
4827 level.
4828
4829 * unittests/parse-connection-spec-selftests.c:
4830 * ser-tcp.c:
4831 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4832 override.
4833
5f2459c2
EZ
4834 * symfile.c (find_separate_debug_file): Remove colon from the
4835 drive spec of DOS/Windows file names of the target, so that the
4836 file name produced from DEBUGDIR and the target's directory will
4837 be valid on DOS/Windows systems.
4838
80062eb9
AB
48392019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4840
4841 * rust-lang.c (val_print_struct): Handle printing structures
4842 containing strings.
4843
b8c05e85
TT
48442019-05-02 Tom Tromey <tromey@adacore.com>
4845
4846 * valarith.c (_initialize_valarith): Remove.
4847
4504bbde
TT
48482019-05-01 Tom Tromey <tromey@adacore.com>
4849
4850 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4851 bitfields.
4852
d48e62f4
TT
48532019-05-01 Tom Tromey <tromey@adacore.com>
4854
4855 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4856 for big-endian copies.
4857
15f18d14
AT
48582019-04-30 Ali Tamur <tamur@google.com>
4859 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4860 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4861 (read_3_bytes): New function.
4862
ab4ee614
JB
48632019-04-30 Joel Brobecker <brobecker@adacore.com>
4864
4865 * windows-nat.c (main_thread_id): Delete.
4866 (handle_output_debug_string): Replace main_thread_id by
4867 current_event.dwThreadId.
4868 (fake_create_process): Likewise.
4869 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4870 Do not set main_thread_id.
4871 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4872 current_event.dwThreadId.
4873 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
4874
8ed5b76e
JB
48752019-04-30 Joel Brobecker <brobecker@adacore.com>
4876
4877 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
4878 Use current_event.dwThreadId instead of main_thread_id.
4879
2ff0a947
TT
48802019-04-30 Tom Tromey <tromey@adacore.com>
4881
4882 * ada-lang.c (ada_lookup_simple_minsyms): New function.
4883 (create_excep_cond_exprs): Iterate over program spaces.
4884 (ada_exception_catchpoint_cond_string): Examine all minimal
4885 symbols for exception types.
4886
a776957c
TT
48872019-04-30 Tom Tromey <tromey@adacore.com>
4888
4889 PR c++/24470:
4890 * dwarf2read.c (process_structure_scope): Handle case where type
4891 has template parameters but no symbol was created.
4892
bc68014d
AB
48932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4894 Chris January <chris.january@arm.com>
4895
4896 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
4897 qualifier.
4898 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
4899
f1fdc960
AB
49002019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4901
4902 * f-typeprint.c (f_print_type): Update rules for printing
4903 whitespace.
4904 (f_type_print_varspec_suffix): Likewise.
4905
bf7a4de1
AB
49062019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4907 Chris January <chris.january@arm.com>
4908
4909 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
4910 function arguments.
4911
bbe75b9d
AB
49122019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4913
4914 * f-lang.c (build_fortran_types): Change name of void type to
4915 lower case.
4916 * f-typeprint.c (f_type_print_base): Print the name of the void
4917 type, rather than a fixed string.
4918 * f-valprint.c (f_decorations): Use lower case void string.
4919
1db455a7
AB
49202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4921 Chris January <chris.january@arm.com>
4922
4923 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
4924 types for Fortran.
4925
b6d03bb2
AB
49262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4927 Chris January <chris.january@arm.com>
4928 David Lecomber <david.lecomber@arm.com>
4929
4930 * f-exp.y (BINOP_INTRINSIC): New token.
4931 (exp): New parser rule handling BINOP_INTRINSIC.
4932 (f77_keywords): Add new builtin procedures.
4933 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
4934 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4935 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
4936 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4937 (print_unop_subexp_f): New function.
4938 (print_binop_subexp_f): New function.
4939 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4940 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4941 (dump_subexp_body_f): Likewise.
4942 (operator_check_f): Likewise.
4943 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4944 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
4945
83228e93
AB
49462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4947
4948 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
4949 UNOP_KIND.
4950 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
4951 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
4952 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
4953 (operator_length_f): New fuction.
4954 (print_subexp_f): New function.
4955 (op_name_f): New function.
4956 (dump_subexp_body_f): New function.
4957 (operator_check_f): New function.
4958 (exp_descriptor_f): Replace standard expression handling functions
4959 with new functions.
4960 * gdb/fortran-operator.def: New file.
4961 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
4962 * gdb/std-operator.def: Remove UNOP_KIND.
4963
6fdcd7cc
AB
49642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4965
4966 * std-operator.def: Remove unbalanced, stray double quote
4967 character.
4968
2e62ab40
AB
49692019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4970 Chris January <chris.january@arm.com>
4971 Daniel Everett <daniel.everett@arm.com>
4972 Nick Forrington <nick.forrington@arm.com>
4973 Richard Bunt <richard.bunt@arm.com>
4974
4975 * cp-valprint.c (cp_print_value_fields): Allow an additional level
4976 of depth when printing anonymous structs or unions.
4977 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4978 Don't print either the top-level value, or the children if the
4979 max-depth is exceeded.
4980 (ppscm_print_children): When printing the key of a map, allow one
4981 extra level of depth.
4982 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
4983 print either the top-level value, or the children if the max-depth
4984 is exceeded.
4985 (print_children): When printing the key of a map, allow one extra
4986 level of depth.
4987 * python/py-value.c (valpy_format_string): Add max_depth keyword.
4988 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
4989 (user_print_options): Initialise max_depth field.
4990 (val_print_scalar_or_string_type_p): New function.
4991 (val_print): Check to see if the max depth has been reached.
4992 (val_print_check_max_depth): Define new function.
4993 (show_print_max_depth): New function.
4994 (_initialize_valprint): Add 'print max-depth' option.
4995 * valprint.h (struct value_print_options) <max_depth>: New field.
4996 (val_print_check_max_depth): Declare new function.
4997 * NEWS: Document new feature.
4998
4be290b2
AB
49992019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5000
5001 * ada-lang.c (ada_language_defn): Initialise new field.
5002 * c-lang.c (c_is_string_type_p): New function.
5003 (c_language_defn): Initialise new field.
5004 (cplus_language_defn): Initialise new field.
5005 (asm_language_defn): Initialise new field.
5006 (minimal_language_defn): Initialise new field.
5007 * c-lang.h (c_is_string_type_p): Declare new function.
5008 * d-lang.c (d_language_defn): Initialise new field.
5009 * f-lang.c (f_is_string_type_p): New function.
5010 (f_language_defn): Initialise new field.
5011 * go-lang.c (go_is_string_type_p): New function.
5012 (go_language_defn): Initialise new field.
5013 * language.c (default_is_string_type_p): New function.
5014 (unknown_language_defn): Initialise new field.
5015 (auto_language_defn): Initialise new field.
5016 * language.h (struct language_defn) <la_is_string_type_p>: New
5017 member variable.
5018 (default_is_string_type_p): Declare new function.
5019 * m2-lang.c (m2_language_defn): Initialise new field.
5020 * objc-lang.c (objc_language_defn): Initialise new field.
5021 * opencl-lang.c (opencl_language_defn): Initialise new field.
5022 * p-lang.c (pascal_is_string_type_p): New function.
5023 (pascal_language_defn): Initialise new field.
5024 * rust-lang.c (rust_is_string_type_p): New function.
5025 (rust_language_defn): Initialise new field.
5026
721b08c6
AB
50272019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5028
5029 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5030 New field.
5031 * ada-lang.c (ada_language_defn): Initialise new field.
5032 * c-lang.c (c_language_defn): Likewise.
5033 (cplus_language_defn): Likewise.
5034 (asm_language_defn): Likewise.
5035 (minimal_language_defn): Likewise.
5036 * d-lang.c (d_language_defn): Likewise.
5037 * f-lang.c (f_language_defn): Likewise.
5038 * go-lang.c (go_language_defn): Likewise.
5039 * language.c (unknown_language_defn): Likewise.
5040 (auto_language_defn): Likewise.
5041 * m2-lang.c (m2_language_defn): Likewise.
5042 * objc-lang.c (objc_language_defn): Likewise.
5043 * opencl-lang.c (opencl_language_defn): Likewise.
5044 * p-lang.c (pascal_language_defn): Likewise.
5045 * rust-lang.c (rust_language_defn): Likewise.
5046
fc913e53
AB
50472019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * ada-lang.c (ada_is_character_type): Change return type to bool.
5050 (ada_is_string_type): Likewise.
5051 * ada-lang.h (ada_is_character_type): Update declaration
5052 (ada_is_string_type): Likewise.
5053
fa731fa0
PW
50542019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5055
5056 Support style in 'frame|thread apply'
5057
5058 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5059 * record.c (record_start, record_stop): Update callers of
5060 execute_command_to_string with false.
5061 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5062 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5063 methods.
5064 (class string_file): New constructor with term_out parameter.
5065 Override methods term_out and can_emit_style_escape. New member
5066 term_out.
5067 (class stdio_file): Override can_emit_style_escape.
5068 (class tee_file): Override term_out and can_emit_style_escape.
5069 * utils.h (can_emit_style_escape): Remove.
5070 * utils.c (can_emit_style_escape): Likewise.
5071 Update all callers of can_emit_style_escape (SOMESTREAM) to
5072 SOMESTREAM->can_emit_style_escape.
5073 * source-cache.c (source_cache::get_source_lines): Likewise.
5074 * stack.c (frame_apply_command_count): Call execute_command_to_string
5075 passing the term_out characteristic of the current gdb_stdout.
5076 * thread.c (thr_try_catch_cmd): Likewise.
5077 * top.c (execute_command_to_string): pass term_out parameter
5078 to construct the string_file for the command output.
5079 * ui-file.c (term_cli_styling): New function (most code moved
5080 from utils.c can_emit_style_escape).
5081 (string_file::string_file, string_file::can_emit_style_escape,
5082 stdio_file::can_emit_style_escape, tee_file::term_out,
5083 tee_file::can_emit_style_escape): New functions.
5084
136afab8
PW
50852019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5086
5087 * NEWS: Mention the new set|show may-call-functions.
5088 * infcall.c (may_call_functions_p): New variable.
5089 (show_may_call_functions_p): New function.
5090 (call_function_by_hand_dummy): Throws an error if not
5091 may-call-functions.
5092 (_initialize_infcall): Call add_setshow_boolean_cmd for
5093 may-call-functions.
5094
725cbb63
KS
50952019-04-25 Keith Seitz <keiths@redhat.com>
5096
5097 PR c++/24367
5098 * cp-support.c (inspect_type): Don't attempt substitutions
5099 of symbol with the same name.
5100
3d1cbb78
TT
51012019-04-25 Tom Tromey <tromey@adacore.com>
5102
5103 PR gdb/24475:
5104 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5105 static.
5106
94aeb44b
TT
51072019-04-25 Tom Tromey <tromey@adacore.com>
5108
5109 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5110 rvalue reference.
5111 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5112 (gdb_xml_parser::parse): Use std::move.
5113 * python/python-internal.h (gdbpy_convert_exception): Take a const
5114 reference.
5115 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5116 std::move.
5117 * python/py-utils.c (gdbpy_convert_exception): Take a const
5118 reference.
5119 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5120 Use std::move.
5121 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5122 Use std::move.
5123 * mi/mi-main.c (mi_print_exception): Take a const reference.
5124 * main.c (handle_command_errors): Take a const reference.
5125 * linespec.c (parse_linespec): Use std::move.
5126 * infcall.c (run_inferior_call): Use std::move.
5127 (call_function_by_hand_dummy): Use std::move.
5128 * exec.c (try_open_exec_file): Use std::move.
5129 * exceptions.h (exception_print, exception_fprintf)
5130 (exception_print_same): Update.
5131 * exceptions.c (print_exception, exception_print)
5132 (exception_fprintf, exception_print_same): Change parameters to
5133 const reference.
5134 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5135 * common/new-op.c: Use std::move.
5136 * common/common-exceptions.h (struct gdb_exception): Add move
5137 constructor.
5138 (struct gdb_exception_error, struct gdb_exception_quit, struct
5139 gdb_quit_bad_alloc): Change constructor to move constructor.
5140 (throw_exception): Change parameter to rvalue reference.
5141 * common/common-exceptions.c (throw_exception): Take rvalue
5142 reference.
5143 * cli/cli-interp.c (safe_execute_command): Use std::move.
5144 * breakpoint.c (insert_bp_location, location_to_sals): Use
5145 std::move.
5146
680d7fd5
TT
51472019-04-25 Tom Tromey <tromey@adacore.com>
5148
5149 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5150 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5151 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5152 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5153 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5154 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5155 guile/scm-value.c: Use unpack.
5156 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5157 gdbscm_gdb_exception.
5158 (gdbscm_throw_gdb_exception): Likewise.
5159 (struct gdbscm_gdb_exception): New.
5160 (unpack): New function.
5161 (gdbscm_wrap): Use unpack.
5162
c6fdd8b2
TT
51632019-04-25 Tom Tromey <tromey@adacore.com>
5164
5165 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5166 (gdb_rl_callback_handler): Use std::move.
5167 * common/common-exceptions.h (struct gdb_exception): Add move
5168 assignment operator.
5169 (throw_exception_sjlj): Change "exception" to const reference.
5170 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5171 (throw_exception_sjlj): Change "exception" to const reference.
5172
cc06b668
TT
51732019-04-25 Tom Tromey <tromey@adacore.com>
5174
5175 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5176 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5177 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5178 Update.
5179 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5180 Update.
5181 * mi/mi-interp.c (mi_interp::exec): Update.
5182 * linespec.c (parse_linespec): Update.
5183 * infcall.c (run_inferior_call): Update.
5184 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5185 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5186 (gdbscm_lookup_global_symbol): Update.
5187 * guile/scm-param.c (gdbscm_parameter_value): Update.
5188 * guile/scm-frame.c (gdbscm_frame_read_register)
5189 (gdbscm_frame_read_var): Update.
5190 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5191 * exec.c (try_open_exec_file): Update.
5192 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5193 (gdb_rl_callback_handler): Update.
5194 * common/common-exceptions.h (exception_none): Don't declare.
5195 * common/common-exceptions.c (exception_none): Don't define.
5196 (struct catcher) <exception>: Update.
5197 * cli/cli-interp.c (safe_execute_command): Update.
5198 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5199
cf532bd1
AT
52002019-04-25 Ali Tamur <tamur@google.com>
5201
5202 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5203 (read_attribute_value): Likewise.
5204 (dwarf2_read_addr_index): Update comment.
5205 (read_str_index): Add DW_FORM_strx.
5206 (dwarf2_string_attr): Likewise.
5207 (dwarf2_const_value_attr): Likewise.
5208 (dump_die_shallow): Likewise.
5209 (dwarf2_fetch_constant_bytes): Likewise.
5210 (skip_form_bytes): Likewise.
5211 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5212
82433e3e
SDJ
52132019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5214
5215 PR corefiles/11608
5216 PR corefiles/18187
5217 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5218 OFFSET. Verify if current mapping contains an ELF header.
5219 (linux_find_memory_regions_full): Adjust call to
5220 dump_mapping_p.
5221
723adb65
SL
52222019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5223 Kang Li <kanglictf@gmail.com>
5224
5225 PR gdb/21600
5226
5227 * dwarf2-frame.c (read_initial_length): Be consistent about using
5228 unsigned representation of length.
5229 (decode_frame_entry_1): Likewise. Check for wraparound of
5230 end pointer as well as buffer overflow.
5231
596179f7
SDJ
52322019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5233
5234 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5235 "vq".
5236
a59240a4
TT
52372019-04-24 Tom Tromey <tromey@adacore.com>
5238
5239 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5240
f872fdbb
AB
52412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5242
5243 * s12z-tdep.c (s12z_unwind_pc): Delete.
5244 (s12z_unwind_sp): Delete.
5245 (s12z_gdbarch_init): Don't register deleted functions with
5246 gdbarch.
5247
b614e6f3
AB
52482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5249
5250 * rl78-tdep.c (rl78_unwind_sp): Delete.
5251 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5252
14faed38
AB
52532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5254
5255 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5256 (xstormy16_unwind_pc): Delete.
5257 (xstormy16_dummy_id): Delete.
5258 (xstormy16_gdbarch_init): Don't register deleted functions with
5259 gdbarch.
5260
541aad8a
AB
52612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5262
5263 * vax-tdep.c (vax_unwind_pc): Delete.
5264 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5265
29222070
AB
52662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5267
5268 * v850-tdep.c (v850_unwind_sp): Delete.
5269 (v850_unwind_pc): Delete.
5270 (v850_dummy_id): Delete.
5271 (v850_gdbarch_init): Don't register deleted functions with
5272 gdbarch.
5273
0f534d76
AB
52742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5275
5276 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5277 (tilegx_unwind_pc): Delete.
5278 (tilegx_unwind_dummy_id): Delete.
5279 (tilegx_gdbarch_init): Don't register deleted functions with
5280 gdbarch.
5281
1ba7b7f9
AB
52822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5283
5284 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5285 (tic6x_dummy_id): Delete.
5286 (tic6x_gdbarch_init): Don't register deleted functions with
5287 gdbarch.
5288
d31f262c
AB
52892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5290
5291 * sparc-tdep.c (sparc_unwind_pc): Delete.
5292 (sparc32_gdbarch_init): Don't register deleted function with
5293 gdbarch.
5294
6d14d64d
AB
52952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5296
5297 * sh-tdep.c (sh_unwind_sp): Delete.
5298 (sh_unwind_pc): Delete.
5299 (sh_dummy_id): Delete.
5300 (sh_gdbarch_init): Don't register deleted functions with
5301 gdbarch.
5302
a40dde9d
AB
53032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5304
5305 * score-tdep.c (score_unwind_sp): Delete.
5306 (score_unwind_pc): Delete.
5307 (score_dummy_id): Delete.
5308 (score_gdbarch_init): Don't register deleted functions with
5309 gdbarch.
5310
47c47d69
AB
53112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5312
5313 * rx-tdep.c (rx_unwind_pc): Delete.
5314 (rx_unwind_sp): Delete.
5315 (rx_dummy_id): Delete.
5316 (rx_gdbarch_init): Don't register deleted functions with
5317 gdbarch. Update comment.
5318
833a4480
AB
53192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5320
5321 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5322 (rs6000_dummy_id): Delete.
5323 (rs6000_gdbarch_init): Don't register deleted functions with
5324 gdbarch.
5325
3f2cef49
AB
53262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * or1k-tdep.c (or1k_dummy_id): Delete.
5329 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5330
96acf884
AB
53312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5332
5333 * nios2-tdep.c (nios2_dummy_id): Delete.
5334 (nios2_unwind_sp): Delete.
5335 (nios2_gdbarch_init): Don't register deleted functions with
5336 gdbarch.
5337
ca0ab0aa
AB
53382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5339
5340 * nds32-tdep.c (nds32_dummy_id): Delete.
5341 (nds32_unwind_pc): Delete.
5342 (nds32_unwind_sp): Delete.
5343 (nds32_gdbarch_init): Don't register deleted functions with
5344 gdbarch.
5345
c8259044
AB
53462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5347
5348 * msp430-tdep.c (msp430_unwind_pc): Delete.
5349 (msp430_unwind_sp): Delete.
5350 (msp430_dummy_id): Delete.
5351 (msp430_gdbarch_init): Don't register deleted functions with
5352 gdbarch.
5353
27f113c8
AB
53542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5355
5356 * moxie-tdep.c (moxie_unwind_sp): Delete.
5357 (moxie_unwind_pc): Delete.
5358 (moxie_dummy_id): Delete.
5359 (moxie_gdbarch_init): Don't register deleted functions with
5360 gdbarch.
5361
aee6c3cd
AB
53622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5363
5364 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5365 (mn10300_unwind_pc): Delete.
5366 (mn10300_unwind_sp): Delete.
5367 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5368 mn10300_unwind_sp.
5369 (mn10300_frame_unwind_init): Don't register deleted functions with
5370 gdbarch.
5371
8e2b5aea
AB
53722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5373
5374 * mep-tdep.c (mep_unwind_pc): Delete.
5375 (mep_unwind_sp): Delete.
5376 (mep_dummy_id): Delete.
5377 (mep_gdbarch_init): Don't register deleted functions with
5378 gdbarch.
5379
43cf3ede
AB
53802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5381
5382 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5383 (m68hc11_unwind_sp): Delete.
5384 (m68hc11_gdbarch_init): Don't register deleted functions with
5385 gdbarch.
5386
5e79b7bb
AB
53872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5388
5389 * m32r-tdep.c (m32r_unwind_sp): Delete.
5390 (m32r_unwind_pc): Delete.
5391 (m32r_dummy_id): Delete.
5392 (m32r_gdbarch_init): Don't register deleted functions with
5393 gdbarch.
5394
89b268d8
AB
53952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5396
5397 * m32c-tdep.c (m32c_unwind_pc): Delete.
5398 (m32c_unwind_sp): Delete.
5399 (m32c_dummy_id): Delete.
5400 (m32c_gdbarch_init): Don't register deleted functions with
5401 gdbarch.
5402
946c28d2
AB
54032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5404
5405 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5406 (lm32_unwind_pc): Delete.
5407 (lm32_dummy_id): Delete.
5408 (lm32_gdbarch_init): Don't register deleted functions with
5409 gdbarch.
5410
bf12844a
AB
54112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5412
5413 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5414 (iq2000_unwind_pc): Delete.
5415 (iq2000_dummy_id): Delete.
5416 (iq2000_gdbarch_init): Don't register deleted functions with
5417 gdbarch.
5418
ecbc06d2
AB
54192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5420
5421 * nds32-tdep.c (nds32_type_align): Delete.
5422 (nds32_push_dummy_call): Use type_align instead.
5423
030197b4
AB
54242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5425
5426 * arm-tdep.c (arm_type_align): Only handle vector override case.
5427 (arm_push_dummy_call): Use type_align.
5428 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5429
b907456c
AB
54302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5431
5432 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5433 case.
5434 (pass_on_stack): Use type_align.
5435 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5436 function.
5437
9e97ba43
TT
54382019-04-23 Tom Tromey <tromey@adacore.com>
5439
5440 * dwarf2read.c (line_header::file_name_at): Remove unused
5441 overload.
5442
6892f601
TV
54432019-04-23 Tom de Vries <tdevries@suse.de>
5444
5445 PR gdb/24438
5446 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5447 invocation.
5448
336d760d
AT
5449
54502019-03-27 Ali Tamur <tamur@google.com>
5451
5452 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5453 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5454 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5455 (dwarf_expr_context::get_addr_index): Likewise
5456 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5457 (symbol_needs_eval_context::get_addr_index): Likewise
5458 (disassemble_dwarf_expression): Add DW_OP_addrx
5459 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5460 (read_cutu_die_from_dwo): Update comment
5461 (skip_one_die): Add DW_FORM_addrx
5462 (read_attribute_value): Likewise
5463 (var_decode_location): Add DW_OP_addrx
5464 (dwarf2_const_value_attr): Add DW_FORM_addrx
5465 (dump_die_shallow): Likewise
5466 (dwarf2_fetch_constant_bytes): Likewise
5467 (decode_locdesc): Add DW_OP_addrx
5468 (skip_form_bytes): Add DW_FORM_addrx
5469
ad9d13f8
AT
54702019-04-22 Ali Tamur <tamur@google.com>
5471
5472 * MAINTAINERS (Write After Approval): Add self.
5473
d70cc3ba
SM
54742019-04-22 Simon Marchi <simon.marchi@efficios.com>
5475
5476 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5477 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5478 (open_symbol_file_object): Likewise.
5479 (svr4_default_sos): Add info parameter.
5480 (svr4_read_so_list): Likewise.
5481 (svr4_current_sos_direct): Adjust functions calls to pass down
5482 info.
5483 (svr4_current_sos_1): Add info parameter.
5484 (svr4_current_sos): Call get_svr4_info, pass info down to
5485 svr4_current_sos_1.
5486 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5487 get_svr4_info.
5488 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5489 get_svr4_info.
5490 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5491 to get_svr4_info.
5492 (probes_table_remove_objfile_probes): Likewise.
5493 (register_solib_event_probe): Add info parameter.
5494 (solist_update_incremental): Pass info parameter down to
5495 svr4_read_so_list.
5496 (disable_probes_interface): Add info parameter.
5497 (svr4_handle_solib_event): Pass current_program_space to
5498 get_svr4_info. Adjust disable_probes_interface cleanup.
5499 (svr4_create_probe_breakpoints): Add info parameter, pass it
5500 down to register_solib_event_probe.
5501 (svr4_create_solib_event_breakpoints): Add info parameter,
5502 pass it down to svr4_create_probe_breakpoints.
5503 (enable_break): Pass info down to
5504 svr4_create_solib_event_breakpoints.
5505 (svr4_solib_create_inferior_hook): Pass current_program_space to
5506 get_svr4_info.
5507 (svr4_clear_solib): Likewise.
5508
7905fc35
PA
55092019-04-22 Pedro Alves <palves@redhat.com>
5510
5511 * solib-svr4.c (svr4_free_objfile_observer): New.
5512 (probe_and_action::objfile): New field.
5513 (probes_table_htab_remove_objfile_probes)
5514 (probes_table_remove_objfile_probes): New functions.
5515 (register_solib_event_probe): Add 'objfile' parameter. Store it
5516 in the new probe_and_action. Don't store the probe in 'lookup'.
5517 (svr4_create_probe_breakpoints): Pass objfile to
5518 register_solib_event_probe.
5519 (_initialize_svr4_solib): Register a free_objfile observer.
5520
fb881986
TT
55212019-04-19 Tom Tromey <tom@tromey.com>
5522
5523 * common/queue.h: Remove.
5524
8732db6c
TT
55252019-04-19 Tom Tromey <tom@tromey.com>
5526
5527 * event-loop.c: Don't include "common/queue.h".
5528
97dfbadd
TT
55292019-04-19 Tom Tromey <tom@tromey.com>
5530
5531 * remote.c (remote_target): Use delete.
5532 * remote-notif.h: Include <list>, not "common/queue.h".
5533 (notif_client_p): Remove typedef.
5534 (remote_notif_state): Add constructor, destructor, initializer.
5535 <notif_queue>: Now a std::list.
5536 (remote_notif_state_xfree): Don't declare.
5537 * remote-notif.c (remote_notif_process, handle_notification)
5538 (remote_notif_state_allocate): Update.
5539 (~remote_notif_state): Rename from remote_notif_state_xfree.
5540
cf250e36
TT
55412019-04-19 Tom Tromey <tom@tromey.com>
5542
5543 * symfile.c (reread_symbols): Update.
5544 * objfiles.c (objfile_register_static_link)
5545 (objfile_lookup_static_link): Update
5546 (~objfile) Don't delete static_links.
5547 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5548
61f4b350
TT
55492019-04-19 Tom Tromey <tom@tromey.com>
5550
5551 * type-stack.h (struct type_stack) <insert>: Constify string.
5552 * type-stack.c (type_stack::insert): Constify string.
5553 * gdbtypes.h (lookup_template_type): Update.
5554 (address_space_name_to_int): Update.
5555 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5556 const.
5557 (lookup_template_type): Make name const.
5558 * c-exp.y: Update rules.
5559 (lex_one_token, classify_name, classify_inner_name)
5560 (c_print_token): Update.
5561 * p-exp.y: Update rules.
5562 (yylex): Update.
5563 * f-exp.y: Update rules.
5564 (yylex): Update.
5565 * d-exp.y: Update rules.
5566 (lex_one_token, classify_name, classify_inner_name): Update.
5567 * parse.c (write_dollar_variable, copy_name): Return std::string.
5568 * parser-defs.h (copy_name): Change return type.
5569 * m2-exp.y: Update rules.
5570 (yylex): Update.
5571 * go-exp.y (lex_one_token): Update.
5572 Update rules.
5573 (classify_unsafe_function, classify_packaged_name)
5574 (classify_name, yylex): Update.
5575
189b8c2e
ST
55762019-04-19 Sergei Trofimovich <siarheit@google.com>
5577
5578 * configure.ac: add --enable-source-highlight switch.
5579 * configure: Regenerate.
5580 * top.c (print_gdb_version): plumb --enable-source-highlight
5581 status to "show configuration".
5582
8ecb59f8
TT
55832019-04-19 Tom Tromey <tromey@adacore.com>
5584
5585 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5586 Check ADA_TYPE_P.
5587 (empty_record, ada_template_to_fixed_record_type_1)
5588 (template_to_static_fixed_type)
5589 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5590 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5591 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5592 macros.
5593
62160ec9
TT
55942019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5595
5596 PR symtab/24423:
5597 * source.c (print_source_lines_base): Advance "iter" when a
5598 control character is seen.
5599
f2ae8bc8
PW
56002019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5601
5602 * inferior.h (struct infcall_suspend_state_deleter):
5603 Catch exception in destructor to avoid crash.
5604
d563b953
PW
56052019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5606
5607 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5608 close to the add_com "shell".
5609
dc34c897
TT
56102019-04-18 Tom Tromey <tromey@adacore.com>
5611
5612 * process-stratum-target.h (class process_stratum_target)
5613 <stratum>: Add "final".
5614
a12e5744
TT
56152019-04-17 Tom Tromey <tromey@adacore.com>
5616
5617 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5618 against nullptr before use.
5619
a7e559cc
AH
56202019-04-17 Alan Hayward <alan.hayward@arm.com>
5621
5622 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5623
c01660c6
AB
56242019-04-17 Jim Wilson <jimw@sifive.com>
5625 Andrew Burgess <andrew.burgess@embecosm.com>
5626
5627 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5628 code read might fail, assume 4-byte breakpoint in that case.
5629
4aa866af
LS
56302019-04-15 Leszek Swirski <leszeks@google.com>
5631
5632 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5633 rather than a hand-rolled POD check when checking for forced MEMORY
5634 classification.
5635
48574d91
AH
56362019-04-15 Alan Hayward <alan.hayward@arm.com>
5637
5638 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5639 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5640 function.
5641 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5642 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5643 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5644 declaration.
5645
4da037ef
AH
56462019-04-15 Alan Hayward <alan.hayward@arm.com>
5647
5648 * aarch64-linux-nat.c
5649 (aarch64_linux_nat_target::thread_architecture): Add override.
5650 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5651 each VQ.
5652
ccb8d7e8
AH
56532019-04-15 Alan Hayward <alan.hayward@arm.com>
5654
5655 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5656
35add35e
AB
56572019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5658
5659 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5660 target types of size 96-bits, add some additional comments, and
5661 check that the builtin type we found was the correct size.
5662
51196bbc
EZ
56632019-04-12 Eli Zaretskii <eliz@gnu.org>
5664
5665 * utils.c (prompt_for_continue): Don't restore the styling at the
5666 end, as applied_style has the wrong value. This fixes styling in
5667 long lists of file names that are interrupted by the "Continue?"
5668 prompt.
5669
62253a61
AB
56702019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5671
5672 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5673 * c-lang.c (c_language_defn): Likewise.
5674 (cplus_language_defn): Likewise.
5675 (asm_language_defn): Likewise.
5676 (minimal_language_defn): Likewise.
5677 * d-lang.c (d_language_defn): Likewise.
5678 * f-lang.c (f_language_defn): Likewise.
5679 * go-lang.c (go_language_defn): Likewise.
5680 * language.c (unknown_language_defn): Likewise.
5681 (auto_language_defn): Likewise.
5682 * language.h (struct language_defn): Remove la_magic field.
5683 (LANG_MAGIC): Delete.
5684 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5685 * objc-lang.c (objc_language_defn): Likewise.
5686 * opencl-lang.c (opencl_language_defn): Likewise.
5687 * p-lang.c (pascal_language_defn): Likewise.
5688 * rust-lang.c (rust_language_defn): Likewise.
5689
a9158a86
AB
56902019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5691
5692 * riscv-tdep.c (riscv_type_align): New function.
5693 (riscv_type_alignment): Delete.
5694 (riscv_arg_location): Use 'type_align'.
5695 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5696
41077b66
AB
56972019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5698
5699 * gdbtypes.c (type_align): A struct with no non-static fields also
5700 has alignment of 1.
5701
9f0272f8
AB
57022019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5703
5704 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5705 component to 0.
5706 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5707 member.
5708 (riscv_struct_info::analyse): New implementation using new
5709 analyse_inner member function.
5710 (riscv_struct_info::field_offset): New member function.
5711 (riscv_struct_info::m_offsets): New member variable.
5712 (riscv_struct_info::analyse_inner): New private member function,
5713 takes the old implementation of riscv_struct_info::analyse but
5714 extended to track field offsets.
5715 (riscv_call_arg_struct): Update the struct folding special cases
5716 to handle cases where empty C++ structs, which are non-zero
5717 length, are found.
5718 (riscv_arg_location): Initialise the length of each location, a
5719 non-zero length now indicates the location is in use.
5720 (riscv_push_dummy_call): Allow for the first location having a
5721 non-zero offset when setting up arguments.
5722 (riscv_return_value): Likewise, but for return values.
5723
02cf60c7
TT
57242019-04-11 Tom Tromey <tromey@adacore.com>
5725
5726 * utils.c (internal_vproblem): Make "msg" const.
5727
68811f8f
AH
57282019-04-11 Alan Hayward <alan.hayward@arm.com>
5729
5730 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5731 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5732 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5733 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5734
3f52fdbc
KB
57352019-04-10 Kevin Buettner <kevinb@redhat.com>
5736
5737 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5738 function.
5739 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5740 of amd64_collect_native_gregset.
5741 (amd64_linux_nat_target::store_registers): Likewise.
5742
e9ad22ee
TT
57432019-04-10 Tom Tromey <tom@tromey.com>
5744
5745 * symtab.c (lookup_global_symbol_from_objfile)
5746 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5747 * objfiles.h (class separate_debug_iterator): New.
5748 (class separate_debug_range): New.
5749 (struct objfile) <separate_debug_objfiles>: New method.
5750 (objfile_separate_debug_iterate): Don't declare.
5751 * objfiles.c (separate_debug_iterator::operator++): Rename from
5752 objfile_separate_debug_iterate.
5753 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5754 iterator.
5755 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5756 iterator.
5757
ee371134
TT
57582019-04-10 Tom Tromey <tom@tromey.com>
5759
5760 * symfile.c (reread_symbols): Remove old comment.
5761 * objfiles.c (free_all_objfiles): Fix a typo.
5762
bf227d61
TT
57632019-04-10 Tom Tromey <tom@tromey.com>
5764
5765 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5766 * minsyms.c (lookup_minimal_symbol): Use foreach.
5767 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5768 (lookup_minimal_symbol_solib_trampoline): Likewise.
5769 * symfile.c (reread_symbols): Use foreach.
5770
8dc433a0
TT
57712019-04-09 Ivan Begert <ivanbegert@gmail.com>
5772 Tom Tromey <tromey@adacore.com>
5773
5774 PR rust/24414:
5775 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5776 (rust_lex_int_test): Change "value" to be LONGEST.
5777 (rust_lex_tests): Add test for long integer literal.
5778
9ab8741a
TT
57792019-04-09 Tom Tromey <tromey@adacore.com>
5780
5781 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5782 to bool.
5783 (extended_remote_target::attach): Update.
5784 (remote_target::remote_notice_new_inferior): Update.
5785 (remote_target::add_current_inferior_and_thread): Update.
5786 * inferior.c (exit_inferior_1): Use "false".
5787 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5788
e242fd12
SM
57892019-04-09 Simon Marchi <simon.marchi@efficios.com>
5790
9ca1957f 5791 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
5792 the "start" command.
5793
2b0c8b01
KB
57942019-04-08 Kevin Buettner <kevinb@redhat.com>
5795
5796 * python/py-inferior.c (infpy_thread_from_thread_handle):
5797 Adjust comments to reflect renaming of thread_from_thread_handle
5798 to thread_from_handle. Adjust keywords. Fix type error message.
5799 (inferior_object_methods): Add thread_from_handle. Retain
5800 thread_from_thread_handle, but mark it as deprecated.
5801
50a82723
KB
58022019-04-08 Kevin Buettner <kevinb@redhat.com>
5803
5804 * gdbthread.h (find_thread_by_handle): Revise declaration.
5805 * thread.c (find_thread_by_handle): Likewise. Adjust
5806 implementation too.
5807 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5808 support for buffer objects as handles.
5809
cf63b016
KB
58102019-04-08 Kevin Buettner <kevinb@redhat.com>
5811
5812 * python/py-infthread.c (thpy_thread_handle): New function.
5813 (thread_object_methods): Register thpy_thread_handle.
5814
3d6c6204
KB
58152019-04-08 Kevin Buettner <kevinb@redhat.com>
5816
5817 * gdbthread.h (thread_to_thread_handle): Declare.
5818 * thread.c (gdbtypes.h): Include.
5819 (thread_to_thread_handle): New function.
5820
5821 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5822 (target_thread_info_to_thread_handle): Declare.
5823 * target.c (target_thread_info_to_thread_handle): New function.
5824 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5825 * target-delegates.c: Regenerate.
5826
5827 * linux-thread-db.c (class thread_db_target): Add method
5828 thread_info_to_thread_handle.
5829 (thread_db_target::thread_info_to_thread_handle): Define.
5830 * remote.c (class remote_target): Add new method
5831 thread_info_to_thread_handle.
5832 (remote_target::thread_info_to_thread_handle): Define.
5833
56be6ea8
PA
58342019-04-08 Pedro Alves <palves@redhat.com>
5835
5836 * common/common-exceptions.c (throw_exception): Don't create
5837 named object to throw; throw directly.
5838 (throw_it): Likewise. Don't initialize gdb_exception::message
5839 here, with new; pass FMT and AP to the ctor instead.
5840 * common/common-exceptions.h: Include <string>.
5841 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5842 const char *, va_list)): New ctor. Use std::make_shared.
5843 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5844 errors)): Delete.
5845 (gdb_exception_error::gdb_exception_error(enum errors, const char
5846 *, va_list)): New.
5847 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5848 Add assertion.
5849 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5850 errors)): Delete.
5851 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5852 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5853 Add assertion.
5854
eedc3f4f
TT
58552019-04-08 Tom Tromey <tom@tromey.com>
5856
5857 * valops.c (value_rtti_indirect_type): Replace throw_exception
5858 with throw.
5859 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5860 with throw.
5861 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5862 throw.
5863 * target.c (target_translate_tls_address): Replace throw_exception
5864 with throw.
5865 * stack.c (frame_apply_command_count): Replace throw_exception
5866 with throw.
5867 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5868 throw.
5869 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5870 with throw.
5871 * rs6000-tdep.c (rs6000_frame_cache)
5872 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5873 * remote.c: Replace throw_exception with throw.
5874 * record-full.c (record_full_message, record_full_wait_1)
5875 (record_full_restore): Replace throw_exception with throw.
5876 * record-btrace.c:
5877 (get_thread_current_frame_id, record_btrace_start_replaying)
5878 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
5879 (cmd_record_btrace_start): Replace throw_exception with throw.
5880 * parse.c (parse_exp_in_context_1): Replace throw_exception with
5881 throw.
5882 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
5883 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
5884 * linespec.c:
5885 (find_linespec_symbols): Replace throw_exception with throw.
5886 * infrun.c (displaced_step_prepare, resume): Replace
5887 throw_exception with throw.
5888 * infcmd.c (post_create_inferior): Replace throw_exception with
5889 throw.
5890 * inf-loop.c (inferior_event_handler): Replace throw_exception
5891 with throw.
5892 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5893 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
5894 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
5895 (get_prev_frame_always, get_frame_pc_if_available)
5896 (get_frame_address_in_block_if_available, get_frame_language):
5897 Replace throw_exception with throw.
5898 * frame-unwind.c (frame_unwind_try_unwinder): Replace
5899 throw_exception with throw.
5900 * eval.c (fetch_subexp_value, evaluate_var_value)
5901 (evaluate_funcall, evaluate_subexp_standard): Replace
5902 throw_exception with throw.
5903 * dwarf2loc.c (call_site_find_chain)
5904 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
5905 Replace throw_exception with throw.
5906 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
5907 with throw.
5908 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
5909 throw.
5910 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
5911 * completer.c (complete_line_internal): Replace throw_exception
5912 with throw.
5913 * compile/compile-object-run.c (compile_object_run): Replace
5914 throw_exception with throw.
5915 * cli/cli-script.c (process_next_line): Replace throw_exception
5916 with throw.
5917 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
5918 (btrace_enable, btrace_maint_update_pt_packets): Replace
5919 throw_exception with throw.
5920 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
5921 throw_exception with throw.
5922 * break-catch-throw.c (re_set_exception_catchpoint): Replace
5923 throw_exception with throw.
5924 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5925 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
5926 * aarch64-tdep.c (aarch64_make_prologue_cache)
5927 (aarch64_make_stub_cache): Replace throw_exception with throw.
5928
26003a20
TT
59292019-04-08 Tom Tromey <tom@tromey.com>
5930
5931 * common/common-exceptions.c (throw_exception): Rename from
5932 throw_exception_cxx. Remove old copy. Make argument const.
5933 (throw_it): Create and throw exception objects directly.
5934 * common/common-exceptions.h (throw_exception): Make argument
5935 const.
5936 (struct gdb_exception_error): Add constructor.
5937 (struct gdb_exception_quit): Add constructor.
5938
d272eb37
TT
59392019-04-08 Tom Tromey <tom@tromey.com>
5940
5941 * common/common-exceptions.h (exception_rethrow): Don't declare.
5942 (TRY_SJLJ): Update comment.
5943 (TRY, CATCH, END_CATCH): Remove.
5944 * common/common-exceptions.c (exception_rethrow): Remove.
5945
230d2906
TT
59462019-04-08 Tom Tromey <tom@tromey.com>
5947
5948 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
5949 Remove.
5950 (gdb_exception_error): Rename from
5951 gdb_exception_RETURN_MASK_ERROR.
5952 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
5953 (gdb_quit_bad_alloc): Update.
5954 * aarch64-tdep.c: Update.
5955 * ada-lang.c: Update.
5956 * ada-typeprint.c: Update.
5957 * ada-valprint.c: Update.
5958 * amd64-tdep.c: Update.
5959 * arch-utils.c: Update.
5960 * break-catch-throw.c: Update.
5961 * breakpoint.c: Update.
5962 * btrace.c: Update.
5963 * c-varobj.c: Update.
5964 * cli/cli-cmds.c: Update.
5965 * cli/cli-interp.c: Update.
5966 * cli/cli-script.c: Update.
5967 * common/common-exceptions.c: Update.
5968 * common/new-op.c: Update.
5969 * common/selftest.c: Update.
5970 * compile/compile-c-symbols.c: Update.
5971 * compile/compile-cplus-symbols.c: Update.
5972 * compile/compile-object-load.c: Update.
5973 * compile/compile-object-run.c: Update.
5974 * completer.c: Update.
5975 * corelow.c: Update.
5976 * cp-abi.c: Update.
5977 * cp-support.c: Update.
5978 * cp-valprint.c: Update.
5979 * darwin-nat.c: Update.
5980 * disasm-selftests.c: Update.
5981 * dtrace-probe.c: Update.
5982 * dwarf-index-cache.c: Update.
5983 * dwarf-index-write.c: Update.
5984 * dwarf2-frame-tailcall.c: Update.
5985 * dwarf2-frame.c: Update.
5986 * dwarf2loc.c: Update.
5987 * dwarf2read.c: Update.
5988 * eval.c: Update.
5989 * event-loop.c: Update.
5990 * event-top.c: Update.
5991 * exec.c: Update.
5992 * f-valprint.c: Update.
5993 * fbsd-tdep.c: Update.
5994 * frame-unwind.c: Update.
5995 * frame.c: Update.
5996 * gdbtypes.c: Update.
5997 * gnu-v3-abi.c: Update.
5998 * guile/guile-internal.h: Update.
5999 * guile/scm-block.c: Update.
6000 * guile/scm-breakpoint.c: Update.
6001 * guile/scm-cmd.c: Update.
6002 * guile/scm-disasm.c: Update.
6003 * guile/scm-frame.c: Update.
6004 * guile/scm-lazy-string.c: Update.
6005 * guile/scm-math.c: Update.
6006 * guile/scm-param.c: Update.
6007 * guile/scm-ports.c: Update.
6008 * guile/scm-pretty-print.c: Update.
6009 * guile/scm-symbol.c: Update.
6010 * guile/scm-symtab.c: Update.
6011 * guile/scm-type.c: Update.
6012 * guile/scm-value.c: Update.
6013 * i386-linux-tdep.c: Update.
6014 * i386-tdep.c: Update.
6015 * inf-loop.c: Update.
6016 * infcall.c: Update.
6017 * infcmd.c: Update.
6018 * infrun.c: Update.
6019 * jit.c: Update.
6020 * language.c: Update.
6021 * linespec.c: Update.
6022 * linux-fork.c: Update.
6023 * linux-nat.c: Update.
6024 * linux-tdep.c: Update.
6025 * linux-thread-db.c: Update.
6026 * main.c: Update.
6027 * mi/mi-cmd-break.c: Update.
6028 * mi/mi-cmd-stack.c: Update.
6029 * mi/mi-interp.c: Update.
6030 * mi/mi-main.c: Update.
6031 * objc-lang.c: Update.
6032 * p-valprint.c: Update.
6033 * parse.c: Update.
6034 * ppc-linux-tdep.c: Update.
6035 * printcmd.c: Update.
6036 * python/py-arch.c: Update.
6037 * python/py-breakpoint.c: Update.
6038 * python/py-cmd.c: Update.
6039 * python/py-finishbreakpoint.c: Update.
6040 * python/py-frame.c: Update.
6041 * python/py-framefilter.c: Update.
6042 * python/py-gdb-readline.c: Update.
6043 * python/py-inferior.c: Update.
6044 * python/py-infthread.c: Update.
6045 * python/py-lazy-string.c: Update.
6046 * python/py-linetable.c: Update.
6047 * python/py-objfile.c: Update.
6048 * python/py-param.c: Update.
6049 * python/py-prettyprint.c: Update.
6050 * python/py-progspace.c: Update.
6051 * python/py-record-btrace.c: Update.
6052 * python/py-record.c: Update.
6053 * python/py-symbol.c: Update.
6054 * python/py-type.c: Update.
6055 * python/py-unwind.c: Update.
6056 * python/py-utils.c: Update.
6057 * python/py-value.c: Update.
6058 * python/python.c: Update.
6059 * record-btrace.c: Update.
6060 * record-full.c: Update.
6061 * remote-fileio.c: Update.
6062 * remote.c: Update.
6063 * riscv-tdep.c: Update.
6064 * rs6000-aix-tdep.c: Update.
6065 * rs6000-tdep.c: Update.
6066 * rust-exp.y: Update.
6067 * rust-lang.c: Update.
6068 * s390-tdep.c: Update.
6069 * selftest-arch.c: Update.
6070 * solib-dsbt.c: Update.
6071 * solib-frv.c: Update.
6072 * solib-spu.c: Update.
6073 * solib-svr4.c: Update.
6074 * solib.c: Update.
6075 * sparc64-linux-tdep.c: Update.
6076 * stack.c: Update.
6077 * symfile-mem.c: Update.
6078 * symmisc.c: Update.
6079 * target.c: Update.
6080 * thread.c: Update.
6081 * top.c: Update.
6082 * tracefile-tfile.c: Update.
6083 * tui/tui.c: Update.
6084 * typeprint.c: Update.
6085 * unittests/cli-utils-selftests.c: Update.
6086 * unittests/parse-connection-spec-selftests.c: Update.
6087 * valops.c: Update.
6088 * valprint.c: Update.
6089 * value.c: Update.
6090 * varobj.c: Update.
6091 * windows-nat.c: Update.
6092 * x86-linux-nat.c: Update.
6093 * xml-support.c: Update.
6094
a70b8144
TT
60952019-04-08 Tom Tromey <tom@tromey.com>
6096
6097 * xml-support.c: Use C++ exception handling.
6098 * x86-linux-nat.c: Use C++ exception handling.
6099 * windows-nat.c: Use C++ exception handling.
6100 * varobj.c: Use C++ exception handling.
6101 * value.c: Use C++ exception handling.
6102 * valprint.c: Use C++ exception handling.
6103 * valops.c: Use C++ exception handling.
6104 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6105 handling.
6106 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6107 * typeprint.c: Use C++ exception handling.
6108 * tui/tui.c: Use C++ exception handling.
6109 * tracefile-tfile.c: Use C++ exception handling.
6110 * top.c: Use C++ exception handling.
6111 * thread.c: Use C++ exception handling.
6112 * target.c: Use C++ exception handling.
6113 * symmisc.c: Use C++ exception handling.
6114 * symfile-mem.c: Use C++ exception handling.
6115 * stack.c: Use C++ exception handling.
6116 * sparc64-linux-tdep.c: Use C++ exception handling.
6117 * solib.c: Use C++ exception handling.
6118 * solib-svr4.c: Use C++ exception handling.
6119 * solib-spu.c: Use C++ exception handling.
6120 * solib-frv.c: Use C++ exception handling.
6121 * solib-dsbt.c: Use C++ exception handling.
6122 * selftest-arch.c: Use C++ exception handling.
6123 * s390-tdep.c: Use C++ exception handling.
6124 * rust-lang.c: Use C++ exception handling.
6125 * rust-exp.y: Use C++ exception handling.
6126 * rs6000-tdep.c: Use C++ exception handling.
6127 * rs6000-aix-tdep.c: Use C++ exception handling.
6128 * riscv-tdep.c: Use C++ exception handling.
6129 * remote.c: Use C++ exception handling.
6130 * remote-fileio.c: Use C++ exception handling.
6131 * record-full.c: Use C++ exception handling.
6132 * record-btrace.c: Use C++ exception handling.
6133 * python/python.c: Use C++ exception handling.
6134 * python/py-value.c: Use C++ exception handling.
6135 * python/py-utils.c: Use C++ exception handling.
6136 * python/py-unwind.c: Use C++ exception handling.
6137 * python/py-type.c: Use C++ exception handling.
6138 * python/py-symbol.c: Use C++ exception handling.
6139 * python/py-record.c: Use C++ exception handling.
6140 * python/py-record-btrace.c: Use C++ exception handling.
6141 * python/py-progspace.c: Use C++ exception handling.
6142 * python/py-prettyprint.c: Use C++ exception handling.
6143 * python/py-param.c: Use C++ exception handling.
6144 * python/py-objfile.c: Use C++ exception handling.
6145 * python/py-linetable.c: Use C++ exception handling.
6146 * python/py-lazy-string.c: Use C++ exception handling.
6147 * python/py-infthread.c: Use C++ exception handling.
6148 * python/py-inferior.c: Use C++ exception handling.
6149 * python/py-gdb-readline.c: Use C++ exception handling.
6150 * python/py-framefilter.c: Use C++ exception handling.
6151 * python/py-frame.c: Use C++ exception handling.
6152 * python/py-finishbreakpoint.c: Use C++ exception handling.
6153 * python/py-cmd.c: Use C++ exception handling.
6154 * python/py-breakpoint.c: Use C++ exception handling.
6155 * python/py-arch.c: Use C++ exception handling.
6156 * printcmd.c: Use C++ exception handling.
6157 * ppc-linux-tdep.c: Use C++ exception handling.
6158 * parse.c: Use C++ exception handling.
6159 * p-valprint.c: Use C++ exception handling.
6160 * objc-lang.c: Use C++ exception handling.
6161 * mi/mi-main.c: Use C++ exception handling.
6162 * mi/mi-interp.c: Use C++ exception handling.
6163 * mi/mi-cmd-stack.c: Use C++ exception handling.
6164 * mi/mi-cmd-break.c: Use C++ exception handling.
6165 * main.c: Use C++ exception handling.
6166 * linux-thread-db.c: Use C++ exception handling.
6167 * linux-tdep.c: Use C++ exception handling.
6168 * linux-nat.c: Use C++ exception handling.
6169 * linux-fork.c: Use C++ exception handling.
6170 * linespec.c: Use C++ exception handling.
6171 * language.c: Use C++ exception handling.
6172 * jit.c: Use C++ exception handling.
6173 * infrun.c: Use C++ exception handling.
6174 * infcmd.c: Use C++ exception handling.
6175 * infcall.c: Use C++ exception handling.
6176 * inf-loop.c: Use C++ exception handling.
6177 * i386-tdep.c: Use C++ exception handling.
6178 * i386-linux-tdep.c: Use C++ exception handling.
6179 * guile/scm-value.c: Use C++ exception handling.
6180 * guile/scm-type.c: Use C++ exception handling.
6181 * guile/scm-symtab.c: Use C++ exception handling.
6182 * guile/scm-symbol.c: Use C++ exception handling.
6183 * guile/scm-pretty-print.c: Use C++ exception handling.
6184 * guile/scm-ports.c: Use C++ exception handling.
6185 * guile/scm-param.c: Use C++ exception handling.
6186 * guile/scm-math.c: Use C++ exception handling.
6187 * guile/scm-lazy-string.c: Use C++ exception handling.
6188 * guile/scm-frame.c: Use C++ exception handling.
6189 * guile/scm-disasm.c: Use C++ exception handling.
6190 * guile/scm-cmd.c: Use C++ exception handling.
6191 * guile/scm-breakpoint.c: Use C++ exception handling.
6192 * guile/scm-block.c: Use C++ exception handling.
6193 * guile/guile-internal.h: Use C++ exception handling.
6194 * gnu-v3-abi.c: Use C++ exception handling.
6195 * gdbtypes.c: Use C++ exception handling.
6196 * frame.c: Use C++ exception handling.
6197 * frame-unwind.c: Use C++ exception handling.
6198 * fbsd-tdep.c: Use C++ exception handling.
6199 * f-valprint.c: Use C++ exception handling.
6200 * exec.c: Use C++ exception handling.
6201 * event-top.c: Use C++ exception handling.
6202 * event-loop.c: Use C++ exception handling.
6203 * eval.c: Use C++ exception handling.
6204 * dwarf2read.c: Use C++ exception handling.
6205 * dwarf2loc.c: Use C++ exception handling.
6206 * dwarf2-frame.c: Use C++ exception handling.
6207 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6208 * dwarf-index-write.c: Use C++ exception handling.
6209 * dwarf-index-cache.c: Use C++ exception handling.
6210 * dtrace-probe.c: Use C++ exception handling.
6211 * disasm-selftests.c: Use C++ exception handling.
6212 * darwin-nat.c: Use C++ exception handling.
6213 * cp-valprint.c: Use C++ exception handling.
6214 * cp-support.c: Use C++ exception handling.
6215 * cp-abi.c: Use C++ exception handling.
6216 * corelow.c: Use C++ exception handling.
6217 * completer.c: Use C++ exception handling.
6218 * compile/compile-object-run.c: Use C++ exception handling.
6219 * compile/compile-object-load.c: Use C++ exception handling.
6220 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6221 * compile/compile-c-symbols.c: Use C++ exception handling.
6222 * common/selftest.c: Use C++ exception handling.
6223 * common/new-op.c: Use C++ exception handling.
6224 * cli/cli-script.c: Use C++ exception handling.
6225 * cli/cli-interp.c: Use C++ exception handling.
6226 * cli/cli-cmds.c: Use C++ exception handling.
6227 * c-varobj.c: Use C++ exception handling.
6228 * btrace.c: Use C++ exception handling.
6229 * breakpoint.c: Use C++ exception handling.
6230 * break-catch-throw.c: Use C++ exception handling.
6231 * arch-utils.c: Use C++ exception handling.
6232 * amd64-tdep.c: Use C++ exception handling.
6233 * ada-valprint.c: Use C++ exception handling.
6234 * ada-typeprint.c: Use C++ exception handling.
6235 * ada-lang.c: Use C++ exception handling.
6236 * aarch64-tdep.c: Use C++ exception handling.
6237
3d6e9d23
TT
62382019-04-08 Tom Tromey <tom@tromey.com>
6239
6240 * xml-support.c (gdb_xml_parser::parse): Update.
6241 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6242 * value.c (show_convenience): Update.
6243 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6244 (test_parse_flags_qcs): Update.
6245 * thread.c (thr_try_catch_cmd): Update.
6246 * target.c (target_translate_tls_address): Update.
6247 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6248 (info_frame_command_core, frame_apply_command_count): Update.
6249 * rust-exp.y (rust_lex_exception_test): Update.
6250 * riscv-tdep.c (riscv_print_one_register_info): Update.
6251 * remote.c (remote_target::enable_btrace): Update.
6252 * record-btrace.c (record_btrace_enable_warn): Update.
6253 * python/py-utils.c (gdbpy_convert_exception): Update.
6254 * printcmd.c (do_one_display, print_variable_and_value): Update.
6255 * mi/mi-main.c (mi_print_exception): Update.
6256 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6257 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6258 * linux-nat.c (linux_nat_target::attach): Update.
6259 * linux-fork.c (class scoped_switch_fork_info): Update.
6260 * infrun.c (displaced_step_prepare): Update.
6261 * infcall.c (call_function_by_hand_dummy): Update.
6262 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6263 * gnu-v3-abi.c (print_one_vtable): Update.
6264 * frame.c (get_prev_frame_always): Update.
6265 * f-valprint.c (info_common_command_for_block): Update.
6266 * exec.c (try_open_exec_file): Update.
6267 * exceptions.c (print_exception, exception_print)
6268 (exception_fprintf, exception_print_same): Update.
6269 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6270 * dwarf-index-cache.c (index_cache::store)
6271 (index_cache::lookup_gdb_index): Update.
6272 * darwin-nat.c (maybe_cache_shell): Update.
6273 * cp-valprint.c (cp_print_value_fields): Update.
6274 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6275 (gcc_cplus_symbol_address): Update.
6276 * compile/compile-c-symbols.c (gcc_convert_symbol)
6277 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6278 * common/selftest.c: Update.
6279 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6280 a std::string.
6281 (exception_try_scope_entry, exception_try_scope_exit): Don't
6282 declare.
6283 (struct exception_try_scope): Remove.
6284 (TRY): Don't use exception_try_scope.
6285 (struct gdb_exception): Add constructor, operator=.
6286 <what>: New method.
6287 (struct gdb_exception_RETURN_MASK_ALL)
6288 (struct gdb_exception_RETURN_MASK_ERROR)
6289 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6290 (struct gdb_quit_bad_alloc): Update.
6291 * common/common-exceptions.c (exception_none): Change
6292 initializer.
6293 (struct catcher) <state, exception>: Initialize inline.
6294 <prev>: Remove member.
6295 (current_catcher): Remove.
6296 (catchers): New global.
6297 (exceptions_state_mc_init): Simplify.
6298 (catcher_pop): Remove.
6299 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6300 (try_scope_depth, exception_try_scope_entry)
6301 (exception_try_scope_exit): Remove.
6302 (throw_exception_sjlj): Update.
6303 (exception_messages, exception_messages_size): Remove.
6304 (throw_it): Simplify.
6305 (gdb_exception_sliced_copy): Remove.
6306 (throw_exception_cxx): Update.
6307 * cli/cli-script.c (script_from_file): Update.
6308 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6309 Update.
6310 * ada-valprint.c (ada_val_print): Update.
6311 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6312 (create_excep_cond_exprs): Update.
6313
c5c10118
TT
63142019-04-08 Tom Tromey <tom@tromey.com>
6315
6316 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6317 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6318 (TRY, CATCH, END_CATCH): Remove some definitions.
6319 * common/common-exceptions.c: Don't use GDB_XCPT.
6320 (catcher_list_size): Remove.
6321 (throw_exception, throw_it): Simplify.
6322
4de283e4
TT
63232019-04-05 Tom Tromey <tom@tromey.com>
6324
6325 Revert the header-sorting patch.
6326 * ft32-tdep.c: Revert.
6327 * frv-tdep.c: Revert.
6328 * frv-linux-tdep.c: Revert.
6329 * frame.c: Revert.
6330 * frame-unwind.c: Revert.
6331 * frame-base.c: Revert.
6332 * fork-child.c: Revert.
6333 * findvar.c: Revert.
6334 * findcmd.c: Revert.
6335 * filesystem.c: Revert.
6336 * filename-seen-cache.h: Revert.
6337 * filename-seen-cache.c: Revert.
6338 * fbsd-tdep.c: Revert.
6339 * fbsd-nat.h: Revert.
6340 * fbsd-nat.c: Revert.
6341 * f-valprint.c: Revert.
6342 * f-typeprint.c: Revert.
6343 * f-lang.c: Revert.
6344 * extension.h: Revert.
6345 * extension.c: Revert.
6346 * extension-priv.h: Revert.
6347 * expprint.c: Revert.
6348 * exec.h: Revert.
6349 * exec.c: Revert.
6350 * exceptions.c: Revert.
6351 * event-top.c: Revert.
6352 * event-loop.c: Revert.
6353 * eval.c: Revert.
6354 * elfread.c: Revert.
6355 * dwarf2read.h: Revert.
6356 * dwarf2read.c: Revert.
6357 * dwarf2loc.c: Revert.
6358 * dwarf2expr.h: Revert.
6359 * dwarf2expr.c: Revert.
6360 * dwarf2-frame.c: Revert.
6361 * dwarf2-frame-tailcall.c: Revert.
6362 * dwarf-index-write.h: Revert.
6363 * dwarf-index-write.c: Revert.
6364 * dwarf-index-common.c: Revert.
6365 * dwarf-index-cache.h: Revert.
6366 * dwarf-index-cache.c: Revert.
6367 * dummy-frame.c: Revert.
6368 * dtrace-probe.c: Revert.
6369 * disasm.h: Revert.
6370 * disasm.c: Revert.
6371 * disasm-selftests.c: Revert.
6372 * dictionary.c: Revert.
6373 * dicos-tdep.c: Revert.
6374 * demangle.c: Revert.
6375 * dcache.h: Revert.
6376 * dcache.c: Revert.
6377 * darwin-nat.h: Revert.
6378 * darwin-nat.c: Revert.
6379 * darwin-nat-info.c: Revert.
6380 * d-valprint.c: Revert.
6381 * d-namespace.c: Revert.
6382 * d-lang.c: Revert.
6383 * ctf.c: Revert.
6384 * csky-tdep.c: Revert.
6385 * csky-linux-tdep.c: Revert.
6386 * cris-tdep.c: Revert.
6387 * cris-linux-tdep.c: Revert.
6388 * cp-valprint.c: Revert.
6389 * cp-support.c: Revert.
6390 * cp-namespace.c: Revert.
6391 * cp-abi.c: Revert.
6392 * corelow.c: Revert.
6393 * corefile.c: Revert.
6394 * continuations.c: Revert.
6395 * completer.h: Revert.
6396 * completer.c: Revert.
6397 * complaints.c: Revert.
6398 * coffread.c: Revert.
6399 * coff-pe-read.c: Revert.
6400 * cli-out.h: Revert.
6401 * cli-out.c: Revert.
6402 * charset.c: Revert.
6403 * c-varobj.c: Revert.
6404 * c-valprint.c: Revert.
6405 * c-typeprint.c: Revert.
6406 * c-lang.c: Revert.
6407 * buildsym.c: Revert.
6408 * buildsym-legacy.c: Revert.
6409 * build-id.h: Revert.
6410 * build-id.c: Revert.
6411 * btrace.c: Revert.
6412 * bsd-uthread.c: Revert.
6413 * breakpoint.h: Revert.
6414 * breakpoint.c: Revert.
6415 * break-catch-throw.c: Revert.
6416 * break-catch-syscall.c: Revert.
6417 * break-catch-sig.c: Revert.
6418 * blockframe.c: Revert.
6419 * block.c: Revert.
6420 * bfin-tdep.c: Revert.
6421 * bfin-linux-tdep.c: Revert.
6422 * bfd-target.c: Revert.
6423 * bcache.c: Revert.
6424 * ax-general.c: Revert.
6425 * ax-gdb.h: Revert.
6426 * ax-gdb.c: Revert.
6427 * avr-tdep.c: Revert.
6428 * auxv.c: Revert.
6429 * auto-load.c: Revert.
6430 * arm-wince-tdep.c: Revert.
6431 * arm-tdep.c: Revert.
6432 * arm-symbian-tdep.c: Revert.
6433 * arm-pikeos-tdep.c: Revert.
6434 * arm-obsd-tdep.c: Revert.
6435 * arm-nbsd-tdep.c: Revert.
6436 * arm-nbsd-nat.c: Revert.
6437 * arm-linux-tdep.c: Revert.
6438 * arm-linux-nat.c: Revert.
6439 * arm-fbsd-tdep.c: Revert.
6440 * arm-fbsd-nat.c: Revert.
6441 * arm-bsd-tdep.c: Revert.
6442 * arch-utils.c: Revert.
6443 * arc-tdep.c: Revert.
6444 * arc-newlib-tdep.c: Revert.
6445 * annotate.h: Revert.
6446 * annotate.c: Revert.
6447 * amd64-windows-tdep.c: Revert.
6448 * amd64-windows-nat.c: Revert.
6449 * amd64-tdep.c: Revert.
6450 * amd64-sol2-tdep.c: Revert.
6451 * amd64-obsd-tdep.c: Revert.
6452 * amd64-obsd-nat.c: Revert.
6453 * amd64-nbsd-tdep.c: Revert.
6454 * amd64-nbsd-nat.c: Revert.
6455 * amd64-nat.c: Revert.
6456 * amd64-linux-tdep.c: Revert.
6457 * amd64-linux-nat.c: Revert.
6458 * amd64-fbsd-tdep.c: Revert.
6459 * amd64-fbsd-nat.c: Revert.
6460 * amd64-dicos-tdep.c: Revert.
6461 * amd64-darwin-tdep.c: Revert.
6462 * amd64-bsd-nat.c: Revert.
6463 * alpha-tdep.c: Revert.
6464 * alpha-obsd-tdep.c: Revert.
6465 * alpha-nbsd-tdep.c: Revert.
6466 * alpha-mdebug-tdep.c: Revert.
6467 * alpha-linux-tdep.c: Revert.
6468 * alpha-linux-nat.c: Revert.
6469 * alpha-bsd-tdep.c: Revert.
6470 * alpha-bsd-nat.c: Revert.
6471 * aix-thread.c: Revert.
6472 * agent.c: Revert.
6473 * addrmap.c: Revert.
6474 * ada-varobj.c: Revert.
6475 * ada-valprint.c: Revert.
6476 * ada-typeprint.c: Revert.
6477 * ada-tasks.c: Revert.
6478 * ada-lang.c: Revert.
6479 * aarch64-tdep.c: Revert.
6480 * aarch64-ravenscar-thread.c: Revert.
6481 * aarch64-newlib-tdep.c: Revert.
6482 * aarch64-linux-tdep.c: Revert.
6483 * aarch64-linux-nat.c: Revert.
6484 * aarch64-fbsd-tdep.c: Revert.
6485 * aarch64-fbsd-nat.c: Revert.
6486 * aarch32-linux-nat.c: Revert.
6487
d55e5aa6
TT
64882019-04-05 Tom Tromey <tom@tromey.com>
6489
6490 * ft32-tdep.c: Sort headers.
6491 * frv-tdep.c: Sort headers.
6492 * frv-linux-tdep.c: Sort headers.
6493 * frame.c: Sort headers.
6494 * frame-unwind.c: Sort headers.
6495 * frame-base.c: Sort headers.
6496 * fork-child.c: Sort headers.
6497 * findvar.c: Sort headers.
6498 * findcmd.c: Sort headers.
6499 * filesystem.c: Sort headers.
6500 * filename-seen-cache.h: Sort headers.
6501 * filename-seen-cache.c: Sort headers.
6502 * fbsd-tdep.c: Sort headers.
6503 * fbsd-nat.h: Sort headers.
6504 * fbsd-nat.c: Sort headers.
6505 * f-valprint.c: Sort headers.
6506 * f-typeprint.c: Sort headers.
6507 * f-lang.c: Sort headers.
6508 * extension.h: Sort headers.
6509 * extension.c: Sort headers.
6510 * extension-priv.h: Sort headers.
6511 * expprint.c: Sort headers.
6512 * exec.h: Sort headers.
6513 * exec.c: Sort headers.
6514 * exceptions.c: Sort headers.
6515 * event-top.c: Sort headers.
6516 * event-loop.c: Sort headers.
6517 * eval.c: Sort headers.
6518 * elfread.c: Sort headers.
6519 * dwarf2read.h: Sort headers.
6520 * dwarf2read.c: Sort headers.
6521 * dwarf2loc.c: Sort headers.
6522 * dwarf2expr.h: Sort headers.
6523 * dwarf2expr.c: Sort headers.
6524 * dwarf2-frame.c: Sort headers.
6525 * dwarf2-frame-tailcall.c: Sort headers.
6526 * dwarf-index-write.h: Sort headers.
6527 * dwarf-index-write.c: Sort headers.
6528 * dwarf-index-common.c: Sort headers.
6529 * dwarf-index-cache.h: Sort headers.
6530 * dwarf-index-cache.c: Sort headers.
6531 * dummy-frame.c: Sort headers.
6532 * dtrace-probe.c: Sort headers.
6533 * disasm.h: Sort headers.
6534 * disasm.c: Sort headers.
6535 * disasm-selftests.c: Sort headers.
6536 * dictionary.c: Sort headers.
6537 * dicos-tdep.c: Sort headers.
6538 * demangle.c: Sort headers.
6539 * dcache.h: Sort headers.
6540 * dcache.c: Sort headers.
6541 * darwin-nat.h: Sort headers.
6542 * darwin-nat.c: Sort headers.
6543 * darwin-nat-info.c: Sort headers.
6544 * d-valprint.c: Sort headers.
6545 * d-namespace.c: Sort headers.
6546 * d-lang.c: Sort headers.
6547 * ctf.c: Sort headers.
6548 * csky-tdep.c: Sort headers.
6549 * csky-linux-tdep.c: Sort headers.
6550 * cris-tdep.c: Sort headers.
6551 * cris-linux-tdep.c: Sort headers.
6552 * cp-valprint.c: Sort headers.
6553 * cp-support.c: Sort headers.
6554 * cp-namespace.c: Sort headers.
6555 * cp-abi.c: Sort headers.
6556 * corelow.c: Sort headers.
6557 * corefile.c: Sort headers.
6558 * continuations.c: Sort headers.
6559 * completer.h: Sort headers.
6560 * completer.c: Sort headers.
6561 * complaints.c: Sort headers.
6562 * coffread.c: Sort headers.
6563 * coff-pe-read.c: Sort headers.
6564 * cli-out.h: Sort headers.
6565 * cli-out.c: Sort headers.
6566 * charset.c: Sort headers.
6567 * c-varobj.c: Sort headers.
6568 * c-valprint.c: Sort headers.
6569 * c-typeprint.c: Sort headers.
6570 * c-lang.c: Sort headers.
6571 * buildsym.c: Sort headers.
6572 * buildsym-legacy.c: Sort headers.
6573 * build-id.h: Sort headers.
6574 * build-id.c: Sort headers.
6575 * btrace.c: Sort headers.
6576 * bsd-uthread.c: Sort headers.
6577 * breakpoint.h: Sort headers.
6578 * breakpoint.c: Sort headers.
6579 * break-catch-throw.c: Sort headers.
6580 * break-catch-syscall.c: Sort headers.
6581 * break-catch-sig.c: Sort headers.
6582 * blockframe.c: Sort headers.
6583 * block.c: Sort headers.
6584 * bfin-tdep.c: Sort headers.
6585 * bfin-linux-tdep.c: Sort headers.
6586 * bfd-target.c: Sort headers.
6587 * bcache.c: Sort headers.
6588 * ax-general.c: Sort headers.
6589 * ax-gdb.h: Sort headers.
6590 * ax-gdb.c: Sort headers.
6591 * avr-tdep.c: Sort headers.
6592 * auxv.c: Sort headers.
6593 * auto-load.c: Sort headers.
6594 * arm-wince-tdep.c: Sort headers.
6595 * arm-tdep.c: Sort headers.
6596 * arm-symbian-tdep.c: Sort headers.
6597 * arm-pikeos-tdep.c: Sort headers.
6598 * arm-obsd-tdep.c: Sort headers.
6599 * arm-nbsd-tdep.c: Sort headers.
6600 * arm-nbsd-nat.c: Sort headers.
6601 * arm-linux-tdep.c: Sort headers.
6602 * arm-linux-nat.c: Sort headers.
6603 * arm-fbsd-tdep.c: Sort headers.
6604 * arm-fbsd-nat.c: Sort headers.
6605 * arm-bsd-tdep.c: Sort headers.
6606 * arch-utils.c: Sort headers.
6607 * arc-tdep.c: Sort headers.
6608 * arc-newlib-tdep.c: Sort headers.
6609 * annotate.h: Sort headers.
6610 * annotate.c: Sort headers.
6611 * amd64-windows-tdep.c: Sort headers.
6612 * amd64-windows-nat.c: Sort headers.
6613 * amd64-tdep.c: Sort headers.
6614 * amd64-sol2-tdep.c: Sort headers.
6615 * amd64-obsd-tdep.c: Sort headers.
6616 * amd64-obsd-nat.c: Sort headers.
6617 * amd64-nbsd-tdep.c: Sort headers.
6618 * amd64-nbsd-nat.c: Sort headers.
6619 * amd64-nat.c: Sort headers.
6620 * amd64-linux-tdep.c: Sort headers.
6621 * amd64-linux-nat.c: Sort headers.
6622 * amd64-fbsd-tdep.c: Sort headers.
6623 * amd64-fbsd-nat.c: Sort headers.
6624 * amd64-dicos-tdep.c: Sort headers.
6625 * amd64-darwin-tdep.c: Sort headers.
6626 * amd64-bsd-nat.c: Sort headers.
6627 * alpha-tdep.c: Sort headers.
6628 * alpha-obsd-tdep.c: Sort headers.
6629 * alpha-nbsd-tdep.c: Sort headers.
6630 * alpha-mdebug-tdep.c: Sort headers.
6631 * alpha-linux-tdep.c: Sort headers.
6632 * alpha-linux-nat.c: Sort headers.
6633 * alpha-bsd-tdep.c: Sort headers.
6634 * alpha-bsd-nat.c: Sort headers.
6635 * aix-thread.c: Sort headers.
6636 * agent.c: Sort headers.
6637 * addrmap.c: Sort headers.
6638 * ada-varobj.c: Sort headers.
6639 * ada-valprint.c: Sort headers.
6640 * ada-typeprint.c: Sort headers.
6641 * ada-tasks.c: Sort headers.
6642 * ada-lang.c: Sort headers.
6643 * aarch64-tdep.c: Sort headers.
6644 * aarch64-ravenscar-thread.c: Sort headers.
6645 * aarch64-newlib-tdep.c: Sort headers.
6646 * aarch64-linux-tdep.c: Sort headers.
6647 * aarch64-linux-nat.c: Sort headers.
6648 * aarch64-fbsd-tdep.c: Sort headers.
6649 * aarch64-fbsd-nat.c: Sort headers.
6650 * aarch32-linux-nat.c: Sort headers.
6651
699bd4cf
TT
66522019-04-04 Tom Tromey <tom@tromey.com>
6653
6654 * varobj.c (varobj_create): Update.
6655 * rust-exp.y (struct rust_parser) <update_innermost_block,
6656 lookup_symbol>: New methods.
6657 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6658 Rename.
6659 (rust_parser::rust_lookup_type)
6660 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6661 * printcmd.c (display_command, do_one_display): Update.
6662 * parser-defs.h (struct parser_state) <parser_state>: Add
6663 "tracker" parameter.
6664 (block_tracker): New member.
6665 (class innermost_block_tracker) <innermost_block_tracker>: Add
6666 "types" parameter.
6667 <reset>: Remove method.
6668 (innermost_block): Don't declare.
6669 (null_post_parser): Update.
6670 * parse.c (innermost_block): Remove global.
6671 (write_dollar_variable): Update.
6672 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6673 Remove "tracker_types" parameter.
6674 (parse_expression): Add "tracker" parameter.
6675 (parse_expression_for_completion): Update.
6676 (null_post_parser): Add "tracker" parameter.
6677 * p-exp.y: Update rules.
6678 * m2-exp.y: Update rules.
6679 * language.h (struct language_defn) <la_post_parser>: Add
6680 "tracker" parameter.
6681 * go-exp.y: Update rules.
6682 * f-exp.y: Update rules.
6683 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6684 parameter.
6685 * d-exp.y: Update rules.
6686 * c-exp.y: Update rules.
6687 * breakpoint.c (set_breakpoint_condition): Create an
6688 innermost_block_tracker.
6689 (watch_command_1): Likewise.
6690 * ada-lang.c (resolve): Add "tracker" parameter.
6691 (resolve_subexp): Likewise.
6692 * ada-exp.y (write_var_from_sym): Update.
6693
dac43e32
TT
66942019-04-04 Tom Tromey <tom@tromey.com>
6695
6696 * type-stack.h: New file.
6697 * type-stack.c: New file.
6698 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6699 type-stack.h.
6700 (insert_into_type_stack, insert_type, push_type, push_type_int)
6701 (insert_type_address_space, pop_type, pop_type_int)
6702 (pop_typelist, pop_type_stack, append_type_stack)
6703 (push_type_stack, get_type_stack, push_typelist)
6704 (follow_type_instance_flags, follow_types): Don't declare.
6705 * parse.c (type_stack): Remove global.
6706 (parse_exp_in_context): Update.
6707 (insert_into_type_stack, insert_type, push_type, push_type_int)
6708 (insert_type_address_space, pop_type, pop_type_int)
6709 (pop_typelist, pop_type_stack, append_type_stack)
6710 (push_type_stack, get_type_stack, push_typelist)
6711 (follow_type_instance_flags, follow_types): Remove (moved to
6712 type-stack.c).
6713 * f-exp.y (type_stack): New global.
6714 Update rules.
6715 (push_kind_type, f_parse): Update.
6716 * d-exp.y (type_stack): New global.
6717 Update rules.
6718 (d_parse): Update.
6719 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6720 Update rules.
6721 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6722 (HFILES_NO_SRCDIR): Add type-stack.h.
6723
2a612529
TT
67242019-04-04 Tom Tromey <tom@tromey.com>
6725
6726 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6727 (rust_parser::convert_ast_to_expression, rust_parse)
6728 (rust_lex_test_completion, rust_lex_tests): Update.
6729 * parser-defs.h (struct expr_completion_state): New.
6730 (struct parser_state) <parser_state>: Add completion parameter.
6731 <mark_struct_expression, mark_completion_tag>: New methods.
6732 <parse_completion, m_completion_state>: New members.
6733 (prefixify_expression, null_post_parser): Update.
6734 (mark_struct_expression, mark_completion_tag): Don't declare.
6735 * parse.c (parse_completion, expout_last_struct)
6736 (expout_tag_completion_type, expout_completion_name): Remove
6737 globals.
6738 (parser_state::mark_struct_expression)
6739 (parser_state::mark_completion_tag): Now methods.
6740 (prefixify_expression): Add last_struct parameter.
6741 (prefixify_subexp): Likewise.
6742 (parse_exp_1): Update.
6743 (parse_exp_in_context): Add cstate parameter. Update.
6744 (parse_expression_for_completion): Create an
6745 expr_completion_state.
6746 (null_post_parser): Add "completion" parameter.
6747 * p-exp.y: Update rules.
6748 (yylex): Update.
6749 * language.h (struct language_defn) <la_post_parser>: Add
6750 "completing" parameter.
6751 * go-exp.y: Update rules.
6752 (lex_one_token): Update.
6753 * expression.h (parse_completion): Don't declare.
6754 * d-exp.y: Update rules.
6755 (lex_one_token): Update rules.
6756 * c-exp.y: Update rules.
6757 (lex_one_token): Update.
6758 * ada-lang.c (resolve): Add "parse_completion" parameter.
6759 (resolve_subexp): Likewise.
6760 (ada_resolve_function): Likewise.
6761
43476f0b
TT
67622019-04-04 Tom Tromey <tom@tromey.com>
6763
6764 * parser-defs.h (struct parser_state) <start_arglist,
6765 end_arglist>: New methods.
6766 <arglist_len, m_funcall_chain>: New members.
6767 (arglist_len, start_arglist, end_arglist): Don't declare.
6768 * parse.c (arglist_len, funcall_chain): Remove global.
6769 (start_arglist, end_arglist): Remove functions.
6770 (parse_exp_in_context): Update.
6771 * p-exp.y: Update rules.
6772 * m2-exp.y: Update rules.
6773 * go-exp.y: Update rules.
6774 * f-exp.y: Update rules.
6775 * d-exp.y: Update rules.
6776 * c-exp.y: Update rules.
6777
5776fca3
TT
67782019-04-04 Tom Tromey <tom@tromey.com>
6779
6780 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6781 lex_operator, push_back>: New methods.
6782 Update all rules.
6783 (rust_parser::lex_hex, lex_escape): Rename and update.
6784 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6785 (rust_parser::lex_operator): Rename and update.
6786 (rust_parser::lex_number, rustyylex, rustyyerror)
6787 (rust_lex_test_init, rust_lex_test_sequence)
6788 (rust_lex_test_push_back, rust_lex_tests): Update.
6789 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6790 parameter.
6791 <lexptr, prev_lexptr>: New members.
6792 (lexptr, prev_lexptr): Don't declare.
6793 * parse.c (lexptr, prev_lexptr): Remove globals.
6794 (parse_exp_in_context): Update.
6795 * p-exp.y (yylex, yyerror): Update.
6796 * m2-exp.y (parse_number, yylex, yyerror): Update.
6797 * go-exp.y (lex_one_token, yyerror): Update.
6798 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6799 * d-exp.y (lex_one_token, yyerror): Update.
6800 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6801 (lex_one_token, yyerror): Update.
6802 * ada-lex.l (YY_INPUT): Update.
6803 (rewind_to_char): Update.
6804 * ada-exp.y (yyerror): Update.
6805
8621b685
TT
68062019-04-04 Tom Tromey <tom@tromey.com>
6807
6808 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6809 * parser-defs.h (struct parser_state) <parser_state>: Add new
6810 parameter.
6811 <comma_terminates>: New member.
6812 (comma_terminates): Don't declare global.
6813 * parse.c (comma_terminates): Remove global.
6814 (parse_exp_in_context): Update.
6815 * p-exp.y (yylex): Update.
6816 * m2-exp.y (yylex): Update.
6817 * go-exp.y (lex_one_token): Update.
6818 * f-exp.y (yylex): Update.
6819 * d-exp.y (lex_one_token): Update.
6820 * c-exp.y (lex_one_token): Update.
6821 * ada-lex.l: Update.
6822
28aaf3fd
TT
68232019-04-04 Tom Tromey <tom@tromey.com>
6824
6825 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6826 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6827 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6828 * parser-defs.h (paren_depth): Don't declare.
6829 * parse.c (paren_depth): Remove global.
6830 (parse_exp_in_context): Update.
6831 * p-exp.y (paren_depth): New global.
6832 (pascal_parse): Initialize it.
6833 * m2-exp.y (paren_depth): New global.
6834 (m2_parse): Initialize it.
6835 * go-exp.y (paren_depth): New global.
6836 (go_parse): Initialize it.
6837 * f-exp.y (paren_depth): New global.
6838 (f_parse): Initialize it.
6839 * d-exp.y (paren_depth): New global.
6840 (d_parse): Initialize it.
6841 * c-exp.y (paren_depth): New global.
6842 (c_parse): Initialize it.
6843 * ada-lex.l (paren_depth): New global.
6844 (lexer_init): Initialize it.
6845
1e58a4a4
TT
68462019-04-04 Tom Tromey <tom@tromey.com>
6847
6848 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6849 (rust_parser::convert_ast_to_type)
6850 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6851 * parser-defs.h (struct parser_state) <parser_state>: Add
6852 parameters. Initialize new members.
6853 <expression_context_block, expression_context_pc>: New members.
6854 * parse.c (expression_context_block, expression_context_pc):
6855 Remove globals.
6856 (parse_exp_in_context): Update.
6857 * p-exp.y: Update all rules.
6858 (yylex): Update.
6859 * m2-exp.y: Update all rules.
6860 (yylex): Update.
6861 * go-exp.y (yylex): Update.
6862 * f-exp.y (yylex): Update.
6863 * d-exp.y: Update all rules.
6864 (yylex): Update.
6865 * c-exp.y: Update all rules.
6866 (lex_one_token, classify_name, yylex, c_parse): Update.
6867 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6868
37eedb39
TT
68692019-04-04 Tom Tromey <tom@tromey.com>
6870
6871 * gdbarch.h, gdbarch.c: Rebuild.
6872 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6873 * stap-probe.h:
6874 (struct stap_parse_info): Replace "parser_state" with
6875 "expr_builder".
6876 * parser-defs.h (struct expr_builder): Rename from "parser_state".
6877 (parser_state): New class.
6878 * parse.c (expr_builder): Rename.
6879 (expr_builder::release): Rename.
6880 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
6881 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
6882 (write_exp_elt_longcst, write_exp_elt_floatcst)
6883 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
6884 (write_exp_string_vector, write_exp_bitstring)
6885 (write_exp_msymbol, mark_struct_expression)
6886 (write_dollar_variable)
6887 (insert_type_address_space, increase_expout_size): Replace
6888 "parser_state" with "expr_builder".
6889 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
6890 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
6891 "parser_state" with "expr_builder".
6892
73923d7e
TT
68932019-04-04 Tom Tromey <tom@tromey.com>
6894
6895 * rust-exp.y: Replace "parse_language" with method call.
6896 * p-exp.y:
6897 (yylex): Replace "parse_language" with method call.
6898 * m2-exp.y:
6899 (yylex): Replace "parse_language" with method call.
6900 * go-exp.y (classify_name): Replace "parse_language" with method
6901 call.
6902 * f-exp.y (yylex): Replace "parse_language" with method call.
6903 * d-exp.y (lex_one_token): Replace "parse_language" with method
6904 call.
6905 * c-exp.y:
6906 (lex_one_token, classify_name, yylex): Replace "parse_language"
6907 with method call.
6908 * ada-exp.y (find_primitive_type, type_char)
6909 (type_system_address): Replace "parse_language" with method call.
6910
fa9f5be6
TT
69112019-04-04 Tom Tromey <tom@tromey.com>
6912
6913 * rust-exp.y: Replace "parse_gdbarch" with method call.
6914 * parse.c (write_dollar_variable, insert_type_address_space):
6915 Replace "parse_gdbarch" with method call.
6916 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
6917 call.
6918 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
6919 call.
6920 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
6921 "parse_gdbarch" with method call.
6922 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
6923 with method call.
6924 * f-exp.y (parse_type, parse_f_type, yylex): Replace
6925 "parse_gdbarch" with method call.
6926 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
6927 "parse_gdbarch" with method call.
6928 * c-exp.y (parse_type, parse_number, classify_name): Replace
6929 "parse_gdbarch" with method call.
6930 * ada-lex.l: Replace "parse_gdbarch" with method call.
6931 * ada-exp.y (parse_type, find_primitive_type, type_char)
6932 (type_system_address): Replace "parse_gdbarch" with method call.
6933
1201a264
TT
69342019-04-04 Tom Tromey <tom@tromey.com>
6935
6936 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
6937 * stap-probe.c (stap_parse_argument): Update.
6938 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
6939 initial_size parameter.
6940 * rust-exp.y (rust_lex_tests): Update.
6941 * parse.c (parser_state): Update.
6942 (parse_exp_in_context): Update.
6943 * parser-defs.h (struct parser_state) <parser_state>: Remove
6944 "initial_size" parameter.
6945
e3980ce2
TT
69462019-04-04 Tom Tromey <tom@tromey.com>
6947
6948 * parser-defs.h (increase_expout_size): Don't declare.
6949 * parse.c (increase_expout_size): Now static.
6950
e9f8e3f1
TS
69512019-04-04 Thomas Schwinge <thomas@codesourcery.com>
6952
6953 * gnu-nat.c (gnu_nat_target::wait): Fix
6954 target_waitstatus_to_string call.
6955
d7df6549
AB
69562019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
6957
6958 * eval.c (evaluate_subexp_standard): Handle internal functions
6959 during Fortran function call handling.
6960
8bdc1658
AB
69612019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * NEWS: Mention new internal functions.
6964 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
6965 (read_base_type): Use dwarf2_init_complex_target_type.
6966 * value.c (creal_internal_fn): New function.
6967 (cimag_internal_fn): New function.
6968 (_initialize_values): Register new internal functions.
6969
c29705b7
PW
69702019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6971
6972 * infrun.c (stop_all_threads): If debug_infrun, always
6973 trace the wait status after wait_one, using
6974 target_waitstatus_to_string and target_pid_to_str.
6975 (handle_inferior_event): Replace various trace of
6976 wait status kind by a single trace.
6977 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
6978 wait status kind image by target_waitstatus_to_string.
6979 * target/waitstatus.c (target_waitstatus_to_string): Fix
6980 obsolete comment.
6981
05caa1d2
TT
69822019-04-01 Tom Tromey <tromey@adacore.com>
6983
6984 PR symtab/23331:
6985 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
6986
9d1447e0
SDJ
69872019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
6988 Pedro Alves <palves@redhat.com>
6989
6990 * top.c (quit_force): Call 'finalize_values'.
6991 * value.c (finalize_values): New function.
6992 * value.h (finalize_values): Declare.
6993
7734102d
EZ
69942019-03-30 Eli Zaretskii <eliz@gnu.org>
6995
6996 * NEWS: Announce $_gdb_major and $_gdb_minor.
6997
6998 * top.c (init_gdb_version_vars): New function.
6999 (gdb_init): Call init_gdb_version_vars.
7000
188e1fa9
TT
70012019-03-29 Tom Tromey <tromey@adacore.com>
7002
7003 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7004 help text. Remove dead code.
7005
2880242d
KS
70062019-03-29 Keith Seitz <keiths@redhat.com>
7007
7008 From Siddhesh Poyarekar:
7009 * f-lang.h (f77_get_upperbound): Return LONGEST.
7010 (f77_get_lowerbound): Likewise.
7011 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7012 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7013 print them.
7014 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7015 plongest to format print it.
7016 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7017 (f77_get_upperbound): Likewise.
7018 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7019 LOWER_BOUND to LONGEST.
7020 (f77_create_arrayprint_offset_tbl): Likewise.
7021
cc1defb1
KS
70222019-03-29 Keith Seitz <keiths@redhat.com>
7023
7024 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7025 %s/pulongest for TYPE_LENGTH instead of %d in format
7026 strings.
7027 * ada-typerint.c (ada_print_type): Likewise.
7028 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7029 * compile/compile-c-support.c (generate_register_struct): Likewise.
7030 * gdbtypes.c (recursive_dump_type): Likewise.
7031 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7032 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7033 instead of %d in format strings.
7034 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7035 to std::min to ULONGEST.
7036 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7037 instead of %d in format strings.
7038 * tracepoint.c (info_scope_command): Likewise.
7039 * typeprint.c (print_offset_data::update)
7040 (print_offset_data::finish): Likewise.
7041 * xtensa-tdep.c (xtensa_store_return_value)
7042 (xtensa_push_dummy_call): Likewise.
7043
e432ccf1
JT
70442019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7045
7046 * windows-nat.c (display_selector): Fixed format specifications
7047 for 64-bit Cygwin.
7048
65d2b333
PW
70492019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7050
7051 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7052
f489207e
SL
70532019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7054
7055 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7056 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7057 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7058 (nios2_linux_init_abi): Install it.
7059
bffa1015
AH
70602019-03-28 Alan Hayward <alan.hayward@arm.com>
7061
7062 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7063
fc96163a
AH
70642019-03-28 Alan Hayward <alan.hayward@arm.com>
7065
7066 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7067
20dc7e9b
PW
70682019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7069 Tom Tromey <tromey@adacore.com>
7070
7071 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7072
7f5331a8
JB
70732019-03-26 Joel Brobecker <brobecker@adacore.com>
7074
7075 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7076 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7077 method to compute the bounds of range types. Also print "[evaluated]"
7078 if the bounds' values come from a dynamic evaluation.
7079
18c77628
AB
70802019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7081
7082 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7083 whitespace when pretty printing is on.
7084
53c973f2
AH
70852019-03-26 Alan Hayward <alan.hayward@arm.com>
7086
e79be6e5 7087 * ppc-linux-nat.c: Add include.
53c973f2 7088
d851aa71
AH
70892019-03-26 Alan Hayward <alan.hayward@arm.com>
7090
e79be6e5 7091 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7092
2fe7bab7
AH
70932019-03-26 Alan Hayward <alan.hayward@arm.com>
7094
e79be6e5 7095 * arm-linux-nat.c: Add include.
2fe7bab7 7096
068ef30e
SM
70972019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7098
7099 * source-cache.c (source_cache::get_source_lines): Re-read
7100 fullname after calling open_source_file.
7101
81a24d04
JB
71022019-03-25 John Baldwin <jhb@FreeBSD.org>
7103
7104 * NEWS: Mention TLS support for FreeBSD.
7105
79e7ae11
TT
71062019-03-25 Tom Tromey <tromey@adacore.com>
7107
7108 * minsyms.c (BUNCH_SIZE): Update comment.
7109 (~minimal_symbol_reader): Remove old comment.
7110 (compact_minimal_symbols): Update comment.
7111 (minimal_symbol_reader::install): Remove old comment. Update
7112 other comments.
7113
d45963c2
AH
71142019-03-25 Alan Hayward <alan.hayward@arm.com>
7115
7116 * s390-linux-nat.c: Add include.
7117
0f83012e
AH
71182019-03-25 Alan Hayward <alan.hayward@arm.com>
7119
7120 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7121 Call linux_get_hwcap.
7122 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7123 Likewise.
7124 (aarch64_linux_get_hwcap): Remove function.
7125 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7126 declaration.
7127 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7128 linux_get_hwcap.
7129 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7130 * linux-tdep.c (linux_get_hwcap): Add function.
7131 (linux_get_hwcap2): Likewise.
7132 * linux-tdep.h (linux_get_hwcap): Add declaration.
7133 (linux_get_hwcap2): Likewise.
7134 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7135 (ppc_linux_get_hwcap2): Likewise.
7136 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7137 linux_get_hwcap.
7138 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7139 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7140 (ppc_linux_nat_target::read_description): Likewise.
7141 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7142 * s390-linux-nat.c: Likewise.
7143 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7144
6640a367
TT
71452019-03-24 Tom Tromey <tom@tromey.com>
7146
7147 * ada-lang.c (standard_lookup): Simplify initialization.
7148 (ada_lookup_symbol_nonlocal): Simplify return.
7149 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7150 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7151 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7152 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7153 initialization.
7154 * solib.c (solib_global_lookup): Simplify.
7155 * symtab.c (null_block_symbol): Remove.
7156 (symbol_cache_lookup): Simplify returns.
7157 (lookup_language_this): Simplify returns.
7158 (lookup_symbol_aux): Simplify return.
7159 (lookup_local_symbol): Simplify returns.
7160 (lookup_global_symbol_from_objfile): Simplify return.
7161 (lookup_symbol_in_objfile_symtabs)
7162 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7163 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7164 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7165 * cp-namespace.c (cp_lookup_bare_symbol)
7166 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7167 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7168 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7169 (cp_lookup_symbol_via_imports): Simplify initialization.
7170 (find_symbol_in_baseclass): Likewise.
7171 * symtab.h (null_block_symbol): Remove.
7172 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7173 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7174 (d_lookup_symbol_module): Likewise.
7175 (find_symbol_in_baseclass): Simplify initialization.
7176
a930ebcd
TT
71772019-03-24 Tom Tromey <tom@tromey.com>
7178
7179 * expression.h: Don't include symtab.h.
7180 (struct block): Forward declare.
7181
582942f4
TT
71822019-03-24 Tom Tromey <tom@tromey.com>
7183
7184 * c-exp.y (typebase): Remove casts.
7185 * gdbtypes.c (lookup_unsigned_typename, )
7186 (lookup_signed_typename): Remove cast.
7187 * eval.c (parse_to_comma_and_eval): Remove cast.
7188 * parse.c (write_dollar_variable): Remove cast.
7189 * block.h (struct block) <superblock>: Now const.
7190 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7191 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7192 (map_block): Make "block" const.
7193 * symfile.h (struct quick_symbol_functions)
7194 <map_matching_symbols>: Constify block argument to "callback".
7195 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7196 const.
7197 (find_pc_sect_compunit_symtab): Make "b" const.
7198 (find_symbol_at_address): Likewise.
7199 (search_symbols): Likewise.
7200 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7201 (dw2_debug_names_lookup_symbol): Likewise.
7202 (dw2_map_matching_symbols): Update.
7203 * p-valprint.c (pascal_val_print): Remove "block".
7204 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7205 (aux_add_nonlocal_symbols): Make "block" const.
7206 (resolve_subexp): Remove cast.
7207 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7208 const.
7209 (iterate_over_file_blocks): Likewise.
7210 * f-exp.y (%union) <bval>: Remove.
7211 * coffread.c (patch_opaque_types): Make "b" const.
7212 * spu-tdep.c (spu_catch_start): Make "block" const.
7213 * c-valprint.c (print_unpacked_pointer): Remove "block".
7214 * symmisc.c (dump_symtab_1): Make "b" const.
7215 (block_depth): Make "block" const.
7216 * d-exp.y (%union) <bval>: Remove.
7217 * cp-support.h (cp_lookup_rtti_type): Update.
7218 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7219 * psymtab.c (psym_lookup_symbol): Make "block" const.
7220 (maintenance_check_psymtabs): Make "b" const.
7221 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7222 (enumerate_locals, enumerate_args): Update.
7223 * python/py-symtab.c (stpy_global_block): Make "block" const.
7224 (stpy_static_block): Likewise.
7225 * inline-frame.c (block_starting_point_at): Make "new_block"
7226 const.
7227 * block.c (find_block_in_blockvector): Make return type const.
7228 (blockvector_for_pc_sect): Make "b" const.
7229 (find_block_in_blockvector): Make "b" const.
7230
7ad417dd
TT
72312019-03-23 Tom Tromey <tom@tromey.com>
7232
7233 * varobj.c (varobj_create): Update.
7234 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7235 * printcmd.c (display_command, do_one_display): Don't reset
7236 innermost_block.
7237 * parser-defs.h (enum innermost_block_tracker_type): Move to
7238 expression.h.
7239 (innermost_block): Update comment.
7240 * parse.c (parse_exp_1): Add tracker_types parameter.
7241 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7242 tracker_types parameter. Reset innermost_block.
7243 (parse_exp_in_context): Remove.
7244 (parse_expression_for_completion): Update.
7245 * objfiles.c (~objfile): Don't reset expression_context_block or
7246 innermost_block.
7247 * expression.h (enum innermost_block_tracker_type): Move from
7248 parser-defs.h.
7249 (parse_exp_1): Add tracker_types parameter.
7250 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7251 reset innermost_block.
7252
b366c208
TT
72532019-03-23 Tom Tromey <tom@tromey.com>
7254
7255 * objfiles.h: Include bcache.h.
7256
9bb9b2f9
TT
72572019-03-23 Tom Tromey <tom@tromey.com>
7258
7259 * linespec.c (get_current_search_block): Use
7260 scoped_restore_current_language.
7261 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7262
59c28372
AH
72632019-03-22 Alan Hayward <alan.hayward@arm.com>
7264 Jiong Wang <jiong.wang@arm.com>
7265
7266 * aarch64-linux-tdep.c
7267 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7268 section.
7269 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7270
17e116a7
AH
72712019-03-22 Alan Hayward <alan.hayward@arm.com>
7272 Jiong Wang <jiong.wang@arm.com>
7273
7274 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7275 instructions.
7276 (aarch64_analyze_prologue_test): Add PACIASP test.
7277 (aarch64_prologue_prev_register): Unmask PC value.
7278
11e1b75f
AH
72792019-03-22 Alan Hayward <alan.hayward@arm.com>
7280 Jiong Wang <jiong.wang@arm.com>
7281
7282 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7283 (aarch64_dwarf2_prev_register): Unmask PC value.
7284 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7285 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7286 DW_CFA_AARCH64_negate_ra_state.
7287 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7288
34dcc7cf
AH
72892019-03-22 Alan Hayward <alan.hayward@arm.com>
7290 Jiong Wang <jiong.wang@arm.com>
7291
7292 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7293 registers.
7294 (aarch64_pseudo_register_name): Likewise.
7295 (aarch64_pseudo_register_type): Likewise.
7296 (aarch64_pseudo_register_reggroup_p): Likewise.
7297 (aarch64_gdbarch_init): Add pauth registers.
7298 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7299 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7300 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7301 (struct gdbarch_tdep): Add regnum for ra_state.
7302
1ef53e6b
AH
73032019-03-22 Alan Hayward <alan.hayward@arm.com>
7304 Jiong Wang <jiong.wang@arm.com>
7305
7306 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7307
76bed0fd
AH
73082019-03-22 Alan Hayward <alan.hayward@arm.com>
7309 Jiong Wang <jiong.wang@arm.com>
7310
7311 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7312 function.
7313 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7314 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7315 (aarch64_gdbarch_init): Add puth registers.
7316 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7317 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7318 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7319
ee4fbcfa
AH
73202019-03-22 Alan Hayward <alan.hayward@arm.com>
7321 Jiong Wang <jiong.wang@arm.com>
7322
7323 * aarch64-linux-nat.c
7324 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7325 * aarch64-linux-tdep.c
7326 (aarch64_linux_core_read_description): Likewise.
7327 (aarch64_linux_get_hwcap): New function.
7328 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7329 (aarch64_linux_get_hwcap): New declaration.
7330
6dc0ebde
AH
73312019-03-22 Alan Hayward <alan.hayward@arm.com>
7332 Jiong Wang <jiong.wang@arm.com>
7333
7334 * aarch64-linux-nat.c
7335 (aarch64_linux_nat_target::read_description): Add pauth param.
7336 * aarch64-linux-tdep.c
7337 (aarch64_linux_core_read_description): Likewise.
7338 * aarch64-tdep.c (struct target_desc): Add in pauth.
7339 (aarch64_read_description): Add pauth param.
7340 (aarch64_gdbarch_init): Likewise.
7341 * aarch64-tdep.h (aarch64_read_description): Likewise.
7342 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7343 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7344 * features/Makefile: Add new files.
7345 * features/aarch64-pauth.c: New file.
7346 * features/aarch64-pauth.xml: New file.
7347
595915c1
TT
73482019-03-20 Tom Tromey <tromey@adacore.com>
7349
7350 * infrun.c (handle_inferior_event): Rename from
7351 handle_inferior_event_1. Create a scoped_value_mark.
7352 (handle_inferior_event): Remove.
7353
4c7d57e7
TT
73542019-03-19 Tom Tromey <tromey@adacore.com>
7355
7356 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7357 * infrun.h (print_stop_event): Add "displays" parameter.
7358 * infrun.c (print_stop_event): Add "displays" parameter.
7359
cb246234
PA
73602019-03-19 Pedro Alves <palves@redhat.com>
7361
7362 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7363 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7364 to -1. Fix TABs vs spaces.
7365 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7366 * tui/tui-out.h (tui_ui_out) Add intro comments.
7367 <m_line, m_start_of_line>: In-class initialize, and add describing
7368 comment.
7369
3a0e45b2
AH
73702019-03-18 Alan Hayward <alan.hayward@arm.com>
7371
7372 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7373 variable names.
7374 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7375
5371b850
PA
73762019-03-18 Pedro Alves <palves@redhat.com>
7377 Eli Zaretskii <eliz@gnu.org>
7378
7379 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7380 m_line and m_start_of_line.
7381
b17c4cd0
EZ
73822019-03-18 Eli Zaretskii <eliz@gnu.org>
7383
7384 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7385 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7386 it returns a newline. This fixes a regression in TU mode, whereby
7387 the next line is output on the same screen line as the user input.
7388
4bd56d18
TT
73892019-03-18 Tom Tromey <tromey@adacore.com>
7390
7391 * minsyms.c (minimal_symbol_reader::install): Remove call to
7392 obstack_blank.
7393
55c10aca
PA
73942019-03-18 Pedro Alves <palves@redhat.com>
7395
7396 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7397 New globals.
7398 (apply_style): New, factored out from ...
7399 (apply_ansi_escape): ... this. Handle reverse video mode.
7400 (tui_set_reverse_mode): New function.
7401 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7402 * tui/tui-winsource.c (tui_show_source_line): Use
7403 tui_set_reverse_mode instead of setting A_STANDOUT.
7404 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7405 New setter methods.
7406
647bb750
HD
74072019-03-18 Hannes Domani <ssbssa@yahoo.de>
7408
7409 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7410 Handle tabs.
7411
bff8c71f
TT
74122019-03-18 Tom Tromey <tromey@adacore.com>
7413
7414 * ada-lang.c (empty_array): Add "high" parameter.
7415 (ada_evaluate_subexp): Update.
7416
58785d98
ST
74172019-03-17 Sergei Trofimovich <siarheit@google.com>
7418
7419 * unittests/string_view-selftests.c: Define
7420 _initialize_string_view_selftests unconditionally.
7421
d4cbef22
ВМ
74222019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7423
7424 PR gdb/24350
7425 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7426
fce4c071
ВМ
74272019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7428
7429 PR gdb/24351
7430 * windows-nat.c (display_selector): Fix format specifiers.
7431
f7f0a123
EZ
74322019-03-17 Eli Zaretskii <eliz@gnu.org>
7433
7434 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7435 tui_refill_source_window instead of tui_refresh_win, to update the
7436 current execution line. This fixes redisplay of the current line
7437 when stepping through the code with "next" or "step".
7438
ab42892f
EZ
74392019-03-16 Eli Zaretskii <eliz@gnu.org>
7440
7441 * source-cache.c (source_cache::get_source_lines): Call
7442 find_source_lines to initialize s->nlines. This fixes vertical
7443 scrolling of TUI source window when the DOWN arrow is pressed.
7444
8d8c087f
PW
74452019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7446
7447 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7448 linux-thread-db.c (_initialize_thread_db): Likewise.
7449
798e1c30
EZ
74502019-03-16 Eli Zaretskii <eliz@gnu.org>
7451
7452 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7453 wclrtoeol in tui_show_source_line". This reverts changes made in
7454 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7455
eefba3da
TT
74562019-03-15 Tom Tromey <tom@tromey.com>
7457
7458 * symtab.h (struct minimal_symbol): Derive from
7459 general_symbol_info.
7460 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7461 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7462 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7463 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7464 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7465 (MSYMBOL_SEARCH_NAME): Update.
7466 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7467 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7468 * minsyms.c (minimal_symbol_reader::record_full): Update.
7469
0de2420c
TT
74702019-03-15 Tom Tromey <tom@tromey.com>
7471
7472 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7473
042d75e4
TT
74742019-03-15 Tom Tromey <tom@tromey.com>
7475
7476 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7477 unique_xmalloc_ptr.
7478 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7479 Update.
7480 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7481 (build_minimal_symbol_hash_tables)
7482 (minimal_symbol_reader::install): Update.
7483
db92718b
TT
74842019-03-15 Tom Tromey <tom@tromey.com>
7485
7486 * symtab.c (create_demangled_names_hash): Update.
7487 (symbol_set_names): Update.
7488 * objfiles.h (struct objfile_per_bfd_storage)
7489 <demangled_names_hash>: Now an htab_up.
7490 * objfiles.c (objfile_per_bfd_storage): Simplify.
7491
d6797f46
TT
74922019-03-15 Tom Tromey <tom@tromey.com>
7493
7494 * objfiles.h (struct objfile_per_bfd_storage): Declare
7495 destructor.
7496 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7497 New.
7498 (get_objfile_bfd_data): Use new. Don't initialize
7499 language_of_main.
7500 (free_objfile_per_bfd_storage): Remove.
7501 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7502
741d7538
TT
75032019-03-15 Tom Tromey <tom@tromey.com>
7504
7505 * symfile.c (reread_symbols): Update.
7506 * objfiles.c (objfile::objfile): Update.
7507 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7508 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7509 comment.
7510 (minimal_symbol_reader::install): Update.
7511 (terminate_minimal_symbol_table): Remove.
7512 * jit.c (jit_object_close_impl): Update.
7513
788c80d1
TT
75142019-03-15 Tom Tromey <tom@tromey.com>
7515
7516 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7517 initializations.
7518
1b7a07cb
TT
75192019-03-15 Tom Tromey <tom@tromey.com>
7520
7521 * objfiles.h (struct objfile_per_bfd_storage)
7522 <demangled_hash_languages>: Now a bitset.
7523 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7524 (lookup_minimal_symbol): Update.
7525
3db066bc
TT
75262019-03-15 Tom Tromey <tom@tromey.com>
7527
7528 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7529 Don't return the symbol.
7530 * coffread.c (record_minimal_symbol): Use record_full.
7531
3fff2c37
EZ
75322019-03-14 Eli Zaretskii <eliz@gnu.org>
7533
7534 The MS-Windows port of ncurses fails to switch to a color pair if
7535 one or both of the colors are the implicit default colors. This
7536 change records the default colors when TUI is initialized, and
7537 then specifies them explicitly when a color pair uses the default
7538 colors. This allows color styling in TUI mode on MS-Windows.
7539
7540 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7541 ncurses_norm_attr.
7542 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7543 colors in ncurses_norm_attr.
7544 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7545 "none", replace it with the default color recorded in
7546 ncurses_norm_attr.
7547
3b336828
TT
75482019-03-14 Tom Tromey <tromey@adacore.com>
7549
7550 * source-cache.h (class source_cache) <get_source_lines>: Return
7551 std::string.
7552 * source-cache.c (source_cache::extract_lines): Handle case where
7553 first_pos==npos. Return std::string.
7554 (source_cache::get_source_lines): Update.
7555
d085f989
TT
75562019-03-14 Tom Tromey <tromey@adacore.com>
7557
7558 * NEWS: Add item for "style sources" commands.
7559 * source-cache.c (source_cache::get_source_lines): Check
7560 source_styling.
7561 * cli/cli-style.c (source_styling): New global.
7562 (_initialize_cli_style): Add "style sources" commands.
7563 (show_style_sources): New function.
7564 * cli/cli-style.h (source_styling): Declare.
7565
6f11e682
TT
75662019-03-14 Pedro Alves <palves@redhat.com>
7567 Tom Tromey <tromey@adacore.com>
7568
7569 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7570 * tui/tui-winsource.c (tui_refill_source_window): New function,
7571 from...
7572 (tui_horizontal_source_scroll): ... here. Move some logic.
7573 * cli/cli-style.c (set_style_enabled): Notify new observable.
7574 * tui/tui-hooks.c (tui_redisplay_source): New function.
7575 (tui_attach_detach_observers): Attach or detach
7576 tui_redisplay_source.
7577 * observable.h (source_styling_changed): New observable.
7578 * observable.c: Define source_styling_changed observable.
7579
a068643d
TT
75802019-03-13 Tom Tromey <tromey@adacore.com>
7581
7582 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7583 (i386_gnu_nat_target::store_registers): Update.
7584 * target-debug.h (target_debug_print_std_string): New macro.
7585 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7586 * windows-tdep.c (display_one_tib): Update.
7587 * tui/tui-stack.c (tui_make_status_line): Update.
7588 * top.c (print_inferior_quit_action): Update.
7589 * thread.c (thr_try_catch_cmd): Update.
7590 (add_thread_with_info): Update.
7591 (thread_target_id_str): Update.
7592 (thr_try_catch_cmd): Update.
7593 (thread_command): Update.
7594 (thread_find_command): Update.
7595 * record-btrace.c (record_btrace_target::info_record)
7596 (record_btrace_resume_thread, record_btrace_target::resume)
7597 (record_btrace_cancel_resume, record_btrace_step_thread)
7598 (record_btrace_target::wait, record_btrace_target::wait)
7599 (record_btrace_target::wait, record_btrace_target::stop): Update.
7600 * progspace.c (print_program_space): Update.
7601 * process-stratum-target.c
7602 (process_stratum_target::thread_address_space): Update.
7603 * linux-fork.c (linux_fork_mourn_inferior)
7604 (detach_checkpoint_command, info_checkpoints_command)
7605 (linux_fork_context): Update.
7606 (linux_fork_detach): Update.
7607 (class scoped_switch_fork_info): Update.
7608 (delete_checkpoint_command): Update.
7609 * infrun.c (follow_fork_inferior): Update.
7610 (follow_fork_inferior): Update.
7611 (proceed_after_vfork_done): Update.
7612 (handle_vfork_child_exec_or_exit): Update.
7613 (follow_exec): Update.
7614 (displaced_step_prepare_throw): Update.
7615 (displaced_step_restore): Update.
7616 (start_step_over): Update.
7617 (resume_1): Update.
7618 (clear_proceed_status_thread): Update.
7619 (proceed): Update.
7620 (print_target_wait_results): Update.
7621 (do_target_wait): Update.
7622 (context_switch): Update.
7623 (stop_all_threads): Update.
7624 (restart_threads): Update.
7625 (finish_step_over): Update.
7626 (handle_signal_stop): Update.
7627 (switch_back_to_stepped_thread): Update.
7628 (keep_going_pass_signal): Update.
7629 (print_exited_reason): Update.
7630 (normal_stop): Update.
7631 * inferior.c (inferior_pid_to_str): Change return type.
7632 (print_selected_inferior): Update.
7633 (add_inferior): Update.
7634 (detach_inferior): Update.
7635 * dummy-frame.c (fprint_dummy_frames): Update.
7636 * dcache.c (dcache_info_1): Update.
7637 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7638 (btrace_fetch, btrace_clear): Update.
7639 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7640 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7641 type.
7642 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7643 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7644 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7645 * gdbarch.c, gdbarch.h: Rebuild.
7646 * gdbarch.sh (core_pid_to_str): Change return type.
7647 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7648 return type.
7649 (windows_nat_target::pid_to_str): Change return type.
7650 (windows_delete_thread): Update.
7651 (windows_nat_target::attach): Update.
7652 (windows_nat_target::files_info): Update.
7653 * target-delegates.c: Rebuild.
7654 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7655 return type.
7656 (sol_thread_target::pid_to_str): Change return type.
7657 * remote.c (class remote_target) <pid_to_str>: Change return
7658 type.
7659 (remote_target::pid_to_str): Change return type.
7660 (extended_remote_target::attach, remote_target::remote_stop_ns)
7661 (remote_target::remote_notif_remove_queued_reply)
7662 (remote_target::push_stop_reply, remote_target::disable_btrace):
7663 Update.
7664 (extended_remote_target::attach): Update.
7665 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7666 type.
7667 (gdbsim_target::pid_to_str): Change return type.
7668 * ravenscar-thread.c (struct ravenscar_thread_target)
7669 <pid_to_str>: Change return type.
7670 (ravenscar_thread_target::pid_to_str): Change return type.
7671 * procfs.c (class procfs_target) <pid_to_str>: Change return
7672 type.
7673 (procfs_target::pid_to_str): Change return type.
7674 (procfs_target::attach): Update.
7675 (procfs_target::detach): Update.
7676 (procfs_target::fetch_registers): Update.
7677 (procfs_target::store_registers): Update.
7678 (procfs_target::wait): Update.
7679 (procfs_target::files_info): Update.
7680 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7681 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7682 return type.
7683 (nto_procfs_target::pid_to_str): Change return type.
7684 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7685 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7686 return type.
7687 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7688 (exit_lwp): Update.
7689 (attach_proc_task_lwp_callback, get_detach_signal)
7690 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7691 (linux_nat_target::resume, wait_lwp, stop_callback)
7692 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7693 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7694 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7695 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7696 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7697 type.
7698 (inf_ptrace_target::attach): Update.
7699 (inf_ptrace_target::files_info): Update.
7700 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7701 type.
7702 (go32_nat_target::pid_to_str): Change return type.
7703 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7704 (gnu_nat_target::wait): Update.
7705 (gnu_nat_target::wait): Update.
7706 (gnu_nat_target::resume): Update.
7707 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7708 (fbsd_nat_target::wait): Update.
7709 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7710 type.
7711 (darwin_nat_target::attach): Update.
7712 * corelow.c (class core_target) <pid_to_str>: Change return type.
7713 (core_target::pid_to_str): Change return type.
7714 * target.c (normal_pid_to_str): Change return type.
7715 (default_pid_to_str): Likewise.
7716 (target_pid_to_str): Change return type.
7717 (target_translate_tls_address): Update.
7718 (target_announce_detach): Update.
7719 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7720 return type.
7721 (bsd_uthread_target::pid_to_str): Change return type.
7722 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7723 type.
7724 (bsd_kvm_target::pid_to_str): Change return type.
7725 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7726 return type.
7727 (aix_thread_target::pid_to_str): Change return type.
7728 * target.h (struct target_ops) <pid_to_str>: Change return type.
7729 (target_pid_to_str, normal_pid_to_str): Likewise.
7730 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7731 type.
7732 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7733 type.
7734 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7735 return type.
7736 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7737 type.
7738 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7739 type.
7740 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7741 return type.
7742
b4be1b06
SM
77432019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7744
7745 * NEWS: Mention that the new default MI version is 3. Mention
7746 changes to the output of commands and events that deal with
7747 multi-location breakpoints.
7748 * breakpoint.c: Include "mi/mi-out.h".
7749 (print_one_breakpoint): Change output syntax if using MI version
7750 >= 3.
7751 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7752 New.
7753 (mi_multi_location_breakpoint_output_fixed): New.
7754 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7755 (mi_cmd_fix_multi_location_breakpoint_output): New.
7756 (mi_multi_location_breakpoint_output_fixed): New.
7757 * mi/mi-cmds.c (mi_cmds): Register command
7758 -fix-multi-location-breakpoint-output.
7759 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7760 interpreter "mi".
7761
8e5e5494
SM
77622019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7763
7764 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7765 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7766 instantiate mi_ui_out based on interpreter name.
7767 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7768 * mi/mi-main.c (mi_load_progress): Likewise.
7769
197df35e
JB
77702019-03-12 John Baldwin <jhb@FreeBSD.org>
7771
7772 * NEWS: Combine separate "New targets" sections for 8.3.
7773
8399425f
JB
77742019-03-12 John Baldwin <jhb@FreeBSD.org>
7775
7776 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7777 (ppcfbsd_init_abi): Install gdbarch
7778 "fetch_tls_load_module_address" and "get_thread_local_address"
7779 methods.
7780
b0f87ed0
JB
77812019-03-12 John Baldwin <jhb@FreeBSD.org>
7782
7783 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7784 (riscv_fbsd_init_abi): Install gdbarch
7785 "fetch_tls_load_module_address" and "get_thread_local_address"
7786 methods.
7787
ce25aa57
JB
77882019-03-12 John Baldwin <jhb@FreeBSD.org>
7789
7790 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7791 (i386fbsd_init_abi): Install gdbarch
7792 "fetch_tls_load_module_address" and "get_thread_local_address"
7793 methods.
7794
f5424cfa
JB
77952019-03-12 John Baldwin <jhb@FreeBSD.org>
7796
7797 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7798 (amd64fbsd_init_abi): Install gdbarch
7799 "fetch_tls_load_module_address" and "get_thread_local_address"
7800 methods.
7801
945f3901
JB
78022019-03-12 John Baldwin <jhb@FreeBSD.org>
7803
7804 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7805 (struct fbsd_pspace_data): New type.
7806 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7807 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7808 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7809 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7810 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7811
ef0bd204
JB
78122019-03-12 John Baldwin <jhb@FreeBSD.org>
7813
7814 * gdbtypes.c (lookup_struct_elt): New function.
7815 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7816 * gdbtypes.h (struct struct_elt): New type.
7817 (lookup_struct_elt): New prototype.
7818
36c53a02
JB
78192019-03-12 John Baldwin <jhb@FreeBSD.org>
7820
7821 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7822 remove disabled code block.
7823
6e056c81
JB
78242019-03-12 John Baldwin <jhb@FreeBSD.org>
7825
7826 * gdbarch.sh (get_thread_local_address): New method.
7827 * gdbarch.h, gdbarch.c: Regenerate.
7828 * target.c (target_translate_tls_address): Use
7829 gdbarch_get_thread_local_address if present instead of
7830 target::get_thread_local_address.
7831
cd250a18
JB
78322019-03-12 John Baldwin <jhb@FreeBSD.org>
7833
7834 * target.h (target::get_thread_local_address): Update comment.
7835
df22c1e5
JB
78362019-03-12 John Baldwin <jhb@FreeBSD.org>
7837
7838 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7839 objfile->separate_debug_objfile_backlink if not NULL.
7840
dd6876c9
JB
78412019-03-12 John Baldwin <jhb@FreeBSD.org>
7842
7843 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7844 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7845 (amd64bsd_store_inferior_registers): Likewise.
7846 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7847 Enable segment base registers.
7848 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7849 PT_GETFSBASE and PT_GETGSBASE.
7850 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7851 PT_SETGSBASE.
7852 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7853 segment base registers.
7854 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7855
1163a4b7
JB
78562019-03-12 John Baldwin <jhb@FreeBSD.org>
7857
7858 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7859 Update calls to i386_target_description to add 'segments'
7860 parameter.
7861 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7862 add segment base registers.
7863 * arch/i386.c (i386_create_target_description): Add 'segments'
7864 parameter to enable segment base registers.
7865 * arch/i386.h (i386_create_target_description): Likewise.
7866 * features/i386/32bit-segments.xml: New file.
7867 * features/i386/32bit-segments.c: Generate.
7868 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7869 call to i386_target_description to add 'segments' parameter.
7870 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7871 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7872 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7873 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
7874 if feature is present.
7875 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
7876 Add 'segments' parameter to call to i386_target_description.
7877 (i386_target_description): Add 'segments' parameter to enable
7878 segment base registers.
7879 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
7880 to call to i386_target_description.
7881 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
7882 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
7883 Define I386_NUM_REGS.
7884 (i386_target_description): Add 'segments' parameter to enable
7885 segment base registers.
7886
3a350822
EZ
78872019-03-12 Eli Zaretskii <eliz@gnu.org>
7888
7889 PR/24325
7890 * source-cache.c: #undef open and close, to avoid unresolved
7891 externals during linking.
7892
ffdd69cf
TT
78932019-03-12 Tom Tromey <tromey@adacore.com>
7894
7895 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
7896 const. Add initializers.
7897 (_initialize_remote): Don't initialize ptid globals.
7898
ec148c57
PA
78992019-03-12 Pedro Alves <palves@redhat.com>
7900
7901 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
7902
32764270
PA
79032019-03-12 Pedro Alves <palves@redhat.com>
7904
7905 * cp-name-parser.y (main): Remove unused 'len' variable.
7906
17547186
TT
79072019-03-12 Tom Tromey <tromey@adacore.com>
7908
7909 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
7910 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
7911
d3a70e03
TT
79122019-03-12 Tom Tromey <tromey@adacore.com>
7913
7914 * linux-nat.c (iterate_over_lwps): Update.
7915 (stop_callback): Remove parameter.
7916 (stop_wait_callback, detach_callback, resume_set_callback)
7917 (select_singlestep_lwp_callback, set_ignore_sigint)
7918 (status_callback, resumed_callback, resume_clear_callback)
7919 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
7920 data parameter.
7921 (linux_nat_target::detach, linux_nat_target::resume)
7922 (linux_stop_and_wait_all_lwps, select_event_lwp)
7923 (linux_nat_filter_event, linux_nat_wait_1)
7924 (linux_nat_target::kill, linux_nat_target::stop)
7925 (linux_nat_target::stop): Update.
7926 (linux_nat_resume_callback): Change type.
7927 (resume_stopped_resumed_lwps, count_events_callback)
7928 (select_event_lwp_callback): Likewise.
7929 (linux_stop_lwp, linux_nat_stop_lwp): Update.
7930 * arm-linux-nat.c (struct update_registers_data): Remove.
7931 (update_registers_callback): Change type.
7932 (arm_linux_insert_hw_breakpoint1): Update.
7933 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
7934 parameter.
7935 (x86_linux_dr_set_addr): Update.
7936 (x86_linux_dr_set_control): Update.
7937 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
7938 (iterate_over_lwps): Use gdb::function_view.
7939 * nat/aarch64-linux-hw-point.c (struct
7940 aarch64_dr_update_callback_param): Remove.
7941 (debug_reg_change_callback): Change type.
7942 (aarch64_notify_debug_reg_change): Update.
7943 * s390-linux-nat.c (s390_refresh_per_info): Update.
7944
82cb27ff
TT
79452019-03-11 Tom Tromey <tromey@adacore.com>
7946
7947 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
7948 redundant assignment to "this_cu".
7949
568c0683
SM
79502019-03-08 Simon Marchi <simon.marchi@efficios.com>
7951
7952 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
7953
f09ce22d
SM
79542019-03-08 Simon Marchi <simon.marchi@efficios.com>
7955
7956 * gdbtypes.c (rank_one_type_parm_set): New function extracted
7957 from...
7958 (rank_one_type): ... this.
7959
595f96a9
SM
79602019-03-08 Simon Marchi <simon.marchi@efficios.com>
7961
7962 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
7963 from...
7964 (rank_one_type): ... this.
7965
2598a94b
SM
79662019-03-08 Simon Marchi <simon.marchi@efficios.com>
7967
7968 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
7969 from...
7970 (rank_one_type): ... this.
7971
7f17b20d
SM
79722019-03-08 Simon Marchi <simon.marchi@efficios.com>
7973
7974 * gdbtypes.c (rank_one_type_parm_float): New function extracted
7975 from...
7976 (rank_one_type): ... this.
7977
2c509035
SM
79782019-03-08 Simon Marchi <simon.marchi@efficios.com>
7979
7980 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
7981 from...
7982 (rank_one_type): ... this.
7983
0dd322dc
SM
79842019-03-08 Simon Marchi <simon.marchi@efficios.com>
7985
7986 * gdbtypes.c (rank_one_type_parm_range): New function extracted
7987 from...
7988 (rank_one_type): ... this.
7989
41ea4728
SM
79902019-03-08 Simon Marchi <simon.marchi@efficios.com>
7991
7992 * gdbtypes.c (rank_one_type_parm_char): New function extracted
7993 from...
7994 (rank_one_type): ... this.
7995
793cd1d2
SM
79962019-03-08 Simon Marchi <simon.marchi@efficios.com>
7997
7998 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
7999 from...
8000 (rank_one_type): ... this.
8001
34910087
SM
80022019-03-08 Simon Marchi <simon.marchi@efficios.com>
8003
8004 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8005 from...
8006 (rank_one_type): ... this.
8007
f1f832d6
SM
80082019-03-08 Simon Marchi <simon.marchi@efficios.com>
8009
8010 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8011 from...
8012 (rank_one_type): ... this.
8013
b9f4512f
SM
80142019-03-08 Simon Marchi <simon.marchi@efficios.com>
8015
8016 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8017 from...
8018 (rank_one_type): ... this.
8019
9293fc63
SM
80202019-03-08 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8023 from...
8024 (rank_one_type): ... this.
8025
e3abbe7e
PW
80262019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8027
8028 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8029 inferior-events' shows the example events.
8030
e4adb939
EZ
80312019-03-08 Eli Zaretskii <eliz@gnu.org>
8032
8033 Support styling on native MS-Windows console
8034
8035 PR/24315
8036 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8037 on MS-Windows if $TERM is not defined.
8038
8039 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8040
8041 * posix-hdep.c (gdb_console_fputs):
8042 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8043 functions.
8044 * ui-file.h (gdb_console_fputs): Add prototype.
8045
8046 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8047 back to fputs only if the former returns zero.
8048
25629dfd
TT
80492019-03-07 Tom Tromey <tom@tromey.com>
8050
8051 * symmisc.c (print_symbol_bcache_statistics): Update.
8052 (print_objfile_statistics): Update.
8053 * symfile.c (allocate_symtab): Update.
8054 * stabsread.c: Don't include bcache.h.
8055 * psymtab.h (struct psymbol_bcache): Don't declare.
8056 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8057 (psymbol_bcache_init, psymbol_bcache_free)
8058 (psymbol_bcache_get_bcache): Don't declare.
8059 * psymtab.c (struct psymbol_bcache): Remove.
8060 (psymtab_storage::psymtab_storage): Update.
8061 (psymtab_storage::~psymtab_storage): Update.
8062 (psymbol_bcache_init, psymbol_bcache_free)
8063 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8064 (add_psymbol_to_bcache): Update.
8065 (allocate_psymtab): Update.
8066 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8067 macro_cache>: No longer pointers.
8068 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8069 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8070 * macrotab.c (macro_bcache): Update.
8071 * macroexp.c: Don't include bcache.h.
8072 * gdbtypes.c (check_types_worklist): Update.
8073 (types_deeply_equal): Remove TRY/CATCH. Update.
8074 * elfread.c (elf_symtab_read): Update.
8075 * dwarf2read.c: Don't include bcache.h.
8076 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8077 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8078 (print_bcache_statistics, bcache_memory_used): Don't declare.
8079 (struct bcache): Move from bcache.c. Add constructor, destructor,
8080 methods. Rename all data members.
8081 * bcache.c (struct bcache): Move to bcache.h.
8082 (bcache::expand_hash_table): Rename from expand_hash_table.
8083 (bcache): Remove.
8084 (bcache::insert): Rename from bcache_full.
8085 (bcache::compare): Rename from bcache_compare.
8086 (bcache_xmalloc): Remove.
8087 (bcache::~bcache): Rename from bcache_xfree.
8088 (bcache::print_statistics): Rename from print_bcache_statistics.
8089 (bcache::memory_used): Rename from bcache_memory_used.
8090
fe726667
PA
80912019-03-07 Pedro Alves <palves@redhat.com>
8092
8093 * infrun.c (normal_stop): Also check for
8094 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8095
7584bb30
AB
80962019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8097
8098 * f-lang.c (value_from_host_double): Moved to...
8099 * value.c (value_from_host_double): ...here.
8100 * value.h (value_from_host_double): Declare.
8101 * guile/scm-math.c (vlscm_convert_typed_number): Use
8102 value_from_host_double.
8103 (vlscm_convert_number): Likewise.
8104 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8105 * python/py-value.c (convert_value_from_python): Likewise.
8106
a7b1986e
TT
81072019-03-06 Tom Tromey <tom@tromey.com>
8108
8109 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8110
0ccf4211
TT
81112019-03-06 Tom Tromey <tom@tromey.com>
8112
8113 * utils.h (free_current_contents): Don't declare.
8114 * utils.c (free_current_contents): Remove.
8115
fe7b42e5
TT
81162019-03-06 Tom Tromey <tom@tromey.com>
8117
8118 * top.c (quit_force): Update.
8119 * main.c (captured_command_loop): Update.
8120 * common/new-op.c (operator new): Update.
8121 * common/common-exceptions.c (struct catcher)
8122 <save_cleanup_chain>: Remove member.
8123 (exceptions_state_mc_init): Update.
8124 (exception_try_scope_entry): Return nullptr.
8125 (exception_try_scope_exit, exception_rethrow)
8126 (throw_exception_sjlj, throw_exception_cxx): Update.
8127 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8128 (all_cleanups, do_cleanups, discard_cleanups)
8129 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8130 (restore_cleanups, restore_final_cleanups): Don't declare.
8131 (do_final_cleanups): Remove parameter.
8132 * common/cleanups.c (cleanup_chain, make_cleanup)
8133 (make_cleanup_dtor, all_cleanups, do_cleanups)
8134 (discard_my_cleanups, discard_cleanups)
8135 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8136 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8137 (null_cleanup): Remove.
8138 (do_final_cleanups): Remove parameter.
8139
c6321f19
TT
81402019-03-06 Tom Tromey <tom@tromey.com>
8141
8142 * remote.c (remote_target::remote_parse_stop_reply): Use
8143 unique_xmalloc_ptr.
8144
61b30099
TT
81452019-03-06 Tom Tromey <tom@tromey.com>
8146
8147 * stabsread.c (struct stabs_field_info): Rename from field_info.
8148 <list, fnlist>: Add initializers.
8149 <obstack>: New member.
8150 (read_member_functions, read_struct_fields, read_baseclasses):
8151 Allocate on obstack. Don't use cleanups.
8152 (read_one_struct_field, read_member_functions, read_struct_fields)
8153 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8154 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8155 (read_struct_type): Update.
8156
6cceac94
TT
81572019-03-06 Tom Tromey <tom@tromey.com>
8158
8159 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8160 * common/filestuff.h (make_cleanup_close): Don't declare.
8161 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8162 Remove.
8163
72412762
TT
81642019-03-06 Tom Tromey <tom@tromey.com>
8165
8166 * solib-aix.c: Use make_scope_exit.
8167
2b6ff1c0
TT
81682019-03-06 Tom Tromey <tom@tromey.com>
8169
8170 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8171 Use make_scope_exit.
8172
d01c5877
TT
81732019-03-06 Tom Tromey <tom@tromey.com>
8174
8175 * solib-svr4.c (disable_probes_interface): Remove parameter.
8176 (svr4_handle_solib_event): Use make_scope_exit.
8177
32603266
TT
81782019-03-06 Tom Tromey <tom@tromey.com>
8179
8180 * remote.c (struct stop_reply_deleter): Remove.
8181 (stop_reply_up): Update.
8182 (struct stop_reply): Derive from notif_event. Don't typedef.
8183 <regcache>: Now a std::vector.
8184 (stop_reply_xfree): Remove.
8185 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8186 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8187 (remote_target::discard_pending_stop_replies): Use delete.
8188 (remote_target::remote_parse_stop_reply): Update.
8189 (remote_target::process_stop_reply): Update.
8190 * remote-notif.h (struct notif_event): Add virtual destructor.
8191 Remove "dtr" member.
8192 (struct notif_client) <alloc_event>: Return a unique_ptr.
8193 (notif_event_xfree): Don't declare.
8194 (notif_event_up): New typedef.
8195 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8196 (notif_event_xfree, do_notif_event_xfree): Remove.
8197 (remote_notif_state_xfree): Update.
8198
9799571e
TT
81992019-03-06 Tom Tromey <tom@tromey.com>
8200
8201 * infrun.c (displaced_step_clear_cleanup): Now a
8202 forward_scope_exit type.
8203 (displaced_step_prepare_throw): Update.
8204 (displaced_step_fixup): Update.
8205
09e3c4ca
TT
82062019-03-06 Tom Tromey <tom@tromey.com>
8207
8208 * inferior.h (class inferior): Update comment.
8209 * gdbthread.h (class thread_info): Update comment.
8210
e2a03548
TT
82112019-03-06 Joel Brobecker <brobecker@adacore.com>
8212 Tom Tromey <tom@tromey.com>
8213
8214 * stabsread.h (struct stab_section_list): Remove.
8215 (coffstab_build_psymtabs): Update.
8216 * dbxread.c (symbuf_sections): Now a std::vector.
8217 (sect_idx): New global.
8218 (fill_symbuf): Update.
8219 (coffstab_build_psymtabs): Change type of stabsects parameter.
8220 Update.
8221 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8222 std::vector.
8223 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8224 (coff_locate_sections): Update.
8225 (coff_symfile_read): Remove cleanups. Update.
8226 (init_stringtab): Add storage parameter.
8227 (free_stringtab, free_stringtab_cleanup): Remove.
8228 (init_lineno): Add storage parameter.
8229 (free_linetab, free_linetab_cleanup): Remove.
8230
b7e60d85
PA
82312019-03-06 Pedro Alves <palves@redhat.com>
8232
8233 * linux-fork.c (fork_info::clobber_regs): Delete.
8234 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8235 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8236 comment. Adjust.
8237 (scoped_switch_fork_info::scoped_switch_fork_info)
8238 (checkpoint_command, linux_fork_context): Adjust
8239 fork_save_infrun_state calls.
8240
e52c971f
PA
82412019-03-06 Pedro Alves <palves@redhat.com>
8242
8243 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8244 (inf_has_multiple_threads): Return 'bool' and rewrite using
8245 inferior_info::threads().
8246
06974e6c
PA
82472019-03-06 Pedro Alves <palves@redhat.com>
8248
8249 * linux-fork.c: Include <list>.
8250 (fork_list): Now a std::list instance.
8251 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8252 (forks_exist_p, find_last_fork): Adjust.
8253 (new_fork): Delete.
8254 (one_fork_p): New.
8255 (add_fork): Adjust.
8256 (free_fork): Delete, folded into fork_info::~fork_info().
8257 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8258 Adjust.
8259 (init_fork_list): Delete.
8260 (linux_fork_killall, linux_fork_mourn_inferior)
8261 (linux_fork_detach, info_checkpoints_command): Adjust.
8262 (_initialize_linux_fork): No longer call init_fork_list.
8263
72f31aea
PA
82642019-03-06 Pedro Alves <palves@redhat.com>
8265
8266 * linux-fork.c (new_fork): New, split out of ...
8267 (add_fork): ... this. Return void. Move "first fork" special
8268 case from here, to ...
8269 (checkpoint_command): ... here.
8270 * linux-linux.h (add_fork): Return void.
8271
efbecbc1
AB
82722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8273
8274 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8275
0841c79a
AB
82762019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8277 Chris January <chris.january@arm.com>
8278 David Lecomber <david.lecomber@arm.com>
8279
8280 * f-exp.y: New token, UNOP_INTRINSIC.
8281 (exp): New pattern using UNOP_INTRINSIC token.
8282 (f77_keywords): Add 'abs' keyword.
8283 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8284 (value_from_host_double): New function.
8285 (evaluate_subexp_f): Support UNOP_ABS.
8286
4a270568
AB
82872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8288
8289 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8290 types.
8291
067630bd
AB
82922019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8293
8294 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8295 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8296 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8297
3be47f7a
AB
82982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8299
8300 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8301
4d00f5d8
AB
83022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8303 Chris January <chris.january@arm.com>
8304
8305 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8306 * f-exp.y: Define 'KIND' token.
8307 (exp): New pattern for KIND expressions.
8308 (ptype): Handle types with a kind extension.
8309 (direct_abs_decl): Extend to spot kind extensions.
8310 (f77_keywords): Add 'kind' to the list.
8311 (push_kind_type): New function.
8312 (convert_to_kind_type): New function.
8313 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8314 * parse.c (operator_length_standard): Likewise.
8315 * parser-defs.h (enum type_pieces): Add tp_kind.
8316 * std-operator.def: Add UNOP_KIND.
8317
e454224f
AB
83182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8319
8320 * f-exp.y (f_parse): Set yydebug.
8321
9dad4a58
AB
83222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8323
8324 * f-lang.c (evaluate_subexp_f): New function.
8325 (exp_descriptor_f): New global.
8326 (f_language_defn): Use exp_descriptor_f instead of
8327 exp_descriptor_standard.
8328
c8f91604
AB
83292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8330
8331 * f-exp.y (struct token): Add comments.
8332 (dot_ops): Remove uppercase versions and the end marker.
8333 (f77_keywords): Likewise.
8334 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8335 entries in the dot_ops array are case insensitive, and use
8336 strncasecmp to compare strings. Also some whitespace cleanup in
8337 this area. Similar for the f77_keywords array, except entries in
8338 this list might be case sensitive.
8339
dd9f2c76
AB
83402019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8341
8342 * f-exp.y (struct f77_boolean_val): Add comments.
8343 (boolean_values): Remove uppercase versions, and end marker.
8344 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8345 and use strncasecmp to achieve case insensitivity. Additionally,
8346 perform whitespace cleanup around this code.
8347
67a3048c
TT
83482019-03-06 Tom Tromey <tromey@adacore.com>
8349
8350 * remote-sim.c (gdbsim_target_open): Use result of
8351 gdb_argv::release.
8352
aa3cfbda
RB
83532019-03-06 Richard Bunt <richard.bunt@arm.com>
8354 Dirk Schubert <dirk.schubert@arm.com>
8355 Chris January <chris.january@arm.com>
8356
8357 * eval.c (evaluate_subexp_standard): Call Fortran argument
8358 wrapping logic.
8359 * f-lang.c (struct value): A value which can be passed into a
8360 Fortran function call.
8361 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8362 where appropriate.
8363 (struct type): Value ready for a Fortran function call.
8364 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8365 is needed.
8366 * f-lang.h (fortran_argument_convert): Declaration.
8367 (fortran_preserve_arg_pointer): Declaration.
8368 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8369
ea38e5df
TT
83702019-03-05 Tom Tromey <tromey@adacore.com>
8371
8372 * python/py-prettyprint.c (print_string_repr): Remove #if.
8373 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8374
06b5b831
TT
83752019-03-05 Tom Tromey <tromey@adacore.com>
8376
8377 * target.c (the_dummy_target): Move later. Change type to
8378 "dummy_target".
8379 (initialize_targets): Don't initialize the_dummy_target.
8380
edbd9e45
TT
83812019-03-05 Tom Tromey <tromey@adacore.com>
8382
8383 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8384 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8385
c119e040
TT
83862019-03-05 Tom Tromey <tromey@adacore.com>
8387
8388 * windows-nat.c (windows_nat_target::attach)
8389 (windows_nat_target::detach): Don't call gdb_flush.
8390 * valprint.c (generic_val_print, val_print, val_print_string):
8391 Don't call gdb_flush.
8392 * utils.c (defaulted_query): Don't call gdb_flush.
8393 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8394 * target.c (target_announce_detach): Don't call gdb_flush.
8395 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8396 * remote.c (extended_remote_target::attach): Don't call
8397 gdb_flush.
8398 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8399 * printcmd.c (do_examine): Don't call gdb_flush.
8400 (info_display_command): Don't call gdb_flush.
8401 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8402 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8403 * memattr.c (info_mem_command): Don't call gdb_flush.
8404 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8405 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8406 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8407 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8408 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8409 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8410 (gnu_nat_target::detach): Don't call gdb_flush.
8411 * f-valprint.c (f_val_print): Don't call gdb_flush.
8412 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8413 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8414 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8415 gdb_flush.
8416 * c-valprint.c (c_val_print): Don't call gdb_flush.
8417 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8418
895dafa6
TT
84192019-03-05 Tom Tromey <tromey@adacore.com>
8420
8421 * varobj.c (update_dynamic_varobj_children): Update.
8422 (install_default_visualizer): Use reset, not release.
8423 * value.c (set_internalvar): Update.
8424 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8425 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8426 ATTRIBUTE_UNUSED_RESULT.
8427
88a774b9
TT
84282019-03-05 Tom Tromey <tromey@adacore.com>
8429
8430 * remote.c (class scoped_remote_fd) <release>: Add
8431 ATTRIBUTE_UNUSED_RESULT.
8432
4e4a8b93
TT
84332019-03-05 Tom Tromey <tromey@adacore.com>
8434
8435 * macroexp.c (struct macro_buffer) <release>: Add
8436 ATTRIBUTE_UNUSED_RESULT.
8437
083eef1f
TT
84382019-03-05 Tom Tromey <tromey@adacore.com>
8439
8440 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8441 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8442 ATTRIBUTE_UNUSED_RESULT.
8443
3cabd438
TT
84442019-03-05 Tom Tromey <tromey@adacore.com>
8445
8446 * common/scoped_fd.h (class scoped_fd) <release>: Add
8447 ATTRIBUTE_UNUSED_RESULT.
8448
41e3300a
TT
84492019-03-05 Tom Tromey <tromey@adacore.com>
8450
8451 * parser-defs.h (struct parser_state) <release>: Add
8452 ATTRIBUTE_UNUSED_RESULT.
8453
18cb7c9f
TT
84542019-03-05 Tom Tromey <tromey@adacore.com>
8455
8456 * utils.h (class gdb_argv) <release>: Add
8457 ATTRIBUTE_UNUSED_RESULT.
8458 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8459
41fa577f
EZ
84602019-03-02 Eli Zaretskii <eliz@gnu.org>
8461
a6a4b2c6
EZ
8462 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8463 for-loop range, to avoid compiler warnings.
8464
8465 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8466 avoid compiler warnings about unused variables.
8467
742a7df5
EZ
8468 * NEWS: Mention end of support for native debugging on MS-Windows
8469 before XP.
8470
41fa577f
EZ
8471 PR gdb/24292
8472 * common/netstuff.c:
8473 * gdbserver/gdbreplay.c
8474 * gdbserver/remote-utils.c:
8475 * ser-tcp.c:
8476 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8477 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8478 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8479 'getaddrinfo' and 'freeaddrinfo' were not available before
8480 Windows XP, and mingw.org's MinGW headers by default define
8481 _WIN32_WINNT to 0x500.
8482
827f438f
GB
84832019-03-01 Gary Benson <gbenson@redhat.com>
8484
8485 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8486
92137da0
RO
84872019-02-28 Brian Vandenberg <phantall@gmail.com>
8488 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8489
8490 PR gdb/8527
8491 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8492 set_sigint_trap, clear_sigint_trap.
8493
799efbe8
PW
84942019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8495
8496 * target.c (target_detach): Clear the regcache and the
8497 frame cache.
8498
8ed25214
PA
84992019-02-27 Pedro Alves <palves@redhat.com>
8500
8501 * utils.c (set_screen_size): When we cap the height/width sizes,
8502 tweak the corresponding command variable to show "unlimited":
8503
23031e31
SJ
85042019-02-27 Saagar Jha <saagar@saagarjha.com>
8505 Pedro Alves <palves@redhat.com>
8506
8507 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8508 before calling rl_set_screen_size.
8509
6c28e44a
TT
85102019-02-27 Tom Tromey <tromey@adacore.com>
8511
8512 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8513 define.
8514 * python/py-value.c: Remove Python 2.4 workaround.
8515 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8516 workaround.
8517 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8518 Python 2.4 workaround.
8519 * python/python-internal.h: Remove Python 2.4 comment.
8520 (Py_ssize_t): Don't define.
8521 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8522 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8523 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8524 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8525 * python/python.c (do_start_initialization): Remove Python 2.4
8526 workaround.
8527 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8528 (print_children): Remove Python 2.4 workaround.
8529 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8530 workaround.
8531 (CHARBUFFERPROC_NAME): Remove.
8532 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8533 Python 2.4 workaround.
8534
2c3fc25d 85352019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8536
2c3fc25d
KB
8537 * NEWS: Note minimum Python version.
8538
6ca62222
KB
85392019-02-27 Kevin Buettner <kevinb@redhat.com>
8540
8541 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8542 code from these functions. Remove corresponding ifdefs. Use
8543 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8544 Remove gotos and target of gotos.
8545 (infpy_search_memory): Likewise.
8546
f4bc7d2c
AB
85472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8548
8549 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8550 (hppa_gdbarch_init): Don't register deleted functions with
8551 gdbarch.
8552
9734a586
AB
85532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8554
8555 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8556 (h8300_unwind_sp): Delete.
8557 (h8300_dummy_id): Delete.
8558 (h8300_gdbarch_init): Don't register deleted functions with
8559 gdbarch.
8560
68b867f3
AB
85612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8562
8563 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8564 (ft32_unwind_pc): Delete.
8565 (ft32_unwind_sp): Delete.
8566 (ft32_gdbarch_init): Don't register deleted functions with
8567 gdbarch.
8568
2fbe7ad0
AB
85692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8570
8571 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8572 (frv_unwind_pc): Delete.
8573 (frv_unwind_sp): Delete.
8574 (frv_gdbarch_init): Don't register deleted functions with
8575 gdbarch.
8576
76055cbe
AB
85772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8578
8579 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8580 (riscv_unwind_pc): Delete.
8581 (riscv_unwind_sp): Delete.
8582 (riscv_gdbarch_init): Don't register deleted functions with
8583 gdbarch.
8584
4133e5a1
AB
85852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8586
8587 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8588 (csky_unwind_pc): Delete.
8589 (csky_unwind_sp): Delete.
8590 (csky_gdbarch_init): Don't register deleted functions with
8591 gdbarch.
8592
8010f576
AB
85932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8594
8595 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8596 (cris_unwind_pc): Delete.
8597 (cris_unwind_sp): Delete.
8598 (cris_gdbarch_init): Don't register deleted functions with
8599 gdbarch.
8600
b56bf084
AB
86012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8602
8603 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8604 (bfin_unwind_pc): Delete.
8605 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8606
a19a650f
AB
86072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8608
8609 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8610 (arm_unwind_pc): Delete.
8611 (arm_unwind_sp): Delete.
8612 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8613
f8278c3c
AB
86142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8615
8616 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8617 (arc_unwind_pc): Delete.
8618 (arc_unwind_sp): Delete.
8619 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8620
480e46cf
AB
86212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8624 (alpha_unwind_pc): Delete.
8625 (alpha_gdbarch_init): Don't register deleted functions with
8626 gdbarch.
8627
7a995095
AB
86282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8629
8630 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8631 (aarch64_unwind_pc): Delete.
8632 (aarch64_unwind_sp): Delete.
8633 (aarch64_gdbarch_init): Don't register deleted functions with
8634 gdbarch.
8635
bf9a735e
AB
86362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8637
8638 * gdbtypes.c (type_align): Don't consider static members when
8639 computing structure alignment.
8640
5561fc30
AB
86412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8642
8643 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8644 return 0 for other types.
8645 * arch-utils.c (default_type_align): Always return 0.
8646 * gdbarch.h: Regenerate.
8647 * gdbarch.sh (type_align): Extend comment.
8648 * gdbtypes.c (type_align): Add additional comments, always call
8649 gdbarch_type_align before applying the default rules.
8650 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8651 generic code will then apply a suitable default.
8652 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8653 types, return 0 for other types.
8654
9335e75a
JB
86552019-02-27 Joel Brobecker <brobecker@adacore.com>
8656
8657 * NEWS: Create a new section for the next release branch.
8658 Rename the section of the current branch, now that it has
8659 been cut.
8660
3d34d8de
JB
86612019-02-27 Joel Brobecker <brobecker@adacore.com>
8662
8663 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8664 * version.in: Bump version to 8.3.50.DATE-git.
8665
143420fb
SM
86662019-02-26 Simon Marchi <simon.marchi@efficios.com>
8667
8668 * aix-thread.c (ptid_cmp): Remove unused variable.
8669 (get_signaled_thread): Likewise.
8670 (store_regs_user_thread): Likewise.
8671 (store_regs_kernel_thread): Likewise.
8672 (fetch_regs_kernel_thread): Remove shadowed variable.
8673
172fb711
AB
86742019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8675
8676 * features/riscv/32bit-cpu.xml: Add register numbers.
8677 * features/riscv/32bit-fpu.c: Regenerate.
8678 * features/riscv/32bit-fpu.xml: Add register numbers.
8679 * features/riscv/64bit-cpu.xml: Add register numbers.
8680 * features/riscv/64bit-fpu.c: Regenerate.
8681 * features/riscv/64bit-fpu.xml: Add register numbers.
8682
26c89782
KB
86832019-02-26 Kevin Buettner <kevinb@redhat.com>
8684
af54ade9 8685 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
8686 * python/py-value.c (convert_buffer_and_type_to_value): New
8687 function.
8688 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8689 Add support for handling an optional second argument. Call
8690 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
8691 * python/python-internal.h (Py_buffer_deleter): New struct.
8692 (Py_buffer_up): New typedef.
8693
0f58c9e8
JB
86942019-02-25 John Baldwin <jhb@FreeBSD.org>
8695
8696 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8697 instead of releasing ownership.
8698
0a0f4c01
JR
86992019-02-25 Jordan Rupprecht <rupprecht@google.com>
8700
8701 * dwarf2read.c (open_and_init_dwp_file): Call
8702 elf_numsections instead of bfd_count_sections to initialize
8703 dwp_file->num_sections.
8704
cd5a152c
TT
87052019-02-25 Tom Tromey <tromey@adacore.com>
8706
8707 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8708
8a6a8513
SDJ
87092019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8710
8711 * gcore.in: Add '--readnever' option when invoking GDB.
8712
04dcda9c
SM
87132019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8714
8715 * MAINTAINERS: Update my email address.
8716
07bc701d
SM
87172019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8718
8719 * build-id.c (build_id_to_debug_bfd_1): New function.
8720 (build_id_to_debug_bfd): Look for separate debug file in
8721 sysroot.
8722
c6f4a5d0
AB
87232019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8724
8725 * gdbarch.sh: Update the copyright year range that is placed into
8726 generated files.
8727
9600246d
KS
87282019-02-22 Keith Seitz <keiths@redhat.com>
8729
8730 PR symtab/23853
8731 * linespec.c (create_sals_line_offset): Search for the default
8732 symtab's filename instead of its fullname.
8733
7557a514
AH
87342019-02-21 Alan Hayward <alan.hayward@arm.com>
8735
8736 * NEWS: Update style defaults.
8737
ee2bcb0c
AH
87382019-02-21 Alan Hayward <alan.hayward@arm.com>
8739
8740 * main.c (captured_main_1): Disable styling in batch mode.
8741
0c95f9ed
TT
87422019-02-20 Tom Tromey <tom@tromey.com>
8743
8744 * symtab.c (symtab_symbol_info): Fix typos.
8745
c763b894
TT
87462019-02-20 Tom Tromey <tromey@adacore.com>
8747
8748 * findcmd.c (_initialize_mem_search): Use upper case for
8749 metasyntactic variables.
8750
0ef8a082
AH
87512019-02-20 Alan Hayward <alan.hayward@arm.com>
8752
8753 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8754 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8755
6caa91b6
SM
87562019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8757
8758 * top.h (source_file_name): Change to std::string.
8759 * top.c (source_file_name): Likewise.
8760 (command_line_input): Adjust.
8761 * cli/cli-script.c (script_from_file): Adjust.
8762
98814c6c
TT
87632019-02-19 Tom Tromey <tromey@adacore.com>
8764
8765 * ravenscar-thread.c
8766 (ravenscar_thread_target::update_thread_list): Don't call
8767 ada_build_task_list.
8768 * ada-lang.h (ada_build_task_list): Don't declare.
8769 * ada-tasks.c (struct ada_tasks_inferior_data)
8770 <task_list_valid_p>: Now bool.
8771 (read_known_tasks, ada_task_list_changed)
8772 (ada_tasks_invalidate_inferior_data): Update.
8773 (read_known_tasks_array): Return bool.
8774 (read_known_tasks_list): Likewise.
8775 (read_known_tasks): Return void.
8776 (ada_build_task_list): Now static.
8777
70cd633e
AB
87782019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8779
8780 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8781 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8782
040b3e95
PW
87832019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8784
8785 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8786 variant for ada_tasks_pspace_data_handle and
8787 ada_tasks_inferior_data_handle.
8788 (ada_tasks_pspace_data_cleanup): New function.
8789 (ada_tasks_inferior_data_cleanup): New function.
8790
9409233b
TT
87912019-02-17 Tom Tromey <tom@tromey.com>
8792
8793 * macrotab.h (macro_source_fullname): Return a std::string.
8794 * macrotab.c (macro_include, check_for_redefinition)
8795 (macro_undef, macro_lookup_definition, foreach_macro)
8796 (foreach_macro_in_scope): Update.
8797 (macro_source_fullname): Return a std::string.
8798 * macrocmd.c (show_pp_source_pos): Update.
8799
6506371f
TT
88002019-02-17 Tom Tromey <tom@tromey.com>
8801
8802 * macrocmd.c (show_pp_source_pos): Style the file names.
8803
0c820d67
TT
88042019-02-17 Tom Tromey <tom@tromey.com>
8805
8806 PR tui/24197:
8807 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8808
a0087920
TT
88092019-02-17 Tom Tromey <tom@tromey.com>
8810
8811 * ada-lang.c (user_select_syms): Use filtered printing.
8812 * utils.c (wrap_style): New global.
8813 (desired_style): Remove.
8814 (emit_style_escape): Add stream parameter.
8815 (set_output_style, reset_terminal_style, prompt_for_continue):
8816 Update.
8817 (flush_wrap_buffer): Only flush gdb_stdout.
8818 (wrap_here): Set wrap_style.
8819 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8820 treat escape sequences as a character. Change when wrap buffer is
8821 flushed.
8822 (fputs_styled): Do not set the output style when the default is
8823 requested.
8824 * ui-style.h (struct ui_file_style) <is_default>: New method.
8825 * source.c (print_source_lines_base): Emit escape sequences in one
8826 piece.
8827
75ba10dc
JB
88282019-02-17 Joel Brobecker <brobecker@adacore.com>
8829
8830 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8831 integers and enumeration types.
8832
a2cd4f14
JB
88332019-02-17 Joel Brobecker <brobecker@adacore.com>
8834
8835 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8836 instead of lookup_symbol_in_language
8837 (do_exact_match): New function.
8838 (ada_get_symbol_name_matcher): Return do_exact_match when
8839 doing a verbatim match.
8840
485b851b
TT
88412019-02-15 Tom Tromey <tromey@adacore.com>
8842
8843 * ravenscar-thread.c (ravenscar_thread_target::resume)
8844 (ravenscar_thread_target::wait): Special case wildcard requests.
8845
0b790b1e
TT
88462019-02-15 Tom Tromey <tromey@adacore.com>
8847
8848 * ravenscar-thread.c (base_ptid): Remove.
8849 (struct ravenscar_thread_target) <close>: New method.
8850 <m_base_ptid>: New member.
8851 <update_inferior_ptid, active_task, task_is_currently_active,
8852 runtime_initialized>: Declare methods.
8853 <ravenscar_thread_target>: Add constructor.
8854 (ravenscar_thread_target::task_is_currently_active)
8855 (ravenscar_thread_target::update_inferior_ptid)
8856 (ravenscar_runtime_initialized): Rename. Now methods.
8857 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8858 (ravenscar_thread_target::update_thread_list): Update.
8859 (ravenscar_thread_target::active_task): Now method.
8860 (ravenscar_thread_target::store_registers)
8861 (ravenscar_thread_target::prepare_to_store)
8862 (ravenscar_thread_target::prepare_to_store)
8863 (ravenscar_thread_target::mourn_inferior): Update.
8864 (ravenscar_inferior_created): Use "new" to create target.
8865 (ravenscar_thread_target::get_ada_task_ptid): Update.
8866 (_initialize_ravenscar): Don't initialize base_ptid.
8867 (ravenscar_ops): Remove global.
8868
dea57a62
TT
88692019-02-15 Tom Tromey <tromey@adacore.com>
8870
8871 * target.h (push_target): Declare new overload.
8872 * target.c (push_target): New overload, taking an rvalue reference.
8873 * remote.c (remote_target::open_1): Use push_target overload.
8874 * corelow.c (core_target_open): Use push_target overload.
8875
989f3c58
TT
88762019-02-15 Tom Tromey <tromey@adacore.com>
8877
8878 * ravenscar-thread.c (is_ravenscar_task)
8879 (ravenscar_task_is_currently_active): Return bool.
8880 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
8881 (_initialize_ravenscar): Remove "(void)".
8882 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
8883 Return bool.
8884
6cbcc006
TT
88852019-02-15 Tom Tromey <tromey@adacore.com>
8886
8887 * ravenscar-thread.c (ravenscar_runtime_initializer)
8888 (has_ravenscar_runtime, get_running_thread_id)
8889 (ravenscar_thread_target::resume): Fix indentation.
8890
7657f14d
TT
88912019-02-15 Tom Tromey <tromey@adacore.com>
8892
8893 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
8894 from ravenscar_arch_ops.
8895 (sparc_ravenscar_ops::fetch_registers)
8896 (sparc_ravenscar_ops::store_registers): Now methods.
8897 (sparc_ravenscar_prepare_to_store): Remove.
8898 (sparc_ravenscar_ops): Redefine.
8899 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
8900 methods and destructor. Remove members.
8901 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
8902 (ravenscar_thread_target::store_registers)
8903 (ravenscar_thread_target::prepare_to_store): Update.
8904 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
8905 Remove.
8906 (struct ppc_ravenscar_powerpc_ops): Derive from
8907 ravenscar_arch_ops.
8908 (ppc_ravenscar_powerpc_ops::fetch_registers)
8909 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
8910 (ppc_ravenscar_powerpc_ops): Redefine.
8911 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
8912 (ppc_ravenscar_e500_ops::fetch_registers)
8913 (ppc_ravenscar_e500_ops::store_registers): Now methods.
8914 (ppc_ravenscar_e500_ops): Redefine.
8915 * aarch64-ravenscar-thread.c
8916 (aarch64_ravenscar_generic_prepare_to_store): Remove.
8917 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
8918 (aarch64_ravenscar_fetch_registers)
8919 (aarch64_ravenscar_store_registers): Now methods.
8920 (aarch64_ravenscar_ops): Redefine.
8921
5b6ea500
TT
89222019-02-15 Tom Tromey <tromey@adacore.com>
8923
8924 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
8925 (ravenscar_thread_target::stopped_by_hw_breakpoint)
8926 (ravenscar_thread_target::stopped_by_watchpoint)
8927 (ravenscar_thread_target::stopped_data_address)
8928 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
8929
e397fd39
TT
89302019-02-15 Tom Tromey <tromey@adacore.com>
8931
8932 * ravenscar-thread.c: Fix some typos.
8933
cc12f4a8
TT
89342019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8935 Tom Tromey <tromey@adacore.com>
8936
8937 * ada-lang.c (ada_exception_sal): Change addr_string to a
8938 std::string.
8939 (create_ada_exception_catchpoint): Update.
8940
5f486660
TT
89412019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8942 Tom Tromey <tromey@adacore.com>
8943
8944 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
8945 (bp_location_ops): Remove.
8946 (base_breakpoint_allocate_location): Update.
8947 (free_bp_location): Update.
8948 * ada-lang.c (class ada_catchpoint_location)
8949 <ada_catchpoint_location>: Remove ops parameter.
8950 (ada_catchpoint_location_dtor): Remove.
8951 (ada_catchpoint_location_ops): Remove.
8952 (allocate_location_exception): Update.
8953 * breakpoint.h (struct bp_location_ops): Remove.
8954 (class bp_location) <bp_location>: Remove bp_location_ops
8955 parameter.
8956 <~bp_location>: Add destructor.
8957 <ops>: Remove.
8958
b671c7fb
TS
89592019-02-14 Thomas Schwinge <thomas@codesourcery.com>
8960 Pedro Alves <palves@redhat.com>
8961
8962 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
8963 'PATH_MAX'.
8964
8071c5ce
DM
89652019-02-14 David Michael <fedora.dm0@gmail.com>
8966 Samuel Thibault <samuel.thibault@gnu.org>
8967 Thomas Schwinge <thomas@codesourcery.com>
8968
8969 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
8970 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
8971
b1041ae0
TS
89722019-02-14 Thomas Schwinge <thomas@codesourcery.com>
8973
924514e1
TS
8974 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
8975 (check_empty): Use "const char *".
8976
c29ee8d4
TS
8977 * gnu-nat.c (gnu_nat_target::detach): Instead of
8978 'detach_inferior (pid)' call
8979 'detach_inferior (find_inferior_pid (pid))'.
8980
6c6ef69f
TS
8981 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
8982 'nat/fork-inferior.o'.
8983 * gnu-nat.c: #include "nat/fork-inferior.h".
8984
2d0a338c
TS
8985 * gnu-nat.c (gnu_nat_target::detach): Instead of
8986 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
8987 * gnu-nat.h: #include "inf-child.h".
8988 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
8989 'i386_gnu_nat_target::fetch_registers'.
8990 (gnu_store_registers): Rename/move to
8991 'i386_gnu_nat_target::store_registers'.
8992
cabb5f06
TS
8993 * config/i386/nm-i386gnu.h: Don't "#include" any files.
8994 * gnu-nat.h (mach_thread_info): New function.
8995 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
8996
b1041ae0
TS
8997 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
8998
2988d01e
KF
89992019-02-14 Frederic Konrad <konrad@adacore.com>
9000
9001 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9002
c559d709
JB
90032019-02-14 Joel Brobecker <brobecker@adacore.com>
9004
9005 * windows-nat.c (windows_add_thread): Add new parameter
9006 "main_thread_p" with default value set to false. Update
9007 function documentation as well as all callers.
9008 (windows_delete_thread): Likewise.
9009 (fake_create_process): Update call to windows_add_thread.
9010 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9011 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9012 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9013 call to windows_delete_thread.
9014
007024cc
SM
90152019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9016
9017 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9018
f62318e9
JB
90192019-02-12 John Baldwin <jhb@FreeBSD.org>
9020
9021 * symfile.c (find_separate_debug_file): Use canonical path of
9022 sysroot with child_path instead of gdb_sysroot if it is valid.
9023
cd4b7848
JB
90242019-02-12 John Baldwin <jhb@FreeBSD.org>
9025
9026 * symfile.c (find_separate_debug_file): Use child_path to
9027 determine if an object file is under a sysroot.
9028
efac4bfe
JB
90292019-02-12 John Baldwin <jhb@FreeBSD.org>
9030
9031 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9032 unittests/child-path-selftests.c.
9033 * common/pathstuff.c (child_path): New function.
9034 * common/pathstuff.h (child_path): New prototype.
9035 * unittests/child-path-selftests.c: New file.
9036
402d2bfe
JB
90372019-02-12 John Baldwin <jhb@FreeBSD.org>
9038
9039 * symfile.c (find_separate_debug_file): Look for separate debug
9040 files in debug directories under the sysroot.
9041
1ed9f74e
PW
90422019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9043
9044 * symtab.h (struct minimal_symbol data_p): New const method.
9045 (struct minimal_symbol text_p): Likewise.
9046 * symtab.c (output_source_filename): Use file name style
9047 to print file name.
9048 (print_symbol_info): Likewise.
9049 (print_msymbol_info): Use address style to print addresses.
9050 Use function name style to print executable text symbols.
9051 (expand_symtab_containing_pc): Use data_p.
9052 (find_pc_sect_compunit_symtab): Likewise.
9053
2636d81d
PW
90542019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9055
9056 * breakpoint.c (describe_other_breakpoints): Use address style
9057 to print addresses.
9058 (say_where): Likewise.
9059
ac8c53cc
PW
90602019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9061
9062 * ada-typeprint.c (print_func_type): Print function name
9063 style to print function name.
9064 * c-typeprint.c (c_print_type_1): Likewise.
9065
ea638c43
AH
90662019-02-11 Alan Hayward <alan.hayward@arm.com>
9067
9068 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9069 for execve.
9070
ab759ca8
PW
90712019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9072
9073 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9074 type_stack.
9075
aff29d1c
JB
90762019-02-10 Joel Brobecker <brobecker@adacore.com>
9077
9078 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9079 TYPE_CODE_REF types.
9080
617126bc
JW
90812019-02-08 Jim Wilson <jimw@sifive.com>
9082
9083 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9084 (riscv_linux_fregset): New.
9085 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9086
46e3ed7f
TT
90872019-02-07 Tom Tromey <tom@tromey.com>
9088
9089 * thread.c (thread_cancel_execution_command): Update.
9090 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9091 methods.
9092 (struct thread_fsm_ops): Remove.
9093 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9094 (thread_fsm_should_stop, thread_fsm_return_value)
9095 (thread_fsm_set_finished, thread_fsm_finished_p)
9096 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9097 Don't declare.
9098 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9099 * infrun.c (clear_proceed_status_thread)
9100 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9101 (print_stop_event): Update.
9102 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9103 Add constructor.
9104 (step_command_fsm_ops): Remove.
9105 (new_step_command_fsm): Remove.
9106 (step_1): Update.
9107 (step_command_fsm::should_stop): Rename from
9108 step_command_fsm_should_stop.
9109 (step_command_fsm::clean_up): Rename from
9110 step_command_fsm_clean_up.
9111 (step_command_fsm::do_async_reply_reason): Rename from
9112 step_command_fsm_async_reply_reason.
9113 (struct until_next_fsm): Inherit from thread_fsm. Add
9114 constructor.
9115 (until_next_fsm_ops): Remove.
9116 (new_until_next_fsm): Remove.
9117 (until_next_fsm::should_stop): Rename from
9118 until_next_fsm_should_stop.
9119 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9120 (until_next_fsm::do_async_reply_reason): Rename from
9121 until_next_fsm_async_reply_reason.
9122 (struct finish_command_fsm): Inherit from thread_fsm. Add
9123 constructor. Change type of breakpoint.
9124 (finish_command_fsm_ops): Remove.
9125 (new_finish_command_fsm): Remove.
9126 (finish_command_fsm::should_stop): Rename from
9127 finish_command_fsm_should_stop.
9128 (finish_command_fsm::clean_up): Rename from
9129 finish_command_fsm_clean_up.
9130 (finish_command_fsm::return_value): Rename from
9131 finish_command_fsm_return_value.
9132 (finish_command_fsm::do_async_reply_reason): Rename from
9133 finish_command_fsm_async_reply_reason.
9134 (finish_command): Update.
9135 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9136 Add constructor.
9137 (call_thread_fsm_ops): Remove.
9138 (call_thread_fsm::call_thread_fsm): Rename from
9139 new_call_thread_fsm.
9140 (call_thread_fsm::should_stop): Rename from
9141 call_thread_fsm_should_stop.
9142 (call_thread_fsm::should_notify_stop): Rename from
9143 call_thread_fsm_should_notify_stop.
9144 (run_inferior_call, call_function_by_hand_dummy): Update.
9145 * cli/cli-interp.c (should_print_stop_to_console): Update.
9146 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9147 Add constructor. Change type of location_breakpoint,
9148 caller_breakpoint.
9149 (until_break_fsm_ops): Remove.
9150 (new_until_break_fsm): Remove.
9151 (until_break_fsm::should_stop): Rename from
9152 until_break_fsm_should_stop.
9153 (until_break_fsm::clean_up): Rename from
9154 until_break_fsm_clean_up.
9155 (until_break_fsm::do_async_reply_reason): Rename from
9156 until_break_fsm_async_reply_reason.
9157 (until_break_command): Update.
9158 * thread-fsm.c: Remove.
9159 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9160
1a5c2598
TT
91612019-02-07 Tom Tromey <tom@tromey.com>
9162
9163 * yy-remap.h: Add include guard.
9164 * xtensa-tdep.h: Add include guard.
9165 * xcoffread.h: Rename include guard.
9166 * varobj-iter.h: Add include guard.
9167 * tui/tui.h: Rename include guard.
9168 * tui/tui-winsource.h: Rename include guard.
9169 * tui/tui-wingeneral.h: Rename include guard.
9170 * tui/tui-windata.h: Rename include guard.
9171 * tui/tui-win.h: Rename include guard.
9172 * tui/tui-stack.h: Rename include guard.
9173 * tui/tui-source.h: Rename include guard.
9174 * tui/tui-regs.h: Rename include guard.
9175 * tui/tui-out.h: Rename include guard.
9176 * tui/tui-layout.h: Rename include guard.
9177 * tui/tui-io.h: Rename include guard.
9178 * tui/tui-hooks.h: Rename include guard.
9179 * tui/tui-file.h: Rename include guard.
9180 * tui/tui-disasm.h: Rename include guard.
9181 * tui/tui-data.h: Rename include guard.
9182 * tui/tui-command.h: Rename include guard.
9183 * tic6x-tdep.h: Add include guard.
9184 * target/waitstatus.h: Rename include guard.
9185 * target/wait.h: Rename include guard.
9186 * target/target.h: Rename include guard.
9187 * target/resume.h: Rename include guard.
9188 * target-float.h: Rename include guard.
9189 * stabsread.h: Add include guard.
9190 * rs6000-tdep.h: Add include guard.
9191 * riscv-fbsd-tdep.h: Add include guard.
9192 * regformats/regdef.h: Rename include guard.
9193 * record.h: Rename include guard.
9194 * python/python.h: Rename include guard.
9195 * python/python-internal.h: Rename include guard.
9196 * python/py-stopevent.h: Rename include guard.
9197 * python/py-ref.h: Rename include guard.
9198 * python/py-record.h: Rename include guard.
9199 * python/py-record-full.h: Rename include guard.
9200 * python/py-record-btrace.h: Rename include guard.
9201 * python/py-instruction.h: Rename include guard.
9202 * python/py-events.h: Rename include guard.
9203 * python/py-event.h: Rename include guard.
9204 * procfs.h: Add include guard.
9205 * proc-utils.h: Add include guard.
9206 * p-lang.h: Add include guard.
9207 * or1k-tdep.h: Rename include guard.
9208 * observable.h: Rename include guard.
9209 * nto-tdep.h: Rename include guard.
9210 * nat/x86-linux.h: Rename include guard.
9211 * nat/x86-linux-dregs.h: Rename include guard.
9212 * nat/x86-gcc-cpuid.h: Add include guard.
9213 * nat/x86-dregs.h: Rename include guard.
9214 * nat/x86-cpuid.h: Rename include guard.
9215 * nat/ppc-linux.h: Rename include guard.
9216 * nat/mips-linux-watch.h: Rename include guard.
9217 * nat/linux-waitpid.h: Rename include guard.
9218 * nat/linux-ptrace.h: Rename include guard.
9219 * nat/linux-procfs.h: Rename include guard.
9220 * nat/linux-osdata.h: Rename include guard.
9221 * nat/linux-nat.h: Rename include guard.
9222 * nat/linux-namespaces.h: Rename include guard.
9223 * nat/linux-btrace.h: Rename include guard.
9224 * nat/glibc_thread_db.h: Rename include guard.
9225 * nat/gdb_thread_db.h: Rename include guard.
9226 * nat/gdb_ptrace.h: Rename include guard.
9227 * nat/fork-inferior.h: Rename include guard.
9228 * nat/amd64-linux-siginfo.h: Rename include guard.
9229 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9230 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9231 * nat/aarch64-linux.h: Rename include guard.
9232 * nat/aarch64-linux-hw-point.h: Rename include guard.
9233 * mn10300-tdep.h: Add include guard.
9234 * mips-linux-tdep.h: Add include guard.
9235 * mi/mi-parse.h: Rename include guard.
9236 * mi/mi-out.h: Rename include guard.
9237 * mi/mi-main.h: Rename include guard.
9238 * mi/mi-interp.h: Rename include guard.
9239 * mi/mi-getopt.h: Rename include guard.
9240 * mi/mi-console.h: Rename include guard.
9241 * mi/mi-common.h: Rename include guard.
9242 * mi/mi-cmds.h: Rename include guard.
9243 * mi/mi-cmd-break.h: Rename include guard.
9244 * m2-lang.h: Add include guard.
9245 * location.h: Rename include guard.
9246 * linux-record.h: Rename include guard.
9247 * linux-nat.h: Add include guard.
9248 * linux-fork.h: Add include guard.
9249 * i386-darwin-tdep.h: Rename include guard.
9250 * hppa-linux-offsets.h: Add include guard.
9251 * guile/guile.h: Rename include guard.
9252 * guile/guile-internal.h: Rename include guard.
9253 * gnu-nat.h: Rename include guard.
9254 * gdb-stabs.h: Rename include guard.
9255 * frv-tdep.h: Add include guard.
9256 * f-lang.h: Add include guard.
9257 * event-loop.h: Add include guard.
9258 * darwin-nat.h: Rename include guard.
9259 * cp-abi.h: Rename include guard.
9260 * config/sparc/nm-sol2.h: Rename include guard.
9261 * config/nm-nto.h: Rename include guard.
9262 * config/nm-linux.h: Add include guard.
9263 * config/i386/nm-i386gnu.h: Rename include guard.
9264 * config/djgpp/nl_types.h: Rename include guard.
9265 * config/djgpp/langinfo.h: Rename include guard.
9266 * compile/gcc-cp-plugin.h: Add include guard.
9267 * compile/gcc-c-plugin.h: Add include guard.
9268 * compile/compile.h: Rename include guard.
9269 * compile/compile-object-run.h: Rename include guard.
9270 * compile/compile-object-load.h: Rename include guard.
9271 * compile/compile-internal.h: Rename include guard.
9272 * compile/compile-cplus.h: Rename include guard.
9273 * compile/compile-c.h: Rename include guard.
9274 * common/xml-utils.h: Rename include guard.
9275 * common/x86-xstate.h: Rename include guard.
9276 * common/version.h: Rename include guard.
9277 * common/vec.h: Rename include guard.
9278 * common/tdesc.h: Rename include guard.
9279 * common/selftest.h: Rename include guard.
9280 * common/scoped_restore.h: Rename include guard.
9281 * common/scoped_mmap.h: Rename include guard.
9282 * common/scoped_fd.h: Rename include guard.
9283 * common/safe-iterator.h: Rename include guard.
9284 * common/run-time-clock.h: Rename include guard.
9285 * common/refcounted-object.h: Rename include guard.
9286 * common/queue.h: Rename include guard.
9287 * common/ptid.h: Rename include guard.
9288 * common/print-utils.h: Rename include guard.
9289 * common/preprocessor.h: Rename include guard.
9290 * common/pathstuff.h: Rename include guard.
9291 * common/observable.h: Rename include guard.
9292 * common/netstuff.h: Rename include guard.
9293 * common/job-control.h: Rename include guard.
9294 * common/host-defs.h: Rename include guard.
9295 * common/gdb_wait.h: Rename include guard.
9296 * common/gdb_vecs.h: Rename include guard.
9297 * common/gdb_unlinker.h: Rename include guard.
9298 * common/gdb_unique_ptr.h: Rename include guard.
9299 * common/gdb_tilde_expand.h: Rename include guard.
9300 * common/gdb_sys_time.h: Rename include guard.
9301 * common/gdb_string_view.h: Rename include guard.
9302 * common/gdb_splay_tree.h: Rename include guard.
9303 * common/gdb_setjmp.h: Rename include guard.
9304 * common/gdb_ref_ptr.h: Rename include guard.
9305 * common/gdb_optional.h: Rename include guard.
9306 * common/gdb_locale.h: Rename include guard.
9307 * common/gdb_assert.h: Rename include guard.
9308 * common/filtered-iterator.h: Rename include guard.
9309 * common/filestuff.h: Rename include guard.
9310 * common/fileio.h: Rename include guard.
9311 * common/environ.h: Rename include guard.
9312 * common/common-utils.h: Rename include guard.
9313 * common/common-types.h: Rename include guard.
9314 * common/common-regcache.h: Rename include guard.
9315 * common/common-inferior.h: Rename include guard.
9316 * common/common-gdbthread.h: Rename include guard.
9317 * common/common-exceptions.h: Rename include guard.
9318 * common/common-defs.h: Rename include guard.
9319 * common/common-debug.h: Rename include guard.
9320 * common/cleanups.h: Rename include guard.
9321 * common/buffer.h: Rename include guard.
9322 * common/btrace-common.h: Rename include guard.
9323 * common/break-common.h: Rename include guard.
9324 * cli/cli-utils.h: Rename include guard.
9325 * cli/cli-style.h: Rename include guard.
9326 * cli/cli-setshow.h: Rename include guard.
9327 * cli/cli-script.h: Rename include guard.
9328 * cli/cli-interp.h: Rename include guard.
9329 * cli/cli-decode.h: Rename include guard.
9330 * cli/cli-cmds.h: Rename include guard.
9331 * charset-list.h: Add include guard.
9332 * buildsym-legacy.h: Rename include guard.
9333 * bfin-tdep.h: Add include guard.
9334 * ax.h: Rename include guard.
9335 * arm-linux-tdep.h: Add include guard.
9336 * arm-fbsd-tdep.h: Add include guard.
9337 * arch/xtensa.h: Rename include guard.
9338 * arch/tic6x.h: Add include guard.
9339 * arch/i386.h: Add include guard.
9340 * arch/arm.h: Rename include guard.
9341 * arch/arm-linux.h: Rename include guard.
9342 * arch/arm-get-next-pcs.h: Rename include guard.
9343 * arch/amd64.h: Add include guard.
9344 * arch/aarch64-insn.h: Rename include guard.
9345 * arch-utils.h: Rename include guard.
9346 * annotate.h: Add include guard.
9347 * amd64-darwin-tdep.h: Rename include guard.
9348 * aarch64-linux-tdep.h: Add include guard.
9349 * aarch64-fbsd-tdep.h: Add include guard.
9350 * aarch32-linux-nat.h: Add include guard.
9351
ab9268d2
PW
93522019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9353
9354 * macrotab.c (macro_define_internal): New function that
9355 factorizes macro_define_object_internal and macro_define_function
9356 code.
9357 (macro_define_object_internal): Use macro_define_internal.
9358 (macro_define_function): Likewise.
9359
bb0da2b4
PW
93602019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9361
9362 * macrocmd.c (extract_identifier): Return
9363 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9364 callers.
9365
424eb552
JB
93662019-02-06 John Baldwin <jhb@FreeBSD.org>
9367
9368 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9369
1688cb29
TT
93702019-02-05 Tom Tromey <tom@tromey.com>
9371
9372 * target.c (target_stack::unpush): Move assertion earlier.
9373
b5eba2d8
TT
93742019-01-30 Tom Tromey <tom@tromey.com>
9375
9376 PR python/23615:
9377 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9378 (gdbpy_parse_and_eval): Likewise.
9379 * python/python-internal.h (gdbpy_allow_threads): New class.
9380
7054e2ff
JB
93812019-01-28 John Baldwin <jhb@FreeBSD.org>
9382
9383 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9384 (aarch64_fbsd_fpregmap): Move earlier.
9385 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9386 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9387 instead of individual calls to trad_frame_set_reg_addr.
9388 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9389 earlier.
9390 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9391 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9392 instead of individual calls to trad_frame_set_reg_addr.
9393
36c25ffa
AH
93942019-01-28 Alan Hayward <alan.hayward@arm.com>
9395
9396 * CONTRIBUTE: Replace contribution list with wiki link.
9397
a0707f3c
TT
93982019-01-25 Tom Tromey <tom@tromey.com>
9399
9400 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9401
0747795c
TT
94022019-01-25 Tom Tromey <tom@tromey.com>
9403
9404 * xtensa-linux-nat.c: Fix common/ includes.
9405 * xml-support.h: Fix common/ includes.
9406 * xml-support.c: Fix common/ includes.
9407 * x86-linux-nat.c: Fix common/ includes.
9408 * windows-nat.c: Fix common/ includes.
9409 * varobj.h: Fix common/ includes.
9410 * varobj.c: Fix common/ includes.
9411 * value.c: Fix common/ includes.
9412 * valops.c: Fix common/ includes.
9413 * utils.c: Fix common/ includes.
9414 * unittests/xml-utils-selftests.c: Fix common/ includes.
9415 * unittests/utils-selftests.c: Fix common/ includes.
9416 * unittests/unpack-selftests.c: Fix common/ includes.
9417 * unittests/tracepoint-selftests.c: Fix common/ includes.
9418 * unittests/style-selftests.c: Fix common/ includes.
9419 * unittests/string_view-selftests.c: Fix common/ includes.
9420 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9421 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9422 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9423 * unittests/rsp-low-selftests.c: Fix common/ includes.
9424 * unittests/parse-connection-spec-selftests.c: Fix common/
9425 includes.
9426 * unittests/optional-selftests.c: Fix common/ includes.
9427 * unittests/offset-type-selftests.c: Fix common/ includes.
9428 * unittests/observable-selftests.c: Fix common/ includes.
9429 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9430 * unittests/memrange-selftests.c: Fix common/ includes.
9431 * unittests/memory-map-selftests.c: Fix common/ includes.
9432 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9433 * unittests/function-view-selftests.c: Fix common/ includes.
9434 * unittests/environ-selftests.c: Fix common/ includes.
9435 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9436 * unittests/common-utils-selftests.c: Fix common/ includes.
9437 * unittests/cli-utils-selftests.c: Fix common/ includes.
9438 * unittests/array-view-selftests.c: Fix common/ includes.
9439 * ui-file.c: Fix common/ includes.
9440 * tui/tui-io.c: Fix common/ includes.
9441 * tracepoint.h: Fix common/ includes.
9442 * tracepoint.c: Fix common/ includes.
9443 * tracefile-tfile.c: Fix common/ includes.
9444 * top.h: Fix common/ includes.
9445 * top.c: Fix common/ includes.
9446 * thread.c: Fix common/ includes.
9447 * target/waitstatus.h: Fix common/ includes.
9448 * target/waitstatus.c: Fix common/ includes.
9449 * target.h: Fix common/ includes.
9450 * target.c: Fix common/ includes.
9451 * target-memory.c: Fix common/ includes.
9452 * target-descriptions.c: Fix common/ includes.
9453 * symtab.h: Fix common/ includes.
9454 * symfile.c: Fix common/ includes.
9455 * stap-probe.c: Fix common/ includes.
9456 * spu-linux-nat.c: Fix common/ includes.
9457 * sparc-nat.c: Fix common/ includes.
9458 * source.c: Fix common/ includes.
9459 * solib.c: Fix common/ includes.
9460 * solib-target.c: Fix common/ includes.
9461 * ser-unix.c: Fix common/ includes.
9462 * ser-tcp.c: Fix common/ includes.
9463 * ser-pipe.c: Fix common/ includes.
9464 * ser-base.c: Fix common/ includes.
9465 * selftest-arch.c: Fix common/ includes.
9466 * s12z-tdep.c: Fix common/ includes.
9467 * rust-exp.y: Fix common/ includes.
9468 * rs6000-aix-tdep.c: Fix common/ includes.
9469 * riscv-tdep.c: Fix common/ includes.
9470 * remote.c: Fix common/ includes.
9471 * remote-notif.h: Fix common/ includes.
9472 * remote-fileio.h: Fix common/ includes.
9473 * remote-fileio.c: Fix common/ includes.
9474 * regcache.h: Fix common/ includes.
9475 * regcache.c: Fix common/ includes.
9476 * record-btrace.c: Fix common/ includes.
9477 * python/python.c: Fix common/ includes.
9478 * python/py-type.c: Fix common/ includes.
9479 * python/py-inferior.c: Fix common/ includes.
9480 * progspace.h: Fix common/ includes.
9481 * producer.c: Fix common/ includes.
9482 * procfs.c: Fix common/ includes.
9483 * proc-api.c: Fix common/ includes.
9484 * printcmd.c: Fix common/ includes.
9485 * ppc-linux-nat.c: Fix common/ includes.
9486 * parser-defs.h: Fix common/ includes.
9487 * osdata.c: Fix common/ includes.
9488 * obsd-nat.c: Fix common/ includes.
9489 * nat/x86-linux.c: Fix common/ includes.
9490 * nat/x86-linux-dregs.c: Fix common/ includes.
9491 * nat/x86-dregs.h: Fix common/ includes.
9492 * nat/x86-dregs.c: Fix common/ includes.
9493 * nat/ppc-linux.c: Fix common/ includes.
9494 * nat/mips-linux-watch.h: Fix common/ includes.
9495 * nat/mips-linux-watch.c: Fix common/ includes.
9496 * nat/linux-waitpid.c: Fix common/ includes.
9497 * nat/linux-ptrace.h: Fix common/ includes.
9498 * nat/linux-ptrace.c: Fix common/ includes.
9499 * nat/linux-procfs.c: Fix common/ includes.
9500 * nat/linux-personality.c: Fix common/ includes.
9501 * nat/linux-osdata.c: Fix common/ includes.
9502 * nat/linux-namespaces.c: Fix common/ includes.
9503 * nat/linux-btrace.h: Fix common/ includes.
9504 * nat/linux-btrace.c: Fix common/ includes.
9505 * nat/fork-inferior.c: Fix common/ includes.
9506 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9507 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9508 * nat/aarch64-linux.c: Fix common/ includes.
9509 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9510 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9511 * namespace.h: Fix common/ includes.
9512 * mips-linux-tdep.c: Fix common/ includes.
9513 * minsyms.c: Fix common/ includes.
9514 * mi/mi-parse.h: Fix common/ includes.
9515 * mi/mi-main.c: Fix common/ includes.
9516 * mi/mi-cmd-env.c: Fix common/ includes.
9517 * memrange.h: Fix common/ includes.
9518 * memattr.c: Fix common/ includes.
9519 * maint.h: Fix common/ includes.
9520 * maint.c: Fix common/ includes.
9521 * main.c: Fix common/ includes.
9522 * machoread.c: Fix common/ includes.
9523 * location.c: Fix common/ includes.
9524 * linux-thread-db.c: Fix common/ includes.
9525 * linux-nat.c: Fix common/ includes.
9526 * linux-fork.c: Fix common/ includes.
9527 * inline-frame.c: Fix common/ includes.
9528 * infrun.c: Fix common/ includes.
9529 * inflow.c: Fix common/ includes.
9530 * inferior.h: Fix common/ includes.
9531 * inferior.c: Fix common/ includes.
9532 * infcmd.c: Fix common/ includes.
9533 * inf-ptrace.c: Fix common/ includes.
9534 * inf-child.c: Fix common/ includes.
9535 * ia64-linux-nat.c: Fix common/ includes.
9536 * i387-tdep.c: Fix common/ includes.
9537 * i386-tdep.c: Fix common/ includes.
9538 * i386-linux-tdep.c: Fix common/ includes.
9539 * i386-linux-nat.c: Fix common/ includes.
9540 * i386-go32-tdep.c: Fix common/ includes.
9541 * i386-fbsd-tdep.c: Fix common/ includes.
9542 * i386-fbsd-nat.c: Fix common/ includes.
9543 * guile/scm-type.c: Fix common/ includes.
9544 * guile/guile.c: Fix common/ includes.
9545 * go32-nat.c: Fix common/ includes.
9546 * gnu-nat.c: Fix common/ includes.
9547 * gdbthread.h: Fix common/ includes.
9548 * gdbarch-selftests.c: Fix common/ includes.
9549 * gdb_usleep.c: Fix common/ includes.
9550 * gdb_select.h: Fix common/ includes.
9551 * gdb_bfd.c: Fix common/ includes.
9552 * gcore.c: Fix common/ includes.
9553 * fork-child.c: Fix common/ includes.
9554 * findvar.c: Fix common/ includes.
9555 * fbsd-nat.c: Fix common/ includes.
9556 * event-top.c: Fix common/ includes.
9557 * event-loop.c: Fix common/ includes.
9558 * dwarf2read.c: Fix common/ includes.
9559 * dwarf2loc.c: Fix common/ includes.
9560 * dwarf2-frame.c: Fix common/ includes.
9561 * dwarf-index-cache.c: Fix common/ includes.
9562 * dtrace-probe.c: Fix common/ includes.
9563 * disasm-selftests.c: Fix common/ includes.
9564 * defs.h: Fix common/ includes.
9565 * csky-tdep.c: Fix common/ includes.
9566 * cp-valprint.c: Fix common/ includes.
9567 * cp-support.h: Fix common/ includes.
9568 * cp-support.c: Fix common/ includes.
9569 * corelow.c: Fix common/ includes.
9570 * completer.h: Fix common/ includes.
9571 * completer.c: Fix common/ includes.
9572 * compile/compile.c: Fix common/ includes.
9573 * compile/compile-loc2c.c: Fix common/ includes.
9574 * compile/compile-cplus-types.c: Fix common/ includes.
9575 * compile/compile-cplus-symbols.c: Fix common/ includes.
9576 * command.h: Fix common/ includes.
9577 * cli/cli-dump.c: Fix common/ includes.
9578 * cli/cli-cmds.c: Fix common/ includes.
9579 * charset.c: Fix common/ includes.
9580 * build-id.c: Fix common/ includes.
9581 * btrace.h: Fix common/ includes.
9582 * btrace.c: Fix common/ includes.
9583 * breakpoint.h: Fix common/ includes.
9584 * breakpoint.c: Fix common/ includes.
9585 * ax.h:
9586 (enum agent_op): Fix common/ includes.
9587 * ax-general.c (struct aop_map): Fix common/ includes.
9588 * ax-gdb.c: Fix common/ includes.
9589 * auxv.c: Fix common/ includes.
9590 * auto-load.c: Fix common/ includes.
9591 * arm-tdep.c: Fix common/ includes.
9592 * arch/riscv.c: Fix common/ includes.
9593 * arch/ppc-linux-common.c: Fix common/ includes.
9594 * arch/i386.c: Fix common/ includes.
9595 * arch/arm.c: Fix common/ includes.
9596 * arch/arm-linux.c: Fix common/ includes.
9597 * arch/arm-get-next-pcs.c: Fix common/ includes.
9598 * arch/amd64.c: Fix common/ includes.
9599 * arch/aarch64.c: Fix common/ includes.
9600 * arch/aarch64-insn.c: Fix common/ includes.
9601 * arch-utils.c: Fix common/ includes.
9602 * amd64-windows-tdep.c: Fix common/ includes.
9603 * amd64-tdep.c: Fix common/ includes.
9604 * amd64-sol2-tdep.c: Fix common/ includes.
9605 * amd64-obsd-tdep.c: Fix common/ includes.
9606 * amd64-nbsd-tdep.c: Fix common/ includes.
9607 * amd64-linux-tdep.c: Fix common/ includes.
9608 * amd64-linux-nat.c: Fix common/ includes.
9609 * amd64-fbsd-tdep.c: Fix common/ includes.
9610 * amd64-fbsd-nat.c: Fix common/ includes.
9611 * amd64-dicos-tdep.c: Fix common/ includes.
9612 * amd64-darwin-tdep.c: Fix common/ includes.
9613 * agent.c: Fix common/ includes.
9614 * ada-lang.h: Fix common/ includes.
9615 * ada-lang.c: Fix common/ includes.
9616 * aarch64-tdep.c: Fix common/ includes.
9617
2f5c153e
TT
96182019-01-25 Tom Tromey <tom@tromey.com>
9619
9620 * common/create-version.sh: Use common/version.h.
9621
adc6a863
PA
96222019-01-24 Pedro Alves <palves@redhat.com>
9623
9624 * infrun.c (signal_stop, signal_print, signal_program)
9625 (signal_catch, signal_pass): Now arrays instead of pointers.
9626 (update_signals_program_target, do_target_resume)
9627 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9628 * linux-nat.c (linux_nat_target::pass_signals)
9629 (linux_nat_target::create_inferior, linux_nat_target::attach):
9630 Adjust.
9631 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9632 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9633 * procfs.c (procfs_target::pass_signals): Adjust.
9634 * record-full.c (record_full_target::resume): Adjust.
9635 * remote.c (remote_target::pass_signals)
9636 (remote_target::program_signals): Adjust.
9637 * target-debug.h (target_debug_print_signals): Now takes a
9638 gdb::array_view as parameter. Adjust.
9639 * target.h (target_ops) <pass_signals, program_signals>: Replace
9640 pointer and length parameters with gdb::array_view.
9641 (target_pass_signals, target_program_signals): Likewise.
9642 * target-delegates.c: Regenerate.
9643
3046d67a
PA
96442019-01-24 Pedro Alves <palves@redhat.com>
9645
9646 * common/forward-scope-exit.h
9647 (forward_scope_exit::forward_scope_exit): Pass arguments to
9648 m_bind_function directly, instead of creating a std::bind and
9649 copying that.
9650
353229bf
AH
96512019-01-24 Alan Hayward <alan.hayward@arm.com>
9652
9653 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9654 for static members.
9655 (pass_in_v_vfp_candidate): Likewise.
9656
311dc83a
TT
96572019-01-23 Tom Tromey <tom@tromey.com>
9658 Pedro Alves <palves@redhat.com>
9659
9660 * regcache.c (class regcache_invalidator): Remove.
9661 (regcache::raw_write): Use make_scope_exit.
9662
296bd123
TT
96632019-01-23 Tom Tromey <tom@tromey.com>
9664
9665 * ui-out.h (class ui_out_emit_type): Update comment.
9666
979a0d13
TT
96672019-01-23 Tom Tromey <tom@tromey.com>
9668
9669 * infrun.c (fetch_inferior_event): Update comment.
9670
d238133d
TT
96712019-01-23 Tom Tromey <tom@tromey.com>
9672 Pedro Alves <palves@redhat.com>
9673
9674 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9675 parameter.
9676 (fetch_inferior_event): Use SCOPE_EXIT.
9677
9678
9885e6bb
TT
96792019-01-23 Tom Tromey <tom@tromey.com>
9680 Pedro Alves <palves@redhat.com>
9681
9682 * infrun.c (disable_thread_events): Delete.
9683 (stop_all_threads): Use SCOPE_EXIT.
9684
286526c1
TT
96852019-01-23 Tom Tromey <tom@tromey.com>
9686 Pedro Alves <palves@redhat.com>
9687
9688 * symfile.c: Include forward-scope-exit.h.
9689 (clear_symtab_users_cleanup): Replace forward declaration with
9690 a FORWARD_SCOPE_EXIT.
9691 (syms_from_objfile_1): Use the forward_scope_exit and
9692 gdb::optional instead of cleanup_function.
9693 (reread_symbols): Use the forward_scope_exit instead of
9694 cleanup_function.
9695 (clear_symtab_users_cleanup): Remove function.
9696
1db93f14
TT
96972019-01-23 Tom Tromey <tom@tromey.com>
9698 Pedro Alves <palves@redhat.com>
9699
9700 * linux-nat.c: Include scope-exit.h.
9701 (cleanup_target_stop): Remove.
9702 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9703 SCOPE_EXIT.
9704
2cc83d1e
TT
97052019-01-23 Tom Tromey <tom@tromey.com>
9706 Pedro Alves <palves@redhat.com>
9707
9708 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9709 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9710
694c6bf5
TT
97112019-01-23 Tom Tromey <tom@tromey.com>
9712 Andrew Burgess <andrew.burgess@embecosm.com>
9713 Pedro Alves <palves@redhat.com>
9714
9715 * infrun.c (fetch_inferior_event): Use scope_exit.
9716 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9717 * top.c (execute_command): Use scope_exit.
9718 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9719 * utils.c (do_bpstat_clear_actions_cleanup)
9720 (make_bpstat_clear_actions_cleanup): Remove.
9721
4c41382a
TT
97222019-01-23 Tom Tromey <tom@tromey.com>
9723 Pedro Alves <palves@redhat.com>
9724
9725 * infrun.c: Include "common/scope-exit.h"
9726 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9727 (wait_for_inferior): Use SCOPE_EXIT.
9728 (fetch_inferior_event): Use scope_exit.
9729
89f8fb50
TT
97302019-01-23 Tom Tromey <tom@tromey.com>
9731 Pedro Alves <palves@redhat.com>
9732
9733 * breakpoint.c (create_breakpoint): Remove cleanup.
9734
5419bdae
TT
97352019-01-23 Tom Tromey <tom@tromey.com>
9736 Andrew Burgess <andrew.burgess@embecosm.com>
9737 Pedro Alves <palves@redhat.com>
9738
e587ef42
PA
97392019-01-23 Pedro Alves <palves@redhat.com>
9740
9741 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9742
77f0e74c
PA
97432019-01-23 Pedro Alves <palves@redhat.com>
9744 Andrew Burgess <andrew.burgess@embecosm.com>
9745
9746 * gdbthread.h: Include "common/forward-scope-exit.h".
9747 (scoped_finish_thread_state): Redefine custom class in terms of
9748 forward_scope_exit.
9749
5b9b3e53
PA
97502019-01-23 Pedro Alves <palves@redhat.com>
9751 Andrew Burgess <andrew.burgess@embecosm.com>
9752
9753 * common/forward-scope-exit.h: New file.
9754
54b65c9b
PA
97552019-01-23 Pedro Alves <palves@redhat.com>
9756 Andrew Burgess <andrew.burgess@embecosm.com>
9757 Tom Tromey <tom@tromey.com>
9758
9759 * common/scope-exit.h: New file.
9760
cf08fb29
PA
97612019-01-23 Pedro Alves <palves@redhat.com>
9762
9763 * common/preprocessor.h (ESC): Rename to ...
9764 (ESC_PARENS): ... this.
9765 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9766 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9767
ae73e2e2
TT
97682019-01-23 Tom Tromey <tom@tromey.com>
9769
9770 * language.h (class scoped_switch_to_sym_language_if_auto):
9771 Initialize m_lang in both cases.
9772
6594e122
AH
97732019-01-23 Alan Hayward <alan.hayward@arm.com>
9774
9775 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9776 with XCNEW.
9777
a7c9855d
TT
97782019-01-22 Tom Tromey <tom@tromey.com>
9779
9780 * corelow.c: Do not include sys/file.h.
9781
93cc1d53
TT
97822019-01-22 Tom Tromey <tom@tromey.com>
9783
9784 * tui/tui-wingeneral.h: Include gdb_curses.h.
9785
38561778
TT
97862019-01-22 Tom Tromey <tom@tromey.com>
9787
9788 * source-cache.h (class source_cache) <get_source_lines,
9789 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9790
37b3ab5b
TT
97912019-01-22 Tom Tromey <tom@tromey.com>
9792
9793 * remote-fileio.h (struct remote_target): Declare.
9794
3fabc016
TT
97952019-01-22 Tom Tromey <tom@tromey.com>
9796
9797 * python/py-arch.c: Do not include py-ref.h.
9798 * python/py-bpevent.c: Do not include py-ref.h.
9799 * python/py-cmd.c: Do not include py-ref.h.
9800 * python/py-continueevent.c: Do not include py-ref.h.
9801 * python/py-event.h: Do not include py-ref.h.
9802 * python/py-evtregistry.c: Do not include py-ref.h.
9803 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9804 * python/py-frame.c: Do not include py-ref.h.
9805 * python/py-framefilter.c: Do not include py-ref.h.
9806 * python/py-function.c: Do not include py-ref.h.
9807 * python/py-infevents.c: Do not include py-ref.h.
9808 * python/py-linetable.c: Do not include py-ref.h.
9809 * python/py-objfile.c: Do not include py-ref.h.
9810 * python/py-param.c: Do not include py-ref.h.
9811 * python/py-prettyprint.c: Do not include py-ref.h.
9812 * python/py-progspace.c: Do not include py-ref.h.
9813 * python/py-symbol.c: Do not include py-ref.h.
9814 * python/py-symtab.c: Do not include py-ref.h.
9815 * python/py-type.c: Do not include py-ref.h.
9816 * python/py-unwind.c: Do not include py-ref.h.
9817 * python/py-utils.c: Do not include py-ref.h.
9818 * python/py-value.c: Do not include py-ref.h.
9819 * python/py-varobj.c: Do not include py-ref.h.
9820 * python/py-xmethods.c: Do not include py-ref.h.
9821 * python/python.c: Do not include py-ref.h.
9822 * varobj.c: Do not include py-ref.h.
9823
6b4d7774
TT
98242019-01-22 Tom Tromey <tom@tromey.com>
9825
9826 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9827 keyword for bcache.
9828
7af7e9b5
TT
98292019-01-22 Tom Tromey <tom@tromey.com>
9830
9831 * compile/compile-cplus-types.c: Remove a comment by #include.
9832
951d1049
TT
98332019-01-22 Tom Tromey <tom@tromey.com>
9834
9835 * compile/gcc-c-plugin.h: Include compile-internal.h.
9836
d65d5705
TT
98372019-01-22 Tom Tromey <tom@tromey.com>
9838
9839 * stabsread.c (EXTERN): Do not define.
9840 (symnum, next_symbol_text_func, processing_gcc_compilation)
9841 (within_function, global_sym_chain, global_stabs)
9842 (previous_stab_code, this_object_header_files)
9843 (n_this_object_header_files)
9844 (n_allocated_this_object_header_files): Define.
9845 * stabsread.h (EXTERN): Never define. Use "extern".
9846
b6fb1ee5
PW
98472019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9848
9849 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9850 history_value.
9851
be6d4f74
TT
98522019-01-21 Tom Tromey <tom@tromey.com>
9853
9854 * ui-out.c: Fix includes.
9855 * tui/tui-source.c: Fix includes.
9856 * target.c: Fix includes.
9857 * remote.c: Fix includes.
9858 * regcache.c: Fix includes.
9859 * python/py-block.c: Fix includes.
9860 * printcmd.c: Fix includes.
9861 * or1k-tdep.c: Fix includes.
9862 * mi/mi-main.c: Fix includes.
9863 * m32r-tdep.c: Fix includes.
9864 * csky-tdep.c: Fix includes.
9865 * compile/compile-cplus-types.c: Fix includes.
9866 * cli/cli-interp.c: Fix includes.
9867
73021deb
AH
98682019-01-21 Alan Hayward <alan.hayward@arm.com>
9869
9870 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9871 for padding.
9872
7932255d
TT
98732019-01-16 Tom Tromey <tom@tromey.com>
9874
9875 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
9876 earlier.
9877 (struct objfile) <msymbols_range>: Move from top level.
9878 <msymbols>: New method.
9879 (class objfile_msymbols): Remove.
9880 * symtab.c (default_collect_symbol_completion_matches_break_on):
9881 Update.
9882 * symmisc.c (dump_msymbols): Update.
9883 * stabsread.c (scan_file_globals): Update.
9884 * objc-lang.c (info_selectors_command, info_classes_command)
9885 (find_methods): Update.
9886 * minsyms.c (find_solib_trampoline_target): Update.
9887 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
9888 * coffread.c (coff_symfile_read): Update.
9889 * ada-lang.c (ada_lookup_simple_minsym)
9890 (ada_collect_symbol_completion_matches): Update.
9891
604b1bfb
TT
98922019-01-16 Tom Tromey <tom@tromey.com>
9893
9894 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
9895 type. Remove no-argument constructor.
9896 <iterator::operator++>: Simplify.
9897 <begin>: Update.
9898 <end>: Use minimal_symbol_count.
9899
f252c6d5
TT
99002019-01-16 Tom Tromey <tom@tromey.com>
9901
9902 * objfiles.h (struct objfile) <psymtabs>: New method.
9903 (class objfile_psymtabs): Remove.
9904 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
9905 typedef.
9906 <range>: New method.
9907 (require_partial_symbols): Change return type.
9908 * psymtab.c (require_partial_symbols)
9909 (psym_expand_symtabs_matching): Update.
9910 * mdebugread.c (parse_partial_symbols): Update.
9911 * dbxread.c (dbx_end_psymtab): Update.
9912
b669c953
TT
99132019-01-15 Tom Tromey <tom@tromey.com>
9914
9915 * symtab.c (lookup_objfile_from_block)
9916 (lookup_symbol_in_objfile_symtabs)
9917 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
9918 (find_line_symtab, info_sources_command)
9919 (default_collect_symbol_completion_matches_break_on)
9920 (make_source_files_completion_list): Update.
9921 * symmisc.c (print_objfile_statistics, dump_objfile)
9922 (maintenance_print_symbols, maintenance_info_symtabs)
9923 (maintenance_check_symtabs, maintenance_info_line_tables):
9924 Update.
9925 * source.c (select_source_symtab)
9926 (forget_cached_source_info_for_objfile): Update.
9927 * objfiles.h (class objfile_compunits): Remove.
9928 (struct objfile) <compunits_range>: New typedef.
9929 (compunits): New method.
9930 * objfiles.c (objfile_relocate1): Update.
9931 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9932 * maint.c (count_symtabs_and_blocks): Update.
9933 * linespec.c (iterate_over_all_matching_symtabs): Update.
9934 * cp-support.c (add_symbol_overload_list_qualified): Update.
9935 * coffread.c (coff_symtab_read): Update.
9936 * ada-lang.c (add_nonlocal_symbols)
9937 (ada_collect_symbol_completion_matches)
9938 (ada_add_global_exceptions): Update.
9939
7e955d83
TT
99402019-01-15 Tom Tromey <tom@tromey.com>
9941
9942 * progspace.h (program_space) <objfiles_safe_range>: New
9943 typedef.
9944 <objfiles_safe>: New method.
9945 * objfiles.h (class all_objfiles_safe): Remove.
9946 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
9947 * jit.c (jit_inferior_exit_hook): Update.
9948
2030c079
TT
99492019-01-17 Tom Tromey <tom@tromey.com>
9950
9951 * progspace.h (program_space) <objfiles_range>: New typedef.
9952 <objfiles>: New method.
9953 <objfiles_head>: Rename from objfiles.
9954 (object_files): Update.
9955 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
9956 * guile/scm-pretty-print.c
9957 (ppscm_find_pretty_printer_from_objfiles): Update.
9958 * guile/scm-objfile.c (gdbscm_objfiles): Update.
9959 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
9960 Update.
9961 * python/py-progspace.c (pspy_get_objfiles): Update.
9962 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
9963 Update.
9964 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
9965 (objfpy_lookup_objfile_by_build_id): Update.
9966 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9967 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
9968 Update.
9969 * symtab.c (iterate_over_symtabs, matching_obj_sections)
9970 (expand_symtab_containing_pc, lookup_objfile_from_block)
9971 (lookup_static_symbol, basic_lookup_transparent_type)
9972 (find_pc_sect_compunit_symtab, find_symbol_at_address)
9973 (find_line_symtab, info_sources_command)
9974 (default_collect_symbol_completion_matches_break_on)
9975 (make_source_files_completion_list, find_main_name): Update.
9976 * symmisc.c (print_symbol_bcache_statistics)
9977 (print_objfile_statistics, maintenance_print_symbols)
9978 (maintenance_print_msymbols, maintenance_print_objfiles)
9979 (maintenance_info_symtabs, maintenance_check_symtabs)
9980 (maintenance_expand_symtabs, maintenance_info_line_tables):
9981 Update.
9982 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
9983 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
9984 (map_overlay_command, unmap_overlay_command)
9985 (simple_overlay_update, expand_symtabs_matching)
9986 (map_symbol_filenames): Update.
9987 * symfile-debug.c (set_debug_symfile): Update.
9988 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
9989 Update.
9990 * source.c (select_source_symtab, forget_cached_source_info):
9991 Update.
9992 * solib.c (solib_read_symbols): Update.
9993 * solib-spu.c (append_ocl_sos): Update.
9994 * psymtab.c (maintenance_print_psymbols)
9995 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
9996 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
9997 * printcmd.c (info_symbol_command): Update.
9998 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
9999 Update.
10000 * objfiles.h (class all_objfiles): Remove.
10001 * objfiles.c (have_partial_symbols, have_full_symbols)
10002 (have_minimal_symbols, qsort_cmp, update_section_map)
10003 (shared_objfile_contains_address_p)
10004 (default_iterate_over_objfiles_in_search_order): Update.
10005 * objc-lang.c (info_selectors_command, info_classes_command)
10006 (find_methods): Update.
10007 * minsyms.c (find_solib_trampoline_target): Update.
10008 * maint.c (maintenance_info_sections)
10009 (maintenance_translate_address, count_symtabs_and_blocks):
10010 Update.
10011 * main.c (captured_main_1): Update.
10012 * linux-thread-db.c (try_thread_db_load_from_pdir)
10013 (has_libpthread): Update.
10014 * linespec.c (iterate_over_all_matching_symtabs)
10015 (search_minsyms_for_name): Update.
10016 * jit.c (jit_find_objf_with_entry_addr): Update.
10017 * hppa-tdep.c (find_unwind_entry)
10018 (hppa_lookup_stub_minimal_symbol): Update.
10019 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10020 Update.
10021 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10022 (elf_gnu_ifunc_resolve_by_got): Update.
10023 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10024 * dwarf-index-write.c (save_gdb_index_command): Update.
10025 * cp-support.c (add_symbol_overload_list_qualified): Update.
10026 * breakpoint.c (create_overlay_event_breakpoint)
10027 (create_longjmp_master_breakpoint)
10028 (create_std_terminate_master_breakpoint)
10029 (create_exception_master_breakpoint): Update.
10030 * blockframe.c (find_pc_partial_function): Update.
10031 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10032 (ada_collect_symbol_completion_matches)
10033 (ada_add_global_exceptions): Update.
10034
776489e0
TT
100352019-01-17 Tom Tromey <tom@tromey.com>
10036
10037 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10038 declare VEC.
10039 (solib_target_parse_libraries): Change return type.
10040 (library_list_start_segment, library_list_start_section)
10041 (library_list_end_library, library_list_start_library); Update.
10042 (solib_target_free_library_list): Remove.
10043 (solib_target_parse_libraries): Remove cleanup. Change return
10044 type.
10045 (solib_target_current_sos): Update.
10046
6471e7d2
TT
100472019-01-17 Tom Tromey <tromey@bapiya>
10048
10049 * valprint.c: Replace "the the" with "the".
10050 * symtab.c: Replace "the the" with "the".
10051 * solib.c: Replace "the the" with "the".
10052 * solib-dsbt.c: Replace "the the" with "the".
10053 * linespec.c: Replace "the the" with "the".
10054 * dwarf2loc.h: Replace "the the" with "the".
10055 * amd64-windows-tdep.c: Replace "the the" with "the".
10056 * aarch64-tdep.c: Replace "the the" with "the".
10057
c24bdb02
KS
100582019-01-16 Keith Seitz <keiths@redhat.com>
10059
10060 PR gdb/23773
10061 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10062 <builder>: Rename to ..
10063 <m_builder>: ... this and make private.
10064 (dwarf2_cu::get_builder): New method. Change all users of
10065 `builder' to use this method.
10066 (dwarf2_start_symtab): Move to ...
10067 (dwarf2_cu::start_symtab): ... here. Update all callers
10068 (setup_type_unit_groups): Move to ...
10069 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10070 callers.
10071 (dwarf2_cu::reset_builder): New method.
10072 (process_full_compunit, process_full_type_unit): Use
10073 dwarf2_cu::reset_builder.
10074 (follow_die_offset): Record the ancestor CU if it is different
10075 from the followed DIE's CU.
10076 (follow_die_sig_1): Likewise.
10077
8d64371b
TT
100782019-01-15 Tom Tromey <tom@tromey.com>
10079
10080 * remote.c (class remote_state) <buf>: Now a char_vector.
10081 <buf_size>: Remove.
10082 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10083 parameter.
10084 (remote_target::getpkt_or_notif_sane_1)
10085 (remote_target::getpkt_sane)
10086 (remote_target::getpkt_or_notif_sane): Likewise.
10087 (class remote_target) <putpkt>: New overload.
10088 (remote_target::read_frame): Change type of "buf_p". Remove
10089 sizeof_p parameter.
10090 (packet_ok): New overload.
10091 (packet_check_result): New overload.
10092 Update all uses.
10093
bb277751
TT
100942019-01-14 Tom Tromey <tom@tromey.com>
10095
10096 * remote-notif.c (handle_notification, remote_notif_ack)
10097 (remote_notif_parse): Make "buf" const.
10098 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10099 const.
10100 (remote_notif_parse, remote_notif_ack, handle_notification):
10101 Likewise.
10102 * remote.c (remote_notif_stop_parse): Make "buf" const.
10103 (remote_target::remote_parse_stop_reply): Make "buf" const.
10104 (remote_notif_stop_ack): Make "buf" const.
10105
05be00a8
TT
101062019-01-14 Tom Tromey <tom@tromey.com>
10107
10108 * remote.c (remote_console_output): Make parameter const.
10109
491adeca
TT
101102019-01-14 Tom Tromey <tom@tromey.com>
10111
10112 * target-debug.h (target_debug_print_signals): Constify.
10113 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10114 * procfs.c (procfs_target::pass_signals): Update.
10115 * linux-nat.c (linux_nat_target::pass_signals): Update.
10116 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10117 * target-delegates.c: Rebuild.
10118 * remote.c (remote_target::program_signals): Update.
10119 (remote_target::pass_signals): Update.
10120 * target.c (target_pass_signals): Constify argument.
10121 (target_program_signals): Likewise.
10122 * target.h (struct target_ops) <pass_signals, program_signals>:
10123 Constify argument.
10124 (target_pass_signals, target_program_signals): Constify argument.
10125
bbd94648
TT
101262019-01-14 Tom Tromey <tom@tromey.com>
10127
10128 PR tui/28819:
10129 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10130
6f072a10
PFC
101312019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10132
10133 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10134 field.
10135 * rs6000-tdep.c: Include reggroups.h.
10136 (IS_V_ALIAS_PSEUDOREG): Define.
10137 (rs6000_register_name): Return names for the "vX" aliases.
10138 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10139 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10140 aliases. Call default_register_reggroup_p for all other
10141 pseudo-registers.
10142 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10143 New functions.
10144 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10145 Handle "vX" aliases.
10146 (v_alias_pseudo_register_collect): New function.
10147 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10148 (rs6000_gdbarch_init): Initialize "vX" aliases as
10149 pseudo-registers. Restore registration of
10150 rs6000_pseudo_register_reggroup_p with
10151 set_tdesc_pseudo_register_reggroup_p.
10152
1a782351
MF
101532019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10154
10155 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10156 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10157 set_gdbarch_num_pseudo_regs.
10158
d73cff18
PW
101592019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10160
10161 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10162 Remove arg prefixname, add do_set and do_show.
10163 Add member functions set_list and show_list.
10164 * cli/cli-style.c (class cli_style_option): Update accordingly.
10165 (style_set_list): Move to file scope.
10166 (style_show_list): Likewise.
10167 (set_style): Call help_list.
10168 (show_style): Call cmd_show_list.
10169 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10170 Update to use the new macro.
10171
60a90376
JB
101722019-10-12 Joel Brobecker <brobecker@adacore.com>
10173
10174 * ada-lang.c (_initialize_ada_language): Expand the help text
10175 for the "catch exception" command.
10176
9d7c67bf
PW
101772019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10178
10179 * symtab.c (matching_obj_sections): Initialize obj,
10180 declare it closer to its usage.
10181
7cf47dc4
TT
101822019-01-10 Tom Tromey <tom@tromey.com>
10183
10184 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10185 (basic_inf_threads_range): Remove.
10186 (inf_threads_range, inf_non_exited_threads_range)
10187 (safe_inf_threads_range): Use next_adapter.
10188
d3cb6808
KS
101892019-01-10 Keith Seitz <keiths@redhat.com>
10190
10191 PR gdb/23712
10192 PR symtab/23010
10193 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10194 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10195
63a20375
KS
101962019-01-10 Keith Seitz <keiths@redhat.com>
10197
10198 PR gdb/23712
10199 PR symtab/23010
10200 * dictionary.c (pending_to_vector): Remove.
10201 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10202 Remove _1 suffix, replacing functions of the same name. Update
10203 all callers.
10204 (dict_create_hashed, dict_create_hashed_expandable)
10205 (dict_create_linear, dict_create_linear_expandable, dict_free)
10206 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10207 Make functions static.
10208
b026f593
KS
102092019-01-10 Keith Seitz <keiths@redhat.com>
10210
10211 PR gdb/23712
10212 PR symtab/23010
10213 * dictionary.h (struct dictionary): Replace declaration with
10214 multidictionary.
10215 (dict_create_hashed, dict_create_hashed_expandable)
10216 (dict_create_linear, dict_create_linear_expandable)
10217 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10218 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10219 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10220 taking multidictionary argument.
10221 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10222 * block.h (struct block) <dict>: Change to multidictionary
10223 and rename `multidict'.
10224 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10225 symmisc.c: Update all dictionary references to multidictionary.
10226
c7748ee9
KS
102272019-01-10 Keith Seitz <keiths@redhat.com>
10228
10229 PR gdb/23712
10230 PR symtab/23010
10231 * dictionary.c: Include unordered_map.
10232 (pending_to_vector): New function.
10233 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10234 Rewrite the non-"_1" functions to take vector instead
10235 of linked list.
10236 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10237 "new" _1 versions of the same name.
10238 (multidictionary): Define.
10239 (std::hash<enum language): New definition.
10240 (collate_pending_symbols_by_language, mdict_create_hashed)
10241 (mdict_create_hashed_expandable, mdict_create_linear)
10242 (mdict_create_linear_expandable, mdict_free)
10243 (find_language_dictionary, create_new_language_dictionary)
10244 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10245 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10246 (mdict_size, mdict_empty): New functions.
10247 * dictionary.h (mdict_iterator): Define.
10248
67aa1f3c
PA
102492019-01-10 Pedro Alves <palves@redhat.com>
10250
10251 * breakpoint.c (read_uploaded_action)
10252 (create_tracepoint_from_upload): Adjust to use
10253 gdb::unique_xmalloc_ptr.
10254 * ctf.c (ctf_write_uploaded_tp):
10255 (SET_ARRAY_FIELD): Use emplace_back.
10256 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10257 * tracefile-tfile.c (tfile_write_uploaded_tp):
10258 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10259 gdb::unique_xmalloc_ptr.
10260 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10261 at_string, cond_string, cmd_strings>: Replace char pointers
10262 with gdb::unique_xmalloc_ptr.
10263
2f667667
PA
102642019-01-10 Pedro Alves <palves@redhat.com>
10265
10266 * solib-target.c (library_list_start_library): Don't xstrdup name.
10267
36cb7237
PA
102682019-01-10 Pedro Alves <palves@redhat.com>
10269
10270 * mdebugread.c (parse_partial_symbols): Use
10271 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10272
da584958
AB
102732019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10274
10275 * linux-fork.c (scoped_switch_fork_info)
10276 <~scoped_switch_fork_info>: Fix incorrect variable name.
10277
1ef8573c
AB
102782019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10279
10280 * linux-fork.c (scoped_switch_fork_info)
10281 <scoped_switch_fork_info>: Make explicit.
10282 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10283
8d7bcccb
TT
102842019-01-10 Tom Tromey <tom@tromey.com>
10285
10286 * objfiles.h (objfile::reset_psymtabs): Update.
10287 * objfiles.c (objfile::objfile): Update.
10288 * psymtab.h (psymtab_storage::obstack): Update.
10289 (psymtab_storage::m_obstack): Use gdb::optional.
10290 (class psymtab_storage): Update comment. Remove objfile
10291 parameter.
10292 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10293
b596a3c7
TT
102942019-01-10 Tom Tromey <tom@tromey.com>
10295
10296 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10297 <free_psymtabs>: Now private.
10298 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10299 (allocate_psymtab): Use new method.
10300
a9342b62
TT
103012019-01-10 Tom Tromey <tom@tromey.com>
10302
10303 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10304 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10305 * mdebugread.c (parse_partial_symbols): Use
10306 allocate_dependencies.
10307 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10308 allocate_dependencies.
10309 (process_psymtab_comp_unit_reader)
10310 (build_type_psymtab_dependencies): Likewise.
10311 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10312
5af70966
TT
103132019-01-10 Tom Tromey <tom@tromey.com>
10314
10315 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10316 PSYMBOL_SET_LANGUAGE.
10317 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10318
5923a04c
TT
103192019-01-10 Tom Tromey <tom@tromey.com>
10320
10321 * psymtab.h (psymtab_storage::obstack): New method.
10322 <m_obstack>: Rename from obstack; now private.
10323 * psymtab.c (psymtab_storage): Update.
10324 * dwarf2read.c (create_addrmap_from_index)
10325 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10326 Update.
10327
6d6a12bf
TT
103282019-01-10 Tom Tromey <tom@tromey.com>
10329
10330 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10331 * objfiles.h (objfile::reset_psymtabs): New method.
10332
d320c2b5
TT
103332019-01-10 Tom Tromey <tom@tromey.com>
10334
10335 * symmisc.c (print_symbol_bcache_statistics): Update.
10336 (print_objfile_statistics): Update.
10337 * symfile.c (reread_symbols): Update.
10338 * psymtab.h (class psymtab_storage): New.
10339 * psymtab.c (psymtab_storage): New constructor.
10340 (~psymtab_storage): New destructor.
10341 (require_partial_symbols): Update.
10342 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10343 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10344 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10345 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10346 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10347 (start_psymtab_common, end_psymtab_common)
10348 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10349 (allocate_psymtab): Update.
10350 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10351 Update.
10352 (dump_psymtab_addrmap, maintenance_print_psymbols)
10353 (maintenance_check_psymtabs): Update.
10354 (class objfile_psymtabs): Move to objfiles.h.
10355 * psympriv.h (discard_psymtab): Now inline.
10356 (psymtab_discarder::psymtab_discarder): Update.
10357 (psymtab_discarder::~psymtab_discarder): Update.
10358 (ALL_OBJFILE_PSYMTABS): Rewrite.
10359 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10360 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10361 Remove fields.
10362 <partial_symtabs>: New field.
10363 (class objfile_psymtabs): Move from psymtab.h. Update.
10364 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10365 psymbol_cache.
10366 (objfile::~objfile): Don't destroy psymbol_cache.
10367 * mdebugread.c (parse_partial_symbols): Update.
10368 * dwarf2read.c (create_addrmap_from_index)
10369 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10370 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10371 (add_partial_subprogram, dwarf2_ranges_read): Update.
10372 * dwarf-index-write.c (write_address_map)
10373 (write_one_signatured_type, recursively_write_psymbols)
10374 (class debug_names, class debug_names, write_psymtabs_to_index):
10375 Update.
10376
1d94a5a3
TT
103772019-01-10 Tom Tromey <tom@tromey.com>
10378
10379 * symtab.h (SYMBOL_SET_NAMES): Update.
10380 (symbol_set_names): Update.
10381 (MSYMBOL_SET_NAMES): Update.
10382 * symtab.c (symbol_set_names): Change argument to be an
10383 objfile_per_bfd_storage.
10384 * psymtab.c (add_psymbol_to_bcache): Update.
10385 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10386
0f14768a
TT
103872019-01-10 Tom Tromey <tom@tromey.com>
10388
10389 * symtab.c (create_demangled_names_hash): Change argument to be an
10390 objfile_per_bfd_storage.
10391 (symbol_set_names): Update.
10392
6eee24ce
TT
103932019-01-10 Tom Tromey <tom@tromey.com>
10394
10395 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10396 init_psymbol_list.
10397 * psymtab.c (init_psymbol_list): Do nothing if already called.
10398 * psympriv.h (init_psymbol_list): Add comment.
10399 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10400 init_psymbol_list.
10401 * dbxread.c (dbx_symfile_read): Unconditionally call
10402 init_psymbol_list.
10403
75aedd27
TT
104042019-01-10 Tom Tromey <tom@tromey.com>
10405
10406 * xcoffread.c (scan_xcoff_symtab): Update.
10407 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10408 "where".
10409 * mdebugread.c (parse_partial_symbols)
10410 (handle_psymbol_enumerators): Update.
10411 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10412 * dbxread.c (read_dbx_symtab): Update.
10413 * psympriv.h (psymbol_placement): New enum.
10414 (add_psymbol_to_list): Update.
10415
939652a5
TT
104162019-01-10 Tom Tromey <tom@tromey.com>
10417
10418 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10419 static_psymbols parameters.
10420 (scan_xcoff_symtab): Update.
10421 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10422 static_psymbols parameters.
10423 * psympriv.h (start_psymtab_common): Update.
10424 * mdebugread.c (parse_partial_symbols): Update.
10425 * dwarf2read.c (create_partial_symtab): Update.
10426 * dbxread.c (read_dbx_symtab): Update.
10427 (start_psymtab): Remove global_psymbols and static_psymbols
10428 parameters.
10429
baa62830
TT
104302019-01-10 Tom Tromey <tom@tromey.com>
10431
10432 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10433 * psymtab.c (allocate_psymtab): Add comment.
10434 * psympriv.h (allocate_psymtab): Add comment.
10435 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10436 initializations.
10437 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10438
0e8f53ba
TT
104392019-01-10 Tom Tromey <tom@tromey.com>
10440
10441 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10442 Don't declare.
10443 * mipsread.c: Include mdebugread.h.
10444 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10445 Declare.
10446 * elfread.c: Include mdebugread.h.
10447
b22a7c6a
TT
104482019-01-09 Tom Tromey <tom@tromey.com>
10449
10450 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10451 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10452 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10453 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10454 (psym_lookup_symbol, psym_find_last_source_symtab)
10455 (psym_forget_cached_source_info, psym_print_stats)
10456 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10457 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10458 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10459 (psym_find_compunit_symtab_by_address)
10460 (maintenance_print_psymbols, maintenance_info_psymtabs)
10461 (maintenance_check_psymtabs): Use ranged for.
10462 * psymtab.h (class objfile_psymtabs): New.
10463 (require_partial_symbols): Return objfile_psymtabs.
10464 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10465
3b9d3ac2
TT
104662019-01-09 Tom Tromey <tom@tromey.com>
10467
10468 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10469 (find_pc_mapped_section, list_overlays_command)
10470 (map_overlay_command, unmap_overlay_command)
10471 (simple_overlay_update): Use all_objfiles.
10472 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10473 * printcmd.c (info_symbol_command): Use all_objfiles.
10474 * objfiles.h (ALL_OBJSECTIONS): Remove.
10475 * maint.c (maintenance_translate_address): Use all_objfiles.
10476 * gcore.c (gcore_create_callback): Use all_objfiles.
10477 (objfile_find_memory_regions): Likewise.
10478
8b31193a
TT
104792019-01-09 Tom Tromey <tom@tromey.com>
10480
10481 * symtab.c (find_line_symtab, info_sources_command)
10482 (make_source_files_completion_list): Use objfile_compunits.
10483 * source.c (select_source_symtab): Use objfile_compunits.
10484 * objfiles.h (struct objfile): Update comment.
10485 (ALL_OBJFILES): Remove.
10486 (ALL_FILETABS): Remove.
10487 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10488 objfile_compunits.
10489
d5da8b3c
TT
104902019-01-09 Tom Tromey <tom@tromey.com>
10491
10492 * symmisc.c (print_objfile_statistics, dump_objfile)
10493 (maintenance_print_symbols): Use compunit_filetabs.
10494 * source.c (forget_cached_source_info_for_objfile): Use
10495 compunit_filetabs.
10496 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10497 (ALL_FILETABS): Use compunit_filetabs.
10498 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10499 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10500
5accd1a0
TT
105012019-01-09 Tom Tromey <tom@tromey.com>
10502
10503 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10504 (compunit_filetabs): New.
10505 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10506 compunit_filetabs.
10507 (info_sources_command, make_source_files_completion_list): Remove
10508 declaration.
10509 * symmisc.c (print_objfile_statistics, dump_objfile)
10510 (maintenance_print_symbols): Remove declaration.
10511 (maintenance_info_symtabs): Use compunit_filetabs.
10512 (maintenance_info_line_tables): Likewise.
10513 * source.c (select_source_symtab): Change local variable name.
10514 (forget_cached_source_info_for_objfile): Remove declaration.
10515 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10516 * objfiles.c (objfile_relocate1): Remove declaration.
10517 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10518 declaration.
10519 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10520 * coffread.c (coff_symtab_read): Remove declaration.
10521 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10522 compunit_filetabs.
10523
d8aeb77f
TT
105242019-01-09 Tom Tromey <tom@tromey.com>
10525
10526 * symtab.c (lookup_objfile_from_block)
10527 (find_pc_sect_compunit_symtab, search_symbols)
10528 (default_collect_symbol_completion_matches_break_on): Use
10529 objfile_compunits.
10530 * objfiles.h (ALL_COMPUNITS): Remove.
10531 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10532 * cp-support.c (add_symbol_overload_list_qualified): Use
10533 objfile_compunits.
10534 * ada-lang.c (ada_collect_symbol_completion_matches)
10535 (ada_add_global_exceptions): Use objfile_compunits.
10536
592553c4
TT
105372019-01-09 Tom Tromey <tom@tromey.com>
10538
10539 * source.c (select_source_symtab)
10540 (forget_cached_source_info_for_objfile): Remove declaration.
10541 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10542 declaration.
10543 * maint.c (count_symtabs_and_blocks): Remove declaration.
10544 * cp-support.c (add_symbol_overload_list_qualified): Remove
10545 declaration.
10546 * coffread.c (coff_symtab_read): Remove declaration.
10547 * symtab.c (lookup_symbol_in_objfile_symtabs)
10548 (basic_lookup_transparent_type_1): Use objfile_compunits.
10549 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10550 (info_sources_command, search_symbols)
10551 (default_collect_symbol_completion_matches_break_on)
10552 (make_source_files_completion_list): Remove declaration.
10553 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10554 (ada_collect_symbol_completion_matches)
10555 (ada_add_global_exceptions): Remove declaration.
10556 * linespec.c (iterate_over_all_matching_symtabs): Use
10557 objfile_compunits.
10558 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10559 (class objfile_compunits): New.
10560 (ALL_COMPUNITS): Use objfile_compunits.
10561 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10562 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10563 objfile_compunits.
10564 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10565
5325b9bf
TT
105662019-01-09 Tom Tromey <tom@tromey.com>
10567
10568 * symtab.c (search_symbols)
10569 (default_collect_symbol_completion_matches_break_on): Use
10570 objfile_msymbols.
10571 * ada-lang.c (ada_lookup_simple_minsym)
10572 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10573 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10574 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10575 objfile_msymbols.
10576 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10577 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10578 * objc-lang.c (find_methods): Use objfile_msymbols.
10579 (info_selectors_command, info_classes_command): Likewise.
10580 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10581 * objfiles.h (class objfile_msymbols): New.
10582 (ALL_OBJFILE_MSYMBOLS): Remove.
10583 (ALL_MSYMBOLS): Remove.
10584
cac85af2
TT
105852019-01-09 Tom Tromey <tom@tromey.com>
10586
10587 * common/next-iterator.h (next_adapter): Add Iterator template
10588 parameter.
10589 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10590 (class all_objfiles_safe): New.
10591 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10592 * objfiles.c (put_objfile_before): Update comment.
10593 (add_separate_debug_objfile): Likewise.
10594 (free_all_objfiles): Use all_objfiles_safe.
10595 (objfile_purge_solibs): Likewise.
10596
aed57c53
TT
105972019-01-09 Tom Tromey <tom@tromey.com>
10598
10599 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10600 (expand_symtab_containing_pc, lookup_static_symbol)
10601 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10602 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10603 all_objfiles.
10604 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10605 * breakpoint.c (create_overlay_event_breakpoint)
10606 (create_longjmp_master_breakpoint)
10607 (create_std_terminate_master_breakpoint)
10608 (create_exception_master_breakpoint): Use all_objfiles.
10609 * linux-thread-db.c (try_thread_db_load_from_pdir)
10610 (has_libpthread): Use all_objfiles.
10611 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10612 * linespec.c (iterate_over_all_matching_symtabs)
10613 (search_minsyms_for_name): Use all_objfiles.
10614 * maint.c (maintenance_info_sections): Use all_objfiles.
10615 * main.c (captured_main_1): Use all_objfiles.
10616 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10617 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10618 * guile/scm-pretty-print.c
10619 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10620 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10621 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10622 (maintenance_print_msymbols): Use all_objfiles.
10623 * source.c (select_source_symtab): Use all_objfiles.
10624 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10625 * symfile.c (remove_symbol_file_command)
10626 (expand_symtabs_matching, map_symbol_filenames): Use
10627 all_objfiles.
10628 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10629 all_objfiles.
10630 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10631 * objc-lang.c (find_methods): Use all_objfiles.
10632 * objfiles.c (have_partial_symbols, have_full_symbols)
10633 (have_minimal_symbols, qsort_cmp)
10634 (default_iterate_over_objfiles_in_search_order): Use
10635 all_objfiles.
10636 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10637 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10638 (maintenance_check_psymtabs): Use all_objfiles.
10639 (ALL_PSYMTABS): Remove.
10640 * compile/compile-object-run.c (do_module_cleanup): Use
10641 all_objfiles.
10642 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10643 * cp-support.c (add_symbol_overload_list_qualified): Use
10644 all_objfiles.
10645 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10646 Use all_objfiles.
10647 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10648 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10649 all_objfiles.
10650 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10651 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10652 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10653 Uses all_objfiles.
10654 * solib.c (solib_read_symbols): Use all_objfiles
10655
99d89cde
TT
106562019-01-09 Tom Tromey <tom@tromey.com>
10657
10658 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10659 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10660 all_objfiles.
10661 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10662 * symmisc.c (print_symbol_bcache_statistics)
10663 (print_objfile_statistics, maintenance_print_objfiles)
10664 (maintenance_info_symtabs, maintenance_check_symtabs)
10665 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10666 all_objfiles.
10667 * source.c (forget_cached_source_info): Use all_objfiles.
10668 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10669 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10670 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10671 * objfiles.c (update_section_map): Use all_objfiles.
10672 (shared_objfile_contains_address_p): Likewise.
10673 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10674 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10675
21708325
TT
106762019-01-09 Tom Tromey <tom@tromey.com>
10677
10678 * common/next-iterator.h: New file.
10679 * objfiles.h (class all_objfiles): New.
10680 (struct objfile_iterator): New.
10681
669e09f6
PW
106822019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10683
10684 * NEWS: Move the description of the changed "frame", "select-frame",
10685 and "info frame" commands to the Changed commands section.
10686
041be526
SM
106872019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10688
10689 * gdbtypes.c (check_stub_method_group): Remove handling of old
10690 mangling schemes.
10691 * linespec.c (find_methods): Likewise.
10692 * stabsread.c (read_member_functions): Likewise.
10693 * valops.c (search_struct_method): Likewise.
10694 (value_struct_elt_for_reference): Likewise.
10695 * NEWS: Mention this change.
10696
0e2a2133
AB
106972019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10698
10699 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10700 print_source_lines.
10701 * source.c (print_source_lines_base): Update line number check.
10702 (print_source_lines): New function.
10703 (source_lines_range::source_lines_range): New function.
10704 * source.h (class source_lines_range): New class.
10705 (print_source_lines): New declaration.
10706
1055a3b4
PW
107072019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10708
10709 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10710
cfeadda5
TT
107112019-01-08 Tom Tromey <tom@tromey.com>
10712 Simon Marchi <simon.marchi@ericsson.com>
10713
10714 PR gdb/24060
10715 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10716 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10717 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10718 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10719 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10720 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10721
583068ca
AB
107222019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10723
10724 * source.c (select_source_symtab): Move header comment to
10725 declaration in source.h.
10726 (forget_cached_source_info_for_objfile): Likewise.
10727 (forget_cached_source_info): Likewise.
10728 (identify_source_line): Likewise.
10729 * source.h (identify_source_line): Move declaration from symtab.h
10730 and add comment from source.c
10731 (print_source_lines): Likewise.
10732 (forget_cached_source_info_for_objfile): Likewise.
10733 (forget_cached_source_info): Likewise.
10734 (select_source_symtab): Likewise.
10735 (enum print_source_lines_flag): Move definition from symtab.h.
10736 * symtab.h (identify_source_line): Move declaration to source.h.
10737 (print_source_lines): Likewise.
10738 (forget_cached_source_info_for_objfile): Likewise.
10739 (forget_cached_source_info): Likewise.
10740 (select_source_symtab): Likewise.
10741 (enum print_source_lines_flag): Move definition to source.h.
10742 * tui/tui-hooks.c: Add 'source.h' include.
10743
ec98a4ad
AB
107442019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10745
10746 * source.c (print_source_lines_base): Handle requests to print
10747 reverse line number sequences, and guard against empty lines
10748 string.
10749
62ea19c1
AB
107502019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10751
10752 * source.c (print_source_lines_base): Fix skip of '\r' if next
10753 character is '\n'.
10754
9d30e1fd
TT
107552019-01-06 Tom Tromey <tom@tromey.com>
10756
10757 * c-exp.y (struct c_parse_state) <macro_original_text,
10758 expansion_obstack>: New member.
10759 (macro_original_text, expansion_obstack): Remove globals.
10760 (scan_macro_expansion, scanning_macro_expansion)
10761 (finished_macro_expansion): Update.
10762 (scan_macro_cleanup): Remove.
10763 (yylex, c_parse): Update.
10764
c65bac38
TT
107652019-01-06 Tom Tromey <tom@tromey.com>
10766
10767 * c-exp.y (struct c_parse_state) <strings>: New member.
10768 (operator_stoken): Update.
10769
02e12e38
TT
107702019-01-06 Tom Tromey <tom@tromey.com>
10771
10772 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10773 (union type_stack_elt) <typelist_val>: Now a pointer to
10774 std::vector.
10775 (type_stack_cleanup): Don't declare.
10776 (push_typelist): Update.
10777 * parse.c (pop_typelist): Return a std::vector.
10778 (push_typelist): Take a std::vector.
10779 (follow_types): Update. Do not free args.
10780 (type_stack_cleanup): Remove.
10781 * c-exp.y (struct c_parse_state): New.
10782 (cpstate): New global.
10783 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10784 (nonempty_typelist): Update.
10785 (func_mod): Create a new vector.
10786 (c_parse): Create a c_parse_state.
10787 (check_parameter_typelist): Do not delete params.
10788 (function_method): Update. Do not delete type_list.
10789
f097f5ad
TT
107902019-01-06 Tom Tromey <tom@tromey.com>
10791
10792 PR gdb/28155:
10793 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10794 check_typedef.
10795 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10796 (print_return_value): Likewise.
10797
d2adf9f1
TT
107982019-01-05 Tom Tromey <tom@tromey.com>
10799
10800 * contrib/cleanup_check.py: Remove.
10801 * contrib/gcc-with-excheck: Remove.
10802 * contrib/exsummary.py: Remove.
10803 * contrib/excheck.py: Remove.
10804
2eab46b1
JB
108052019-01-05 Joel Brobecker <brobecker@adacore.com>
10806
10807 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10808 NULL. Initialize tpprev to NULL instead of assigning it
10809 to NULL on the next statement.
10810 * windows-nat.c (windows_delete_thread): Remove check for
10811 main_thread_id before printing thread exit notifications.
10812 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10813 Remove thread ID check against main_thread_id.
10814 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10815 windows_delete_thread.
10816 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10817
48c5e7e2
TT
108182019-01-04 Tom Tromey <tom@tromey.com>
10819
10820 * compile/compile.c (_initialize_compile): Use upper case for
10821 metasyntactic variables.
10822 * symmisc.c (_initialize_symmisc): Use upper case for
10823 metasyntactic variables.
10824 * psymtab.c (_initialize_psymtab): Use upper case for
10825 metasyntactic variables.
10826 * demangle.c (demangle_command): Use upper case for metasyntactic
10827 variables.
10828 (_initialize_demangler): Likewise.
10829 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10830 variables.
10831
986041cd
TT
108322019-01-03 Tom Tromey <tom@tromey.com>
10833
10834 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10835
7c711119
TT
108362019-01-03 Tom Tromey <tom@tromey.com>
10837
10838 * python/py-symtab.c (salpy_str): Update.
10839 (struct salpy_sal_object) <symtab>: Now a PyObject.
10840 (salpy_dealloc): Update.
10841 (del_objfile_sal): Use gdbpy_ref.
10842
1b20edf0
TT
108432019-01-03 Tom Tromey <tom@tromey.com>
10844
10845 * python/py-type.c (convert_field): Use new_reference. Return
10846 gdbpy_ref.
10847 (make_fielditem): Return gdbpy_ref.
10848 (typy_fields): Update.
10849 (typy_getitem): Update.
10850 (field_name): Return gdbpy_ref. Use new_reference.
10851 (typy_iterator_iternext): Update.
10852
ea41325b
TT
108532019-01-03 Tom Tromey <tom@tromey.com>
10854
10855 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10856
2a3c71d6
TT
108572019-01-03 Tom Tromey <tom@tromey.com>
10858
10859 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10860 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10861 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10862 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10863 (pspy_set_type_printers): Likewise.
10864 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10865 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10866 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10867 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10868 (objfpy_set_type_printers): Likewise.
10869
5c329e6a
TT
108702019-01-03 Tom Tromey <tom@tromey.com>
10871
10872 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10873 (gdbpy_print_stack): Use gdbpy_err_fetch.
10874 * python/python-internal.h (class gdbpy_err_fetch): New class.
10875 (class gdbpy_enter) <m_error_type, m_error_value,
10876 m_error_traceback>: Remove.
10877 <m_error>: New member.
10878 (gdbpy_exception_to_string): Don't declare.
10879 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
10880 * python/py-value.c (convert_value_from_python): Use
10881 gdbpy_err_fetch.
10882 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
10883 gdbpy_exception_to_string.
10884 (gdbpy_handle_exception): Use gdbpy_err_fetch.
10885 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
10886 gdbpy_err_fetch.
10887
169bb27b
AB
108882019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10889
10890 * linux-nat.c (delete_lwp_cleanup): Delete.
10891 (struct lwp_deleter): New struct.
10892 (lwp_info_up): New typedef.
10893 (linux_nat_target::follow_fork): Delete cleanup, and make use of
10894 lwp_info_up.
10895
a07c8880
AB
108962019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10897
10898 * linux-fork.c (class scoped_switch_fork_info): New class.
10899 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
10900
26089c49
AB
109012019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10902
10903 * valops.c (find_overload_match): Remove use of null_cleanup, and
10904 calls to do_cleanups.
10905
06d3e5b0
AB
109062019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10907
10908 * compile/compile-cplus-types.c
10909 (compile_cplus_instance::decl_name): Handle changes to
10910 cp_func_name.
10911 * cp-support.c (cp_func_name): Update header comment, update
10912 return type.
10913 * cp-support.h (cp_func_name): Update return type in declaration.
10914 * valops.c (find_overload_match): Move temp_func local to top
10915 level of function and change its type. Use temp_func to hold and
10916 delete temporary string obtained from cp_func_name.
10917
66644cd3
AB
109182019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10919
10920 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
10921 gdb::char_vector, remove cleanup, and update uses of `msg`.
10922
592d8c0a
JW
109232019-01-03 Jim Wilson <jimw@sifive.com>
10924
10925 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
10926
c55d06ec
TT
109272019-01-02 Tom Tromey <tom@tromey.com>
10928
10929 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
10930 (tdesc_parse_xml): Remove cleanups.
10931 * target-descriptions.h (make_cleanup_free_target_description):
10932 Don't declare.
10933 (target_desc_deleter): New struct.
10934 (target_desc_up): New typedef.
10935 * target-descriptions.c (target_desc_deleter::operator()): Rename
10936 from free_target_description.
10937 (make_cleanup_free_target_description): Remove.
10938
3a6ae42d
TT
109392019-01-02 Tom Tromey <tom@tromey.com>
10940
10941 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
10942 constructor, destructor.
10943 (linespec_parser): Remove typedef.
10944 (~linespec_parser): Rename from linespec_parser_delete.
10945 (linespec_lex_to_end, linespec_complete_label)
10946 (linespec_complete): Update.
10947 (decode_line_full): Remove cleanups.
10948 (decode_line_1): Update.
10949
61fd3e73
TT
109502019-01-02 Tom Tromey <tom@tromey.com>
10951
10952 * python/python-internal.h (inferior_to_inferior_object): Change
10953 return type.
10954 * python/py-exitedevent.c (create_exited_event_object): Update.
10955 * python/py-inferior.c (inferior_to_inferior_object): Return
10956 gdbpy_ref.
10957 (python_new_inferior, python_inferior_deleted)
10958 (thread_to_thread_object, delete_thread_object)
10959 (build_inferior_list, gdbpy_selected_inferior): Update.
10960 * python/py-infthread.c (create_thread_object): Update. Also fail
10961 if inferior_to_inferior_object fails.
10962
d20172fc
SM
109632019-01-02 Simon Marchi <simon.marchi@ericsson.com>
10964
10965 * inferior.h (class inferior) <displaced_step_state>: New field.
10966 * infrun.h (struct displaced_step_state): Move here from
10967 infrun.c. Initialize fields, add constructor.
10968 <inf>: Remove field.
10969 <reset>: New method.
10970 * infrun.c (struct displaced_step_inferior_state): Move to
10971 infrun.h.
10972 (displaced_step_inferior_states): Remove.
10973 (get_displaced_stepping_state): Adust.
10974 (displaced_step_in_progress_any_inferior): Adjust.
10975 (displaced_step_in_progress_thread): Adjust.
10976 (displaced_step_in_progress): Adjust.
10977 (add_displaced_stepping_state): Remove.
10978 (get_displaced_step_closure_by_addr): Adjust.
10979 (remove_displaced_stepping_state): Remove.
10980 (infrun_inferior_exit): Call displaced_step_state.reset.
10981 (use_displaced_stepping): Don't check for NULL.
10982 (displaced_step_prepare_throw): Call
10983 get_displaced_stepping_state.
10984 (displaced_step_fixup): Don't check for NULL.
10985 (prepare_for_detach): Don't check for NULL.
10986
e3319240
PW
109872019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10988
10989 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
10990 in case of call that did not complete.
10991
5d36dfb9
AU
109922019-01-02 Andrey Utkin <autkin@undo.io>
10993
10994 * symfile.c (find_separate_debug_file): Fix search of debug files for
10995 remote debuggee.
10996
8833fbf0
TT
109972019-01-02 Tom Tromey <tom@tromey.com>
10998
10999 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11000 indentation.
11001 * python/py-frame.c (frapy_older): Remove cast.
11002 (frapy_newer): Likewise.
11003 * python/py-breakpoint.c (local_setattro): Remove cast.
11004 * python/py-arch.c (archpy_name): Remove local variable.
11005 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11006
4ada3dfd
JB
110072019-01-02 Joel Brobecker <brobecker@adacore.com>
11008
11009 * unittests/basic_string_view/element_access/char/empty.cc:
11010 Fix year range in copyright header.
11011
113b7b81
AB
110122019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11013
11014 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11015 Delete.
11016 <operator==>: Update with for removed field.
11017 <hash>: Likewise.
11018 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11019 <isa_features>: ...this.
11020 <abi_features>: New field.
11021 (riscv_isa_flen): Update comment.
11022 (riscv_abi_xlen): New declaration.
11023 (riscv_abi_flen): New declaration.
11024 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11025 isa_features.
11026 (riscv_abi_xlen): New function.
11027 (riscv_isa_flen): Update to get answer from isa_features.
11028 (riscv_abi_flen): New function.
11029 (riscv_has_fp_abi): Update to get answer from abi_features.
11030 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11031 xlen and flen.
11032 (riscv_call_info) <xlen, flen>: Update comment.
11033 (riscv_call_arg_struct): Remove invalid assertions
11034 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11035 is removed.
11036 (riscv_gdbarch_init): Gather isa features and abi features
11037 separately, ensure both match on the gdbarch when reusing an old
11038 gdbarch. Relax an error check to allow 32-bit abi float to run on
11039 a target with 64-bit float hardware.
11040
b18ca514
PW
110412019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11042
11043 * source.c (search_command_helper): Stop reverse search
11044 when line 1 has been searched.
11045
ec70d8db
PW
110462019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11047
11048 * record-full.c (record_full_base_target::close): Rewrite
11049 record_full_core_buf_list free logic.
11050
5b38f9c1
PW
110512019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11052
11053 * break-catch-syscall.c (print_one_catch_syscall): xfree
11054 the last text.
11055
66d91b39
JB
110562019-01-01 Joel Brobecker <brobecker@adacore.com>
11057
11058 * top.c (print_gdb_version): Update Copyright year in version
11059 message.
11060
42a4f53d
JB
110612019-01-01 Joel Brobecker <brobecker@adacore.com>
11062
11063 Update copyright year range in all GDB files.
11064
7e955d83 110652019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11066
5bbd631d 11067 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11068
5bbd631d 11069For older changes see ChangeLog-2018.
c906108c
SS
11070\f
11071Local Variables:
11072mode: change-log
11073left-margin: 8
11074fill-column: 74
11075version-control: never
57da7796 11076coding: utf-8
c906108c 11077End:
5bbd631d 11078
This page took 3.027193 seconds and 4 git commands to generate.