un-XFAIL under Clang tests using labels
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ead0e69a
CB
12019-09-06 Christian Biesinger <cbiesinger@google.com>
2
3 * defs.h (relocate_gdb_directory): Change int to bool in
4 signature and rename flag to relocatable.
5 * main.c (relocate_path): Likewise.
6 (relocate_gdb_directory): Likewise.
7
b16c44de
AM
82019-09-06 Alan Modra <amodra@gmail.com>
9
10 * coffread.c (coff_symfile_read): Constify filename variable.
11 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
12 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
13 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
14 * solib.c (reload_shared_libraries_1): Likewise.
15 * symfile.c (reread_symbols): Likewise.
16 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
17 * solib-darwin.c (darwin_bfd_open): Likewise.
18 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
19
06ff036e
AB
202019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * psymtab.c (print_partial_symbols): Handle missing domain_enum
23 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
24
4e962e74
TT
252019-09-03 Tom Tromey <tromey@adacore.com>
26
27 * ada-valprint.c (ada_val_print_num): Don't recurse for range
28 types.
29 (has_negatives): Unbias a range type bound.
30 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
31 * gdbtypes.c (operator==): Handle new field.
32 (create_range_type): Add "bias" parameter.
33 (create_static_range_type, resolve_dynamic_range): Update.
34 * gdbtypes.h (struct range_bounds) <bias>: New member.
35 (create_range_type): Add bias parameter.
36 * printcmd.c (print_scalar_formatted): Unbias range types.
37 * value.c (unpack_long): Unbias range types.
38 (pack_long): Bias range types.
39
d90b8f26
AH
402019-09-02 Alan Hayward <alan.hayward@arm.com>
41
42 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
43 probe arguments.
44
fe01123e
AH
452019-09-02 Alan Hayward <alan.hayward@arm.com>
46
47 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
48 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
49 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
50 (compile_probe_arg): Likewise.
51 * probe.h (get_argument_count): Likewise.
52 * solib-svr4.c (solib_event_probe_action): Likewise.
53 * stap-probe.c (stap_probe::get_argument_count): Likewise.
54
e661ef01
AH
552019-09-02 Alan Hayward <alan.hayward@arm.com>
56
57 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
58 code to here...
59 (svr4_create_solib_event_breakpoints): ...from here.
60
47a536d9
SDJ
612019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
62
63 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
64 suffix from warning message.
65
d6a00eba
TT
662019-08-30 Tom Tromey <tom@tromey.com>
67
68 * tui/tui-winsource.h (struct tui_source_window_base)
69 <refresh_all>: Don't declare.
70 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
71 Remove.
72 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
73 tui_show_locator_content.
74 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
75 declare.
76 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
77 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
78 declare.
79
55b2657b
TT
802019-08-30 Tom Tromey <tom@tromey.com>
81
82 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
83
12a8555a
TT
842019-08-30 Tom Tromey <tom@tromey.com>
85
86 * tui/tui-stack.c (_initialize_tui_stack): Move later.
87 Remove unnecessary forward declarations.
88
900ac242
TT
892019-08-30 Tom Tromey <tom@tromey.com>
90
91 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
92 rerender.
93 (tui_update_locator_fullname, tui_show_frame_info): Don't call
94 tui_show_locator_content.
95
99ab33fb
TT
962019-08-30 Tom Tromey <tom@tromey.com>
97
98 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
99 (tui_locator_window::rerender): Rewrite using body of previous
100 tui_show_locator_content.
101
e594a5d1
TT
1022019-08-30 Tom Tromey <tom@tromey.com>
103
104 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
105 set_locator_fullname>: New methods.
106 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
107 Rename from tui_set_locator_fullname.
108 (tui_locator_window::set_locator_info): Rename from
109 tui_set_locator_info. Return bool.
110 (tui_update_locator_fullname, tui_show_frame_info): Update.
111
715bb467
TT
1122019-08-30 Tom Tromey <tom@tromey.com>
113
114 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
115
772f3f03
TT
1162019-08-30 Tom Tromey <tom@tromey.com>
117
118 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
119 call touchwin.
120
108e13ab
TT
1212019-08-30 Tom Tromey <tom@tromey.com>
122
123 * tui/tui-wingeneral.c (box_win): Assume win_info and
124 win_info->handle cannot be NULL.
125
cdaa6eb4
TT
1262019-08-30 Tom Tromey <tom@tromey.com>
127
128 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
129 refresh_window>: Declare.
130 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
131 resize.
132 (tui_data_item_window::rerender): Rename from
133 tui_display_register.
134 (tui_data_item_window::refresh_window): New method.
135 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
136 no-op.
137
89df7f90
TT
1382019-08-30 Tom Tromey <tom@tromey.com>
139
140 * tui/tui-regs.h (struct tui_data_window) <regs_content,
141 regs_column_count, current_group>: Move later. Now private.
142 <get_current_group>: New method.
143 * tui/tui-regs.c (tui_reg_command): Update.
144 * tui/tui-layout.c (tui_set_layout): Update.
145
1bf2866a
TT
1462019-08-30 Tom Tromey <tom@tromey.com>
147
148 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
149 (tui_data_window::rerender): Don't call
150 check_and_display_highlight_if_needed.
151 (tui_data_window::refresh_all): Remove call to
152 erase_data_content.
153
0670413d
TT
1542019-08-30 Tom Tromey <tom@tromey.com>
155
156 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
157 (tui_data_window::display_registers_from)
158 (tui_data_window::display_reg_element_at_line)
159 (tui_data_window::display_registers_from_line): Remove checks of
160 "empty".
161
18bb55c7
TT
1622019-08-30 Tom Tromey <tom@tromey.com>
163
164 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
165 Don't declare.
166 * tui/tui-regs.c (tui_data_window::show_registers): Call
167 rerender.
168 (tui_data_window::rerender): Rename from display_all_data.
169 (tui_data_window::rerender): Remove old implementation.
170
1f6d2f10
TT
1712019-08-30 Tom Tromey <tom@tromey.com>
172
173 * tui/tui-regs.c (tui_data_window::display_all_data): Change
174 text.
175 * tui/tui-data.h (NO_DATA_STRING): Remove define.
176
16d01f9c
BW
1772019-08-29 Bernhard Wodok <barto@gmx.net>
178 Sergio Durigan Junior <sergiodj@redhat.com>
179
180 PR win32/24284
181 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
182
d8f27c60
AB
1832019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
184
185 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
186 when searching for types.
187
1f20c35e
AB
1882019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * f-lang.c (f_language_defn): Use f_print_typedef.
191 * f-lang.h (f_print_typedef): Declare.
192 * f-typeprint.c (f_print_typedef): Define.
193
550105b7
CB
1942019-08-27 Christian Biesinger <cbiesinger@google.com>
195
196 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
197
4acfdd20
AB
1982019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
199
200 * cli/cli-utils.c (info_print_options_defs): Delete.
201 (make_info_print_options_def_group): Delete.
202 (extract_info_print_options): Delete.
203 (info_print_command_completer): Delete.
204 (info_print_args_help): Add extra parameter, and optionally
205 include text about -n flag.
206 * cli/cli-utils.h (struct info_print_options): Delete.
207 (extract_info_print_options): Delete declaration.
208 (info_print_command_completer): Delete declaration.
209 (info_print_args_help): Add extra parameter, extend header
210 comment.
211 * python/python.c (gdbpy_rbreak): Pass additional parameter to
212 search_symbols.
213 * stack.c (struct info_print_options): New type.
214 (info_print_options_defs): New file scoped variable.
215 (make_info_print_options_def_group): New static function.
216 (info_print_command_completer): New static function.
217 (info_locals_command): Update to use new local functions.
218 (info_args_command): Likewise.
219 (_initialize_stack): Add extra parameter to calls to
220 info_print_args_help.
221 * symtab.c (search_symbols): Add extra parameter, use this to
222 possibly excluse non-debug symbols.
223 (symtab_symbol_info): Add extra parameter, which is passed on to
224 search_symbols.
225 (struct info_print_options): New type.
226 (info_print_options_defs): New file scoped variable.
227 (make_info_print_options_def_group): New static function.
228 (info_print_command_completer): New static function.
229 (info_variables_command): Update to use local functions, and pass
230 extra parameter through to symtab_symbol_info.
231 (info_functions_command): Likewise.
232 (info_types_command): Pass additional argument through to
233 symtab_symbol_info.
234 (rbreak_command): Pass extra argument to search_symbols.
235 (_initialize_symtab): Add extra arguments for calls to
236 info_print_args_help, and update help text for 'info variables',
237 'whereis', and 'info functions' commands.
238 * symtab.h (search_symbols): Add extra argument to declaration.
239 * NEWS: Mention new flags.
240
9aa55206
CB
2412019-08-26 Christian Biesinger <cbiesinger@google.com>
242
243 * symtab.c (lookup_static_symbol): Call the new function (and move
244 it down to be next to lookup_global_symbol).
245 (struct global_sym_lookup_data): Add block_enum member and rename to...
246 (struct global_or_static_sym_lookup_data): ...this.
247 (lookup_symbol_global_iterator_cb): Pass block_index instead of
248 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
249 (lookup_symbol_global_or_static_iterator_cb): ...this.
250 (lookup_global_or_static_symbol): New function.
251 (lookup_global_symbol): Call new function.
252
5c31b358
TV
2532019-08-26 Tom de Vries <tdevries@suse.de>
254
255 PR c++/24852
256 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
257 when pc_probe.prob == NULL.
258
23c13d42
SM
2592019-08-25 Simon Marchi <simon.marchi@efficios.com>
260
261 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
262 variable symbol_linkage to symbol_linkage_.
263
beadd3e8
SM
2642019-08-25 Simon Marchi <simon.marchi@efficios.com>
265
266 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
267 represent whether the symbol is static, dynamic, or we don't
268 know.
269
e3ec872f
YS
2702019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
271
272 * gdb/rx-tdep.c (rx_register_names): New.
273 (rx_register_name): Delete.
274 (rx_psw_type): Delete.
275 (rx_fpsw_type): Delete.
276 (rx_register_type): Delete.
277 (rx_gdbarch_init): Convert target-descriptions.
278 (_initialize_rx_tdep): Add initialize_tdesc_rx.
279 * gdb/features/Makefile: Add rx.xml.
280 * gdb/features/rx.xml: New.
281 * gdb/features/rx.c: Generated.
282 * gdb/NEWS: Mention target description support.
283
d0509ba4
CB
2842019-08-22 Christian Biesinger <cbiesinger@google.com>
285
286 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
287 *slot_ptr.
288
2d41fa11
SDJ
2892019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
290
291 * configure.ac: Don't check for 'dlfcn.h' (moved to
292 gdbsupport/common.m4).
293 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
294 'gdbsupport/'.
295 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
296 * compile/compile-c-support.c: Include
297 'gdbsupport/gdb-dlfcn.h'.
298 * gdbsupport/common.m4: Check for 'dlfcn.h'.
299 * gdb-dlfcn.c: Move to...
300 * gdbsupport/gdb-dlfcn.c: ... here.
301 * gdb-dlfcn.h: Move to...
302 * gdbsupport/gdb-dlfcn.h: ... here.
303
de8af808
SL
3042019-08-23 Sandra Loosemore <sandra@codesourcery.com>
305
306 * nios2-tdep.c (struct reg_value): Improve comments. Make
307 the offset field signed.
308
27204489
CB
3092019-08-22 Christian Biesinger <cbiesinger@google.com>
310
311 * python/lib/gdb/__init__.py (_execute_file): New function.
312 * python/python.c (python_run_simple_file): Call gdb._execute_file
313 on Windows.
314
43771869
AB
3152019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
316
317 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
318 all uses as this was never set to anything but a zero value.
319
26c957f1
PA
3202019-08-21 Bogdan Harjoc <harjoc@gmail.com>
321
322 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
323
c07aae6e
CB
3242019-08-21 Christian Biesinger <cbiesinger@google.com>
325
326 * tui/tui-data.h (tui_gen_win_info): Add an =default
327 move constructor, required by some GCC versions.
328
3960cb7a
JF
3292019-08-21 Jinke Fan <fanjinke51@yeah.net>
330
331 * go32-nat.c (go32_sysinfo): Add hygon_p.
332
04c72a68
TT
3332019-08-20 Tom Tromey <tom@tromey.com>
334
335 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
336 line_from_reg_element_no, first_reg_element_no_inline,
337 display_all_data, delete_data_content_windows,
338 erase_data_content>: Now private.
339
072272ce
TT
3402019-08-20 Tom Tromey <tom@tromey.com>
341
342 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
343 (tui_unhighlight_win, tui_highlight_win)
344 (tui_win_info::make_window): Update.
345 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
346
973961bd
TT
3472019-08-20 Tom Tromey <tom@tromey.com>
348
349 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
350 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
351 (MAX_PID_WIDTH): Move to tui-stack.c.
352 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
353 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
354 (MAX_PID_WIDTH): Move from tui-data.h.
355
ab0e1f1a
TT
3562019-08-20 Tom Tromey <tom@tromey.com>
357
358 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
359 * tui/tui-wingeneral.c (box_win): Change type of win_info.
360 (box_win): Update.
361 (tui_gen_win_info::make_window): Rename from tui_make_window.
362 (tui_win_info::make_window): New method.
363 (tui_gen_win_info::make_visible): Update.
364 * tui/tui-source.c (tui_source_window::set_contents): Update.
365 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
366 (tui_data_window::display_registers_from): Update.
367 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
368 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
369 Declare.
370 <can_box>: Remove.
371 <title>: Remove.
372 (struct tui_win_info) <make_window>: Declare.
373 <can_box>: Now virtual.
374 <title>: New member.
375 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
376 * tui/tui-command.c (tui_cmd_window::resize): Update.
377
100c2bf3
TT
3782019-08-20 Tom Tromey <tom@tromey.com>
379
380 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
381 * tui/tui-regs.c (tui_data_window::show_registers): Update.
382 (tui_data_window::check_register_values): Update.
383
fa4dc567
TT
3842019-08-20 Tom Tromey <tom@tromey.com>
385
386 * tui/tui-regs.h (struct tui_data_window): Use
387 DISABLE_COPY_AND_ASSIGN.
388 <regs_content>: Change type, removing unique_ptr.
389 <tui_data_window>: Add move constructor.
390 * tui/tui-regs.c (tui_data_window::show_registers)
391 (tui_data_window::show_register_group)
392 (tui_data_window::display_registers_from)
393 (tui_data_window::display_registers_from)
394 (tui_data_window::first_data_item_displayed)
395 (tui_data_window::delete_data_content_windows)
396 (tui_data_window::rerender, tui_data_window::refresh_window)
397 (tui_data_window::check_register_values): Update.
398
ca02d7c8
TT
3992019-08-20 Tom Tromey <tom@tromey.com>
400
401 * tui/tui-regs.h (struct tui_data_window) <show_registers,
402 show_register_group>: Declare.
403 (tui_show_register_group): Don't declare.
404 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
405 tui_show_registers.
406 (tui_data_window::show_register_group): Rename from
407 tui_show_register_group.
408 (tui_data_window::check_register_values, tui_reg_command):
409 Update.
410 * tui/tui-layout.c (tui_set_layout): Update.
411
63356bfd
TT
4122019-08-20 Tom Tromey <tom@tromey.com>
413
414 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
415 Declare.
416 (tui_check_register_values): Don't declare.
417 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
418 from tui_check_register_values.
419 * tui/tui-hooks.c (tui_register_changed): Update.
420
42cc14a7
TT
4212019-08-20 Tom Tromey <tom@tromey.com>
422
423 * tui/tui-regs.c (tui_reg_layout): Move later.
424 (tui_show_registers): Don't enable TUI mode or change layout.
425
b9ad3686
TT
4262019-08-20 Tom Tromey <tom@tromey.com>
427
428 * tui/tui-regs.h (struct tui_data_item_window)
429 <~tui_data_item_window>: Remove.
430 <content>: Now a unique_xmalloc_ptr.
431 * tui/tui-regs.c (tui_register_format): Return a
432 unique_xmalloc_ptr.
433 (tui_get_register): Update.
434 (~tui_data_item_window): Remove.
435 (tui_data_window::display_registers_from, tui_display_register):
436 Update.
437 * tui/tui-io.h (tui_expand_tabs): Update.
438 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
439 Remove "col" parameter.
440
8e114aab
TT
4412019-08-20 Tom Tromey <tom@tromey.com>
442
443 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
444 field.
445 * tui/tui-regs.c (~tui_data_item_window): Update.
446
1a4f81dd
TT
4472019-08-20 Tom Tromey <tom@tromey.com>
448
449 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
450 earlier.
451
0f8d8876
TT
4522019-08-20 Tom Tromey <tom@tromey.com>
453
454 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
455
605dc2c2
TT
4562019-08-20 Tom Tromey <tom@tromey.com>
457
458 * tui/tui-source.h (struct tui_source_window): Update.
459 * tui/tui-regs.c (tui_show_registers): Update.
460 * tui/tui-disasm.h (struct tui_disasm_window): Update.
461 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
462 (NO_REGS_STRING): Remove defines.
463
aedbe3bb
CM
4642019-08-20 Conrad Meyer <cem@FreeBSD.org>
465
466 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
467 unnecessary thread walk if remote doesn't support the packet.
468
7ce8f214
TT
4692019-08-19 Tom Tromey <tromey@adacore.com>
470
471 * python/py-value.c (value_has_field): Fix indentation.
472
f21c2bd7
TT
4732019-08-19 Tom Tromey <tromey@adacore.com>
474
475 * printcmd.c (do_one_display, info_display_command): Update.
476 * block.h (contained_in): Return bool. Add allow_nested
477 parameter.
478 * block.c (contained_in): Return bool. Add allow_nested
479 parameter.
480
d806ea2d
TT
4812019-08-19 Tom Tromey <tom@tromey.com>
482
483 * configure: Rebuild.
484 * configure.ac: Disallow the combination of -static-libstdc++ and
485 source highlight.
486 * source-cache.c (get_language_name): Handle rust.
487 (source_cache::get_source_lines): Ignore highlighting exceptions.
488
398fdd60
TT
4892019-08-16 Tom Tromey <tom@tromey.com>
490
491 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
492 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
493 (struct tui_source_window_base) <make_visible, refresh_window,
494 resize>: Remove methods.
495 <execution_info>: Remove field.
496 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
497 (tui_show_source_line, tui_source_window_base)
498 (~tui_source_window_base): Update.
499 (tui_source_window_base::resize)
500 (tui_source_window_base::make_visible)
501 (tui_source_window_base::refresh_window): Remove.
502 (tui_source_window_base::update_exec_info): Update.
503 * tui/tui-source.c (tui_source_window::set_contents): Update.
504 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
505
e699d331
TT
5062019-08-16 Tom Tromey <tom@tromey.com>
507
508 * tui/tui-hooks.c (tui_remove_hooks): Don't set
509 deprecated_query_hook.
510
bb01dbfc
TT
5112019-08-16 Tom Tromey <tom@tromey.com>
512
513 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
514 (tui_update_source_windows_with_line): Update.
515 * tui/tui-source.h (struct tui_source_window)
516 <show_symtab_source>: Declare.
517 (tui_show_symtab_source): Don't declare.
518 * tui/tui-source.c (tui_show_symtab_source): Rename from
519 tui_show_symtab_source.
520
81c82c4b
TT
5212019-08-16 Tom Tromey <tom@tromey.com>
522
523 * tui/tui-winsource.h (struct tui_source_window_base)
524 <set_contents>: Declare.
525 * tui/tui-winsource.c
526 (tui_source_window_base::update_source_window_as_is): Update.
527 * tui/tui-source.h (struct tui_source_window) <set_contents>:
528 Declare.
529 (tui_set_source_content): Don't declare.
530 * tui/tui-source.c (tui_source_window::set_contents): Rename from
531 tui_set_source_content.
532 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
533 Declare.
534 (tui_set_disassem_content): Don't declare.
535 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
536 tui_set_disassem_content.
537
2ddaf614
TT
5382019-08-16 Tom Tromey <tom@tromey.com>
539
540 * tui/tui-winsource.h (struct tui_source_window_base)
541 <update_breakpoint_info>: Declare.
542 (tui_update_breakpoint_info): Don't declare.
543 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
544 (tui_update_all_breakpoint_info): Update.
545 (tui_source_window_base::update_breakpoint_info): Rename from
546 tui_update_breakpoint_info.
547 (tui_source_window_base::update_exec_info): Update.
548
017f9828
TT
5492019-08-16 Tom Tromey <tom@tromey.com>
550
551 * tui/tui-winsource.h (struct tui_source_window_base)
552 <update_source_window>: Declare.
553 (tui_update_source_window): Don't declare.
554 * tui/tui-winsource.c
555 (tui_source_window_base::update_source_window): Rename from
556 tui_update_source_window.
557 (tui_source_window_base::rerender): Update.
558 * tui/tui-source.c (tui_source_window::maybe_update): Update.
559 * tui/tui-disasm.c (tui_show_disassem)
560 (tui_show_disassem_and_update_source)
561 (tui_disasm_window::maybe_update): Update.
562
ed8358e9
TT
5632019-08-16 Tom Tromey <tom@tromey.com>
564
565 * tui/tui-winsource.h (struct tui_source_window_base)
566 <update_source_window_as_is>: Declare.
567 (tui_update_source_window_as_is): Don't declare.
568 * tui/tui-winsource.c (tui_update_source_window): Update
569 (tui_source_window_base::update_source_window_as_is): Rename from
570 tui_update_source_window_as_is.
571 (tui_source_window_base::refill): Update.
572 * tui/tui-source.c (tui_show_symtab_source): Update.
573 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
574 Update.
575
20149b6b
TT
5762019-08-16 Tom Tromey <tom@tromey.com>
577
578 * tui/tui-winsource.h (tui_update_source_window)
579 (tui_update_source_window_as_is): Remove "noerror" parameter.
580 * tui/tui-winsource.c (tui_update_source_window)
581 (tui_update_source_window_as_is): Remove "noerror" parameter.
582 (tui_update_source_windows_with_addr)
583 (tui_update_source_windows_with_line)
584 (tui_source_window_base::rerender)
585 (tui_source_window_base::refill): Update.
586 * tui/tui-source.h (tui_set_source_content)
587 (tui_show_symtab_source): Remove "noerror" parameter.
588 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
589 parameter.
590 (tui_show_symtab_source): Likewise.
591 (tui_source_window::maybe_update): Update.
592 * tui/tui-disasm.c (tui_show_disassem)
593 (tui_show_disassem_and_update_source)
594 (tui_disasm_window::do_scroll_vertical)
595 (tui_disasm_window::maybe_update): Update.
596
2d83e710
TT
5972019-08-16 Tom Tromey <tom@tromey.com>
598
599 * tui/tui.c (tui_is_window_visible): Update.
600 * tui/tui-wingeneral.c (tui_make_window)
601 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
602 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
603 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
604 (tui_set_win_height_command, parse_scrolling_args): Update.
605 * tui/tui-source.c (tui_source_window::style_changed): Update.
606 * tui/tui-regs.c (tui_show_registers)
607 (tui_data_window::first_data_item_displayed)
608 (tui_data_window::delete_data_content_windows)
609 (tui_check_register_values, tui_reg_command): Update.
610 * tui/tui-disasm.c (tui_show_disassem): Update.
611 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
612 method.
613 <is_visible>: Remove field.
614 * tui/tui-data.c (tui_next_win, tui_prev_win)
615 (tui_delete_invisible_windows): Update.
616
d4ab829a
TT
6172019-08-16 Tom Tromey <tom@tromey.com>
618
619 * tui/tui-winsource.h (struct tui_source_window_base)
620 <m_has_locator>: Remove.
621 * tui/tui-layout.c (show_source_disasm_command, show_data)
622 (show_source_or_disasm_and_command): Update.
623
aa7ca1bb
AH
6242019-08-16 Alan Hayward <alan.hayward@arm.com>
625
626 * NEWS (Other MI changes): New subsection.
627 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
628 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
629 * arch-utils.c (default_get_pc_address_flags): New function.
630 * arch-utils.h (default_get_pc_address_flags): New declaration.
631 * gdbarch.sh: Add get_pc_address_flags.
632 * gdbarch.c: Regenerate.
633 * gdbarch.h: Likewise.
634 * stack.c (print_pc): New function.
635 (print_frame_info) (print_frame): Call print_pc.
636
6eac171f
TV
6372019-08-16 Tom de Vries <tdevries@suse.de>
638
639 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
640 print_objfile_section_info.
641
3df505f6
TT
6422019-08-15 Tom Tromey <tom@tromey.com>
643
644 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
645 calling update_cmdwin_start_line.
646 * tui/tui-winsource.h (struct tui_source_window_base)
647 <do_make_visible_with_new_height, set_new_height>: Don't declare.
648 <rerender>: Declare.
649 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
650 Call rerender.
651 (tui_source_window_base::set_new_height): Remove.
652 (tui_source_window_base::rerender): Rename from
653 do_make_visible_with_new_height.
654 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
655 resize method.
656 (tui_win_info::make_invisible_and_set_new_height)
657 (tui_win_info::make_visible_with_new_height): Remove.
658 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
659 Declare.
660 * tui/tui-stack.c (tui_locator_window::rerender): New method.
661 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
662 do_make_visible_with_new_height>: Don't declare.
663 <rerender>: Declare.
664 * tui/tui-regs.c (tui_data_window::rerender): Rename from
665 set_new_height.
666 (tui_data_window::do_make_visible_with_new_height): Remove.
667 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
668 call tui_show_locator_content.
669 (tui_gen_win_info::resize): Call rerender.
670 (show_source_or_disasm_and_command): Don't call
671 tui_show_locator_content.
672 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
673 method.
674 (struct tui_win_info) <rerender>: Declare.
675 <set_new_height, make_invisible_and_set_new_height,
676 make_visible_with_new_height>: Don't declare.
677 * tui/tui-data.c (tui_win_list::rerender): New method.
678 * tui/tui-command.h (struct tui_cmd_window)
679 <do_make_visible_with_new_height>: Don't declare.
680 * tui/tui-command.c
681 (tui_cmd_window::do_make_visible_with_new_height): Remove.
682
272560b5
TT
6832019-08-15 Tom Tromey <tromey@adacore.com>
684
685 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
686 * ada-lang.c (ada_enum_name): Likewise.
687
08235187
CB
6882019-08-15 Christian Biesinger <cbiesinger@google.com>
689
690 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
691 leading underscore.
692 (GdbOutputErrorFile): Likewise.
693 (global scope): Adjust constructor calls to GdbOutput{,Error}File
694 accordingly.
695 (execute_unwinders): Rename to have a leading underscore.
696 (auto_load_packages): Likewise.
697 (global scope): Adjust call to auto_load_packages accordingly.
698 (GdbSetPythonDirectory): Likewise.
699 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
700 instead of execute_unwinders.
701
db502012
TT
7022019-08-15 Tom Tromey <tom@tromey.com>
703
704 * tui/tui-layout.c (show_layout, show_source_disasm_command)
705 (show_data): Don't change window visibility.
706 (tui_gen_win_info::resize): Remove special case for command
707 window. Use wresize, when available.
708 (show_source_or_disasm_and_command): Don't change window
709 visibility.
710 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
711 <make_visible>: New method.
712 * tui/tui-command.c (tui_cmd_window::resize): New method.
713
3891b65e
TT
7142019-08-15 Tom Tromey <tom@tromey.com>
715
716 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
717 (struct tui_source_windows): New.
718 * tui/tui-winsource.c (tui_display_main): Update.
719 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
720 (new_height_ok, parse_scrolling_args): Update.
721 * tui/tui-layout.c (show_layout, show_data): Update.
722 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
723 (tui_add_to_source_windows): Don't declare.
724 * tui/tui-data.c (source_windows, tui_source_windows)
725 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
726
ee556432
TT
7272019-08-15 Tom Tromey <tom@tromey.com>
728
729 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
730 Rename from reset.
731 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
732 * tui/tui-layout.c (show_source_disasm_command, show_data):
733 Update.
734 (tui_gen_win_info::resize): Rename.
735 (show_source_or_disasm_and_command): Update.
736 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
737 reset.
738
46f438e3
TT
7392019-08-15 Tom Tromey <tom@tromey.com>
740
741 * tui/tui-stack.c (tui_initialize_static_data): Remove.
742 * tui/tui-interp.c (tui_interp::init): Don't call
743 tui_initialize_static_data.
744 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
745
f4ce562c
TT
7462019-08-15 Tom Tromey <tom@tromey.com>
747
748 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
749 examine tui_win_list.
750
c398c3d0
TT
7512019-08-15 Tom Tromey <tom@tromey.com>
752
753 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
754 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
755 tui_clear_source_content.
756 (tui_clear_source_content): Remove.
757 (tui_source_window_base::do_erase_source_content): Hoist call to
758 content.clear().
759 * tui/tui-stack.c (tui_show_frame_info): Don't call
760 tui_clear_source_content.
761
e25d2004
TT
7622019-08-15 Tom Tromey <tom@tromey.com>
763
764 * tui/tui-winsource.h (struct tui_source_window_base)
765 <do_erase_source_content>: New method.
766 <erase_source_content>: New method.
767 (tui_erase_source_content): Don't declare.
768 * tui/tui-winsource.c (tui_clear_source_content): Update.
769 (tui_source_window_base::do_erase_source_content): Rename from
770 tui_erase_source_content.
771 (tui_source_window_base::show_source_content): Update.
772 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
773 * tui/tui-source.h (struct tui_source_window)
774 <erase_source_content>: New method.
775 * tui/tui-disasm.h (struct tui_disasm_window)
776 <erase_source_content>: New method.
777
002f15c2
TT
7782019-08-15 Tom Tromey <tom@tromey.com>
779
780 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
781 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
782 constructor.
783 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
784 * tui/tui-source.c (tui_set_source_content): Update.
785 * tui/tui-disasm.c (tui_set_disassem_content): Update.
786
c9033fe8
TT
7872019-08-15 Tom Tromey <tom@tromey.com>
788
789 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
790 * tui/tui-winsource.c (tui_line_is_displayed): Move to
791 tui-source.c.
792 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
793 Declare.
794 * tui/tui-source.c (tui_source_window::line_is_displayed): New
795 method.
796 (tui_source_window::maybe_update): Update.
797
088f37dd
TT
7982019-08-15 Tom Tromey <tom@tromey.com>
799
800 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
801 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
802 tui-disasm.c.
803 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
804 Declare.
805 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
806 method.
807 (tui_disasm_window::maybe_update): Update.
808
a54700c6
TT
8092019-08-15 Tom Tromey <tom@tromey.com>
810
811 * tui/tui-winsource.h (struct tui_source_window_base)
812 <maybe_update>: Declare.
813 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
814 method.
815 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
816 Declare.
817 * tui/tui-source.c (tui_source_window::maybe_update): New method.
818 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
819 Declare.
820 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
821
e2a678a5
TT
8222019-08-15 Tom Tromey <tom@tromey.com>
823
824 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
825
f2dda477
TT
8262019-08-15 Tom Tromey <tom@tromey.com>
827
828 * tui/tui-wingeneral.c: Include tui-stack.h.
829 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
830 (struct tui_locator_window): Move from tui-data.h.
831 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
832 (tui_initialize_static_data): Move from tui-data.c.
833 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
834 (struct tui_locator_window): Move to tui-stack.c.
835 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
836 (tui_initialize_static_data): Move to tui-stack.c.
837
ed4a1084
TT
8382019-08-15 Tom Tromey <tom@tromey.com>
839
840 * tui/tui-layout.c (show_source_disasm_command)
841 (show_source_or_disasm_and_command): Use make_visible method, not
842 tui_make_window.
843 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
844 Remove.
845
65962b20
TT
8462019-08-15 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-wingeneral.h (tui_make_window): Update.
849 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
850 parameter.
851 (tui_gen_win_info::make_visible): Update.
852 * tui/tui-regs.c (tui_data_window::display_registers_from):
853 Update.
854 * tui/tui-layout.c (show_source_disasm_command)
855 (show_source_or_disasm_and_command): Update.
856 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
857 (enum tui_box): Remove.
858 (struct tui_win_info) <can_box>: New method.
859 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
860 method.
861
2208ee91
TV
8622019-08-15 Tom de Vries <tdevries@suse.de>
863
864 * linux-nat-trad.c: Include gdbarch.h.
865
75faf5c4
AH
8662019-08-14 Alan Hayward <alan.hayward@arm.com>
867
868 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
869 register sizes.
870
b1c896b3
TT
8712019-08-14 Tom Tromey <tromey@adacore.com>
872
873 * darwin-nat.c: Include gdbarch.h.
874 * darwin-nat-info.c: Include gdbarch.h.
875
6405cd73
TT
8762019-08-13 Tom Tromey <tom@tromey.com>
877
878 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
879 Remove.
880 * tui/tui-data.c (tui_initialize_static_data): Update.
881
5216580d
TT
8822019-08-13 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-winsource.h (struct tui_exec_info_window)
885 <~tui_exec_info_window, maybe_allocate_content, get_content,
886 m_content>: Remove.
887 (struct tui_source_window_base) <set_exec_info_content,
888 show_exec_info_content>: Don't declare.
889 * tui/tui-winsource.c
890 (tui_exec_info_window::maybe_allocate_content): Remove.
891 (tui_source_window_base::update_exec_info): Rename from
892 set_exec_info_content.
893 (tui_source_window_base::show_exec_info_content)
894 (tui_source_window_base::update_exec_info): Remove.
895
93858ad3
TT
8962019-08-13 Tom Tromey <tom@tromey.com>
897
898 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
899 declare.
900 * tui/tui-winsource.c (tui_update_source_window_as_is)
901 (tui_update_source_windows_with_addr, tui_erase_source_content):
902 Update.
903 (tui_clear_exec_info_content): Remove.
904
e321e7ce
TT
9052019-08-13 Tom Tromey <tom@tromey.com>
906
907 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
908 declare.
909 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
910 call tui_erase_exec_info_content.
911 (tui_clear_exec_info_content): Rename from
912 tui_erase_exec_info_content.
913 (tui_clear_exec_info_content): Delete.
914
8270ac62
TT
9152019-08-13 Tom Tromey <tom@tromey.com>
916
917 * tui/tui-winsource.h (struct tui_source_window_base)
918 <show_exec_info_content>: Declare.
919 (tui_show_exec_info_content): Don't declare.
920 * tui/tui-winsource.c
921 (tui_source_window_base::show_exec_info_content): Rename from
922 tui_show_exec_info_content.
923 (tui_source_window_base::update_exec_info): Update.
924
7b56485d
TT
9252019-08-13 Tom Tromey <tom@tromey.com>
926
927 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
928 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
929 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
930 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
931 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
932 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
933 ... here.
934
7ba913dc
TT
9352019-08-13 Tom Tromey <tom@tromey.com>
936
937 * tui/tui-winsource.h (struct tui_source_window_base)
938 <update_exec_info>: Declare.
939 (tui_update_exec_info): Don't declare.
940 * tui/tui-winsource.c (tui_update_source_window_as_is)
941 (tui_source_window_base::refresh_all)
942 (tui_update_all_breakpoint_info): Update.
943 (tui_source_window_base::update_exec_info): Rename from
944 tui_update_exec_info.
945 * tui/tui-stack.c (tui_show_frame_info): Update.
946
37a4a131
TT
9472019-08-13 Tom Tromey <tom@tromey.com>
948
949 * tui/tui-winsource.h (struct tui_source_window_base)
950 <set_exec_info_content>: Declare.
951 (tui_set_exec_info_content): Don't declare.
952 * tui/tui-winsource.c
953 (tui_source_window_base::set_exec_info_content): Rename from
954 tui_set_exec_info_content.
955 (tui_update_exec_info): Update.
956
0bd27e07
TT
9572019-08-13 Tom Tromey <tom@tromey.com>
958
959 * tui/tui-winsource.h (struct tui_source_window_base)
960 <show_source_content>: Declare.
961 (tui_show_source_content): Don't declare.
962 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
963 (tui_source_window_base::show_source_content): Rename from
964 tui_show_source_content.
965 (tui_source_window_base::refresh_all): Update.
966 * tui/tui-layout.c (show_source_disasm_command)
967 (show_source_or_disasm_and_command): Update.
968
b4ef5aeb
TT
9692019-08-13 Tom Tromey <tom@tromey.com>
970
971 * tui/tui-winsource.c (tui_erase_source_content)
972 (tui_show_source_content, tui_source_window_base::refresh_all):
973 Update.
974 * tui/tui-wingeneral.h
975 (tui_check_and_display_highlight_if_needed): Don't declare.
976 * tui/tui-wingeneral.c
977 (tui_win_info::check_and_display_highlight_if_needed): Rename from
978 check_and_display_highlight_if_needed.
979 * tui/tui-win.c (tui_rehighlight_all)
980 (tui_win_info::make_visible_with_new_height): Update.
981 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
982 (tui_data_window::erase_data_content)
983 (tui_data_window::display_all_data): Update.
984 * tui/tui-data.h (struct tui_win_info)
985 <check_and_display_highlight_if_needed>: Declare.
986
fede5273
TT
9872019-08-13 Tom Tromey <tom@tromey.com>
988
989 * tui/tui-win.c (tui_resize_all): Call
990 tui_delete_invisible_windows.
991 * tui/tui-layout.c (show_layout): Call
992 tui_delete_invisible_windows.
993 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
994 * tui/tui-data.c (tui_delete_invisible_windows): New function.
995
22c3f490
TT
9962019-08-13 Tom Tromey <tom@tromey.com>
997
998 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
999 tui_add_win_to_layout.
1000
16cb7910
TT
10012019-08-13 Tom Tromey <tom@tromey.com>
1002
1003 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1004 * tui/tui-layout.c (tui_default_win_height): Now static.
1005
cc0c3ffb
TT
10062019-08-13 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1009 single switch.
1010 (show_source_disasm_command, show_source_or_disasm_and_command):
1011 Don't check current layout.
1012
3f3ffe54
TT
10132019-08-13 Tom Tromey <tom@tromey.com>
1014
1015 * tui/tui-wingeneral.c (make_all_visible): Remove.
1016 (tui_make_all_invisible): Simplify.
1017 * tui/tui-layout.c (tui_make_all_invisible): Move from
1018 tui-wingeneral.c; simplify.
1019 (show_layout): Hoist call to tui_make_all_invisible.
1020 (show_data): Don't call tui_make_all_invisible.
1021
69258091
TT
10222019-08-13 Tom Tromey <tom@tromey.com>
1023
1024 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1025 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1026
62cf57fe
TT
10272019-08-13 Tom Tromey <tom@tromey.com>
1028
1029 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1030 tui-data.c.
1031 (show_source_disasm_command, show_data)
1032 (show_source_or_disasm_and_command): Don't use
1033 tui_set_current_layout_to.
1034 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1035 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1036 tui-layout.c.
1037 (tui_set_current_layout_to): Remove.
1038
2afade5d
TT
10392019-08-13 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-layout.c (tui_set_layout): Update.
1042 * tui/tui-data.h (struct tui_layout_def): Remove.
1043 (tui_layout_def): Don't declare.
1044 * tui/tui-data.c (layout_def): Remove.
1045 (tui_layout_def): Remove.
1046
a3504e96
TT
10472019-08-13 Tom Tromey <tom@tromey.com>
1048
1049 * tui/tui-winsource.h (struct tui_source_window_base)
1050 <clear_detail>: No longer "override".
1051 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1052 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1053 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1054 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1055 Remove.
1056 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1057
29c92911
TT
10582019-08-13 Tom Tromey <tromey@adacore.com>
1059
1060 * tracepoint.c: Don't include readline.h or history.h.
1061
86c6b807
TT
10622019-08-12 Tom Tromey <tom@tromey.com>
1063
1064 * configure: Rebuild.
1065 * configure.ac: Check for readline 7.
1066 * NEWS: Mention readline 7 requirement.
1067 * README: Update.
1068
5db2718c
TT
10692019-08-12 Tom Tromey <tom@tromey.com>
1070
1071 * mingw-hdep.c (gdb_select): Remove readline hack.
1072
dac36daf
PFC
10732019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1074
1075 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1076 when the function fails.
1077
1022c627
AA
10782019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1079
1080 * s390-tdep.c (s390_type_align): New function.
1081 (s390_gdbarch_init): Set it as type_align gdbarch method.
1082
eba4caf2
TV
10832019-08-09 Tom de Vries <tdevries@suse.de>
1084
1085 PR gdb/24591
1086 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1087 pc_low with relocation offset.
1088
123cd851
TT
10892019-08-07 Tom Tromey <tromey@adacore.com>
1090
1091 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1092 (print_frame_args): Update.
1093 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1094 Update.
1095 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1096 * frame.h (struct frame_arg): Add initializers.
1097 <error>: Now a unique_xmalloc_ptr.
1098
3d31bc39
AH
10992019-08-07 Alan Hayward <alan.hayward@arm.com>
1100
1101 * NEWS: Expand the Pointer Authentication entry.
1102 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1103 (aarch64_frame_unmask_lr): ... to this.
1104 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1105 Call aarch64_frame_unmask_lr.
1106 * frame.c (struct frame_info): Add "masked" variable.
1107 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1108 (fprint_frame): Check for masked pc.
1109 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1110 declarations.
1111 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1112 * stack.c (print_frame): Check for masked pc.
1113
0cf9feb9
TT
11142019-08-06 Tom Tromey <tom@tromey.com>
1115
1116 * stabsread.c (patch_block_stabs, read_one_struct_field)
1117 (read_enum_type): Use obstack_strndup.
1118 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1119 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1120 * dwarf2read.c (guess_full_die_structure_name)
1121 (anonymous_struct_prefix): Use obstack_strndup.
1122 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1123 * c-exp.y (yylex): Use obstack_strndup.
1124 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1125 (write_var_or_type): Use obstack_strndup.
1126
efba19b0
TT
11272019-08-06 Tom Tromey <tom@tromey.com>
1128
1129 * symfile.c (reread_symbols): Use obstack_strdup.
1130 * stabsread.c (read_type): Use obstack_strdup.
1131 * gdb_obstack.h (obstack_strdup): New overload.
1132 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1133 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1134 (dwarf2_canonicalize_name): Use obstack_strdup.
1135 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1136 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1137 Use obstack_strdup.
1138
f25102f7
TT
11392019-08-06 Tom Tromey <tom@tromey.com>
1140
1141 * gdb_obstack.h (obstack_strdup): Define.
1142 * gdb_obstack.c (obstack_strdup): Don't define.
1143
021887d8
TT
11442019-08-06 Tom Tromey <tom@tromey.com>
1145
1146 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1147 obstack_strdup.
1148 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1149 obstack_strdup.
1150 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1151 * stabsread.c (common_block_start): Use obstack_strdup.
1152 * objfiles.c (set_objfile_main_name, objfile): Use
1153 obstack_strdup.
1154 * namespace.c (add_using_directive): Use obstack_strdup.
1155 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1156 * jit.c (finalize_symtab): Use obstack_strdup.
1157 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1158 (guess_partial_die_structure_name, partial_die_info::fixup)
1159 (dwarf2_name): Use obstack_strdup.
1160 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1161 obstack_strdup.
1162 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1163 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1164 obstack_strdup.
1165 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1166
d2834edc
PW
11672019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1168
1169 * unittests/help-doc-selftests.c: New file.
1170 * Makefile.in: Add the new file.
1171
590042fc
PW
11722019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1173
1174 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1175 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1176 the full first line, except when FOR_VALUE_PREFIX. In this case,
1177 the trailing '.' is not output, and the first character is uppercased.
1178 (print_help_for_command): Update call to print_doc_line.
1179 (print_doc_of_command): Likewise.
1180 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1181 * cli/cli-option.c (append_indented_doc): Do not append newline.
1182 (build_help_option): Append newline after first appended_indented_doc
1183 only if a second call is done.
1184 (build_help): Append 2 new lines before each option, except the first
1185 one.
1186 * compile/compile.c (_initialize_compile): Add new lines after
1187 %OPTIONS%, when not at the end of the help.
1188 Change help doc or code
1189 producing the help doc to respect the invariants.
1190 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1191 Also removed the new line after 'Options:', as all other commands
1192 do not put an empty line between 'Options:' and the first option.
1193 * printcmd.c (_initialize_printcmd): Likewise.
1194 * stack.c (_initialize_stack): Likewise.
1195 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1196 incorrectly telling COMMAND is optional.
1197 * ada-lang.c (_initialize_ada_language): Change help doc or code
1198 producing the help doc to respect the invariants.
1199 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1200 * breakpoint.c (_initialize_breakpoint): Likewise.
1201 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1202 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1203 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1204 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1205 _initialize_cli_style): Likewise.
1206 * corelow.c (core_target_info): Likewise.
1207 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1208 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1209 * filesystem.c (_initialize_filesystem): Likewise.
1210 * frame.c (_initialize_frame): Likewise.
1211 * gnu-nat.c (add_task_commands): Likewise.
1212 * infcall.c (_initialize_infcall): Likewise.
1213 * infcmd.c (_initialize_infcmd): Likewise.
1214 * interps.c (_initialize_interpreter): Likewise.
1215 * language.c (_initialize_language): Likewise.
1216 * linux-fork.c (_initialize_linux_fork): Likewise.
1217 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1218 * maint.c (_initialize_maint_cmds): Likewise.
1219 * memattr.c (_initialize_mem): Likewise.
1220 * printcmd.c (_initialize_printcmd): Likewise.
1221 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1222 _RegEx): Likewise.
1223 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1224 * record-btrace.c (_initialize_record_btrace): Likewise.
1225 * record-full.c (_initialize_record_full): Likewise.
1226 * record.c (_initialize_record): Likewise.
1227 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1228 * regcache.c (_initialize_regcache): Likewise.
1229 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1230 _initialize_remote): Likewise.
1231 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1232 * serial.c (_initialize_serial): Likewise.
1233 * skip.c (_initialize_step_skip): Likewise.
1234 * source.c (_initialize_source): Likewise.
1235 * stack.c (_initialize_stack): Likewise.
1236 * symfile.c (_initialize_symfile): Likewise.
1237 * symtab.c (_initialize_symtab): Likewise.
1238 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1239 * top.c (init_main): Likewise.
1240 * tracefile-tfile.c (tfile_target_info): Likewise.
1241 * tracepoint.c (_initialize_tracepoint): Likewise.
1242 * tui/tui-win.c (_initialize_tui_win): Likewise.
1243 * utils.c (add_internal_problem_command): Likewise.
1244 * valprint.c (value_print_option_defs): Likewise.
1245
404f2902
FCE
12462019-08-06 Frank Ch. Eigler <fche@redhat.com>
1247
1248 PR build/24886
1249 * configure.ac: Drop enable-libmcheck support.
1250 * configure, config.in: Rebuild.
1251 * libmcheck.m4: Remove.
1252 * acinclude.m4: Don't include it.
1253 * Makefile.in: Don't distribute it.
1254 * top.c (print_gdb_configuration): Don't mention it.
1255
046bebe1
TT
12562019-08-06 Tom Tromey <tom@tromey.com>
1257
1258 * utils.c (set_output_style): Sometimes pass stream to
1259 emit_style_escape.
1260 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1261 * record-btrace.c (btrace_insn_history): Update.
1262 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1263 method.
1264 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1265 Update initializers.
1266 <m_uiout>: New field.
1267 <m_di>: Move lower.
1268 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1269 Remove "uiout" parameter.
1270 (dump_insns): Update.
1271 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1272 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1273
ddbcedf5
CB
12742019-08-06 Christian Biesinger <cbiesinger@google.com>
1275
1276 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1277 (error_in_psymtab_expansion): Likewise.
1278 (lookup_symbol_via_quick_fns): Likewise.
1279 (basic_lookup_transparent_type_quick): Likewise.
1280 (basic_lookup_transparent_type_1): Likewise.
1281
b08b16c8
TT
12822019-08-06 Tom Tromey <tromey@adacore.com>
1283
1284 * source.c (last_source_error): Now bool.
1285 (print_source_lines_base): Make "noprint" bool. Only open
1286 source file when last_source_visited changes.
1287
cb44333d
TT
12882019-08-06 Tom Tromey <tromey@adacore.com>
1289
1290 * annotate.c (annotate_source_line): Use g_source_cache.
1291 * source-cache.c (source_cache::get_plain_source_lines): Change
1292 parameters. Populate m_offset_cache.
1293 (source_cache::ensure): New method.
1294 (source_cache::get_line_charpos): New method.
1295 (extract_lines): Move lower. Change parameters.
1296 (source_cache::get_source_lines): Move lower.
1297 * source-cache.h (class source_cache): Update comment.
1298 <get_line_charpos>: New method.
1299 <get_source_lines>: Update comment.
1300 <clear>: Clear m_offset_cache.
1301 <get_plain_source_lines>: Change parameters.
1302 <ensure>: New method
1303 <m_offset_cache>: New member.
1304 * source.c (forget_cached_source_info_for_objfile): Update.
1305 (info_source_command): Use g_source_cache.
1306 (find_source_lines, open_source_file_with_line_charpos): Remove.
1307 (print_source_lines_base, search_command_helper): Use g_source_cache.
1308 * source.h (open_source_file_with_line_charpos): Don't declare.
1309 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1310 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1311 Use g_source_cache.
1312
872dceaa
TT
13132019-08-06 Tom Tromey <tromey@adacore.com>
1314
1315 * source-cache.c (source_cache::get_plain_source_lines):
1316 Remove "first_line" and "last_line" parameters.
1317 (source_cache::get_source_lines): Cache plain text.
1318 * source-cache.h (class source_cache)
1319 <get_plain_source_lines>: Update.
1320
269249d9
TT
13212019-08-06 Tom Tromey <tromey@adacore.com>
1322
1323 * source-cache.c (extract_lines): No longer a method.
1324 Changed type of parameter. Include final newline.
1325 (selftests::extract_lines_test): New function.
1326 (_initialize_source_cache): Likewise.
1327 * source-cache.h (class source_cache)
1328 <extract_lines>: Don't declare.
1329
c0e8dcd8
TT
13302019-08-06 Tom Tromey <tromey@adacore.com>
1331
1332 * breakpoint.c (init_breakpoint_sal): Update.
1333 (breakpoint): Update.
1334 * breakpoint.h (struct breakpoint) <filter>: Now a
1335 unique_xmalloc_ptr.
1336
0b27c27d
CB
13372019-08-05 Christian Biesinger <cbiesinger@google.com>
1338
1339 * NEWS: Mention dictionary access on blocks.
1340 * python/py-block.c (blpy_getitem): New function.
1341 (block_object_as_mapping): New struct.
1342 (block_object_type): Use new struct for tp_as_mapping field.
1343
4ee94178
CB
13442019-08-05 Christian Biesinger <cbiesinger@google.com>
1345
1346 * objfiles.h (objfile): Add a comment describing partial symbols.
1347
8abfcabc
TT
13482019-08-05 Tom Tromey <tromey@adacore.com>
1349
1350 * compile/compile.c (_initialize_compile): Use _(), not N_().
1351 * thread.c (_initialize_thread): Use _(), not N_().
1352 * stack.c (_initialize_stack): Use _(), not N_().
1353 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1354
2b79f376
SM
13552019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1356
1357 * dwarf2read.c (struct dw2_symtab_iterator):
1358 <want_specific_block>: Remove.
1359 <block_index>: Change type to gdb::optional.
1360 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1361 change type of BLOCK_INDEX parameter to gdb::optional.
1362 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1363 (dw2_lookup_symbol): Don't pass argument for
1364 WANT_SPECIFIC_BLOCK.
1365 (dw2_expand_symtabs_for_function): Don't pass argument for
1366 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1367 (class dw2_debug_names_iterator)
1368 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1369 parameter, change BLOCK_INDEX type to gdb::optional.
1370 <m_want_specific_block>: Remove.
1371 <m_block_index>: Change type to gdb::optional.
1372 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1373 gdb::optional. Re-write in function of gdb::optional.
1374 (dw2_debug_names_lookup_symbol): Don't pass argument for
1375 WANT_SPECIFIC_BLOCK.
1376 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1377 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1378 BLOCK_INDEX.
1379
ae60f04e
PW
13802019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1381
1382 * NEWS: Mention changes to "info sources" command.
1383
28cd9371
PW
13842019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1385
1386 * symtab.c (filename_partial_match_opts): New struct type.
1387 (struct output_source_filename_data): New members
1388 regexp, c_regexp, partial_match.
1389 (output_source_filename): Use new members to decide to print file.
1390 (info_sources_option_defs): New variable.
1391 (make_info_sources_options_def_group, print_info_sources_header,
1392 info_sources_command_completer):
1393 New functions.
1394 (info_sources_command): Read new optional arguments.
1395 (_initialize_symtab): Update info sources help.
1396
ca683e3a
AO
13972019-08-02 Alexandre Oliva <oliva@adacore.com>
1398
1399 * ada-lang.c (exception_support_info_v0): Renamed from...
1400 (default_exception_support_info): ... this. Create new
1401 definition for v1.
1402 (ada_has_this_exception_support): Look up catch_handlers_sym.
1403 (ada_exception_support_info_sniffer): Try v0 after default.
1404
f1264162
TT
14052019-08-01 Tom Tromey <tromey@adacore.com>
1406
1407 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1408 gdbarch.h.
1409
0a7b2485
CB
14102019-08-01 Christian Biesinger <cbiesinger@google.com>
1411
1412 * s12z-tdep.c: Fix include path for s12z-opc.h.
1413
c6bdbeb7
AH
14142019-08-01 Alan Hayward <alan.hayward@arm.com>
1415
1416 * NEWS: Require GNU make 3.82.
1417
a2bd7b82
TT
14182019-07-16 Tom Tromey <tom@tromey.com>
1419
1420 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1421 declare.
1422
aa3b6533
TT
14232019-07-30 Tom Tromey <tromey@adacore.com>
1424
1425 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1426
a1530dc7
KB
14272019-07-30 Kevin Buettner <kevinb@redhat.com>
1428
1429 * printcmd.c (print_address_symbolic): Print negative offsets.
1430 (build_address_symbolic): Force signed arithmetic when computing
1431 offset.
1432
2906593f
CB
14332019-07-30 Christian Biesinger <cbiesinger@google.com>
1434
1435 PR/24474: Add a function to lookup static variables.
1436 * NEWS: Mention this new function.
1437 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1438 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1439 * python/python.c (python_GdbMethods): Add new function.
1440
c620ed88
CB
14412019-07-29 Christian Biesinger <cbiesinger@google.com>
1442
1443 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1444 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1445 (objfpy_lookup_static_symbol): New function.
1446 (objfile_object_methods): Add new functions.
1447
bc4268a5
PW
14482019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1449
1450 * NEWS: Mention 'set|show print frame-info'. Mention new
1451 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1452 backtrace argument. Mention that python frame filtering code
1453 is now consistent with what 'backtrace' command prints.
1454
4b5e8d19
PW
14552019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1456
1457 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1458 comments.
1459 (print_frame_info_auto, print_frame_info_source_line,
1460 print_frame_info_location, print_frame_info_source_and_location,
1461 print_frame_info_location_and_address, print_frame_info_short_location):
1462 New declarations.
1463 (struct frame_print_options): New member print_frame_info.
1464 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1465 * stack.h (get_user_print_what_frame_info): New declaration.
1466 (frame_show_address): New declaration.
1467 * stack.c (print_frame_arguments_choices): New value 'presence'.
1468 (print_frame_info_auto, print_frame_info_source_line,
1469 print_frame_info_location, print_frame_info_source_and_location,
1470 print_frame_info_location_and_address, print_frame_info_short_location,
1471 print_frame_info_choices, print_frame_info_print_what): New definitions.
1472 (print_frame_args): Only print dots for args if print frame-arguments
1473 is 'presence'.
1474 (frame_print_option_defs): New element for "frame-info".
1475 (get_user_print_what_frame_info): New function.
1476 (frame_show_address): Make non static. Move comment to stack.h.
1477 (print_frame_info_to_print_what): New function.
1478 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1479 to decide what to print.
1480 (backtrace_command_1): Handle the new print_frame_arguments_presence
1481 value.
1482 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1483 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1484 (py_print_frame): In non-mi mode, use LOCATION as default for
1485 print_what, similarly to frame information printed directly by
1486 backtrace command. Handle frame-info user option in non MI mode.
1487
6bdfee81
KB
14882019-07-27 Kevin Buettner <kevinb@redhat.com>
1489
1490 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1491 Add case for debugging 32-bit target on 64-bit host. Revise
1492 comment.
1493
98a617f8
KB
14942019-07-27 Kevin Buettner <kevinb@redhat.com>
1495
1496 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1497 instead of find_function_entry_range_from_pc.
1498
567238c9
KB
14992019-07-27 Kevin Buettner <kevinb@redhat.com>
1500
1501 * stack.c (find_frame_funname): Remove code which preferred
1502 minsym over symtab sym in "certain pathological cases".
1503
2dc80cf8
KB
1504 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1505 parameter. Change type of "do_demangle" to bool.
1506 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1507 Pass suitable "prefer_sym_over_minsym" flag to
1508 build_address_symbolic(). Don't output "+" for negative offsets.
1509 * printcmd.c (print_address_symbolic): Update invocation of
1510 build_address_symbolic to include a "prefer_sym_over_minsym"
1511 flag.
1512 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1513 Restrict cases in which use of minimal symbol is preferred to that
1514 of a found symbol. Update comments.
1515
1aff7173
KB
1516 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1517 for entry pc when entry pc is out of range for that FDE.
1518
89b085ac
BC
15192019-07-26 Brian Callahan <bcallah@openbsd.org>
1520
1521 PR gdb/24839:
1522 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1523 type.
1524
f32feb4a
CB
15252019-07-25 Christian Biesinger <cbiesinger@google.com>
1526
1527 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1528 this function's Python signature.
1529
1530
15312019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
1532
1533 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1534 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1535 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1536 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1537 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1538
1539
c54e4253
YS
15402019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1541
1542 * h8300-tdep.c (h8300_register_name_common): New.
1543 h8300_register_name): Use h8300_register_name_common.
1544 (h8300s_register_name): Likewise.
1545 (h8300sx_register_name): Likewise.
1546 (h8300h_register_nam): New.
1547 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1548
1549
40eadf04
SP
15502019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1551
1552 * arm-tdep.c (arm_skip_cmse_entry): New function.
1553 (arm_is_sgstubs_section): New function.
1554 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1555
bfa2a36d
TT
15562019-07-22 Tom Tromey <tom@tromey.com>
1557
1558 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1559 Don't self-assign.
1560
a8e9d247
AB
15612019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1562
1563 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1564 type_print.
1565
eb86c5e2
AB
15662019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1567
1568 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1569 so that GDB doesn't match any msymbols when searching in the
1570 TYPES_DOMAIN.
1571 (print_symbol_info): Print using typedef_print or type_print based
1572 on the type of the symbol. Add updated FIXME comment moved from...
1573 (_initialize_symtab): ... move and update FIXME comment to above.
1574
a8eab7c6
AB
15752019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1576
1577 * NEWS: Mention adding -q option to "info types".
1578 * symtab.c (struct info_types_options): New struct.
1579 (info_types_options_defs): New variable.
1580 (make_info_types_options_def_group): New function.
1581 (info_types_command): Use gdb::option framework to parse options.
1582 (info_types_command_completer): New function.
1583 (_initialize_symtab): Extend the help text on "info types" and
1584 register command completer.
1585
b4603c34
CB
15862019-07-21 Christian Biesinger <cbiesinger@google.com>
1587
1588 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1589 (lookup_symbol_in_objfile): Change int to block_enum and add a
1590 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1591
c8cdc1e0
CB
15922019-07-20 Christian Biesinger <cbiesinger@google.com>
1593
1594 * MAINTAINERS (Write After Approval): Add self.
1595
01e175fe
AB
15962019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1599 instruction to the dummy code region.
1600
56f79b63
TT
16012019-07-19 Tom Tromey <tromey@adacore.com>
1602
1603 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1604 (ARGSUSED, PARAMS, __func__): Remove rules.
1605
4c5aa8e0
AH
16062019-07-19 Alan Hayward <alan.hayward@arm.com>
1607
1608 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1609 * features/arm/arm-with-iwmmxt.c: Remove.
1610 * features/arm/arm-with-iwmmxt.xml: Remove.
1611 * features/arm/arm-with-m-fpa-layout.c: Remove.
1612 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1613 * features/arm/arm-with-m-vfp-d16.c: Remove.
1614 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1615 * features/arm/arm-with-m.c: Remove.
1616 * features/arm/arm-with-m.xml: Remove.
1617 * features/arm/arm-with-neon.c: Remove.
1618 * features/arm/arm-with-neon.xml: Remove.
1619 * features/arm/arm-with-vfpv2.c: Remove.
1620 * features/arm/arm-with-vfpv2.xml: Remove.
1621 * features/arm/arm-with-vfpv3.c: Remove.
1622 * features/arm/arm-with-vfpv3.xml: Remove.
1623
f42b2617
AH
16242019-07-19 Alan Hayward <alan.hayward@arm.com>
1625
1626 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1627
f29ec966
AH
16282019-07-19 Alan Hayward <alan.hayward@arm.com>
1629
1630 * arch/aarch32.c (aarch32_create_target_description): Create
1631 target descriptions using features.
1632 * arch/arm.c (arm_create_target_description)
1633 (arm_create_mprofile_target_description): Likewise.
1634 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1635
d105cce5
AH
16362019-07-19 Alan Hayward <alan.hayward@arm.com>
1637
1638 * Makefile.in: Add new files.
1639 * aarch32-tdep.c: New file.
1640 * aarch32-tdep.h: New file.
1641 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1642 Call aarch32_read_description.
1643 * arch/aarch32.c: New file.
1644 * arch/aarch32.h: New file.
1645 * arch/arm.c (arm_create_target_description)
1646 (arm_create_mprofile_target_description): New function.
1647 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1648 (arm_create_target_description)
1649 (arm_create_mprofile_target_description): New declaration.
1650 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1651 read_description functions.
1652 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1653 Likewise.
1654 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1655 * arm-tdep.c (tdesc_arm_list): New variable.
1656 (arm_register_g_packet_guesses): Call create description functions.
1657 (arm_read_description) (arm_read_mprofile_description): New
1658 function.
1659 * arm-tdep.h (arm_read_description)
1660 (arm_read_mprofile_description): Add declaration.
1661 * configure.tgt: Add new files.
1662
afe09f0b
GL
16632019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1664
1665 * top.c (new_ui_command): Open specified terminal just once.
1666
cd215b2e
TT
16672019-07-18 Tom Tromey <tromey@adacore.com>
1668
1669 * symtab.c (main_name): Constify return type.
1670 * symfile.c (set_initial_language): Update.
1671 * symtab.h (main_name): Constify return type.
1672
d8f68fcb
TT
16732019-07-17 Tom Tromey <tom@tromey.com>
1674
1675 * tui/tui-winsource.c (tui_update_source_window)
1676 (tui_update_source_window_as_is)
1677 (tui_update_source_windows_with_line): Remove return.
1678 * tui/tui-disasm.c (tui_show_disassem)
1679 (tui_show_disassem_and_update_source): Remove return.
1680 * tui/tui.c (tui_reset): Remove return.
1681 * tui/tui-wingeneral.c
1682 (tui_check_and_display_highlight_if_needed): Remove return.
1683
ca5af91e
TT
16842019-07-17 Tom Tromey <tom@tromey.com>
1685
1686 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1687
5104fe36
TT
16882019-07-17 Tom Tromey <tom@tromey.com>
1689
1690 * tui/tui-winsource.h (struct tui_exec_info_window)
1691 (struct tui_source_window_base): Move from tui-data.h.
1692 * tui/tui-winsource.c: Move many method definitions from
1693 elsewhere. Remove "structuring" comments.
1694 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1695 (tui_source_window_base::refresh_window): Move to
1696 tui-winsource.c.
1697 * tui/tui-win.c (tui_source_window_base::refresh_all)
1698 (tui_source_window_base::update_tab_width)
1699 (tui_source_window_base::set_new_height)
1700 (tui_source_window_base::do_make_visible_with_new_height): Move to
1701 tui-winsource.c.
1702 * tui/tui-source.h: Update.
1703 * tui/tui-source.c (tui_source_window_base::reset): Move to
1704 tui-winsource.c.
1705 * tui/tui-disasm.h: Update.
1706 * tui/tui-data.h (struct tui_exec_info_window): Move to
1707 tui-winsource.h.
1708 (struct tui_source_window_base): Likewise.
1709 * tui/tui-data.c (tui_source_window_base::clear_detail)
1710 (tui_source_window_base, ~tui_source_window_base): Move to
1711 tui-winsource.c.
1712
daa15dde
TT
17132019-07-17 Tom Tromey <tom@tromey.com>
1714
1715 * tui/tui-win.c (tui_resize_all)
1716 (tui_source_window_base::update_tab_width)
1717 (tui_adjust_win_heights): Update.
1718 (tui_win_info::make_invisible_and_set_new_height): Rename from
1719 make_invisible_and_set_new_height.
1720 * tui/tui-data.h (struct tui_win_info)
1721 <make_invisible_and_set_new_height>: New method.
1722
bfad4537
TT
17232019-07-17 Tom Tromey <tom@tromey.com>
1724
1725 * tui/tui.c: Update.
1726 * tui/tui-source.h (struct tui_source_window): Move from
1727 tui-data.h.
1728 * tui/tui-layout.c: Update.
1729 * tui/tui-disasm.c: Update.
1730 * tui/tui-data.h (struct tui_source_window): Move to
1731 tui-source.h.
1732
88f7e873
TT
17332019-07-17 Tom Tromey <tom@tromey.com>
1734
1735 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1736 tui-data.h.
1737 * tui/tui-data.h (struct tui_disasm_window): Move to
1738 tui-disasm.h.
1739
96bd6233
TT
17402019-07-17 Tom Tromey <tom@tromey.com>
1741
1742 * tui/tui-regs.h (struct tui_data_item_window): Move from
1743 tui-data.h.
1744 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1745 * tui/tui-data.h (struct tui_data_item_window): Move to
1746 tui-regs.h.
1747 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1748
ce38393b
TT
17492019-07-17 Tom Tromey <tom@tromey.com>
1750
1751 * tui/tui.c: Update.
1752 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1753 (tui_cmd_window::max_height): Move to tui-command.c.
1754 * tui/tui-layout.c: Update.
1755 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1756 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1757 tui-command.c.
1758 * tui/tui-command.h (struct tui_cmd_window): Move from
1759 tui-data.h.
1760 * tui/tui-command.c: Remove "structuring" comments.
1761 (tui_cmd_window::clear_detail)
1762 (tui_cmd_window::do_make_visible_with_new_height)
1763 (tui_cmd_window::max_height): Move from elsewhere.
1764
2d8b51cb
TT
17652019-07-17 Tom Tromey <tom@tromey.com>
1766
1767 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1768 Now static.
1769 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1770 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1771
18ab23af
TT
17722019-07-17 Tom Tromey <tom@tromey.com>
1773
1774 * tui/tui.c: Update.
1775 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1776 tui-regs.c.
1777 * tui/tui-windata.h: Remove file.
1778 * tui/tui-windata.c: Remove file.
1779 * tui/tui-win.c (tui_data_window::set_new_height)
1780 (tui_data_window::do_make_visible_with_new_height): Move to
1781 tui-regs.c.
1782 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1783 * tui/tui-regs.c: Remove "structuring" comments.
1784 (tui_data_window::first_data_item_displayed)
1785 (tui_data_window::delete_data_content_windows)
1786 (tui_data_window::erase_data_content)
1787 (tui_data_window::display_all_data)
1788 (tui_data_window::refresh_all)
1789 (tui_data_window::do_scroll_vertical)
1790 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1791 (tui_data_window::do_make_visible_with_new_height)
1792 (tui_data_window::refresh_window): Move from elsewhere.
1793 (_initialize_tui_regs): Move to end of file.
1794 * tui/tui-layout.c: Update.
1795 * tui/tui-hooks.c: Update.
1796 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1797 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1798 tui-regs.c.
1799 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1800
88b7e7cc
TT
18012019-07-17 Tom Tromey <tom@tromey.com>
1802
1803 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1804 seen.
1805
0fcd3711
TT
18062019-07-17 Tom Tromey <tom@tromey.com>
1807
1808 * tui/tui-win.c (tui_source_window_base::set_new_height)
1809 (tui_source_window_base::do_make_visible_with_new_height): Use
1810 m_has_locator field directly.
1811 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1812 method.
1813 (struct tui_source_window_base) <has_locator>: Likewise.
1814
4a38112d
TT
18152019-07-17 Tom Tromey <tom@tromey.com>
1816
1817 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1818 Don't declare.
1819 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1820 Remove.
1821 * tui/tui-win.c (tui_source_window_base::set_new_height)
1822 (tui_source_window_base::set_new_height)
1823 (make_invisible_and_set_new_height)
1824 (tui_source_window_base::do_make_visible_with_new_height)
1825 (tui_source_window_base::do_make_visible_with_new_height):
1826 Update.
1827 * tui/tui-layout.c (show_source_disasm_command, show_data)
1828 (show_source_or_disasm_and_command): Update.
1829 * tui/tui-layout.c (show_layout): Update.
1830
09129226
TT
18312019-07-17 Tom Tromey <tom@tromey.com>
1832
1833 * tui/tui-layout.c (make_data_window): Remove.
1834 (show_data): Unify creation and re-initialization cases.
1835
4a8a5e84
TT
18362019-07-17 Tom Tromey <tom@tromey.com>
1837
1838 * tui/tui-layout.c (make_source_window, make_disasm_window):
1839 Remove.
1840 (show_data): Unify creation and re-initialization cases.
1841
76d2be8e
TT
18422019-07-17 Tom Tromey <tom@tromey.com>
1843
1844 * tui/tui-layout.c (make_command_window): Remove.
1845 (show_source_disasm_command, show_source_or_disasm_and_command):
1846 Unify creation and re-initialization cases.
1847
890b8bde
TT
18482019-07-17 Tom Tromey <tom@tromey.com>
1849
1850 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1851 creation and re-initialization cases.
1852
2cdfa113
TT
18532019-07-17 Tom Tromey <tom@tromey.com>
1854
1855 * tui/tui-regs.c (tui_get_register): Return void.
1856
8e3cfd09
TT
18572019-07-17 Tom Tromey <tom@tromey.com>
1858
1859 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1860 Simplify.
1861
f4e04977
TT
18622019-07-17 Tom Tromey <tom@tromey.com>
1863
1864 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1865 resetting.
1866
0379b883
TT
18672019-07-17 Tom Tromey <tom@tromey.com>
1868
1869 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1870 * tui/tui-regs.c (tui_reg_layout): New function.
1871 (tui_show_registers, tui_reg_command): Use it.
1872 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1873 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1874 parameters.
1875 (tui_layout_command): Remove.
1876
b7fbad91
TT
18772019-07-17 Tom Tromey <tom@tromey.com>
1878
1879 * tui/tui-layout.h (tui/tui-layout): Return void.
1880 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1881
4e1e56b9
TT
18822019-07-17 Tom Tromey <tom@tromey.com>
1883
1884 * tui/tui-layout.c (show_source_disasm_command, show_data):
1885 Update.
1886 (reset_locator): Remove.
1887 (show_source_or_disasm_and_command): Update.
1888
1e0c09ba
TT
18892019-07-17 Tom Tromey <tom@tromey.com>
1890
1891 * tui/tui-source.c (tui_source_window_base::reset): Remove
1892 win_type parameter.
1893 * tui/tui-layout.c (make_command_window, make_source_window)
1894 (make_disasm_window, make_data_window)
1895 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1896 (reset_locator, show_source_or_disasm_and_command): Update.
1897 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1898 win_type parameter.
1899 (struct tui_source_window_base) <reset>: Likewise.
1900
1bf605de
TT
19012019-07-17 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-layout.c (show_source_disasm_command): Use
1904 reset_locator.
1905 (reset_locator): New function.
1906 (init_and_make_win): Remove.
1907 (show_source_or_disasm_and_command): Use reset_locator.
1908
098f9ed4
TT
19092019-07-17 Tom Tromey <tom@tromey.com>
1910
1911 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1912 condition.
1913 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1914 Remove condition.
1915 * tui/tui-source.c (tui_source_window_base::reset): New method.
1916 * tui/tui-layout.c (make_command_window): Don't call
1917 init_and_make_win.
1918 (make_source_window, make_disasm_window): Don't call
1919 make_source_or_disasm_window.
1920 (make_data_window): Don't call init_and_make_win. Change calling
1921 convention.
1922 (show_source_disasm_command, show_data): Simplify.
1923 (make_source_or_disasm_window): Remove.
1924 (show_source_or_disasm_and_command): Simplify.
1925 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1926 (struct tui_source_window_base) <reset>: Likewise.
1927 <execution_info>: Remove initializer.
1928 * tui/tui-data.c (tui_source_window_base): Initialize
1929 execution_info.
1930
80110957
TT
19312019-07-17 Tom Tromey <tom@tromey.com>
1932
1933 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1934 variable.
1935
cf82af05
TT
19362019-07-17 Tom Tromey <tom@tromey.com>
1937
1938 * tui/tui.c (tui_rl_other_window): Update.
1939 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1940 superclass method first. Always iterate over regs_content.
1941 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1942 method.
1943 * tui/tui-win.c (tui_set_focus_command): Update.
1944
01aeb396
TT
19452019-07-17 Tom Tromey <tom@tromey.com>
1946
1947 * tui/tui-win.c (tui_set_focus_command): Rename from
1948 tui_set_focus. Call tui_enable.
1949 (tui_set_focus_command): Remove.
1950
fd6c75ee
TT
19512019-07-17 Tom Tromey <tom@tromey.com>
1952
1953 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1954 refresh_window.
1955 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1956 touchwin.
1957 (tui_data_window::refresh_window): Call refresh_window on data
1958 items. Always call superclass refresh_window.
1959 (tui_win_info::refresh): Remove.
1960 (tui_source_window_base::refresh_window): Update.
1961 (tui_refresh_all): Update.
1962 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1963 refresh_window.
1964 (show_source_or_disasm_and_command): Likewise.
1965 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1966 (struct tui_source_window_base) <refresh>: Likewise.
1967
f6cc34a9
TT
19682019-07-17 Tom Tromey <tom@tromey.com>
1969
1970 * tui/tui-winsource.c (tui_clear_source_content)
1971 (tui_show_source_content): Update.
1972 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1973 whether content is empty.
1974 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1975 Remove.
1976
f31ec9af
TT
19772019-07-17 Tom Tromey <tom@tromey.com>
1978
1979 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1980 window's contents.
1981 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1982 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1983
d1b6f1e5
TT
19842019-07-17 Tom Tromey <tom@tromey.com>
1985
1986 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1987 (struct tui_data_item_window): Update.
1988
d9743a13
TT
19892019-07-17 Tom Tromey <tom@tromey.com>
1990
1991 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1992 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1993 defines.
1994
caf0bc4e
TT
19952019-07-17 Tom Tromey <tom@tromey.com>
1996
1997 * tui/tui-winsource.h (tui_erase_source_content)
1998 (tui_clear_source_content): Remove "display_prompt" parameter.
1999 * tui/tui-winsource.c (tui_update_source_window_as_is)
2000 (tui_update_source_windows_with_addr): Update.
2001 (tui_clear_source_content): Remove "display_prompt" parameter.
2002 (tui_erase_source_content): Likewise. Simplify.
2003 (tui_show_source_content): Update.
2004 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2005 * tui/tui-stack.c (tui_show_frame_info): Update.
2006 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2007 Remove defines.
2008
9d391078
TT
20092019-07-17 Tom Tromey <tom@tromey.com>
2010
2011 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2012 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2013 parameter.
2014 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2015 parameter.
2016
a38da35d
TT
20172019-07-17 Tom Tromey <tom@tromey.com>
2018
2019 * tui/tui-winsource.c (tui_clear_source_content)
2020 (tui_show_source_content, tui_show_exec_info_content)
2021 (tui_clear_exec_info_content): Update.
2022 * tui/tui-stack.c (tui_show_locator_content): Update.
2023 (tui_show_frame_info): Update.
2024 * tui/tui-source.h (tui_source_window): Don't declare.
2025 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2026 from tui_source_is_displayed.
2027 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2028 Remove field.
2029 (struct tui_source_window_base) <content_in_use>: New field. Now
2030 bool.
2031 (struct tui_source_window) <showing_source_p>: New method.
2032 (TUI_SRC_WIN): Change cast.
2033 * tui/tui-data.c (tui_initialize_static_data): Update.
2034
c2cd8994
TT
20352019-07-17 Tom Tromey <tom@tromey.com>
2036
2037 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2038 location_matches_p.
2039 * tui/tui-source.c (tui_source_window::location_matches_p): New
2040 method.
2041 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2042 method.
2043 * tui/tui-data.h (struct tui_source_window_base)
2044 <location_matches_p>: New method.
2045 (struct tui_source_window, struct tui_disasm_window)
2046 <location_matches_p>: Likewise.
2047
4dde7b34
TT
20482019-07-17 Tom Tromey <tom@tromey.com>
2049
2050 * tui/tui-win.c (tui_set_win_height_command): Rename from
2051 tui_set_win_height.
2052 (tui_set_win_height_command): Remove.
2053
b73dd877
TT
20542019-07-17 Tom Tromey <tom@tromey.com>
2055
2056 * tui/tui-source.c (tui_source_window): New constructor. Add
2057 observer.
2058 (~tui_source_window): New destructor.
2059 (tui_source_window::style_changed): New method.
2060 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2061 (tui_attach_detach_observers): Update.
2062 * tui/tui-data.h (struct tui_source_window): Make constructor not
2063 inline. Add destructor.
2064 (struct tui_source_window) <style_changed>: New method.
2065 <m_observable>: New member.
2066
ae2b5380
TT
20672019-07-17 Tom Tromey <tom@tromey.com>
2068
2069 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2070 * tui/tui-win.c (tui_resize_all): Fix typo.
2071
1ce3e844
TT
20722019-07-17 Tom Tromey <tom@tromey.com>
2073
2074 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2075 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2076 (tui_refresh_all): Remove "list" parameter. Use foreach.
2077 * tui/tui-win.c (window_name_completer): Use foreach.
2078 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2079 (update_tab_width): Likewise.
2080 * tui/tui-layout.c (show_layout): Update.
2081 * tui/tui-data.h (class tui_window_iterator): New.
2082 (struct all_tui_windows): New.
2083 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2084
fe3eaf1c
TT
20852019-07-17 Tom Tromey <tom@tromey.com>
2086
2087 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2088 parameter. Don't reference globals.
2089 (tui_reg_command): Update.
2090
368c1354
TT
20912019-07-17 Tom Tromey <tom@tromey.com>
2092
2093 * tui/tui-regs.c (tui_show_registers): Simplify.
2094
e80cd204
TT
20952019-07-17 Tom Tromey <tom@tromey.com>
2096
2097 * tui/tui-regs.c (tui_show_registers): Update.
2098 (tui_show_register_group): Add win_info parameter.
2099
aca2dd16
TT
21002019-07-17 Tom Tromey <tom@tromey.com>
2101
2102 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2103 Rename from tui_display_reg_element_at_line.
2104 (tui_data_window::display_registers_from_line): Update.
2105 * tui/tui-data.h (struct tui_data_window)
2106 <display_reg_element_at_line>: New method.
2107
517e9505
TT
21082019-07-17 Tom Tromey <tom@tromey.com>
2109
2110 * tui/tui-regs.h (tui_display_registers_from)
2111 (tui_display_registers_from_line): Don't declare.
2112 * tui/tui-windata.c (tui_data_window::display_all_data)
2113 (tui_data_window::refresh_all)
2114 (tui_data_window::do_scroll_vertical): Update.
2115 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2116 from tui_display_registers_from.
2117 (tui_display_reg_element_at_line): Update.
2118 (tui_data_window::display_registers_from_line): Rename from
2119 tui_display_registers_from_line.
2120 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2121 display_registers_from_line>: New methods.
2122
f76d8b19
TT
21232019-07-17 Tom Tromey <tom@tromey.com>
2124
2125 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2126 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2127 from tui_erase_data_content.
2128 (tui_data_window::display_all_data)
2129 (tui_data_window::refresh_all)
2130 (tui_data_window::do_scroll_vertical): Update.
2131 * tui/tui-regs.c (tui_show_registers): Update.
2132 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2133 New method.
2134
b4094625
TT
21352019-07-17 Tom Tromey <tom@tromey.com>
2136
2137 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2138 declare.
2139 * tui/tui-windata.c
2140 (tui_data_window::delete_data_content_windows): Rename from
2141 tui_delete_data_content_windows.
2142 (tui_data_window::display_all_data)
2143 (tui_data_window::do_scroll_vertical): Update.
2144 * tui/tui-data.h (struct tui_data_window)
2145 <delete_data_content_windows>: New method.
2146
c223a729
TT
21472019-07-17 Tom Tromey <tom@tromey.com>
2148
2149 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2150 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2151
50daf268
TT
21522019-07-17 Tom Tromey <tom@tromey.com>
2153
2154 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2155 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2156 from tui_display_all_data.
2157 * tui/tui-win.c
2158 (tui_data_window::do_make_visible_with_new_height): Update.
2159 * tui/tui-regs.c (tui_show_registers): Update.
2160 * tui/tui-layout.c (tui_set_layout): Update.
2161 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2162 method.
2163
df5f8cab
TT
21642019-07-17 Tom Tromey <tom@tromey.com>
2165
2166 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2167 * tui/tui-windata.c (tui_display_data_from): Remove.
2168 (tui_data_window::refresh_all): Update.
2169
80cb6c27
TT
21702019-07-17 Tom Tromey <tom@tromey.com>
2171
2172 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2173 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2174 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2175 tui_display_registers_from_line.
2176 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2177 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2178 "force_display" parameter.
2179
baff0c28
TT
21802019-07-17 Tom Tromey <tom@tromey.com>
2181
2182 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2183 declare.
2184 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2185 Rename from tui_first_reg_element_no_inline.
2186 (tui_display_reg_element_at_line)
2187 (tui_display_registers_from_line): Update.
2188 * tui/tui-data.h (struct tui_data_window)
2189 <first_reg_element_no_inline>: New method.
2190
3b23c5f2
TT
21912019-07-17 Tom Tromey <tom@tromey.com>
2192
2193 * tui/tui-windata.c (tui_display_data_from)
2194 (tui_data_window::do_scroll_vertical): Update.
2195 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2196 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2197 Rename from tui_line_from_reg_element_no.
2198 (tui_display_registers_from_line): Update.
2199 * tui/tui-data.h (struct tui_data_window)
2200 <line_from_reg_element_no>: New method.
2201
0b5ec218
TT
22022019-07-17 Tom Tromey <tom@tromey.com>
2203
2204 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2205 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2206 tui_last_regs_line_no.
2207 (tui_display_reg_element_at_line)
2208 (tui_display_registers_from_line): Update.
2209 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2210 method.
2211
0807ab7b
TT
22122019-07-17 Tom Tromey <tom@tromey.com>
2213
2214 PR tui/24722:
2215 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2216 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2217 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2218 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2219 (tui_update_breakpoint_info): Likewise.
2220 * tui/tui-hooks.c (tui_event_create_breakpoint)
2221 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2222 Update.
2223
9ad7fdef
TT
22242019-07-17 Tom Tromey <tom@tromey.com>
2225
2226 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2227
5813316f
TT
22282019-07-17 Tom Tromey <tom@tromey.com>
2229
2230 * tui/tui-winsource.c (tui_update_source_window_as_is)
2231 (tui_update_source_windows_with_addr): Update.
2232 * tui/tui-source.h (tui_set_source_content)
2233 (tui_show_symtab_source): Add "win_info" parameter.
2234 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2235 parameter.
2236 (tui_show_symtab_source): Likewise.
2237
00e264e7
TT
22382019-07-17 Tom Tromey <tom@tromey.com>
2239
2240 * tui/tui-wingeneral.c
2241 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2242
06210ce4
TT
22432019-07-17 Tom Tromey <tom@tromey.com>
2244
2245 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2246 (struct tui_cmd_window) <can_scroll>: New method.
2247 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2248 method.
2249
381befee
TT
22502019-07-17 Tom Tromey <tromey@adacore.com>
2251
2252 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2253 do_field_signed>: Rename. Change type of "value".
2254 * ui-out.c (ui_out::field_signed): Rename from field_int.
2255 Change type of "value".
2256 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2257 type of "value".
2258 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2259 do_field_int. Change type of "value".
2260 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2261 do_field_int. Change type of "value".
2262 * tracepoint.c (trace_status_mi, tfind_1)
2263 (print_one_static_tracepoint_marker): Update.
2264 * thread.c (print_thread_info_1, print_selected_thread_frame):
2265 Update.
2266 * stack.c (print_frame, print_frame_info): Update.
2267 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2268 Update.
2269 * source.c (print_source_lines_base): Update.
2270 * skip.c (info_skip_command): Update.
2271 * record-btrace.c (btrace_ui_out_decode_error)
2272 (btrace_call_history_src_line): Update.
2273 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2274 Update.
2275 * progspace.c (print_program_space): Update.
2276 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2277 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2278 do_field_int. Change type of "value".
2279 * mi/mi-out.c (mi_ui_out::do_table_begin)
2280 (mi_ui_out::do_table_header): Update.
2281 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2282 type of "value".
2283 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2284 (mi_cmd_data_list_changed_registers, output_register)
2285 (mi_cmd_data_read_memory, mi_load_progress)
2286 (mi_cmd_trace_frame_collected): Update.
2287 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2288 Update.
2289 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2290 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2291 (mi_cmd_var_list_children, varobj_update_one): Update.
2292 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2293 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2294 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2295 * inferior.c (print_inferior): Update.
2296 * gdb_bfd.c (print_one_bfd): Update.
2297 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2298 Update.
2299 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2300 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2301 do_field_int. Change type of "value".
2302 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2303 do_field_int. Change type of "value".
2304 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2305 (print_one_breakpoint_location, print_it_catch_fork)
2306 (print_one_catch_fork, print_it_catch_vfork)
2307 (print_one_catch_vfork, print_it_catch_solib)
2308 (print_it_catch_exec, print_it_ranged_breakpoint)
2309 (print_mention_watchpoint, print_mention_masked_watchpoint)
2310 (bkpt_print_it, update_static_tracepoint): Update.
2311 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2312 * break-catch-syscall.c (print_it_catch_syscall): Update.
2313 * ada-tasks.c (print_ada_task_info): Update.
2314 * ada-lang.c (print_it_exception, print_mention_exception):
2315 Update.
2316
6b78c3f8
AB
23172019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 PR breakpoints/24541
2320 * gdbarch.c: Regenerate.
2321 * gdbarch.h: Regenerate.
2322 * gdbarch.sh: Adjust return type and parameter types for
2323 'stap_adjust_register'.
2324 (i386_stap_adjust_register): Adjust signature and return new
2325 register name.
2326 * stap-probe.c (stap_parse_register_operand): Adjust use of
2327 'gdbarch_stap_adjust_register'.
2328
d72a9b85
TT
23292019-07-17 Tom Tromey <tromey@adacore.com>
2330
2331 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2332 declare VEC.
2333 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2334 std::vector.
2335 (struct s390_process_info): Add initializers.
2336 (s390_add_process): Use new.
2337 (s390_linux_nat_target::low_forget_process): Use delete.
2338 (s390_linux_nat_target::low_new_fork)
2339 (s390_linux_nat_target::stopped_by_watchpoint)
2340 (s390_linux_nat_target::low_prepare_to_resume)
2341 (s390_linux_nat_target::insert_watchpoint)
2342 (s390_linux_nat_target::insert_hw_breakpoint)
2343 (s390_linux_nat_target::remove_watchpoint)
2344 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2345
206e6c58
JB
23462019-07-16 John Baldwin <jhb@FreeBSD.org>
2347
2348 * aarch64-fbsd-nat.c: Include regcache.h.
2349 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2350 argument.
2351 (aarch64_fbsd_nat_target::fetch_registers)
2352 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2353 variable.
2354 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2355
cbde90f2
JB
23562019-07-16 John Baldwin <jhb@FreeBSD.org>
2357
2358 * fbsd-nat.c: Include gdbarch.h.
2359
07128006
TT
23602019-07-15 Tom Tromey <tromey@adacore.com>
2361
2362 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2363
1f77b012
TT
23642019-07-15 Tom Tromey <tromey@adacore.com>
2365
2366 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2367 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2368 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2369 * cli-out.c (cli_ui_out::do_field_int): New method.
2370 * ui-out.c (ui_out::field_unsigned): New method.
2371 * symfile.c (generic_load): Use field_unsigned.
2372 (print_transfer_performance): Likewise.
2373 * record-btrace.c (ui_out_field_uint): Remove.
2374 (btrace_call_history_insn_range, btrace_call_history): Use
2375 field_unsigned.
2376 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2377 field_unsigned.
2378 * ui-out.h (class ui_out) <field_unsigned>: New method.
2379 <do_field_unsigned>: Likewise.
2380
33eca680
TT
23812019-07-15 Tom Tromey <tromey@adacore.com>
2382
2383 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2384 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2385 * target.c (flash_erase_command): Use field_string.
2386 * infrun.c (print_signal_received_reason): Use field_string.
2387 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2388 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2389 field_string.
2390 * ada-tasks.c (print_ada_task_info): Use field_string.
2391
ca8d69be
TT
23922019-07-15 Tom Tromey <tromey@adacore.com>
2393
2394 * target.c (flash_erase_command): Use field_core_addr.
2395 * symfile.c (generic_load): Use field_core_addr.
2396 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2397 Use field_core_addr.
2398 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2399 field_core_addr.
2400
0d4e84ed
AB
24012019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2402
2403 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2404 value if its desired type is smaller than a CORE_ADDR and signed.
2405
9a49df9d
AB
24062019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2407
2408 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2409 of changes to field names, and use new is_reference field to
2410 decide if a property is a reference or not.
2411 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2412 field.
2413 (struct dwarf2_property_baton): Update header comment, rename
2414 'referenced_type' to 'property_type' and update comments.
2415 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2416 default property type, store in property baton, update to take
2417 accound of renamed field.
2418 (read_func_scope): Update call to attr_to_dynamic_prop.
2419 (read_array_type): Likewise.
2420 (dwarf2_per_cu_addr_sized_int_type): New function.
2421 (read_subrange_index_type): Move type finding code to
2422 dwarf2_per_cu_addr_sized_int_type.
2423 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2424 (dwarf2_per_cu_addr_type): New function.
2425 (set_die_type): Update calls to attr_to_dynamic_prop.
2426
b86352cf
AB
24272019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2428
2429 * dwarf2read.c (read_subrange_index_type): New function.
2430 (read_subrange_type): Move code into new function and call it.
2431 * gdbtypes.c (create_range_type): Add some asserts.
2432
603490bf
AB
24332019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2434
2435 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2436 update return statements.
2437 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2438 declaration, and update comment to match.
2439 * gdbtypes.c (resolve_dynamic_array): Update call to
2440 dwarf2_evaluate_property to match new return type.
2441
592f9d27
AB
24422019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2443
2444 * valarith.c (value_subscripted_rvalue): Change lowerbound
2445 parameter type from int to LONGEST.
2446 * value.h (value_subscripted_rvalue): Likewise in declaration.
2447
60cfcb20
AB
24482019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * cli/cli-utils.c (info_print_command_completer): New function.
2451 * cli/cli-utils.h: Add 'completer.h' include, and forward
2452 declaration for 'struct cmd_list_element'.
2453 (info_print_command_completer): Declare.
2454 * stack.c (_initialize_stack): Add completer for 'info locals' and
2455 'info args'.
2456 * symtab.c (_initialize_symtab): Add completer for 'info
2457 variables' and 'info functions'.
2458 * NEWS: Mention completion for additional info commands.
2459
b16507e0
AB
24602019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * cli/cli-utils.c (extract_info_print_args): Delete.
2463 (extract_arg_maybe_quoted): Delete.
2464 (info_print_options_defs): New variable.
2465 (make_info_print_options_def_group): New function.
2466 (extract_info_print_options): Define new function.
2467 * cli/cli-utils.h (extract_info_print_args): Delete.
2468 (struct info_print_options): New structure.
2469 (extract_info_print_options): Declare new function.
2470 * stack.c (info_locals_command): Update to use new
2471 extract_info_print_options, also add a header comment.
2472 (info_args_command): Likewise.
2473 * symtab.c (info_variables_command): Likewise.
2474 (info_functions_command): Likewise.
2475
021d8588
AB
24762019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2477
2478 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2479 to extract string arguments.
2480 * common/common-utils.c (extract_string_maybe_quoted): New function.
2481 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2482
b777eb6d
TT
24832019-07-11 Tom Tromey <tromey@adacore.com>
2484
2485 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2486 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2487 * top.h (gdbinit): Don't declare.
2488 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2489 into...
2490 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2491 * top.c (gdb_init): Don't call init_cli_cmds.
2492 (gdbinit): Remove.
2493 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2494
72ee03ff
TT
24952019-07-11 Tom Tromey <tromey@adacore.com>
2496
2497 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2498 after it has been moved.
2499
00db9531
SM
25002019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2501
2502 * valops.c (value_must_coerce_to_target): Change return type to
2503 bool.
2504 * value.h (value_must_coerce_to_target): Likewise.
2505
f2478a7e
SM
25062019-07-10 Simon Marchi <simon.marchi@efficios.com>
2507
2508 * breakpoint.c (is_hardware_watchpoint): Remove
2509 forward-declaration.
2510 (is_masked_watchpoint): Change return type to bool.
2511 (is_tracepoint): Likewise.
2512 (is_breakpoint): Likewise.
2513 (is_hardware_watchpoint): Likewise.
2514 (is_watchpoint): Likewise.
2515 (is_no_memory_software_watchpoint): Likewise.
2516 (is_catchpoint): Likewise.
2517 (breakpoint_1): Make FILTER parameter's return type bool.
2518 is_masked_watchpoint): Change return type to bool.
2519 (save_breakpoints): Make FILTER parameter's return type bool.
2520 * breakpoint.h (is_breakpoint): Change return type to bool.
2521 (is_watchpoint): Likewise.
2522 (is_catchpoint): Likewise.
2523 (is_tracepoint): Likewise.
2524
0d12e84c
TT
25252019-07-10 Tom Tromey <tom@tromey.com>
2526
2527 * defs.h: Don't include gdbarch.h.
2528 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2529 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2530 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2531 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2532 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2533 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2534 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2535 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2536 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2537 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2538 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2539 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2540 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2541 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2542 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2543 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2544 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2545 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2546 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2547 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2548 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2549 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2550 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2551 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2552 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2553 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2554 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2555
f06f1252
TT
25562019-07-10 Tom Tromey <tromey@adacore.com>
2557
2558 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2559 * breakpoint.c (init_ada_exception_breakpoint): Register as
2560 bp_catchpoint.
2561 (print_one_breakpoint_location, print_one_breakpoint): Use
2562 is_ada_exception_catchpoint.
2563 * ada-lang.c (class ada_catchpoint_location): Pass
2564 bp_loc_software_breakpoint to bp_location constructor.
2565 (is_ada_exception_catchpoint): New function.
2566
7a5d944b
TT
25672019-07-10 Tom Tromey <tromey@adacore.com>
2568
2569 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2570 VEC.
2571 (struct arm_exidx_entry): New method operator<.
2572 (struct arm_exidx_data) <section_maps>: Change type.
2573 (arm_exidx_data_free): Remove.
2574 (arm_exidx_data_key): Change type. Move lower.
2575 (arm_exidx_new_objfile): Update.
2576 (arm_compare_exidx_entries): Remove.
2577 (arm_find_exidx_entry, _initialize_arm_tdep)
2578
48c66e1d
TT
25792019-07-10 Tom Tromey <tromey@adacore.com>
2580
2581 * solib-spu.c (ocl_program_data_key): Change type.
2582 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2583 Update.
2584
a269fbf1
TT
25852019-07-10 Tom Tromey <tromey@adacore.com>
2586
2587 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2588 (struct solib_aix_inferior_data) <library_list>: Change type.
2589 (solib_aix_inferior_data_handle): Change type.
2590 (get_solib_aix_inferior_data): Update.
2591 (solib_aix_free_library_list): Remove.
2592 (library_list_start_library): Update.
2593 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2594 return type.
2595 (solib_aix_get_library_list)
2596 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2597 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2598
c294730c
TT
25992019-07-10 Tom Tromey <tromey@adacore.com>
2600
2601 * solib-dsbt.c (struct dsbt_info): Add initializers.
2602 (solib_dsbt_pspace_data): Change type.
2603 (dsbt_pspace_data_cleanup): Remove.
2604 (get_dsbt_info, _initialize_dsbt_solib): Update.
2605
9d52077d
TT
26062019-07-10 Tom Tromey <tromey@adacore.com>
2607
2608 * spu-tdep.c (spu_overlay_data): Change type.
2609 (spu_get_overlay_table, spu_overlay_new_objfile)
2610 (_initialize_spu_tdep): Update.
2611
22a20dca
TT
26122019-07-10 Tom Tromey <tromey@adacore.com>
2613
2614 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2615 destructor.
2616 (dbx_objfile_data_key): Change type and declare later.
2617 (DBX_SYMFILE_INFO): Rewrite.
2618 * dbxread.c (dbx_objfile_data_key): Change type.
2619 (dbx_symfile_init): Update.
2620 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2621 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2622 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2623
cb60f420
TT
26242019-07-10 Tom Tromey <tromey@adacore.com>
2625
2626 * jit.c (jit_program_space_key): Change type. Move lower.
2627 (get_jit_program_space_data): Update.
2628 (jit_program_space_data_cleanup): Remove.
2629 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2630 Update.
2631 (struct jit_program_space_data): Add initializers.
2632
51df2ae3
TT
26332019-07-10 Tom Tromey <tromey@adacore.com>
2634
2635 * solib-darwin.c (struct darwin_info): Add initializers.
2636 (solib_darwin_pspace_data): Change type.
2637 (darwin_pspace_data_cleanup): Remove.
2638 (get_darwin_info, _initialize_darwin_solib): Update.
2639
18101a35
TT
26402019-07-10 Tom Tromey <tromey@adacore.com>
2641
2642 * remote-sim.c (struct sim_inferior_data): Add initializers,
2643 constructor, and destructor.
2644 (sim_inferior_data_key): Change type. Move lower.
2645 (check_for_duplicate_sim_descriptor): Update.
2646 (get_sim_inferior_data): Use new. Update.
2647 (~sim_inferior_data_cleanup): Rename from
2648 sim_inferior_data_cleanup. Simplify.
2649 (gdbsim_close_inferior, simulator_command)
2650 (sim_command_completer, _initialize_remote_sim): Update.
2651 (next_pid, INITIAL_PID): Move earlier.
2652
05b08ac1
TT
26532019-07-10 Tom Tromey <tromey@adacore.com>
2654
2655 * python/python-internal.h (create_thread_object): Return
2656 gdbpy_ref.
2657 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2658 * python/py-inferior.c (struct threadlist_entry): Add
2659 constructor.
2660 <thread_obj>: Now a gdbpy_ref.
2661 (thread_to_thread_object): Update.
2662 (add_thread_object): Use new.
2663 (delete_thread_object): Use delete.
2664 (infpy_threads): Update.
2665 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2666 GIL.
2667
32372d80
TT
26682019-07-10 Tom Tromey <tromey@adacore.com>
2669
2670 * valops.c (value_cast): Specialize error message for Ada.
2671
5c458ae8
SM
26722019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2673
2674 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2675
4c462cb0
SM
26762019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2677
2678 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2679 bpstat_should_step): Return bool, adjust comments.
2680 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2681 bpstat_should_step): Likewise.
2682
89abbcc2
AH
26832019-07-10 Alan Hayward <alan.hayward@arm.com>
2684
2685 * features/Makefile: Use feature target descriptions for Arm.
2686 * features/arm/arm-core.c: Generate new file.
2687 * features/arm/arm-fpa.c: Likewise.
2688 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2689 * features/arm/arm-m-profile.c: Likewise.
2690 * features/arm/arm-vfpv2.c: Likewise.
2691 * features/arm/arm-vfpv3.c: Likewise.
2692 * features/arm/xscale-iwmmxt.c: Likewise.
2693 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2694
166a82be
AH
26952019-07-10 Alan Hayward <alan.hayward@arm.com>
2696
2697 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2698 ptrace earlier.
2699
9fb4c7e9
AH
27002019-07-10 Alan Hayward <alan.hayward@arm.com>
2701
2702 * features/aarch64-pauth.c: Regenerate.
2703
e2d0f980
SM
27042019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2705
2706 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2707 bool.
2708 (bpstat_what): Use false instead of 0.
2709
a38118e5
PA
27102019-07-09 Pedro Alves <palves@redhat.com>
2711
2712 * break-catch-throw.c (is_exception_catchpoint): New.
2713 * breakpoint.c (print_one_breakpoint_location): New parameter
2714 'raw_loc'. Handle it. Use
2715 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2716 looking at the breakpoint's type.
2717 (print_one_breakpoint): If handling "maint info breakpoints", also
2718 print locations of exception catchpoints.
2719 * breakpoint.h (is_exception_catchpoint): Declare.
2720
cb1e4e32
PA
27212019-07-09 Pedro Alves <palves@redhat.com>
2722
2723 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2724 "addr" field.
2725 (allocate_location_exception_catchpoint): New.
2726 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2727 (initialize_throw_catchpoint_ops): Install
2728 allocate_location_exception_catchpoint as allocate_location
2729 method.
2730 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2731 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2732 bp_loc_other.
2733 (breakpoint_address_is_meaningful): Delete.
2734 (bl_address_is_meaningful): New.
2735 (breakpoint_locations_match): Adjust comment.
2736 (bp_location_from_bp_type): New, factored out of...
2737 (bp_location::bp_location(breakpoint *)): ... this.
2738 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2739 factored out of...
2740 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2741 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2742 breakpoint_address_is_meaningful.
2743 (bp_locations_compare): Adjust comment.
2744 (update_global_location_list): Use bl_address_is_meaningful
2745 instead of breakpoint_address_is_meaningful.
2746 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2747 explicit.
2748 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2749 * python/py-breakpoint.c (bppy_get_location): No longer check
2750 whether location is null.
2751
b58a68fe
PA
27522019-07-09 Pedro Alves <palves@redhat.com>
2753
2754 PR c++/15468
2755 * breakpoint.c (print_one_breakpoint_location): Remove
2756 single-location assert.
2757
268a13a5
TT
27582019-07-09 Tom Tromey <tom@tromey.com>
2759
2760 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2761 * configure: Rebuild.
2762 * configure.ac: Change common to gdbsupport.
2763 * gdbsupport: Rename from common.
2764 * acinclude.m4: Change common to gdbsupport.
2765 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2766 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2767 gdbsupport.
2768 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2769 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2770 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2771 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2772 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2773 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2774 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2775 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2776 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2777 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2778 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2779 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2780 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2781 coff-pe-read.c, command.h, compile/compile-c-support.c,
2782 compile/compile-c.h, compile/compile-cplus-symbols.c,
2783 compile/compile-cplus-types.c, compile/compile-cplus.h,
2784 compile/compile-loc2c.c, compile/compile.c, completer.c,
2785 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2786 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2787 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2788 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2789 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2790 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2791 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2792 features/aarch64-core.c, features/aarch64-fpu.c,
2793 features/aarch64-pauth.c, features/aarch64-sve.c,
2794 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2795 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2796 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2797 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2798 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2799 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2800 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2801 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2802 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2803 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2804 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2805 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2806 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2807 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2808 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2809 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2810 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2811 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2812 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2813 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2814 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2815 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2816 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2817 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2818 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2819 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2820 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2821 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2822 minsyms.c, mips-linux-tdep.c, namespace.h,
2823 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2824 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2825 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2826 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2827 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2828 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2829 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2830 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2831 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2832 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2833 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2834 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2835 procfs.c, producer.c, progspace.h, psymtab.h,
2836 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2837 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2838 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2839 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2840 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2841 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2842 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2843 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2844 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2845 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2846 target-memory.c, target.c, target.h, target/waitstatus.c,
2847 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2848 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2849 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2850 unittests/array-view-selftests.c,
2851 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2852 unittests/common-utils-selftests.c,
2853 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2854 unittests/format_pieces-selftests.c,
2855 unittests/function-view-selftests.c,
2856 unittests/lookup_name_info-selftests.c,
2857 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2858 unittests/mkdir-recursive-selftests.c,
2859 unittests/observable-selftests.c,
2860 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2861 unittests/parse-connection-spec-selftests.c,
2862 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2863 unittests/scoped_fd-selftests.c,
2864 unittests/scoped_mmap-selftests.c,
2865 unittests/scoped_restore-selftests.c,
2866 unittests/string_view-selftests.c, unittests/style-selftests.c,
2867 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2868 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2869 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2870 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2871 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2872 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2873
5b0e2db4
AB
28742019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2875
2876 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2877 bool value.
2878 (decode_digits_ordinary): Set explicit_line field in sal.
2879 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2880 symtab_and_line that was set on an explicit line number in
2881 assembler code. Do always update the recorded symtab and line if
2882 we do skip the prologue.
2883
0ba852ab
AB
28842019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * breakpoint.c (set_breakpoint_location_function): Remove
2887 explicit_loc parameter.
2888 (momentary_breakpoint_from_master): Update call to
2889 set_breakpoint_location_function.
2890 (add_location_to_breakpoint): Likewise.
2891
b3a7d171
AB
28922019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2895 required features based on default bfd type when no specific bfd
2896 is present.
2897
1f6f6e21
PW
28982019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2899
2900 * NEWS: Mention that GDB printf and eval commands can now print
2901 C-style and Ada-style convenience var strings without
2902 calling the inferior.
2903 * printcmd.c (printf_c_string): Locally print GDB internal var
2904 instead of transiting via the inferior.
2905 (printf_wide_c_string): Likewise.
2906
29072019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2908
2909 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2910
0598af48
TT
29112019-07-04 Tom Tromey <tom@tromey.com>
2912
2913 PR tui/24724:
2914 * tui/tui-winsource.c (tui_clear_source_content): Update.
2915 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2916 (tui_update_breakpoint_info): Update.
2917 (tui_set_exec_info_content): Update.
2918 * tui/tui-source.c (tui_set_source_content_nil): Update.
2919 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2920 has_break.
2921 * tui/tui-data.h (enum tui_bp_flag): New.
2922 (tui_bp_flags): New enum flags type.
2923 (struct tui_source_element) <break_mode>: Change type. Rename
2924 from has_break.
2925 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2926 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2927 constants.
2928 * tui/tui-winsource.h: Fix comment.
2929
350fab54
AH
29302019-07-04 Alan Hayward <alan.hayward@arm.com>
2931
2932 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2933 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2934 (store_fpregs_to_thread)
2935 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2936 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2937 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2938 (IWMMXT_REGS_SIZE): Add define.
2939 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2940 (fetch_vfp_regs, store_vfp_regs)
2941 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2942 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2943
f0452268
AH
29442019-07-04 Alan Hayward <alan.hayward@arm.com>
2945
2946 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2947 defines.
2948 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2949 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2950 (ARM_INT_REGISTER_SIZE): ...to this.
2951 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2952 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2953 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2954 (arm_linux_collect_gregset, supply_nwfpe_register)
2955 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2956 defines.
2957 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2958 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2959 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2960 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2961 (arm_return_in_memory, arm_store_return_value)
2962 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2963 (arm_record_ld_st_multiple): Likewise.
2964 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2965 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2966
e935475c
AH
29672019-07-04 Alan Hayward <alan.hayward@arm.com>
2968
2969 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2970 AARCH64_DISPLACED_MODIFIED_INSNS.
2971 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2972 (aarch64_displaced_step_copy_insn): Likewise.
2973 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2974 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2975 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2976 ARM_DISPLACED_MODIFIED_INSNS.
2977 * arm-tdep.c (arm_gdbarch_init): Likewise.
2978 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2979 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2980 (struct arm_displaced_step_closure): Use
2981 ARM_DISPLACED_MODIFIED_INSNS.
2982
df0bb381
AH
29832019-07-04 Alan Hayward <alan.hayward@arm.com>
2984
2985 * features/Makefile: Remove unused xml files.
2986 * features/aarch64.xml: Remove.
2987 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2988 * features/i386/amd64-avx-avx512.xml: Remove.
2989 * features/i386/amd64-avx-linux.xml: Remove.
2990 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2991 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2992 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2993 * features/i386/amd64-avx-mpx.xml: Remove.
2994 * features/i386/amd64-avx.xml: Remove.
2995 * features/i386/amd64-linux.xml: Remove.
2996 * features/i386/amd64-mpx-linux.xml: Remove.
2997 * features/i386/amd64-mpx.xml: Remove.
2998 * features/i386/amd64.xml: Remove.
2999 * features/i386/i386-avx-avx512-linux.xml: Remove.
3000 * features/i386/i386-avx-avx512.xml: Remove.
3001 * features/i386/i386-avx-linux.xml: Remove.
3002 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3003 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3004 * features/i386/i386-avx-mpx-linux.xml: Remove.
3005 * features/i386/i386-avx-mpx.xml: Remove.
3006 * features/i386/i386-avx.xml: Remove.
3007 * features/i386/i386-linux.xml: Remove.
3008 * features/i386/i386-mmx-linux.xml: Remove.
3009 * features/i386/i386-mmx.xml: Remove.
3010 * features/i386/i386-mpx-linux.xml: Remove.
3011 * features/i386/i386-mpx.xml: Remove.
3012 * features/i386/i386.xml: Remove.
3013 * features/i386/x32-avx-avx512-linux.xml: Remove.
3014 * features/i386/x32-avx-linux.xml: Remove.
3015 * features/i386/x32-linux.xml: Remove.
3016
edd6266a
AH
30172019-07-04 Alan Hayward <alan.hayward@arm.com>
3018
3019 * regformats/aarch64.dat: Remove.
3020 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3021 * regformats/i386/amd64-avx-linux.dat: Remove.
3022 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3023 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3024 * regformats/i386/amd64-linux.dat: Remove.
3025 * regformats/i386/amd64-mpx-linux.dat: Remove.
3026 * regformats/i386/amd64.dat: Remove.
3027 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3028 * regformats/i386/i386-avx-linux.dat: Remove.
3029 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3030 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3031 * regformats/i386/i386-linux.dat: Remove.
3032 * regformats/i386/i386-mmx-linux.dat: Remove.
3033 * regformats/i386/i386-mpx-linux.dat: Remove.
3034 * regformats/i386/i386.dat: Remove.
3035 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3036 * regformats/i386/x32-avx-linux.dat: Remove.
3037 * regformats/i386/x32-linux.dat: Remove.
3038
2b40fda7
AH
30392019-07-04 Alan Hayward <alan.hayward@arm.com>
3040
3041 * aarch64-tdep.c: Remove xml self tests.
3042 * amd64-linux-tdep.c: Likewise.
3043 * amd64-tdep.c: Likewise.
3044 * i386-linux-tdep.c: Likewise.
3045 * i386-tdep.c: Likewise.
3046
5f4ba3e7
PA
30472019-07-03 Pedro Alves <palves@redhat.com>
3048
3049 PR cli/24732
3050 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3051 (pipe_cmd_option_defs): New.
3052 (make_pipe_cmd_options_def_group): New.
3053 (pipe_command): Use gdb::option::process_options.
3054 (pipe_command_completer): New function.
3055 (_initialize_cli_cmds): Install completer for "pipe" command.
3056
3d9be6f5
PA
30572019-07-03 Pedro Alves <palves@redhat.com>
3058
3059 * cli/cli-option.c (union option_value) <string>: New field.
3060 (struct option_def_and_value): Add ctor, move ctor, dtor and
3061 use DISABLE_COPY_AND_ASSIGN.
3062 (option_def_and_value::clear_value): New.
3063 (parse_option, save_option_value_in_ctx, get_val_type_str)
3064 (add_setshow_cmds_for_options): Handle var_string.
3065 * cli-option.h (union option_def::var_address) <string>: New
3066 field.
3067 (struct string_option_def): New.
3068 * maint-test-options.c (struct test_options_opts): Add default
3069 ctor and use DISABLE_COPY_AND_ASSIGN.
3070 <string_opt>: New field.
3071 (test_options_opts::~test_options_opts): New.
3072 (test_options_opts::dump): Also dump "-string".
3073 (test_options_option_defs): Install "string.
3074
41fc454c
PA
30752019-07-03 Pedro Alves <palves@redhat.com>
3076
3077 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3078 option_value with a null enumeration.
3079 (complete_options): Save the option values in the context.
3080 (save_option_value_in_ctx): New, factored out from ...
3081 (process_options): ... here.
3082 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3083 of the function.
3084 * maint-test-options.c (test_options_opts::dump): New, factored
3085 out from ...
3086 (maintenance_test_options_command_mode): ... here.
3087 (maintenance_test_options_command_completion_result): Delete.
3088 (maintenance_test_options_command_completion_text): Update
3089 comment.
3090 (maintenance_show_test_options_completion_result): Change
3091 prototype. Just print
3092 maintenance_test_options_command_completion_text.
3093 (save_completion_result): New.
3094 (maintenance_test_options_completer_mode): Pass options context to
3095 complete_options, and then save a dump.
3096 (_initialize_maint_test_options): Use add_cmd to install "maint
3097 show test-options-completion-result".
3098
fdbc9870
PA
30992019-07-03 Pedro Alves <palves@redhat.com>
3100
3101 * NEWS (New commands): Mention "with" and "maint with".
3102 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3103 (with_command, with_command_completer): New.
3104 (pipe_command): Adjust to new repeat_previous
3105 interface.
3106 (_initialize_cli_cmds): Install the "with" command and its "w"
3107 alias.
3108 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3109 declarations.
3110 * cli/cli-setshow.c (parse_cli_var_uinteger)
3111 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3112 argument strings for all var_types.
3113 (get_setshow_command_value_string): New, factored out from ...
3114 (do_show_command): ... this.
3115 * cli/cli-setshow.h: Include <string>.
3116 (get_setshow_command_value_string): Declare.
3117 * command.h (repeat_previous): Now returns const char *. Adjust
3118 comment.
3119 * maint.c: Include "cli/cli-cmds.h".
3120 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3121 (_initialize_maint_cmds): Register the "maintenance with" command.
3122 * top.c (repeat_previous): Move bits from pipe_command here:
3123 Return the saved command line, if any; error out if there's no
3124 command to relaunch.
3125
c6ac8931
PA
31262019-07-03 Pedro Alves <palves@redhat.com>
3127
3128 * NEWS (New commands): Mention "maint set/show test-settings"
3129 instead of "maint test-settings".
3130 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3131 (maintenance_test_settings_set_list): Rename to ...
3132 (maintenance_set_test_settings_list): ... this.
3133 (maintenance_test_settings_show_list): Rename to ...
3134 (maintenance_show_test_settings_list): ... this.
3135 (maintenance_test_settings_cmd): Delete.
3136 (maintenance_test_settings_set_cmd): ...
3137 (maintenance_set_test_settings_cmd): ... this.
3138 (maintenance_test_settings_show_cmd): ...
3139 (maintenance_show_test_settings_cmd): ... this.
3140 (maintenance_test_settings_show_value_cmd):
3141 (maintenance_show_test_settings_value_cmd): ... this.
3142 (_initialize_maint_test_settings): No longer install the "maint
3143 test-settings" prefix command. Rename "maint test-settings set"
3144 to "maint set test-settings", and "maint test-settings show" to
3145 "maint show test-settings". Adjust all subcommands.
3146
d1fcf2fd
PA
31472019-07-03 Pedro Alves <palves@redhat.com>
3148
3149 * maint-test-settings.c: Fix file's intro comment. Replace all
3150 references to "test-options" with references to "test-settings",
3151 in comments.
3152
970f9d09
PA
31532019-07-03 Pedro Alves <palves@redhat.com>
3154
3155 * maint-test-settings.c (maintenance_test_settings_xxx)
3156 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3157 New.
3158 (maintenance_test_settings_enums): Use them.
3159 (maintenance_test_settings_enum): Default to
3160 maintenance_test_settings_xxx.
3161 (_initialize_maint_test_settings): Initialize
3162 MAINTENANCE_TEST_SETTINGS_FILENAME.
3163
f3869b1a
SM
31642019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3165
3166 * breakpoint.h (remove_breakpoints_inf): Change return type to
3167 void, move function documentation here.
3168 * breakpoint.c (remove_breakpoints_inf): Change return type to
3169 void, move function documentation to header.
3170
54d66006
PA
31712019-07-02 Pedro Alves <palves@redhat.com>
3172
3173 * NEWS (Completion improvements): Mention "info threads".
3174 * thread.c (struct info_threads_opts, info_threads_option_defs)
3175 (make_info_threads_options_def_group): New.
3176 (info_threads_command): Use gdb::option::process_options.
3177 (info_threads_command_completer): New.
3178 (_initialize_thread): Use gdb::option::build_help to build the
3179 help text for "info threads".
3180
854f6088
SM
31812019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3182
3183 * defs.h (generic_load): Move from here...
3184 * symfile.h (generic_load): ... to here. Rename name parameter
3185 to args.
3186 * symfile.c (generic_load): Add comment.
3187
54ee4252
TT
31882019-07-01 Tom Tromey <tromey@adacore.com>
3189
3190 * dwarf2read.c
3191 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3192 declaration of without_params. Fix formatting.
3193
65392b3e
TT
31942019-07-01 Tom Tromey <tromey@adacore.com>
3195
3196 * ada-exp.y (find_primitive_type): Update.
3197 * ada-lang.h (ada_lookup_symbol): Update.
3198 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3199 parameter.
3200 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3201
7d7571f0
SDJ
32022019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3203
3204 PR breakpoints/24541
3205 * gdbarch.c: Regenerate.
3206 * gdbarch.h: Regenerate.
3207 * gdbarch.sh: Add 'stap_adjust_register'.
3208 * i386-tdep.c: Include '<unordered_set>'.
3209 (i386_stap_adjust_register): New function.
3210 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3211 * stap-probe.c (stap_parse_register_operand): Call
3212 'gdbarch_stap_adjust_register'.
3213
5af5392a
SDJ
32142019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3215
3216 PR python/24742
3217 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3218 * python/python.c (do_start_initialization): Use 'xmalloc'
3219 instead of 'PyMem_Malloc'.
3220
10d06d82
TT
32212019-06-28 Tom Tromey <tromey@adacore.com>
3222
3223 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3224 for Ada.
3225
1b7f24cd
TT
32262019-06-27 Tom Tromey <tromey@adacore.com>
3227
3228 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3229 objfile_key.
3230 (arm_find_mapping_symbol, arm_record_special_symbol)
3231 (_initialize_arm_tdep): Update.
3232 (arm_objfile_data_free): Remove.
3233
3d507ff2
TT
32342019-06-27 Tom Tromey <tromey@adacore.com>
3235
3236 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3237 to cp_print_static_field.
3238
762c164d
TT
32392019-06-26 Tom Tromey <tromey@adacore.com>
3240
3241 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3242 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3243 declare.
3244
aa2f9bcf
AH
32452019-06-26 Alan Hayward <alan.hayward@arm.com>
3246
3247 * features/aarch64-core.c (create_feature_aarch64_core):
3248 Regenerate.
3249 * features/aarch64-core.xml: Add cpsr flags.
3250
3426ae57
AH
32512019-06-26 Alan Hayward <alan.hayward@arm.com>
3252
3253 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3254 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3255
4838e44c
SM
32562019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3257
3258 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3259 field.
3260 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3261 use.
3262 (arm_record_special_symbol): Don't insert new symbol in sorted
3263 position, push it at the end.
3264
54cc7474
SM
32652019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3266
3267 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3268 (arm_mapping_symbol_s): Remove.
3269 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3270 (arm_mapping_symbol_vec): New typedef.
3271 (struct arm_per_objfile): Add constructor.
3272 <section_maps>: Change type to
3273 std::unique_ptr<arm_mapping_symbol_vec[]>.
3274 (arm_compare_mapping_symbols): Remove.
3275 (arm_find_mapping_symbol): Adjust to section_maps type change.
3276 (arm_objfile_data_free): Call delete on arm_per_objfile.
3277 (arm_record_special_symbol): Adjust to section_maps type change.
3278 Allocate arm_per_objfile with new.
3279
b65b566c
PW
32802019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3281
3282 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3283 with the command prefix.
3284
c2fc64f5
TT
32852019-06-25 Tom Tromey <tom@tromey.com>
3286
3287 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3288 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3289
fb54fa76
TT
32902019-06-25 Tom Tromey <tom@tromey.com>
3291
3292 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3293 type.
3294 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3295 protected.
3296
f7952c57
TT
32972019-06-25 Tom Tromey <tom@tromey.com>
3298
3299 * tui/tui-winsource.c
3300 (tui_source_window_base::set_is_exec_point_at): Add check against
3301 LOA_ADDRESS.
3302
17568d78
TT
33032019-06-25 Tom Tromey <tom@tromey.com>
3304
3305 * tui/tui-source.c (tui_set_source_content): Don't check before
3306 xfree.
3307 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3308
53e7cdba
TT
33092019-06-25 Tom Tromey <tom@tromey.com>
3310
3311 * tui/tui-winsource.h (tui_update_source_window_as_is)
3312 (tui_alloc_source_buffer, tui_line_is_displayed)
3313 (tui_addr_is_displayed): Change type of win_info.
3314 * tui/tui-winsource.c (tui_update_source_window_as_is)
3315 (tui_clear_source_content, tui_show_source_line)
3316 (tui_show_source_content, tui_source_window_base::refill)
3317 (tui_source_window_base::set_is_exec_point_at)
3318 (tui_source_window_base::set_is_exec_point_at)
3319 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3320 (tui_alloc_source_buffer, tui_line_is_displayed)
3321 (tui_addr_is_displayed): Change type of win_info. Update.
3322 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3323 (tui_source_window_base::do_make_visible_with_new_height):
3324 Update.
3325 * tui/tui-source.c (tui_set_source_content)
3326 (tui_set_source_content_nil)
3327 (tui_source_window::do_scroll_vertical): Update.
3328 * tui/tui-layout.c (show_layout): Update.
3329 * tui/tui-disasm.c (tui_set_disassem_content)
3330 (tui_disasm_window::do_scroll_vertical): Update.
3331 * tui/tui-data.h (tui_win_content): Remove.
3332 (struct tui_gen_win_info) <content, content_size>: Remove.
3333 (struct tui_source_element): Add initializers and destructor.
3334 (union tui_which_element, struct tui_win_element): Remove.
3335 (struct tui_source_window_base) <content>: New field.
3336 (struct tui_data_window): Remove destructor.
3337 (tui_alloc_content, tui_free_win_content)
3338 (tui_free_all_source_wins_content): Don't declare.
3339 * tui/tui-data.c (tui_initialize_static_data): Update.
3340 (init_content_element, tui_alloc_content): Remove.
3341 (~tui_gen_win_info): Update.
3342 (~tui_data_window, tui_free_all_source_wins_content)
3343 (tui_free_win_content, free_content, free_content_elements):
3344 Remove.
3345
7908abbf
TT
33462019-06-25 Tom Tromey <tom@tromey.com>
3347
3348 * tui/tui-winsource.h (tui_clear_source_content)
3349 (tui_erase_source_content, tui_show_source_content): Change type
3350 of win_info.
3351 * tui/tui-winsource.c (tui_clear_source_content)
3352 (tui_erase_source_content, tui_show_source_content): Change type
3353 of win_info.
3354 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3355 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3356 win_info.
3357 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3358 win_info.
3359 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3360
02c28df0
TT
33612019-06-25 Tom Tromey <tom@tromey.com>
3362
3363 * tui/tui-winsource.c (tui_clear_source_content)
3364 (tui_source_window_base::set_is_exec_point_at): Update.
3365 * tui/tui-source.c (tui_set_source_content_nil): Update.
3366 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3367 a bool.
3368 * tui/tui-data.c (init_content_element): Update.
3369
6658b1bf
TT
33702019-06-25 Tom Tromey <tom@tromey.com>
3371
3372 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3373 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3374 * tui/tui-layout.c (init_and_make_win): Update.
3375 * tui/tui.h (enum tui_win_type): Update.
3376 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3377 tui_win_is_auxillary.
3378 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3379 tui_win_is_auxillary.
3380
21e1c91e
TT
33812019-06-25 Tom Tromey <tom@tromey.com>
3382
3383 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3384 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3385 (tui_delete_data_content_windows, tui_display_all_data)
3386 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3387 Update.
3388 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3389 * tui/tui-regs.c (tui_last_regs_line_no)
3390 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3391 (tui_show_registers): Update.
3392 (tui_show_register_group): Return void. Update.
3393 (tui_display_registers_from, tui_display_reg_element_at_line)
3394 (tui_display_registers_from_line, tui_check_register_values):
3395 Update.
3396 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3397 member.
3398 (struct tui_data_window) <regs_content>: Now a std::vector.
3399 <regs_content_count>: Remove.
3400 (tui_add_content_elements, tui_free_data_content): Don't declare.
3401 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3402 (init_content_element): Remove DATA_WIN case. Add assert.
3403 (tui_add_content_elements): Remove.
3404 (tui_data_window): Update.
3405 (tui_free_data_content): Remove.
3406 (free_content_elements): Remove DATA_WIN case.
3407
115ac53b
TT
34082019-06-25 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-data.c (tui_data_item_window): Update.
3411 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3412 * tui/tui-windata.c (tui_display_all_data)
3413 (tui_display_data_from_line): Update.
3414 (tui_check_data_values): Remove.
3415 * tui/tui-regs.c (tui_show_register_group)
3416 (tui_display_reg_element_at_line): Update.
3417 * tui/tui-hooks.c (tui_register_changed)
3418 (tui_refresh_frame_and_register_information): Call
3419 tui_check_register_values.
3420 * tui/tui-data.h (struct tui_data_window) <data_content,
3421 data_content_count, data_type>: Remove.
3422 (enum tui_data_type): Remove.
3423
3424 * tui/tui-data.c (tui_data_window::clear_detail)
3425 (~tui_data_window): Update.
3426
eaf9738b
TT
34272019-06-25 Tom Tromey <tom@tromey.com>
3428
3429 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3430 declare.
3431 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3432 Rename from tui_first_data_item_displayed. Update.
3433 (tui_data_window::refresh_all)
3434 (tui_data_window::do_scroll_vertical): Update.
3435 * tui/tui-data.h (struct tui_data_window)
3436 <first_data_item_displayed>: Declare new method.
3437
31ca4723
TT
34382019-06-25 Tom Tromey <tom@tromey.com>
3439
3440 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3441 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3442 contents...
3443 (tui_initialize_static_data): ...here.
3444
41bcff7f
TT
34452019-06-25 Tom Tromey <tom@tromey.com>
3446
3447 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3448 (tui_display_registers_from, tui_check_register_values): Update.
3449 (tui_display_register): Remove win_info parameter; update.
3450 (tui_get_register): Change type of parameters.
3451 * tui/tui-data.h (struct tui_data_element): Remove.
3452 (union tui_which_element) <data>: Remove.
3453 <data_window>: Change type.
3454 (struct tui_data_item_window): New.
3455 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3456 case. Add assert.
3457 (~tui_data_item_window): New destructor.
3458 (free_content_elements): Remove DATA_ITEM_WIN case.
3459
d2802c33
TT
34602019-06-25 Tom Tromey <tom@tromey.com>
3461
3462 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3463 Remove.
3464
dd835f8b
TT
34652019-06-25 Tom Tromey <tom@tromey.com>
3466
3467 * tui/tui-data.h (struct tui_command_element): Remove.
3468 (union tui_which_element) <command>: Remove.
3469 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3470 assert.
3471 (free_content_elements): Remove CMD_WIN case.
3472
bd7db367
TT
34732019-06-25 Tom Tromey <tom@tromey.com>
3474
3475 * tui/tui-layout.c (tui_set_layout): Update.
3476 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3477 * tui/tui-data.c (layout_def): Update.
3478
3add462f
TT
34792019-06-25 Tom Tromey <tom@tromey.com>
3480
3481 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3482 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3483 (tui_source_window_base::set_new_height): Update.
3484 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3485 Update.
3486 (tui_set_locator_fullname, tui_set_locator_info)
3487 (tui_show_frame_info): Update.
3488 * tui/tui-source.c (tui_set_source_content)
3489 (tui_source_is_displayed): Update.
3490 * tui/tui-layout.c (show_source_disasm_command, show_data)
3491 (show_source_or_disasm_and_command): Update.
3492 * tui/tui-disasm.c (tui_set_disassem_content)
3493 (tui_get_begin_asm_address): Update.
3494 * tui/tui-data.h (struct tui_locator_element): Remove.
3495 (union tui_which_element) <locator>: Remove.
3496 (struct tui_locator_window): New.
3497 (tui_locator_win_info_ptr): Change return type.
3498 * tui/tui-data.c (_locator): Change type.
3499 (tui_locator_win_info_ptr): Change return type.
3500 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3501 (tui_alloc_content): Add assert.
3502
489e9d8b
TT
35032019-06-25 Tom Tromey <tom@tromey.com>
3504
3505 * tui/tui-winsource.c
3506 (tui_exec_info_window::maybe_allocate_content): New method.
3507 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3508 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3509 (make_source_or_disasm_window): Add cast.
3510 * tui/tui-data.h (union tui_which_element) <simple_string>:
3511 Remove.
3512 (struct tui_source_info): New.
3513 (struct tui_source_window_base) <execution_info>: Change type.
3514 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3515 case, and add assert.
3516 (tui_alloc_content): Add assert.
3517
c3fabb7d
TT
35182019-06-25 Tom Tromey <tom@tromey.com>
3519
3520 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3521 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3522 * tui/tui-data.c (tui_alloc_win_info): Remove.
3523
bbc228ee
TT
35242019-06-25 Tom Tromey <tom@tromey.com>
3525
3526 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3527 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3528 can_highlight.
3529
5fcee43a
TT
35302019-06-25 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3533 make_visible_with_new_height method.
3534 (tui_win_info::make_visible_with_new_height): New method.
3535 (tui_source_window_base::do_make_visible_with_new_height)
3536 (tui_data_window::do_make_visible_with_new_height)
3537 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3538 (make_visible_with_new_height): Remove.
3539 (tui_resize_all, tui_adjust_win_heights): Use
3540 make_visible_with_new_height method.
3541 * tui/tui-data.h (struct tui_win_info)
3542 <do_make_visible_with_new_height, make_visible_with_new_height>:
3543 New methods.
3544 (struct tui_source_window_base, struct tui_data_window)
3545 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3546 methods.
3547
d83f1fe6
TT
35482019-06-25 Tom Tromey <tom@tromey.com>
3549
3550 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3551 method.
3552 (update_tab_width): Call update_tab_width method.
3553 * tui/tui-data.h (struct tui_win_info)
3554 (struct tui_source_window_base) <update_tab_width>: New methods.
3555
17374de4
TT
35562019-06-25 Tom Tromey <tom@tromey.com>
3557
3558 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3559 parameter.
3560 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3561 parameter.
3562 (tui_gen_win_info::make_visible): Update.
3563 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3564 parameter.
3565 * tui/tui-data.h (enum tui_box): New enum.
3566 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3567
f936bca2
TT
35682019-06-25 Tom Tromey <tom@tromey.com>
3569
3570 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3571 init_and_make_win for EXEC_INFO_WIN.
3572 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3573 longer inline.
3574 (struct tui_win_info) <~tui_win_info>: Inline.
3575 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3576 Don't declare.
3577 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3578 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3579 Remove.
3580 (tui_initialize_static_data): Update.
3581 (~tui_gen_win_info): Handle more cleanup here.
3582 (~tui_source_window_base): Delete "execution_info".
3583 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3584
d6ba6a11
TT
35852019-06-25 Tom Tromey <tom@tromey.com>
3586
3587 * tui/tui-layout.c (make_command_window): Don't set
3588 can_highlight.
3589 (show_source_disasm_command): Call the reset method.
3590 (show_data): Don't set can_highlight. Call the reset method.
3591 (tui_gen_win_info::reset): Rename from init_gen_win_info
3592 (init_and_make_win): Simplify. Return tui_gen_win_info.
3593 (show_source_or_disasm_and_command): Call the reset method.
3594 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3595 (struct tui_cmd_window): Set can_highlight.
3596
48a3bd16
TT
35972019-06-25 Tom Tromey <tom@tromey.com>
3598
3599 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3600 from make_visible.
3601 (tui_make_visible, tui_make_invisible): Rewrite.
3602 (tui_win_info::make_visible): Remove.
3603 (tui_source_window_base::make_visible): Update.
3604 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3605 method. Moved from...
3606 (struct tui_win_info) <make_visible>: ...here.
3607
c3bd716f
TT
36082019-06-25 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-winsource.c
3611 (tui_source_window_base::do_scroll_horizontal): Remove direction
3612 parameter.
3613 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3614 direction parameter.
3615 * tui/tui-win.c (tui_win_info::forward_scroll)
3616 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3617 (tui_win_info::right_scroll): Update.
3618 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3619 direction parameter.
3620 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3621 direction parameter.
3622 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3623 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3624 Remove direction parameter.
3625 (struct tui_source_window_base, struct tui_source_window)
3626 (struct tui_disasm_window, struct tui_data_window)
3627 (struct tui_cmd_window): Update.
3628
21c32dca
TT
36292019-06-25 Tom Tromey <tom@tromey.com>
3630
3631 * tui/tui-winsource.h (tui_set_exec_info_content)
3632 (tui_show_exec_info_content, tui_erase_exec_info_content)
3633 (tui_clear_exec_info_content, tui_update_exec_info): Change
3634 argument to tui_source_window_base.
3635 * tui/tui-winsource.c (tui_set_exec_info_content)
3636 (tui_show_exec_info_content, tui_erase_exec_info_content)
3637 (tui_clear_exec_info_content, tui_update_exec_info): Change
3638 argument to tui_source_window_base.
3639
73fbdc65
TT
36402019-06-25 Tom Tromey <tom@tromey.com>
3641
3642 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3643 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3644
33325343
TT
36452019-06-25 Tom Tromey <tom@tromey.com>
3646
3647 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3648 check.
3649
29d2c474
TT
36502019-06-25 Tom Tromey <tom@tromey.com>
3651
3652 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3653 type to void.
3654 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3655 type to void.
3656 * tui/tui-source.c (tui_set_source_content): Update.
3657 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3658
152f3f4b
TT
36592019-06-25 Tom Tromey <tom@tromey.com>
3660
3661 * tui/tui-win.c (window_name_completer, tui_set_focus)
3662 (tui_all_windows_info): Use name method.
3663 * tui/tui-data.h (struct tui_gen_win_info)
3664 (struct tui_source_window, struct tui_disasm_window)
3665 (struct tui_data_window, struct tui_cmd_window) <name>: New
3666 method.
3667 (tui_win_name): Don't declare.
3668 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3669 (tui_win_name): Remove.
3670
be4da588
TT
36712019-06-25 Tom Tromey <tom@tromey.com>
3672
3673 * tui/tui-winsource.h (tui_update_source_window)
3674 (tui_update_source_window_as_is): Change parameter type.
3675 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3676 to be a tui_source_window_base.
3677 (tui_update_source_window_as_is): Likewise.
3678 * tui/tui-win.c (make_visible_with_new_height): Update.
3679
5b81daba
TT
36802019-06-25 Tom Tromey <tom@tromey.com>
3681
3682 * tui/tui-winsource.c (tui_erase_source_content)
3683 (tui_show_source_content, tui_show_exec_info_content)
3684 (tui_erase_exec_info_content): Use refresh_window method.
3685 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3686 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3687 from tui_refresh_win.
3688 (tui_data_window::refresh_window): New method.
3689 (tui_win_info::refresh, tui_source_window_base::refresh)
3690 (tui_refresh_all): Use refresh_window method.
3691 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3692 method.
3693 * tui/tui-regs.c (tui_display_register): Call refresh_window
3694 method.
3695 * tui/tui-layout.c (show_source_disasm_command)
3696 (show_source_or_disasm_and_command): Call refresh_window method.
3697 * tui/tui-data.h (struct tui_gen_win_info)
3698 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3699 New method.
3700
cb2ce893
TT
37012019-06-25 Tom Tromey <tom@tromey.com>
3702
3703 * tui/tui.c (tui_rl_other_window, tui_enable)
3704 (tui_is_window_visible, tui_get_command_dimension): Update.
3705 * tui/tui-winsource.c (tui_update_source_window_as_is)
3706 (tui_clear_source_content, tui_erase_source_content)
3707 (tui_show_source_line, tui_source_window_base::refill)
3708 (tui_source_window_base::do_scroll_horizontal)
3709 (tui_source_window_base::set_is_exec_point_at)
3710 (tui_update_breakpoint_info, tui_set_exec_info_content)
3711 (tui_alloc_source_buffer, tui_line_is_displayed)
3712 (tui_addr_is_displayed): Update.
3713 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3714 (tui_check_and_display_highlight_if_needed)
3715 (tui_win_info::make_visible, tui_win_info::refresh)
3716 (tui_refresh_all): Update.
3717 * tui/tui-windata.c (tui_first_data_item_displayed)
3718 (tui_delete_data_content_windows, tui_erase_data_content)
3719 (tui_display_all_data, tui_data_window::refresh_all)
3720 (tui_check_data_values): Update.
3721 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3722 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3723 (tui_win_info::backward_scroll, tui_refresh_all_win)
3724 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3725 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3726 (tui_source_window_base::set_new_height)
3727 (tui_data_window::set_new_height)
3728 (make_invisible_and_set_new_height)
3729 (make_visible_with_new_height, new_height_ok)
3730 (parse_scrolling_args): Update.
3731 * tui/tui-stack.c (tui_show_frame_info): Update.
3732 * tui/tui-source.c (tui_set_source_content)
3733 (tui_set_source_content_nil, tui_source_is_displayed)
3734 (tui_source_window::do_scroll_vertical): Update.
3735 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3736 (tui_display_registers_from, tui_display_reg_element_at_line)
3737 (tui_check_register_values, tui_reg_command): Update.
3738 * tui/tui-layout.c (tui_default_win_height)
3739 (show_source_disasm_command, show_data, init_and_make_win)
3740 (show_source_or_disasm_and_command): Update.
3741 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3742 (tui_redisplay_readline, tui_mld_flush)
3743 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3744 (tui_getc): Update.
3745 * tui/tui-disasm.c (tui_set_disassem_content)
3746 (tui_disasm_window::do_scroll_vertical): Update.
3747 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3748 Now virtual.
3749 (struct tui_win_info): Derive from tui_gen_win_info.
3750 <~tui_win_info>: Mark as override.
3751 <generic>: Remove member.
3752 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3753 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3754 (~tui_data_window, ~tui_win_info)
3755 (tui_free_all_source_wins_content): Update.
3756 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3757
ab313b35
TT
37582019-06-25 Tom Tromey <tom@tromey.com>
3759
3760 * tui/tui-layout.c (init_and_make_win): Use new.
3761 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3762 destructor, initializers.
3763 (tui_alloc_generic_win_info): Don't declare.
3764 * tui/tui-data.c (_locator): Add argument to constructor.
3765 (source_win, disasm_win): New globals.
3766 (exec_info): Remove.
3767 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3768 Update.
3769 (tui_alloc_generic_win_info): Remove.
3770 (init_content_element): Use new.
3771 (tui_win_info::tui_win_info): Update.
3772 (free_content_elements) <case DATA_WIN>: Use delete.
3773
dc2c33e4
TT
37742019-06-25 Tom Tromey <tom@tromey.com>
3775
3776 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3777 * tui/tui-windata.c (tui_first_data_item_displayed)
3778 (tui_delete_data_content_windows): Update.
3779 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3780 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3781 (tui_display_registers_from, tui_check_register_values): Update.
3782 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3783 pointer.
3784 * tui/tui-data.c (init_content_element): Update. Allocate the new
3785 window.
3786 (tui_free_data_content): Update.
3787 (free_content_elements) <case DATA_WIN>: Free the window.
3788
214a5cbe
TT
37892019-06-25 Tom Tromey <tom@tromey.com>
3790
3791 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3792 Update.
3793 * tui/tui-layout.c (make_command_window)
3794 (show_source_disasm_command, show_data, init_and_make_win)
3795 (show_source_or_disasm_and_command): Update.
3796 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3797 method.
3798 <can_highight, is_highlighted>: Now bool.
3799 (tui_set_win_highlight): Don't declare.
3800 * tui/tui-data.c (tui_set_win_highlight): Remove.
3801
8e2daf15
TT
38022019-06-25 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui-wingeneral.c (make_visible): Remove check of window
3805 type.
3806
8903bd8a
TT
38072019-06-25 Tom Tromey <tom@tromey.com>
3808
3809 * tui/tui-win.c (tui_win_info::max_height)
3810 (tui_cmd_window::max_height): New methods.
3811 (new_height_ok): Call max_height.
3812 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3813 <max_height>: New method.
3814
3f02ce1e
TT
38152019-06-25 Tom Tromey <tom@tromey.com>
3816
3817 * tui/tui-win.c (tui_source_window_base::set_new_height)
3818 (tui_data_window::set_new_height): New methods.
3819 (make_invisible_and_set_new_height): Call set_new_height method.
3820 * tui/tui-data.h (struct tui_win_info)
3821 (struct tui_source_window_base, struct tui_data_window)
3822 <set_new_height>: New method.
3823
1825f487
TT
38242019-06-25 Tom Tromey <tom@tromey.com>
3825
3826 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3827 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3828 tui_refresh_data_win.
3829 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3830 method.
3831 (tui_refresh_all_win): Call the refresh_all method.
3832 (tui_set_focus): Likewise.
3833 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3834 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3835 Likewise.
3836
ad54d15b
TT
38372019-06-25 Tom Tromey <tom@tromey.com>
3838
3839 * tui/tui-winsource.h (tui_refill_source_window)
3840 (tui_set_is_exec_point_at): Don't declare.
3841 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3842 (tui_source_window_base::refill): Rename from
3843 tui_refill_source_window.
3844 (tui_source_window_base::do_scroll_horizontal): Update.
3845 (tui_source_window_base::set_is_exec_point_at): Rename from
3846 tui_set_is_exec_point_at.
3847 (tui_update_all_breakpoint_info): Update.
3848 * tui/tui-stack.c (tui_show_frame_info): Update.
3849 * tui/tui-layout.c (show_data): Add cast.
3850 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3851 * tui/tui-data.h (struct tui_source_window_base) <refill,
3852 set_is_exec_point_at>: New methods.
3853 (tui_source_windows, tui_add_to_source_windows): Update types.
3854 (tui_add_to_source_windows): Remove redundant declaration.
3855 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3856 (tui_source_windows): Change return type.
3857 (tui_clear_source_windows_detail): Update.
3858 (tui_add_to_source_windows): Change type of parameter.
3859 (tui_free_all_source_wins_content): Update.
3860
2042b506
TT
38612019-06-25 Tom Tromey <tom@tromey.com>
3862
3863 * tui/tui-wingeneral.c (tui_win_info::refresh)
3864 (tui_source_window_base::refresh): New methods.
3865 (tui_refresh_all): Call the refresh method.
3866 * tui/tui-data.h (struct tui_win_info)
3867 (struct tui_source_window_base) <refresh>: New method.
3868
56122977
TT
38692019-06-25 Tom Tromey <tom@tromey.com>
3870
3871 * tui/tui.h (tui_is_window_visible): Return bool.
3872 * tui/tui.c (tui_is_window_visible): Return bool.
3873 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3874 (tui_make_visible, tui_make_invisible)
3875 (tui_win_info::make_visible)
3876 (tui_source_window_base::make_visible, make_all_visible)
3877 (tui_make_all_visible, tui_make_all_invisible): Update.
3878 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3879 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3880 bool.
3881 (struct tui_win_info, struct tui_source_window_base)
3882 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3883 * tui/tui-data.c (tui_init_generic_part): Update.
3884
cda37efb
TT
38852019-06-25 Tom Tromey <tom@tromey.com>
3886
3887 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3888 (tui_source_window_base::make_visible): New methods.
3889 (make_all_visible): Make method call.
3890 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3891 (struct tui_source_window_base, struct tui_cmd_window): Override
3892 make_visible.
3893 (tui_win_is_source_type): Don't declare.
3894 * tui/tui-data.c (tui_win_is_source_type): Remove.
3895
6a0ee02c
TT
38962019-06-25 Tom Tromey <tom@tromey.com>
3897
3898 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3899 NULL check.
3900
63901aec
TT
39012019-06-25 Tom Tromey <tom@tromey.com>
3902
3903 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3904 Inline constructor. Add initializers for members.
3905 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3906 constructors; now inline in class.
3907
ceb13a13
TT
39082019-06-25 Tom Tromey <tom@tromey.com>
3909
3910 * tui/tui-regs.c (tui_show_registers): Update.
3911 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3912 bool.
3913 * tui/tui-data.c (tui_data_window::clear_detail)
3914 (tui_data_window): Update.
3915
238eb706
TT
39162019-06-25 Tom Tromey <tom@tromey.com>
3917
3918 * tui/tui-windata.c (tui_display_all_data)
3919 (tui_display_data_from_line, tui_display_data_from)
3920 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3921 Update.
3922 * tui/tui-regs.c (tui_last_regs_line_no)
3923 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3924 (tui_show_registers, tui_show_register_group)
3925 (tui_display_registers_from, tui_display_reg_element_at_line)
3926 (tui_display_registers_from_line, tui_check_register_values)
3927 (tui_reg_next, tui_reg_prev): Update.
3928 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3929 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3930 tui_data_window.
3931 (struct tui_win_info) <detail>: Remove. Add new fields from
3932 tui_data_info.
3933 (TUI_DATA_WIN): Add cast.
3934 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3935 (~tui_data_window): Simplify.
3936
81491aa0
TT
39372019-06-25 Tom Tromey <tom@tromey.com>
3938
3939 * tui/tui-layout.c (show_source_disasm_command)
3940 (show_source_or_disasm_and_command): Update.
3941 * tui/tui-io.c (update_cmdwin_start_line)
3942 (tui_redisplay_readline): Update.
3943 * tui/tui-data.h (struct tui_command_info): Remove.
3944 (struct tui_win_info) <detail>: Remove command_info member.
3945 (struct tui_data_window) <start_line>: New member, from
3946 tui_command_info.
3947 (TUI_CMD_WIN): Add casts.
3948
e6e41501
TT
39492019-06-25 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-winsource.c (tui_update_source_window)
3952 (tui_refill_source_window)
3953 (tui_source_window_base::do_scroll_horizontal)
3954 (tui_update_breakpoint_info, tui_set_exec_info_content)
3955 (tui_show_exec_info_content, tui_erase_exec_info_content)
3956 (tui_clear_exec_info_content): Update.
3957 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3958 Update.
3959 * tui/tui-win.c (make_invisible_and_set_new_height)
3960 (make_visible_with_new_height): Update.
3961 * tui/tui-source.c (tui_set_source_content)
3962 (tui_show_symtab_source): Update.
3963 * tui/tui-layout.c (extract_display_start_addr)
3964 (show_source_disasm_command, show_data)
3965 (make_source_or_disasm_window)
3966 (show_source_or_disasm_and_command): Update.
3967 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3968 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3969 "gdbarch".
3970 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3971 to tui_source_window_base.
3972 (struct tui_win_info) <detail>: Remove source_info member.
3973 (struct tui_source_window_base) <has_locator>: Inline.
3974 Move contents from tui_source_info; rename has_locator member to
3975 m_has_locator.
3976 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3977 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3978 header file.
3979 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3980 Simplify.
3981 (tui_free_all_source_wins_content): Cast to
3982 tui_source_window_base.
3983
44f0e208
TT
39842019-06-25 Tom Tromey <tom@tromey.com>
3985
3986 * tui/tui-win.c (make_invisible_and_set_new_height)
3987 (make_visible_with_new_height): Call has_locator method.
3988 * tui/tui-layout.c (show_source_disasm_command, show_data)
3989 (show_source_or_disasm_and_command): Update for bool change.
3990 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3991 (tui_win_info) <has_locator>: New method.
3992 (struct tui_source_window_base) <has_locator>: New method.
3993 (tui_win_has_locator): Don't declare.
3994 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3995 from tui_win_has_locator.
3996 (tui_source_window_base): Use false, not FALSE.
3997
7778b912
TT
39982019-06-25 Tom Tromey <tom@tromey.com>
3999
4000 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4001 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4002 clear_detail method directly.
4003 (tui_clear_win_detail): Remove.
4004
f83d391c
TT
40052019-06-25 Tom Tromey <tom@tromey.com>
4006
4007 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4008 "this", not TUI_DISASM_WIN.
4009
13446e05
TT
40102019-06-25 Tom Tromey <tom@tromey.com>
4011
4012 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4013 declare.
4014 * tui/tui-winsource.c
4015 (tui_source_window_base::do_scroll_horizontal): Rename from
4016 tui_horizontal_source_scroll.
4017 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4018 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4019 from tui_vertical_data_scroll.
4020 * tui/tui-win.h (tui_scroll): Don't declare.
4021 * tui/tui-win.c (tui_win_info::forward_scroll)
4022 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4023 (tui_win_info::right_scroll): Rename and update.
4024 (tui_scroll_forward_command, tui_scroll_backward_command)
4025 (tui_scroll_left_command, tui_scroll_right_command): Update.
4026 (tui_scroll): Remove.
4027 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4028 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4029 from tui_vertical_source_scroll.
4030 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4031 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4032 from tui_vertical_disassem_scroll.
4033 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4034 do_scroll_horizontal>: New methods.
4035 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4036 Likewise.
4037 (struct tui_source_window_base): Add do_scroll_horizontal.
4038 (struct tui_source_window, struct tui_disasm_window): Add
4039 do_scroll_vertical.
4040 (struct tui_data_window, struct tui_cmd_window): Add
4041 do_scroll_horizontal and do_scroll_vertical.
4042 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4043
5cf82909
TT
40442019-06-25 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui-data.h (struct tui_source_window_base): New struct.
4047 (struct tui_source_window): Derive from tui_source_window_base.
4048 (struct tui_disasm_window): New struct.
4049 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4050 from tui_source_window::clear_detail.
4051 (tui_source_window_base): Rename from tui_source_window.
4052 (~tui_source_window_base): Rename from ~tui_source_window.
4053 (tui_alloc_win_info): Create a tui_disasm_window.
4054
ee1d42d6
TT
40552019-06-25 Tom Tromey <tom@tromey.com>
4056
4057 * tui/tui-data.h (struct tui_source_window)
4058 (struct tui_data_window): Declare destructors.
4059 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4060 destructors.
4061 (tui_win_info): Simplify.
4062
b4eb2452
TT
40632019-06-25 Tom Tromey <tom@tromey.com>
4064
4065 * tui/tui-winsource.c (tui_display_main)
4066 (tui_update_source_windows_with_addr)
4067 (tui_update_all_breakpoint_info): Update.
4068 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4069 (new_height_ok, parse_scrolling_args): Update.
4070 * tui/tui-stack.c (tui_show_frame_info): Update.
4071 * tui/tui-data.h (struct tui_list): Remove.
4072 (tui_source_windows): Return a reference to a std::vector.
4073 * tui/tui-data.c (source_windows): Now a std::vector.
4074 (tui_source_windows): Change return type.
4075 (tui_clear_source_windows): Rewrite.
4076 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4077 (tui_free_all_source_wins_content): Rewrite.
4078
8761a91b
TT
40792019-06-25 Tom Tromey <tom@tromey.com>
4080
4081 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4082 (struct tui_data_window, struct tui_cmd_window): Declare
4083 clear_detail method.
4084 * tui/tui-data.c (tui_source_window::clear_detail)
4085 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4086 methods.
4087 (tui_clear_win_detail): Simplify.
4088
0ed69eda
TT
40892019-06-25 Tom Tromey <tom@tromey.com>
4090
4091 * tui/tui-layout.c (make_source_window, make_disasm_window)
4092 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4093 Return the new window.
4094 (show_source_disasm_command, show_data)
4095 (show_source_or_disasm_and_command): Update.
4096
82432e10
TT
40972019-06-25 Tom Tromey <tom@tromey.com>
4098
4099 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4100 parameter. Return the new window.
4101 (show_source_disasm_command): Update and remove NULL check.
4102 (show_source_or_disasm_and_command): Update.
4103
ec328aa5
TT
41042019-06-25 Tom Tromey <tom@tromey.com>
4105
4106 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4107
33b906ab
TT
41082019-06-25 Tom Tromey <tom@tromey.com>
4109
4110 * tui/tui-data.h (struct tui_win_info): Make constructor
4111 protected. Make destructor virtual. Add initializers.
4112 (tui_source_window, tui_data_window, tui_cmd_window): New
4113 classes.
4114 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4115 constructor. Add "type" parameter.
4116 (tui_source_window, tui_data_window, tui_cmd_window): New
4117 constructors.
4118 (tui_alloc_win_info): Instantiate the appropriate subclass.
4119
e7e11af4
TT
41202019-06-25 Tom Tromey <tom@tromey.com>
4121
4122 * tui/tui-win.c (tui_resize_all): Use delete.
4123 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4124 destructor.
4125 (tui_free_window): Don't declare.
4126 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4127 Update.
4128
6792b55e
TT
41292019-06-25 Tom Tromey <tom@tromey.com>
4130
4131 * tui/tui-data.h (struct tui_win_info): Add constructor.
4132 * tui/tui-data.c (tui_alloc_win_info): Use new.
4133 (tui_free_window): Use delete.
4134
f95675e1
TT
41352019-06-22 Tom Tromey <tom@tromey.com>
4136
4137 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4138 declare.
4139 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4140
5bff081c
TT
41412019-06-22 Tom Tromey <tom@tromey.com>
4142
4143 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4144 declare.
4145 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4146
47e3f474
TV
41472019-06-22 Tom de Vries <tdevries@suse.de>
4148
4149 * dwarf2read.c (create_addrmap_from_aranges)
4150 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4151 instead of '%zu'.
4152
fd5866f6
SM
41532019-06-21 Simon Marchi <simon.marchi@efficios.com>
4154
4155 * dwarf2read.h (dwarf2_section_info_def): Remove.
4156 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4157 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4158 std::vector<dwarf2_section_info>.
4159 (struct dwo_file) <~dwo_file>: Remove.
4160 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4161 types field.
4162 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4163 (dwarf2_read_debug_names): Likewise.
4164 (create_debug_types_hash_table): Change parameter type to
4165 array_view, adjust code accordingly.
4166 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4167 (partial_die_info::fixup): Likewise.
4168 (determine_prefix): Likewise.
4169 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4170
fb1eb2f9
SM
41712019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4172
4173 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4174 gdb_bfd_ref_ptr.
4175 <~dwo_file>: Remove call to gdb_bfd_unref.
4176 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4177 gdb_bfd_ref_ptr::get.
4178
51ac9db5
SM
41792019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4180
4181 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4182 type to htab_up.
4183 * dwarf2read.c (struct dwo_file): Initialize fields.
4184 <~dwo_file>: New.
4185 (free_dwo_file): Remove, move content to ~dwo_file.
4186 (struct dwo_file_deleter): Remove.
4187 (dwo_file_up>: Remove custom deleter.
4188 (free_dwo_files): Remove.
4189 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4190 dwo_files.
4191 (process_skeletonless_type_units): Call unique_ptr::get.
4192 (allocate_dwo_file_hash_table): Add deleter to created hash
4193 table. Change return type to htab_up.
4194 (lookup_dwo_file_slot): Don't memset dwo_file, call
4195 unique_ptr::get.
4196 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4197 (create_dwo_unit_in_dwp_v2): Likewise.
4198 (open_and_init_dwo_file): Likewise.
4199 (free_dwo_file_from_slot): Remove.
4200
dc4ccb6f
SM
42012019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4202
4203 * dwarf2read.h (struct dwarf2_section_info) <readin,
4204 is_virtual>: Change type to bool.
4205 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4206 true instead of 1.
4207
e6a1c5cb
TT
42082019-06-19 Tom Tromey <tom@tromey.com>
4209
4210 * tui/tui-data.h (tui_init_content_element): Don't declare.
4211
6f6ffbeb
TT
42122019-06-19 Tom Tromey <tom@tromey.com>
4213
4214 * tui/tui-data.h (tui_init_win_info): Don't declare.
4215
f23f598e
TV
42162019-06-19 Tom de Vries <tdevries@suse.de>
4217
4218 * dwarf2read.h (abstract_to_concrete): Change type to
4219 std::unordered_map<sect_offset, std::vector<sect_offset>,
4220 gdb::hash_enum<sect_offset>>.
4221
680e1bee
TT
42222019-06-19 Tom Tromey <tromey@adacore.com>
4223
4224 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4225 EVAL_AVOID_SIDE_EFFECTS specially.
4226
dcf37923
TT
42272019-06-19 Tom Tromey <tromey@adacore.com>
4228
4229 * source-cache.c (highlighter): New global.
4230 (source_cache::get_source_lines): Create a highlighter on demand.
4231
494986d5
AB
42322019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4233
4234 * defs.h (deprecated_interactive_hook): Delete declaration.
4235 * interps.c (clear_interpreter_hooks): Remove use of
4236 deprecated_interactive_hook.
4237 * top.c (deprecated_interactive_hook): Delete definition.
4238 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4239
3360b6e7
TV
42402019-06-18 Tom de Vries <tdevries@suse.de>
4241
4242 PR gdb/24515
4243 * dwarf2read.h (abstract_to_concrete): Change type from
4244 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4245 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4246 * dwarf2read.c (read_variable): Update.
4247 (dwarf2_fetch_die_loc_sect_off): Update.
4248
310b3441
TV
42492019-06-17 Tom de Vries <tdevries@suse.de>
4250
4251 PR gdb/24617
4252 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4253 accessing parent[parent_len - 1].
4254
ba9777be
PP
42552019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4256
4257 PR gdb/24364
4258 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4259 call dtrace_process_dof with NULL dof.
4260
2b9f6e89
TV
42612019-06-16 Tom de Vries <tdevries@suse.de>
4262
4263 PR gdb/24445
4264 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4265
431b3ead
TT
42662019-06-16 Tom Tromey <tom@tromey.com>
4267
4268 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4269 (make_all_visible): Use address of member.
4270
d04b44a1
TT
42712019-06-16 Tom Tromey <tom@tromey.com>
4272
4273 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4274 (tui_free_window, free_content, free_content_elements): Remove
4275 unnecessary cast.
4276 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4277 cast.
4278 * tui/tui-regs.c (tui_show_register_group)
4279 (tui_display_registers_from, tui_display_reg_element_at_line):
4280 Remove unnecessary cast.
4281
bf5142e7
AB
42822019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4283
4284 * linux-nat.c (normal_mask): Delete.
4285 (_initialize_linux_nat): Don't initialise normal_mask.
4286
c4973306
SM
42872019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4288
4289 PR gdb/24445
4290 * dwarf-index-write.h (write_psymtabs_to_index): Add
4291 dwz_basename parameter.
4292 * dwarf-index-write.c (write_gdbindex): Move file writing to
4293 write_gdbindex_1. Change return type void.
4294 (assert_file_size): Move up, remove filename parameter.
4295 (write_gdbindex_1): New function.
4296 (write_debug_names): Change return type to void, call
4297 assert_file_size.
4298 (struct index_wip_file): New struct.
4299 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4300 file logic to index_wip_file. Write index for dwz file if
4301 needed.
4302 (save_gdb_index_command): Pass basename of dwz file, if present.
4303 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4304 build-id of dwz file, if present.
4305 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4306 (dwarf2_get_dwz_file): Likewise.
4307 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4308 (dwarf2_get_dwz_file): Likewise.
4309
395f9c91
TT
43102019-06-16 Tom Tromey <tom@tromey.com>
4311
4312 * coffread.c (process_coff_symbol): Use xstrdup.
4313 * value.c (create_internalvar): Use xstrdup.
4314
cafb3438
TT
43152019-06-16 Tom Tromey <tom@tromey.com>
4316
4317 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4318 * breakpoint.c (stopin_command, stopat_command)
4319 (until_break_command, decode_location_default): Remove unnecessary
4320 cast.
4321 * utils.c (subset_compare): Remove unnecessary cast.
4322 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4323 cast.
4324 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4325 cast.
4326 * infcmd.c (path_command): Remove unnecessary cast.
4327 * coffread.c (decode_type): Remove unnecessary cast.
4328 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4329 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4330 * tui/tui-stack.c (tui_show_locator_content)
4331 (tui_show_frame_info): Remove unnecessary cast.
4332 * tui/tui-win.c (tui_scroll_forward_command)
4333 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4334 (parse_scrolling_args): Remove unnecessary cast.
4335 * tui/tui-data.c (init_win_info, tui_del_window)
4336 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4337 (free_content_elements): Remove unnecessary cast.
4338 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4339 unnecessary cast.
4340 * tui/tui-source.c (tui_set_source_content)
4341 (tui_vertical_source_scroll): Remove unnecessary cast.
4342 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4343 cast.
4344 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4345 * tui/tui-regs.c (tui_display_registers_from)
4346 (tui_display_register): Remove unnecessary cast.
4347 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4348 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4349 (make_visible): Remove unnecessary cast.
4350 * tui/tui-winsource.c (tui_erase_source_content)
4351 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4352 unnecessary cast.
4353 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4354 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4355 * stabsread.c (read_type, read_array_type, read_range_type):
4356 Remove unnecessary cast.
4357 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4358 (parse_symbol, parse_type, upgrade_type, parse_external)
4359 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4360 unnecessary cast.
4361 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4362
730ead81
TT
43632019-06-16 Tom Tromey <tom@tromey.com>
4364
4365 * tui/tui-data.c (tui_alloc_generic_win_info)
4366 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4367 checks.
4368
584a927c
AB
43692019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4370 Andrew Burgess <andrew.burgess@embecosm.com>
4371
4372 * f-typeprint.c (f_print_type): Don't return early for not
4373 associated or not allocated types.
4374 (f_type_print_varspec_suffix): Add print_rank parameter and print
4375 ranks of array types in case they dangling.
4376 (f_type_print_base): Add print_rank parameter.
4377
30056ea0
AB
43782019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4379
4380 * NEWS: Mention new MI commands.
4381 * break-catch-throw.c (enum exception_event_kind): Move to
4382 breakpoint.h.
4383 (print_mention_exception_catchpoint): Output text as a single
4384 message.
4385 (catch_exception_command_1): Rename to...
4386 (catch_exception_event): ...this, make non-static, update header
4387 command, and change some parameter types.
4388 (catch_catch_command): Update for changes to
4389 catch_exception_command_1.
4390 (catch_throw_command): Likewise.
4391 (catch_rethrow_command): Likewise.
4392 * breakpoint.c (enum exception_event_kind): Delete.
4393 * breakpoint.h (enum exception_event_kind): Moved here from
4394 break-catch-throw.c.
4395 (catch_exception_event): Declare.
4396 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4397 (mi_cmd_catch_throw): New function.
4398 (mi_cmd_catch_rethrow): New function.
4399 (mi_cmd_catch_catch): New function.
4400 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4401 'catch-catch' entries.
4402 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4403 (mi_cmd_catch_rethrow): Declare.
4404 (mi_cmd_catch_catch): Declare.
4405
ec8e2b6d
AB
44062019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4407
4408 * annotate.c (annotate_source_line): Change return type to void,
4409 update implementation to match.
4410 * annotate.h (annotate_source_line): Change return type to void,
4411 update header comment.
4412 * stack.c (print_frame_info): Don't change what frame information
4413 is printed based on whether annotations are on or not.
4414
0d3abd8c
AB
44152019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4416
4417 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4418 (annotate_source): Make static.
4419 (annotate_source_line): Moved from source.c and renamed from
4420 identify_source_line. Update the return type.
4421 * annotate.h (annotate_source): Delete declaration.
4422 (annotate_source_line): Declaration moved from source.h, and
4423 renamed from identify_source_line. Return type updated.
4424 * source.c (identify_source_line): Moved to annotate.c and renamed
4425 to annotate_source_line.
4426 (info_line_command): Remove check of annotation_level.
4427 * source.h (identify_source_line): Move declaration to annotate.h
4428 and rename to annotate_source_line.
4429 * stack.c: Add 'annotate.h' include.
4430 (print_frame_info): Remove check of annotation_level before
4431 calling annotate_source_line.
4432
00df30ae
AB
44332019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * source-cache.c (source_cache::get_plain_source_lines): Use
4436 open_source_file_with_line_charpos instead of just
4437 open_source_file, remove call to find_source_lines.
4438 (source_cache::get_source_lines): Likewise.
4439 * source.c (find_source_lines): Make static.
4440 (get_filename_and_charpos): Renamed into...
4441 (open_source_file_with_line_charpos): ..this along with changes to
4442 return a scoped_fd, and some other minor clean ups.
4443 (identify_source_line): Use open_source_file_with_line_charpos.
4444 (search_command_helper): Use open_source_file_with_line_charpos
4445 instead of just open_source_file, remove call to
4446 find_source_lines.
4447 * source.h (open_source_file_with_line_charpos): Declare new
4448 function.
4449 (find_source_lines): Delete declaration.
4450
afda45a2
AB
44512019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4452
4453 * source.c (get_filename_and_charpos): Remove fullname
4454 parameter.
4455 (identify_source_line): Update call to get_filename_and_charpos.
4456
0735b091
TT
44572019-06-14 Tom Tromey <tromey@adacore.com>
4458
4459 PR gdb/24502:
4460 * ui-style.h (skip_ansi_escape): Update comment.
4461 * ui-file.h (class no_terminal_escape_file): New class.
4462 * ui-file.c (no_terminal_escape_file::write)
4463 (no_terminal_escape_file::puts): New methods.
4464 * cli/cli-logging.c (handle_redirections): Use
4465 no_terminal_escape_file.
4466
52ce35e2
TT
44672019-06-14 Tom Tromey <tromey@adacore.com>
4468
4469 * NEWS: Move convenience variable news above Python news.
4470
73cc7272
TT
44712019-06-14 Tom Tromey <tom@tromey.com>
4472
4473 * gnulib: Move directory to top-level.
4474 * configure.ac: Don't configure gnulib.
4475 * configure: Rebuild.
4476 * common/common-defs.h: Use new path to gnulib.
4477 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4478 (GNULIB_H): Remove.
4479 (INCGNU): Look in new gnulib location.
4480 (HFILES_NO_SRCDIR): Remove gnulib files.
4481 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4482 (generated_files): Remove GNULIB_H.
4483 ($(LIBGNU), all-lib): Remove targets.
4484 (distclean): Don't mention GNULIB_BUILDDIR.
4485 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4486
f5686554
TT
44872019-06-14 Tom Tromey <tromey@adacore.com>
4488
4489 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4490 Warn if symbol file does not provide any symbols.
4491
a0c1ffed
TT
44922019-06-14 Tom Tromey <tromey@adacore.com>
4493
4494 * source.c (find_and_open_source): Respect basenames_may_differ.
4495
7c39e397
AB
44962019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * annotate.c (annotate_breakpoints_invalid): Make use of
4499 scoped_restore_terminal_state.
4500 (annotate_frames_invalid): Likewise.
4501
f411722c
TT
45022019-06-14 Tom Tromey <tromey@adacore.com>
4503
4504 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4505 allow assignment to an internalvar.
4506
4268ec18
TT
45072019-06-14 Tom Tromey <tromey@adacore.com>
4508
4509 * ada-lex.l: Allow "_" in attribute names.
4510
abdb711e
TT
45112019-06-14 Tom Tromey <tromey@adacore.com>
4512
4513 PR gdb/24653:
4514 * regcache.c (registers_changed): Don't call alloca.
4515 * top.c (execute_command): Don't call alloca.
4516
4c048731
PA
45172019-06-13 Pedro Alves <palves@redhat.com>
4518
4519 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4520 'expression'. When parsing an expression, error out if there's
4521 junk after "unlimited".
4522 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4523 (do_set_command): Adjust calls to is_unlimited_literal.
4524
66eb1ed3
PA
45252019-06-13 Pedro Alves <palves@redhat.com>
4526
4527 * compile/compile.c (make_compile_options_def_group): Add braces
4528 around array_view initializer.
4529 * thread.c (make_thread_apply_all_options_def_group)
4530 (make_thread_apply_all_options_def_group): Likewise.
4531
3345721a
PA
45322019-06-13 Pedro Alves <palves@redhat.com>
4533
4534 * NEWS (New commands): Mention "maint test-options
4535 require-delimiter", "maint test-options unknown-is-error", "maint
4536 test-options unknown-is-operand" and "maint show
4537 test-options-completion-result".
4538 (New command options, command completion): New section.
4539 (Completion improvements): New section.
4540 Mention that you can abbreviate "unlimited".
4541
6206060d
PA
45422019-06-13 Pedro Alves <palves@redhat.com>
4543
4544 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4545 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4546 * unittests/cli-utils-selftests.c (test_parse_flags)
4547 (test_parse_flags_qcs): Delete.
4548 (test_cli_utils): Don't call deleted functions.
4549
6665660a
PA
45502019-06-13 Pedro Alves <palves@redhat.com>
4551
4552 * thread.c: Include "cli/cli-option.h".
4553 (tp_array_compar_ascending): Global.
4554 (tp_array_compar): Delete function.
4555 (tp_array_compar_ascending, tp_array_compar_descending): New
4556 functions.
4557 (ascending_option_def, qcs_flag_option_def)
4558 (thr_qcs_flags_option_defs)
4559 (make_thread_apply_all_options_def_group)
4560 (make_thread_apply_options_def_group): New.
4561 (thread_apply_all_command): Use gdb::option::process_options.
4562 (thread_apply_command_completer)
4563 (thread_apply_all_command_completer): New.
4564 (thread_apply_command): Use gdb::option::process_options.
4565 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4566 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4567 to generate help text of "thread apply". Adjust "taas"'s help.
4568 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4569 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4570
f7e13587
PA
45712019-06-13 Pedro Alves <palves@redhat.com>
4572
4573 * thread.c (thread_apply_command): Check for invalid TID with
4574 isdigit instead of !isalpha.
4575
5d707134
PA
45762019-06-13 Pedro Alves <palves@redhat.com>
4577
4578 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4579 (validate_flags_qcs): New.
4580 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4581 (validate_flags_qcs): Declare.
4582 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4583 (make_frame_apply_options_def_group): New.
4584 (frame_apply_command_count): Process options with
4585 gdb::option::process_options.
4586 (frame_apply_completer): New.
4587 (frame_apply_level_completer, frame_apply_all_completer)
4588 (frame_apply_completer): New.
4589 (_initialize_stack): Update help of "frame apply", "frame apply
4590 level", "frame apply all" and "faas" to mention supported options
4591 and install command completers.
4592 * stack.h (frame_apply_all_completer): Declare.
4593 * thread.c: Include "stack.h".
4594 (tfaas_command): Add "--".
4595 (_initialize_thread): Update help "tfaas" to mention supported
4596 options and install command completer.
4597
272d4594
PA
45982019-06-13 Pedro Alves <palves@redhat.com>
4599
4600 * completer.c (complete_nested_command_line): New.
4601 (gdb_completion_word_break_characters_throw): Add assertion.
4602 * completer.h (complete_nested_command_line): Declare.
4603
90a1ef87
PA
46042019-06-13 Pedro Alves <palves@redhat.com>
4605
4606 * stack.c (parse_backtrace_qualifiers): New.
4607 (backtrace_command): Use it.
4608 (backtrace_command_completer): Complete on qualifiers.
4609
d4c16835
PA
46102019-06-13 Pedro Alves <palves@redhat.com>
4611
4612 * frame.c: Include "cli/cli-option.h.
4613 (user_set_backtrace_options): New.
4614 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4615 Delete.
4616 (get_prev_frame): Adjust.
4617 (boolean_option_def, uinteger_option_def)
4618 (set_backtrace_option_defs): New.
4619 (_initialize_frame): Adjust and use
4620 gdb::option::add_setshow_cmds_for_options to install "set
4621 backtrace past-main" and "set backtrace past-entry".
4622 * frame.h: Include "cli/cli-option.h".
4623 (struct frame_print_options): Forward declare.
4624 (print_frame_arguments_all, print_frame_arguments_scalars)
4625 (print_frame_arguments_none): Declare.
4626 (print_entry_values): Delete declaration.
4627 (struct frame_print_options, user_frame_print_options): New.
4628 (struct set_backtrace_options): New.
4629 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4630 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4631 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4632 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4633 (list_args_or_locals): Add frame_print_options parameter.
4634 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4635 * python/py-framefilter.c (enumerate_args): Pass down
4636 USER_FRAME_PRINT_OPTIONS.
4637 * stack.c: Include "cli/cli-option.h".
4638 (print_frame_arguments_all, print_frame_arguments_scalars)
4639 (print_frame_arguments_none): Declare.
4640 (print_raw_frame_arguments, print_entry_values): Delete.
4641 (user_frame_print_options): New.
4642 (boolean_option_def, enum_option_def, frame_print_option_defs):
4643 New.
4644 (struct backtrace_cmd_options): New.
4645 (bt_flag_option_def): New.
4646 (backtrace_command_option_defs): New.
4647 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4648 (print_frame_arg, read_frame_arg, print_frame_args)
4649 (print_frame_info, print_frame): Add frame_print_options parameter
4650 and use it.
4651 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4652 (backtrace_command_1): Add frame_print_options and
4653 backtrace_cmd_options parameters and use them.
4654 (make_backtrace_options_def_group): New.
4655 (backtrace_command): Process command options with
4656 gdb::option::process_options.
4657 (backtrace_command_completer): New.
4658 (_initialize_stack): Extend "backtrace"'s help to mention
4659 supported options. Install completer for "backtrace".
4660 Install some settings commands with add_setshow_cmds_for_options.
4661
2daf894e
PA
46622019-06-13 Pedro Alves <palves@redhat.com>
4663
4664 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4665 and that "set/show print raw frame-arguments" are now deprecated.
4666
4667 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4668 command.
4669 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4670 * stack.c (_initialize_stack): Install "set/show print
4671 raw-frame-arguments", and deprecate "set/show print raw
4672 frame-arguments".
4673 * valprint.c (_initialize_valprint): Deprecate "set/show print
4674 raw".
4675
e6ed716c
PA
46762019-06-13 Pedro Alves <palves@redhat.com>
4677
4678 * compile/compile.c (struct compile_options): New.
4679 (compile_flag_option_def, compile_command_option_defs)
4680 (make_compile_options_def_group): New.
4681 (compile_file_command): Handle options with
4682 gdb::option::process_options.
4683 (compile_file_command_completer): New function.
4684 (compile_code_command): Handle options with
4685 gdb::option::process_options.
4686 (compile_code_command_completer): New function.
4687 (_initialize_compiler): Install completers for "compile code" and
4688 "compile file". Mention available options in "compile code" and
4689 "compile code"'s help.
4690 * completer.c (advance_to_completion_word): New, factored out from
4691 ...
4692 (advance_to_expression_complete_word_point): ... this.
4693 (advance_to_filename_complete_word_point): New.
4694 * completer.h (advance_to_filename_complete_word_point): New
4695 declaration.
4696
7d8062de
PA
46972019-06-13 Pedro Alves <palves@redhat.com>
4698
4699 * compile/compile.c: Include "cli/cli-option.h".
4700 (compile_print_value): Scope data pointer is now a
4701 value_print_options pointer; adjust.
4702 (compile_print_command): Process options. Scope data pointer is
4703 now a value_print_options pointer; adjust.
4704 (_initialize_compile): Update "compile print"'s help to include
4705 supported options. Install a completer for "compile print".
4706 * cp-valprint.c (show_vtblprint, show_objectprint)
4707 (show_static_field_print): Delete.
4708 (_initialize_cp_valprint): Don't install "set print
4709 static-members", "set print vtbl", "set print object" here.
4710 * printcmd.c: Include "cli/cli-option.h" and
4711 "common/gdb_optional.h".
4712 (print_command_parse_format): Rework to fill in a
4713 value_print_options instead of a format_data.
4714 (print_value): Change parameter type from format_data pointer to
4715 value_print_options reference. Adjust.
4716 (print_command_1): Process options. Adjust to pass down a
4717 value_print_options.
4718 (print_command_completer): New.
4719 (_initialize_printcmd): Install print_command_completer as
4720 handle_brkchars completer for the "print" command. Update
4721 "print"'s help to include supported options.
4722 * valprint.c: Include "cli/cli-option.h".
4723 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4724 here from cp-valprint.c.
4725 (boolean_option_def, uinteger_option_def)
4726 (value_print_option_defs, make_value_print_options_def_group):
4727 New. Use gdb::option::add_setshow_cmds_for_options to install
4728 "set print elements", "set print null-stop", "set print repeats",
4729 "set print pretty", "set print union", "set print array", "set
4730 print address", "set print symbol", "set print array-indexes".
4731 * valprint.h: Include <string> and "cli/cli-option.h".
4732 (make_value_print_options_def_group): Declare.
4733 (print_value): Change parameter type from format_data pointer to
4734 value_print_options reference.
4735 (print_command_completer): Declare.
4736
9d0faba9
PA
47372019-06-13 Pedro Alves <palves@redhat.com>
4738
4739 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4740 (COMMON_SFILES): Add maint-test-settings.c.
4741 * cli/cli-decode.c (boolean_enums): New global, factored out from
4742 ...
4743 (add_setshow_boolean_cmd): ... here.
4744 * cli/cli-decode.h (boolean_enums): Declare.
4745 * cli/cli-option.c: New file.
4746 * cli/cli-option.h: New file.
4747 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4748 factored out from ...
4749 (parse_cli_boolean_value(const char *)): ... this.
4750 (is_unlimited_literal): Change parameter type to pointer to
4751 pointer. Adjust and advance ARG pointer.
4752 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4753 (parse_cli_var_enum): New, factored out from ...
4754 (do_set_command): ... this. Adjust.
4755 * cli/cli-setshow.h (parse_cli_boolean_value)
4756 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4757 (parse_cli_var_enum): Declare.
4758 * cli/cli-utils.c: Include "cli/cli-option.h".
4759 (get_ulongest): New.
4760 * cli/cli-utils.h (get_ulongest): Declare.
4761 (check_for_argument): New overloads.
4762 * maint-test-options.c: New file.
4763
2c722807
PA
47642019-06-13 Pedro Alves <palves@redhat.com>
4765
4766 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4767 parse a range if "-" is at the end of the string.
4768
dee7b4c8
PA
47692019-06-13 Pedro Alves <palves@redhat.com>
4770
4771 * cli/cli-setshow.c (parse_auto_binary_operation)
4772 (parse_cli_boolean_value): Don't allow "o".
4773
dca0f6c0
PA
47742019-06-13 Pedro Alves <palves@redhat.com>
4775
4776 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4777 * NEWS: Mention maint test-settings KIND.
4778 * maint-test-settings.c: New file.
4779
597bf39d
PA
47802019-06-13 Pedro Alves <palves@redhat.com>
4781
4782 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4783 completer.
4784 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4785 "set" completers.
4786
48c410fb
PA
47872019-06-13 Pedro Alves <palves@redhat.com>
4788
4789 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4790 after item.
4791
93bcb043
PA
47922019-06-13 Pedro Alves <palves@redhat.com>
4793
4794 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4795
cbba3ecd
PA
47962019-06-13 Pedro Alves <palves@redhat.com>
4797
4798 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4799 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4800 call.
4801 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4802 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4803 calls.
4804 (check_for_argument): Skip spaces after argument.
4805
b9a3f842
PA
48062019-06-13 Pedro Alves <palves@redhat.com>
4807
4808 * thread.c (thread_apply_command): Adjust TID parsing.
4809 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4810 detected before end of string.
4811 (tid_is_in_list): Error out if LIST is invalid.
4812
3844e605
PA
48132019-06-13 Pedro Alves <palves@redhat.com>
4814
4815 * completer.c (complete_line_internal_1): Rewind completion word
4816 point.
4817 (completion_tracker::advance_custom_word_point_by): Change
4818 parameter type to int.
4819 * completer.h (completion_tracker::advance_custom_word_point_by):
4820 Likewise.
4821
00b56dbe
PA
48222019-06-13 Pedro Alves <palves@redhat.com>
4823
4824 * completer.c (advance_to_completion_word): Handle delimiters.
4825
d106773e
PA
48262019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4827
4828 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4829
08f10e02
TT
48302019-06-11 Tom Tromey <tom@tromey.com>
4831
4832 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4833 (xmalloc_failed): Move to alloc.c.
4834 * alloc.c: New file.
4835 * Makefile.in (COMMON_SFILES): Add alloc.c.
4836
1c7fe951
TT
48372019-06-11 Tom Tromey <tom@tromey.com>
4838
4839 * nat/linux-waitpid.c: Don't include server.h.
4840 (linux_debug): Remove.
4841 (my_waitpid): Update.
4842
89549d7f
TT
48432019-06-11 Tom Tromey <tromey@adacore.com>
4844
4845 * infcall.c (_initialize_infcall): Remove trailing newline from
4846 help.
4847 * user-regs.c (_initialize_user_regs): Remove trailing newline
4848 from help.
4849 * typeprint.c (_initialize_typeprint): Remove trailing newline
4850 from help.
4851 * reverse.c (_initialize_reverse): Remove trailing newlines from
4852 help.
4853 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4854 from help.
4855 * language.c (add_set_language_command): Remove trailing newline
4856 from help.
4857 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4858 help.
4859 * disasm.c (_initialize_disasm): Remove trailing newline from
4860 help.
4861 * top.c (init_main): Remove trailing newline from help.
4862 * interps.c (_initialize_interpreter): Remove trailing newline
4863 from help.
4864 * btrace.c (_initialize_btrace): Remove trailing newlines from
4865 help.
4866 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4867 from help.
4868 * python/python.c (_initialize_python): Remove trailing newline
4869 from help.
4870 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4871 help.
4872 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4873 from help. Reformat some text.
4874 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4875 from help.
4876 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4877 newline from help.
4878
86108c13
TT
48792019-06-11 Tom Tromey <tromey@adacore.com>
4880
4881 * darwin-nat.c (darwin_decode_exception_message)
4882 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4883
a7067863
AB
48842019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4885
4886 * valops.c (value_slice): Check for not allocated or not
4887 associated values.
4888
9ab08412
TV
48892019-06-10 Tom de Vries <tdevries@suse.de>
4890
4891 PR gdb/24618
4892 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4893 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4894 invalid.
4895
f19e22e9
TV
48962019-06-10 Tom de Vries <tdevries@suse.de>
4897
4898 PR gdb/24611
4899 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4900 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4901
e99f9db0
TV
49022019-06-10 Tom de Vries <tdevries@suse.de>
4903
4904 PR symtab/24545
4905 * symtab.c (struct demangled_name_entry): Add language field.
4906 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4907 static minimal symbol". Set and use language field.
4908
9bf7038b
TT
49092019-06-10 Tom Tromey <tromey@adacore.com>
4910
4911 * ada-lang.c (_initialize_ada_language): Update help text.
4912
422186a9
TT
49132019-06-10 Tom Tromey <tromey@adacore.com>
4914
4915 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4916 with a newline.
4917 * guile/guile.c (handle_boot_error): Don't end warning with a
4918 newline.
4919 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4920 warning with a newline.
4921 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4922 newline.
4923 (s12z_frame_cache): Likewise.
4924 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4925 a newline.
4926 * solib-svr4.c (disable_probes_interface): Don't end warning with
4927 a newline.
4928 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4929 newline.
4930 * python/python.c (do_finish_initialization): Don't end warning
4931 with a newline.
4932
25ce02ee
TT
49332019-06-10 Tom Tromey <tom@tromey.com>
4934
4935 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4936 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4937 gdbpy_enter.
4938
caa429d8
TT
49392019-06-10 Tom Tromey <tromey@adacore.com>
4940
4941 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4942 data.
4943 (elf_new_init): Don't call stabsread_new_init.
4944 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4945 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4946 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4947
81873cc8
TV
49482019-06-10 Tom de Vries <tdevries@suse.de>
4949
4950 PR symtab/16264
4951 PR symtab/24517
4952 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4953
4fa0265e
РИ
49542019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4955
4956 * source.c (find_and_open_source): Also rewrite relative file
4957 names.
4958
1a3da2cd
AB
49592019-04-26 Amos Bird <amosbird@gmail.com>
4960
4961 * annotate.c (annotate_thread_exited): Add "thread-exited"
4962 annotation.
4963
3847a7bf
TT
49642019-06-06 Tom Tromey <tromey@adacore.com>
4965
4966 * maint.h (class scoped_command_stats): Use
4967 DISABLE_COPY_AND_ASSIGN.
4968 <print_time>: New method.
4969 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4970 print_time.
4971 (scoped_command_stats::print_time): New method.
4972
312617a3
AB
49732019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4974
4975 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4976 instructions of lengths 6 or 8 bytes.
4977
b02f78f9
PA
49782019-06-04 Pedro Alves <palves@redhat.com>
4979
4980 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4981
4982 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4983 * breakpoint.c (condition_completer): Likewise.
4984 * cli/cli-dump.c (scan_expression): Likewise.
4985 * common/filestuff.c (mkdir_recursive): Likewise.
4986 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4987 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4988 (gdb_abspath): Likewise.
4989 * compile/compile-cplus-types.c
4990 (compile_cplus_instance::decl_name): Likewise.
4991 * completer.c (complete_explicit_location):
4992 (signal_completer, reg_or_group_completer_1): Likewise.
4993 * cp-support.c (cp_remove_params_if_any): Likewise.
4994 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4995 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4996 * infcmd.c (strip_bg_char): Likewise.
4997 * linespec.c (copy_token_string): Likewise.
4998 * mi/mi-main.c (output_cores): Likewise.
4999 * psymtab.c (psymtab_search_name):
5000 * symfile.c (test_set_ext_lang_command): Likewise.
5001 * target.c (target_fileio_read_stralloc): Likewise.
5002 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5003 * value.c (complete_internalvar): Likewise.
5004
e1f2e1a2
CB
50052019-06-04 Christian Biesinger <cbiesinger@google.com>
5006
5007 Add objfile property to gdb.Type.
d3238f7d
PA
5008 * NEWS: Mention Python API addition.
5009 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5010
e664d728
PW
50112019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5012
5013 * NEWS: Mention the new set|show style [title|highlight].
5014 Mention changes to "show style", "help" and "apropos".
5015
66d8c862
PW
50162019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5017
5018 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5019 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5020 instead of print_help_for_command.
5021 (print_doc_of_command): New function.
5022 (help_list): Add 'apropos -v word' suggestion.
5023 (print_help_for_command): Style the command name using title style.
5024 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5025 (_initialize_cli_cmds): Describe -v in apropos_command help.
5026
9303eb2f
PW
50272019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5028
5029 * cli/cli-style.h (cli_style_option): Add name in constructor,
5030 add m_name class member, add constructor with intensity,
5031 add name class function.
5032 (cli_style_option::add_setshow_commands): Remove name argument.
5033 (highlight_style, title_style): New styles.
5034 * cli/cli-style.c (do_show): New function that shows a style
5035 characteristic styling the style name with itself.
5036 (set_style_name): New function.
5037 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5038 Update all callers according to the changes in cli/cli-style.h.
5039 * utils.h (fputs_highlighted): New function.
5040 * utils.c (fputs_highlighted): Likewise.
5041
e2c52041
PW
50422019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5043
5044 * NEWS: Mention new pipe command and new convenience variables.
5045
947d3946
PW
50462019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5047
5048 * cli/cli-cmds.c (pipe_command): New function.
5049 (_initialize_cli_cmds): Call add_com for pipe_command.
5050 Define | as an alias for pipe.
5051 (exit_status_set_internal_vars): New function.
5052 (shell_escape): Call exit_status_set_internal_vars.
5053 cli/cli-decode.c (find_command_name_length): Recognize | as
5054 a single character command.
5055
b8fd0918
PW
50562019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5057
5058 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5059 top.c (execute_command_to_ui_file): New function, mostly a copy
5060 of execute_command_to_string.
5061 (execute_command_to_string): Implement by calling
5062 execute_command_to_ui_file.
5063
68bb5386
PW
50642019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5065
5066 * top.h (saved_command_line): Remove declaration.
5067 * top.c (previous_saved_command_line, previous_repeat_arguments):
5068 New variables.
5069 (saved_command_line): Make static, define together with other
5070 'repeat variables'.
5071 (dont_repeat): Clear repeat_arguments.
5072 (repeat_previous, get_saved_command_line, save_command_line):
5073 New functions.
5074 (gdb_init): Initialize saved_command_line
5075 and previous_saved_command_line.
5076 * main.c (captured_main_1): Remove saved_command_line initialization.
5077 * event-top.c (handle_line_of_input): Update to use
5078 the new 'repeat' related functions instead of direct access to
5079 saved_command_line.
5080 * command.h (repeat_previous, get_saved_command_line,
5081 save_command_line): New declarations.
5082 (dont_repeat): Add comment.
5083
bfcdb852
TT
50842019-05-30 Tom Tromey <tromey@adacore.com>
5085
5086 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5087 Fix comment.
5088 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5089
0ef209f2
JV
50902019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5091
5092 PR cli/24587
5093 * completer.c (complete): Initialize variable word.
5094
955b06fa
SDJ
50952019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5096
5097 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5098 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5099 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5100 'body' is NULL to the outter 'if', protecting the '!is_define'
5101 situation as well.
5102
fa9c3fa0
TT
51032019-05-29 Tom Tromey <tromey@adacore.com>
5104
5105 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5106 (dwarf_unknown): New function.
5107 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5108 (dwarf_type_encoding_name): Use dwarf_unknown.
5109
4330d61d
TT
51102019-05-29 Tom Tromey <tromey@adacore.com>
5111
5112 PR c++/20020:
5113 * cp-valprint.c (cp_print_value_fields): Call
5114 cp_print_static_field inside "try".
5115
33a6bc35
TT
51162019-05-29 Tom Tromey <tromey@adacore.com>
5117
5118 * inflow.c (struct terminal_info): Add default operator=.
5119 * configure: Rebuild.
5120 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5121 -Wdeprecated-copy-dtor, -Wredundant-move.
5122
000439d5
TT
51232019-05-29 Tom Tromey <tromey@adacore.com>
5124
5125 * NEWS: Add entry.
5126 * infcmd.c (print_return_value_1): Handle finish_print
5127 option.
5128 (show_print_finish): New function.
5129 (_initialize_infcmd): Add "set/show print finish" commands.
5130 * valprint.c (user_print_options): Initialize new member.
5131 * valprint.h (struct value_print_options) <finish_print>: New
5132 member.
5133
c0e70c62
TT
51342019-05-28 Tom Tromey <tromey@adacore.com>
5135
5136 * ada-lang.c (ada_remove_Xbn_suffix)
5137 (find_old_style_renaming_symbol)
5138 (parse_old_style_renaming): Remove.
5139 (ada_find_renaming_symbol): Don't call
5140 find_old_style_renaming_symbol.
5141 (ada_is_renaming_symbol): Rename from
5142 ada_find_renaming_symbol. Remove "block" parameter. Return
5143 bool. Now static.
5144 (ada_read_var_value): Update and simplify.
5145 * ada-exp.y (write_var_or_type): Remove old code.
5146
766f8836
AH
51472019-05-28 Alan Hayward <alan.hayward@arm.com>
5148
5149 * event-top.c: Remove include comment.
5150 * inflow.c (class scoped_ignore_sigttou): Move from here...
5151 * inflow.h (class scoped_ignore_sigttou): ...to here.
5152 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5153 * top.c: Remove include comment.
5154
eb41253a
TT
51552019-05-27 Tom Tromey <tom@tromey.com>
5156
5157 * NEWS: Fix typo.
5158
4ca51187
TT
51592019-05-22 Tom Tromey <tromey@adacore.com>
5160
5161 * target.c (target_follow_exec): Constify parameter.
5162 * target-delegates.c: Rebuild.
5163 * remote.c (remote_target::follow_exec): Constify parameter.
5164 * infrun.c (follow_exec): Constify parameter.
5165 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5166 (target_follow_exec): Likewise.
5167
8fca4da0
AH
51682019-05-22 Alan Hayward <alan.hayward@arm.com>
5169
5170 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5171 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5172
b7060614
AH
51732019-05-22 Alan Hayward <alan.hayward@arm.com>
5174
5175 * NEWS: Add debugredirect and testsuite sections.
5176
0a5954bd
SC
51772019-05-22 Simon Cook <simon.cook@embecosm.com>
5178
5179 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5180 target descriptions using exclusively floating point register name
5181 aliases.
5182
dc42e902
AB
51832019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5184
5185 PR gdb/18644:
5186 * f-lang.c (build_fortran_types): Handle the case where
5187 gdbarch_floatformat_for_type returns a nullptr.
5188
fb7806c7
TV
51892019-05-21 Tom de Vries <tdevries@suse.de>
5190
5191 PR cli/24587
5192 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5193
34d11c68
AB
51942019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 PR gdb/18644:
5197 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5198 16-byte floats.
5199 * i386-tdep.c (i386_floatformat_for_type): Use
5200 floatformats_ia64_quad for the 16-byte floating point component
5201 within a fortran 32-byte complex number.
5202
122cf0f2
AB
52032019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5204
5205 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5206 delete default constructor.
5207 (find_partial_die): Update to return const struct.
5208 (partial_die_parent_scope): Move variable declaration into scope
5209 of its use and change its type to auto.
5210 (guess_partial_die_structure_name): Likewise.
5211 (partial_die_info::fixup): Likewise.
5212
33d0e35a
TT
52132019-05-17 Tom Tromey <tromey@adacore.com>
5214
5215 * source.c (find_and_open_source): Remove cast.
5216
a45575b0
TT
52172019-05-17 Tom Tromey <tromey@adacore.com>
5218
5219 * annotate.c (annotate_source): Make "filename" const.
5220 * annotate.h (annotate_source): Use const.
5221
81f47ac2
AH
52222019-05-17 Alan Hayward <alan.hayward@arm.com>
5223
5224 * disasm.c (set_disassembler_options): Send errors to stderr.
5225
ca1285d1
AH
52262019-05-17 Alan Hayward <alan.hayward@arm.com>
5227
5228 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5229 (cli_interp_base::set_logging): Check debug_redirect.
5230 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5231 * cli/cli-logging.c (debug_redirect): Add static variable.
5232 (pop_output_files): Add default param.
5233 (handle_redirections): Print debug setting.
5234 (show_logging_command): Likewise.
5235 (_initialize_cli_logging): Add debugredirect command.
5236 * interps.c (current_interp_set_logging): Add debug_redirect
5237 parameter.
5238 * interps.h (set_logging): Add debug_redirect parameter.
5239 (current_interp_set_logging): Likewise.
5240 * mi/mi-common.h: Likewise.
5241 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5242
52432019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5244 Tom Tromey <tromey@adacore.com>
5245
5246 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5247 directly.
5248 * cli/cli-interp.h (make_logging_output): Remove declaration.
5249 * cli/cli-logging.c (make_logging_output): Remove function.
5250 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5251 directly.
5252 * ui-file.c (tee_file::tee_file): Remove bools.
5253 (tee_file::~tee_file): Remove deletes.
5254 * ui-file.h (tee_file): Remove bools.
5255
26648588
JV
52562019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5257
5258 * mi/mi-cmds.h (mi_cmd_complete): New function.
5259 * mi/mi-main.c (mi_cmd_complete): Likewise.
5260 * mi/mi-cmds.c: Define new MI command -complete.
5261 * NEWS: Mention new -complete command.
5262
6e035501
JV
52632019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5264
5265 * completer.h (complete): New function.
5266 * completer.c (complete): Likewise.
5267 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5268 function defined in completer.h.
5269
7d0e2ece
JV
52702019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5271
e79be6e5 5272 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5273
fb816e8b
TV
52742019-05-17 Tom de Vries <tdevries@suse.de>
5275
5276 PR gdb/24094
5277 * dwarf2read.c (struct cu_partial_die_info): New struct.
5278 (find_partial_die): Return cu_partial_die_info.
5279 (partial_die_parent_scope, guess_partial_die_structure_name)
5280 (partial_die_info::fixup): Handle new return type of find_partial_die.
5281
677052f2
SDJ
52822019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5283
5284 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5285 "std::string", simplifying the algorithm.
5286
f3da9116
SDJ
52872019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5288
5289 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5290 (stap_static_probe_ops::get_probes): Likewise.
5291
f1bb75ab
SDJ
52922019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5293
5294 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5295 '-')" and "else if".
5296 (stap_parse_single_operand): Join checks for
5297 "gdbarch_stap_parse_special_token_p" and
5298 "gdbarch_stap_parse_special_token" in the same "if" statement.
5299 Invert check when verifying for operation on register
5300 displacement.
5301
3ca58cde
SDJ
53022019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5303
5304 * stap-probe.c (stap_get_opcode): Update comment.
5305 (stap_get_expected_argument_type): Likewise.
5306 (handle_stap_probe): Likewise.
5307
af2d9bee
SDJ
53082019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5309
5310 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5311 return type to 'bool'. Adjust comment. Use 'bool' when
5312 appropriate.
5313 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5314 * stap-probe.c (stap_parse_argument_1): Likewise.
5315 (stap_is_operator): Likewise.
5316 (stap_is_generic_prefix): Likewise.
5317 (stap_is_register_prefix): Likewise.
5318 (stap_is_register_indirection_prefix): Likewise.
5319 (stap_is_integer_prefix): Likewise.
5320 (stap_generic_check_suffix): Likewise.
5321 (stap_check_integer_suffix): Likewise.
5322 (stap_check_register_suffix): Likewise.
5323 (stap_check_register_indirection_suffix): Likewise.
5324 (stap_parse_register_operand): Likewise.
5325 (stap_parse_single_operand): Likewise.
5326 (stap_parse_argument_1): Likewise.
5327 (stap_probe::get_argument_count): Likewise.
5328 (stap_is_operator): Likewise.
5329
61c9c421
TT
53302019-05-16 Tom Tromey <tromey@adacore.com>
5331
5332 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5333 keyword to foreach.
5334
9ddc1af1
SM
53352019-05-15 Simon Marchi <simon.marchi@efficios.com>
5336
5337 * linux-thread-db.c (try_thread_db_load_1): Change return type
5338 to bool.
5339 (try_thread_db_load): Likewise.
5340 (try_thread_db_load_from_pdir_1): Likewise.
5341 (try_thread_db_load_from_pdir): Likewise.
5342 (try_thread_db_load_from_sdir): Likewise.
5343 (try_thread_db_load_from_dir): Likewise.
5344 (thread_db_load_search): Likewise.
5345 (has_libpthread): Likewise.
5346 (thread_db_load): Likewise.
5347
7bede828
SDJ
53482019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5349
5350 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5351 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5352 NULL, and complain/return if that's the case.
5353
c5358db4
JD
53542019-05-15 John Darrington <john@darrington.wattle.id.au>
5355
5356 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5357 (advance, posn, abstract_read_memory): New functions.
5358 [struct mem_read_abstraction]: New struct.
5359 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5360
c408a94f
TT
53612019-05-14 Tom Tromey <tromey@adacore.com>
5362
5363 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5364 value is not lval_memory.
5365
e7bd7fba
TT
53662019-05-14 Tom Tromey <tromey@adacore.com>
5367
5368 * solib.c (info_sharedlibrary_command): Style the file name.
5369
a6d0f249
AH
53702019-05-14 Alan Hayward <alan.hayward@arm.com>
5371
5372 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5373 (aarch64_vnv_type): Likewise.
5374 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5375 * common/tdesc.c: Likewise.
5376 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5377 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5378 * features/aarch64-fpu.xml: Add ieee half view.
5379 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5380 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5381 * gdbtypes.h (struct builtin_type): Likewise.
5382 (struct objfile_type): Likewise.
5383
66b8bb74
SM
53842019-05-12 Paul Naert <paul.naert@polymtl.ca>
5385
5386 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5387 typo.
5388 * location.h (string_to_event_location): Likewise.
5389
21c219fd
JB
53902019-05-11 Joel Brobecker <brobecker@adacore.com>
5391
5392 GDB 8.3 released.
5393
13674803
SM
53942019-05-10 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5397 New variable declaration.
5398 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5399 New variable.
5400 (print_one_breakpoint): Use ui_out::test_flags and new global
5401 variable to compute use_fixed_output.
5402 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5403 Remove.
5404 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5405 (mi_multi_location_breakpoint_output_fixed): Remove.
5406 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5407 new variable.
5408 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5409 fix_multi_location_breakpoint_output flag if version >= 3.
5410 * ui-out.h (enum ui_out_flag)
5411 <fix_multi_location_breakpoint_output>: New enumerator.
5412
a9eac7f9
SM
54132019-05-10 Simon Marchi <simon.marchi@efficios.com>
5414
5415 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5416
71bed2db
TT
54172019-05-10 Tom Tromey <tromey@adacore.com>
5418
5419 * ada-lang.c (catch_ada_completer): New function.
5420 (_initialize_ada_language): Use it.
5421
24c54127
TT
54222019-05-10 Tom Tromey <tromey@adacore.com>
5423
5424 * thread.c (print_thread_info): Make "requested_threads" const.
5425 * gdbthread.h (print_thread_info): Make "requested_threads"
5426 const.
5427 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5428 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5429
7a102139
TT
54302019-05-08 Tom Tromey <tom@tromey.com>
5431
5432 * gdbtypes.c (objfile_type_data): Change type.
5433 (objfile_type, _initialize_gdbtypes): Update.
5434
924d79e2
TT
54352019-05-08 Tom Tromey <tom@tromey.com>
5436
5437 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5438 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5439 (_initialize_dwarf2_frame): Update.
5440
4c58e337
TT
54412019-05-08 Tom Tromey <tom@tromey.com>
5442
5443 * objc-lang.c (objc_objfile_data): Change type.
5444 (find_methods): Update.
5445 (_initialize_objc_lang): Remove.
5446
d772d2ab
TT
54472019-05-08 Tom Tromey <tom@tromey.com>
5448
5449 * stabsread.c (rs6000_builtin_type_data): Change type.
5450 (rs6000_builtin_type, _initialize_stabsread): Update.
5451
d11d83f4
TT
54522019-05-08 Tom Tromey <tom@tromey.com>
5453
5454 * mips-tdep.c (mips_pdr_data): Remove.
5455 (_initialize_mips_tdep): Update.
5456
9a73f0ad
TT
54572019-05-08 Tom Tromey <tom@tromey.com>
5458
5459 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5460 (hppa_init_objfile_priv_data, read_unwind_info)
5461 (find_unwind_entry, _initialize_hppa_tdep): Update.
5462
8127a2fa
TT
54632019-05-08 Tom Tromey <tom@tromey.com>
5464
5465 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5466 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5467 on obstack.
5468 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5469
91d3055d
TT
54702019-05-08 Tom Tromey <tom@tromey.com>
5471
5472 * mdebugread.c (basic_type_data): Change type.
5473 (basic_type, _initialize_mdebugread): Update.
5474
31930bd3
TT
54752019-05-08 Tom Tromey <tom@tromey.com>
5476
5477 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5478
bdb3ed9e
TT
54792019-05-08 Tom Tromey <tom@tromey.com>
5480
5481 * nto-tdep.c (nto_inferior_data_reg): Change type.
5482 (nto_inferior_data): Update.
5483 (nto_inferior_data_cleanup, nto_new_inferior_data)
5484 (_initialize_nto_tdep): Remove.
5485 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5486
f37b313d
TT
54872019-05-08 Tom Tromey <tom@tromey.com>
5488
5489 * ada-lang.c (struct ada_inferior_data): Add initializers.
5490 (ada_inferior_data): Change type.
5491 (ada_inferior_data_cleanup): Remove.
5492 (get_ada_inferior_data, ada_inferior_exit)
5493 (struct ada_pspace_data): Add initializers, destructor.
5494 (ada_pspace_data_handle): Change type.
5495 (get_ada_pspace_data): Update.
5496 (ada_pspace_data_cleanup): Remove.
5497
24699405
TT
54982019-05-08 Tom Tromey <tom@tromey.com>
5499
5500 * coffread.c (struct coff_symfile_info): Add initializers.
5501 (coff_objfile_data_key): Move lower. Change type.
5502 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5503 Update.
5504 (coff_free_info): Remove.
5505
d4e05d2f
TT
55062019-05-08 Tom Tromey <tom@tromey.com>
5507
5508 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5509 (fbsd_pspace_data_handle): Move lower. Change type.
5510 (get_fbsd_pspace_data): Update.
5511 (fbsd_pspace_data_cleanup): Remove.
5512 (_initialize_fbsd_tdep): Update.
5513
14ef6690
TT
55142019-05-08 Tom Tromey <tom@tromey.com>
5515
5516 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5517 (get_ada_tasks_pspace_data): Update.
5518 (ada_tasks_pspace_data_cleanup): Remove.
5519 (_initialize_tasks): Update.
5520 (ada_tasks_inferior_data_handle): Change type.
5521 (get_ada_tasks_inferior_data): Update.
5522 (ada_tasks_inferior_data_cleanup): Remove.
5523 (struct ada_tasks_pspace_data): Add initializers.
5524
814cf43a
TT
55252019-05-08 Tom Tromey <tom@tromey.com>
5526
5527 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5528 * symfile-debug.c (debug_sym_get_probes): Change type.
5529 * stap-probe.c (handle_stap_probe):
5530 (stap_static_probe_ops::get_probes): Change type.
5531 * probe.h (class static_probe_ops) <get_probes>: Change type.
5532 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5533 (parse_probes_in_pspace): Update.
5534 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5535 Update.
5536 (any_static_probe_ops::get_probes): Change type.
5537 * elfread.c (elfread_data): New typedef.
5538 (probe_key): Change type.
5539 (elf_get_probes): Likewise. Update.
5540 (probe_key_free): Remove.
5541 (_initialize_elfread): Update.
5542 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5543 Change type.
5544 (dtrace_process_dof_probe, dtrace_process_dof)
5545 (dtrace_static_probe_ops::get_probe): Change type.
5546
02dc647e
TT
55472019-05-08 Tom Tromey <tom@tromey.com>
5548
5549 * xcoffread.c (struct xcoff_symfile_info): Rename from
5550 coff_symfile_info. Add initializers.
5551 (xcoff_objfile_data_key): Move lower. Change type.
5552 (XCOFF_DATA): Rewrite.
5553 (xcoff_free_info): Remove.
5554 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5555 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5556 (xcoff_initial_scan): Update.
5557
09232438
TT
55582019-05-08 Tom Tromey <tom@tromey.com>
5559
5560 * solib-svr4.c (struct svr4_info): Add initializers and
5561 destructor.
5562 <probes_table>: Now an htab_up.
5563 (solib_svr4_pspace_data): Change type.
5564 (free_probes_table): Simplify.
5565 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5566 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5567 (probes_table_remove_objfile_probes, register_solib_event_probe)
5568 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5569 (_initialize_svr4_solib): Update.
5570
7b4a314f
TT
55712019-05-08 Tom Tromey <tom@tromey.com>
5572
5573 * remote.c (remote_pspace_data): Change type.
5574 (remote_pspace_data_cleanup): Remove.
5575 (get_remote_exec_file, set_pspace_remote_exec_file)
5576 (_initialize_remote): Update.
5577
51d3063a
TT
55782019-05-08 Tom Tromey <tom@tromey.com>
5579
5580 * breakpoint.c (breakpoint_objfile_key): Change type.
5581 (get_breakpoint_objfile_data): Update.
5582 (free_breakpoint_objfile_data): Remove.
5583 (_initialize_breakpoint): Update.
5584
89fb8848
TT
55852019-05-08 Tom Tromey <tom@tromey.com>
5586
5587 * linux-tdep.c (struct linux_info): Add initializers.
5588 (linux_inferior_data): Move. Change type.
5589 (invalidate_linux_cache_inf): Update.
5590 (linux_inferior_data_cleanup): Remove.
5591 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5592
e9b89e2d
TT
55932019-05-08 Tom Tromey <tom@tromey.com>
5594
5595 * auxv.c (auxv_inferior_data): Move. Change type.
5596 (auxv_inferior_data_cleanup): Remove.
5597 (invalidate_auxv_cache_inf): Rewrite.
5598 (get_auxv_inferior_data, _initialize_auxv): Update.
5599
8c42777c
TT
56002019-05-08 Tom Tromey <tom@tromey.com>
5601
5602 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5603 (symfile_debug_objfile_data_key): Change type.
5604 (symfile_debug_installed, debug_qf_has_symbols)
5605 (debug_qf_find_last_source_symtab)
5606 (debug_qf_forget_cached_source_info)
5607 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5608 (debug_qf_print_stats, debug_qf_dump)
5609 (debug_qf_expand_symtabs_for_function)
5610 (debug_qf_expand_all_symtabs)
5611 (debug_qf_expand_symtabs_with_fullname)
5612 (debug_qf_map_matching_symbols)
5613 (debug_qf_expand_symtabs_matching)
5614 (debug_qf_find_pc_sect_compunit_symtab)
5615 (debug_qf_map_symbol_filenames)
5616 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5617 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5618 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5619 (debug_sym_read_linetable, debug_sym_relocate): Update.
5620 (symfile_debug_free_objfile): Remove.
5621 (install_symfile_debug_logging, _initialize_symfile_debug):
5622 Update.
5623
5bfd760d
TT
56242019-05-08 Tom Tromey <tom@tromey.com>
5625
5626 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5627 allocate_on_obstack.
5628 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5629 (get_dwarf2_per_objfile): Update.
5630 (set_dwarf2_per_objfile): Remove.
5631 (dwarf2_has_info, dwarf2_get_section_info): Update.
5632 (dwarf2_free_objfile): Remove.
5633 (_initialize_dwarf2_read): Update.
5634
e85e19b4
TT
56352019-05-08 Tom Tromey <tom@tromey.com>
5636
5637 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5638 initializers.
5639 <unsupported_script_warning_printed,
5640 script_not_found_warning_printed>: Now bool.
5641 (auto_load_pspace_data): Change type.
5642 (~auto_load_pspace_info): Rename from
5643 auto_load_pspace_data_cleanup.
5644 (get_auto_load_pspace_data, init_loaded_scripts_info)
5645 (clear_section_scripts, maybe_print_unsupported_script_warning)
5646 (maybe_print_script_not_found_warning, _initialize_auto_load):
5647 Update.
5648
f6aa7436
TT
56492019-05-08 Tom Tromey <tom@tromey.com>
5650
5651 * objfiles.c (objfile_pspace_info): Add destructor and
5652 initializers.
5653 (objfiles_pspace_data): Change type.
5654 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5655 (get_objfile_pspace_data): Update.
5656 (objfiles_bfd_data): Change type.
5657 (get_objfile_bfd_data): Update.
5658 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5659
6ae614f6
TT
56602019-05-08 Tom Tromey <tom@tromey.com>
5661
5662 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5663 Change type.
5664 (get_catch_syscall_inferior_data): Update.
5665 (catch_syscall_inferior_data_cleanup): Remove.
5666 (_initialize_break_catch_syscall): Update.
5667
6509b8eb
TT
56682019-05-08 Tom Tromey <tom@tromey.com>
5669
5670 * inflow.c (struct terminal_info): Add destructor and
5671 initializers.
5672 (inflow_inferior_data): Change type.
5673 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5674 (get_inflow_inferior_data, inflow_inferior_exit)
5675 (swap_terminal_info, _initialize_inflow): Update.
5676
35632941
TT
56772019-05-08 Tom Tromey <tom@tromey.com>
5678
5679 * target-dcache.c (target_dcache_cleanup): Remove.
5680 (target_dcache_aspace_key): Change type.
5681 (target_dcache_init_p, target_dcache_invalidate)
5682 (target_dcache_get, target_dcache_get_or_init)
5683 (_initialize_target_dcache): Update.
5684 * dcache.h (struct dcache_deleter): New.
5685
3017b94d
TT
56862019-05-08 Tom Tromey <tom@tromey.com>
5687
5688 * symtab.c (struct symbol_cache): Add destructor and
5689 initializers.
5690 (symbol_cache_key): Move. Change type.
5691 (make_symbol_cache, free_symbol_cache): Remove.
5692 (get_symbol_cache): Update.
5693 (symbol_cache_cleanup): Remove.
5694 (ALL_PSPACES, symbol_cache_flush)
5695 (maintenance_print_symbol_cache)
5696 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5697 Update.
5698
a32ad8c5
TT
56992019-05-08 Tom Tromey <tom@tromey.com>
5700
5701 * symtab.c (struct main_info): Add destructor and initializers.
5702 (main_progspace_key): Move. Change type.
5703 (get_main_info): Update.
5704 (main_info_cleanup): Remove.
5705 (_initialize_symtab): Update.
5706
5f6e90a0
TT
57072019-05-08 Tom Tromey <tom@tromey.com>
5708
5709 * registry.h (DECLARE_REGISTRY): Define the _key class.
5710
1bd0c6e4
AB
57112019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5712
5713 * NEWS: Merge two 'New commands' sections.
5714
2228ef77
XR
57152019-05-08 Joel Brobecker <brobecker@adacore.com>
5716
5717 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5718 parameter and use Ada language definition instead.
5719 (ada_val_print_ptr): Remove unused language parameter.
5720 (ada_val_print_num): Remove language parameter and use Ada language
5721 definition instead.
5722 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5723 parameter.
5724 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5725 parameter and use Ada language definition instead.
5726 (ada_val_print_1): Update all ada_val_print_xxx calls.
5727 Remove language parameter.
5728 (ada_val_print): Update ada_val_print_1 call.
5729
60fcc1c3
TT
57302019-05-08 Tom Tromey <tromey@adacore.com>
5731
5732 * remote.c (remote_hw_watchpoint_limit)
5733 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5734 Now static.
5735
ed2b7c17
TT
57362019-05-08 Tom Tromey <tromey@adacore.com>
5737
5738 * maint.c (_initialize_maint_cmds): Move initialization code to
5739 remote.c.
5740 (watchdog, show_watchdog): Move to remote.c.
5741 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5742 "watchdog" static.
5743 (_initialize_remote): Move initialization code from maint.c.
5744 * defs.h (watchdog): Don't declare.
5745
b0be6c91
TT
57462019-05-08 Tom Tromey <tromey@adacore.com>
5747
5748 * tui/tui-interp.c: Include main.h.
5749 * interps.c: Include main.h.
5750 * main.h (interpreter_p): Declare.
5751 * defs.h (interpreter_p): Don't declare.
5752
587ee17b
TT
57532019-05-08 Tom Tromey <tromey@adacore.com>
5754
5755 * dwarf2loc.c: Include dwarf2read.h.
5756 * defs.h (read_unsigned_leb128): Don't declare.
5757 * dwarf2read.h (read_unsigned_leb128): Declare.
5758
ca1df239
TT
57592019-05-08 Tom Tromey <tromey@adacore.com>
5760
5761 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5762 method.
5763
99f20f08
TT
57642019-05-08 Tom Tromey <tromey@adacore.com>
5765
5766 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5767 when no wrap column is set.
5768
80e55b13
TT
57692019-05-08 Tom Tromey <tromey@adacore.com>
5770
5771 * c-lang.c (c_get_string): Handle non-C-style arrays.
5772
9d3421af
TT
57732019-05-08 Tom Tromey <tromey@adacore.com>
5774
5775 * typeprint.c (print_offset_data::update): Print the bit offset,
5776 not the number of bits remaining.
5777
844333e2
TT
57782019-05-08 Tom Tromey <tromey@adacore.com>
5779
5780 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5781 padding at end of comment.
5782
988915ee
TT
57832019-05-08 Tom Tromey <tromey@adacore.com>
5784
5785 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5786 Compare main types.
5787
26bfd823
TT
57882019-05-06 Tom Tromey <tom@tromey.com>
5789
5790 * common/scoped_mmap.c: Include common-defs.h.
5791 * common/scoped_mmap.h: Don't include config.h.
5792
89055eaa
TT
57932019-05-04 Tom Tromey <tom@tromey.com>
5794
5795 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5796 (struct aarch64_call_info): Add initializers.
5797 <si>: Now a std::vector.
5798 (pass_on_stack, aarch64_push_dummy_call): Update.
5799
5da01df5
TT
58002019-05-04 Simon Marchi <simon.marchi@efficios.com>
5801 Tom Tromey <tom@tromey.com>
5802
5803 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5804 (ppc_threads): Now a std::vector. Now static.
5805 (hwdebug_find_thread_points_by_tid)
5806 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5807 Update.
5808
fbdf05a1
TT
58092019-05-04 Tom Tromey <tom@tromey.com>
5810
5811 * arc-tdep.c (arc_tdesc_init): Return bool.
5812
06d16ec9
TT
58132019-05-04 Tom Tromey <tom@tromey.com>
5814
5815 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5816 Use gdb_assert_not_reached.
5817
9c056022
TT
58182019-05-04 Tom Tromey <tom@tromey.com>
5819
5820 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5821 "false".
5822
fa9c2a59
TT
58232019-05-04 Tom Tromey <tom@tromey.com>
5824
5825 * arc-tdep.c (arc_tdesc_init): Use bool.
5826
e2eb806a
TT
58272019-05-04 Tom Tromey <tom@tromey.com>
5828
5829 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5830
6fe87677
TT
58312019-05-04 Tom Tromey <tom@tromey.com>
5832
5833 * cli/cli-cmds.c (valid_command_p): Return bool.
5834
7f008c9e
TT
58352019-05-04 Tom Tromey <tom@tromey.com>
5836
5837 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5838 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5839
b6484282
RT
58402019-05-04 Raul Tambre <raul@tambre.ee>
5841
5842 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5843 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5844 operator for comparison.
5845
af97b416
TT
58462019-05-04 Tom Tromey <tom@tromey.com>
5847
5848 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5849 (lookup_partial_symbol, print_partial_symbols)
5850 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5851 (psymbol_compare): Update.
5852 (add_psymbol_to_bcache): Clear the entire psymbol.
5853 (maintenance_check_psymtabs): Update.
5854 * psympriv.h (struct partial_symbol): Don't derive from
5855 general_symbol_info.
5856 <obj_section, unrelocated_address, address,
5857 set_unrelocated_address>: Update.
5858 <ginfo>: New member.
5859 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5860 (debug_names::write_psymbols): Update.
5861
9d6d4be8
TV
58622019-05-04 Tom de Vries <tdevries@suse.de>
5863
5864 * contrib/cc-with-tweaks.sh: Support -n arg.
5865
66452beb
PW
58662019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5867
5868 * corelow.c (core_target::detach): Ensure frame cache and
5869 register caches are cleared.
5870 inferior.c (exit_inferior_1): Likewise.
5871
bde09ab7
TT
58722019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5873 Tom Tromey <tom@tromey.com>
5874
5875 * dictionary.c (collate_pending_symbols_by_language): Remove
5876 "struct" from foreach.
5877 * symtab.c (lookup_global_symbol_from_objfile)
5878 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5879 foreach.
5880 * ser-tcp.c (net_open): Remove "struct" from foreach.
5881 * objfiles.c (objfile_relocate, objfile_rebase)
5882 (objfile_has_symbols): Remove "struct" from foreach.
5883 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5884 from foreach.
5885 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5886 foreach.
5887 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5888 "struct" from foreach.
5889 * ada-lang.c (create_excep_cond_exprs)
5890 (ada_exception_catchpoint_cond_string): Remove "struct" from
5891 foreach.
5892
222a8d25
TT
58932019-05-03 Tom Tromey <tromey@adacore.com>
5894
5895 * ada-exp.y (convert_char_literal): Check suffix of each
5896 enumerator.
5897
fcd60b84
DP
58982019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5899
5900 PR ada/21406:
5901 * ada-exp.y (yywrap): Don't define.
5902 * ada-lex.l (%option): Add noyywrap
5903 (yywrap): Remove.
5904
5f2459c2
EZ
59052019-05-03 Eli Zaretskii <eliz@gnu.org>
5906
353ea2d1
EZ
5907 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5908 _WIN32_WINNT to the XP level, unless already defined to a higher
5909 level.
5910
5911 * unittests/parse-connection-spec-selftests.c:
5912 * ser-tcp.c:
5913 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5914 override.
5915
5f2459c2
EZ
5916 * symfile.c (find_separate_debug_file): Remove colon from the
5917 drive spec of DOS/Windows file names of the target, so that the
5918 file name produced from DEBUGDIR and the target's directory will
5919 be valid on DOS/Windows systems.
5920
80062eb9
AB
59212019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5922
5923 * rust-lang.c (val_print_struct): Handle printing structures
5924 containing strings.
5925
b8c05e85
TT
59262019-05-02 Tom Tromey <tromey@adacore.com>
5927
5928 * valarith.c (_initialize_valarith): Remove.
5929
4504bbde
TT
59302019-05-01 Tom Tromey <tromey@adacore.com>
5931
5932 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5933 bitfields.
5934
d48e62f4
TT
59352019-05-01 Tom Tromey <tromey@adacore.com>
5936
5937 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5938 for big-endian copies.
5939
15f18d14
AT
59402019-04-30 Ali Tamur <tamur@google.com>
5941 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5942 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5943 (read_3_bytes): New function.
5944
ab4ee614
JB
59452019-04-30 Joel Brobecker <brobecker@adacore.com>
5946
5947 * windows-nat.c (main_thread_id): Delete.
5948 (handle_output_debug_string): Replace main_thread_id by
5949 current_event.dwThreadId.
5950 (fake_create_process): Likewise.
5951 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5952 Do not set main_thread_id.
5953 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5954 current_event.dwThreadId.
5955 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5956
8ed5b76e
JB
59572019-04-30 Joel Brobecker <brobecker@adacore.com>
5958
5959 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5960 Use current_event.dwThreadId instead of main_thread_id.
5961
2ff0a947
TT
59622019-04-30 Tom Tromey <tromey@adacore.com>
5963
5964 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5965 (create_excep_cond_exprs): Iterate over program spaces.
5966 (ada_exception_catchpoint_cond_string): Examine all minimal
5967 symbols for exception types.
5968
a776957c
TT
59692019-04-30 Tom Tromey <tromey@adacore.com>
5970
5971 PR c++/24470:
5972 * dwarf2read.c (process_structure_scope): Handle case where type
5973 has template parameters but no symbol was created.
5974
bc68014d
AB
59752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5976 Chris January <chris.january@arm.com>
5977
5978 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5979 qualifier.
5980 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5981
f1fdc960
AB
59822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5983
5984 * f-typeprint.c (f_print_type): Update rules for printing
5985 whitespace.
5986 (f_type_print_varspec_suffix): Likewise.
5987
bf7a4de1
AB
59882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5989 Chris January <chris.january@arm.com>
5990
5991 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5992 function arguments.
5993
bbe75b9d
AB
59942019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 * f-lang.c (build_fortran_types): Change name of void type to
5997 lower case.
5998 * f-typeprint.c (f_type_print_base): Print the name of the void
5999 type, rather than a fixed string.
6000 * f-valprint.c (f_decorations): Use lower case void string.
6001
1db455a7
AB
60022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6003 Chris January <chris.january@arm.com>
6004
6005 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6006 types for Fortran.
6007
b6d03bb2
AB
60082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6009 Chris January <chris.january@arm.com>
6010 David Lecomber <david.lecomber@arm.com>
6011
6012 * f-exp.y (BINOP_INTRINSIC): New token.
6013 (exp): New parser rule handling BINOP_INTRINSIC.
6014 (f77_keywords): Add new builtin procedures.
6015 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6016 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6017 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6018 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6019 (print_unop_subexp_f): New function.
6020 (print_binop_subexp_f): New function.
6021 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6022 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6023 (dump_subexp_body_f): Likewise.
6024 (operator_check_f): Likewise.
6025 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6026 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6027
83228e93
AB
60282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6029
6030 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6031 UNOP_KIND.
6032 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6033 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6034 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6035 (operator_length_f): New fuction.
6036 (print_subexp_f): New function.
6037 (op_name_f): New function.
6038 (dump_subexp_body_f): New function.
6039 (operator_check_f): New function.
6040 (exp_descriptor_f): Replace standard expression handling functions
6041 with new functions.
6042 * gdb/fortran-operator.def: New file.
6043 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6044 * gdb/std-operator.def: Remove UNOP_KIND.
6045
6fdcd7cc
AB
60462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6047
6048 * std-operator.def: Remove unbalanced, stray double quote
6049 character.
6050
2e62ab40
AB
60512019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6052 Chris January <chris.january@arm.com>
6053 Daniel Everett <daniel.everett@arm.com>
6054 Nick Forrington <nick.forrington@arm.com>
6055 Richard Bunt <richard.bunt@arm.com>
6056
6057 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6058 of depth when printing anonymous structs or unions.
6059 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6060 Don't print either the top-level value, or the children if the
6061 max-depth is exceeded.
6062 (ppscm_print_children): When printing the key of a map, allow one
6063 extra level of depth.
6064 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6065 print either the top-level value, or the children if the max-depth
6066 is exceeded.
6067 (print_children): When printing the key of a map, allow one extra
6068 level of depth.
6069 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6070 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6071 (user_print_options): Initialise max_depth field.
6072 (val_print_scalar_or_string_type_p): New function.
6073 (val_print): Check to see if the max depth has been reached.
6074 (val_print_check_max_depth): Define new function.
6075 (show_print_max_depth): New function.
6076 (_initialize_valprint): Add 'print max-depth' option.
6077 * valprint.h (struct value_print_options) <max_depth>: New field.
6078 (val_print_check_max_depth): Declare new function.
6079 * NEWS: Document new feature.
6080
4be290b2
AB
60812019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6082
6083 * ada-lang.c (ada_language_defn): Initialise new field.
6084 * c-lang.c (c_is_string_type_p): New function.
6085 (c_language_defn): Initialise new field.
6086 (cplus_language_defn): Initialise new field.
6087 (asm_language_defn): Initialise new field.
6088 (minimal_language_defn): Initialise new field.
6089 * c-lang.h (c_is_string_type_p): Declare new function.
6090 * d-lang.c (d_language_defn): Initialise new field.
6091 * f-lang.c (f_is_string_type_p): New function.
6092 (f_language_defn): Initialise new field.
6093 * go-lang.c (go_is_string_type_p): New function.
6094 (go_language_defn): Initialise new field.
6095 * language.c (default_is_string_type_p): New function.
6096 (unknown_language_defn): Initialise new field.
6097 (auto_language_defn): Initialise new field.
6098 * language.h (struct language_defn) <la_is_string_type_p>: New
6099 member variable.
6100 (default_is_string_type_p): Declare new function.
6101 * m2-lang.c (m2_language_defn): Initialise new field.
6102 * objc-lang.c (objc_language_defn): Initialise new field.
6103 * opencl-lang.c (opencl_language_defn): Initialise new field.
6104 * p-lang.c (pascal_is_string_type_p): New function.
6105 (pascal_language_defn): Initialise new field.
6106 * rust-lang.c (rust_is_string_type_p): New function.
6107 (rust_language_defn): Initialise new field.
6108
721b08c6
AB
61092019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6110
6111 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6112 New field.
6113 * ada-lang.c (ada_language_defn): Initialise new field.
6114 * c-lang.c (c_language_defn): Likewise.
6115 (cplus_language_defn): Likewise.
6116 (asm_language_defn): Likewise.
6117 (minimal_language_defn): Likewise.
6118 * d-lang.c (d_language_defn): Likewise.
6119 * f-lang.c (f_language_defn): Likewise.
6120 * go-lang.c (go_language_defn): Likewise.
6121 * language.c (unknown_language_defn): Likewise.
6122 (auto_language_defn): Likewise.
6123 * m2-lang.c (m2_language_defn): Likewise.
6124 * objc-lang.c (objc_language_defn): Likewise.
6125 * opencl-lang.c (opencl_language_defn): Likewise.
6126 * p-lang.c (pascal_language_defn): Likewise.
6127 * rust-lang.c (rust_language_defn): Likewise.
6128
fc913e53
AB
61292019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6130
6131 * ada-lang.c (ada_is_character_type): Change return type to bool.
6132 (ada_is_string_type): Likewise.
6133 * ada-lang.h (ada_is_character_type): Update declaration
6134 (ada_is_string_type): Likewise.
6135
fa731fa0
PW
61362019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6137
6138 Support style in 'frame|thread apply'
6139
6140 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6141 * record.c (record_start, record_stop): Update callers of
6142 execute_command_to_string with false.
6143 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6144 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6145 methods.
6146 (class string_file): New constructor with term_out parameter.
6147 Override methods term_out and can_emit_style_escape. New member
6148 term_out.
6149 (class stdio_file): Override can_emit_style_escape.
6150 (class tee_file): Override term_out and can_emit_style_escape.
6151 * utils.h (can_emit_style_escape): Remove.
6152 * utils.c (can_emit_style_escape): Likewise.
6153 Update all callers of can_emit_style_escape (SOMESTREAM) to
6154 SOMESTREAM->can_emit_style_escape.
6155 * source-cache.c (source_cache::get_source_lines): Likewise.
6156 * stack.c (frame_apply_command_count): Call execute_command_to_string
6157 passing the term_out characteristic of the current gdb_stdout.
6158 * thread.c (thr_try_catch_cmd): Likewise.
6159 * top.c (execute_command_to_string): pass term_out parameter
6160 to construct the string_file for the command output.
6161 * ui-file.c (term_cli_styling): New function (most code moved
6162 from utils.c can_emit_style_escape).
6163 (string_file::string_file, string_file::can_emit_style_escape,
6164 stdio_file::can_emit_style_escape, tee_file::term_out,
6165 tee_file::can_emit_style_escape): New functions.
6166
136afab8
PW
61672019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6168
6169 * NEWS: Mention the new set|show may-call-functions.
6170 * infcall.c (may_call_functions_p): New variable.
6171 (show_may_call_functions_p): New function.
6172 (call_function_by_hand_dummy): Throws an error if not
6173 may-call-functions.
6174 (_initialize_infcall): Call add_setshow_boolean_cmd for
6175 may-call-functions.
6176
725cbb63
KS
61772019-04-25 Keith Seitz <keiths@redhat.com>
6178
6179 PR c++/24367
6180 * cp-support.c (inspect_type): Don't attempt substitutions
6181 of symbol with the same name.
6182
3d1cbb78
TT
61832019-04-25 Tom Tromey <tromey@adacore.com>
6184
6185 PR gdb/24475:
6186 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6187 static.
6188
94aeb44b
TT
61892019-04-25 Tom Tromey <tromey@adacore.com>
6190
6191 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6192 rvalue reference.
6193 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6194 (gdb_xml_parser::parse): Use std::move.
6195 * python/python-internal.h (gdbpy_convert_exception): Take a const
6196 reference.
6197 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6198 std::move.
6199 * python/py-utils.c (gdbpy_convert_exception): Take a const
6200 reference.
6201 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6202 Use std::move.
6203 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6204 Use std::move.
6205 * mi/mi-main.c (mi_print_exception): Take a const reference.
6206 * main.c (handle_command_errors): Take a const reference.
6207 * linespec.c (parse_linespec): Use std::move.
6208 * infcall.c (run_inferior_call): Use std::move.
6209 (call_function_by_hand_dummy): Use std::move.
6210 * exec.c (try_open_exec_file): Use std::move.
6211 * exceptions.h (exception_print, exception_fprintf)
6212 (exception_print_same): Update.
6213 * exceptions.c (print_exception, exception_print)
6214 (exception_fprintf, exception_print_same): Change parameters to
6215 const reference.
6216 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6217 * common/new-op.c: Use std::move.
6218 * common/common-exceptions.h (struct gdb_exception): Add move
6219 constructor.
6220 (struct gdb_exception_error, struct gdb_exception_quit, struct
6221 gdb_quit_bad_alloc): Change constructor to move constructor.
6222 (throw_exception): Change parameter to rvalue reference.
6223 * common/common-exceptions.c (throw_exception): Take rvalue
6224 reference.
6225 * cli/cli-interp.c (safe_execute_command): Use std::move.
6226 * breakpoint.c (insert_bp_location, location_to_sals): Use
6227 std::move.
6228
680d7fd5
TT
62292019-04-25 Tom Tromey <tromey@adacore.com>
6230
6231 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6232 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6233 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6234 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6235 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6236 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6237 guile/scm-value.c: Use unpack.
6238 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6239 gdbscm_gdb_exception.
6240 (gdbscm_throw_gdb_exception): Likewise.
6241 (struct gdbscm_gdb_exception): New.
6242 (unpack): New function.
6243 (gdbscm_wrap): Use unpack.
6244
c6fdd8b2
TT
62452019-04-25 Tom Tromey <tromey@adacore.com>
6246
6247 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6248 (gdb_rl_callback_handler): Use std::move.
6249 * common/common-exceptions.h (struct gdb_exception): Add move
6250 assignment operator.
6251 (throw_exception_sjlj): Change "exception" to const reference.
6252 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6253 (throw_exception_sjlj): Change "exception" to const reference.
6254
cc06b668
TT
62552019-04-25 Tom Tromey <tromey@adacore.com>
6256
6257 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6258 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6259 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6260 Update.
6261 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6262 Update.
6263 * mi/mi-interp.c (mi_interp::exec): Update.
6264 * linespec.c (parse_linespec): Update.
6265 * infcall.c (run_inferior_call): Update.
6266 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6267 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6268 (gdbscm_lookup_global_symbol): Update.
6269 * guile/scm-param.c (gdbscm_parameter_value): Update.
6270 * guile/scm-frame.c (gdbscm_frame_read_register)
6271 (gdbscm_frame_read_var): Update.
6272 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6273 * exec.c (try_open_exec_file): Update.
6274 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6275 (gdb_rl_callback_handler): Update.
6276 * common/common-exceptions.h (exception_none): Don't declare.
6277 * common/common-exceptions.c (exception_none): Don't define.
6278 (struct catcher) <exception>: Update.
6279 * cli/cli-interp.c (safe_execute_command): Update.
6280 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6281
cf532bd1
AT
62822019-04-25 Ali Tamur <tamur@google.com>
6283
6284 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6285 (read_attribute_value): Likewise.
6286 (dwarf2_read_addr_index): Update comment.
6287 (read_str_index): Add DW_FORM_strx.
6288 (dwarf2_string_attr): Likewise.
6289 (dwarf2_const_value_attr): Likewise.
6290 (dump_die_shallow): Likewise.
6291 (dwarf2_fetch_constant_bytes): Likewise.
6292 (skip_form_bytes): Likewise.
6293 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6294
82433e3e
SDJ
62952019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6296
6297 PR corefiles/11608
6298 PR corefiles/18187
6299 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6300 OFFSET. Verify if current mapping contains an ELF header.
6301 (linux_find_memory_regions_full): Adjust call to
6302 dump_mapping_p.
6303
723adb65
SL
63042019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6305 Kang Li <kanglictf@gmail.com>
6306
6307 PR gdb/21600
6308
6309 * dwarf2-frame.c (read_initial_length): Be consistent about using
6310 unsigned representation of length.
6311 (decode_frame_entry_1): Likewise. Check for wraparound of
6312 end pointer as well as buffer overflow.
6313
596179f7
SDJ
63142019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6315
6316 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6317 "vq".
6318
a59240a4
TT
63192019-04-24 Tom Tromey <tromey@adacore.com>
6320
6321 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6322
f872fdbb
AB
63232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6324
6325 * s12z-tdep.c (s12z_unwind_pc): Delete.
6326 (s12z_unwind_sp): Delete.
6327 (s12z_gdbarch_init): Don't register deleted functions with
6328 gdbarch.
6329
b614e6f3
AB
63302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6331
6332 * rl78-tdep.c (rl78_unwind_sp): Delete.
6333 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6334
14faed38
AB
63352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6336
6337 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6338 (xstormy16_unwind_pc): Delete.
6339 (xstormy16_dummy_id): Delete.
6340 (xstormy16_gdbarch_init): Don't register deleted functions with
6341 gdbarch.
6342
541aad8a
AB
63432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6344
6345 * vax-tdep.c (vax_unwind_pc): Delete.
6346 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6347
29222070
AB
63482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6349
6350 * v850-tdep.c (v850_unwind_sp): Delete.
6351 (v850_unwind_pc): Delete.
6352 (v850_dummy_id): Delete.
6353 (v850_gdbarch_init): Don't register deleted functions with
6354 gdbarch.
6355
0f534d76
AB
63562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6357
6358 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6359 (tilegx_unwind_pc): Delete.
6360 (tilegx_unwind_dummy_id): Delete.
6361 (tilegx_gdbarch_init): Don't register deleted functions with
6362 gdbarch.
6363
1ba7b7f9
AB
63642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6365
6366 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6367 (tic6x_dummy_id): Delete.
6368 (tic6x_gdbarch_init): Don't register deleted functions with
6369 gdbarch.
6370
d31f262c
AB
63712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6372
6373 * sparc-tdep.c (sparc_unwind_pc): Delete.
6374 (sparc32_gdbarch_init): Don't register deleted function with
6375 gdbarch.
6376
6d14d64d
AB
63772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * sh-tdep.c (sh_unwind_sp): Delete.
6380 (sh_unwind_pc): Delete.
6381 (sh_dummy_id): Delete.
6382 (sh_gdbarch_init): Don't register deleted functions with
6383 gdbarch.
6384
a40dde9d
AB
63852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 * score-tdep.c (score_unwind_sp): Delete.
6388 (score_unwind_pc): Delete.
6389 (score_dummy_id): Delete.
6390 (score_gdbarch_init): Don't register deleted functions with
6391 gdbarch.
6392
47c47d69
AB
63932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6394
6395 * rx-tdep.c (rx_unwind_pc): Delete.
6396 (rx_unwind_sp): Delete.
6397 (rx_dummy_id): Delete.
6398 (rx_gdbarch_init): Don't register deleted functions with
6399 gdbarch. Update comment.
6400
833a4480
AB
64012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6402
6403 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6404 (rs6000_dummy_id): Delete.
6405 (rs6000_gdbarch_init): Don't register deleted functions with
6406 gdbarch.
6407
3f2cef49
AB
64082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6409
6410 * or1k-tdep.c (or1k_dummy_id): Delete.
6411 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6412
96acf884
AB
64132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6414
6415 * nios2-tdep.c (nios2_dummy_id): Delete.
6416 (nios2_unwind_sp): Delete.
6417 (nios2_gdbarch_init): Don't register deleted functions with
6418 gdbarch.
6419
ca0ab0aa
AB
64202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6421
6422 * nds32-tdep.c (nds32_dummy_id): Delete.
6423 (nds32_unwind_pc): Delete.
6424 (nds32_unwind_sp): Delete.
6425 (nds32_gdbarch_init): Don't register deleted functions with
6426 gdbarch.
6427
c8259044
AB
64282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6429
6430 * msp430-tdep.c (msp430_unwind_pc): Delete.
6431 (msp430_unwind_sp): Delete.
6432 (msp430_dummy_id): Delete.
6433 (msp430_gdbarch_init): Don't register deleted functions with
6434 gdbarch.
6435
27f113c8
AB
64362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * moxie-tdep.c (moxie_unwind_sp): Delete.
6439 (moxie_unwind_pc): Delete.
6440 (moxie_dummy_id): Delete.
6441 (moxie_gdbarch_init): Don't register deleted functions with
6442 gdbarch.
6443
aee6c3cd
AB
64442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6445
6446 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6447 (mn10300_unwind_pc): Delete.
6448 (mn10300_unwind_sp): Delete.
6449 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6450 mn10300_unwind_sp.
6451 (mn10300_frame_unwind_init): Don't register deleted functions with
6452 gdbarch.
6453
8e2b5aea
AB
64542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6455
6456 * mep-tdep.c (mep_unwind_pc): Delete.
6457 (mep_unwind_sp): Delete.
6458 (mep_dummy_id): Delete.
6459 (mep_gdbarch_init): Don't register deleted functions with
6460 gdbarch.
6461
43cf3ede
AB
64622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6463
6464 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6465 (m68hc11_unwind_sp): Delete.
6466 (m68hc11_gdbarch_init): Don't register deleted functions with
6467 gdbarch.
6468
5e79b7bb
AB
64692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6470
6471 * m32r-tdep.c (m32r_unwind_sp): Delete.
6472 (m32r_unwind_pc): Delete.
6473 (m32r_dummy_id): Delete.
6474 (m32r_gdbarch_init): Don't register deleted functions with
6475 gdbarch.
6476
89b268d8
AB
64772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6478
6479 * m32c-tdep.c (m32c_unwind_pc): Delete.
6480 (m32c_unwind_sp): Delete.
6481 (m32c_dummy_id): Delete.
6482 (m32c_gdbarch_init): Don't register deleted functions with
6483 gdbarch.
6484
946c28d2
AB
64852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6486
6487 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6488 (lm32_unwind_pc): Delete.
6489 (lm32_dummy_id): Delete.
6490 (lm32_gdbarch_init): Don't register deleted functions with
6491 gdbarch.
6492
bf12844a
AB
64932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6494
6495 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6496 (iq2000_unwind_pc): Delete.
6497 (iq2000_dummy_id): Delete.
6498 (iq2000_gdbarch_init): Don't register deleted functions with
6499 gdbarch.
6500
ecbc06d2
AB
65012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6502
6503 * nds32-tdep.c (nds32_type_align): Delete.
6504 (nds32_push_dummy_call): Use type_align instead.
6505
030197b4
AB
65062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6507
6508 * arm-tdep.c (arm_type_align): Only handle vector override case.
6509 (arm_push_dummy_call): Use type_align.
6510 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6511
b907456c
AB
65122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6513
6514 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6515 case.
6516 (pass_on_stack): Use type_align.
6517 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6518 function.
6519
9e97ba43
TT
65202019-04-23 Tom Tromey <tromey@adacore.com>
6521
6522 * dwarf2read.c (line_header::file_name_at): Remove unused
6523 overload.
6524
6892f601
TV
65252019-04-23 Tom de Vries <tdevries@suse.de>
6526
6527 PR gdb/24438
6528 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6529 invocation.
6530
336d760d
AT
6531
65322019-03-27 Ali Tamur <tamur@google.com>
6533
6534 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6535 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6536 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6537 (dwarf_expr_context::get_addr_index): Likewise
6538 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6539 (symbol_needs_eval_context::get_addr_index): Likewise
6540 (disassemble_dwarf_expression): Add DW_OP_addrx
6541 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6542 (read_cutu_die_from_dwo): Update comment
6543 (skip_one_die): Add DW_FORM_addrx
6544 (read_attribute_value): Likewise
6545 (var_decode_location): Add DW_OP_addrx
6546 (dwarf2_const_value_attr): Add DW_FORM_addrx
6547 (dump_die_shallow): Likewise
6548 (dwarf2_fetch_constant_bytes): Likewise
6549 (decode_locdesc): Add DW_OP_addrx
6550 (skip_form_bytes): Add DW_FORM_addrx
6551
ad9d13f8
AT
65522019-04-22 Ali Tamur <tamur@google.com>
6553
6554 * MAINTAINERS (Write After Approval): Add self.
6555
d70cc3ba
SM
65562019-04-22 Simon Marchi <simon.marchi@efficios.com>
6557
6558 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6559 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6560 (open_symbol_file_object): Likewise.
6561 (svr4_default_sos): Add info parameter.
6562 (svr4_read_so_list): Likewise.
6563 (svr4_current_sos_direct): Adjust functions calls to pass down
6564 info.
6565 (svr4_current_sos_1): Add info parameter.
6566 (svr4_current_sos): Call get_svr4_info, pass info down to
6567 svr4_current_sos_1.
6568 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6569 get_svr4_info.
6570 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6571 get_svr4_info.
6572 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6573 to get_svr4_info.
6574 (probes_table_remove_objfile_probes): Likewise.
6575 (register_solib_event_probe): Add info parameter.
6576 (solist_update_incremental): Pass info parameter down to
6577 svr4_read_so_list.
6578 (disable_probes_interface): Add info parameter.
6579 (svr4_handle_solib_event): Pass current_program_space to
6580 get_svr4_info. Adjust disable_probes_interface cleanup.
6581 (svr4_create_probe_breakpoints): Add info parameter, pass it
6582 down to register_solib_event_probe.
6583 (svr4_create_solib_event_breakpoints): Add info parameter,
6584 pass it down to svr4_create_probe_breakpoints.
6585 (enable_break): Pass info down to
6586 svr4_create_solib_event_breakpoints.
6587 (svr4_solib_create_inferior_hook): Pass current_program_space to
6588 get_svr4_info.
6589 (svr4_clear_solib): Likewise.
6590
7905fc35
PA
65912019-04-22 Pedro Alves <palves@redhat.com>
6592
6593 * solib-svr4.c (svr4_free_objfile_observer): New.
6594 (probe_and_action::objfile): New field.
6595 (probes_table_htab_remove_objfile_probes)
6596 (probes_table_remove_objfile_probes): New functions.
6597 (register_solib_event_probe): Add 'objfile' parameter. Store it
6598 in the new probe_and_action. Don't store the probe in 'lookup'.
6599 (svr4_create_probe_breakpoints): Pass objfile to
6600 register_solib_event_probe.
6601 (_initialize_svr4_solib): Register a free_objfile observer.
6602
fb881986
TT
66032019-04-19 Tom Tromey <tom@tromey.com>
6604
6605 * common/queue.h: Remove.
6606
8732db6c
TT
66072019-04-19 Tom Tromey <tom@tromey.com>
6608
6609 * event-loop.c: Don't include "common/queue.h".
6610
97dfbadd
TT
66112019-04-19 Tom Tromey <tom@tromey.com>
6612
6613 * remote.c (remote_target): Use delete.
6614 * remote-notif.h: Include <list>, not "common/queue.h".
6615 (notif_client_p): Remove typedef.
6616 (remote_notif_state): Add constructor, destructor, initializer.
6617 <notif_queue>: Now a std::list.
6618 (remote_notif_state_xfree): Don't declare.
6619 * remote-notif.c (remote_notif_process, handle_notification)
6620 (remote_notif_state_allocate): Update.
6621 (~remote_notif_state): Rename from remote_notif_state_xfree.
6622
cf250e36
TT
66232019-04-19 Tom Tromey <tom@tromey.com>
6624
6625 * symfile.c (reread_symbols): Update.
6626 * objfiles.c (objfile_register_static_link)
6627 (objfile_lookup_static_link): Update
6628 (~objfile) Don't delete static_links.
6629 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6630
61f4b350
TT
66312019-04-19 Tom Tromey <tom@tromey.com>
6632
6633 * type-stack.h (struct type_stack) <insert>: Constify string.
6634 * type-stack.c (type_stack::insert): Constify string.
6635 * gdbtypes.h (lookup_template_type): Update.
6636 (address_space_name_to_int): Update.
6637 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6638 const.
6639 (lookup_template_type): Make name const.
6640 * c-exp.y: Update rules.
6641 (lex_one_token, classify_name, classify_inner_name)
6642 (c_print_token): Update.
6643 * p-exp.y: Update rules.
6644 (yylex): Update.
6645 * f-exp.y: Update rules.
6646 (yylex): Update.
6647 * d-exp.y: Update rules.
6648 (lex_one_token, classify_name, classify_inner_name): Update.
6649 * parse.c (write_dollar_variable, copy_name): Return std::string.
6650 * parser-defs.h (copy_name): Change return type.
6651 * m2-exp.y: Update rules.
6652 (yylex): Update.
6653 * go-exp.y (lex_one_token): Update.
6654 Update rules.
6655 (classify_unsafe_function, classify_packaged_name)
6656 (classify_name, yylex): Update.
6657
189b8c2e
ST
66582019-04-19 Sergei Trofimovich <siarheit@google.com>
6659
6660 * configure.ac: add --enable-source-highlight switch.
6661 * configure: Regenerate.
6662 * top.c (print_gdb_version): plumb --enable-source-highlight
6663 status to "show configuration".
6664
8ecb59f8
TT
66652019-04-19 Tom Tromey <tromey@adacore.com>
6666
6667 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6668 Check ADA_TYPE_P.
6669 (empty_record, ada_template_to_fixed_record_type_1)
6670 (template_to_static_fixed_type)
6671 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6672 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6673 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6674 macros.
6675
62160ec9
TT
66762019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6677
6678 PR symtab/24423:
6679 * source.c (print_source_lines_base): Advance "iter" when a
6680 control character is seen.
6681
f2ae8bc8
PW
66822019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6683
6684 * inferior.h (struct infcall_suspend_state_deleter):
6685 Catch exception in destructor to avoid crash.
6686
d563b953
PW
66872019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6688
6689 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6690 close to the add_com "shell".
6691
dc34c897
TT
66922019-04-18 Tom Tromey <tromey@adacore.com>
6693
6694 * process-stratum-target.h (class process_stratum_target)
6695 <stratum>: Add "final".
6696
a12e5744
TT
66972019-04-17 Tom Tromey <tromey@adacore.com>
6698
6699 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6700 against nullptr before use.
6701
a7e559cc
AH
67022019-04-17 Alan Hayward <alan.hayward@arm.com>
6703
6704 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6705
c01660c6
AB
67062019-04-17 Jim Wilson <jimw@sifive.com>
6707 Andrew Burgess <andrew.burgess@embecosm.com>
6708
6709 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6710 code read might fail, assume 4-byte breakpoint in that case.
6711
4aa866af
LS
67122019-04-15 Leszek Swirski <leszeks@google.com>
6713
6714 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6715 rather than a hand-rolled POD check when checking for forced MEMORY
6716 classification.
6717
48574d91
AH
67182019-04-15 Alan Hayward <alan.hayward@arm.com>
6719
6720 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6721 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6722 function.
6723 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6724 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6725 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6726 declaration.
6727
4da037ef
AH
67282019-04-15 Alan Hayward <alan.hayward@arm.com>
6729
6730 * aarch64-linux-nat.c
6731 (aarch64_linux_nat_target::thread_architecture): Add override.
6732 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6733 each VQ.
6734
ccb8d7e8
AH
67352019-04-15 Alan Hayward <alan.hayward@arm.com>
6736
6737 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6738
35add35e
AB
67392019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6740
6741 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6742 target types of size 96-bits, add some additional comments, and
6743 check that the builtin type we found was the correct size.
6744
51196bbc
EZ
67452019-04-12 Eli Zaretskii <eliz@gnu.org>
6746
6747 * utils.c (prompt_for_continue): Don't restore the styling at the
6748 end, as applied_style has the wrong value. This fixes styling in
6749 long lists of file names that are interrupted by the "Continue?"
6750 prompt.
6751
62253a61
AB
67522019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6753
6754 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6755 * c-lang.c (c_language_defn): Likewise.
6756 (cplus_language_defn): Likewise.
6757 (asm_language_defn): Likewise.
6758 (minimal_language_defn): Likewise.
6759 * d-lang.c (d_language_defn): Likewise.
6760 * f-lang.c (f_language_defn): Likewise.
6761 * go-lang.c (go_language_defn): Likewise.
6762 * language.c (unknown_language_defn): Likewise.
6763 (auto_language_defn): Likewise.
6764 * language.h (struct language_defn): Remove la_magic field.
6765 (LANG_MAGIC): Delete.
6766 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6767 * objc-lang.c (objc_language_defn): Likewise.
6768 * opencl-lang.c (opencl_language_defn): Likewise.
6769 * p-lang.c (pascal_language_defn): Likewise.
6770 * rust-lang.c (rust_language_defn): Likewise.
6771
a9158a86
AB
67722019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * riscv-tdep.c (riscv_type_align): New function.
6775 (riscv_type_alignment): Delete.
6776 (riscv_arg_location): Use 'type_align'.
6777 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6778
41077b66
AB
67792019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6780
6781 * gdbtypes.c (type_align): A struct with no non-static fields also
6782 has alignment of 1.
6783
9f0272f8
AB
67842019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6785
6786 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6787 component to 0.
6788 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6789 member.
6790 (riscv_struct_info::analyse): New implementation using new
6791 analyse_inner member function.
6792 (riscv_struct_info::field_offset): New member function.
6793 (riscv_struct_info::m_offsets): New member variable.
6794 (riscv_struct_info::analyse_inner): New private member function,
6795 takes the old implementation of riscv_struct_info::analyse but
6796 extended to track field offsets.
6797 (riscv_call_arg_struct): Update the struct folding special cases
6798 to handle cases where empty C++ structs, which are non-zero
6799 length, are found.
6800 (riscv_arg_location): Initialise the length of each location, a
6801 non-zero length now indicates the location is in use.
6802 (riscv_push_dummy_call): Allow for the first location having a
6803 non-zero offset when setting up arguments.
6804 (riscv_return_value): Likewise, but for return values.
6805
02cf60c7
TT
68062019-04-11 Tom Tromey <tromey@adacore.com>
6807
6808 * utils.c (internal_vproblem): Make "msg" const.
6809
68811f8f
AH
68102019-04-11 Alan Hayward <alan.hayward@arm.com>
6811
6812 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6813 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6814 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6815 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6816
3f52fdbc
KB
68172019-04-10 Kevin Buettner <kevinb@redhat.com>
6818
6819 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6820 function.
6821 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6822 of amd64_collect_native_gregset.
6823 (amd64_linux_nat_target::store_registers): Likewise.
6824
e9ad22ee
TT
68252019-04-10 Tom Tromey <tom@tromey.com>
6826
6827 * symtab.c (lookup_global_symbol_from_objfile)
6828 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6829 * objfiles.h (class separate_debug_iterator): New.
6830 (class separate_debug_range): New.
6831 (struct objfile) <separate_debug_objfiles>: New method.
6832 (objfile_separate_debug_iterate): Don't declare.
6833 * objfiles.c (separate_debug_iterator::operator++): Rename from
6834 objfile_separate_debug_iterate.
6835 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6836 iterator.
6837 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6838 iterator.
6839
ee371134
TT
68402019-04-10 Tom Tromey <tom@tromey.com>
6841
6842 * symfile.c (reread_symbols): Remove old comment.
6843 * objfiles.c (free_all_objfiles): Fix a typo.
6844
bf227d61
TT
68452019-04-10 Tom Tromey <tom@tromey.com>
6846
6847 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6848 * minsyms.c (lookup_minimal_symbol): Use foreach.
6849 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6850 (lookup_minimal_symbol_solib_trampoline): Likewise.
6851 * symfile.c (reread_symbols): Use foreach.
6852
8dc433a0
TT
68532019-04-09 Ivan Begert <ivanbegert@gmail.com>
6854 Tom Tromey <tromey@adacore.com>
6855
6856 PR rust/24414:
6857 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6858 (rust_lex_int_test): Change "value" to be LONGEST.
6859 (rust_lex_tests): Add test for long integer literal.
6860
9ab8741a
TT
68612019-04-09 Tom Tromey <tromey@adacore.com>
6862
6863 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6864 to bool.
6865 (extended_remote_target::attach): Update.
6866 (remote_target::remote_notice_new_inferior): Update.
6867 (remote_target::add_current_inferior_and_thread): Update.
6868 * inferior.c (exit_inferior_1): Use "false".
6869 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6870
e242fd12
SM
68712019-04-09 Simon Marchi <simon.marchi@efficios.com>
6872
9ca1957f 6873 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
6874 the "start" command.
6875
2b0c8b01
KB
68762019-04-08 Kevin Buettner <kevinb@redhat.com>
6877
6878 * python/py-inferior.c (infpy_thread_from_thread_handle):
6879 Adjust comments to reflect renaming of thread_from_thread_handle
6880 to thread_from_handle. Adjust keywords. Fix type error message.
6881 (inferior_object_methods): Add thread_from_handle. Retain
6882 thread_from_thread_handle, but mark it as deprecated.
6883
50a82723
KB
68842019-04-08 Kevin Buettner <kevinb@redhat.com>
6885
6886 * gdbthread.h (find_thread_by_handle): Revise declaration.
6887 * thread.c (find_thread_by_handle): Likewise. Adjust
6888 implementation too.
6889 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6890 support for buffer objects as handles.
6891
cf63b016
KB
68922019-04-08 Kevin Buettner <kevinb@redhat.com>
6893
6894 * python/py-infthread.c (thpy_thread_handle): New function.
6895 (thread_object_methods): Register thpy_thread_handle.
6896
3d6c6204
KB
68972019-04-08 Kevin Buettner <kevinb@redhat.com>
6898
6899 * gdbthread.h (thread_to_thread_handle): Declare.
6900 * thread.c (gdbtypes.h): Include.
6901 (thread_to_thread_handle): New function.
6902
6903 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6904 (target_thread_info_to_thread_handle): Declare.
6905 * target.c (target_thread_info_to_thread_handle): New function.
6906 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6907 * target-delegates.c: Regenerate.
6908
6909 * linux-thread-db.c (class thread_db_target): Add method
6910 thread_info_to_thread_handle.
6911 (thread_db_target::thread_info_to_thread_handle): Define.
6912 * remote.c (class remote_target): Add new method
6913 thread_info_to_thread_handle.
6914 (remote_target::thread_info_to_thread_handle): Define.
6915
56be6ea8
PA
69162019-04-08 Pedro Alves <palves@redhat.com>
6917
6918 * common/common-exceptions.c (throw_exception): Don't create
6919 named object to throw; throw directly.
6920 (throw_it): Likewise. Don't initialize gdb_exception::message
6921 here, with new; pass FMT and AP to the ctor instead.
6922 * common/common-exceptions.h: Include <string>.
6923 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6924 const char *, va_list)): New ctor. Use std::make_shared.
6925 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6926 errors)): Delete.
6927 (gdb_exception_error::gdb_exception_error(enum errors, const char
6928 *, va_list)): New.
6929 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6930 Add assertion.
6931 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6932 errors)): Delete.
6933 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6934 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6935 Add assertion.
6936
eedc3f4f
TT
69372019-04-08 Tom Tromey <tom@tromey.com>
6938
6939 * valops.c (value_rtti_indirect_type): Replace throw_exception
6940 with throw.
6941 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6942 with throw.
6943 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6944 throw.
6945 * target.c (target_translate_tls_address): Replace throw_exception
6946 with throw.
6947 * stack.c (frame_apply_command_count): Replace throw_exception
6948 with throw.
6949 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6950 throw.
6951 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6952 with throw.
6953 * rs6000-tdep.c (rs6000_frame_cache)
6954 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6955 * remote.c: Replace throw_exception with throw.
6956 * record-full.c (record_full_message, record_full_wait_1)
6957 (record_full_restore): Replace throw_exception with throw.
6958 * record-btrace.c:
6959 (get_thread_current_frame_id, record_btrace_start_replaying)
6960 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6961 (cmd_record_btrace_start): Replace throw_exception with throw.
6962 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6963 throw.
6964 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6965 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6966 * linespec.c:
6967 (find_linespec_symbols): Replace throw_exception with throw.
6968 * infrun.c (displaced_step_prepare, resume): Replace
6969 throw_exception with throw.
6970 * infcmd.c (post_create_inferior): Replace throw_exception with
6971 throw.
6972 * inf-loop.c (inferior_event_handler): Replace throw_exception
6973 with throw.
6974 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6975 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6976 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6977 (get_prev_frame_always, get_frame_pc_if_available)
6978 (get_frame_address_in_block_if_available, get_frame_language):
6979 Replace throw_exception with throw.
6980 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6981 throw_exception with throw.
6982 * eval.c (fetch_subexp_value, evaluate_var_value)
6983 (evaluate_funcall, evaluate_subexp_standard): Replace
6984 throw_exception with throw.
6985 * dwarf2loc.c (call_site_find_chain)
6986 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6987 Replace throw_exception with throw.
6988 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6989 with throw.
6990 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6991 throw.
6992 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6993 * completer.c (complete_line_internal): Replace throw_exception
6994 with throw.
6995 * compile/compile-object-run.c (compile_object_run): Replace
6996 throw_exception with throw.
6997 * cli/cli-script.c (process_next_line): Replace throw_exception
6998 with throw.
6999 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7000 (btrace_enable, btrace_maint_update_pt_packets): Replace
7001 throw_exception with throw.
7002 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7003 throw_exception with throw.
7004 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7005 throw_exception with throw.
7006 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7007 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7008 * aarch64-tdep.c (aarch64_make_prologue_cache)
7009 (aarch64_make_stub_cache): Replace throw_exception with throw.
7010
26003a20
TT
70112019-04-08 Tom Tromey <tom@tromey.com>
7012
7013 * common/common-exceptions.c (throw_exception): Rename from
7014 throw_exception_cxx. Remove old copy. Make argument const.
7015 (throw_it): Create and throw exception objects directly.
7016 * common/common-exceptions.h (throw_exception): Make argument
7017 const.
7018 (struct gdb_exception_error): Add constructor.
7019 (struct gdb_exception_quit): Add constructor.
7020
d272eb37
TT
70212019-04-08 Tom Tromey <tom@tromey.com>
7022
7023 * common/common-exceptions.h (exception_rethrow): Don't declare.
7024 (TRY_SJLJ): Update comment.
7025 (TRY, CATCH, END_CATCH): Remove.
7026 * common/common-exceptions.c (exception_rethrow): Remove.
7027
230d2906
TT
70282019-04-08 Tom Tromey <tom@tromey.com>
7029
7030 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7031 Remove.
7032 (gdb_exception_error): Rename from
7033 gdb_exception_RETURN_MASK_ERROR.
7034 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7035 (gdb_quit_bad_alloc): Update.
7036 * aarch64-tdep.c: Update.
7037 * ada-lang.c: Update.
7038 * ada-typeprint.c: Update.
7039 * ada-valprint.c: Update.
7040 * amd64-tdep.c: Update.
7041 * arch-utils.c: Update.
7042 * break-catch-throw.c: Update.
7043 * breakpoint.c: Update.
7044 * btrace.c: Update.
7045 * c-varobj.c: Update.
7046 * cli/cli-cmds.c: Update.
7047 * cli/cli-interp.c: Update.
7048 * cli/cli-script.c: Update.
7049 * common/common-exceptions.c: Update.
7050 * common/new-op.c: Update.
7051 * common/selftest.c: Update.
7052 * compile/compile-c-symbols.c: Update.
7053 * compile/compile-cplus-symbols.c: Update.
7054 * compile/compile-object-load.c: Update.
7055 * compile/compile-object-run.c: Update.
7056 * completer.c: Update.
7057 * corelow.c: Update.
7058 * cp-abi.c: Update.
7059 * cp-support.c: Update.
7060 * cp-valprint.c: Update.
7061 * darwin-nat.c: Update.
7062 * disasm-selftests.c: Update.
7063 * dtrace-probe.c: Update.
7064 * dwarf-index-cache.c: Update.
7065 * dwarf-index-write.c: Update.
7066 * dwarf2-frame-tailcall.c: Update.
7067 * dwarf2-frame.c: Update.
7068 * dwarf2loc.c: Update.
7069 * dwarf2read.c: Update.
7070 * eval.c: Update.
7071 * event-loop.c: Update.
7072 * event-top.c: Update.
7073 * exec.c: Update.
7074 * f-valprint.c: Update.
7075 * fbsd-tdep.c: Update.
7076 * frame-unwind.c: Update.
7077 * frame.c: Update.
7078 * gdbtypes.c: Update.
7079 * gnu-v3-abi.c: Update.
7080 * guile/guile-internal.h: Update.
7081 * guile/scm-block.c: Update.
7082 * guile/scm-breakpoint.c: Update.
7083 * guile/scm-cmd.c: Update.
7084 * guile/scm-disasm.c: Update.
7085 * guile/scm-frame.c: Update.
7086 * guile/scm-lazy-string.c: Update.
7087 * guile/scm-math.c: Update.
7088 * guile/scm-param.c: Update.
7089 * guile/scm-ports.c: Update.
7090 * guile/scm-pretty-print.c: Update.
7091 * guile/scm-symbol.c: Update.
7092 * guile/scm-symtab.c: Update.
7093 * guile/scm-type.c: Update.
7094 * guile/scm-value.c: Update.
7095 * i386-linux-tdep.c: Update.
7096 * i386-tdep.c: Update.
7097 * inf-loop.c: Update.
7098 * infcall.c: Update.
7099 * infcmd.c: Update.
7100 * infrun.c: Update.
7101 * jit.c: Update.
7102 * language.c: Update.
7103 * linespec.c: Update.
7104 * linux-fork.c: Update.
7105 * linux-nat.c: Update.
7106 * linux-tdep.c: Update.
7107 * linux-thread-db.c: Update.
7108 * main.c: Update.
7109 * mi/mi-cmd-break.c: Update.
7110 * mi/mi-cmd-stack.c: Update.
7111 * mi/mi-interp.c: Update.
7112 * mi/mi-main.c: Update.
7113 * objc-lang.c: Update.
7114 * p-valprint.c: Update.
7115 * parse.c: Update.
7116 * ppc-linux-tdep.c: Update.
7117 * printcmd.c: Update.
7118 * python/py-arch.c: Update.
7119 * python/py-breakpoint.c: Update.
7120 * python/py-cmd.c: Update.
7121 * python/py-finishbreakpoint.c: Update.
7122 * python/py-frame.c: Update.
7123 * python/py-framefilter.c: Update.
7124 * python/py-gdb-readline.c: Update.
7125 * python/py-inferior.c: Update.
7126 * python/py-infthread.c: Update.
7127 * python/py-lazy-string.c: Update.
7128 * python/py-linetable.c: Update.
7129 * python/py-objfile.c: Update.
7130 * python/py-param.c: Update.
7131 * python/py-prettyprint.c: Update.
7132 * python/py-progspace.c: Update.
7133 * python/py-record-btrace.c: Update.
7134 * python/py-record.c: Update.
7135 * python/py-symbol.c: Update.
7136 * python/py-type.c: Update.
7137 * python/py-unwind.c: Update.
7138 * python/py-utils.c: Update.
7139 * python/py-value.c: Update.
7140 * python/python.c: Update.
7141 * record-btrace.c: Update.
7142 * record-full.c: Update.
7143 * remote-fileio.c: Update.
7144 * remote.c: Update.
7145 * riscv-tdep.c: Update.
7146 * rs6000-aix-tdep.c: Update.
7147 * rs6000-tdep.c: Update.
7148 * rust-exp.y: Update.
7149 * rust-lang.c: Update.
7150 * s390-tdep.c: Update.
7151 * selftest-arch.c: Update.
7152 * solib-dsbt.c: Update.
7153 * solib-frv.c: Update.
7154 * solib-spu.c: Update.
7155 * solib-svr4.c: Update.
7156 * solib.c: Update.
7157 * sparc64-linux-tdep.c: Update.
7158 * stack.c: Update.
7159 * symfile-mem.c: Update.
7160 * symmisc.c: Update.
7161 * target.c: Update.
7162 * thread.c: Update.
7163 * top.c: Update.
7164 * tracefile-tfile.c: Update.
7165 * tui/tui.c: Update.
7166 * typeprint.c: Update.
7167 * unittests/cli-utils-selftests.c: Update.
7168 * unittests/parse-connection-spec-selftests.c: Update.
7169 * valops.c: Update.
7170 * valprint.c: Update.
7171 * value.c: Update.
7172 * varobj.c: Update.
7173 * windows-nat.c: Update.
7174 * x86-linux-nat.c: Update.
7175 * xml-support.c: Update.
7176
a70b8144
TT
71772019-04-08 Tom Tromey <tom@tromey.com>
7178
7179 * xml-support.c: Use C++ exception handling.
7180 * x86-linux-nat.c: Use C++ exception handling.
7181 * windows-nat.c: Use C++ exception handling.
7182 * varobj.c: Use C++ exception handling.
7183 * value.c: Use C++ exception handling.
7184 * valprint.c: Use C++ exception handling.
7185 * valops.c: Use C++ exception handling.
7186 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7187 handling.
7188 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7189 * typeprint.c: Use C++ exception handling.
7190 * tui/tui.c: Use C++ exception handling.
7191 * tracefile-tfile.c: Use C++ exception handling.
7192 * top.c: Use C++ exception handling.
7193 * thread.c: Use C++ exception handling.
7194 * target.c: Use C++ exception handling.
7195 * symmisc.c: Use C++ exception handling.
7196 * symfile-mem.c: Use C++ exception handling.
7197 * stack.c: Use C++ exception handling.
7198 * sparc64-linux-tdep.c: Use C++ exception handling.
7199 * solib.c: Use C++ exception handling.
7200 * solib-svr4.c: Use C++ exception handling.
7201 * solib-spu.c: Use C++ exception handling.
7202 * solib-frv.c: Use C++ exception handling.
7203 * solib-dsbt.c: Use C++ exception handling.
7204 * selftest-arch.c: Use C++ exception handling.
7205 * s390-tdep.c: Use C++ exception handling.
7206 * rust-lang.c: Use C++ exception handling.
7207 * rust-exp.y: Use C++ exception handling.
7208 * rs6000-tdep.c: Use C++ exception handling.
7209 * rs6000-aix-tdep.c: Use C++ exception handling.
7210 * riscv-tdep.c: Use C++ exception handling.
7211 * remote.c: Use C++ exception handling.
7212 * remote-fileio.c: Use C++ exception handling.
7213 * record-full.c: Use C++ exception handling.
7214 * record-btrace.c: Use C++ exception handling.
7215 * python/python.c: Use C++ exception handling.
7216 * python/py-value.c: Use C++ exception handling.
7217 * python/py-utils.c: Use C++ exception handling.
7218 * python/py-unwind.c: Use C++ exception handling.
7219 * python/py-type.c: Use C++ exception handling.
7220 * python/py-symbol.c: Use C++ exception handling.
7221 * python/py-record.c: Use C++ exception handling.
7222 * python/py-record-btrace.c: Use C++ exception handling.
7223 * python/py-progspace.c: Use C++ exception handling.
7224 * python/py-prettyprint.c: Use C++ exception handling.
7225 * python/py-param.c: Use C++ exception handling.
7226 * python/py-objfile.c: Use C++ exception handling.
7227 * python/py-linetable.c: Use C++ exception handling.
7228 * python/py-lazy-string.c: Use C++ exception handling.
7229 * python/py-infthread.c: Use C++ exception handling.
7230 * python/py-inferior.c: Use C++ exception handling.
7231 * python/py-gdb-readline.c: Use C++ exception handling.
7232 * python/py-framefilter.c: Use C++ exception handling.
7233 * python/py-frame.c: Use C++ exception handling.
7234 * python/py-finishbreakpoint.c: Use C++ exception handling.
7235 * python/py-cmd.c: Use C++ exception handling.
7236 * python/py-breakpoint.c: Use C++ exception handling.
7237 * python/py-arch.c: Use C++ exception handling.
7238 * printcmd.c: Use C++ exception handling.
7239 * ppc-linux-tdep.c: Use C++ exception handling.
7240 * parse.c: Use C++ exception handling.
7241 * p-valprint.c: Use C++ exception handling.
7242 * objc-lang.c: Use C++ exception handling.
7243 * mi/mi-main.c: Use C++ exception handling.
7244 * mi/mi-interp.c: Use C++ exception handling.
7245 * mi/mi-cmd-stack.c: Use C++ exception handling.
7246 * mi/mi-cmd-break.c: Use C++ exception handling.
7247 * main.c: Use C++ exception handling.
7248 * linux-thread-db.c: Use C++ exception handling.
7249 * linux-tdep.c: Use C++ exception handling.
7250 * linux-nat.c: Use C++ exception handling.
7251 * linux-fork.c: Use C++ exception handling.
7252 * linespec.c: Use C++ exception handling.
7253 * language.c: Use C++ exception handling.
7254 * jit.c: Use C++ exception handling.
7255 * infrun.c: Use C++ exception handling.
7256 * infcmd.c: Use C++ exception handling.
7257 * infcall.c: Use C++ exception handling.
7258 * inf-loop.c: Use C++ exception handling.
7259 * i386-tdep.c: Use C++ exception handling.
7260 * i386-linux-tdep.c: Use C++ exception handling.
7261 * guile/scm-value.c: Use C++ exception handling.
7262 * guile/scm-type.c: Use C++ exception handling.
7263 * guile/scm-symtab.c: Use C++ exception handling.
7264 * guile/scm-symbol.c: Use C++ exception handling.
7265 * guile/scm-pretty-print.c: Use C++ exception handling.
7266 * guile/scm-ports.c: Use C++ exception handling.
7267 * guile/scm-param.c: Use C++ exception handling.
7268 * guile/scm-math.c: Use C++ exception handling.
7269 * guile/scm-lazy-string.c: Use C++ exception handling.
7270 * guile/scm-frame.c: Use C++ exception handling.
7271 * guile/scm-disasm.c: Use C++ exception handling.
7272 * guile/scm-cmd.c: Use C++ exception handling.
7273 * guile/scm-breakpoint.c: Use C++ exception handling.
7274 * guile/scm-block.c: Use C++ exception handling.
7275 * guile/guile-internal.h: Use C++ exception handling.
7276 * gnu-v3-abi.c: Use C++ exception handling.
7277 * gdbtypes.c: Use C++ exception handling.
7278 * frame.c: Use C++ exception handling.
7279 * frame-unwind.c: Use C++ exception handling.
7280 * fbsd-tdep.c: Use C++ exception handling.
7281 * f-valprint.c: Use C++ exception handling.
7282 * exec.c: Use C++ exception handling.
7283 * event-top.c: Use C++ exception handling.
7284 * event-loop.c: Use C++ exception handling.
7285 * eval.c: Use C++ exception handling.
7286 * dwarf2read.c: Use C++ exception handling.
7287 * dwarf2loc.c: Use C++ exception handling.
7288 * dwarf2-frame.c: Use C++ exception handling.
7289 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7290 * dwarf-index-write.c: Use C++ exception handling.
7291 * dwarf-index-cache.c: Use C++ exception handling.
7292 * dtrace-probe.c: Use C++ exception handling.
7293 * disasm-selftests.c: Use C++ exception handling.
7294 * darwin-nat.c: Use C++ exception handling.
7295 * cp-valprint.c: Use C++ exception handling.
7296 * cp-support.c: Use C++ exception handling.
7297 * cp-abi.c: Use C++ exception handling.
7298 * corelow.c: Use C++ exception handling.
7299 * completer.c: Use C++ exception handling.
7300 * compile/compile-object-run.c: Use C++ exception handling.
7301 * compile/compile-object-load.c: Use C++ exception handling.
7302 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7303 * compile/compile-c-symbols.c: Use C++ exception handling.
7304 * common/selftest.c: Use C++ exception handling.
7305 * common/new-op.c: Use C++ exception handling.
7306 * cli/cli-script.c: Use C++ exception handling.
7307 * cli/cli-interp.c: Use C++ exception handling.
7308 * cli/cli-cmds.c: Use C++ exception handling.
7309 * c-varobj.c: Use C++ exception handling.
7310 * btrace.c: Use C++ exception handling.
7311 * breakpoint.c: Use C++ exception handling.
7312 * break-catch-throw.c: Use C++ exception handling.
7313 * arch-utils.c: Use C++ exception handling.
7314 * amd64-tdep.c: Use C++ exception handling.
7315 * ada-valprint.c: Use C++ exception handling.
7316 * ada-typeprint.c: Use C++ exception handling.
7317 * ada-lang.c: Use C++ exception handling.
7318 * aarch64-tdep.c: Use C++ exception handling.
7319
3d6e9d23
TT
73202019-04-08 Tom Tromey <tom@tromey.com>
7321
7322 * xml-support.c (gdb_xml_parser::parse): Update.
7323 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7324 * value.c (show_convenience): Update.
7325 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7326 (test_parse_flags_qcs): Update.
7327 * thread.c (thr_try_catch_cmd): Update.
7328 * target.c (target_translate_tls_address): Update.
7329 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7330 (info_frame_command_core, frame_apply_command_count): Update.
7331 * rust-exp.y (rust_lex_exception_test): Update.
7332 * riscv-tdep.c (riscv_print_one_register_info): Update.
7333 * remote.c (remote_target::enable_btrace): Update.
7334 * record-btrace.c (record_btrace_enable_warn): Update.
7335 * python/py-utils.c (gdbpy_convert_exception): Update.
7336 * printcmd.c (do_one_display, print_variable_and_value): Update.
7337 * mi/mi-main.c (mi_print_exception): Update.
7338 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7339 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7340 * linux-nat.c (linux_nat_target::attach): Update.
7341 * linux-fork.c (class scoped_switch_fork_info): Update.
7342 * infrun.c (displaced_step_prepare): Update.
7343 * infcall.c (call_function_by_hand_dummy): Update.
7344 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7345 * gnu-v3-abi.c (print_one_vtable): Update.
7346 * frame.c (get_prev_frame_always): Update.
7347 * f-valprint.c (info_common_command_for_block): Update.
7348 * exec.c (try_open_exec_file): Update.
7349 * exceptions.c (print_exception, exception_print)
7350 (exception_fprintf, exception_print_same): Update.
7351 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7352 * dwarf-index-cache.c (index_cache::store)
7353 (index_cache::lookup_gdb_index): Update.
7354 * darwin-nat.c (maybe_cache_shell): Update.
7355 * cp-valprint.c (cp_print_value_fields): Update.
7356 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7357 (gcc_cplus_symbol_address): Update.
7358 * compile/compile-c-symbols.c (gcc_convert_symbol)
7359 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7360 * common/selftest.c: Update.
7361 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7362 a std::string.
7363 (exception_try_scope_entry, exception_try_scope_exit): Don't
7364 declare.
7365 (struct exception_try_scope): Remove.
7366 (TRY): Don't use exception_try_scope.
7367 (struct gdb_exception): Add constructor, operator=.
7368 <what>: New method.
7369 (struct gdb_exception_RETURN_MASK_ALL)
7370 (struct gdb_exception_RETURN_MASK_ERROR)
7371 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7372 (struct gdb_quit_bad_alloc): Update.
7373 * common/common-exceptions.c (exception_none): Change
7374 initializer.
7375 (struct catcher) <state, exception>: Initialize inline.
7376 <prev>: Remove member.
7377 (current_catcher): Remove.
7378 (catchers): New global.
7379 (exceptions_state_mc_init): Simplify.
7380 (catcher_pop): Remove.
7381 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7382 (try_scope_depth, exception_try_scope_entry)
7383 (exception_try_scope_exit): Remove.
7384 (throw_exception_sjlj): Update.
7385 (exception_messages, exception_messages_size): Remove.
7386 (throw_it): Simplify.
7387 (gdb_exception_sliced_copy): Remove.
7388 (throw_exception_cxx): Update.
7389 * cli/cli-script.c (script_from_file): Update.
7390 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7391 Update.
7392 * ada-valprint.c (ada_val_print): Update.
7393 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7394 (create_excep_cond_exprs): Update.
7395
c5c10118
TT
73962019-04-08 Tom Tromey <tom@tromey.com>
7397
7398 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7399 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7400 (TRY, CATCH, END_CATCH): Remove some definitions.
7401 * common/common-exceptions.c: Don't use GDB_XCPT.
7402 (catcher_list_size): Remove.
7403 (throw_exception, throw_it): Simplify.
7404
4de283e4
TT
74052019-04-05 Tom Tromey <tom@tromey.com>
7406
7407 Revert the header-sorting patch.
7408 * ft32-tdep.c: Revert.
7409 * frv-tdep.c: Revert.
7410 * frv-linux-tdep.c: Revert.
7411 * frame.c: Revert.
7412 * frame-unwind.c: Revert.
7413 * frame-base.c: Revert.
7414 * fork-child.c: Revert.
7415 * findvar.c: Revert.
7416 * findcmd.c: Revert.
7417 * filesystem.c: Revert.
7418 * filename-seen-cache.h: Revert.
7419 * filename-seen-cache.c: Revert.
7420 * fbsd-tdep.c: Revert.
7421 * fbsd-nat.h: Revert.
7422 * fbsd-nat.c: Revert.
7423 * f-valprint.c: Revert.
7424 * f-typeprint.c: Revert.
7425 * f-lang.c: Revert.
7426 * extension.h: Revert.
7427 * extension.c: Revert.
7428 * extension-priv.h: Revert.
7429 * expprint.c: Revert.
7430 * exec.h: Revert.
7431 * exec.c: Revert.
7432 * exceptions.c: Revert.
7433 * event-top.c: Revert.
7434 * event-loop.c: Revert.
7435 * eval.c: Revert.
7436 * elfread.c: Revert.
7437 * dwarf2read.h: Revert.
7438 * dwarf2read.c: Revert.
7439 * dwarf2loc.c: Revert.
7440 * dwarf2expr.h: Revert.
7441 * dwarf2expr.c: Revert.
7442 * dwarf2-frame.c: Revert.
7443 * dwarf2-frame-tailcall.c: Revert.
7444 * dwarf-index-write.h: Revert.
7445 * dwarf-index-write.c: Revert.
7446 * dwarf-index-common.c: Revert.
7447 * dwarf-index-cache.h: Revert.
7448 * dwarf-index-cache.c: Revert.
7449 * dummy-frame.c: Revert.
7450 * dtrace-probe.c: Revert.
7451 * disasm.h: Revert.
7452 * disasm.c: Revert.
7453 * disasm-selftests.c: Revert.
7454 * dictionary.c: Revert.
7455 * dicos-tdep.c: Revert.
7456 * demangle.c: Revert.
7457 * dcache.h: Revert.
7458 * dcache.c: Revert.
7459 * darwin-nat.h: Revert.
7460 * darwin-nat.c: Revert.
7461 * darwin-nat-info.c: Revert.
7462 * d-valprint.c: Revert.
7463 * d-namespace.c: Revert.
7464 * d-lang.c: Revert.
7465 * ctf.c: Revert.
7466 * csky-tdep.c: Revert.
7467 * csky-linux-tdep.c: Revert.
7468 * cris-tdep.c: Revert.
7469 * cris-linux-tdep.c: Revert.
7470 * cp-valprint.c: Revert.
7471 * cp-support.c: Revert.
7472 * cp-namespace.c: Revert.
7473 * cp-abi.c: Revert.
7474 * corelow.c: Revert.
7475 * corefile.c: Revert.
7476 * continuations.c: Revert.
7477 * completer.h: Revert.
7478 * completer.c: Revert.
7479 * complaints.c: Revert.
7480 * coffread.c: Revert.
7481 * coff-pe-read.c: Revert.
7482 * cli-out.h: Revert.
7483 * cli-out.c: Revert.
7484 * charset.c: Revert.
7485 * c-varobj.c: Revert.
7486 * c-valprint.c: Revert.
7487 * c-typeprint.c: Revert.
7488 * c-lang.c: Revert.
7489 * buildsym.c: Revert.
7490 * buildsym-legacy.c: Revert.
7491 * build-id.h: Revert.
7492 * build-id.c: Revert.
7493 * btrace.c: Revert.
7494 * bsd-uthread.c: Revert.
7495 * breakpoint.h: Revert.
7496 * breakpoint.c: Revert.
7497 * break-catch-throw.c: Revert.
7498 * break-catch-syscall.c: Revert.
7499 * break-catch-sig.c: Revert.
7500 * blockframe.c: Revert.
7501 * block.c: Revert.
7502 * bfin-tdep.c: Revert.
7503 * bfin-linux-tdep.c: Revert.
7504 * bfd-target.c: Revert.
7505 * bcache.c: Revert.
7506 * ax-general.c: Revert.
7507 * ax-gdb.h: Revert.
7508 * ax-gdb.c: Revert.
7509 * avr-tdep.c: Revert.
7510 * auxv.c: Revert.
7511 * auto-load.c: Revert.
7512 * arm-wince-tdep.c: Revert.
7513 * arm-tdep.c: Revert.
7514 * arm-symbian-tdep.c: Revert.
7515 * arm-pikeos-tdep.c: Revert.
7516 * arm-obsd-tdep.c: Revert.
7517 * arm-nbsd-tdep.c: Revert.
7518 * arm-nbsd-nat.c: Revert.
7519 * arm-linux-tdep.c: Revert.
7520 * arm-linux-nat.c: Revert.
7521 * arm-fbsd-tdep.c: Revert.
7522 * arm-fbsd-nat.c: Revert.
7523 * arm-bsd-tdep.c: Revert.
7524 * arch-utils.c: Revert.
7525 * arc-tdep.c: Revert.
7526 * arc-newlib-tdep.c: Revert.
7527 * annotate.h: Revert.
7528 * annotate.c: Revert.
7529 * amd64-windows-tdep.c: Revert.
7530 * amd64-windows-nat.c: Revert.
7531 * amd64-tdep.c: Revert.
7532 * amd64-sol2-tdep.c: Revert.
7533 * amd64-obsd-tdep.c: Revert.
7534 * amd64-obsd-nat.c: Revert.
7535 * amd64-nbsd-tdep.c: Revert.
7536 * amd64-nbsd-nat.c: Revert.
7537 * amd64-nat.c: Revert.
7538 * amd64-linux-tdep.c: Revert.
7539 * amd64-linux-nat.c: Revert.
7540 * amd64-fbsd-tdep.c: Revert.
7541 * amd64-fbsd-nat.c: Revert.
7542 * amd64-dicos-tdep.c: Revert.
7543 * amd64-darwin-tdep.c: Revert.
7544 * amd64-bsd-nat.c: Revert.
7545 * alpha-tdep.c: Revert.
7546 * alpha-obsd-tdep.c: Revert.
7547 * alpha-nbsd-tdep.c: Revert.
7548 * alpha-mdebug-tdep.c: Revert.
7549 * alpha-linux-tdep.c: Revert.
7550 * alpha-linux-nat.c: Revert.
7551 * alpha-bsd-tdep.c: Revert.
7552 * alpha-bsd-nat.c: Revert.
7553 * aix-thread.c: Revert.
7554 * agent.c: Revert.
7555 * addrmap.c: Revert.
7556 * ada-varobj.c: Revert.
7557 * ada-valprint.c: Revert.
7558 * ada-typeprint.c: Revert.
7559 * ada-tasks.c: Revert.
7560 * ada-lang.c: Revert.
7561 * aarch64-tdep.c: Revert.
7562 * aarch64-ravenscar-thread.c: Revert.
7563 * aarch64-newlib-tdep.c: Revert.
7564 * aarch64-linux-tdep.c: Revert.
7565 * aarch64-linux-nat.c: Revert.
7566 * aarch64-fbsd-tdep.c: Revert.
7567 * aarch64-fbsd-nat.c: Revert.
7568 * aarch32-linux-nat.c: Revert.
7569
d55e5aa6
TT
75702019-04-05 Tom Tromey <tom@tromey.com>
7571
7572 * ft32-tdep.c: Sort headers.
7573 * frv-tdep.c: Sort headers.
7574 * frv-linux-tdep.c: Sort headers.
7575 * frame.c: Sort headers.
7576 * frame-unwind.c: Sort headers.
7577 * frame-base.c: Sort headers.
7578 * fork-child.c: Sort headers.
7579 * findvar.c: Sort headers.
7580 * findcmd.c: Sort headers.
7581 * filesystem.c: Sort headers.
7582 * filename-seen-cache.h: Sort headers.
7583 * filename-seen-cache.c: Sort headers.
7584 * fbsd-tdep.c: Sort headers.
7585 * fbsd-nat.h: Sort headers.
7586 * fbsd-nat.c: Sort headers.
7587 * f-valprint.c: Sort headers.
7588 * f-typeprint.c: Sort headers.
7589 * f-lang.c: Sort headers.
7590 * extension.h: Sort headers.
7591 * extension.c: Sort headers.
7592 * extension-priv.h: Sort headers.
7593 * expprint.c: Sort headers.
7594 * exec.h: Sort headers.
7595 * exec.c: Sort headers.
7596 * exceptions.c: Sort headers.
7597 * event-top.c: Sort headers.
7598 * event-loop.c: Sort headers.
7599 * eval.c: Sort headers.
7600 * elfread.c: Sort headers.
7601 * dwarf2read.h: Sort headers.
7602 * dwarf2read.c: Sort headers.
7603 * dwarf2loc.c: Sort headers.
7604 * dwarf2expr.h: Sort headers.
7605 * dwarf2expr.c: Sort headers.
7606 * dwarf2-frame.c: Sort headers.
7607 * dwarf2-frame-tailcall.c: Sort headers.
7608 * dwarf-index-write.h: Sort headers.
7609 * dwarf-index-write.c: Sort headers.
7610 * dwarf-index-common.c: Sort headers.
7611 * dwarf-index-cache.h: Sort headers.
7612 * dwarf-index-cache.c: Sort headers.
7613 * dummy-frame.c: Sort headers.
7614 * dtrace-probe.c: Sort headers.
7615 * disasm.h: Sort headers.
7616 * disasm.c: Sort headers.
7617 * disasm-selftests.c: Sort headers.
7618 * dictionary.c: Sort headers.
7619 * dicos-tdep.c: Sort headers.
7620 * demangle.c: Sort headers.
7621 * dcache.h: Sort headers.
7622 * dcache.c: Sort headers.
7623 * darwin-nat.h: Sort headers.
7624 * darwin-nat.c: Sort headers.
7625 * darwin-nat-info.c: Sort headers.
7626 * d-valprint.c: Sort headers.
7627 * d-namespace.c: Sort headers.
7628 * d-lang.c: Sort headers.
7629 * ctf.c: Sort headers.
7630 * csky-tdep.c: Sort headers.
7631 * csky-linux-tdep.c: Sort headers.
7632 * cris-tdep.c: Sort headers.
7633 * cris-linux-tdep.c: Sort headers.
7634 * cp-valprint.c: Sort headers.
7635 * cp-support.c: Sort headers.
7636 * cp-namespace.c: Sort headers.
7637 * cp-abi.c: Sort headers.
7638 * corelow.c: Sort headers.
7639 * corefile.c: Sort headers.
7640 * continuations.c: Sort headers.
7641 * completer.h: Sort headers.
7642 * completer.c: Sort headers.
7643 * complaints.c: Sort headers.
7644 * coffread.c: Sort headers.
7645 * coff-pe-read.c: Sort headers.
7646 * cli-out.h: Sort headers.
7647 * cli-out.c: Sort headers.
7648 * charset.c: Sort headers.
7649 * c-varobj.c: Sort headers.
7650 * c-valprint.c: Sort headers.
7651 * c-typeprint.c: Sort headers.
7652 * c-lang.c: Sort headers.
7653 * buildsym.c: Sort headers.
7654 * buildsym-legacy.c: Sort headers.
7655 * build-id.h: Sort headers.
7656 * build-id.c: Sort headers.
7657 * btrace.c: Sort headers.
7658 * bsd-uthread.c: Sort headers.
7659 * breakpoint.h: Sort headers.
7660 * breakpoint.c: Sort headers.
7661 * break-catch-throw.c: Sort headers.
7662 * break-catch-syscall.c: Sort headers.
7663 * break-catch-sig.c: Sort headers.
7664 * blockframe.c: Sort headers.
7665 * block.c: Sort headers.
7666 * bfin-tdep.c: Sort headers.
7667 * bfin-linux-tdep.c: Sort headers.
7668 * bfd-target.c: Sort headers.
7669 * bcache.c: Sort headers.
7670 * ax-general.c: Sort headers.
7671 * ax-gdb.h: Sort headers.
7672 * ax-gdb.c: Sort headers.
7673 * avr-tdep.c: Sort headers.
7674 * auxv.c: Sort headers.
7675 * auto-load.c: Sort headers.
7676 * arm-wince-tdep.c: Sort headers.
7677 * arm-tdep.c: Sort headers.
7678 * arm-symbian-tdep.c: Sort headers.
7679 * arm-pikeos-tdep.c: Sort headers.
7680 * arm-obsd-tdep.c: Sort headers.
7681 * arm-nbsd-tdep.c: Sort headers.
7682 * arm-nbsd-nat.c: Sort headers.
7683 * arm-linux-tdep.c: Sort headers.
7684 * arm-linux-nat.c: Sort headers.
7685 * arm-fbsd-tdep.c: Sort headers.
7686 * arm-fbsd-nat.c: Sort headers.
7687 * arm-bsd-tdep.c: Sort headers.
7688 * arch-utils.c: Sort headers.
7689 * arc-tdep.c: Sort headers.
7690 * arc-newlib-tdep.c: Sort headers.
7691 * annotate.h: Sort headers.
7692 * annotate.c: Sort headers.
7693 * amd64-windows-tdep.c: Sort headers.
7694 * amd64-windows-nat.c: Sort headers.
7695 * amd64-tdep.c: Sort headers.
7696 * amd64-sol2-tdep.c: Sort headers.
7697 * amd64-obsd-tdep.c: Sort headers.
7698 * amd64-obsd-nat.c: Sort headers.
7699 * amd64-nbsd-tdep.c: Sort headers.
7700 * amd64-nbsd-nat.c: Sort headers.
7701 * amd64-nat.c: Sort headers.
7702 * amd64-linux-tdep.c: Sort headers.
7703 * amd64-linux-nat.c: Sort headers.
7704 * amd64-fbsd-tdep.c: Sort headers.
7705 * amd64-fbsd-nat.c: Sort headers.
7706 * amd64-dicos-tdep.c: Sort headers.
7707 * amd64-darwin-tdep.c: Sort headers.
7708 * amd64-bsd-nat.c: Sort headers.
7709 * alpha-tdep.c: Sort headers.
7710 * alpha-obsd-tdep.c: Sort headers.
7711 * alpha-nbsd-tdep.c: Sort headers.
7712 * alpha-mdebug-tdep.c: Sort headers.
7713 * alpha-linux-tdep.c: Sort headers.
7714 * alpha-linux-nat.c: Sort headers.
7715 * alpha-bsd-tdep.c: Sort headers.
7716 * alpha-bsd-nat.c: Sort headers.
7717 * aix-thread.c: Sort headers.
7718 * agent.c: Sort headers.
7719 * addrmap.c: Sort headers.
7720 * ada-varobj.c: Sort headers.
7721 * ada-valprint.c: Sort headers.
7722 * ada-typeprint.c: Sort headers.
7723 * ada-tasks.c: Sort headers.
7724 * ada-lang.c: Sort headers.
7725 * aarch64-tdep.c: Sort headers.
7726 * aarch64-ravenscar-thread.c: Sort headers.
7727 * aarch64-newlib-tdep.c: Sort headers.
7728 * aarch64-linux-tdep.c: Sort headers.
7729 * aarch64-linux-nat.c: Sort headers.
7730 * aarch64-fbsd-tdep.c: Sort headers.
7731 * aarch64-fbsd-nat.c: Sort headers.
7732 * aarch32-linux-nat.c: Sort headers.
7733
699bd4cf
TT
77342019-04-04 Tom Tromey <tom@tromey.com>
7735
7736 * varobj.c (varobj_create): Update.
7737 * rust-exp.y (struct rust_parser) <update_innermost_block,
7738 lookup_symbol>: New methods.
7739 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7740 Rename.
7741 (rust_parser::rust_lookup_type)
7742 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7743 * printcmd.c (display_command, do_one_display): Update.
7744 * parser-defs.h (struct parser_state) <parser_state>: Add
7745 "tracker" parameter.
7746 (block_tracker): New member.
7747 (class innermost_block_tracker) <innermost_block_tracker>: Add
7748 "types" parameter.
7749 <reset>: Remove method.
7750 (innermost_block): Don't declare.
7751 (null_post_parser): Update.
7752 * parse.c (innermost_block): Remove global.
7753 (write_dollar_variable): Update.
7754 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7755 Remove "tracker_types" parameter.
7756 (parse_expression): Add "tracker" parameter.
7757 (parse_expression_for_completion): Update.
7758 (null_post_parser): Add "tracker" parameter.
7759 * p-exp.y: Update rules.
7760 * m2-exp.y: Update rules.
7761 * language.h (struct language_defn) <la_post_parser>: Add
7762 "tracker" parameter.
7763 * go-exp.y: Update rules.
7764 * f-exp.y: Update rules.
7765 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7766 parameter.
7767 * d-exp.y: Update rules.
7768 * c-exp.y: Update rules.
7769 * breakpoint.c (set_breakpoint_condition): Create an
7770 innermost_block_tracker.
7771 (watch_command_1): Likewise.
7772 * ada-lang.c (resolve): Add "tracker" parameter.
7773 (resolve_subexp): Likewise.
7774 * ada-exp.y (write_var_from_sym): Update.
7775
dac43e32
TT
77762019-04-04 Tom Tromey <tom@tromey.com>
7777
7778 * type-stack.h: New file.
7779 * type-stack.c: New file.
7780 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7781 type-stack.h.
7782 (insert_into_type_stack, insert_type, push_type, push_type_int)
7783 (insert_type_address_space, pop_type, pop_type_int)
7784 (pop_typelist, pop_type_stack, append_type_stack)
7785 (push_type_stack, get_type_stack, push_typelist)
7786 (follow_type_instance_flags, follow_types): Don't declare.
7787 * parse.c (type_stack): Remove global.
7788 (parse_exp_in_context): Update.
7789 (insert_into_type_stack, insert_type, push_type, push_type_int)
7790 (insert_type_address_space, pop_type, pop_type_int)
7791 (pop_typelist, pop_type_stack, append_type_stack)
7792 (push_type_stack, get_type_stack, push_typelist)
7793 (follow_type_instance_flags, follow_types): Remove (moved to
7794 type-stack.c).
7795 * f-exp.y (type_stack): New global.
7796 Update rules.
7797 (push_kind_type, f_parse): Update.
7798 * d-exp.y (type_stack): New global.
7799 Update rules.
7800 (d_parse): Update.
7801 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7802 Update rules.
7803 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7804 (HFILES_NO_SRCDIR): Add type-stack.h.
7805
2a612529
TT
78062019-04-04 Tom Tromey <tom@tromey.com>
7807
7808 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7809 (rust_parser::convert_ast_to_expression, rust_parse)
7810 (rust_lex_test_completion, rust_lex_tests): Update.
7811 * parser-defs.h (struct expr_completion_state): New.
7812 (struct parser_state) <parser_state>: Add completion parameter.
7813 <mark_struct_expression, mark_completion_tag>: New methods.
7814 <parse_completion, m_completion_state>: New members.
7815 (prefixify_expression, null_post_parser): Update.
7816 (mark_struct_expression, mark_completion_tag): Don't declare.
7817 * parse.c (parse_completion, expout_last_struct)
7818 (expout_tag_completion_type, expout_completion_name): Remove
7819 globals.
7820 (parser_state::mark_struct_expression)
7821 (parser_state::mark_completion_tag): Now methods.
7822 (prefixify_expression): Add last_struct parameter.
7823 (prefixify_subexp): Likewise.
7824 (parse_exp_1): Update.
7825 (parse_exp_in_context): Add cstate parameter. Update.
7826 (parse_expression_for_completion): Create an
7827 expr_completion_state.
7828 (null_post_parser): Add "completion" parameter.
7829 * p-exp.y: Update rules.
7830 (yylex): Update.
7831 * language.h (struct language_defn) <la_post_parser>: Add
7832 "completing" parameter.
7833 * go-exp.y: Update rules.
7834 (lex_one_token): Update.
7835 * expression.h (parse_completion): Don't declare.
7836 * d-exp.y: Update rules.
7837 (lex_one_token): Update rules.
7838 * c-exp.y: Update rules.
7839 (lex_one_token): Update.
7840 * ada-lang.c (resolve): Add "parse_completion" parameter.
7841 (resolve_subexp): Likewise.
7842 (ada_resolve_function): Likewise.
7843
43476f0b
TT
78442019-04-04 Tom Tromey <tom@tromey.com>
7845
7846 * parser-defs.h (struct parser_state) <start_arglist,
7847 end_arglist>: New methods.
7848 <arglist_len, m_funcall_chain>: New members.
7849 (arglist_len, start_arglist, end_arglist): Don't declare.
7850 * parse.c (arglist_len, funcall_chain): Remove global.
7851 (start_arglist, end_arglist): Remove functions.
7852 (parse_exp_in_context): Update.
7853 * p-exp.y: Update rules.
7854 * m2-exp.y: Update rules.
7855 * go-exp.y: Update rules.
7856 * f-exp.y: Update rules.
7857 * d-exp.y: Update rules.
7858 * c-exp.y: Update rules.
7859
5776fca3
TT
78602019-04-04 Tom Tromey <tom@tromey.com>
7861
7862 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7863 lex_operator, push_back>: New methods.
7864 Update all rules.
7865 (rust_parser::lex_hex, lex_escape): Rename and update.
7866 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7867 (rust_parser::lex_operator): Rename and update.
7868 (rust_parser::lex_number, rustyylex, rustyyerror)
7869 (rust_lex_test_init, rust_lex_test_sequence)
7870 (rust_lex_test_push_back, rust_lex_tests): Update.
7871 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7872 parameter.
7873 <lexptr, prev_lexptr>: New members.
7874 (lexptr, prev_lexptr): Don't declare.
7875 * parse.c (lexptr, prev_lexptr): Remove globals.
7876 (parse_exp_in_context): Update.
7877 * p-exp.y (yylex, yyerror): Update.
7878 * m2-exp.y (parse_number, yylex, yyerror): Update.
7879 * go-exp.y (lex_one_token, yyerror): Update.
7880 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7881 * d-exp.y (lex_one_token, yyerror): Update.
7882 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7883 (lex_one_token, yyerror): Update.
7884 * ada-lex.l (YY_INPUT): Update.
7885 (rewind_to_char): Update.
7886 * ada-exp.y (yyerror): Update.
7887
8621b685
TT
78882019-04-04 Tom Tromey <tom@tromey.com>
7889
7890 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7891 * parser-defs.h (struct parser_state) <parser_state>: Add new
7892 parameter.
7893 <comma_terminates>: New member.
7894 (comma_terminates): Don't declare global.
7895 * parse.c (comma_terminates): Remove global.
7896 (parse_exp_in_context): Update.
7897 * p-exp.y (yylex): Update.
7898 * m2-exp.y (yylex): Update.
7899 * go-exp.y (lex_one_token): Update.
7900 * f-exp.y (yylex): Update.
7901 * d-exp.y (lex_one_token): Update.
7902 * c-exp.y (lex_one_token): Update.
7903 * ada-lex.l: Update.
7904
28aaf3fd
TT
79052019-04-04 Tom Tromey <tom@tromey.com>
7906
7907 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7908 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7909 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7910 * parser-defs.h (paren_depth): Don't declare.
7911 * parse.c (paren_depth): Remove global.
7912 (parse_exp_in_context): Update.
7913 * p-exp.y (paren_depth): New global.
7914 (pascal_parse): Initialize it.
7915 * m2-exp.y (paren_depth): New global.
7916 (m2_parse): Initialize it.
7917 * go-exp.y (paren_depth): New global.
7918 (go_parse): Initialize it.
7919 * f-exp.y (paren_depth): New global.
7920 (f_parse): Initialize it.
7921 * d-exp.y (paren_depth): New global.
7922 (d_parse): Initialize it.
7923 * c-exp.y (paren_depth): New global.
7924 (c_parse): Initialize it.
7925 * ada-lex.l (paren_depth): New global.
7926 (lexer_init): Initialize it.
7927
1e58a4a4
TT
79282019-04-04 Tom Tromey <tom@tromey.com>
7929
7930 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7931 (rust_parser::convert_ast_to_type)
7932 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7933 * parser-defs.h (struct parser_state) <parser_state>: Add
7934 parameters. Initialize new members.
7935 <expression_context_block, expression_context_pc>: New members.
7936 * parse.c (expression_context_block, expression_context_pc):
7937 Remove globals.
7938 (parse_exp_in_context): Update.
7939 * p-exp.y: Update all rules.
7940 (yylex): Update.
7941 * m2-exp.y: Update all rules.
7942 (yylex): Update.
7943 * go-exp.y (yylex): Update.
7944 * f-exp.y (yylex): Update.
7945 * d-exp.y: Update all rules.
7946 (yylex): Update.
7947 * c-exp.y: Update all rules.
7948 (lex_one_token, classify_name, yylex, c_parse): Update.
7949 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7950
37eedb39
TT
79512019-04-04 Tom Tromey <tom@tromey.com>
7952
7953 * gdbarch.h, gdbarch.c: Rebuild.
7954 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7955 * stap-probe.h:
7956 (struct stap_parse_info): Replace "parser_state" with
7957 "expr_builder".
7958 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7959 (parser_state): New class.
7960 * parse.c (expr_builder): Rename.
7961 (expr_builder::release): Rename.
7962 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7963 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7964 (write_exp_elt_longcst, write_exp_elt_floatcst)
7965 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7966 (write_exp_string_vector, write_exp_bitstring)
7967 (write_exp_msymbol, mark_struct_expression)
7968 (write_dollar_variable)
7969 (insert_type_address_space, increase_expout_size): Replace
7970 "parser_state" with "expr_builder".
7971 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7972 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7973 "parser_state" with "expr_builder".
7974
73923d7e
TT
79752019-04-04 Tom Tromey <tom@tromey.com>
7976
7977 * rust-exp.y: Replace "parse_language" with method call.
7978 * p-exp.y:
7979 (yylex): Replace "parse_language" with method call.
7980 * m2-exp.y:
7981 (yylex): Replace "parse_language" with method call.
7982 * go-exp.y (classify_name): Replace "parse_language" with method
7983 call.
7984 * f-exp.y (yylex): Replace "parse_language" with method call.
7985 * d-exp.y (lex_one_token): Replace "parse_language" with method
7986 call.
7987 * c-exp.y:
7988 (lex_one_token, classify_name, yylex): Replace "parse_language"
7989 with method call.
7990 * ada-exp.y (find_primitive_type, type_char)
7991 (type_system_address): Replace "parse_language" with method call.
7992
fa9f5be6
TT
79932019-04-04 Tom Tromey <tom@tromey.com>
7994
7995 * rust-exp.y: Replace "parse_gdbarch" with method call.
7996 * parse.c (write_dollar_variable, insert_type_address_space):
7997 Replace "parse_gdbarch" with method call.
7998 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7999 call.
8000 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8001 call.
8002 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8003 "parse_gdbarch" with method call.
8004 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8005 with method call.
8006 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8007 "parse_gdbarch" with method call.
8008 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8009 "parse_gdbarch" with method call.
8010 * c-exp.y (parse_type, parse_number, classify_name): Replace
8011 "parse_gdbarch" with method call.
8012 * ada-lex.l: Replace "parse_gdbarch" with method call.
8013 * ada-exp.y (parse_type, find_primitive_type, type_char)
8014 (type_system_address): Replace "parse_gdbarch" with method call.
8015
1201a264
TT
80162019-04-04 Tom Tromey <tom@tromey.com>
8017
8018 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8019 * stap-probe.c (stap_parse_argument): Update.
8020 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8021 initial_size parameter.
8022 * rust-exp.y (rust_lex_tests): Update.
8023 * parse.c (parser_state): Update.
8024 (parse_exp_in_context): Update.
8025 * parser-defs.h (struct parser_state) <parser_state>: Remove
8026 "initial_size" parameter.
8027
e3980ce2
TT
80282019-04-04 Tom Tromey <tom@tromey.com>
8029
8030 * parser-defs.h (increase_expout_size): Don't declare.
8031 * parse.c (increase_expout_size): Now static.
8032
e9f8e3f1
TS
80332019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8034
8035 * gnu-nat.c (gnu_nat_target::wait): Fix
8036 target_waitstatus_to_string call.
8037
d7df6549
AB
80382019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8039
8040 * eval.c (evaluate_subexp_standard): Handle internal functions
8041 during Fortran function call handling.
8042
8bdc1658
AB
80432019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8044
8045 * NEWS: Mention new internal functions.
8046 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8047 (read_base_type): Use dwarf2_init_complex_target_type.
8048 * value.c (creal_internal_fn): New function.
8049 (cimag_internal_fn): New function.
8050 (_initialize_values): Register new internal functions.
8051
c29705b7
PW
80522019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8053
8054 * infrun.c (stop_all_threads): If debug_infrun, always
8055 trace the wait status after wait_one, using
8056 target_waitstatus_to_string and target_pid_to_str.
8057 (handle_inferior_event): Replace various trace of
8058 wait status kind by a single trace.
8059 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8060 wait status kind image by target_waitstatus_to_string.
8061 * target/waitstatus.c (target_waitstatus_to_string): Fix
8062 obsolete comment.
8063
05caa1d2
TT
80642019-04-01 Tom Tromey <tromey@adacore.com>
8065
8066 PR symtab/23331:
8067 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8068
9d1447e0
SDJ
80692019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8070 Pedro Alves <palves@redhat.com>
8071
8072 * top.c (quit_force): Call 'finalize_values'.
8073 * value.c (finalize_values): New function.
8074 * value.h (finalize_values): Declare.
8075
7734102d
EZ
80762019-03-30 Eli Zaretskii <eliz@gnu.org>
8077
8078 * NEWS: Announce $_gdb_major and $_gdb_minor.
8079
8080 * top.c (init_gdb_version_vars): New function.
8081 (gdb_init): Call init_gdb_version_vars.
8082
188e1fa9
TT
80832019-03-29 Tom Tromey <tromey@adacore.com>
8084
8085 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8086 help text. Remove dead code.
8087
2880242d
KS
80882019-03-29 Keith Seitz <keiths@redhat.com>
8089
8090 From Siddhesh Poyarekar:
8091 * f-lang.h (f77_get_upperbound): Return LONGEST.
8092 (f77_get_lowerbound): Likewise.
8093 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8094 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8095 print them.
8096 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8097 plongest to format print it.
8098 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8099 (f77_get_upperbound): Likewise.
8100 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8101 LOWER_BOUND to LONGEST.
8102 (f77_create_arrayprint_offset_tbl): Likewise.
8103
cc1defb1
KS
81042019-03-29 Keith Seitz <keiths@redhat.com>
8105
8106 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8107 %s/pulongest for TYPE_LENGTH instead of %d in format
8108 strings.
8109 * ada-typerint.c (ada_print_type): Likewise.
8110 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8111 * compile/compile-c-support.c (generate_register_struct): Likewise.
8112 * gdbtypes.c (recursive_dump_type): Likewise.
8113 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8114 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8115 instead of %d in format strings.
8116 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8117 to std::min to ULONGEST.
8118 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8119 instead of %d in format strings.
8120 * tracepoint.c (info_scope_command): Likewise.
8121 * typeprint.c (print_offset_data::update)
8122 (print_offset_data::finish): Likewise.
8123 * xtensa-tdep.c (xtensa_store_return_value)
8124 (xtensa_push_dummy_call): Likewise.
8125
e432ccf1
JT
81262019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8127
8128 * windows-nat.c (display_selector): Fixed format specifications
8129 for 64-bit Cygwin.
8130
65d2b333
PW
81312019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8132
8133 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8134
f489207e
SL
81352019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8136
8137 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8138 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8139 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8140 (nios2_linux_init_abi): Install it.
8141
bffa1015
AH
81422019-03-28 Alan Hayward <alan.hayward@arm.com>
8143
8144 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8145
fc96163a
AH
81462019-03-28 Alan Hayward <alan.hayward@arm.com>
8147
8148 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8149
20dc7e9b
PW
81502019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8151 Tom Tromey <tromey@adacore.com>
8152
8153 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8154
7f5331a8
JB
81552019-03-26 Joel Brobecker <brobecker@adacore.com>
8156
8157 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8158 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8159 method to compute the bounds of range types. Also print "[evaluated]"
8160 if the bounds' values come from a dynamic evaluation.
8161
18c77628
AB
81622019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8163
8164 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8165 whitespace when pretty printing is on.
8166
53c973f2
AH
81672019-03-26 Alan Hayward <alan.hayward@arm.com>
8168
e79be6e5 8169 * ppc-linux-nat.c: Add include.
53c973f2 8170
d851aa71
AH
81712019-03-26 Alan Hayward <alan.hayward@arm.com>
8172
e79be6e5 8173 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 8174
2fe7bab7
AH
81752019-03-26 Alan Hayward <alan.hayward@arm.com>
8176
e79be6e5 8177 * arm-linux-nat.c: Add include.
2fe7bab7 8178
068ef30e
SM
81792019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8180
8181 * source-cache.c (source_cache::get_source_lines): Re-read
8182 fullname after calling open_source_file.
8183
81a24d04
JB
81842019-03-25 John Baldwin <jhb@FreeBSD.org>
8185
8186 * NEWS: Mention TLS support for FreeBSD.
8187
79e7ae11
TT
81882019-03-25 Tom Tromey <tromey@adacore.com>
8189
8190 * minsyms.c (BUNCH_SIZE): Update comment.
8191 (~minimal_symbol_reader): Remove old comment.
8192 (compact_minimal_symbols): Update comment.
8193 (minimal_symbol_reader::install): Remove old comment. Update
8194 other comments.
8195
d45963c2
AH
81962019-03-25 Alan Hayward <alan.hayward@arm.com>
8197
8198 * s390-linux-nat.c: Add include.
8199
0f83012e
AH
82002019-03-25 Alan Hayward <alan.hayward@arm.com>
8201
8202 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8203 Call linux_get_hwcap.
8204 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8205 Likewise.
8206 (aarch64_linux_get_hwcap): Remove function.
8207 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8208 declaration.
8209 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8210 linux_get_hwcap.
8211 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8212 * linux-tdep.c (linux_get_hwcap): Add function.
8213 (linux_get_hwcap2): Likewise.
8214 * linux-tdep.h (linux_get_hwcap): Add declaration.
8215 (linux_get_hwcap2): Likewise.
8216 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8217 (ppc_linux_get_hwcap2): Likewise.
8218 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8219 linux_get_hwcap.
8220 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8221 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8222 (ppc_linux_nat_target::read_description): Likewise.
8223 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8224 * s390-linux-nat.c: Likewise.
8225 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8226
6640a367
TT
82272019-03-24 Tom Tromey <tom@tromey.com>
8228
8229 * ada-lang.c (standard_lookup): Simplify initialization.
8230 (ada_lookup_symbol_nonlocal): Simplify return.
8231 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8232 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8233 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8234 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8235 initialization.
8236 * solib.c (solib_global_lookup): Simplify.
8237 * symtab.c (null_block_symbol): Remove.
8238 (symbol_cache_lookup): Simplify returns.
8239 (lookup_language_this): Simplify returns.
8240 (lookup_symbol_aux): Simplify return.
8241 (lookup_local_symbol): Simplify returns.
8242 (lookup_global_symbol_from_objfile): Simplify return.
8243 (lookup_symbol_in_objfile_symtabs)
8244 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8245 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8246 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8247 * cp-namespace.c (cp_lookup_bare_symbol)
8248 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8249 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8250 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8251 (cp_lookup_symbol_via_imports): Simplify initialization.
8252 (find_symbol_in_baseclass): Likewise.
8253 * symtab.h (null_block_symbol): Remove.
8254 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8255 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8256 (d_lookup_symbol_module): Likewise.
8257 (find_symbol_in_baseclass): Simplify initialization.
8258
a930ebcd
TT
82592019-03-24 Tom Tromey <tom@tromey.com>
8260
8261 * expression.h: Don't include symtab.h.
8262 (struct block): Forward declare.
8263
582942f4
TT
82642019-03-24 Tom Tromey <tom@tromey.com>
8265
8266 * c-exp.y (typebase): Remove casts.
8267 * gdbtypes.c (lookup_unsigned_typename, )
8268 (lookup_signed_typename): Remove cast.
8269 * eval.c (parse_to_comma_and_eval): Remove cast.
8270 * parse.c (write_dollar_variable): Remove cast.
8271 * block.h (struct block) <superblock>: Now const.
8272 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8273 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8274 (map_block): Make "block" const.
8275 * symfile.h (struct quick_symbol_functions)
8276 <map_matching_symbols>: Constify block argument to "callback".
8277 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8278 const.
8279 (find_pc_sect_compunit_symtab): Make "b" const.
8280 (find_symbol_at_address): Likewise.
8281 (search_symbols): Likewise.
8282 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8283 (dw2_debug_names_lookup_symbol): Likewise.
8284 (dw2_map_matching_symbols): Update.
8285 * p-valprint.c (pascal_val_print): Remove "block".
8286 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8287 (aux_add_nonlocal_symbols): Make "block" const.
8288 (resolve_subexp): Remove cast.
8289 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8290 const.
8291 (iterate_over_file_blocks): Likewise.
8292 * f-exp.y (%union) <bval>: Remove.
8293 * coffread.c (patch_opaque_types): Make "b" const.
8294 * spu-tdep.c (spu_catch_start): Make "block" const.
8295 * c-valprint.c (print_unpacked_pointer): Remove "block".
8296 * symmisc.c (dump_symtab_1): Make "b" const.
8297 (block_depth): Make "block" const.
8298 * d-exp.y (%union) <bval>: Remove.
8299 * cp-support.h (cp_lookup_rtti_type): Update.
8300 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8301 * psymtab.c (psym_lookup_symbol): Make "block" const.
8302 (maintenance_check_psymtabs): Make "b" const.
8303 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8304 (enumerate_locals, enumerate_args): Update.
8305 * python/py-symtab.c (stpy_global_block): Make "block" const.
8306 (stpy_static_block): Likewise.
8307 * inline-frame.c (block_starting_point_at): Make "new_block"
8308 const.
8309 * block.c (find_block_in_blockvector): Make return type const.
8310 (blockvector_for_pc_sect): Make "b" const.
8311 (find_block_in_blockvector): Make "b" const.
8312
7ad417dd
TT
83132019-03-23 Tom Tromey <tom@tromey.com>
8314
8315 * varobj.c (varobj_create): Update.
8316 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8317 * printcmd.c (display_command, do_one_display): Don't reset
8318 innermost_block.
8319 * parser-defs.h (enum innermost_block_tracker_type): Move to
8320 expression.h.
8321 (innermost_block): Update comment.
8322 * parse.c (parse_exp_1): Add tracker_types parameter.
8323 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8324 tracker_types parameter. Reset innermost_block.
8325 (parse_exp_in_context): Remove.
8326 (parse_expression_for_completion): Update.
8327 * objfiles.c (~objfile): Don't reset expression_context_block or
8328 innermost_block.
8329 * expression.h (enum innermost_block_tracker_type): Move from
8330 parser-defs.h.
8331 (parse_exp_1): Add tracker_types parameter.
8332 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8333 reset innermost_block.
8334
b366c208
TT
83352019-03-23 Tom Tromey <tom@tromey.com>
8336
8337 * objfiles.h: Include bcache.h.
8338
9bb9b2f9
TT
83392019-03-23 Tom Tromey <tom@tromey.com>
8340
8341 * linespec.c (get_current_search_block): Use
8342 scoped_restore_current_language.
8343 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8344
59c28372
AH
83452019-03-22 Alan Hayward <alan.hayward@arm.com>
8346 Jiong Wang <jiong.wang@arm.com>
8347
8348 * aarch64-linux-tdep.c
8349 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8350 section.
8351 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8352
17e116a7
AH
83532019-03-22 Alan Hayward <alan.hayward@arm.com>
8354 Jiong Wang <jiong.wang@arm.com>
8355
8356 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8357 instructions.
8358 (aarch64_analyze_prologue_test): Add PACIASP test.
8359 (aarch64_prologue_prev_register): Unmask PC value.
8360
11e1b75f
AH
83612019-03-22 Alan Hayward <alan.hayward@arm.com>
8362 Jiong Wang <jiong.wang@arm.com>
8363
8364 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8365 (aarch64_dwarf2_prev_register): Unmask PC value.
8366 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8367 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8368 DW_CFA_AARCH64_negate_ra_state.
8369 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8370
34dcc7cf
AH
83712019-03-22 Alan Hayward <alan.hayward@arm.com>
8372 Jiong Wang <jiong.wang@arm.com>
8373
8374 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8375 registers.
8376 (aarch64_pseudo_register_name): Likewise.
8377 (aarch64_pseudo_register_type): Likewise.
8378 (aarch64_pseudo_register_reggroup_p): Likewise.
8379 (aarch64_gdbarch_init): Add pauth registers.
8380 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8381 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8382 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8383 (struct gdbarch_tdep): Add regnum for ra_state.
8384
1ef53e6b
AH
83852019-03-22 Alan Hayward <alan.hayward@arm.com>
8386 Jiong Wang <jiong.wang@arm.com>
8387
8388 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8389
76bed0fd
AH
83902019-03-22 Alan Hayward <alan.hayward@arm.com>
8391 Jiong Wang <jiong.wang@arm.com>
8392
8393 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8394 function.
8395 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8396 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8397 (aarch64_gdbarch_init): Add puth registers.
8398 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8399 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8400 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8401
ee4fbcfa
AH
84022019-03-22 Alan Hayward <alan.hayward@arm.com>
8403 Jiong Wang <jiong.wang@arm.com>
8404
8405 * aarch64-linux-nat.c
8406 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8407 * aarch64-linux-tdep.c
8408 (aarch64_linux_core_read_description): Likewise.
8409 (aarch64_linux_get_hwcap): New function.
8410 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8411 (aarch64_linux_get_hwcap): New declaration.
8412
6dc0ebde
AH
84132019-03-22 Alan Hayward <alan.hayward@arm.com>
8414 Jiong Wang <jiong.wang@arm.com>
8415
8416 * aarch64-linux-nat.c
8417 (aarch64_linux_nat_target::read_description): Add pauth param.
8418 * aarch64-linux-tdep.c
8419 (aarch64_linux_core_read_description): Likewise.
8420 * aarch64-tdep.c (struct target_desc): Add in pauth.
8421 (aarch64_read_description): Add pauth param.
8422 (aarch64_gdbarch_init): Likewise.
8423 * aarch64-tdep.h (aarch64_read_description): Likewise.
8424 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8425 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8426 * features/Makefile: Add new files.
8427 * features/aarch64-pauth.c: New file.
8428 * features/aarch64-pauth.xml: New file.
8429
595915c1
TT
84302019-03-20 Tom Tromey <tromey@adacore.com>
8431
8432 * infrun.c (handle_inferior_event): Rename from
8433 handle_inferior_event_1. Create a scoped_value_mark.
8434 (handle_inferior_event): Remove.
8435
4c7d57e7
TT
84362019-03-19 Tom Tromey <tromey@adacore.com>
8437
8438 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8439 * infrun.h (print_stop_event): Add "displays" parameter.
8440 * infrun.c (print_stop_event): Add "displays" parameter.
8441
cb246234
PA
84422019-03-19 Pedro Alves <palves@redhat.com>
8443
8444 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8445 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8446 to -1. Fix TABs vs spaces.
8447 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8448 * tui/tui-out.h (tui_ui_out) Add intro comments.
8449 <m_line, m_start_of_line>: In-class initialize, and add describing
8450 comment.
8451
3a0e45b2
AH
84522019-03-18 Alan Hayward <alan.hayward@arm.com>
8453
8454 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8455 variable names.
8456 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8457
5371b850
PA
84582019-03-18 Pedro Alves <palves@redhat.com>
8459 Eli Zaretskii <eliz@gnu.org>
8460
8461 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8462 m_line and m_start_of_line.
8463
b17c4cd0
EZ
84642019-03-18 Eli Zaretskii <eliz@gnu.org>
8465
8466 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8467 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8468 it returns a newline. This fixes a regression in TU mode, whereby
8469 the next line is output on the same screen line as the user input.
8470
4bd56d18
TT
84712019-03-18 Tom Tromey <tromey@adacore.com>
8472
8473 * minsyms.c (minimal_symbol_reader::install): Remove call to
8474 obstack_blank.
8475
55c10aca
PA
84762019-03-18 Pedro Alves <palves@redhat.com>
8477
8478 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8479 New globals.
8480 (apply_style): New, factored out from ...
8481 (apply_ansi_escape): ... this. Handle reverse video mode.
8482 (tui_set_reverse_mode): New function.
8483 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8484 * tui/tui-winsource.c (tui_show_source_line): Use
8485 tui_set_reverse_mode instead of setting A_STANDOUT.
8486 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8487 New setter methods.
8488
647bb750
HD
84892019-03-18 Hannes Domani <ssbssa@yahoo.de>
8490
8491 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8492 Handle tabs.
8493
bff8c71f
TT
84942019-03-18 Tom Tromey <tromey@adacore.com>
8495
8496 * ada-lang.c (empty_array): Add "high" parameter.
8497 (ada_evaluate_subexp): Update.
8498
58785d98
ST
84992019-03-17 Sergei Trofimovich <siarheit@google.com>
8500
8501 * unittests/string_view-selftests.c: Define
8502 _initialize_string_view_selftests unconditionally.
8503
d4cbef22
ВМ
85042019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8505
8506 PR gdb/24350
8507 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8508
fce4c071
ВМ
85092019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8510
8511 PR gdb/24351
8512 * windows-nat.c (display_selector): Fix format specifiers.
8513
f7f0a123
EZ
85142019-03-17 Eli Zaretskii <eliz@gnu.org>
8515
8516 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8517 tui_refill_source_window instead of tui_refresh_win, to update the
8518 current execution line. This fixes redisplay of the current line
8519 when stepping through the code with "next" or "step".
8520
ab42892f
EZ
85212019-03-16 Eli Zaretskii <eliz@gnu.org>
8522
8523 * source-cache.c (source_cache::get_source_lines): Call
8524 find_source_lines to initialize s->nlines. This fixes vertical
8525 scrolling of TUI source window when the DOWN arrow is pressed.
8526
8d8c087f
PW
85272019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8528
8529 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8530 linux-thread-db.c (_initialize_thread_db): Likewise.
8531
798e1c30
EZ
85322019-03-16 Eli Zaretskii <eliz@gnu.org>
8533
8534 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8535 wclrtoeol in tui_show_source_line". This reverts changes made in
8536 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8537
eefba3da
TT
85382019-03-15 Tom Tromey <tom@tromey.com>
8539
8540 * symtab.h (struct minimal_symbol): Derive from
8541 general_symbol_info.
8542 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8543 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8544 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8545 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8546 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8547 (MSYMBOL_SEARCH_NAME): Update.
8548 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8549 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8550 * minsyms.c (minimal_symbol_reader::record_full): Update.
8551
0de2420c
TT
85522019-03-15 Tom Tromey <tom@tromey.com>
8553
8554 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8555
042d75e4
TT
85562019-03-15 Tom Tromey <tom@tromey.com>
8557
8558 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8559 unique_xmalloc_ptr.
8560 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8561 Update.
8562 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8563 (build_minimal_symbol_hash_tables)
8564 (minimal_symbol_reader::install): Update.
8565
db92718b
TT
85662019-03-15 Tom Tromey <tom@tromey.com>
8567
8568 * symtab.c (create_demangled_names_hash): Update.
8569 (symbol_set_names): Update.
8570 * objfiles.h (struct objfile_per_bfd_storage)
8571 <demangled_names_hash>: Now an htab_up.
8572 * objfiles.c (objfile_per_bfd_storage): Simplify.
8573
d6797f46
TT
85742019-03-15 Tom Tromey <tom@tromey.com>
8575
8576 * objfiles.h (struct objfile_per_bfd_storage): Declare
8577 destructor.
8578 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8579 New.
8580 (get_objfile_bfd_data): Use new. Don't initialize
8581 language_of_main.
8582 (free_objfile_per_bfd_storage): Remove.
8583 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8584
741d7538
TT
85852019-03-15 Tom Tromey <tom@tromey.com>
8586
8587 * symfile.c (reread_symbols): Update.
8588 * objfiles.c (objfile::objfile): Update.
8589 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8590 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8591 comment.
8592 (minimal_symbol_reader::install): Update.
8593 (terminate_minimal_symbol_table): Remove.
8594 * jit.c (jit_object_close_impl): Update.
8595
788c80d1
TT
85962019-03-15 Tom Tromey <tom@tromey.com>
8597
8598 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8599 initializations.
8600
1b7a07cb
TT
86012019-03-15 Tom Tromey <tom@tromey.com>
8602
8603 * objfiles.h (struct objfile_per_bfd_storage)
8604 <demangled_hash_languages>: Now a bitset.
8605 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8606 (lookup_minimal_symbol): Update.
8607
3db066bc
TT
86082019-03-15 Tom Tromey <tom@tromey.com>
8609
8610 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8611 Don't return the symbol.
8612 * coffread.c (record_minimal_symbol): Use record_full.
8613
3fff2c37
EZ
86142019-03-14 Eli Zaretskii <eliz@gnu.org>
8615
8616 The MS-Windows port of ncurses fails to switch to a color pair if
8617 one or both of the colors are the implicit default colors. This
8618 change records the default colors when TUI is initialized, and
8619 then specifies them explicitly when a color pair uses the default
8620 colors. This allows color styling in TUI mode on MS-Windows.
8621
8622 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8623 ncurses_norm_attr.
8624 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8625 colors in ncurses_norm_attr.
8626 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8627 "none", replace it with the default color recorded in
8628 ncurses_norm_attr.
8629
3b336828
TT
86302019-03-14 Tom Tromey <tromey@adacore.com>
8631
8632 * source-cache.h (class source_cache) <get_source_lines>: Return
8633 std::string.
8634 * source-cache.c (source_cache::extract_lines): Handle case where
8635 first_pos==npos. Return std::string.
8636 (source_cache::get_source_lines): Update.
8637
d085f989
TT
86382019-03-14 Tom Tromey <tromey@adacore.com>
8639
8640 * NEWS: Add item for "style sources" commands.
8641 * source-cache.c (source_cache::get_source_lines): Check
8642 source_styling.
8643 * cli/cli-style.c (source_styling): New global.
8644 (_initialize_cli_style): Add "style sources" commands.
8645 (show_style_sources): New function.
8646 * cli/cli-style.h (source_styling): Declare.
8647
6f11e682
TT
86482019-03-14 Pedro Alves <palves@redhat.com>
8649 Tom Tromey <tromey@adacore.com>
8650
8651 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8652 * tui/tui-winsource.c (tui_refill_source_window): New function,
8653 from...
8654 (tui_horizontal_source_scroll): ... here. Move some logic.
8655 * cli/cli-style.c (set_style_enabled): Notify new observable.
8656 * tui/tui-hooks.c (tui_redisplay_source): New function.
8657 (tui_attach_detach_observers): Attach or detach
8658 tui_redisplay_source.
8659 * observable.h (source_styling_changed): New observable.
8660 * observable.c: Define source_styling_changed observable.
8661
a068643d
TT
86622019-03-13 Tom Tromey <tromey@adacore.com>
8663
8664 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8665 (i386_gnu_nat_target::store_registers): Update.
8666 * target-debug.h (target_debug_print_std_string): New macro.
8667 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8668 * windows-tdep.c (display_one_tib): Update.
8669 * tui/tui-stack.c (tui_make_status_line): Update.
8670 * top.c (print_inferior_quit_action): Update.
8671 * thread.c (thr_try_catch_cmd): Update.
8672 (add_thread_with_info): Update.
8673 (thread_target_id_str): Update.
8674 (thr_try_catch_cmd): Update.
8675 (thread_command): Update.
8676 (thread_find_command): Update.
8677 * record-btrace.c (record_btrace_target::info_record)
8678 (record_btrace_resume_thread, record_btrace_target::resume)
8679 (record_btrace_cancel_resume, record_btrace_step_thread)
8680 (record_btrace_target::wait, record_btrace_target::wait)
8681 (record_btrace_target::wait, record_btrace_target::stop): Update.
8682 * progspace.c (print_program_space): Update.
8683 * process-stratum-target.c
8684 (process_stratum_target::thread_address_space): Update.
8685 * linux-fork.c (linux_fork_mourn_inferior)
8686 (detach_checkpoint_command, info_checkpoints_command)
8687 (linux_fork_context): Update.
8688 (linux_fork_detach): Update.
8689 (class scoped_switch_fork_info): Update.
8690 (delete_checkpoint_command): Update.
8691 * infrun.c (follow_fork_inferior): Update.
8692 (follow_fork_inferior): Update.
8693 (proceed_after_vfork_done): Update.
8694 (handle_vfork_child_exec_or_exit): Update.
8695 (follow_exec): Update.
8696 (displaced_step_prepare_throw): Update.
8697 (displaced_step_restore): Update.
8698 (start_step_over): Update.
8699 (resume_1): Update.
8700 (clear_proceed_status_thread): Update.
8701 (proceed): Update.
8702 (print_target_wait_results): Update.
8703 (do_target_wait): Update.
8704 (context_switch): Update.
8705 (stop_all_threads): Update.
8706 (restart_threads): Update.
8707 (finish_step_over): Update.
8708 (handle_signal_stop): Update.
8709 (switch_back_to_stepped_thread): Update.
8710 (keep_going_pass_signal): Update.
8711 (print_exited_reason): Update.
8712 (normal_stop): Update.
8713 * inferior.c (inferior_pid_to_str): Change return type.
8714 (print_selected_inferior): Update.
8715 (add_inferior): Update.
8716 (detach_inferior): Update.
8717 * dummy-frame.c (fprint_dummy_frames): Update.
8718 * dcache.c (dcache_info_1): Update.
8719 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8720 (btrace_fetch, btrace_clear): Update.
8721 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8722 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8723 type.
8724 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8725 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8726 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8727 * gdbarch.c, gdbarch.h: Rebuild.
8728 * gdbarch.sh (core_pid_to_str): Change return type.
8729 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8730 return type.
8731 (windows_nat_target::pid_to_str): Change return type.
8732 (windows_delete_thread): Update.
8733 (windows_nat_target::attach): Update.
8734 (windows_nat_target::files_info): Update.
8735 * target-delegates.c: Rebuild.
8736 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8737 return type.
8738 (sol_thread_target::pid_to_str): Change return type.
8739 * remote.c (class remote_target) <pid_to_str>: Change return
8740 type.
8741 (remote_target::pid_to_str): Change return type.
8742 (extended_remote_target::attach, remote_target::remote_stop_ns)
8743 (remote_target::remote_notif_remove_queued_reply)
8744 (remote_target::push_stop_reply, remote_target::disable_btrace):
8745 Update.
8746 (extended_remote_target::attach): Update.
8747 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8748 type.
8749 (gdbsim_target::pid_to_str): Change return type.
8750 * ravenscar-thread.c (struct ravenscar_thread_target)
8751 <pid_to_str>: Change return type.
8752 (ravenscar_thread_target::pid_to_str): Change return type.
8753 * procfs.c (class procfs_target) <pid_to_str>: Change return
8754 type.
8755 (procfs_target::pid_to_str): Change return type.
8756 (procfs_target::attach): Update.
8757 (procfs_target::detach): Update.
8758 (procfs_target::fetch_registers): Update.
8759 (procfs_target::store_registers): Update.
8760 (procfs_target::wait): Update.
8761 (procfs_target::files_info): Update.
8762 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8763 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8764 return type.
8765 (nto_procfs_target::pid_to_str): Change return type.
8766 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8767 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8768 return type.
8769 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8770 (exit_lwp): Update.
8771 (attach_proc_task_lwp_callback, get_detach_signal)
8772 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8773 (linux_nat_target::resume, wait_lwp, stop_callback)
8774 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8775 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8776 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8777 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8778 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8779 type.
8780 (inf_ptrace_target::attach): Update.
8781 (inf_ptrace_target::files_info): Update.
8782 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8783 type.
8784 (go32_nat_target::pid_to_str): Change return type.
8785 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8786 (gnu_nat_target::wait): Update.
8787 (gnu_nat_target::wait): Update.
8788 (gnu_nat_target::resume): Update.
8789 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8790 (fbsd_nat_target::wait): Update.
8791 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8792 type.
8793 (darwin_nat_target::attach): Update.
8794 * corelow.c (class core_target) <pid_to_str>: Change return type.
8795 (core_target::pid_to_str): Change return type.
8796 * target.c (normal_pid_to_str): Change return type.
8797 (default_pid_to_str): Likewise.
8798 (target_pid_to_str): Change return type.
8799 (target_translate_tls_address): Update.
8800 (target_announce_detach): Update.
8801 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8802 return type.
8803 (bsd_uthread_target::pid_to_str): Change return type.
8804 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8805 type.
8806 (bsd_kvm_target::pid_to_str): Change return type.
8807 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8808 return type.
8809 (aix_thread_target::pid_to_str): Change return type.
8810 * target.h (struct target_ops) <pid_to_str>: Change return type.
8811 (target_pid_to_str, normal_pid_to_str): Likewise.
8812 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8813 type.
8814 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8815 type.
8816 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8817 return type.
8818 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8819 type.
8820 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8821 type.
8822 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8823 return type.
8824
b4be1b06
SM
88252019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8826
8827 * NEWS: Mention that the new default MI version is 3. Mention
8828 changes to the output of commands and events that deal with
8829 multi-location breakpoints.
8830 * breakpoint.c: Include "mi/mi-out.h".
8831 (print_one_breakpoint): Change output syntax if using MI version
8832 >= 3.
8833 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8834 New.
8835 (mi_multi_location_breakpoint_output_fixed): New.
8836 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8837 (mi_cmd_fix_multi_location_breakpoint_output): New.
8838 (mi_multi_location_breakpoint_output_fixed): New.
8839 * mi/mi-cmds.c (mi_cmds): Register command
8840 -fix-multi-location-breakpoint-output.
8841 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8842 interpreter "mi".
8843
8e5e5494
SM
88442019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8845
8846 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8847 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8848 instantiate mi_ui_out based on interpreter name.
8849 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8850 * mi/mi-main.c (mi_load_progress): Likewise.
8851
197df35e
JB
88522019-03-12 John Baldwin <jhb@FreeBSD.org>
8853
8854 * NEWS: Combine separate "New targets" sections for 8.3.
8855
8399425f
JB
88562019-03-12 John Baldwin <jhb@FreeBSD.org>
8857
8858 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8859 (ppcfbsd_init_abi): Install gdbarch
8860 "fetch_tls_load_module_address" and "get_thread_local_address"
8861 methods.
8862
b0f87ed0
JB
88632019-03-12 John Baldwin <jhb@FreeBSD.org>
8864
8865 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8866 (riscv_fbsd_init_abi): Install gdbarch
8867 "fetch_tls_load_module_address" and "get_thread_local_address"
8868 methods.
8869
ce25aa57
JB
88702019-03-12 John Baldwin <jhb@FreeBSD.org>
8871
8872 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8873 (i386fbsd_init_abi): Install gdbarch
8874 "fetch_tls_load_module_address" and "get_thread_local_address"
8875 methods.
8876
f5424cfa
JB
88772019-03-12 John Baldwin <jhb@FreeBSD.org>
8878
8879 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8880 (amd64fbsd_init_abi): Install gdbarch
8881 "fetch_tls_load_module_address" and "get_thread_local_address"
8882 methods.
8883
945f3901
JB
88842019-03-12 John Baldwin <jhb@FreeBSD.org>
8885
8886 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8887 (struct fbsd_pspace_data): New type.
8888 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8889 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8890 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8891 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8892 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8893
ef0bd204
JB
88942019-03-12 John Baldwin <jhb@FreeBSD.org>
8895
8896 * gdbtypes.c (lookup_struct_elt): New function.
8897 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8898 * gdbtypes.h (struct struct_elt): New type.
8899 (lookup_struct_elt): New prototype.
8900
36c53a02
JB
89012019-03-12 John Baldwin <jhb@FreeBSD.org>
8902
8903 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8904 remove disabled code block.
8905
6e056c81
JB
89062019-03-12 John Baldwin <jhb@FreeBSD.org>
8907
8908 * gdbarch.sh (get_thread_local_address): New method.
8909 * gdbarch.h, gdbarch.c: Regenerate.
8910 * target.c (target_translate_tls_address): Use
8911 gdbarch_get_thread_local_address if present instead of
8912 target::get_thread_local_address.
8913
cd250a18
JB
89142019-03-12 John Baldwin <jhb@FreeBSD.org>
8915
8916 * target.h (target::get_thread_local_address): Update comment.
8917
df22c1e5
JB
89182019-03-12 John Baldwin <jhb@FreeBSD.org>
8919
8920 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8921 objfile->separate_debug_objfile_backlink if not NULL.
8922
dd6876c9
JB
89232019-03-12 John Baldwin <jhb@FreeBSD.org>
8924
8925 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8926 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8927 (amd64bsd_store_inferior_registers): Likewise.
8928 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8929 Enable segment base registers.
8930 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8931 PT_GETFSBASE and PT_GETGSBASE.
8932 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8933 PT_SETGSBASE.
8934 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8935 segment base registers.
8936 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8937
1163a4b7
JB
89382019-03-12 John Baldwin <jhb@FreeBSD.org>
8939
8940 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8941 Update calls to i386_target_description to add 'segments'
8942 parameter.
8943 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8944 add segment base registers.
8945 * arch/i386.c (i386_create_target_description): Add 'segments'
8946 parameter to enable segment base registers.
8947 * arch/i386.h (i386_create_target_description): Likewise.
8948 * features/i386/32bit-segments.xml: New file.
8949 * features/i386/32bit-segments.c: Generate.
8950 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8951 call to i386_target_description to add 'segments' parameter.
8952 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8953 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8954 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8955 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8956 if feature is present.
8957 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8958 Add 'segments' parameter to call to i386_target_description.
8959 (i386_target_description): Add 'segments' parameter to enable
8960 segment base registers.
8961 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8962 to call to i386_target_description.
8963 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8964 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8965 Define I386_NUM_REGS.
8966 (i386_target_description): Add 'segments' parameter to enable
8967 segment base registers.
8968
3a350822
EZ
89692019-03-12 Eli Zaretskii <eliz@gnu.org>
8970
8971 PR/24325
8972 * source-cache.c: #undef open and close, to avoid unresolved
8973 externals during linking.
8974
ffdd69cf
TT
89752019-03-12 Tom Tromey <tromey@adacore.com>
8976
8977 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8978 const. Add initializers.
8979 (_initialize_remote): Don't initialize ptid globals.
8980
ec148c57
PA
89812019-03-12 Pedro Alves <palves@redhat.com>
8982
8983 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8984
32764270
PA
89852019-03-12 Pedro Alves <palves@redhat.com>
8986
8987 * cp-name-parser.y (main): Remove unused 'len' variable.
8988
17547186
TT
89892019-03-12 Tom Tromey <tromey@adacore.com>
8990
8991 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8992 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8993
d3a70e03
TT
89942019-03-12 Tom Tromey <tromey@adacore.com>
8995
8996 * linux-nat.c (iterate_over_lwps): Update.
8997 (stop_callback): Remove parameter.
8998 (stop_wait_callback, detach_callback, resume_set_callback)
8999 (select_singlestep_lwp_callback, set_ignore_sigint)
9000 (status_callback, resumed_callback, resume_clear_callback)
9001 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9002 data parameter.
9003 (linux_nat_target::detach, linux_nat_target::resume)
9004 (linux_stop_and_wait_all_lwps, select_event_lwp)
9005 (linux_nat_filter_event, linux_nat_wait_1)
9006 (linux_nat_target::kill, linux_nat_target::stop)
9007 (linux_nat_target::stop): Update.
9008 (linux_nat_resume_callback): Change type.
9009 (resume_stopped_resumed_lwps, count_events_callback)
9010 (select_event_lwp_callback): Likewise.
9011 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9012 * arm-linux-nat.c (struct update_registers_data): Remove.
9013 (update_registers_callback): Change type.
9014 (arm_linux_insert_hw_breakpoint1): Update.
9015 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9016 parameter.
9017 (x86_linux_dr_set_addr): Update.
9018 (x86_linux_dr_set_control): Update.
9019 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9020 (iterate_over_lwps): Use gdb::function_view.
9021 * nat/aarch64-linux-hw-point.c (struct
9022 aarch64_dr_update_callback_param): Remove.
9023 (debug_reg_change_callback): Change type.
9024 (aarch64_notify_debug_reg_change): Update.
9025 * s390-linux-nat.c (s390_refresh_per_info): Update.
9026
82cb27ff
TT
90272019-03-11 Tom Tromey <tromey@adacore.com>
9028
9029 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9030 redundant assignment to "this_cu".
9031
568c0683
SM
90322019-03-08 Simon Marchi <simon.marchi@efficios.com>
9033
9034 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9035
f09ce22d
SM
90362019-03-08 Simon Marchi <simon.marchi@efficios.com>
9037
9038 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9039 from...
9040 (rank_one_type): ... this.
9041
595f96a9
SM
90422019-03-08 Simon Marchi <simon.marchi@efficios.com>
9043
9044 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9045 from...
9046 (rank_one_type): ... this.
9047
2598a94b
SM
90482019-03-08 Simon Marchi <simon.marchi@efficios.com>
9049
9050 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9051 from...
9052 (rank_one_type): ... this.
9053
7f17b20d
SM
90542019-03-08 Simon Marchi <simon.marchi@efficios.com>
9055
9056 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9057 from...
9058 (rank_one_type): ... this.
9059
2c509035
SM
90602019-03-08 Simon Marchi <simon.marchi@efficios.com>
9061
9062 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9063 from...
9064 (rank_one_type): ... this.
9065
0dd322dc
SM
90662019-03-08 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9069 from...
9070 (rank_one_type): ... this.
9071
41ea4728
SM
90722019-03-08 Simon Marchi <simon.marchi@efficios.com>
9073
9074 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9075 from...
9076 (rank_one_type): ... this.
9077
793cd1d2
SM
90782019-03-08 Simon Marchi <simon.marchi@efficios.com>
9079
9080 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9081 from...
9082 (rank_one_type): ... this.
9083
34910087
SM
90842019-03-08 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9087 from...
9088 (rank_one_type): ... this.
9089
f1f832d6
SM
90902019-03-08 Simon Marchi <simon.marchi@efficios.com>
9091
9092 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9093 from...
9094 (rank_one_type): ... this.
9095
b9f4512f
SM
90962019-03-08 Simon Marchi <simon.marchi@efficios.com>
9097
9098 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9099 from...
9100 (rank_one_type): ... this.
9101
9293fc63
SM
91022019-03-08 Simon Marchi <simon.marchi@efficios.com>
9103
9104 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9105 from...
9106 (rank_one_type): ... this.
9107
e3abbe7e
PW
91082019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9109
9110 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9111 inferior-events' shows the example events.
9112
e4adb939
EZ
91132019-03-08 Eli Zaretskii <eliz@gnu.org>
9114
9115 Support styling on native MS-Windows console
9116
9117 PR/24315
9118 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9119 on MS-Windows if $TERM is not defined.
9120
9121 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9122
9123 * posix-hdep.c (gdb_console_fputs):
9124 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9125 functions.
9126 * ui-file.h (gdb_console_fputs): Add prototype.
9127
9128 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9129 back to fputs only if the former returns zero.
9130
25629dfd
TT
91312019-03-07 Tom Tromey <tom@tromey.com>
9132
9133 * symmisc.c (print_symbol_bcache_statistics): Update.
9134 (print_objfile_statistics): Update.
9135 * symfile.c (allocate_symtab): Update.
9136 * stabsread.c: Don't include bcache.h.
9137 * psymtab.h (struct psymbol_bcache): Don't declare.
9138 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9139 (psymbol_bcache_init, psymbol_bcache_free)
9140 (psymbol_bcache_get_bcache): Don't declare.
9141 * psymtab.c (struct psymbol_bcache): Remove.
9142 (psymtab_storage::psymtab_storage): Update.
9143 (psymtab_storage::~psymtab_storage): Update.
9144 (psymbol_bcache_init, psymbol_bcache_free)
9145 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9146 (add_psymbol_to_bcache): Update.
9147 (allocate_psymtab): Update.
9148 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9149 macro_cache>: No longer pointers.
9150 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9151 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9152 * macrotab.c (macro_bcache): Update.
9153 * macroexp.c: Don't include bcache.h.
9154 * gdbtypes.c (check_types_worklist): Update.
9155 (types_deeply_equal): Remove TRY/CATCH. Update.
9156 * elfread.c (elf_symtab_read): Update.
9157 * dwarf2read.c: Don't include bcache.h.
9158 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9159 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9160 (print_bcache_statistics, bcache_memory_used): Don't declare.
9161 (struct bcache): Move from bcache.c. Add constructor, destructor,
9162 methods. Rename all data members.
9163 * bcache.c (struct bcache): Move to bcache.h.
9164 (bcache::expand_hash_table): Rename from expand_hash_table.
9165 (bcache): Remove.
9166 (bcache::insert): Rename from bcache_full.
9167 (bcache::compare): Rename from bcache_compare.
9168 (bcache_xmalloc): Remove.
9169 (bcache::~bcache): Rename from bcache_xfree.
9170 (bcache::print_statistics): Rename from print_bcache_statistics.
9171 (bcache::memory_used): Rename from bcache_memory_used.
9172
fe726667
PA
91732019-03-07 Pedro Alves <palves@redhat.com>
9174
9175 * infrun.c (normal_stop): Also check for
9176 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9177
7584bb30
AB
91782019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9179
9180 * f-lang.c (value_from_host_double): Moved to...
9181 * value.c (value_from_host_double): ...here.
9182 * value.h (value_from_host_double): Declare.
9183 * guile/scm-math.c (vlscm_convert_typed_number): Use
9184 value_from_host_double.
9185 (vlscm_convert_number): Likewise.
9186 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9187 * python/py-value.c (convert_value_from_python): Likewise.
9188
a7b1986e
TT
91892019-03-06 Tom Tromey <tom@tromey.com>
9190
9191 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9192
0ccf4211
TT
91932019-03-06 Tom Tromey <tom@tromey.com>
9194
9195 * utils.h (free_current_contents): Don't declare.
9196 * utils.c (free_current_contents): Remove.
9197
fe7b42e5
TT
91982019-03-06 Tom Tromey <tom@tromey.com>
9199
9200 * top.c (quit_force): Update.
9201 * main.c (captured_command_loop): Update.
9202 * common/new-op.c (operator new): Update.
9203 * common/common-exceptions.c (struct catcher)
9204 <save_cleanup_chain>: Remove member.
9205 (exceptions_state_mc_init): Update.
9206 (exception_try_scope_entry): Return nullptr.
9207 (exception_try_scope_exit, exception_rethrow)
9208 (throw_exception_sjlj, throw_exception_cxx): Update.
9209 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9210 (all_cleanups, do_cleanups, discard_cleanups)
9211 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9212 (restore_cleanups, restore_final_cleanups): Don't declare.
9213 (do_final_cleanups): Remove parameter.
9214 * common/cleanups.c (cleanup_chain, make_cleanup)
9215 (make_cleanup_dtor, all_cleanups, do_cleanups)
9216 (discard_my_cleanups, discard_cleanups)
9217 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9218 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9219 (null_cleanup): Remove.
9220 (do_final_cleanups): Remove parameter.
9221
c6321f19
TT
92222019-03-06 Tom Tromey <tom@tromey.com>
9223
9224 * remote.c (remote_target::remote_parse_stop_reply): Use
9225 unique_xmalloc_ptr.
9226
61b30099
TT
92272019-03-06 Tom Tromey <tom@tromey.com>
9228
9229 * stabsread.c (struct stabs_field_info): Rename from field_info.
9230 <list, fnlist>: Add initializers.
9231 <obstack>: New member.
9232 (read_member_functions, read_struct_fields, read_baseclasses):
9233 Allocate on obstack. Don't use cleanups.
9234 (read_one_struct_field, read_member_functions, read_struct_fields)
9235 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9236 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9237 (read_struct_type): Update.
9238
6cceac94
TT
92392019-03-06 Tom Tromey <tom@tromey.com>
9240
9241 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9242 * common/filestuff.h (make_cleanup_close): Don't declare.
9243 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9244 Remove.
9245
72412762
TT
92462019-03-06 Tom Tromey <tom@tromey.com>
9247
9248 * solib-aix.c: Use make_scope_exit.
9249
2b6ff1c0
TT
92502019-03-06 Tom Tromey <tom@tromey.com>
9251
9252 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9253 Use make_scope_exit.
9254
d01c5877
TT
92552019-03-06 Tom Tromey <tom@tromey.com>
9256
9257 * solib-svr4.c (disable_probes_interface): Remove parameter.
9258 (svr4_handle_solib_event): Use make_scope_exit.
9259
32603266
TT
92602019-03-06 Tom Tromey <tom@tromey.com>
9261
9262 * remote.c (struct stop_reply_deleter): Remove.
9263 (stop_reply_up): Update.
9264 (struct stop_reply): Derive from notif_event. Don't typedef.
9265 <regcache>: Now a std::vector.
9266 (stop_reply_xfree): Remove.
9267 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9268 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9269 (remote_target::discard_pending_stop_replies): Use delete.
9270 (remote_target::remote_parse_stop_reply): Update.
9271 (remote_target::process_stop_reply): Update.
9272 * remote-notif.h (struct notif_event): Add virtual destructor.
9273 Remove "dtr" member.
9274 (struct notif_client) <alloc_event>: Return a unique_ptr.
9275 (notif_event_xfree): Don't declare.
9276 (notif_event_up): New typedef.
9277 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9278 (notif_event_xfree, do_notif_event_xfree): Remove.
9279 (remote_notif_state_xfree): Update.
9280
9799571e
TT
92812019-03-06 Tom Tromey <tom@tromey.com>
9282
9283 * infrun.c (displaced_step_clear_cleanup): Now a
9284 forward_scope_exit type.
9285 (displaced_step_prepare_throw): Update.
9286 (displaced_step_fixup): Update.
9287
09e3c4ca
TT
92882019-03-06 Tom Tromey <tom@tromey.com>
9289
9290 * inferior.h (class inferior): Update comment.
9291 * gdbthread.h (class thread_info): Update comment.
9292
e2a03548
TT
92932019-03-06 Joel Brobecker <brobecker@adacore.com>
9294 Tom Tromey <tom@tromey.com>
9295
9296 * stabsread.h (struct stab_section_list): Remove.
9297 (coffstab_build_psymtabs): Update.
9298 * dbxread.c (symbuf_sections): Now a std::vector.
9299 (sect_idx): New global.
9300 (fill_symbuf): Update.
9301 (coffstab_build_psymtabs): Change type of stabsects parameter.
9302 Update.
9303 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9304 std::vector.
9305 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9306 (coff_locate_sections): Update.
9307 (coff_symfile_read): Remove cleanups. Update.
9308 (init_stringtab): Add storage parameter.
9309 (free_stringtab, free_stringtab_cleanup): Remove.
9310 (init_lineno): Add storage parameter.
9311 (free_linetab, free_linetab_cleanup): Remove.
9312
b7e60d85
PA
93132019-03-06 Pedro Alves <palves@redhat.com>
9314
9315 * linux-fork.c (fork_info::clobber_regs): Delete.
9316 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9317 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9318 comment. Adjust.
9319 (scoped_switch_fork_info::scoped_switch_fork_info)
9320 (checkpoint_command, linux_fork_context): Adjust
9321 fork_save_infrun_state calls.
9322
e52c971f
PA
93232019-03-06 Pedro Alves <palves@redhat.com>
9324
9325 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9326 (inf_has_multiple_threads): Return 'bool' and rewrite using
9327 inferior_info::threads().
9328
06974e6c
PA
93292019-03-06 Pedro Alves <palves@redhat.com>
9330
9331 * linux-fork.c: Include <list>.
9332 (fork_list): Now a std::list instance.
9333 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9334 (forks_exist_p, find_last_fork): Adjust.
9335 (new_fork): Delete.
9336 (one_fork_p): New.
9337 (add_fork): Adjust.
9338 (free_fork): Delete, folded into fork_info::~fork_info().
9339 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9340 Adjust.
9341 (init_fork_list): Delete.
9342 (linux_fork_killall, linux_fork_mourn_inferior)
9343 (linux_fork_detach, info_checkpoints_command): Adjust.
9344 (_initialize_linux_fork): No longer call init_fork_list.
9345
72f31aea
PA
93462019-03-06 Pedro Alves <palves@redhat.com>
9347
9348 * linux-fork.c (new_fork): New, split out of ...
9349 (add_fork): ... this. Return void. Move "first fork" special
9350 case from here, to ...
9351 (checkpoint_command): ... here.
9352 * linux-linux.h (add_fork): Return void.
9353
efbecbc1
AB
93542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9355
9356 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9357
0841c79a
AB
93582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9359 Chris January <chris.january@arm.com>
9360 David Lecomber <david.lecomber@arm.com>
9361
9362 * f-exp.y: New token, UNOP_INTRINSIC.
9363 (exp): New pattern using UNOP_INTRINSIC token.
9364 (f77_keywords): Add 'abs' keyword.
9365 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9366 (value_from_host_double): New function.
9367 (evaluate_subexp_f): Support UNOP_ABS.
9368
4a270568
AB
93692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9370
9371 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9372 types.
9373
067630bd
AB
93742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9375
9376 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9377 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9378 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9379
3be47f7a
AB
93802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9381
9382 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9383
4d00f5d8
AB
93842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9385 Chris January <chris.january@arm.com>
9386
9387 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9388 * f-exp.y: Define 'KIND' token.
9389 (exp): New pattern for KIND expressions.
9390 (ptype): Handle types with a kind extension.
9391 (direct_abs_decl): Extend to spot kind extensions.
9392 (f77_keywords): Add 'kind' to the list.
9393 (push_kind_type): New function.
9394 (convert_to_kind_type): New function.
9395 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9396 * parse.c (operator_length_standard): Likewise.
9397 * parser-defs.h (enum type_pieces): Add tp_kind.
9398 * std-operator.def: Add UNOP_KIND.
9399
e454224f
AB
94002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9401
9402 * f-exp.y (f_parse): Set yydebug.
9403
9dad4a58
AB
94042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9405
9406 * f-lang.c (evaluate_subexp_f): New function.
9407 (exp_descriptor_f): New global.
9408 (f_language_defn): Use exp_descriptor_f instead of
9409 exp_descriptor_standard.
9410
c8f91604
AB
94112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9412
9413 * f-exp.y (struct token): Add comments.
9414 (dot_ops): Remove uppercase versions and the end marker.
9415 (f77_keywords): Likewise.
9416 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9417 entries in the dot_ops array are case insensitive, and use
9418 strncasecmp to compare strings. Also some whitespace cleanup in
9419 this area. Similar for the f77_keywords array, except entries in
9420 this list might be case sensitive.
9421
dd9f2c76
AB
94222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9423
9424 * f-exp.y (struct f77_boolean_val): Add comments.
9425 (boolean_values): Remove uppercase versions, and end marker.
9426 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9427 and use strncasecmp to achieve case insensitivity. Additionally,
9428 perform whitespace cleanup around this code.
9429
67a3048c
TT
94302019-03-06 Tom Tromey <tromey@adacore.com>
9431
9432 * remote-sim.c (gdbsim_target_open): Use result of
9433 gdb_argv::release.
9434
aa3cfbda
RB
94352019-03-06 Richard Bunt <richard.bunt@arm.com>
9436 Dirk Schubert <dirk.schubert@arm.com>
9437 Chris January <chris.january@arm.com>
9438
9439 * eval.c (evaluate_subexp_standard): Call Fortran argument
9440 wrapping logic.
9441 * f-lang.c (struct value): A value which can be passed into a
9442 Fortran function call.
9443 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9444 where appropriate.
9445 (struct type): Value ready for a Fortran function call.
9446 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9447 is needed.
9448 * f-lang.h (fortran_argument_convert): Declaration.
9449 (fortran_preserve_arg_pointer): Declaration.
9450 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9451
ea38e5df
TT
94522019-03-05 Tom Tromey <tromey@adacore.com>
9453
9454 * python/py-prettyprint.c (print_string_repr): Remove #if.
9455 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9456
06b5b831
TT
94572019-03-05 Tom Tromey <tromey@adacore.com>
9458
9459 * target.c (the_dummy_target): Move later. Change type to
9460 "dummy_target".
9461 (initialize_targets): Don't initialize the_dummy_target.
9462
edbd9e45
TT
94632019-03-05 Tom Tromey <tromey@adacore.com>
9464
9465 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9466 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9467
c119e040
TT
94682019-03-05 Tom Tromey <tromey@adacore.com>
9469
9470 * windows-nat.c (windows_nat_target::attach)
9471 (windows_nat_target::detach): Don't call gdb_flush.
9472 * valprint.c (generic_val_print, val_print, val_print_string):
9473 Don't call gdb_flush.
9474 * utils.c (defaulted_query): Don't call gdb_flush.
9475 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9476 * target.c (target_announce_detach): Don't call gdb_flush.
9477 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9478 * remote.c (extended_remote_target::attach): Don't call
9479 gdb_flush.
9480 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9481 * printcmd.c (do_examine): Don't call gdb_flush.
9482 (info_display_command): Don't call gdb_flush.
9483 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9484 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9485 * memattr.c (info_mem_command): Don't call gdb_flush.
9486 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9487 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9488 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9489 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9490 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9491 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9492 (gnu_nat_target::detach): Don't call gdb_flush.
9493 * f-valprint.c (f_val_print): Don't call gdb_flush.
9494 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9495 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9496 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9497 gdb_flush.
9498 * c-valprint.c (c_val_print): Don't call gdb_flush.
9499 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9500
895dafa6
TT
95012019-03-05 Tom Tromey <tromey@adacore.com>
9502
9503 * varobj.c (update_dynamic_varobj_children): Update.
9504 (install_default_visualizer): Use reset, not release.
9505 * value.c (set_internalvar): Update.
9506 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9507 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9508 ATTRIBUTE_UNUSED_RESULT.
9509
88a774b9
TT
95102019-03-05 Tom Tromey <tromey@adacore.com>
9511
9512 * remote.c (class scoped_remote_fd) <release>: Add
9513 ATTRIBUTE_UNUSED_RESULT.
9514
4e4a8b93
TT
95152019-03-05 Tom Tromey <tromey@adacore.com>
9516
9517 * macroexp.c (struct macro_buffer) <release>: Add
9518 ATTRIBUTE_UNUSED_RESULT.
9519
083eef1f
TT
95202019-03-05 Tom Tromey <tromey@adacore.com>
9521
9522 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9523 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9524 ATTRIBUTE_UNUSED_RESULT.
9525
3cabd438
TT
95262019-03-05 Tom Tromey <tromey@adacore.com>
9527
9528 * common/scoped_fd.h (class scoped_fd) <release>: Add
9529 ATTRIBUTE_UNUSED_RESULT.
9530
41e3300a
TT
95312019-03-05 Tom Tromey <tromey@adacore.com>
9532
9533 * parser-defs.h (struct parser_state) <release>: Add
9534 ATTRIBUTE_UNUSED_RESULT.
9535
18cb7c9f
TT
95362019-03-05 Tom Tromey <tromey@adacore.com>
9537
9538 * utils.h (class gdb_argv) <release>: Add
9539 ATTRIBUTE_UNUSED_RESULT.
9540 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9541
41fa577f
EZ
95422019-03-02 Eli Zaretskii <eliz@gnu.org>
9543
a6a4b2c6
EZ
9544 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9545 for-loop range, to avoid compiler warnings.
9546
9547 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9548 avoid compiler warnings about unused variables.
9549
742a7df5
EZ
9550 * NEWS: Mention end of support for native debugging on MS-Windows
9551 before XP.
9552
41fa577f
EZ
9553 PR gdb/24292
9554 * common/netstuff.c:
9555 * gdbserver/gdbreplay.c
9556 * gdbserver/remote-utils.c:
9557 * ser-tcp.c:
9558 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9559 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9560 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9561 'getaddrinfo' and 'freeaddrinfo' were not available before
9562 Windows XP, and mingw.org's MinGW headers by default define
9563 _WIN32_WINNT to 0x500.
9564
827f438f
GB
95652019-03-01 Gary Benson <gbenson@redhat.com>
9566
9567 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9568
92137da0
RO
95692019-02-28 Brian Vandenberg <phantall@gmail.com>
9570 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9571
9572 PR gdb/8527
9573 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9574 set_sigint_trap, clear_sigint_trap.
9575
799efbe8
PW
95762019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9577
9578 * target.c (target_detach): Clear the regcache and the
9579 frame cache.
9580
8ed25214
PA
95812019-02-27 Pedro Alves <palves@redhat.com>
9582
9583 * utils.c (set_screen_size): When we cap the height/width sizes,
9584 tweak the corresponding command variable to show "unlimited":
9585
23031e31
SJ
95862019-02-27 Saagar Jha <saagar@saagarjha.com>
9587 Pedro Alves <palves@redhat.com>
9588
9589 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9590 before calling rl_set_screen_size.
9591
6c28e44a
TT
95922019-02-27 Tom Tromey <tromey@adacore.com>
9593
9594 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9595 define.
9596 * python/py-value.c: Remove Python 2.4 workaround.
9597 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9598 workaround.
9599 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9600 Python 2.4 workaround.
9601 * python/python-internal.h: Remove Python 2.4 comment.
9602 (Py_ssize_t): Don't define.
9603 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9604 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9605 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9606 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9607 * python/python.c (do_start_initialization): Remove Python 2.4
9608 workaround.
9609 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9610 (print_children): Remove Python 2.4 workaround.
9611 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9612 workaround.
9613 (CHARBUFFERPROC_NAME): Remove.
9614 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9615 Python 2.4 workaround.
9616
2c3fc25d 96172019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 9618
2c3fc25d
KB
9619 * NEWS: Note minimum Python version.
9620
6ca62222
KB
96212019-02-27 Kevin Buettner <kevinb@redhat.com>
9622
9623 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9624 code from these functions. Remove corresponding ifdefs. Use
9625 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9626 Remove gotos and target of gotos.
9627 (infpy_search_memory): Likewise.
9628
f4bc7d2c
AB
96292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9630
9631 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9632 (hppa_gdbarch_init): Don't register deleted functions with
9633 gdbarch.
9634
9734a586
AB
96352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9636
9637 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9638 (h8300_unwind_sp): Delete.
9639 (h8300_dummy_id): Delete.
9640 (h8300_gdbarch_init): Don't register deleted functions with
9641 gdbarch.
9642
68b867f3
AB
96432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9644
9645 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9646 (ft32_unwind_pc): Delete.
9647 (ft32_unwind_sp): Delete.
9648 (ft32_gdbarch_init): Don't register deleted functions with
9649 gdbarch.
9650
2fbe7ad0
AB
96512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9652
9653 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9654 (frv_unwind_pc): Delete.
9655 (frv_unwind_sp): Delete.
9656 (frv_gdbarch_init): Don't register deleted functions with
9657 gdbarch.
9658
76055cbe
AB
96592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9660
9661 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9662 (riscv_unwind_pc): Delete.
9663 (riscv_unwind_sp): Delete.
9664 (riscv_gdbarch_init): Don't register deleted functions with
9665 gdbarch.
9666
4133e5a1
AB
96672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9668
9669 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9670 (csky_unwind_pc): Delete.
9671 (csky_unwind_sp): Delete.
9672 (csky_gdbarch_init): Don't register deleted functions with
9673 gdbarch.
9674
8010f576
AB
96752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9676
9677 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9678 (cris_unwind_pc): Delete.
9679 (cris_unwind_sp): Delete.
9680 (cris_gdbarch_init): Don't register deleted functions with
9681 gdbarch.
9682
b56bf084
AB
96832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9684
9685 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9686 (bfin_unwind_pc): Delete.
9687 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9688
a19a650f
AB
96892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9690
9691 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9692 (arm_unwind_pc): Delete.
9693 (arm_unwind_sp): Delete.
9694 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9695
f8278c3c
AB
96962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9697
9698 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9699 (arc_unwind_pc): Delete.
9700 (arc_unwind_sp): Delete.
9701 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9702
480e46cf
AB
97032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9704
9705 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9706 (alpha_unwind_pc): Delete.
9707 (alpha_gdbarch_init): Don't register deleted functions with
9708 gdbarch.
9709
7a995095
AB
97102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9711
9712 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9713 (aarch64_unwind_pc): Delete.
9714 (aarch64_unwind_sp): Delete.
9715 (aarch64_gdbarch_init): Don't register deleted functions with
9716 gdbarch.
9717
bf9a735e
AB
97182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9719
9720 * gdbtypes.c (type_align): Don't consider static members when
9721 computing structure alignment.
9722
5561fc30
AB
97232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9724
9725 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9726 return 0 for other types.
9727 * arch-utils.c (default_type_align): Always return 0.
9728 * gdbarch.h: Regenerate.
9729 * gdbarch.sh (type_align): Extend comment.
9730 * gdbtypes.c (type_align): Add additional comments, always call
9731 gdbarch_type_align before applying the default rules.
9732 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9733 generic code will then apply a suitable default.
9734 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9735 types, return 0 for other types.
9736
9335e75a
JB
97372019-02-27 Joel Brobecker <brobecker@adacore.com>
9738
9739 * NEWS: Create a new section for the next release branch.
9740 Rename the section of the current branch, now that it has
9741 been cut.
9742
3d34d8de
JB
97432019-02-27 Joel Brobecker <brobecker@adacore.com>
9744
9745 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9746 * version.in: Bump version to 8.3.50.DATE-git.
9747
143420fb
SM
97482019-02-26 Simon Marchi <simon.marchi@efficios.com>
9749
9750 * aix-thread.c (ptid_cmp): Remove unused variable.
9751 (get_signaled_thread): Likewise.
9752 (store_regs_user_thread): Likewise.
9753 (store_regs_kernel_thread): Likewise.
9754 (fetch_regs_kernel_thread): Remove shadowed variable.
9755
172fb711
AB
97562019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9757
9758 * features/riscv/32bit-cpu.xml: Add register numbers.
9759 * features/riscv/32bit-fpu.c: Regenerate.
9760 * features/riscv/32bit-fpu.xml: Add register numbers.
9761 * features/riscv/64bit-cpu.xml: Add register numbers.
9762 * features/riscv/64bit-fpu.c: Regenerate.
9763 * features/riscv/64bit-fpu.xml: Add register numbers.
9764
26c89782
KB
97652019-02-26 Kevin Buettner <kevinb@redhat.com>
9766
af54ade9 9767 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
9768 * python/py-value.c (convert_buffer_and_type_to_value): New
9769 function.
9770 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9771 Add support for handling an optional second argument. Call
9772 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
9773 * python/python-internal.h (Py_buffer_deleter): New struct.
9774 (Py_buffer_up): New typedef.
9775
0f58c9e8
JB
97762019-02-25 John Baldwin <jhb@FreeBSD.org>
9777
9778 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9779 instead of releasing ownership.
9780
0a0f4c01
JR
97812019-02-25 Jordan Rupprecht <rupprecht@google.com>
9782
9783 * dwarf2read.c (open_and_init_dwp_file): Call
9784 elf_numsections instead of bfd_count_sections to initialize
9785 dwp_file->num_sections.
9786
cd5a152c
TT
97872019-02-25 Tom Tromey <tromey@adacore.com>
9788
9789 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9790
8a6a8513
SDJ
97912019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9792
9793 * gcore.in: Add '--readnever' option when invoking GDB.
9794
04dcda9c
SM
97952019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9796
9797 * MAINTAINERS: Update my email address.
9798
07bc701d
SM
97992019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9800
9801 * build-id.c (build_id_to_debug_bfd_1): New function.
9802 (build_id_to_debug_bfd): Look for separate debug file in
9803 sysroot.
9804
c6f4a5d0
AB
98052019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9806
9807 * gdbarch.sh: Update the copyright year range that is placed into
9808 generated files.
9809
9600246d
KS
98102019-02-22 Keith Seitz <keiths@redhat.com>
9811
9812 PR symtab/23853
9813 * linespec.c (create_sals_line_offset): Search for the default
9814 symtab's filename instead of its fullname.
9815
7557a514
AH
98162019-02-21 Alan Hayward <alan.hayward@arm.com>
9817
9818 * NEWS: Update style defaults.
9819
ee2bcb0c
AH
98202019-02-21 Alan Hayward <alan.hayward@arm.com>
9821
9822 * main.c (captured_main_1): Disable styling in batch mode.
9823
0c95f9ed
TT
98242019-02-20 Tom Tromey <tom@tromey.com>
9825
9826 * symtab.c (symtab_symbol_info): Fix typos.
9827
c763b894
TT
98282019-02-20 Tom Tromey <tromey@adacore.com>
9829
9830 * findcmd.c (_initialize_mem_search): Use upper case for
9831 metasyntactic variables.
9832
0ef8a082
AH
98332019-02-20 Alan Hayward <alan.hayward@arm.com>
9834
9835 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9836 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9837
6caa91b6
SM
98382019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9839
9840 * top.h (source_file_name): Change to std::string.
9841 * top.c (source_file_name): Likewise.
9842 (command_line_input): Adjust.
9843 * cli/cli-script.c (script_from_file): Adjust.
9844
98814c6c
TT
98452019-02-19 Tom Tromey <tromey@adacore.com>
9846
9847 * ravenscar-thread.c
9848 (ravenscar_thread_target::update_thread_list): Don't call
9849 ada_build_task_list.
9850 * ada-lang.h (ada_build_task_list): Don't declare.
9851 * ada-tasks.c (struct ada_tasks_inferior_data)
9852 <task_list_valid_p>: Now bool.
9853 (read_known_tasks, ada_task_list_changed)
9854 (ada_tasks_invalidate_inferior_data): Update.
9855 (read_known_tasks_array): Return bool.
9856 (read_known_tasks_list): Likewise.
9857 (read_known_tasks): Return void.
9858 (ada_build_task_list): Now static.
9859
70cd633e
AB
98602019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9861
9862 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9863 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9864
040b3e95
PW
98652019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9866
9867 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9868 variant for ada_tasks_pspace_data_handle and
9869 ada_tasks_inferior_data_handle.
9870 (ada_tasks_pspace_data_cleanup): New function.
9871 (ada_tasks_inferior_data_cleanup): New function.
9872
9409233b
TT
98732019-02-17 Tom Tromey <tom@tromey.com>
9874
9875 * macrotab.h (macro_source_fullname): Return a std::string.
9876 * macrotab.c (macro_include, check_for_redefinition)
9877 (macro_undef, macro_lookup_definition, foreach_macro)
9878 (foreach_macro_in_scope): Update.
9879 (macro_source_fullname): Return a std::string.
9880 * macrocmd.c (show_pp_source_pos): Update.
9881
6506371f
TT
98822019-02-17 Tom Tromey <tom@tromey.com>
9883
9884 * macrocmd.c (show_pp_source_pos): Style the file names.
9885
0c820d67
TT
98862019-02-17 Tom Tromey <tom@tromey.com>
9887
9888 PR tui/24197:
9889 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9890
a0087920
TT
98912019-02-17 Tom Tromey <tom@tromey.com>
9892
9893 * ada-lang.c (user_select_syms): Use filtered printing.
9894 * utils.c (wrap_style): New global.
9895 (desired_style): Remove.
9896 (emit_style_escape): Add stream parameter.
9897 (set_output_style, reset_terminal_style, prompt_for_continue):
9898 Update.
9899 (flush_wrap_buffer): Only flush gdb_stdout.
9900 (wrap_here): Set wrap_style.
9901 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9902 treat escape sequences as a character. Change when wrap buffer is
9903 flushed.
9904 (fputs_styled): Do not set the output style when the default is
9905 requested.
9906 * ui-style.h (struct ui_file_style) <is_default>: New method.
9907 * source.c (print_source_lines_base): Emit escape sequences in one
9908 piece.
9909
75ba10dc
JB
99102019-02-17 Joel Brobecker <brobecker@adacore.com>
9911
9912 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9913 integers and enumeration types.
9914
a2cd4f14
JB
99152019-02-17 Joel Brobecker <brobecker@adacore.com>
9916
9917 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9918 instead of lookup_symbol_in_language
9919 (do_exact_match): New function.
9920 (ada_get_symbol_name_matcher): Return do_exact_match when
9921 doing a verbatim match.
9922
485b851b
TT
99232019-02-15 Tom Tromey <tromey@adacore.com>
9924
9925 * ravenscar-thread.c (ravenscar_thread_target::resume)
9926 (ravenscar_thread_target::wait): Special case wildcard requests.
9927
0b790b1e
TT
99282019-02-15 Tom Tromey <tromey@adacore.com>
9929
9930 * ravenscar-thread.c (base_ptid): Remove.
9931 (struct ravenscar_thread_target) <close>: New method.
9932 <m_base_ptid>: New member.
9933 <update_inferior_ptid, active_task, task_is_currently_active,
9934 runtime_initialized>: Declare methods.
9935 <ravenscar_thread_target>: Add constructor.
9936 (ravenscar_thread_target::task_is_currently_active)
9937 (ravenscar_thread_target::update_inferior_ptid)
9938 (ravenscar_runtime_initialized): Rename. Now methods.
9939 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9940 (ravenscar_thread_target::update_thread_list): Update.
9941 (ravenscar_thread_target::active_task): Now method.
9942 (ravenscar_thread_target::store_registers)
9943 (ravenscar_thread_target::prepare_to_store)
9944 (ravenscar_thread_target::prepare_to_store)
9945 (ravenscar_thread_target::mourn_inferior): Update.
9946 (ravenscar_inferior_created): Use "new" to create target.
9947 (ravenscar_thread_target::get_ada_task_ptid): Update.
9948 (_initialize_ravenscar): Don't initialize base_ptid.
9949 (ravenscar_ops): Remove global.
9950
dea57a62
TT
99512019-02-15 Tom Tromey <tromey@adacore.com>
9952
9953 * target.h (push_target): Declare new overload.
9954 * target.c (push_target): New overload, taking an rvalue reference.
9955 * remote.c (remote_target::open_1): Use push_target overload.
9956 * corelow.c (core_target_open): Use push_target overload.
9957
989f3c58
TT
99582019-02-15 Tom Tromey <tromey@adacore.com>
9959
9960 * ravenscar-thread.c (is_ravenscar_task)
9961 (ravenscar_task_is_currently_active): Return bool.
9962 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9963 (_initialize_ravenscar): Remove "(void)".
9964 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9965 Return bool.
9966
6cbcc006
TT
99672019-02-15 Tom Tromey <tromey@adacore.com>
9968
9969 * ravenscar-thread.c (ravenscar_runtime_initializer)
9970 (has_ravenscar_runtime, get_running_thread_id)
9971 (ravenscar_thread_target::resume): Fix indentation.
9972
7657f14d
TT
99732019-02-15 Tom Tromey <tromey@adacore.com>
9974
9975 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9976 from ravenscar_arch_ops.
9977 (sparc_ravenscar_ops::fetch_registers)
9978 (sparc_ravenscar_ops::store_registers): Now methods.
9979 (sparc_ravenscar_prepare_to_store): Remove.
9980 (sparc_ravenscar_ops): Redefine.
9981 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9982 methods and destructor. Remove members.
9983 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9984 (ravenscar_thread_target::store_registers)
9985 (ravenscar_thread_target::prepare_to_store): Update.
9986 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9987 Remove.
9988 (struct ppc_ravenscar_powerpc_ops): Derive from
9989 ravenscar_arch_ops.
9990 (ppc_ravenscar_powerpc_ops::fetch_registers)
9991 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9992 (ppc_ravenscar_powerpc_ops): Redefine.
9993 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9994 (ppc_ravenscar_e500_ops::fetch_registers)
9995 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9996 (ppc_ravenscar_e500_ops): Redefine.
9997 * aarch64-ravenscar-thread.c
9998 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9999 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10000 (aarch64_ravenscar_fetch_registers)
10001 (aarch64_ravenscar_store_registers): Now methods.
10002 (aarch64_ravenscar_ops): Redefine.
10003
5b6ea500
TT
100042019-02-15 Tom Tromey <tromey@adacore.com>
10005
10006 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10007 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10008 (ravenscar_thread_target::stopped_by_watchpoint)
10009 (ravenscar_thread_target::stopped_data_address)
10010 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10011
e397fd39
TT
100122019-02-15 Tom Tromey <tromey@adacore.com>
10013
10014 * ravenscar-thread.c: Fix some typos.
10015
cc12f4a8
TT
100162019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10017 Tom Tromey <tromey@adacore.com>
10018
10019 * ada-lang.c (ada_exception_sal): Change addr_string to a
10020 std::string.
10021 (create_ada_exception_catchpoint): Update.
10022
5f486660
TT
100232019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10024 Tom Tromey <tromey@adacore.com>
10025
10026 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10027 (bp_location_ops): Remove.
10028 (base_breakpoint_allocate_location): Update.
10029 (free_bp_location): Update.
10030 * ada-lang.c (class ada_catchpoint_location)
10031 <ada_catchpoint_location>: Remove ops parameter.
10032 (ada_catchpoint_location_dtor): Remove.
10033 (ada_catchpoint_location_ops): Remove.
10034 (allocate_location_exception): Update.
10035 * breakpoint.h (struct bp_location_ops): Remove.
10036 (class bp_location) <bp_location>: Remove bp_location_ops
10037 parameter.
10038 <~bp_location>: Add destructor.
10039 <ops>: Remove.
10040
b671c7fb
TS
100412019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10042 Pedro Alves <palves@redhat.com>
10043
10044 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10045 'PATH_MAX'.
10046
8071c5ce
DM
100472019-02-14 David Michael <fedora.dm0@gmail.com>
10048 Samuel Thibault <samuel.thibault@gnu.org>
10049 Thomas Schwinge <thomas@codesourcery.com>
10050
10051 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10052 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10053
b1041ae0
TS
100542019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10055
924514e1
TS
10056 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10057 (check_empty): Use "const char *".
10058
c29ee8d4
TS
10059 * gnu-nat.c (gnu_nat_target::detach): Instead of
10060 'detach_inferior (pid)' call
10061 'detach_inferior (find_inferior_pid (pid))'.
10062
6c6ef69f
TS
10063 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10064 'nat/fork-inferior.o'.
10065 * gnu-nat.c: #include "nat/fork-inferior.h".
10066
2d0a338c
TS
10067 * gnu-nat.c (gnu_nat_target::detach): Instead of
10068 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10069 * gnu-nat.h: #include "inf-child.h".
10070 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10071 'i386_gnu_nat_target::fetch_registers'.
10072 (gnu_store_registers): Rename/move to
10073 'i386_gnu_nat_target::store_registers'.
10074
cabb5f06
TS
10075 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10076 * gnu-nat.h (mach_thread_info): New function.
10077 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10078
b1041ae0
TS
10079 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10080
2988d01e
KF
100812019-02-14 Frederic Konrad <konrad@adacore.com>
10082
10083 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10084
c559d709
JB
100852019-02-14 Joel Brobecker <brobecker@adacore.com>
10086
10087 * windows-nat.c (windows_add_thread): Add new parameter
10088 "main_thread_p" with default value set to false. Update
10089 function documentation as well as all callers.
10090 (windows_delete_thread): Likewise.
10091 (fake_create_process): Update call to windows_add_thread.
10092 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10093 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10094 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10095 call to windows_delete_thread.
10096
007024cc
SM
100972019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10098
10099 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10100
f62318e9
JB
101012019-02-12 John Baldwin <jhb@FreeBSD.org>
10102
10103 * symfile.c (find_separate_debug_file): Use canonical path of
10104 sysroot with child_path instead of gdb_sysroot if it is valid.
10105
cd4b7848
JB
101062019-02-12 John Baldwin <jhb@FreeBSD.org>
10107
10108 * symfile.c (find_separate_debug_file): Use child_path to
10109 determine if an object file is under a sysroot.
10110
efac4bfe
JB
101112019-02-12 John Baldwin <jhb@FreeBSD.org>
10112
10113 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10114 unittests/child-path-selftests.c.
10115 * common/pathstuff.c (child_path): New function.
10116 * common/pathstuff.h (child_path): New prototype.
10117 * unittests/child-path-selftests.c: New file.
10118
402d2bfe
JB
101192019-02-12 John Baldwin <jhb@FreeBSD.org>
10120
10121 * symfile.c (find_separate_debug_file): Look for separate debug
10122 files in debug directories under the sysroot.
10123
1ed9f74e
PW
101242019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10125
10126 * symtab.h (struct minimal_symbol data_p): New const method.
10127 (struct minimal_symbol text_p): Likewise.
10128 * symtab.c (output_source_filename): Use file name style
10129 to print file name.
10130 (print_symbol_info): Likewise.
10131 (print_msymbol_info): Use address style to print addresses.
10132 Use function name style to print executable text symbols.
10133 (expand_symtab_containing_pc): Use data_p.
10134 (find_pc_sect_compunit_symtab): Likewise.
10135
2636d81d
PW
101362019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10137
10138 * breakpoint.c (describe_other_breakpoints): Use address style
10139 to print addresses.
10140 (say_where): Likewise.
10141
ac8c53cc
PW
101422019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10143
10144 * ada-typeprint.c (print_func_type): Print function name
10145 style to print function name.
10146 * c-typeprint.c (c_print_type_1): Likewise.
10147
ea638c43
AH
101482019-02-11 Alan Hayward <alan.hayward@arm.com>
10149
10150 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10151 for execve.
10152
ab759ca8
PW
101532019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10154
10155 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10156 type_stack.
10157
aff29d1c
JB
101582019-02-10 Joel Brobecker <brobecker@adacore.com>
10159
10160 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10161 TYPE_CODE_REF types.
10162
617126bc
JW
101632019-02-08 Jim Wilson <jimw@sifive.com>
10164
10165 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10166 (riscv_linux_fregset): New.
10167 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10168
46e3ed7f
TT
101692019-02-07 Tom Tromey <tom@tromey.com>
10170
10171 * thread.c (thread_cancel_execution_command): Update.
10172 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10173 methods.
10174 (struct thread_fsm_ops): Remove.
10175 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10176 (thread_fsm_should_stop, thread_fsm_return_value)
10177 (thread_fsm_set_finished, thread_fsm_finished_p)
10178 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10179 Don't declare.
10180 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10181 * infrun.c (clear_proceed_status_thread)
10182 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10183 (print_stop_event): Update.
10184 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10185 Add constructor.
10186 (step_command_fsm_ops): Remove.
10187 (new_step_command_fsm): Remove.
10188 (step_1): Update.
10189 (step_command_fsm::should_stop): Rename from
10190 step_command_fsm_should_stop.
10191 (step_command_fsm::clean_up): Rename from
10192 step_command_fsm_clean_up.
10193 (step_command_fsm::do_async_reply_reason): Rename from
10194 step_command_fsm_async_reply_reason.
10195 (struct until_next_fsm): Inherit from thread_fsm. Add
10196 constructor.
10197 (until_next_fsm_ops): Remove.
10198 (new_until_next_fsm): Remove.
10199 (until_next_fsm::should_stop): Rename from
10200 until_next_fsm_should_stop.
10201 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10202 (until_next_fsm::do_async_reply_reason): Rename from
10203 until_next_fsm_async_reply_reason.
10204 (struct finish_command_fsm): Inherit from thread_fsm. Add
10205 constructor. Change type of breakpoint.
10206 (finish_command_fsm_ops): Remove.
10207 (new_finish_command_fsm): Remove.
10208 (finish_command_fsm::should_stop): Rename from
10209 finish_command_fsm_should_stop.
10210 (finish_command_fsm::clean_up): Rename from
10211 finish_command_fsm_clean_up.
10212 (finish_command_fsm::return_value): Rename from
10213 finish_command_fsm_return_value.
10214 (finish_command_fsm::do_async_reply_reason): Rename from
10215 finish_command_fsm_async_reply_reason.
10216 (finish_command): Update.
10217 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10218 Add constructor.
10219 (call_thread_fsm_ops): Remove.
10220 (call_thread_fsm::call_thread_fsm): Rename from
10221 new_call_thread_fsm.
10222 (call_thread_fsm::should_stop): Rename from
10223 call_thread_fsm_should_stop.
10224 (call_thread_fsm::should_notify_stop): Rename from
10225 call_thread_fsm_should_notify_stop.
10226 (run_inferior_call, call_function_by_hand_dummy): Update.
10227 * cli/cli-interp.c (should_print_stop_to_console): Update.
10228 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10229 Add constructor. Change type of location_breakpoint,
10230 caller_breakpoint.
10231 (until_break_fsm_ops): Remove.
10232 (new_until_break_fsm): Remove.
10233 (until_break_fsm::should_stop): Rename from
10234 until_break_fsm_should_stop.
10235 (until_break_fsm::clean_up): Rename from
10236 until_break_fsm_clean_up.
10237 (until_break_fsm::do_async_reply_reason): Rename from
10238 until_break_fsm_async_reply_reason.
10239 (until_break_command): Update.
10240 * thread-fsm.c: Remove.
10241 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10242
1a5c2598
TT
102432019-02-07 Tom Tromey <tom@tromey.com>
10244
10245 * yy-remap.h: Add include guard.
10246 * xtensa-tdep.h: Add include guard.
10247 * xcoffread.h: Rename include guard.
10248 * varobj-iter.h: Add include guard.
10249 * tui/tui.h: Rename include guard.
10250 * tui/tui-winsource.h: Rename include guard.
10251 * tui/tui-wingeneral.h: Rename include guard.
10252 * tui/tui-windata.h: Rename include guard.
10253 * tui/tui-win.h: Rename include guard.
10254 * tui/tui-stack.h: Rename include guard.
10255 * tui/tui-source.h: Rename include guard.
10256 * tui/tui-regs.h: Rename include guard.
10257 * tui/tui-out.h: Rename include guard.
10258 * tui/tui-layout.h: Rename include guard.
10259 * tui/tui-io.h: Rename include guard.
10260 * tui/tui-hooks.h: Rename include guard.
10261 * tui/tui-file.h: Rename include guard.
10262 * tui/tui-disasm.h: Rename include guard.
10263 * tui/tui-data.h: Rename include guard.
10264 * tui/tui-command.h: Rename include guard.
10265 * tic6x-tdep.h: Add include guard.
10266 * target/waitstatus.h: Rename include guard.
10267 * target/wait.h: Rename include guard.
10268 * target/target.h: Rename include guard.
10269 * target/resume.h: Rename include guard.
10270 * target-float.h: Rename include guard.
10271 * stabsread.h: Add include guard.
10272 * rs6000-tdep.h: Add include guard.
10273 * riscv-fbsd-tdep.h: Add include guard.
10274 * regformats/regdef.h: Rename include guard.
10275 * record.h: Rename include guard.
10276 * python/python.h: Rename include guard.
10277 * python/python-internal.h: Rename include guard.
10278 * python/py-stopevent.h: Rename include guard.
10279 * python/py-ref.h: Rename include guard.
10280 * python/py-record.h: Rename include guard.
10281 * python/py-record-full.h: Rename include guard.
10282 * python/py-record-btrace.h: Rename include guard.
10283 * python/py-instruction.h: Rename include guard.
10284 * python/py-events.h: Rename include guard.
10285 * python/py-event.h: Rename include guard.
10286 * procfs.h: Add include guard.
10287 * proc-utils.h: Add include guard.
10288 * p-lang.h: Add include guard.
10289 * or1k-tdep.h: Rename include guard.
10290 * observable.h: Rename include guard.
10291 * nto-tdep.h: Rename include guard.
10292 * nat/x86-linux.h: Rename include guard.
10293 * nat/x86-linux-dregs.h: Rename include guard.
10294 * nat/x86-gcc-cpuid.h: Add include guard.
10295 * nat/x86-dregs.h: Rename include guard.
10296 * nat/x86-cpuid.h: Rename include guard.
10297 * nat/ppc-linux.h: Rename include guard.
10298 * nat/mips-linux-watch.h: Rename include guard.
10299 * nat/linux-waitpid.h: Rename include guard.
10300 * nat/linux-ptrace.h: Rename include guard.
10301 * nat/linux-procfs.h: Rename include guard.
10302 * nat/linux-osdata.h: Rename include guard.
10303 * nat/linux-nat.h: Rename include guard.
10304 * nat/linux-namespaces.h: Rename include guard.
10305 * nat/linux-btrace.h: Rename include guard.
10306 * nat/glibc_thread_db.h: Rename include guard.
10307 * nat/gdb_thread_db.h: Rename include guard.
10308 * nat/gdb_ptrace.h: Rename include guard.
10309 * nat/fork-inferior.h: Rename include guard.
10310 * nat/amd64-linux-siginfo.h: Rename include guard.
10311 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10312 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10313 * nat/aarch64-linux.h: Rename include guard.
10314 * nat/aarch64-linux-hw-point.h: Rename include guard.
10315 * mn10300-tdep.h: Add include guard.
10316 * mips-linux-tdep.h: Add include guard.
10317 * mi/mi-parse.h: Rename include guard.
10318 * mi/mi-out.h: Rename include guard.
10319 * mi/mi-main.h: Rename include guard.
10320 * mi/mi-interp.h: Rename include guard.
10321 * mi/mi-getopt.h: Rename include guard.
10322 * mi/mi-console.h: Rename include guard.
10323 * mi/mi-common.h: Rename include guard.
10324 * mi/mi-cmds.h: Rename include guard.
10325 * mi/mi-cmd-break.h: Rename include guard.
10326 * m2-lang.h: Add include guard.
10327 * location.h: Rename include guard.
10328 * linux-record.h: Rename include guard.
10329 * linux-nat.h: Add include guard.
10330 * linux-fork.h: Add include guard.
10331 * i386-darwin-tdep.h: Rename include guard.
10332 * hppa-linux-offsets.h: Add include guard.
10333 * guile/guile.h: Rename include guard.
10334 * guile/guile-internal.h: Rename include guard.
10335 * gnu-nat.h: Rename include guard.
10336 * gdb-stabs.h: Rename include guard.
10337 * frv-tdep.h: Add include guard.
10338 * f-lang.h: Add include guard.
10339 * event-loop.h: Add include guard.
10340 * darwin-nat.h: Rename include guard.
10341 * cp-abi.h: Rename include guard.
10342 * config/sparc/nm-sol2.h: Rename include guard.
10343 * config/nm-nto.h: Rename include guard.
10344 * config/nm-linux.h: Add include guard.
10345 * config/i386/nm-i386gnu.h: Rename include guard.
10346 * config/djgpp/nl_types.h: Rename include guard.
10347 * config/djgpp/langinfo.h: Rename include guard.
10348 * compile/gcc-cp-plugin.h: Add include guard.
10349 * compile/gcc-c-plugin.h: Add include guard.
10350 * compile/compile.h: Rename include guard.
10351 * compile/compile-object-run.h: Rename include guard.
10352 * compile/compile-object-load.h: Rename include guard.
10353 * compile/compile-internal.h: Rename include guard.
10354 * compile/compile-cplus.h: Rename include guard.
10355 * compile/compile-c.h: Rename include guard.
10356 * common/xml-utils.h: Rename include guard.
10357 * common/x86-xstate.h: Rename include guard.
10358 * common/version.h: Rename include guard.
10359 * common/vec.h: Rename include guard.
10360 * common/tdesc.h: Rename include guard.
10361 * common/selftest.h: Rename include guard.
10362 * common/scoped_restore.h: Rename include guard.
10363 * common/scoped_mmap.h: Rename include guard.
10364 * common/scoped_fd.h: Rename include guard.
10365 * common/safe-iterator.h: Rename include guard.
10366 * common/run-time-clock.h: Rename include guard.
10367 * common/refcounted-object.h: Rename include guard.
10368 * common/queue.h: Rename include guard.
10369 * common/ptid.h: Rename include guard.
10370 * common/print-utils.h: Rename include guard.
10371 * common/preprocessor.h: Rename include guard.
10372 * common/pathstuff.h: Rename include guard.
10373 * common/observable.h: Rename include guard.
10374 * common/netstuff.h: Rename include guard.
10375 * common/job-control.h: Rename include guard.
10376 * common/host-defs.h: Rename include guard.
10377 * common/gdb_wait.h: Rename include guard.
10378 * common/gdb_vecs.h: Rename include guard.
10379 * common/gdb_unlinker.h: Rename include guard.
10380 * common/gdb_unique_ptr.h: Rename include guard.
10381 * common/gdb_tilde_expand.h: Rename include guard.
10382 * common/gdb_sys_time.h: Rename include guard.
10383 * common/gdb_string_view.h: Rename include guard.
10384 * common/gdb_splay_tree.h: Rename include guard.
10385 * common/gdb_setjmp.h: Rename include guard.
10386 * common/gdb_ref_ptr.h: Rename include guard.
10387 * common/gdb_optional.h: Rename include guard.
10388 * common/gdb_locale.h: Rename include guard.
10389 * common/gdb_assert.h: Rename include guard.
10390 * common/filtered-iterator.h: Rename include guard.
10391 * common/filestuff.h: Rename include guard.
10392 * common/fileio.h: Rename include guard.
10393 * common/environ.h: Rename include guard.
10394 * common/common-utils.h: Rename include guard.
10395 * common/common-types.h: Rename include guard.
10396 * common/common-regcache.h: Rename include guard.
10397 * common/common-inferior.h: Rename include guard.
10398 * common/common-gdbthread.h: Rename include guard.
10399 * common/common-exceptions.h: Rename include guard.
10400 * common/common-defs.h: Rename include guard.
10401 * common/common-debug.h: Rename include guard.
10402 * common/cleanups.h: Rename include guard.
10403 * common/buffer.h: Rename include guard.
10404 * common/btrace-common.h: Rename include guard.
10405 * common/break-common.h: Rename include guard.
10406 * cli/cli-utils.h: Rename include guard.
10407 * cli/cli-style.h: Rename include guard.
10408 * cli/cli-setshow.h: Rename include guard.
10409 * cli/cli-script.h: Rename include guard.
10410 * cli/cli-interp.h: Rename include guard.
10411 * cli/cli-decode.h: Rename include guard.
10412 * cli/cli-cmds.h: Rename include guard.
10413 * charset-list.h: Add include guard.
10414 * buildsym-legacy.h: Rename include guard.
10415 * bfin-tdep.h: Add include guard.
10416 * ax.h: Rename include guard.
10417 * arm-linux-tdep.h: Add include guard.
10418 * arm-fbsd-tdep.h: Add include guard.
10419 * arch/xtensa.h: Rename include guard.
10420 * arch/tic6x.h: Add include guard.
10421 * arch/i386.h: Add include guard.
10422 * arch/arm.h: Rename include guard.
10423 * arch/arm-linux.h: Rename include guard.
10424 * arch/arm-get-next-pcs.h: Rename include guard.
10425 * arch/amd64.h: Add include guard.
10426 * arch/aarch64-insn.h: Rename include guard.
10427 * arch-utils.h: Rename include guard.
10428 * annotate.h: Add include guard.
10429 * amd64-darwin-tdep.h: Rename include guard.
10430 * aarch64-linux-tdep.h: Add include guard.
10431 * aarch64-fbsd-tdep.h: Add include guard.
10432 * aarch32-linux-nat.h: Add include guard.
10433
ab9268d2
PW
104342019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10435
10436 * macrotab.c (macro_define_internal): New function that
10437 factorizes macro_define_object_internal and macro_define_function
10438 code.
10439 (macro_define_object_internal): Use macro_define_internal.
10440 (macro_define_function): Likewise.
10441
bb0da2b4
PW
104422019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10443
10444 * macrocmd.c (extract_identifier): Return
10445 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10446 callers.
10447
424eb552
JB
104482019-02-06 John Baldwin <jhb@FreeBSD.org>
10449
10450 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10451
1688cb29
TT
104522019-02-05 Tom Tromey <tom@tromey.com>
10453
10454 * target.c (target_stack::unpush): Move assertion earlier.
10455
b5eba2d8
TT
104562019-01-30 Tom Tromey <tom@tromey.com>
10457
10458 PR python/23615:
10459 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10460 (gdbpy_parse_and_eval): Likewise.
10461 * python/python-internal.h (gdbpy_allow_threads): New class.
10462
7054e2ff
JB
104632019-01-28 John Baldwin <jhb@FreeBSD.org>
10464
10465 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10466 (aarch64_fbsd_fpregmap): Move earlier.
10467 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10468 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10469 instead of individual calls to trad_frame_set_reg_addr.
10470 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10471 earlier.
10472 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10473 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10474 instead of individual calls to trad_frame_set_reg_addr.
10475
36c25ffa
AH
104762019-01-28 Alan Hayward <alan.hayward@arm.com>
10477
10478 * CONTRIBUTE: Replace contribution list with wiki link.
10479
a0707f3c
TT
104802019-01-25 Tom Tromey <tom@tromey.com>
10481
10482 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10483
0747795c
TT
104842019-01-25 Tom Tromey <tom@tromey.com>
10485
10486 * xtensa-linux-nat.c: Fix common/ includes.
10487 * xml-support.h: Fix common/ includes.
10488 * xml-support.c: Fix common/ includes.
10489 * x86-linux-nat.c: Fix common/ includes.
10490 * windows-nat.c: Fix common/ includes.
10491 * varobj.h: Fix common/ includes.
10492 * varobj.c: Fix common/ includes.
10493 * value.c: Fix common/ includes.
10494 * valops.c: Fix common/ includes.
10495 * utils.c: Fix common/ includes.
10496 * unittests/xml-utils-selftests.c: Fix common/ includes.
10497 * unittests/utils-selftests.c: Fix common/ includes.
10498 * unittests/unpack-selftests.c: Fix common/ includes.
10499 * unittests/tracepoint-selftests.c: Fix common/ includes.
10500 * unittests/style-selftests.c: Fix common/ includes.
10501 * unittests/string_view-selftests.c: Fix common/ includes.
10502 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10503 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10504 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10505 * unittests/rsp-low-selftests.c: Fix common/ includes.
10506 * unittests/parse-connection-spec-selftests.c: Fix common/
10507 includes.
10508 * unittests/optional-selftests.c: Fix common/ includes.
10509 * unittests/offset-type-selftests.c: Fix common/ includes.
10510 * unittests/observable-selftests.c: Fix common/ includes.
10511 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10512 * unittests/memrange-selftests.c: Fix common/ includes.
10513 * unittests/memory-map-selftests.c: Fix common/ includes.
10514 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10515 * unittests/function-view-selftests.c: Fix common/ includes.
10516 * unittests/environ-selftests.c: Fix common/ includes.
10517 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10518 * unittests/common-utils-selftests.c: Fix common/ includes.
10519 * unittests/cli-utils-selftests.c: Fix common/ includes.
10520 * unittests/array-view-selftests.c: Fix common/ includes.
10521 * ui-file.c: Fix common/ includes.
10522 * tui/tui-io.c: Fix common/ includes.
10523 * tracepoint.h: Fix common/ includes.
10524 * tracepoint.c: Fix common/ includes.
10525 * tracefile-tfile.c: Fix common/ includes.
10526 * top.h: Fix common/ includes.
10527 * top.c: Fix common/ includes.
10528 * thread.c: Fix common/ includes.
10529 * target/waitstatus.h: Fix common/ includes.
10530 * target/waitstatus.c: Fix common/ includes.
10531 * target.h: Fix common/ includes.
10532 * target.c: Fix common/ includes.
10533 * target-memory.c: Fix common/ includes.
10534 * target-descriptions.c: Fix common/ includes.
10535 * symtab.h: Fix common/ includes.
10536 * symfile.c: Fix common/ includes.
10537 * stap-probe.c: Fix common/ includes.
10538 * spu-linux-nat.c: Fix common/ includes.
10539 * sparc-nat.c: Fix common/ includes.
10540 * source.c: Fix common/ includes.
10541 * solib.c: Fix common/ includes.
10542 * solib-target.c: Fix common/ includes.
10543 * ser-unix.c: Fix common/ includes.
10544 * ser-tcp.c: Fix common/ includes.
10545 * ser-pipe.c: Fix common/ includes.
10546 * ser-base.c: Fix common/ includes.
10547 * selftest-arch.c: Fix common/ includes.
10548 * s12z-tdep.c: Fix common/ includes.
10549 * rust-exp.y: Fix common/ includes.
10550 * rs6000-aix-tdep.c: Fix common/ includes.
10551 * riscv-tdep.c: Fix common/ includes.
10552 * remote.c: Fix common/ includes.
10553 * remote-notif.h: Fix common/ includes.
10554 * remote-fileio.h: Fix common/ includes.
10555 * remote-fileio.c: Fix common/ includes.
10556 * regcache.h: Fix common/ includes.
10557 * regcache.c: Fix common/ includes.
10558 * record-btrace.c: Fix common/ includes.
10559 * python/python.c: Fix common/ includes.
10560 * python/py-type.c: Fix common/ includes.
10561 * python/py-inferior.c: Fix common/ includes.
10562 * progspace.h: Fix common/ includes.
10563 * producer.c: Fix common/ includes.
10564 * procfs.c: Fix common/ includes.
10565 * proc-api.c: Fix common/ includes.
10566 * printcmd.c: Fix common/ includes.
10567 * ppc-linux-nat.c: Fix common/ includes.
10568 * parser-defs.h: Fix common/ includes.
10569 * osdata.c: Fix common/ includes.
10570 * obsd-nat.c: Fix common/ includes.
10571 * nat/x86-linux.c: Fix common/ includes.
10572 * nat/x86-linux-dregs.c: Fix common/ includes.
10573 * nat/x86-dregs.h: Fix common/ includes.
10574 * nat/x86-dregs.c: Fix common/ includes.
10575 * nat/ppc-linux.c: Fix common/ includes.
10576 * nat/mips-linux-watch.h: Fix common/ includes.
10577 * nat/mips-linux-watch.c: Fix common/ includes.
10578 * nat/linux-waitpid.c: Fix common/ includes.
10579 * nat/linux-ptrace.h: Fix common/ includes.
10580 * nat/linux-ptrace.c: Fix common/ includes.
10581 * nat/linux-procfs.c: Fix common/ includes.
10582 * nat/linux-personality.c: Fix common/ includes.
10583 * nat/linux-osdata.c: Fix common/ includes.
10584 * nat/linux-namespaces.c: Fix common/ includes.
10585 * nat/linux-btrace.h: Fix common/ includes.
10586 * nat/linux-btrace.c: Fix common/ includes.
10587 * nat/fork-inferior.c: Fix common/ includes.
10588 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10589 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10590 * nat/aarch64-linux.c: Fix common/ includes.
10591 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10592 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10593 * namespace.h: Fix common/ includes.
10594 * mips-linux-tdep.c: Fix common/ includes.
10595 * minsyms.c: Fix common/ includes.
10596 * mi/mi-parse.h: Fix common/ includes.
10597 * mi/mi-main.c: Fix common/ includes.
10598 * mi/mi-cmd-env.c: Fix common/ includes.
10599 * memrange.h: Fix common/ includes.
10600 * memattr.c: Fix common/ includes.
10601 * maint.h: Fix common/ includes.
10602 * maint.c: Fix common/ includes.
10603 * main.c: Fix common/ includes.
10604 * machoread.c: Fix common/ includes.
10605 * location.c: Fix common/ includes.
10606 * linux-thread-db.c: Fix common/ includes.
10607 * linux-nat.c: Fix common/ includes.
10608 * linux-fork.c: Fix common/ includes.
10609 * inline-frame.c: Fix common/ includes.
10610 * infrun.c: Fix common/ includes.
10611 * inflow.c: Fix common/ includes.
10612 * inferior.h: Fix common/ includes.
10613 * inferior.c: Fix common/ includes.
10614 * infcmd.c: Fix common/ includes.
10615 * inf-ptrace.c: Fix common/ includes.
10616 * inf-child.c: Fix common/ includes.
10617 * ia64-linux-nat.c: Fix common/ includes.
10618 * i387-tdep.c: Fix common/ includes.
10619 * i386-tdep.c: Fix common/ includes.
10620 * i386-linux-tdep.c: Fix common/ includes.
10621 * i386-linux-nat.c: Fix common/ includes.
10622 * i386-go32-tdep.c: Fix common/ includes.
10623 * i386-fbsd-tdep.c: Fix common/ includes.
10624 * i386-fbsd-nat.c: Fix common/ includes.
10625 * guile/scm-type.c: Fix common/ includes.
10626 * guile/guile.c: Fix common/ includes.
10627 * go32-nat.c: Fix common/ includes.
10628 * gnu-nat.c: Fix common/ includes.
10629 * gdbthread.h: Fix common/ includes.
10630 * gdbarch-selftests.c: Fix common/ includes.
10631 * gdb_usleep.c: Fix common/ includes.
10632 * gdb_select.h: Fix common/ includes.
10633 * gdb_bfd.c: Fix common/ includes.
10634 * gcore.c: Fix common/ includes.
10635 * fork-child.c: Fix common/ includes.
10636 * findvar.c: Fix common/ includes.
10637 * fbsd-nat.c: Fix common/ includes.
10638 * event-top.c: Fix common/ includes.
10639 * event-loop.c: Fix common/ includes.
10640 * dwarf2read.c: Fix common/ includes.
10641 * dwarf2loc.c: Fix common/ includes.
10642 * dwarf2-frame.c: Fix common/ includes.
10643 * dwarf-index-cache.c: Fix common/ includes.
10644 * dtrace-probe.c: Fix common/ includes.
10645 * disasm-selftests.c: Fix common/ includes.
10646 * defs.h: Fix common/ includes.
10647 * csky-tdep.c: Fix common/ includes.
10648 * cp-valprint.c: Fix common/ includes.
10649 * cp-support.h: Fix common/ includes.
10650 * cp-support.c: Fix common/ includes.
10651 * corelow.c: Fix common/ includes.
10652 * completer.h: Fix common/ includes.
10653 * completer.c: Fix common/ includes.
10654 * compile/compile.c: Fix common/ includes.
10655 * compile/compile-loc2c.c: Fix common/ includes.
10656 * compile/compile-cplus-types.c: Fix common/ includes.
10657 * compile/compile-cplus-symbols.c: Fix common/ includes.
10658 * command.h: Fix common/ includes.
10659 * cli/cli-dump.c: Fix common/ includes.
10660 * cli/cli-cmds.c: Fix common/ includes.
10661 * charset.c: Fix common/ includes.
10662 * build-id.c: Fix common/ includes.
10663 * btrace.h: Fix common/ includes.
10664 * btrace.c: Fix common/ includes.
10665 * breakpoint.h: Fix common/ includes.
10666 * breakpoint.c: Fix common/ includes.
10667 * ax.h:
10668 (enum agent_op): Fix common/ includes.
10669 * ax-general.c (struct aop_map): Fix common/ includes.
10670 * ax-gdb.c: Fix common/ includes.
10671 * auxv.c: Fix common/ includes.
10672 * auto-load.c: Fix common/ includes.
10673 * arm-tdep.c: Fix common/ includes.
10674 * arch/riscv.c: Fix common/ includes.
10675 * arch/ppc-linux-common.c: Fix common/ includes.
10676 * arch/i386.c: Fix common/ includes.
10677 * arch/arm.c: Fix common/ includes.
10678 * arch/arm-linux.c: Fix common/ includes.
10679 * arch/arm-get-next-pcs.c: Fix common/ includes.
10680 * arch/amd64.c: Fix common/ includes.
10681 * arch/aarch64.c: Fix common/ includes.
10682 * arch/aarch64-insn.c: Fix common/ includes.
10683 * arch-utils.c: Fix common/ includes.
10684 * amd64-windows-tdep.c: Fix common/ includes.
10685 * amd64-tdep.c: Fix common/ includes.
10686 * amd64-sol2-tdep.c: Fix common/ includes.
10687 * amd64-obsd-tdep.c: Fix common/ includes.
10688 * amd64-nbsd-tdep.c: Fix common/ includes.
10689 * amd64-linux-tdep.c: Fix common/ includes.
10690 * amd64-linux-nat.c: Fix common/ includes.
10691 * amd64-fbsd-tdep.c: Fix common/ includes.
10692 * amd64-fbsd-nat.c: Fix common/ includes.
10693 * amd64-dicos-tdep.c: Fix common/ includes.
10694 * amd64-darwin-tdep.c: Fix common/ includes.
10695 * agent.c: Fix common/ includes.
10696 * ada-lang.h: Fix common/ includes.
10697 * ada-lang.c: Fix common/ includes.
10698 * aarch64-tdep.c: Fix common/ includes.
10699
2f5c153e
TT
107002019-01-25 Tom Tromey <tom@tromey.com>
10701
10702 * common/create-version.sh: Use common/version.h.
10703
adc6a863
PA
107042019-01-24 Pedro Alves <palves@redhat.com>
10705
10706 * infrun.c (signal_stop, signal_print, signal_program)
10707 (signal_catch, signal_pass): Now arrays instead of pointers.
10708 (update_signals_program_target, do_target_resume)
10709 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10710 * linux-nat.c (linux_nat_target::pass_signals)
10711 (linux_nat_target::create_inferior, linux_nat_target::attach):
10712 Adjust.
10713 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10714 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10715 * procfs.c (procfs_target::pass_signals): Adjust.
10716 * record-full.c (record_full_target::resume): Adjust.
10717 * remote.c (remote_target::pass_signals)
10718 (remote_target::program_signals): Adjust.
10719 * target-debug.h (target_debug_print_signals): Now takes a
10720 gdb::array_view as parameter. Adjust.
10721 * target.h (target_ops) <pass_signals, program_signals>: Replace
10722 pointer and length parameters with gdb::array_view.
10723 (target_pass_signals, target_program_signals): Likewise.
10724 * target-delegates.c: Regenerate.
10725
3046d67a
PA
107262019-01-24 Pedro Alves <palves@redhat.com>
10727
10728 * common/forward-scope-exit.h
10729 (forward_scope_exit::forward_scope_exit): Pass arguments to
10730 m_bind_function directly, instead of creating a std::bind and
10731 copying that.
10732
353229bf
AH
107332019-01-24 Alan Hayward <alan.hayward@arm.com>
10734
10735 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10736 for static members.
10737 (pass_in_v_vfp_candidate): Likewise.
10738
311dc83a
TT
107392019-01-23 Tom Tromey <tom@tromey.com>
10740 Pedro Alves <palves@redhat.com>
10741
10742 * regcache.c (class regcache_invalidator): Remove.
10743 (regcache::raw_write): Use make_scope_exit.
10744
296bd123
TT
107452019-01-23 Tom Tromey <tom@tromey.com>
10746
10747 * ui-out.h (class ui_out_emit_type): Update comment.
10748
979a0d13
TT
107492019-01-23 Tom Tromey <tom@tromey.com>
10750
10751 * infrun.c (fetch_inferior_event): Update comment.
10752
d238133d
TT
107532019-01-23 Tom Tromey <tom@tromey.com>
10754 Pedro Alves <palves@redhat.com>
10755
10756 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10757 parameter.
10758 (fetch_inferior_event): Use SCOPE_EXIT.
10759
10760
9885e6bb
TT
107612019-01-23 Tom Tromey <tom@tromey.com>
10762 Pedro Alves <palves@redhat.com>
10763
10764 * infrun.c (disable_thread_events): Delete.
10765 (stop_all_threads): Use SCOPE_EXIT.
10766
286526c1
TT
107672019-01-23 Tom Tromey <tom@tromey.com>
10768 Pedro Alves <palves@redhat.com>
10769
10770 * symfile.c: Include forward-scope-exit.h.
10771 (clear_symtab_users_cleanup): Replace forward declaration with
10772 a FORWARD_SCOPE_EXIT.
10773 (syms_from_objfile_1): Use the forward_scope_exit and
10774 gdb::optional instead of cleanup_function.
10775 (reread_symbols): Use the forward_scope_exit instead of
10776 cleanup_function.
10777 (clear_symtab_users_cleanup): Remove function.
10778
1db93f14
TT
107792019-01-23 Tom Tromey <tom@tromey.com>
10780 Pedro Alves <palves@redhat.com>
10781
10782 * linux-nat.c: Include scope-exit.h.
10783 (cleanup_target_stop): Remove.
10784 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10785 SCOPE_EXIT.
10786
2cc83d1e
TT
107872019-01-23 Tom Tromey <tom@tromey.com>
10788 Pedro Alves <palves@redhat.com>
10789
10790 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10791 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10792
694c6bf5
TT
107932019-01-23 Tom Tromey <tom@tromey.com>
10794 Andrew Burgess <andrew.burgess@embecosm.com>
10795 Pedro Alves <palves@redhat.com>
10796
10797 * infrun.c (fetch_inferior_event): Use scope_exit.
10798 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10799 * top.c (execute_command): Use scope_exit.
10800 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10801 * utils.c (do_bpstat_clear_actions_cleanup)
10802 (make_bpstat_clear_actions_cleanup): Remove.
10803
4c41382a
TT
108042019-01-23 Tom Tromey <tom@tromey.com>
10805 Pedro Alves <palves@redhat.com>
10806
10807 * infrun.c: Include "common/scope-exit.h"
10808 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10809 (wait_for_inferior): Use SCOPE_EXIT.
10810 (fetch_inferior_event): Use scope_exit.
10811
89f8fb50
TT
108122019-01-23 Tom Tromey <tom@tromey.com>
10813 Pedro Alves <palves@redhat.com>
10814
10815 * breakpoint.c (create_breakpoint): Remove cleanup.
10816
5419bdae
TT
108172019-01-23 Tom Tromey <tom@tromey.com>
10818 Andrew Burgess <andrew.burgess@embecosm.com>
10819 Pedro Alves <palves@redhat.com>
10820
e587ef42
PA
108212019-01-23 Pedro Alves <palves@redhat.com>
10822
10823 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10824
77f0e74c
PA
108252019-01-23 Pedro Alves <palves@redhat.com>
10826 Andrew Burgess <andrew.burgess@embecosm.com>
10827
10828 * gdbthread.h: Include "common/forward-scope-exit.h".
10829 (scoped_finish_thread_state): Redefine custom class in terms of
10830 forward_scope_exit.
10831
5b9b3e53
PA
108322019-01-23 Pedro Alves <palves@redhat.com>
10833 Andrew Burgess <andrew.burgess@embecosm.com>
10834
10835 * common/forward-scope-exit.h: New file.
10836
54b65c9b
PA
108372019-01-23 Pedro Alves <palves@redhat.com>
10838 Andrew Burgess <andrew.burgess@embecosm.com>
10839 Tom Tromey <tom@tromey.com>
10840
10841 * common/scope-exit.h: New file.
10842
cf08fb29
PA
108432019-01-23 Pedro Alves <palves@redhat.com>
10844
10845 * common/preprocessor.h (ESC): Rename to ...
10846 (ESC_PARENS): ... this.
10847 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10848 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10849
ae73e2e2
TT
108502019-01-23 Tom Tromey <tom@tromey.com>
10851
10852 * language.h (class scoped_switch_to_sym_language_if_auto):
10853 Initialize m_lang in both cases.
10854
6594e122
AH
108552019-01-23 Alan Hayward <alan.hayward@arm.com>
10856
10857 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10858 with XCNEW.
10859
a7c9855d
TT
108602019-01-22 Tom Tromey <tom@tromey.com>
10861
10862 * corelow.c: Do not include sys/file.h.
10863
93cc1d53
TT
108642019-01-22 Tom Tromey <tom@tromey.com>
10865
10866 * tui/tui-wingeneral.h: Include gdb_curses.h.
10867
38561778
TT
108682019-01-22 Tom Tromey <tom@tromey.com>
10869
10870 * source-cache.h (class source_cache) <get_source_lines,
10871 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10872
37b3ab5b
TT
108732019-01-22 Tom Tromey <tom@tromey.com>
10874
10875 * remote-fileio.h (struct remote_target): Declare.
10876
3fabc016
TT
108772019-01-22 Tom Tromey <tom@tromey.com>
10878
10879 * python/py-arch.c: Do not include py-ref.h.
10880 * python/py-bpevent.c: Do not include py-ref.h.
10881 * python/py-cmd.c: Do not include py-ref.h.
10882 * python/py-continueevent.c: Do not include py-ref.h.
10883 * python/py-event.h: Do not include py-ref.h.
10884 * python/py-evtregistry.c: Do not include py-ref.h.
10885 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10886 * python/py-frame.c: Do not include py-ref.h.
10887 * python/py-framefilter.c: Do not include py-ref.h.
10888 * python/py-function.c: Do not include py-ref.h.
10889 * python/py-infevents.c: Do not include py-ref.h.
10890 * python/py-linetable.c: Do not include py-ref.h.
10891 * python/py-objfile.c: Do not include py-ref.h.
10892 * python/py-param.c: Do not include py-ref.h.
10893 * python/py-prettyprint.c: Do not include py-ref.h.
10894 * python/py-progspace.c: Do not include py-ref.h.
10895 * python/py-symbol.c: Do not include py-ref.h.
10896 * python/py-symtab.c: Do not include py-ref.h.
10897 * python/py-type.c: Do not include py-ref.h.
10898 * python/py-unwind.c: Do not include py-ref.h.
10899 * python/py-utils.c: Do not include py-ref.h.
10900 * python/py-value.c: Do not include py-ref.h.
10901 * python/py-varobj.c: Do not include py-ref.h.
10902 * python/py-xmethods.c: Do not include py-ref.h.
10903 * python/python.c: Do not include py-ref.h.
10904 * varobj.c: Do not include py-ref.h.
10905
6b4d7774
TT
109062019-01-22 Tom Tromey <tom@tromey.com>
10907
10908 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10909 keyword for bcache.
10910
7af7e9b5
TT
109112019-01-22 Tom Tromey <tom@tromey.com>
10912
10913 * compile/compile-cplus-types.c: Remove a comment by #include.
10914
951d1049
TT
109152019-01-22 Tom Tromey <tom@tromey.com>
10916
10917 * compile/gcc-c-plugin.h: Include compile-internal.h.
10918
d65d5705
TT
109192019-01-22 Tom Tromey <tom@tromey.com>
10920
10921 * stabsread.c (EXTERN): Do not define.
10922 (symnum, next_symbol_text_func, processing_gcc_compilation)
10923 (within_function, global_sym_chain, global_stabs)
10924 (previous_stab_code, this_object_header_files)
10925 (n_this_object_header_files)
10926 (n_allocated_this_object_header_files): Define.
10927 * stabsread.h (EXTERN): Never define. Use "extern".
10928
b6fb1ee5
PW
109292019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10930
10931 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10932 history_value.
10933
be6d4f74
TT
109342019-01-21 Tom Tromey <tom@tromey.com>
10935
10936 * ui-out.c: Fix includes.
10937 * tui/tui-source.c: Fix includes.
10938 * target.c: Fix includes.
10939 * remote.c: Fix includes.
10940 * regcache.c: Fix includes.
10941 * python/py-block.c: Fix includes.
10942 * printcmd.c: Fix includes.
10943 * or1k-tdep.c: Fix includes.
10944 * mi/mi-main.c: Fix includes.
10945 * m32r-tdep.c: Fix includes.
10946 * csky-tdep.c: Fix includes.
10947 * compile/compile-cplus-types.c: Fix includes.
10948 * cli/cli-interp.c: Fix includes.
10949
73021deb
AH
109502019-01-21 Alan Hayward <alan.hayward@arm.com>
10951
10952 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10953 for padding.
10954
7932255d
TT
109552019-01-16 Tom Tromey <tom@tromey.com>
10956
10957 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10958 earlier.
10959 (struct objfile) <msymbols_range>: Move from top level.
10960 <msymbols>: New method.
10961 (class objfile_msymbols): Remove.
10962 * symtab.c (default_collect_symbol_completion_matches_break_on):
10963 Update.
10964 * symmisc.c (dump_msymbols): Update.
10965 * stabsread.c (scan_file_globals): Update.
10966 * objc-lang.c (info_selectors_command, info_classes_command)
10967 (find_methods): Update.
10968 * minsyms.c (find_solib_trampoline_target): Update.
10969 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10970 * coffread.c (coff_symfile_read): Update.
10971 * ada-lang.c (ada_lookup_simple_minsym)
10972 (ada_collect_symbol_completion_matches): Update.
10973
604b1bfb
TT
109742019-01-16 Tom Tromey <tom@tromey.com>
10975
10976 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10977 type. Remove no-argument constructor.
10978 <iterator::operator++>: Simplify.
10979 <begin>: Update.
10980 <end>: Use minimal_symbol_count.
10981
f252c6d5
TT
109822019-01-16 Tom Tromey <tom@tromey.com>
10983
10984 * objfiles.h (struct objfile) <psymtabs>: New method.
10985 (class objfile_psymtabs): Remove.
10986 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10987 typedef.
10988 <range>: New method.
10989 (require_partial_symbols): Change return type.
10990 * psymtab.c (require_partial_symbols)
10991 (psym_expand_symtabs_matching): Update.
10992 * mdebugread.c (parse_partial_symbols): Update.
10993 * dbxread.c (dbx_end_psymtab): Update.
10994
b669c953
TT
109952019-01-15 Tom Tromey <tom@tromey.com>
10996
10997 * symtab.c (lookup_objfile_from_block)
10998 (lookup_symbol_in_objfile_symtabs)
10999 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11000 (find_line_symtab, info_sources_command)
11001 (default_collect_symbol_completion_matches_break_on)
11002 (make_source_files_completion_list): Update.
11003 * symmisc.c (print_objfile_statistics, dump_objfile)
11004 (maintenance_print_symbols, maintenance_info_symtabs)
11005 (maintenance_check_symtabs, maintenance_info_line_tables):
11006 Update.
11007 * source.c (select_source_symtab)
11008 (forget_cached_source_info_for_objfile): Update.
11009 * objfiles.h (class objfile_compunits): Remove.
11010 (struct objfile) <compunits_range>: New typedef.
11011 (compunits): New method.
11012 * objfiles.c (objfile_relocate1): Update.
11013 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11014 * maint.c (count_symtabs_and_blocks): Update.
11015 * linespec.c (iterate_over_all_matching_symtabs): Update.
11016 * cp-support.c (add_symbol_overload_list_qualified): Update.
11017 * coffread.c (coff_symtab_read): Update.
11018 * ada-lang.c (add_nonlocal_symbols)
11019 (ada_collect_symbol_completion_matches)
11020 (ada_add_global_exceptions): Update.
11021
7e955d83
TT
110222019-01-15 Tom Tromey <tom@tromey.com>
11023
11024 * progspace.h (program_space) <objfiles_safe_range>: New
11025 typedef.
11026 <objfiles_safe>: New method.
11027 * objfiles.h (class all_objfiles_safe): Remove.
11028 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11029 * jit.c (jit_inferior_exit_hook): Update.
11030
2030c079
TT
110312019-01-17 Tom Tromey <tom@tromey.com>
11032
11033 * progspace.h (program_space) <objfiles_range>: New typedef.
11034 <objfiles>: New method.
11035 <objfiles_head>: Rename from objfiles.
11036 (object_files): Update.
11037 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11038 * guile/scm-pretty-print.c
11039 (ppscm_find_pretty_printer_from_objfiles): Update.
11040 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11041 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11042 Update.
11043 * python/py-progspace.c (pspy_get_objfiles): Update.
11044 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11045 Update.
11046 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11047 (objfpy_lookup_objfile_by_build_id): Update.
11048 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11049 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11050 Update.
11051 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11052 (expand_symtab_containing_pc, lookup_objfile_from_block)
11053 (lookup_static_symbol, basic_lookup_transparent_type)
11054 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11055 (find_line_symtab, info_sources_command)
11056 (default_collect_symbol_completion_matches_break_on)
11057 (make_source_files_completion_list, find_main_name): Update.
11058 * symmisc.c (print_symbol_bcache_statistics)
11059 (print_objfile_statistics, maintenance_print_symbols)
11060 (maintenance_print_msymbols, maintenance_print_objfiles)
11061 (maintenance_info_symtabs, maintenance_check_symtabs)
11062 (maintenance_expand_symtabs, maintenance_info_line_tables):
11063 Update.
11064 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11065 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11066 (map_overlay_command, unmap_overlay_command)
11067 (simple_overlay_update, expand_symtabs_matching)
11068 (map_symbol_filenames): Update.
11069 * symfile-debug.c (set_debug_symfile): Update.
11070 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11071 Update.
11072 * source.c (select_source_symtab, forget_cached_source_info):
11073 Update.
11074 * solib.c (solib_read_symbols): Update.
11075 * solib-spu.c (append_ocl_sos): Update.
11076 * psymtab.c (maintenance_print_psymbols)
11077 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11078 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11079 * printcmd.c (info_symbol_command): Update.
11080 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11081 Update.
11082 * objfiles.h (class all_objfiles): Remove.
11083 * objfiles.c (have_partial_symbols, have_full_symbols)
11084 (have_minimal_symbols, qsort_cmp, update_section_map)
11085 (shared_objfile_contains_address_p)
11086 (default_iterate_over_objfiles_in_search_order): Update.
11087 * objc-lang.c (info_selectors_command, info_classes_command)
11088 (find_methods): Update.
11089 * minsyms.c (find_solib_trampoline_target): Update.
11090 * maint.c (maintenance_info_sections)
11091 (maintenance_translate_address, count_symtabs_and_blocks):
11092 Update.
11093 * main.c (captured_main_1): Update.
11094 * linux-thread-db.c (try_thread_db_load_from_pdir)
11095 (has_libpthread): Update.
11096 * linespec.c (iterate_over_all_matching_symtabs)
11097 (search_minsyms_for_name): Update.
11098 * jit.c (jit_find_objf_with_entry_addr): Update.
11099 * hppa-tdep.c (find_unwind_entry)
11100 (hppa_lookup_stub_minimal_symbol): Update.
11101 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11102 Update.
11103 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11104 (elf_gnu_ifunc_resolve_by_got): Update.
11105 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11106 * dwarf-index-write.c (save_gdb_index_command): Update.
11107 * cp-support.c (add_symbol_overload_list_qualified): Update.
11108 * breakpoint.c (create_overlay_event_breakpoint)
11109 (create_longjmp_master_breakpoint)
11110 (create_std_terminate_master_breakpoint)
11111 (create_exception_master_breakpoint): Update.
11112 * blockframe.c (find_pc_partial_function): Update.
11113 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11114 (ada_collect_symbol_completion_matches)
11115 (ada_add_global_exceptions): Update.
11116
776489e0
TT
111172019-01-17 Tom Tromey <tom@tromey.com>
11118
11119 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11120 declare VEC.
11121 (solib_target_parse_libraries): Change return type.
11122 (library_list_start_segment, library_list_start_section)
11123 (library_list_end_library, library_list_start_library); Update.
11124 (solib_target_free_library_list): Remove.
11125 (solib_target_parse_libraries): Remove cleanup. Change return
11126 type.
11127 (solib_target_current_sos): Update.
11128
6471e7d2
TT
111292019-01-17 Tom Tromey <tromey@bapiya>
11130
11131 * valprint.c: Replace "the the" with "the".
11132 * symtab.c: Replace "the the" with "the".
11133 * solib.c: Replace "the the" with "the".
11134 * solib-dsbt.c: Replace "the the" with "the".
11135 * linespec.c: Replace "the the" with "the".
11136 * dwarf2loc.h: Replace "the the" with "the".
11137 * amd64-windows-tdep.c: Replace "the the" with "the".
11138 * aarch64-tdep.c: Replace "the the" with "the".
11139
c24bdb02
KS
111402019-01-16 Keith Seitz <keiths@redhat.com>
11141
11142 PR gdb/23773
11143 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11144 <builder>: Rename to ..
11145 <m_builder>: ... this and make private.
11146 (dwarf2_cu::get_builder): New method. Change all users of
11147 `builder' to use this method.
11148 (dwarf2_start_symtab): Move to ...
11149 (dwarf2_cu::start_symtab): ... here. Update all callers
11150 (setup_type_unit_groups): Move to ...
11151 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11152 callers.
11153 (dwarf2_cu::reset_builder): New method.
11154 (process_full_compunit, process_full_type_unit): Use
11155 dwarf2_cu::reset_builder.
11156 (follow_die_offset): Record the ancestor CU if it is different
11157 from the followed DIE's CU.
11158 (follow_die_sig_1): Likewise.
11159
8d64371b
TT
111602019-01-15 Tom Tromey <tom@tromey.com>
11161
11162 * remote.c (class remote_state) <buf>: Now a char_vector.
11163 <buf_size>: Remove.
11164 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11165 parameter.
11166 (remote_target::getpkt_or_notif_sane_1)
11167 (remote_target::getpkt_sane)
11168 (remote_target::getpkt_or_notif_sane): Likewise.
11169 (class remote_target) <putpkt>: New overload.
11170 (remote_target::read_frame): Change type of "buf_p". Remove
11171 sizeof_p parameter.
11172 (packet_ok): New overload.
11173 (packet_check_result): New overload.
11174 Update all uses.
11175
bb277751
TT
111762019-01-14 Tom Tromey <tom@tromey.com>
11177
11178 * remote-notif.c (handle_notification, remote_notif_ack)
11179 (remote_notif_parse): Make "buf" const.
11180 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11181 const.
11182 (remote_notif_parse, remote_notif_ack, handle_notification):
11183 Likewise.
11184 * remote.c (remote_notif_stop_parse): Make "buf" const.
11185 (remote_target::remote_parse_stop_reply): Make "buf" const.
11186 (remote_notif_stop_ack): Make "buf" const.
11187
05be00a8
TT
111882019-01-14 Tom Tromey <tom@tromey.com>
11189
11190 * remote.c (remote_console_output): Make parameter const.
11191
491adeca
TT
111922019-01-14 Tom Tromey <tom@tromey.com>
11193
11194 * target-debug.h (target_debug_print_signals): Constify.
11195 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11196 * procfs.c (procfs_target::pass_signals): Update.
11197 * linux-nat.c (linux_nat_target::pass_signals): Update.
11198 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11199 * target-delegates.c: Rebuild.
11200 * remote.c (remote_target::program_signals): Update.
11201 (remote_target::pass_signals): Update.
11202 * target.c (target_pass_signals): Constify argument.
11203 (target_program_signals): Likewise.
11204 * target.h (struct target_ops) <pass_signals, program_signals>:
11205 Constify argument.
11206 (target_pass_signals, target_program_signals): Constify argument.
11207
bbd94648
TT
112082019-01-14 Tom Tromey <tom@tromey.com>
11209
11210 PR tui/28819:
11211 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11212
6f072a10
PFC
112132019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11214
11215 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11216 field.
11217 * rs6000-tdep.c: Include reggroups.h.
11218 (IS_V_ALIAS_PSEUDOREG): Define.
11219 (rs6000_register_name): Return names for the "vX" aliases.
11220 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11221 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11222 aliases. Call default_register_reggroup_p for all other
11223 pseudo-registers.
11224 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11225 New functions.
11226 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11227 Handle "vX" aliases.
11228 (v_alias_pseudo_register_collect): New function.
11229 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11230 (rs6000_gdbarch_init): Initialize "vX" aliases as
11231 pseudo-registers. Restore registration of
11232 rs6000_pseudo_register_reggroup_p with
11233 set_tdesc_pseudo_register_reggroup_p.
11234
1a782351
MF
112352019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11236
11237 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11238 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11239 set_gdbarch_num_pseudo_regs.
11240
d73cff18
PW
112412019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11242
11243 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11244 Remove arg prefixname, add do_set and do_show.
11245 Add member functions set_list and show_list.
11246 * cli/cli-style.c (class cli_style_option): Update accordingly.
11247 (style_set_list): Move to file scope.
11248 (style_show_list): Likewise.
11249 (set_style): Call help_list.
11250 (show_style): Call cmd_show_list.
11251 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11252 Update to use the new macro.
11253
60a90376
JB
112542019-10-12 Joel Brobecker <brobecker@adacore.com>
11255
11256 * ada-lang.c (_initialize_ada_language): Expand the help text
11257 for the "catch exception" command.
11258
9d7c67bf
PW
112592019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11260
11261 * symtab.c (matching_obj_sections): Initialize obj,
11262 declare it closer to its usage.
11263
7cf47dc4
TT
112642019-01-10 Tom Tromey <tom@tromey.com>
11265
11266 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11267 (basic_inf_threads_range): Remove.
11268 (inf_threads_range, inf_non_exited_threads_range)
11269 (safe_inf_threads_range): Use next_adapter.
11270
d3cb6808
KS
112712019-01-10 Keith Seitz <keiths@redhat.com>
11272
11273 PR gdb/23712
11274 PR symtab/23010
11275 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11276 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11277
63a20375
KS
112782019-01-10 Keith Seitz <keiths@redhat.com>
11279
11280 PR gdb/23712
11281 PR symtab/23010
11282 * dictionary.c (pending_to_vector): Remove.
11283 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11284 Remove _1 suffix, replacing functions of the same name. Update
11285 all callers.
11286 (dict_create_hashed, dict_create_hashed_expandable)
11287 (dict_create_linear, dict_create_linear_expandable, dict_free)
11288 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11289 Make functions static.
11290
b026f593
KS
112912019-01-10 Keith Seitz <keiths@redhat.com>
11292
11293 PR gdb/23712
11294 PR symtab/23010
11295 * dictionary.h (struct dictionary): Replace declaration with
11296 multidictionary.
11297 (dict_create_hashed, dict_create_hashed_expandable)
11298 (dict_create_linear, dict_create_linear_expandable)
11299 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11300 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11301 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11302 taking multidictionary argument.
11303 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11304 * block.h (struct block) <dict>: Change to multidictionary
11305 and rename `multidict'.
11306 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11307 symmisc.c: Update all dictionary references to multidictionary.
11308
c7748ee9
KS
113092019-01-10 Keith Seitz <keiths@redhat.com>
11310
11311 PR gdb/23712
11312 PR symtab/23010
11313 * dictionary.c: Include unordered_map.
11314 (pending_to_vector): New function.
11315 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11316 Rewrite the non-"_1" functions to take vector instead
11317 of linked list.
11318 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11319 "new" _1 versions of the same name.
11320 (multidictionary): Define.
11321 (std::hash<enum language): New definition.
11322 (collate_pending_symbols_by_language, mdict_create_hashed)
11323 (mdict_create_hashed_expandable, mdict_create_linear)
11324 (mdict_create_linear_expandable, mdict_free)
11325 (find_language_dictionary, create_new_language_dictionary)
11326 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11327 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11328 (mdict_size, mdict_empty): New functions.
11329 * dictionary.h (mdict_iterator): Define.
11330
67aa1f3c
PA
113312019-01-10 Pedro Alves <palves@redhat.com>
11332
11333 * breakpoint.c (read_uploaded_action)
11334 (create_tracepoint_from_upload): Adjust to use
11335 gdb::unique_xmalloc_ptr.
11336 * ctf.c (ctf_write_uploaded_tp):
11337 (SET_ARRAY_FIELD): Use emplace_back.
11338 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11339 * tracefile-tfile.c (tfile_write_uploaded_tp):
11340 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11341 gdb::unique_xmalloc_ptr.
11342 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11343 at_string, cond_string, cmd_strings>: Replace char pointers
11344 with gdb::unique_xmalloc_ptr.
11345
2f667667
PA
113462019-01-10 Pedro Alves <palves@redhat.com>
11347
11348 * solib-target.c (library_list_start_library): Don't xstrdup name.
11349
36cb7237
PA
113502019-01-10 Pedro Alves <palves@redhat.com>
11351
11352 * mdebugread.c (parse_partial_symbols): Use
11353 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11354
da584958
AB
113552019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11356
11357 * linux-fork.c (scoped_switch_fork_info)
11358 <~scoped_switch_fork_info>: Fix incorrect variable name.
11359
1ef8573c
AB
113602019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11361
11362 * linux-fork.c (scoped_switch_fork_info)
11363 <scoped_switch_fork_info>: Make explicit.
11364 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11365
8d7bcccb
TT
113662019-01-10 Tom Tromey <tom@tromey.com>
11367
11368 * objfiles.h (objfile::reset_psymtabs): Update.
11369 * objfiles.c (objfile::objfile): Update.
11370 * psymtab.h (psymtab_storage::obstack): Update.
11371 (psymtab_storage::m_obstack): Use gdb::optional.
11372 (class psymtab_storage): Update comment. Remove objfile
11373 parameter.
11374 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11375
b596a3c7
TT
113762019-01-10 Tom Tromey <tom@tromey.com>
11377
11378 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11379 <free_psymtabs>: Now private.
11380 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11381 (allocate_psymtab): Use new method.
11382
a9342b62
TT
113832019-01-10 Tom Tromey <tom@tromey.com>
11384
11385 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11386 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11387 * mdebugread.c (parse_partial_symbols): Use
11388 allocate_dependencies.
11389 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11390 allocate_dependencies.
11391 (process_psymtab_comp_unit_reader)
11392 (build_type_psymtab_dependencies): Likewise.
11393 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11394
5af70966
TT
113952019-01-10 Tom Tromey <tom@tromey.com>
11396
11397 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11398 PSYMBOL_SET_LANGUAGE.
11399 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11400
5923a04c
TT
114012019-01-10 Tom Tromey <tom@tromey.com>
11402
11403 * psymtab.h (psymtab_storage::obstack): New method.
11404 <m_obstack>: Rename from obstack; now private.
11405 * psymtab.c (psymtab_storage): Update.
11406 * dwarf2read.c (create_addrmap_from_index)
11407 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11408 Update.
11409
6d6a12bf
TT
114102019-01-10 Tom Tromey <tom@tromey.com>
11411
11412 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11413 * objfiles.h (objfile::reset_psymtabs): New method.
11414
d320c2b5
TT
114152019-01-10 Tom Tromey <tom@tromey.com>
11416
11417 * symmisc.c (print_symbol_bcache_statistics): Update.
11418 (print_objfile_statistics): Update.
11419 * symfile.c (reread_symbols): Update.
11420 * psymtab.h (class psymtab_storage): New.
11421 * psymtab.c (psymtab_storage): New constructor.
11422 (~psymtab_storage): New destructor.
11423 (require_partial_symbols): Update.
11424 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11425 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11426 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11427 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11428 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11429 (start_psymtab_common, end_psymtab_common)
11430 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11431 (allocate_psymtab): Update.
11432 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11433 Update.
11434 (dump_psymtab_addrmap, maintenance_print_psymbols)
11435 (maintenance_check_psymtabs): Update.
11436 (class objfile_psymtabs): Move to objfiles.h.
11437 * psympriv.h (discard_psymtab): Now inline.
11438 (psymtab_discarder::psymtab_discarder): Update.
11439 (psymtab_discarder::~psymtab_discarder): Update.
11440 (ALL_OBJFILE_PSYMTABS): Rewrite.
11441 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11442 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11443 Remove fields.
11444 <partial_symtabs>: New field.
11445 (class objfile_psymtabs): Move from psymtab.h. Update.
11446 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11447 psymbol_cache.
11448 (objfile::~objfile): Don't destroy psymbol_cache.
11449 * mdebugread.c (parse_partial_symbols): Update.
11450 * dwarf2read.c (create_addrmap_from_index)
11451 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11452 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11453 (add_partial_subprogram, dwarf2_ranges_read): Update.
11454 * dwarf-index-write.c (write_address_map)
11455 (write_one_signatured_type, recursively_write_psymbols)
11456 (class debug_names, class debug_names, write_psymtabs_to_index):
11457 Update.
11458
1d94a5a3
TT
114592019-01-10 Tom Tromey <tom@tromey.com>
11460
11461 * symtab.h (SYMBOL_SET_NAMES): Update.
11462 (symbol_set_names): Update.
11463 (MSYMBOL_SET_NAMES): Update.
11464 * symtab.c (symbol_set_names): Change argument to be an
11465 objfile_per_bfd_storage.
11466 * psymtab.c (add_psymbol_to_bcache): Update.
11467 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11468
0f14768a
TT
114692019-01-10 Tom Tromey <tom@tromey.com>
11470
11471 * symtab.c (create_demangled_names_hash): Change argument to be an
11472 objfile_per_bfd_storage.
11473 (symbol_set_names): Update.
11474
6eee24ce
TT
114752019-01-10 Tom Tromey <tom@tromey.com>
11476
11477 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11478 init_psymbol_list.
11479 * psymtab.c (init_psymbol_list): Do nothing if already called.
11480 * psympriv.h (init_psymbol_list): Add comment.
11481 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11482 init_psymbol_list.
11483 * dbxread.c (dbx_symfile_read): Unconditionally call
11484 init_psymbol_list.
11485
75aedd27
TT
114862019-01-10 Tom Tromey <tom@tromey.com>
11487
11488 * xcoffread.c (scan_xcoff_symtab): Update.
11489 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11490 "where".
11491 * mdebugread.c (parse_partial_symbols)
11492 (handle_psymbol_enumerators): Update.
11493 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11494 * dbxread.c (read_dbx_symtab): Update.
11495 * psympriv.h (psymbol_placement): New enum.
11496 (add_psymbol_to_list): Update.
11497
939652a5
TT
114982019-01-10 Tom Tromey <tom@tromey.com>
11499
11500 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11501 static_psymbols parameters.
11502 (scan_xcoff_symtab): Update.
11503 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11504 static_psymbols parameters.
11505 * psympriv.h (start_psymtab_common): Update.
11506 * mdebugread.c (parse_partial_symbols): Update.
11507 * dwarf2read.c (create_partial_symtab): Update.
11508 * dbxread.c (read_dbx_symtab): Update.
11509 (start_psymtab): Remove global_psymbols and static_psymbols
11510 parameters.
11511
baa62830
TT
115122019-01-10 Tom Tromey <tom@tromey.com>
11513
11514 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11515 * psymtab.c (allocate_psymtab): Add comment.
11516 * psympriv.h (allocate_psymtab): Add comment.
11517 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11518 initializations.
11519 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11520
0e8f53ba
TT
115212019-01-10 Tom Tromey <tom@tromey.com>
11522
11523 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11524 Don't declare.
11525 * mipsread.c: Include mdebugread.h.
11526 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11527 Declare.
11528 * elfread.c: Include mdebugread.h.
11529
b22a7c6a
TT
115302019-01-09 Tom Tromey <tom@tromey.com>
11531
11532 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11533 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11534 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11535 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11536 (psym_lookup_symbol, psym_find_last_source_symtab)
11537 (psym_forget_cached_source_info, psym_print_stats)
11538 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11539 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11540 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11541 (psym_find_compunit_symtab_by_address)
11542 (maintenance_print_psymbols, maintenance_info_psymtabs)
11543 (maintenance_check_psymtabs): Use ranged for.
11544 * psymtab.h (class objfile_psymtabs): New.
11545 (require_partial_symbols): Return objfile_psymtabs.
11546 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11547
3b9d3ac2
TT
115482019-01-09 Tom Tromey <tom@tromey.com>
11549
11550 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11551 (find_pc_mapped_section, list_overlays_command)
11552 (map_overlay_command, unmap_overlay_command)
11553 (simple_overlay_update): Use all_objfiles.
11554 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11555 * printcmd.c (info_symbol_command): Use all_objfiles.
11556 * objfiles.h (ALL_OBJSECTIONS): Remove.
11557 * maint.c (maintenance_translate_address): Use all_objfiles.
11558 * gcore.c (gcore_create_callback): Use all_objfiles.
11559 (objfile_find_memory_regions): Likewise.
11560
8b31193a
TT
115612019-01-09 Tom Tromey <tom@tromey.com>
11562
11563 * symtab.c (find_line_symtab, info_sources_command)
11564 (make_source_files_completion_list): Use objfile_compunits.
11565 * source.c (select_source_symtab): Use objfile_compunits.
11566 * objfiles.h (struct objfile): Update comment.
11567 (ALL_OBJFILES): Remove.
11568 (ALL_FILETABS): Remove.
11569 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11570 objfile_compunits.
11571
d5da8b3c
TT
115722019-01-09 Tom Tromey <tom@tromey.com>
11573
11574 * symmisc.c (print_objfile_statistics, dump_objfile)
11575 (maintenance_print_symbols): Use compunit_filetabs.
11576 * source.c (forget_cached_source_info_for_objfile): Use
11577 compunit_filetabs.
11578 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11579 (ALL_FILETABS): Use compunit_filetabs.
11580 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11581 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11582
5accd1a0
TT
115832019-01-09 Tom Tromey <tom@tromey.com>
11584
11585 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11586 (compunit_filetabs): New.
11587 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11588 compunit_filetabs.
11589 (info_sources_command, make_source_files_completion_list): Remove
11590 declaration.
11591 * symmisc.c (print_objfile_statistics, dump_objfile)
11592 (maintenance_print_symbols): Remove declaration.
11593 (maintenance_info_symtabs): Use compunit_filetabs.
11594 (maintenance_info_line_tables): Likewise.
11595 * source.c (select_source_symtab): Change local variable name.
11596 (forget_cached_source_info_for_objfile): Remove declaration.
11597 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11598 * objfiles.c (objfile_relocate1): Remove declaration.
11599 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11600 declaration.
11601 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11602 * coffread.c (coff_symtab_read): Remove declaration.
11603 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11604 compunit_filetabs.
11605
d8aeb77f
TT
116062019-01-09 Tom Tromey <tom@tromey.com>
11607
11608 * symtab.c (lookup_objfile_from_block)
11609 (find_pc_sect_compunit_symtab, search_symbols)
11610 (default_collect_symbol_completion_matches_break_on): Use
11611 objfile_compunits.
11612 * objfiles.h (ALL_COMPUNITS): Remove.
11613 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11614 * cp-support.c (add_symbol_overload_list_qualified): Use
11615 objfile_compunits.
11616 * ada-lang.c (ada_collect_symbol_completion_matches)
11617 (ada_add_global_exceptions): Use objfile_compunits.
11618
592553c4
TT
116192019-01-09 Tom Tromey <tom@tromey.com>
11620
11621 * source.c (select_source_symtab)
11622 (forget_cached_source_info_for_objfile): Remove declaration.
11623 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11624 declaration.
11625 * maint.c (count_symtabs_and_blocks): Remove declaration.
11626 * cp-support.c (add_symbol_overload_list_qualified): Remove
11627 declaration.
11628 * coffread.c (coff_symtab_read): Remove declaration.
11629 * symtab.c (lookup_symbol_in_objfile_symtabs)
11630 (basic_lookup_transparent_type_1): Use objfile_compunits.
11631 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11632 (info_sources_command, search_symbols)
11633 (default_collect_symbol_completion_matches_break_on)
11634 (make_source_files_completion_list): Remove declaration.
11635 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11636 (ada_collect_symbol_completion_matches)
11637 (ada_add_global_exceptions): Remove declaration.
11638 * linespec.c (iterate_over_all_matching_symtabs): Use
11639 objfile_compunits.
11640 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11641 (class objfile_compunits): New.
11642 (ALL_COMPUNITS): Use objfile_compunits.
11643 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11644 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11645 objfile_compunits.
11646 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11647
5325b9bf
TT
116482019-01-09 Tom Tromey <tom@tromey.com>
11649
11650 * symtab.c (search_symbols)
11651 (default_collect_symbol_completion_matches_break_on): Use
11652 objfile_msymbols.
11653 * ada-lang.c (ada_lookup_simple_minsym)
11654 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11655 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11656 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11657 objfile_msymbols.
11658 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11659 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11660 * objc-lang.c (find_methods): Use objfile_msymbols.
11661 (info_selectors_command, info_classes_command): Likewise.
11662 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11663 * objfiles.h (class objfile_msymbols): New.
11664 (ALL_OBJFILE_MSYMBOLS): Remove.
11665 (ALL_MSYMBOLS): Remove.
11666
cac85af2
TT
116672019-01-09 Tom Tromey <tom@tromey.com>
11668
11669 * common/next-iterator.h (next_adapter): Add Iterator template
11670 parameter.
11671 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11672 (class all_objfiles_safe): New.
11673 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11674 * objfiles.c (put_objfile_before): Update comment.
11675 (add_separate_debug_objfile): Likewise.
11676 (free_all_objfiles): Use all_objfiles_safe.
11677 (objfile_purge_solibs): Likewise.
11678
aed57c53
TT
116792019-01-09 Tom Tromey <tom@tromey.com>
11680
11681 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11682 (expand_symtab_containing_pc, lookup_static_symbol)
11683 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11684 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11685 all_objfiles.
11686 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11687 * breakpoint.c (create_overlay_event_breakpoint)
11688 (create_longjmp_master_breakpoint)
11689 (create_std_terminate_master_breakpoint)
11690 (create_exception_master_breakpoint): Use all_objfiles.
11691 * linux-thread-db.c (try_thread_db_load_from_pdir)
11692 (has_libpthread): Use all_objfiles.
11693 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11694 * linespec.c (iterate_over_all_matching_symtabs)
11695 (search_minsyms_for_name): Use all_objfiles.
11696 * maint.c (maintenance_info_sections): Use all_objfiles.
11697 * main.c (captured_main_1): Use all_objfiles.
11698 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11699 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11700 * guile/scm-pretty-print.c
11701 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11702 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11703 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11704 (maintenance_print_msymbols): Use all_objfiles.
11705 * source.c (select_source_symtab): Use all_objfiles.
11706 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11707 * symfile.c (remove_symbol_file_command)
11708 (expand_symtabs_matching, map_symbol_filenames): Use
11709 all_objfiles.
11710 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11711 all_objfiles.
11712 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11713 * objc-lang.c (find_methods): Use all_objfiles.
11714 * objfiles.c (have_partial_symbols, have_full_symbols)
11715 (have_minimal_symbols, qsort_cmp)
11716 (default_iterate_over_objfiles_in_search_order): Use
11717 all_objfiles.
11718 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11719 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11720 (maintenance_check_psymtabs): Use all_objfiles.
11721 (ALL_PSYMTABS): Remove.
11722 * compile/compile-object-run.c (do_module_cleanup): Use
11723 all_objfiles.
11724 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11725 * cp-support.c (add_symbol_overload_list_qualified): Use
11726 all_objfiles.
11727 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11728 Use all_objfiles.
11729 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11730 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11731 all_objfiles.
11732 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11733 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11734 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11735 Uses all_objfiles.
11736 * solib.c (solib_read_symbols): Use all_objfiles
11737
99d89cde
TT
117382019-01-09 Tom Tromey <tom@tromey.com>
11739
11740 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11741 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11742 all_objfiles.
11743 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11744 * symmisc.c (print_symbol_bcache_statistics)
11745 (print_objfile_statistics, maintenance_print_objfiles)
11746 (maintenance_info_symtabs, maintenance_check_symtabs)
11747 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11748 all_objfiles.
11749 * source.c (forget_cached_source_info): Use all_objfiles.
11750 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11751 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11752 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11753 * objfiles.c (update_section_map): Use all_objfiles.
11754 (shared_objfile_contains_address_p): Likewise.
11755 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11756 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11757
21708325
TT
117582019-01-09 Tom Tromey <tom@tromey.com>
11759
11760 * common/next-iterator.h: New file.
11761 * objfiles.h (class all_objfiles): New.
11762 (struct objfile_iterator): New.
11763
669e09f6
PW
117642019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11765
11766 * NEWS: Move the description of the changed "frame", "select-frame",
11767 and "info frame" commands to the Changed commands section.
11768
041be526
SM
117692019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11770
11771 * gdbtypes.c (check_stub_method_group): Remove handling of old
11772 mangling schemes.
11773 * linespec.c (find_methods): Likewise.
11774 * stabsread.c (read_member_functions): Likewise.
11775 * valops.c (search_struct_method): Likewise.
11776 (value_struct_elt_for_reference): Likewise.
11777 * NEWS: Mention this change.
11778
0e2a2133
AB
117792019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11780
11781 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11782 print_source_lines.
11783 * source.c (print_source_lines_base): Update line number check.
11784 (print_source_lines): New function.
11785 (source_lines_range::source_lines_range): New function.
11786 * source.h (class source_lines_range): New class.
11787 (print_source_lines): New declaration.
11788
1055a3b4
PW
117892019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11790
11791 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11792
cfeadda5
TT
117932019-01-08 Tom Tromey <tom@tromey.com>
11794 Simon Marchi <simon.marchi@ericsson.com>
11795
11796 PR gdb/24060
11797 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11798 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11799 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11800 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11801 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11802 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11803
583068ca
AB
118042019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11805
11806 * source.c (select_source_symtab): Move header comment to
11807 declaration in source.h.
11808 (forget_cached_source_info_for_objfile): Likewise.
11809 (forget_cached_source_info): Likewise.
11810 (identify_source_line): Likewise.
11811 * source.h (identify_source_line): Move declaration from symtab.h
11812 and add comment from source.c
11813 (print_source_lines): Likewise.
11814 (forget_cached_source_info_for_objfile): Likewise.
11815 (forget_cached_source_info): Likewise.
11816 (select_source_symtab): Likewise.
11817 (enum print_source_lines_flag): Move definition from symtab.h.
11818 * symtab.h (identify_source_line): Move declaration to source.h.
11819 (print_source_lines): Likewise.
11820 (forget_cached_source_info_for_objfile): Likewise.
11821 (forget_cached_source_info): Likewise.
11822 (select_source_symtab): Likewise.
11823 (enum print_source_lines_flag): Move definition to source.h.
11824 * tui/tui-hooks.c: Add 'source.h' include.
11825
ec98a4ad
AB
118262019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11827
11828 * source.c (print_source_lines_base): Handle requests to print
11829 reverse line number sequences, and guard against empty lines
11830 string.
11831
62ea19c1
AB
118322019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11833
11834 * source.c (print_source_lines_base): Fix skip of '\r' if next
11835 character is '\n'.
11836
9d30e1fd
TT
118372019-01-06 Tom Tromey <tom@tromey.com>
11838
11839 * c-exp.y (struct c_parse_state) <macro_original_text,
11840 expansion_obstack>: New member.
11841 (macro_original_text, expansion_obstack): Remove globals.
11842 (scan_macro_expansion, scanning_macro_expansion)
11843 (finished_macro_expansion): Update.
11844 (scan_macro_cleanup): Remove.
11845 (yylex, c_parse): Update.
11846
c65bac38
TT
118472019-01-06 Tom Tromey <tom@tromey.com>
11848
11849 * c-exp.y (struct c_parse_state) <strings>: New member.
11850 (operator_stoken): Update.
11851
02e12e38
TT
118522019-01-06 Tom Tromey <tom@tromey.com>
11853
11854 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11855 (union type_stack_elt) <typelist_val>: Now a pointer to
11856 std::vector.
11857 (type_stack_cleanup): Don't declare.
11858 (push_typelist): Update.
11859 * parse.c (pop_typelist): Return a std::vector.
11860 (push_typelist): Take a std::vector.
11861 (follow_types): Update. Do not free args.
11862 (type_stack_cleanup): Remove.
11863 * c-exp.y (struct c_parse_state): New.
11864 (cpstate): New global.
11865 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11866 (nonempty_typelist): Update.
11867 (func_mod): Create a new vector.
11868 (c_parse): Create a c_parse_state.
11869 (check_parameter_typelist): Do not delete params.
11870 (function_method): Update. Do not delete type_list.
11871
f097f5ad
TT
118722019-01-06 Tom Tromey <tom@tromey.com>
11873
11874 PR gdb/28155:
11875 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11876 check_typedef.
11877 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11878 (print_return_value): Likewise.
11879
d2adf9f1
TT
118802019-01-05 Tom Tromey <tom@tromey.com>
11881
11882 * contrib/cleanup_check.py: Remove.
11883 * contrib/gcc-with-excheck: Remove.
11884 * contrib/exsummary.py: Remove.
11885 * contrib/excheck.py: Remove.
11886
2eab46b1
JB
118872019-01-05 Joel Brobecker <brobecker@adacore.com>
11888
11889 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11890 NULL. Initialize tpprev to NULL instead of assigning it
11891 to NULL on the next statement.
11892 * windows-nat.c (windows_delete_thread): Remove check for
11893 main_thread_id before printing thread exit notifications.
11894 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11895 Remove thread ID check against main_thread_id.
11896 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11897 windows_delete_thread.
11898 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11899
48c5e7e2
TT
119002019-01-04 Tom Tromey <tom@tromey.com>
11901
11902 * compile/compile.c (_initialize_compile): Use upper case for
11903 metasyntactic variables.
11904 * symmisc.c (_initialize_symmisc): Use upper case for
11905 metasyntactic variables.
11906 * psymtab.c (_initialize_psymtab): Use upper case for
11907 metasyntactic variables.
11908 * demangle.c (demangle_command): Use upper case for metasyntactic
11909 variables.
11910 (_initialize_demangler): Likewise.
11911 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11912 variables.
11913
986041cd
TT
119142019-01-03 Tom Tromey <tom@tromey.com>
11915
11916 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11917
7c711119
TT
119182019-01-03 Tom Tromey <tom@tromey.com>
11919
11920 * python/py-symtab.c (salpy_str): Update.
11921 (struct salpy_sal_object) <symtab>: Now a PyObject.
11922 (salpy_dealloc): Update.
11923 (del_objfile_sal): Use gdbpy_ref.
11924
1b20edf0
TT
119252019-01-03 Tom Tromey <tom@tromey.com>
11926
11927 * python/py-type.c (convert_field): Use new_reference. Return
11928 gdbpy_ref.
11929 (make_fielditem): Return gdbpy_ref.
11930 (typy_fields): Update.
11931 (typy_getitem): Update.
11932 (field_name): Return gdbpy_ref. Use new_reference.
11933 (typy_iterator_iternext): Update.
11934
ea41325b
TT
119352019-01-03 Tom Tromey <tom@tromey.com>
11936
11937 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11938
2a3c71d6
TT
119392019-01-03 Tom Tromey <tom@tromey.com>
11940
11941 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11942 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11943 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11944 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11945 (pspy_set_type_printers): Likewise.
11946 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11947 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11948 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11949 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11950 (objfpy_set_type_printers): Likewise.
11951
5c329e6a
TT
119522019-01-03 Tom Tromey <tom@tromey.com>
11953
11954 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11955 (gdbpy_print_stack): Use gdbpy_err_fetch.
11956 * python/python-internal.h (class gdbpy_err_fetch): New class.
11957 (class gdbpy_enter) <m_error_type, m_error_value,
11958 m_error_traceback>: Remove.
11959 <m_error>: New member.
11960 (gdbpy_exception_to_string): Don't declare.
11961 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11962 * python/py-value.c (convert_value_from_python): Use
11963 gdbpy_err_fetch.
11964 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11965 gdbpy_exception_to_string.
11966 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11967 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11968 gdbpy_err_fetch.
11969
169bb27b
AB
119702019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11971
11972 * linux-nat.c (delete_lwp_cleanup): Delete.
11973 (struct lwp_deleter): New struct.
11974 (lwp_info_up): New typedef.
11975 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11976 lwp_info_up.
11977
a07c8880
AB
119782019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11979
11980 * linux-fork.c (class scoped_switch_fork_info): New class.
11981 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11982
26089c49
AB
119832019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11984
11985 * valops.c (find_overload_match): Remove use of null_cleanup, and
11986 calls to do_cleanups.
11987
06d3e5b0
AB
119882019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11989
11990 * compile/compile-cplus-types.c
11991 (compile_cplus_instance::decl_name): Handle changes to
11992 cp_func_name.
11993 * cp-support.c (cp_func_name): Update header comment, update
11994 return type.
11995 * cp-support.h (cp_func_name): Update return type in declaration.
11996 * valops.c (find_overload_match): Move temp_func local to top
11997 level of function and change its type. Use temp_func to hold and
11998 delete temporary string obtained from cp_func_name.
11999
66644cd3
AB
120002019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12001
12002 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12003 gdb::char_vector, remove cleanup, and update uses of `msg`.
12004
592d8c0a
JW
120052019-01-03 Jim Wilson <jimw@sifive.com>
12006
12007 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12008
c55d06ec
TT
120092019-01-02 Tom Tromey <tom@tromey.com>
12010
12011 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12012 (tdesc_parse_xml): Remove cleanups.
12013 * target-descriptions.h (make_cleanup_free_target_description):
12014 Don't declare.
12015 (target_desc_deleter): New struct.
12016 (target_desc_up): New typedef.
12017 * target-descriptions.c (target_desc_deleter::operator()): Rename
12018 from free_target_description.
12019 (make_cleanup_free_target_description): Remove.
12020
3a6ae42d
TT
120212019-01-02 Tom Tromey <tom@tromey.com>
12022
12023 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12024 constructor, destructor.
12025 (linespec_parser): Remove typedef.
12026 (~linespec_parser): Rename from linespec_parser_delete.
12027 (linespec_lex_to_end, linespec_complete_label)
12028 (linespec_complete): Update.
12029 (decode_line_full): Remove cleanups.
12030 (decode_line_1): Update.
12031
61fd3e73
TT
120322019-01-02 Tom Tromey <tom@tromey.com>
12033
12034 * python/python-internal.h (inferior_to_inferior_object): Change
12035 return type.
12036 * python/py-exitedevent.c (create_exited_event_object): Update.
12037 * python/py-inferior.c (inferior_to_inferior_object): Return
12038 gdbpy_ref.
12039 (python_new_inferior, python_inferior_deleted)
12040 (thread_to_thread_object, delete_thread_object)
12041 (build_inferior_list, gdbpy_selected_inferior): Update.
12042 * python/py-infthread.c (create_thread_object): Update. Also fail
12043 if inferior_to_inferior_object fails.
12044
d20172fc
SM
120452019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12046
12047 * inferior.h (class inferior) <displaced_step_state>: New field.
12048 * infrun.h (struct displaced_step_state): Move here from
12049 infrun.c. Initialize fields, add constructor.
12050 <inf>: Remove field.
12051 <reset>: New method.
12052 * infrun.c (struct displaced_step_inferior_state): Move to
12053 infrun.h.
12054 (displaced_step_inferior_states): Remove.
12055 (get_displaced_stepping_state): Adust.
12056 (displaced_step_in_progress_any_inferior): Adjust.
12057 (displaced_step_in_progress_thread): Adjust.
12058 (displaced_step_in_progress): Adjust.
12059 (add_displaced_stepping_state): Remove.
12060 (get_displaced_step_closure_by_addr): Adjust.
12061 (remove_displaced_stepping_state): Remove.
12062 (infrun_inferior_exit): Call displaced_step_state.reset.
12063 (use_displaced_stepping): Don't check for NULL.
12064 (displaced_step_prepare_throw): Call
12065 get_displaced_stepping_state.
12066 (displaced_step_fixup): Don't check for NULL.
12067 (prepare_for_detach): Don't check for NULL.
12068
e3319240
PW
120692019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12070
12071 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12072 in case of call that did not complete.
12073
5d36dfb9
AU
120742019-01-02 Andrey Utkin <autkin@undo.io>
12075
12076 * symfile.c (find_separate_debug_file): Fix search of debug files for
12077 remote debuggee.
12078
8833fbf0
TT
120792019-01-02 Tom Tromey <tom@tromey.com>
12080
12081 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12082 indentation.
12083 * python/py-frame.c (frapy_older): Remove cast.
12084 (frapy_newer): Likewise.
12085 * python/py-breakpoint.c (local_setattro): Remove cast.
12086 * python/py-arch.c (archpy_name): Remove local variable.
12087 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12088
4ada3dfd
JB
120892019-01-02 Joel Brobecker <brobecker@adacore.com>
12090
12091 * unittests/basic_string_view/element_access/char/empty.cc:
12092 Fix year range in copyright header.
12093
113b7b81
AB
120942019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12095
12096 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12097 Delete.
12098 <operator==>: Update with for removed field.
12099 <hash>: Likewise.
12100 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12101 <isa_features>: ...this.
12102 <abi_features>: New field.
12103 (riscv_isa_flen): Update comment.
12104 (riscv_abi_xlen): New declaration.
12105 (riscv_abi_flen): New declaration.
12106 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12107 isa_features.
12108 (riscv_abi_xlen): New function.
12109 (riscv_isa_flen): Update to get answer from isa_features.
12110 (riscv_abi_flen): New function.
12111 (riscv_has_fp_abi): Update to get answer from abi_features.
12112 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12113 xlen and flen.
12114 (riscv_call_info) <xlen, flen>: Update comment.
12115 (riscv_call_arg_struct): Remove invalid assertions
12116 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12117 is removed.
12118 (riscv_gdbarch_init): Gather isa features and abi features
12119 separately, ensure both match on the gdbarch when reusing an old
12120 gdbarch. Relax an error check to allow 32-bit abi float to run on
12121 a target with 64-bit float hardware.
12122
b18ca514
PW
121232019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12124
12125 * source.c (search_command_helper): Stop reverse search
12126 when line 1 has been searched.
12127
ec70d8db
PW
121282019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12129
12130 * record-full.c (record_full_base_target::close): Rewrite
12131 record_full_core_buf_list free logic.
12132
5b38f9c1
PW
121332019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12134
12135 * break-catch-syscall.c (print_one_catch_syscall): xfree
12136 the last text.
12137
66d91b39
JB
121382019-01-01 Joel Brobecker <brobecker@adacore.com>
12139
12140 * top.c (print_gdb_version): Update Copyright year in version
12141 message.
12142
42a4f53d
JB
121432019-01-01 Joel Brobecker <brobecker@adacore.com>
12144
12145 Update copyright year range in all GDB files.
12146
7e955d83 121472019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 12148
5bbd631d 12149 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 12150
5bbd631d 12151For older changes see ChangeLog-2018.
c906108c
SS
12152\f
12153Local Variables:
12154mode: change-log
12155left-margin: 8
12156fill-column: 74
12157version-control: never
57da7796 12158coding: utf-8
c906108c 12159End:
5bbd631d 12160
This page took 2.772101 seconds and 4 git commands to generate.