Enhance the disassembler so that it will reliably determine whether a reloc applies...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a084a2a6
AT
1
22019-09-09 Ali Tamur <tamur@google.com>
3
4 * dwarf2read.c (comp_unit_head): Update comment.
5 (dwarf2_dwo_name): New function declaration.
6 (dwarf_unit_type_name): New function declaration.
7 (read_comp_unit_head): Add support for new compilation units,
8 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
9 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
10 (currently named as "signature") in their header. Also clarify error
11 messages.
12 (lookup_dwo_id): New function. Returns the dwo id of the given
13 compile unit.
14 (lookup_dwo_unit): Use the new lookup_dwo_id function.
15 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
16 functions.
17 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
18 (dwarf2_dwo_name): Get the dwo name if present.
19 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
20 purposes.
21
25a2915e
TT
222019-09-09 Tom Tromey <tom@tromey.com>
23
24 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
25
e4df0874
PW
262019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
27
28 * python/python.c (do_start_initialization): Make progname_copy static,
29 to avoid a leak report.
30
8634b462
TT
312019-09-08 Tom Tromey <tom@tromey.com>
32
33 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
34
c7f839cb
SM
352019-09-07 Simon Marchi <simon.marchi@efficios.com>
36
37 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
38 Change type to gdb::optional<block_enum>.
39 (dw2_symtab_iter_init): Change block_index parameter type
40 to gdb::optional<block_enum>.
41 (dw2_lookup_symbol): Change block_index parameter
42 type to block_enum.c
43 (dw2_debug_names_lookup_symbol): Likewise.
44 * psymtab.c (psym_lookup_symbol): Likewise.
45 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
46 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
47 Likewise.
48
ead0e69a
CB
492019-09-06 Christian Biesinger <cbiesinger@google.com>
50
51 * defs.h (relocate_gdb_directory): Change int to bool in
52 signature and rename flag to relocatable.
53 * main.c (relocate_path): Likewise.
54 (relocate_gdb_directory): Likewise.
55
b16c44de
AM
562019-09-06 Alan Modra <amodra@gmail.com>
57
58 * coffread.c (coff_symfile_read): Constify filename variable.
59 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
60 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
61 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
62 * solib.c (reload_shared_libraries_1): Likewise.
63 * symfile.c (reread_symbols): Likewise.
64 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
65 * solib-darwin.c (darwin_bfd_open): Likewise.
66 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
67
06ff036e
AB
682019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
69
70 * psymtab.c (print_partial_symbols): Handle missing domain_enum
71 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
72
4e962e74
TT
732019-09-03 Tom Tromey <tromey@adacore.com>
74
75 * ada-valprint.c (ada_val_print_num): Don't recurse for range
76 types.
77 (has_negatives): Unbias a range type bound.
78 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
79 * gdbtypes.c (operator==): Handle new field.
80 (create_range_type): Add "bias" parameter.
81 (create_static_range_type, resolve_dynamic_range): Update.
82 * gdbtypes.h (struct range_bounds) <bias>: New member.
83 (create_range_type): Add bias parameter.
84 * printcmd.c (print_scalar_formatted): Unbias range types.
85 * value.c (unpack_long): Unbias range types.
86 (pack_long): Bias range types.
87
d90b8f26
AH
882019-09-02 Alan Hayward <alan.hayward@arm.com>
89
90 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
91 probe arguments.
92
fe01123e
AH
932019-09-02 Alan Hayward <alan.hayward@arm.com>
94
95 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
96 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
97 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
98 (compile_probe_arg): Likewise.
99 * probe.h (get_argument_count): Likewise.
100 * solib-svr4.c (solib_event_probe_action): Likewise.
101 * stap-probe.c (stap_probe::get_argument_count): Likewise.
102
e661ef01
AH
1032019-09-02 Alan Hayward <alan.hayward@arm.com>
104
105 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
106 code to here...
107 (svr4_create_solib_event_breakpoints): ...from here.
108
47a536d9
SDJ
1092019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
110
111 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
112 suffix from warning message.
113
d6a00eba
TT
1142019-08-30 Tom Tromey <tom@tromey.com>
115
116 * tui/tui-winsource.h (struct tui_source_window_base)
117 <refresh_all>: Don't declare.
118 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
119 Remove.
120 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
121 tui_show_locator_content.
122 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
123 declare.
124 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
125 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
126 declare.
127
55b2657b
TT
1282019-08-30 Tom Tromey <tom@tromey.com>
129
130 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
131
12a8555a
TT
1322019-08-30 Tom Tromey <tom@tromey.com>
133
134 * tui/tui-stack.c (_initialize_tui_stack): Move later.
135 Remove unnecessary forward declarations.
136
900ac242
TT
1372019-08-30 Tom Tromey <tom@tromey.com>
138
139 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
140 rerender.
141 (tui_update_locator_fullname, tui_show_frame_info): Don't call
142 tui_show_locator_content.
143
99ab33fb
TT
1442019-08-30 Tom Tromey <tom@tromey.com>
145
146 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
147 (tui_locator_window::rerender): Rewrite using body of previous
148 tui_show_locator_content.
149
e594a5d1
TT
1502019-08-30 Tom Tromey <tom@tromey.com>
151
152 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
153 set_locator_fullname>: New methods.
154 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
155 Rename from tui_set_locator_fullname.
156 (tui_locator_window::set_locator_info): Rename from
157 tui_set_locator_info. Return bool.
158 (tui_update_locator_fullname, tui_show_frame_info): Update.
159
715bb467
TT
1602019-08-30 Tom Tromey <tom@tromey.com>
161
162 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
163
772f3f03
TT
1642019-08-30 Tom Tromey <tom@tromey.com>
165
166 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
167 call touchwin.
168
108e13ab
TT
1692019-08-30 Tom Tromey <tom@tromey.com>
170
171 * tui/tui-wingeneral.c (box_win): Assume win_info and
172 win_info->handle cannot be NULL.
173
cdaa6eb4
TT
1742019-08-30 Tom Tromey <tom@tromey.com>
175
176 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
177 refresh_window>: Declare.
178 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
179 resize.
180 (tui_data_item_window::rerender): Rename from
181 tui_display_register.
182 (tui_data_item_window::refresh_window): New method.
183 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
184 no-op.
185
89df7f90
TT
1862019-08-30 Tom Tromey <tom@tromey.com>
187
188 * tui/tui-regs.h (struct tui_data_window) <regs_content,
189 regs_column_count, current_group>: Move later. Now private.
190 <get_current_group>: New method.
191 * tui/tui-regs.c (tui_reg_command): Update.
192 * tui/tui-layout.c (tui_set_layout): Update.
193
1bf2866a
TT
1942019-08-30 Tom Tromey <tom@tromey.com>
195
196 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
197 (tui_data_window::rerender): Don't call
198 check_and_display_highlight_if_needed.
199 (tui_data_window::refresh_all): Remove call to
200 erase_data_content.
201
0670413d
TT
2022019-08-30 Tom Tromey <tom@tromey.com>
203
204 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
205 (tui_data_window::display_registers_from)
206 (tui_data_window::display_reg_element_at_line)
207 (tui_data_window::display_registers_from_line): Remove checks of
208 "empty".
209
18bb55c7
TT
2102019-08-30 Tom Tromey <tom@tromey.com>
211
212 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
213 Don't declare.
214 * tui/tui-regs.c (tui_data_window::show_registers): Call
215 rerender.
216 (tui_data_window::rerender): Rename from display_all_data.
217 (tui_data_window::rerender): Remove old implementation.
218
1f6d2f10
TT
2192019-08-30 Tom Tromey <tom@tromey.com>
220
221 * tui/tui-regs.c (tui_data_window::display_all_data): Change
222 text.
223 * tui/tui-data.h (NO_DATA_STRING): Remove define.
224
16d01f9c
BW
2252019-08-29 Bernhard Wodok <barto@gmx.net>
226 Sergio Durigan Junior <sergiodj@redhat.com>
227
228 PR win32/24284
229 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
230
d8f27c60
AB
2312019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
234 when searching for types.
235
1f20c35e
AB
2362019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
237
238 * f-lang.c (f_language_defn): Use f_print_typedef.
239 * f-lang.h (f_print_typedef): Declare.
240 * f-typeprint.c (f_print_typedef): Define.
241
550105b7
CB
2422019-08-27 Christian Biesinger <cbiesinger@google.com>
243
244 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
245
4acfdd20
AB
2462019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
247
248 * cli/cli-utils.c (info_print_options_defs): Delete.
249 (make_info_print_options_def_group): Delete.
250 (extract_info_print_options): Delete.
251 (info_print_command_completer): Delete.
252 (info_print_args_help): Add extra parameter, and optionally
253 include text about -n flag.
254 * cli/cli-utils.h (struct info_print_options): Delete.
255 (extract_info_print_options): Delete declaration.
256 (info_print_command_completer): Delete declaration.
257 (info_print_args_help): Add extra parameter, extend header
258 comment.
259 * python/python.c (gdbpy_rbreak): Pass additional parameter to
260 search_symbols.
261 * stack.c (struct info_print_options): New type.
262 (info_print_options_defs): New file scoped variable.
263 (make_info_print_options_def_group): New static function.
264 (info_print_command_completer): New static function.
265 (info_locals_command): Update to use new local functions.
266 (info_args_command): Likewise.
267 (_initialize_stack): Add extra parameter to calls to
268 info_print_args_help.
269 * symtab.c (search_symbols): Add extra parameter, use this to
270 possibly excluse non-debug symbols.
271 (symtab_symbol_info): Add extra parameter, which is passed on to
272 search_symbols.
273 (struct info_print_options): New type.
274 (info_print_options_defs): New file scoped variable.
275 (make_info_print_options_def_group): New static function.
276 (info_print_command_completer): New static function.
277 (info_variables_command): Update to use local functions, and pass
278 extra parameter through to symtab_symbol_info.
279 (info_functions_command): Likewise.
280 (info_types_command): Pass additional argument through to
281 symtab_symbol_info.
282 (rbreak_command): Pass extra argument to search_symbols.
283 (_initialize_symtab): Add extra arguments for calls to
284 info_print_args_help, and update help text for 'info variables',
285 'whereis', and 'info functions' commands.
286 * symtab.h (search_symbols): Add extra argument to declaration.
287 * NEWS: Mention new flags.
288
9aa55206
CB
2892019-08-26 Christian Biesinger <cbiesinger@google.com>
290
291 * symtab.c (lookup_static_symbol): Call the new function (and move
292 it down to be next to lookup_global_symbol).
293 (struct global_sym_lookup_data): Add block_enum member and rename to...
294 (struct global_or_static_sym_lookup_data): ...this.
295 (lookup_symbol_global_iterator_cb): Pass block_index instead of
296 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
297 (lookup_symbol_global_or_static_iterator_cb): ...this.
298 (lookup_global_or_static_symbol): New function.
299 (lookup_global_symbol): Call new function.
300
5c31b358
TV
3012019-08-26 Tom de Vries <tdevries@suse.de>
302
303 PR c++/24852
304 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
305 when pc_probe.prob == NULL.
306
23c13d42
SM
3072019-08-25 Simon Marchi <simon.marchi@efficios.com>
308
309 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
310 variable symbol_linkage to symbol_linkage_.
311
beadd3e8
SM
3122019-08-25 Simon Marchi <simon.marchi@efficios.com>
313
314 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
315 represent whether the symbol is static, dynamic, or we don't
316 know.
317
e3ec872f
YS
3182019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
319
320 * gdb/rx-tdep.c (rx_register_names): New.
321 (rx_register_name): Delete.
322 (rx_psw_type): Delete.
323 (rx_fpsw_type): Delete.
324 (rx_register_type): Delete.
325 (rx_gdbarch_init): Convert target-descriptions.
326 (_initialize_rx_tdep): Add initialize_tdesc_rx.
327 * gdb/features/Makefile: Add rx.xml.
328 * gdb/features/rx.xml: New.
329 * gdb/features/rx.c: Generated.
330 * gdb/NEWS: Mention target description support.
331
d0509ba4
CB
3322019-08-22 Christian Biesinger <cbiesinger@google.com>
333
334 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
335 *slot_ptr.
336
2d41fa11
SDJ
3372019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
338
339 * configure.ac: Don't check for 'dlfcn.h' (moved to
340 gdbsupport/common.m4).
341 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
342 'gdbsupport/'.
343 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
344 * compile/compile-c-support.c: Include
345 'gdbsupport/gdb-dlfcn.h'.
346 * gdbsupport/common.m4: Check for 'dlfcn.h'.
347 * gdb-dlfcn.c: Move to...
348 * gdbsupport/gdb-dlfcn.c: ... here.
349 * gdb-dlfcn.h: Move to...
350 * gdbsupport/gdb-dlfcn.h: ... here.
351
de8af808
SL
3522019-08-23 Sandra Loosemore <sandra@codesourcery.com>
353
354 * nios2-tdep.c (struct reg_value): Improve comments. Make
355 the offset field signed.
356
27204489
CB
3572019-08-22 Christian Biesinger <cbiesinger@google.com>
358
359 * python/lib/gdb/__init__.py (_execute_file): New function.
360 * python/python.c (python_run_simple_file): Call gdb._execute_file
361 on Windows.
362
43771869
AB
3632019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
364
365 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
366 all uses as this was never set to anything but a zero value.
367
26c957f1
PA
3682019-08-21 Bogdan Harjoc <harjoc@gmail.com>
369
370 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
371
c07aae6e
CB
3722019-08-21 Christian Biesinger <cbiesinger@google.com>
373
374 * tui/tui-data.h (tui_gen_win_info): Add an =default
375 move constructor, required by some GCC versions.
376
3960cb7a
JF
3772019-08-21 Jinke Fan <fanjinke51@yeah.net>
378
379 * go32-nat.c (go32_sysinfo): Add hygon_p.
380
04c72a68
TT
3812019-08-20 Tom Tromey <tom@tromey.com>
382
383 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
384 line_from_reg_element_no, first_reg_element_no_inline,
385 display_all_data, delete_data_content_windows,
386 erase_data_content>: Now private.
387
072272ce
TT
3882019-08-20 Tom Tromey <tom@tromey.com>
389
390 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
391 (tui_unhighlight_win, tui_highlight_win)
392 (tui_win_info::make_window): Update.
393 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
394
973961bd
TT
3952019-08-20 Tom Tromey <tom@tromey.com>
396
397 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
398 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
399 (MAX_PID_WIDTH): Move to tui-stack.c.
400 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
401 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
402 (MAX_PID_WIDTH): Move from tui-data.h.
403
ab0e1f1a
TT
4042019-08-20 Tom Tromey <tom@tromey.com>
405
406 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
407 * tui/tui-wingeneral.c (box_win): Change type of win_info.
408 (box_win): Update.
409 (tui_gen_win_info::make_window): Rename from tui_make_window.
410 (tui_win_info::make_window): New method.
411 (tui_gen_win_info::make_visible): Update.
412 * tui/tui-source.c (tui_source_window::set_contents): Update.
413 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
414 (tui_data_window::display_registers_from): Update.
415 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
416 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
417 Declare.
418 <can_box>: Remove.
419 <title>: Remove.
420 (struct tui_win_info) <make_window>: Declare.
421 <can_box>: Now virtual.
422 <title>: New member.
423 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
424 * tui/tui-command.c (tui_cmd_window::resize): Update.
425
100c2bf3
TT
4262019-08-20 Tom Tromey <tom@tromey.com>
427
428 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
429 * tui/tui-regs.c (tui_data_window::show_registers): Update.
430 (tui_data_window::check_register_values): Update.
431
fa4dc567
TT
4322019-08-20 Tom Tromey <tom@tromey.com>
433
434 * tui/tui-regs.h (struct tui_data_window): Use
435 DISABLE_COPY_AND_ASSIGN.
436 <regs_content>: Change type, removing unique_ptr.
437 <tui_data_window>: Add move constructor.
438 * tui/tui-regs.c (tui_data_window::show_registers)
439 (tui_data_window::show_register_group)
440 (tui_data_window::display_registers_from)
441 (tui_data_window::display_registers_from)
442 (tui_data_window::first_data_item_displayed)
443 (tui_data_window::delete_data_content_windows)
444 (tui_data_window::rerender, tui_data_window::refresh_window)
445 (tui_data_window::check_register_values): Update.
446
ca02d7c8
TT
4472019-08-20 Tom Tromey <tom@tromey.com>
448
449 * tui/tui-regs.h (struct tui_data_window) <show_registers,
450 show_register_group>: Declare.
451 (tui_show_register_group): Don't declare.
452 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
453 tui_show_registers.
454 (tui_data_window::show_register_group): Rename from
455 tui_show_register_group.
456 (tui_data_window::check_register_values, tui_reg_command):
457 Update.
458 * tui/tui-layout.c (tui_set_layout): Update.
459
63356bfd
TT
4602019-08-20 Tom Tromey <tom@tromey.com>
461
462 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
463 Declare.
464 (tui_check_register_values): Don't declare.
465 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
466 from tui_check_register_values.
467 * tui/tui-hooks.c (tui_register_changed): Update.
468
42cc14a7
TT
4692019-08-20 Tom Tromey <tom@tromey.com>
470
471 * tui/tui-regs.c (tui_reg_layout): Move later.
472 (tui_show_registers): Don't enable TUI mode or change layout.
473
b9ad3686
TT
4742019-08-20 Tom Tromey <tom@tromey.com>
475
476 * tui/tui-regs.h (struct tui_data_item_window)
477 <~tui_data_item_window>: Remove.
478 <content>: Now a unique_xmalloc_ptr.
479 * tui/tui-regs.c (tui_register_format): Return a
480 unique_xmalloc_ptr.
481 (tui_get_register): Update.
482 (~tui_data_item_window): Remove.
483 (tui_data_window::display_registers_from, tui_display_register):
484 Update.
485 * tui/tui-io.h (tui_expand_tabs): Update.
486 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
487 Remove "col" parameter.
488
8e114aab
TT
4892019-08-20 Tom Tromey <tom@tromey.com>
490
491 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
492 field.
493 * tui/tui-regs.c (~tui_data_item_window): Update.
494
1a4f81dd
TT
4952019-08-20 Tom Tromey <tom@tromey.com>
496
497 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
498 earlier.
499
0f8d8876
TT
5002019-08-20 Tom Tromey <tom@tromey.com>
501
502 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
503
605dc2c2
TT
5042019-08-20 Tom Tromey <tom@tromey.com>
505
506 * tui/tui-source.h (struct tui_source_window): Update.
507 * tui/tui-regs.c (tui_show_registers): Update.
508 * tui/tui-disasm.h (struct tui_disasm_window): Update.
509 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
510 (NO_REGS_STRING): Remove defines.
511
aedbe3bb
CM
5122019-08-20 Conrad Meyer <cem@FreeBSD.org>
513
514 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
515 unnecessary thread walk if remote doesn't support the packet.
516
7ce8f214
TT
5172019-08-19 Tom Tromey <tromey@adacore.com>
518
519 * python/py-value.c (value_has_field): Fix indentation.
520
f21c2bd7
TT
5212019-08-19 Tom Tromey <tromey@adacore.com>
522
523 * printcmd.c (do_one_display, info_display_command): Update.
524 * block.h (contained_in): Return bool. Add allow_nested
525 parameter.
526 * block.c (contained_in): Return bool. Add allow_nested
527 parameter.
528
d806ea2d
TT
5292019-08-19 Tom Tromey <tom@tromey.com>
530
531 * configure: Rebuild.
532 * configure.ac: Disallow the combination of -static-libstdc++ and
533 source highlight.
534 * source-cache.c (get_language_name): Handle rust.
535 (source_cache::get_source_lines): Ignore highlighting exceptions.
536
398fdd60
TT
5372019-08-16 Tom Tromey <tom@tromey.com>
538
539 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
540 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
541 (struct tui_source_window_base) <make_visible, refresh_window,
542 resize>: Remove methods.
543 <execution_info>: Remove field.
544 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
545 (tui_show_source_line, tui_source_window_base)
546 (~tui_source_window_base): Update.
547 (tui_source_window_base::resize)
548 (tui_source_window_base::make_visible)
549 (tui_source_window_base::refresh_window): Remove.
550 (tui_source_window_base::update_exec_info): Update.
551 * tui/tui-source.c (tui_source_window::set_contents): Update.
552 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
553
e699d331
TT
5542019-08-16 Tom Tromey <tom@tromey.com>
555
556 * tui/tui-hooks.c (tui_remove_hooks): Don't set
557 deprecated_query_hook.
558
bb01dbfc
TT
5592019-08-16 Tom Tromey <tom@tromey.com>
560
561 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
562 (tui_update_source_windows_with_line): Update.
563 * tui/tui-source.h (struct tui_source_window)
564 <show_symtab_source>: Declare.
565 (tui_show_symtab_source): Don't declare.
566 * tui/tui-source.c (tui_show_symtab_source): Rename from
567 tui_show_symtab_source.
568
81c82c4b
TT
5692019-08-16 Tom Tromey <tom@tromey.com>
570
571 * tui/tui-winsource.h (struct tui_source_window_base)
572 <set_contents>: Declare.
573 * tui/tui-winsource.c
574 (tui_source_window_base::update_source_window_as_is): Update.
575 * tui/tui-source.h (struct tui_source_window) <set_contents>:
576 Declare.
577 (tui_set_source_content): Don't declare.
578 * tui/tui-source.c (tui_source_window::set_contents): Rename from
579 tui_set_source_content.
580 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
581 Declare.
582 (tui_set_disassem_content): Don't declare.
583 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
584 tui_set_disassem_content.
585
2ddaf614
TT
5862019-08-16 Tom Tromey <tom@tromey.com>
587
588 * tui/tui-winsource.h (struct tui_source_window_base)
589 <update_breakpoint_info>: Declare.
590 (tui_update_breakpoint_info): Don't declare.
591 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
592 (tui_update_all_breakpoint_info): Update.
593 (tui_source_window_base::update_breakpoint_info): Rename from
594 tui_update_breakpoint_info.
595 (tui_source_window_base::update_exec_info): Update.
596
017f9828
TT
5972019-08-16 Tom Tromey <tom@tromey.com>
598
599 * tui/tui-winsource.h (struct tui_source_window_base)
600 <update_source_window>: Declare.
601 (tui_update_source_window): Don't declare.
602 * tui/tui-winsource.c
603 (tui_source_window_base::update_source_window): Rename from
604 tui_update_source_window.
605 (tui_source_window_base::rerender): Update.
606 * tui/tui-source.c (tui_source_window::maybe_update): Update.
607 * tui/tui-disasm.c (tui_show_disassem)
608 (tui_show_disassem_and_update_source)
609 (tui_disasm_window::maybe_update): Update.
610
ed8358e9
TT
6112019-08-16 Tom Tromey <tom@tromey.com>
612
613 * tui/tui-winsource.h (struct tui_source_window_base)
614 <update_source_window_as_is>: Declare.
615 (tui_update_source_window_as_is): Don't declare.
616 * tui/tui-winsource.c (tui_update_source_window): Update
617 (tui_source_window_base::update_source_window_as_is): Rename from
618 tui_update_source_window_as_is.
619 (tui_source_window_base::refill): Update.
620 * tui/tui-source.c (tui_show_symtab_source): Update.
621 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
622 Update.
623
20149b6b
TT
6242019-08-16 Tom Tromey <tom@tromey.com>
625
626 * tui/tui-winsource.h (tui_update_source_window)
627 (tui_update_source_window_as_is): Remove "noerror" parameter.
628 * tui/tui-winsource.c (tui_update_source_window)
629 (tui_update_source_window_as_is): Remove "noerror" parameter.
630 (tui_update_source_windows_with_addr)
631 (tui_update_source_windows_with_line)
632 (tui_source_window_base::rerender)
633 (tui_source_window_base::refill): Update.
634 * tui/tui-source.h (tui_set_source_content)
635 (tui_show_symtab_source): Remove "noerror" parameter.
636 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
637 parameter.
638 (tui_show_symtab_source): Likewise.
639 (tui_source_window::maybe_update): Update.
640 * tui/tui-disasm.c (tui_show_disassem)
641 (tui_show_disassem_and_update_source)
642 (tui_disasm_window::do_scroll_vertical)
643 (tui_disasm_window::maybe_update): Update.
644
2d83e710
TT
6452019-08-16 Tom Tromey <tom@tromey.com>
646
647 * tui/tui.c (tui_is_window_visible): Update.
648 * tui/tui-wingeneral.c (tui_make_window)
649 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
650 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
651 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
652 (tui_set_win_height_command, parse_scrolling_args): Update.
653 * tui/tui-source.c (tui_source_window::style_changed): Update.
654 * tui/tui-regs.c (tui_show_registers)
655 (tui_data_window::first_data_item_displayed)
656 (tui_data_window::delete_data_content_windows)
657 (tui_check_register_values, tui_reg_command): Update.
658 * tui/tui-disasm.c (tui_show_disassem): Update.
659 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
660 method.
661 <is_visible>: Remove field.
662 * tui/tui-data.c (tui_next_win, tui_prev_win)
663 (tui_delete_invisible_windows): Update.
664
d4ab829a
TT
6652019-08-16 Tom Tromey <tom@tromey.com>
666
667 * tui/tui-winsource.h (struct tui_source_window_base)
668 <m_has_locator>: Remove.
669 * tui/tui-layout.c (show_source_disasm_command, show_data)
670 (show_source_or_disasm_and_command): Update.
671
aa7ca1bb
AH
6722019-08-16 Alan Hayward <alan.hayward@arm.com>
673
674 * NEWS (Other MI changes): New subsection.
675 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
676 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
677 * arch-utils.c (default_get_pc_address_flags): New function.
678 * arch-utils.h (default_get_pc_address_flags): New declaration.
679 * gdbarch.sh: Add get_pc_address_flags.
680 * gdbarch.c: Regenerate.
681 * gdbarch.h: Likewise.
682 * stack.c (print_pc): New function.
683 (print_frame_info) (print_frame): Call print_pc.
684
6eac171f
TV
6852019-08-16 Tom de Vries <tdevries@suse.de>
686
687 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
688 print_objfile_section_info.
689
3df505f6
TT
6902019-08-15 Tom Tromey <tom@tromey.com>
691
692 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
693 calling update_cmdwin_start_line.
694 * tui/tui-winsource.h (struct tui_source_window_base)
695 <do_make_visible_with_new_height, set_new_height>: Don't declare.
696 <rerender>: Declare.
697 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
698 Call rerender.
699 (tui_source_window_base::set_new_height): Remove.
700 (tui_source_window_base::rerender): Rename from
701 do_make_visible_with_new_height.
702 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
703 resize method.
704 (tui_win_info::make_invisible_and_set_new_height)
705 (tui_win_info::make_visible_with_new_height): Remove.
706 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
707 Declare.
708 * tui/tui-stack.c (tui_locator_window::rerender): New method.
709 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
710 do_make_visible_with_new_height>: Don't declare.
711 <rerender>: Declare.
712 * tui/tui-regs.c (tui_data_window::rerender): Rename from
713 set_new_height.
714 (tui_data_window::do_make_visible_with_new_height): Remove.
715 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
716 call tui_show_locator_content.
717 (tui_gen_win_info::resize): Call rerender.
718 (show_source_or_disasm_and_command): Don't call
719 tui_show_locator_content.
720 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
721 method.
722 (struct tui_win_info) <rerender>: Declare.
723 <set_new_height, make_invisible_and_set_new_height,
724 make_visible_with_new_height>: Don't declare.
725 * tui/tui-data.c (tui_win_list::rerender): New method.
726 * tui/tui-command.h (struct tui_cmd_window)
727 <do_make_visible_with_new_height>: Don't declare.
728 * tui/tui-command.c
729 (tui_cmd_window::do_make_visible_with_new_height): Remove.
730
272560b5
TT
7312019-08-15 Tom Tromey <tromey@adacore.com>
732
733 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
734 * ada-lang.c (ada_enum_name): Likewise.
735
08235187
CB
7362019-08-15 Christian Biesinger <cbiesinger@google.com>
737
738 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
739 leading underscore.
740 (GdbOutputErrorFile): Likewise.
741 (global scope): Adjust constructor calls to GdbOutput{,Error}File
742 accordingly.
743 (execute_unwinders): Rename to have a leading underscore.
744 (auto_load_packages): Likewise.
745 (global scope): Adjust call to auto_load_packages accordingly.
746 (GdbSetPythonDirectory): Likewise.
747 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
748 instead of execute_unwinders.
749
db502012
TT
7502019-08-15 Tom Tromey <tom@tromey.com>
751
752 * tui/tui-layout.c (show_layout, show_source_disasm_command)
753 (show_data): Don't change window visibility.
754 (tui_gen_win_info::resize): Remove special case for command
755 window. Use wresize, when available.
756 (show_source_or_disasm_and_command): Don't change window
757 visibility.
758 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
759 <make_visible>: New method.
760 * tui/tui-command.c (tui_cmd_window::resize): New method.
761
3891b65e
TT
7622019-08-15 Tom Tromey <tom@tromey.com>
763
764 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
765 (struct tui_source_windows): New.
766 * tui/tui-winsource.c (tui_display_main): Update.
767 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
768 (new_height_ok, parse_scrolling_args): Update.
769 * tui/tui-layout.c (show_layout, show_data): Update.
770 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
771 (tui_add_to_source_windows): Don't declare.
772 * tui/tui-data.c (source_windows, tui_source_windows)
773 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
774
ee556432
TT
7752019-08-15 Tom Tromey <tom@tromey.com>
776
777 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
778 Rename from reset.
779 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
780 * tui/tui-layout.c (show_source_disasm_command, show_data):
781 Update.
782 (tui_gen_win_info::resize): Rename.
783 (show_source_or_disasm_and_command): Update.
784 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
785 reset.
786
46f438e3
TT
7872019-08-15 Tom Tromey <tom@tromey.com>
788
789 * tui/tui-stack.c (tui_initialize_static_data): Remove.
790 * tui/tui-interp.c (tui_interp::init): Don't call
791 tui_initialize_static_data.
792 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
793
f4ce562c
TT
7942019-08-15 Tom Tromey <tom@tromey.com>
795
796 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
797 examine tui_win_list.
798
c398c3d0
TT
7992019-08-15 Tom Tromey <tom@tromey.com>
800
801 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
802 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
803 tui_clear_source_content.
804 (tui_clear_source_content): Remove.
805 (tui_source_window_base::do_erase_source_content): Hoist call to
806 content.clear().
807 * tui/tui-stack.c (tui_show_frame_info): Don't call
808 tui_clear_source_content.
809
e25d2004
TT
8102019-08-15 Tom Tromey <tom@tromey.com>
811
812 * tui/tui-winsource.h (struct tui_source_window_base)
813 <do_erase_source_content>: New method.
814 <erase_source_content>: New method.
815 (tui_erase_source_content): Don't declare.
816 * tui/tui-winsource.c (tui_clear_source_content): Update.
817 (tui_source_window_base::do_erase_source_content): Rename from
818 tui_erase_source_content.
819 (tui_source_window_base::show_source_content): Update.
820 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
821 * tui/tui-source.h (struct tui_source_window)
822 <erase_source_content>: New method.
823 * tui/tui-disasm.h (struct tui_disasm_window)
824 <erase_source_content>: New method.
825
002f15c2
TT
8262019-08-15 Tom Tromey <tom@tromey.com>
827
828 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
829 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
830 constructor.
831 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
832 * tui/tui-source.c (tui_set_source_content): Update.
833 * tui/tui-disasm.c (tui_set_disassem_content): Update.
834
c9033fe8
TT
8352019-08-15 Tom Tromey <tom@tromey.com>
836
837 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
838 * tui/tui-winsource.c (tui_line_is_displayed): Move to
839 tui-source.c.
840 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
841 Declare.
842 * tui/tui-source.c (tui_source_window::line_is_displayed): New
843 method.
844 (tui_source_window::maybe_update): Update.
845
088f37dd
TT
8462019-08-15 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
849 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
850 tui-disasm.c.
851 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
852 Declare.
853 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
854 method.
855 (tui_disasm_window::maybe_update): Update.
856
a54700c6
TT
8572019-08-15 Tom Tromey <tom@tromey.com>
858
859 * tui/tui-winsource.h (struct tui_source_window_base)
860 <maybe_update>: Declare.
861 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
862 method.
863 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
864 Declare.
865 * tui/tui-source.c (tui_source_window::maybe_update): New method.
866 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
867 Declare.
868 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
869
e2a678a5
TT
8702019-08-15 Tom Tromey <tom@tromey.com>
871
872 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
873
f2dda477
TT
8742019-08-15 Tom Tromey <tom@tromey.com>
875
876 * tui/tui-wingeneral.c: Include tui-stack.h.
877 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
878 (struct tui_locator_window): Move from tui-data.h.
879 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
880 (tui_initialize_static_data): Move from tui-data.c.
881 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
882 (struct tui_locator_window): Move to tui-stack.c.
883 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
884 (tui_initialize_static_data): Move to tui-stack.c.
885
ed4a1084
TT
8862019-08-15 Tom Tromey <tom@tromey.com>
887
888 * tui/tui-layout.c (show_source_disasm_command)
889 (show_source_or_disasm_and_command): Use make_visible method, not
890 tui_make_window.
891 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
892 Remove.
893
65962b20
TT
8942019-08-15 Tom Tromey <tom@tromey.com>
895
896 * tui/tui-wingeneral.h (tui_make_window): Update.
897 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
898 parameter.
899 (tui_gen_win_info::make_visible): Update.
900 * tui/tui-regs.c (tui_data_window::display_registers_from):
901 Update.
902 * tui/tui-layout.c (show_source_disasm_command)
903 (show_source_or_disasm_and_command): Update.
904 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
905 (enum tui_box): Remove.
906 (struct tui_win_info) <can_box>: New method.
907 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
908 method.
909
2208ee91
TV
9102019-08-15 Tom de Vries <tdevries@suse.de>
911
912 * linux-nat-trad.c: Include gdbarch.h.
913
75faf5c4
AH
9142019-08-14 Alan Hayward <alan.hayward@arm.com>
915
916 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
917 register sizes.
918
b1c896b3
TT
9192019-08-14 Tom Tromey <tromey@adacore.com>
920
921 * darwin-nat.c: Include gdbarch.h.
922 * darwin-nat-info.c: Include gdbarch.h.
923
6405cd73
TT
9242019-08-13 Tom Tromey <tom@tromey.com>
925
926 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
927 Remove.
928 * tui/tui-data.c (tui_initialize_static_data): Update.
929
5216580d
TT
9302019-08-13 Tom Tromey <tom@tromey.com>
931
932 * tui/tui-winsource.h (struct tui_exec_info_window)
933 <~tui_exec_info_window, maybe_allocate_content, get_content,
934 m_content>: Remove.
935 (struct tui_source_window_base) <set_exec_info_content,
936 show_exec_info_content>: Don't declare.
937 * tui/tui-winsource.c
938 (tui_exec_info_window::maybe_allocate_content): Remove.
939 (tui_source_window_base::update_exec_info): Rename from
940 set_exec_info_content.
941 (tui_source_window_base::show_exec_info_content)
942 (tui_source_window_base::update_exec_info): Remove.
943
93858ad3
TT
9442019-08-13 Tom Tromey <tom@tromey.com>
945
946 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
947 declare.
948 * tui/tui-winsource.c (tui_update_source_window_as_is)
949 (tui_update_source_windows_with_addr, tui_erase_source_content):
950 Update.
951 (tui_clear_exec_info_content): Remove.
952
e321e7ce
TT
9532019-08-13 Tom Tromey <tom@tromey.com>
954
955 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
956 declare.
957 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
958 call tui_erase_exec_info_content.
959 (tui_clear_exec_info_content): Rename from
960 tui_erase_exec_info_content.
961 (tui_clear_exec_info_content): Delete.
962
8270ac62
TT
9632019-08-13 Tom Tromey <tom@tromey.com>
964
965 * tui/tui-winsource.h (struct tui_source_window_base)
966 <show_exec_info_content>: Declare.
967 (tui_show_exec_info_content): Don't declare.
968 * tui/tui-winsource.c
969 (tui_source_window_base::show_exec_info_content): Rename from
970 tui_show_exec_info_content.
971 (tui_source_window_base::update_exec_info): Update.
972
7b56485d
TT
9732019-08-13 Tom Tromey <tom@tromey.com>
974
975 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
976 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
977 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
978 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
979 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
980 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
981 ... here.
982
7ba913dc
TT
9832019-08-13 Tom Tromey <tom@tromey.com>
984
985 * tui/tui-winsource.h (struct tui_source_window_base)
986 <update_exec_info>: Declare.
987 (tui_update_exec_info): Don't declare.
988 * tui/tui-winsource.c (tui_update_source_window_as_is)
989 (tui_source_window_base::refresh_all)
990 (tui_update_all_breakpoint_info): Update.
991 (tui_source_window_base::update_exec_info): Rename from
992 tui_update_exec_info.
993 * tui/tui-stack.c (tui_show_frame_info): Update.
994
37a4a131
TT
9952019-08-13 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-winsource.h (struct tui_source_window_base)
998 <set_exec_info_content>: Declare.
999 (tui_set_exec_info_content): Don't declare.
1000 * tui/tui-winsource.c
1001 (tui_source_window_base::set_exec_info_content): Rename from
1002 tui_set_exec_info_content.
1003 (tui_update_exec_info): Update.
1004
0bd27e07
TT
10052019-08-13 Tom Tromey <tom@tromey.com>
1006
1007 * tui/tui-winsource.h (struct tui_source_window_base)
1008 <show_source_content>: Declare.
1009 (tui_show_source_content): Don't declare.
1010 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1011 (tui_source_window_base::show_source_content): Rename from
1012 tui_show_source_content.
1013 (tui_source_window_base::refresh_all): Update.
1014 * tui/tui-layout.c (show_source_disasm_command)
1015 (show_source_or_disasm_and_command): Update.
1016
b4ef5aeb
TT
10172019-08-13 Tom Tromey <tom@tromey.com>
1018
1019 * tui/tui-winsource.c (tui_erase_source_content)
1020 (tui_show_source_content, tui_source_window_base::refresh_all):
1021 Update.
1022 * tui/tui-wingeneral.h
1023 (tui_check_and_display_highlight_if_needed): Don't declare.
1024 * tui/tui-wingeneral.c
1025 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1026 check_and_display_highlight_if_needed.
1027 * tui/tui-win.c (tui_rehighlight_all)
1028 (tui_win_info::make_visible_with_new_height): Update.
1029 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1030 (tui_data_window::erase_data_content)
1031 (tui_data_window::display_all_data): Update.
1032 * tui/tui-data.h (struct tui_win_info)
1033 <check_and_display_highlight_if_needed>: Declare.
1034
fede5273
TT
10352019-08-13 Tom Tromey <tom@tromey.com>
1036
1037 * tui/tui-win.c (tui_resize_all): Call
1038 tui_delete_invisible_windows.
1039 * tui/tui-layout.c (show_layout): Call
1040 tui_delete_invisible_windows.
1041 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1042 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1043
22c3f490
TT
10442019-08-13 Tom Tromey <tom@tromey.com>
1045
1046 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1047 tui_add_win_to_layout.
1048
16cb7910
TT
10492019-08-13 Tom Tromey <tom@tromey.com>
1050
1051 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1052 * tui/tui-layout.c (tui_default_win_height): Now static.
1053
cc0c3ffb
TT
10542019-08-13 Tom Tromey <tom@tromey.com>
1055
1056 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1057 single switch.
1058 (show_source_disasm_command, show_source_or_disasm_and_command):
1059 Don't check current layout.
1060
3f3ffe54
TT
10612019-08-13 Tom Tromey <tom@tromey.com>
1062
1063 * tui/tui-wingeneral.c (make_all_visible): Remove.
1064 (tui_make_all_invisible): Simplify.
1065 * tui/tui-layout.c (tui_make_all_invisible): Move from
1066 tui-wingeneral.c; simplify.
1067 (show_layout): Hoist call to tui_make_all_invisible.
1068 (show_data): Don't call tui_make_all_invisible.
1069
69258091
TT
10702019-08-13 Tom Tromey <tom@tromey.com>
1071
1072 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1073 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1074
62cf57fe
TT
10752019-08-13 Tom Tromey <tom@tromey.com>
1076
1077 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1078 tui-data.c.
1079 (show_source_disasm_command, show_data)
1080 (show_source_or_disasm_and_command): Don't use
1081 tui_set_current_layout_to.
1082 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1083 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1084 tui-layout.c.
1085 (tui_set_current_layout_to): Remove.
1086
2afade5d
TT
10872019-08-13 Tom Tromey <tom@tromey.com>
1088
1089 * tui/tui-layout.c (tui_set_layout): Update.
1090 * tui/tui-data.h (struct tui_layout_def): Remove.
1091 (tui_layout_def): Don't declare.
1092 * tui/tui-data.c (layout_def): Remove.
1093 (tui_layout_def): Remove.
1094
a3504e96
TT
10952019-08-13 Tom Tromey <tom@tromey.com>
1096
1097 * tui/tui-winsource.h (struct tui_source_window_base)
1098 <clear_detail>: No longer "override".
1099 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1100 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1101 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1102 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1103 Remove.
1104 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1105
29c92911
TT
11062019-08-13 Tom Tromey <tromey@adacore.com>
1107
1108 * tracepoint.c: Don't include readline.h or history.h.
1109
86c6b807
TT
11102019-08-12 Tom Tromey <tom@tromey.com>
1111
1112 * configure: Rebuild.
1113 * configure.ac: Check for readline 7.
1114 * NEWS: Mention readline 7 requirement.
1115 * README: Update.
1116
5db2718c
TT
11172019-08-12 Tom Tromey <tom@tromey.com>
1118
1119 * mingw-hdep.c (gdb_select): Remove readline hack.
1120
dac36daf
PFC
11212019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1122
1123 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1124 when the function fails.
1125
1022c627
AA
11262019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1127
1128 * s390-tdep.c (s390_type_align): New function.
1129 (s390_gdbarch_init): Set it as type_align gdbarch method.
1130
eba4caf2
TV
11312019-08-09 Tom de Vries <tdevries@suse.de>
1132
1133 PR gdb/24591
1134 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1135 pc_low with relocation offset.
1136
123cd851
TT
11372019-08-07 Tom Tromey <tromey@adacore.com>
1138
1139 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1140 (print_frame_args): Update.
1141 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1142 Update.
1143 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1144 * frame.h (struct frame_arg): Add initializers.
1145 <error>: Now a unique_xmalloc_ptr.
1146
3d31bc39
AH
11472019-08-07 Alan Hayward <alan.hayward@arm.com>
1148
1149 * NEWS: Expand the Pointer Authentication entry.
1150 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1151 (aarch64_frame_unmask_lr): ... to this.
1152 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1153 Call aarch64_frame_unmask_lr.
1154 * frame.c (struct frame_info): Add "masked" variable.
1155 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1156 (fprint_frame): Check for masked pc.
1157 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1158 declarations.
1159 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1160 * stack.c (print_frame): Check for masked pc.
1161
0cf9feb9
TT
11622019-08-06 Tom Tromey <tom@tromey.com>
1163
1164 * stabsread.c (patch_block_stabs, read_one_struct_field)
1165 (read_enum_type): Use obstack_strndup.
1166 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1167 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1168 * dwarf2read.c (guess_full_die_structure_name)
1169 (anonymous_struct_prefix): Use obstack_strndup.
1170 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1171 * c-exp.y (yylex): Use obstack_strndup.
1172 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1173 (write_var_or_type): Use obstack_strndup.
1174
efba19b0
TT
11752019-08-06 Tom Tromey <tom@tromey.com>
1176
1177 * symfile.c (reread_symbols): Use obstack_strdup.
1178 * stabsread.c (read_type): Use obstack_strdup.
1179 * gdb_obstack.h (obstack_strdup): New overload.
1180 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1181 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1182 (dwarf2_canonicalize_name): Use obstack_strdup.
1183 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1184 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1185 Use obstack_strdup.
1186
f25102f7
TT
11872019-08-06 Tom Tromey <tom@tromey.com>
1188
1189 * gdb_obstack.h (obstack_strdup): Define.
1190 * gdb_obstack.c (obstack_strdup): Don't define.
1191
021887d8
TT
11922019-08-06 Tom Tromey <tom@tromey.com>
1193
1194 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1195 obstack_strdup.
1196 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1197 obstack_strdup.
1198 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1199 * stabsread.c (common_block_start): Use obstack_strdup.
1200 * objfiles.c (set_objfile_main_name, objfile): Use
1201 obstack_strdup.
1202 * namespace.c (add_using_directive): Use obstack_strdup.
1203 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1204 * jit.c (finalize_symtab): Use obstack_strdup.
1205 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1206 (guess_partial_die_structure_name, partial_die_info::fixup)
1207 (dwarf2_name): Use obstack_strdup.
1208 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1209 obstack_strdup.
1210 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1211 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1212 obstack_strdup.
1213 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1214
d2834edc
PW
12152019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1216
1217 * unittests/help-doc-selftests.c: New file.
1218 * Makefile.in: Add the new file.
1219
590042fc
PW
12202019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1221
1222 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1223 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1224 the full first line, except when FOR_VALUE_PREFIX. In this case,
1225 the trailing '.' is not output, and the first character is uppercased.
1226 (print_help_for_command): Update call to print_doc_line.
1227 (print_doc_of_command): Likewise.
1228 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1229 * cli/cli-option.c (append_indented_doc): Do not append newline.
1230 (build_help_option): Append newline after first appended_indented_doc
1231 only if a second call is done.
1232 (build_help): Append 2 new lines before each option, except the first
1233 one.
1234 * compile/compile.c (_initialize_compile): Add new lines after
1235 %OPTIONS%, when not at the end of the help.
1236 Change help doc or code
1237 producing the help doc to respect the invariants.
1238 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1239 Also removed the new line after 'Options:', as all other commands
1240 do not put an empty line between 'Options:' and the first option.
1241 * printcmd.c (_initialize_printcmd): Likewise.
1242 * stack.c (_initialize_stack): Likewise.
1243 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1244 incorrectly telling COMMAND is optional.
1245 * ada-lang.c (_initialize_ada_language): Change help doc or code
1246 producing the help doc to respect the invariants.
1247 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1248 * breakpoint.c (_initialize_breakpoint): Likewise.
1249 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1250 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1251 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1252 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1253 _initialize_cli_style): Likewise.
1254 * corelow.c (core_target_info): Likewise.
1255 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1256 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1257 * filesystem.c (_initialize_filesystem): Likewise.
1258 * frame.c (_initialize_frame): Likewise.
1259 * gnu-nat.c (add_task_commands): Likewise.
1260 * infcall.c (_initialize_infcall): Likewise.
1261 * infcmd.c (_initialize_infcmd): Likewise.
1262 * interps.c (_initialize_interpreter): Likewise.
1263 * language.c (_initialize_language): Likewise.
1264 * linux-fork.c (_initialize_linux_fork): Likewise.
1265 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1266 * maint.c (_initialize_maint_cmds): Likewise.
1267 * memattr.c (_initialize_mem): Likewise.
1268 * printcmd.c (_initialize_printcmd): Likewise.
1269 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1270 _RegEx): Likewise.
1271 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1272 * record-btrace.c (_initialize_record_btrace): Likewise.
1273 * record-full.c (_initialize_record_full): Likewise.
1274 * record.c (_initialize_record): Likewise.
1275 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1276 * regcache.c (_initialize_regcache): Likewise.
1277 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1278 _initialize_remote): Likewise.
1279 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1280 * serial.c (_initialize_serial): Likewise.
1281 * skip.c (_initialize_step_skip): Likewise.
1282 * source.c (_initialize_source): Likewise.
1283 * stack.c (_initialize_stack): Likewise.
1284 * symfile.c (_initialize_symfile): Likewise.
1285 * symtab.c (_initialize_symtab): Likewise.
1286 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1287 * top.c (init_main): Likewise.
1288 * tracefile-tfile.c (tfile_target_info): Likewise.
1289 * tracepoint.c (_initialize_tracepoint): Likewise.
1290 * tui/tui-win.c (_initialize_tui_win): Likewise.
1291 * utils.c (add_internal_problem_command): Likewise.
1292 * valprint.c (value_print_option_defs): Likewise.
1293
404f2902
FCE
12942019-08-06 Frank Ch. Eigler <fche@redhat.com>
1295
1296 PR build/24886
1297 * configure.ac: Drop enable-libmcheck support.
1298 * configure, config.in: Rebuild.
1299 * libmcheck.m4: Remove.
1300 * acinclude.m4: Don't include it.
1301 * Makefile.in: Don't distribute it.
1302 * top.c (print_gdb_configuration): Don't mention it.
1303
046bebe1
TT
13042019-08-06 Tom Tromey <tom@tromey.com>
1305
1306 * utils.c (set_output_style): Sometimes pass stream to
1307 emit_style_escape.
1308 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1309 * record-btrace.c (btrace_insn_history): Update.
1310 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1311 method.
1312 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1313 Update initializers.
1314 <m_uiout>: New field.
1315 <m_di>: Move lower.
1316 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1317 Remove "uiout" parameter.
1318 (dump_insns): Update.
1319 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1320 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1321
ddbcedf5
CB
13222019-08-06 Christian Biesinger <cbiesinger@google.com>
1323
1324 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1325 (error_in_psymtab_expansion): Likewise.
1326 (lookup_symbol_via_quick_fns): Likewise.
1327 (basic_lookup_transparent_type_quick): Likewise.
1328 (basic_lookup_transparent_type_1): Likewise.
1329
b08b16c8
TT
13302019-08-06 Tom Tromey <tromey@adacore.com>
1331
1332 * source.c (last_source_error): Now bool.
1333 (print_source_lines_base): Make "noprint" bool. Only open
1334 source file when last_source_visited changes.
1335
cb44333d
TT
13362019-08-06 Tom Tromey <tromey@adacore.com>
1337
1338 * annotate.c (annotate_source_line): Use g_source_cache.
1339 * source-cache.c (source_cache::get_plain_source_lines): Change
1340 parameters. Populate m_offset_cache.
1341 (source_cache::ensure): New method.
1342 (source_cache::get_line_charpos): New method.
1343 (extract_lines): Move lower. Change parameters.
1344 (source_cache::get_source_lines): Move lower.
1345 * source-cache.h (class source_cache): Update comment.
1346 <get_line_charpos>: New method.
1347 <get_source_lines>: Update comment.
1348 <clear>: Clear m_offset_cache.
1349 <get_plain_source_lines>: Change parameters.
1350 <ensure>: New method
1351 <m_offset_cache>: New member.
1352 * source.c (forget_cached_source_info_for_objfile): Update.
1353 (info_source_command): Use g_source_cache.
1354 (find_source_lines, open_source_file_with_line_charpos): Remove.
1355 (print_source_lines_base, search_command_helper): Use g_source_cache.
1356 * source.h (open_source_file_with_line_charpos): Don't declare.
1357 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1358 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1359 Use g_source_cache.
1360
872dceaa
TT
13612019-08-06 Tom Tromey <tromey@adacore.com>
1362
1363 * source-cache.c (source_cache::get_plain_source_lines):
1364 Remove "first_line" and "last_line" parameters.
1365 (source_cache::get_source_lines): Cache plain text.
1366 * source-cache.h (class source_cache)
1367 <get_plain_source_lines>: Update.
1368
269249d9
TT
13692019-08-06 Tom Tromey <tromey@adacore.com>
1370
1371 * source-cache.c (extract_lines): No longer a method.
1372 Changed type of parameter. Include final newline.
1373 (selftests::extract_lines_test): New function.
1374 (_initialize_source_cache): Likewise.
1375 * source-cache.h (class source_cache)
1376 <extract_lines>: Don't declare.
1377
c0e8dcd8
TT
13782019-08-06 Tom Tromey <tromey@adacore.com>
1379
1380 * breakpoint.c (init_breakpoint_sal): Update.
1381 (breakpoint): Update.
1382 * breakpoint.h (struct breakpoint) <filter>: Now a
1383 unique_xmalloc_ptr.
1384
0b27c27d
CB
13852019-08-05 Christian Biesinger <cbiesinger@google.com>
1386
1387 * NEWS: Mention dictionary access on blocks.
1388 * python/py-block.c (blpy_getitem): New function.
1389 (block_object_as_mapping): New struct.
1390 (block_object_type): Use new struct for tp_as_mapping field.
1391
4ee94178
CB
13922019-08-05 Christian Biesinger <cbiesinger@google.com>
1393
1394 * objfiles.h (objfile): Add a comment describing partial symbols.
1395
8abfcabc
TT
13962019-08-05 Tom Tromey <tromey@adacore.com>
1397
1398 * compile/compile.c (_initialize_compile): Use _(), not N_().
1399 * thread.c (_initialize_thread): Use _(), not N_().
1400 * stack.c (_initialize_stack): Use _(), not N_().
1401 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1402
2b79f376
SM
14032019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1404
1405 * dwarf2read.c (struct dw2_symtab_iterator):
1406 <want_specific_block>: Remove.
1407 <block_index>: Change type to gdb::optional.
1408 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1409 change type of BLOCK_INDEX parameter to gdb::optional.
1410 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1411 (dw2_lookup_symbol): Don't pass argument for
1412 WANT_SPECIFIC_BLOCK.
1413 (dw2_expand_symtabs_for_function): Don't pass argument for
1414 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1415 (class dw2_debug_names_iterator)
1416 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1417 parameter, change BLOCK_INDEX type to gdb::optional.
1418 <m_want_specific_block>: Remove.
1419 <m_block_index>: Change type to gdb::optional.
1420 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1421 gdb::optional. Re-write in function of gdb::optional.
1422 (dw2_debug_names_lookup_symbol): Don't pass argument for
1423 WANT_SPECIFIC_BLOCK.
1424 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1425 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1426 BLOCK_INDEX.
1427
ae60f04e
PW
14282019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1429
1430 * NEWS: Mention changes to "info sources" command.
1431
28cd9371
PW
14322019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1433
1434 * symtab.c (filename_partial_match_opts): New struct type.
1435 (struct output_source_filename_data): New members
1436 regexp, c_regexp, partial_match.
1437 (output_source_filename): Use new members to decide to print file.
1438 (info_sources_option_defs): New variable.
1439 (make_info_sources_options_def_group, print_info_sources_header,
1440 info_sources_command_completer):
1441 New functions.
1442 (info_sources_command): Read new optional arguments.
1443 (_initialize_symtab): Update info sources help.
1444
ca683e3a
AO
14452019-08-02 Alexandre Oliva <oliva@adacore.com>
1446
1447 * ada-lang.c (exception_support_info_v0): Renamed from...
1448 (default_exception_support_info): ... this. Create new
1449 definition for v1.
1450 (ada_has_this_exception_support): Look up catch_handlers_sym.
1451 (ada_exception_support_info_sniffer): Try v0 after default.
1452
f1264162
TT
14532019-08-01 Tom Tromey <tromey@adacore.com>
1454
1455 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1456 gdbarch.h.
1457
0a7b2485
CB
14582019-08-01 Christian Biesinger <cbiesinger@google.com>
1459
1460 * s12z-tdep.c: Fix include path for s12z-opc.h.
1461
c6bdbeb7
AH
14622019-08-01 Alan Hayward <alan.hayward@arm.com>
1463
1464 * NEWS: Require GNU make 3.82.
1465
a2bd7b82
TT
14662019-07-16 Tom Tromey <tom@tromey.com>
1467
1468 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1469 declare.
1470
aa3b6533
TT
14712019-07-30 Tom Tromey <tromey@adacore.com>
1472
1473 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1474
a1530dc7
KB
14752019-07-30 Kevin Buettner <kevinb@redhat.com>
1476
1477 * printcmd.c (print_address_symbolic): Print negative offsets.
1478 (build_address_symbolic): Force signed arithmetic when computing
1479 offset.
1480
2906593f
CB
14812019-07-30 Christian Biesinger <cbiesinger@google.com>
1482
1483 PR/24474: Add a function to lookup static variables.
1484 * NEWS: Mention this new function.
1485 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1486 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1487 * python/python.c (python_GdbMethods): Add new function.
1488
c620ed88
CB
14892019-07-29 Christian Biesinger <cbiesinger@google.com>
1490
1491 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1492 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1493 (objfpy_lookup_static_symbol): New function.
1494 (objfile_object_methods): Add new functions.
1495
bc4268a5
PW
14962019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1497
1498 * NEWS: Mention 'set|show print frame-info'. Mention new
1499 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1500 backtrace argument. Mention that python frame filtering code
1501 is now consistent with what 'backtrace' command prints.
1502
4b5e8d19
PW
15032019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1504
1505 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1506 comments.
1507 (print_frame_info_auto, print_frame_info_source_line,
1508 print_frame_info_location, print_frame_info_source_and_location,
1509 print_frame_info_location_and_address, print_frame_info_short_location):
1510 New declarations.
1511 (struct frame_print_options): New member print_frame_info.
1512 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1513 * stack.h (get_user_print_what_frame_info): New declaration.
1514 (frame_show_address): New declaration.
1515 * stack.c (print_frame_arguments_choices): New value 'presence'.
1516 (print_frame_info_auto, print_frame_info_source_line,
1517 print_frame_info_location, print_frame_info_source_and_location,
1518 print_frame_info_location_and_address, print_frame_info_short_location,
1519 print_frame_info_choices, print_frame_info_print_what): New definitions.
1520 (print_frame_args): Only print dots for args if print frame-arguments
1521 is 'presence'.
1522 (frame_print_option_defs): New element for "frame-info".
1523 (get_user_print_what_frame_info): New function.
1524 (frame_show_address): Make non static. Move comment to stack.h.
1525 (print_frame_info_to_print_what): New function.
1526 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1527 to decide what to print.
1528 (backtrace_command_1): Handle the new print_frame_arguments_presence
1529 value.
1530 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1531 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1532 (py_print_frame): In non-mi mode, use LOCATION as default for
1533 print_what, similarly to frame information printed directly by
1534 backtrace command. Handle frame-info user option in non MI mode.
1535
6bdfee81
KB
15362019-07-27 Kevin Buettner <kevinb@redhat.com>
1537
1538 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1539 Add case for debugging 32-bit target on 64-bit host. Revise
1540 comment.
1541
98a617f8
KB
15422019-07-27 Kevin Buettner <kevinb@redhat.com>
1543
1544 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1545 instead of find_function_entry_range_from_pc.
1546
567238c9
KB
15472019-07-27 Kevin Buettner <kevinb@redhat.com>
1548
1549 * stack.c (find_frame_funname): Remove code which preferred
1550 minsym over symtab sym in "certain pathological cases".
1551
2dc80cf8
KB
1552 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1553 parameter. Change type of "do_demangle" to bool.
1554 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1555 Pass suitable "prefer_sym_over_minsym" flag to
1556 build_address_symbolic(). Don't output "+" for negative offsets.
1557 * printcmd.c (print_address_symbolic): Update invocation of
1558 build_address_symbolic to include a "prefer_sym_over_minsym"
1559 flag.
1560 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1561 Restrict cases in which use of minimal symbol is preferred to that
1562 of a found symbol. Update comments.
1563
1aff7173
KB
1564 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1565 for entry pc when entry pc is out of range for that FDE.
1566
89b085ac
BC
15672019-07-26 Brian Callahan <bcallah@openbsd.org>
1568
1569 PR gdb/24839:
1570 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1571 type.
1572
f32feb4a
CB
15732019-07-25 Christian Biesinger <cbiesinger@google.com>
1574
1575 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1576 this function's Python signature.
1577
1578
15792019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
1580
1581 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1582 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1583 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1584 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1585 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1586
1587
c54e4253
YS
15882019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1589
1590 * h8300-tdep.c (h8300_register_name_common): New.
1591 h8300_register_name): Use h8300_register_name_common.
1592 (h8300s_register_name): Likewise.
1593 (h8300sx_register_name): Likewise.
1594 (h8300h_register_nam): New.
1595 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1596
1597
40eadf04
SP
15982019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1599
1600 * arm-tdep.c (arm_skip_cmse_entry): New function.
1601 (arm_is_sgstubs_section): New function.
1602 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1603
bfa2a36d
TT
16042019-07-22 Tom Tromey <tom@tromey.com>
1605
1606 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1607 Don't self-assign.
1608
a8e9d247
AB
16092019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1610
1611 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1612 type_print.
1613
eb86c5e2
AB
16142019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1617 so that GDB doesn't match any msymbols when searching in the
1618 TYPES_DOMAIN.
1619 (print_symbol_info): Print using typedef_print or type_print based
1620 on the type of the symbol. Add updated FIXME comment moved from...
1621 (_initialize_symtab): ... move and update FIXME comment to above.
1622
a8eab7c6
AB
16232019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * NEWS: Mention adding -q option to "info types".
1626 * symtab.c (struct info_types_options): New struct.
1627 (info_types_options_defs): New variable.
1628 (make_info_types_options_def_group): New function.
1629 (info_types_command): Use gdb::option framework to parse options.
1630 (info_types_command_completer): New function.
1631 (_initialize_symtab): Extend the help text on "info types" and
1632 register command completer.
1633
b4603c34
CB
16342019-07-21 Christian Biesinger <cbiesinger@google.com>
1635
1636 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1637 (lookup_symbol_in_objfile): Change int to block_enum and add a
1638 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1639
c8cdc1e0
CB
16402019-07-20 Christian Biesinger <cbiesinger@google.com>
1641
1642 * MAINTAINERS (Write After Approval): Add self.
1643
01e175fe
AB
16442019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1647 instruction to the dummy code region.
1648
56f79b63
TT
16492019-07-19 Tom Tromey <tromey@adacore.com>
1650
1651 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1652 (ARGSUSED, PARAMS, __func__): Remove rules.
1653
4c5aa8e0
AH
16542019-07-19 Alan Hayward <alan.hayward@arm.com>
1655
1656 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1657 * features/arm/arm-with-iwmmxt.c: Remove.
1658 * features/arm/arm-with-iwmmxt.xml: Remove.
1659 * features/arm/arm-with-m-fpa-layout.c: Remove.
1660 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1661 * features/arm/arm-with-m-vfp-d16.c: Remove.
1662 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1663 * features/arm/arm-with-m.c: Remove.
1664 * features/arm/arm-with-m.xml: Remove.
1665 * features/arm/arm-with-neon.c: Remove.
1666 * features/arm/arm-with-neon.xml: Remove.
1667 * features/arm/arm-with-vfpv2.c: Remove.
1668 * features/arm/arm-with-vfpv2.xml: Remove.
1669 * features/arm/arm-with-vfpv3.c: Remove.
1670 * features/arm/arm-with-vfpv3.xml: Remove.
1671
f42b2617
AH
16722019-07-19 Alan Hayward <alan.hayward@arm.com>
1673
1674 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1675
f29ec966
AH
16762019-07-19 Alan Hayward <alan.hayward@arm.com>
1677
1678 * arch/aarch32.c (aarch32_create_target_description): Create
1679 target descriptions using features.
1680 * arch/arm.c (arm_create_target_description)
1681 (arm_create_mprofile_target_description): Likewise.
1682 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1683
d105cce5
AH
16842019-07-19 Alan Hayward <alan.hayward@arm.com>
1685
1686 * Makefile.in: Add new files.
1687 * aarch32-tdep.c: New file.
1688 * aarch32-tdep.h: New file.
1689 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1690 Call aarch32_read_description.
1691 * arch/aarch32.c: New file.
1692 * arch/aarch32.h: New file.
1693 * arch/arm.c (arm_create_target_description)
1694 (arm_create_mprofile_target_description): New function.
1695 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1696 (arm_create_target_description)
1697 (arm_create_mprofile_target_description): New declaration.
1698 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1699 read_description functions.
1700 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1701 Likewise.
1702 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1703 * arm-tdep.c (tdesc_arm_list): New variable.
1704 (arm_register_g_packet_guesses): Call create description functions.
1705 (arm_read_description) (arm_read_mprofile_description): New
1706 function.
1707 * arm-tdep.h (arm_read_description)
1708 (arm_read_mprofile_description): Add declaration.
1709 * configure.tgt: Add new files.
1710
afe09f0b
GL
17112019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1712
1713 * top.c (new_ui_command): Open specified terminal just once.
1714
cd215b2e
TT
17152019-07-18 Tom Tromey <tromey@adacore.com>
1716
1717 * symtab.c (main_name): Constify return type.
1718 * symfile.c (set_initial_language): Update.
1719 * symtab.h (main_name): Constify return type.
1720
d8f68fcb
TT
17212019-07-17 Tom Tromey <tom@tromey.com>
1722
1723 * tui/tui-winsource.c (tui_update_source_window)
1724 (tui_update_source_window_as_is)
1725 (tui_update_source_windows_with_line): Remove return.
1726 * tui/tui-disasm.c (tui_show_disassem)
1727 (tui_show_disassem_and_update_source): Remove return.
1728 * tui/tui.c (tui_reset): Remove return.
1729 * tui/tui-wingeneral.c
1730 (tui_check_and_display_highlight_if_needed): Remove return.
1731
ca5af91e
TT
17322019-07-17 Tom Tromey <tom@tromey.com>
1733
1734 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1735
5104fe36
TT
17362019-07-17 Tom Tromey <tom@tromey.com>
1737
1738 * tui/tui-winsource.h (struct tui_exec_info_window)
1739 (struct tui_source_window_base): Move from tui-data.h.
1740 * tui/tui-winsource.c: Move many method definitions from
1741 elsewhere. Remove "structuring" comments.
1742 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1743 (tui_source_window_base::refresh_window): Move to
1744 tui-winsource.c.
1745 * tui/tui-win.c (tui_source_window_base::refresh_all)
1746 (tui_source_window_base::update_tab_width)
1747 (tui_source_window_base::set_new_height)
1748 (tui_source_window_base::do_make_visible_with_new_height): Move to
1749 tui-winsource.c.
1750 * tui/tui-source.h: Update.
1751 * tui/tui-source.c (tui_source_window_base::reset): Move to
1752 tui-winsource.c.
1753 * tui/tui-disasm.h: Update.
1754 * tui/tui-data.h (struct tui_exec_info_window): Move to
1755 tui-winsource.h.
1756 (struct tui_source_window_base): Likewise.
1757 * tui/tui-data.c (tui_source_window_base::clear_detail)
1758 (tui_source_window_base, ~tui_source_window_base): Move to
1759 tui-winsource.c.
1760
daa15dde
TT
17612019-07-17 Tom Tromey <tom@tromey.com>
1762
1763 * tui/tui-win.c (tui_resize_all)
1764 (tui_source_window_base::update_tab_width)
1765 (tui_adjust_win_heights): Update.
1766 (tui_win_info::make_invisible_and_set_new_height): Rename from
1767 make_invisible_and_set_new_height.
1768 * tui/tui-data.h (struct tui_win_info)
1769 <make_invisible_and_set_new_height>: New method.
1770
bfad4537
TT
17712019-07-17 Tom Tromey <tom@tromey.com>
1772
1773 * tui/tui.c: Update.
1774 * tui/tui-source.h (struct tui_source_window): Move from
1775 tui-data.h.
1776 * tui/tui-layout.c: Update.
1777 * tui/tui-disasm.c: Update.
1778 * tui/tui-data.h (struct tui_source_window): Move to
1779 tui-source.h.
1780
88f7e873
TT
17812019-07-17 Tom Tromey <tom@tromey.com>
1782
1783 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1784 tui-data.h.
1785 * tui/tui-data.h (struct tui_disasm_window): Move to
1786 tui-disasm.h.
1787
96bd6233
TT
17882019-07-17 Tom Tromey <tom@tromey.com>
1789
1790 * tui/tui-regs.h (struct tui_data_item_window): Move from
1791 tui-data.h.
1792 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1793 * tui/tui-data.h (struct tui_data_item_window): Move to
1794 tui-regs.h.
1795 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1796
ce38393b
TT
17972019-07-17 Tom Tromey <tom@tromey.com>
1798
1799 * tui/tui.c: Update.
1800 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1801 (tui_cmd_window::max_height): Move to tui-command.c.
1802 * tui/tui-layout.c: Update.
1803 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1804 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1805 tui-command.c.
1806 * tui/tui-command.h (struct tui_cmd_window): Move from
1807 tui-data.h.
1808 * tui/tui-command.c: Remove "structuring" comments.
1809 (tui_cmd_window::clear_detail)
1810 (tui_cmd_window::do_make_visible_with_new_height)
1811 (tui_cmd_window::max_height): Move from elsewhere.
1812
2d8b51cb
TT
18132019-07-17 Tom Tromey <tom@tromey.com>
1814
1815 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1816 Now static.
1817 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1818 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1819
18ab23af
TT
18202019-07-17 Tom Tromey <tom@tromey.com>
1821
1822 * tui/tui.c: Update.
1823 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1824 tui-regs.c.
1825 * tui/tui-windata.h: Remove file.
1826 * tui/tui-windata.c: Remove file.
1827 * tui/tui-win.c (tui_data_window::set_new_height)
1828 (tui_data_window::do_make_visible_with_new_height): Move to
1829 tui-regs.c.
1830 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1831 * tui/tui-regs.c: Remove "structuring" comments.
1832 (tui_data_window::first_data_item_displayed)
1833 (tui_data_window::delete_data_content_windows)
1834 (tui_data_window::erase_data_content)
1835 (tui_data_window::display_all_data)
1836 (tui_data_window::refresh_all)
1837 (tui_data_window::do_scroll_vertical)
1838 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1839 (tui_data_window::do_make_visible_with_new_height)
1840 (tui_data_window::refresh_window): Move from elsewhere.
1841 (_initialize_tui_regs): Move to end of file.
1842 * tui/tui-layout.c: Update.
1843 * tui/tui-hooks.c: Update.
1844 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1845 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1846 tui-regs.c.
1847 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1848
88b7e7cc
TT
18492019-07-17 Tom Tromey <tom@tromey.com>
1850
1851 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1852 seen.
1853
0fcd3711
TT
18542019-07-17 Tom Tromey <tom@tromey.com>
1855
1856 * tui/tui-win.c (tui_source_window_base::set_new_height)
1857 (tui_source_window_base::do_make_visible_with_new_height): Use
1858 m_has_locator field directly.
1859 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1860 method.
1861 (struct tui_source_window_base) <has_locator>: Likewise.
1862
4a38112d
TT
18632019-07-17 Tom Tromey <tom@tromey.com>
1864
1865 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1866 Don't declare.
1867 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1868 Remove.
1869 * tui/tui-win.c (tui_source_window_base::set_new_height)
1870 (tui_source_window_base::set_new_height)
1871 (make_invisible_and_set_new_height)
1872 (tui_source_window_base::do_make_visible_with_new_height)
1873 (tui_source_window_base::do_make_visible_with_new_height):
1874 Update.
1875 * tui/tui-layout.c (show_source_disasm_command, show_data)
1876 (show_source_or_disasm_and_command): Update.
1877 * tui/tui-layout.c (show_layout): Update.
1878
09129226
TT
18792019-07-17 Tom Tromey <tom@tromey.com>
1880
1881 * tui/tui-layout.c (make_data_window): Remove.
1882 (show_data): Unify creation and re-initialization cases.
1883
4a8a5e84
TT
18842019-07-17 Tom Tromey <tom@tromey.com>
1885
1886 * tui/tui-layout.c (make_source_window, make_disasm_window):
1887 Remove.
1888 (show_data): Unify creation and re-initialization cases.
1889
76d2be8e
TT
18902019-07-17 Tom Tromey <tom@tromey.com>
1891
1892 * tui/tui-layout.c (make_command_window): Remove.
1893 (show_source_disasm_command, show_source_or_disasm_and_command):
1894 Unify creation and re-initialization cases.
1895
890b8bde
TT
18962019-07-17 Tom Tromey <tom@tromey.com>
1897
1898 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1899 creation and re-initialization cases.
1900
2cdfa113
TT
19012019-07-17 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-regs.c (tui_get_register): Return void.
1904
8e3cfd09
TT
19052019-07-17 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1908 Simplify.
1909
f4e04977
TT
19102019-07-17 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1913 resetting.
1914
0379b883
TT
19152019-07-17 Tom Tromey <tom@tromey.com>
1916
1917 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1918 * tui/tui-regs.c (tui_reg_layout): New function.
1919 (tui_show_registers, tui_reg_command): Use it.
1920 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1921 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1922 parameters.
1923 (tui_layout_command): Remove.
1924
b7fbad91
TT
19252019-07-17 Tom Tromey <tom@tromey.com>
1926
1927 * tui/tui-layout.h (tui/tui-layout): Return void.
1928 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1929
4e1e56b9
TT
19302019-07-17 Tom Tromey <tom@tromey.com>
1931
1932 * tui/tui-layout.c (show_source_disasm_command, show_data):
1933 Update.
1934 (reset_locator): Remove.
1935 (show_source_or_disasm_and_command): Update.
1936
1e0c09ba
TT
19372019-07-17 Tom Tromey <tom@tromey.com>
1938
1939 * tui/tui-source.c (tui_source_window_base::reset): Remove
1940 win_type parameter.
1941 * tui/tui-layout.c (make_command_window, make_source_window)
1942 (make_disasm_window, make_data_window)
1943 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1944 (reset_locator, show_source_or_disasm_and_command): Update.
1945 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1946 win_type parameter.
1947 (struct tui_source_window_base) <reset>: Likewise.
1948
1bf605de
TT
19492019-07-17 Tom Tromey <tom@tromey.com>
1950
1951 * tui/tui-layout.c (show_source_disasm_command): Use
1952 reset_locator.
1953 (reset_locator): New function.
1954 (init_and_make_win): Remove.
1955 (show_source_or_disasm_and_command): Use reset_locator.
1956
098f9ed4
TT
19572019-07-17 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1960 condition.
1961 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1962 Remove condition.
1963 * tui/tui-source.c (tui_source_window_base::reset): New method.
1964 * tui/tui-layout.c (make_command_window): Don't call
1965 init_and_make_win.
1966 (make_source_window, make_disasm_window): Don't call
1967 make_source_or_disasm_window.
1968 (make_data_window): Don't call init_and_make_win. Change calling
1969 convention.
1970 (show_source_disasm_command, show_data): Simplify.
1971 (make_source_or_disasm_window): Remove.
1972 (show_source_or_disasm_and_command): Simplify.
1973 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1974 (struct tui_source_window_base) <reset>: Likewise.
1975 <execution_info>: Remove initializer.
1976 * tui/tui-data.c (tui_source_window_base): Initialize
1977 execution_info.
1978
80110957
TT
19792019-07-17 Tom Tromey <tom@tromey.com>
1980
1981 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1982 variable.
1983
cf82af05
TT
19842019-07-17 Tom Tromey <tom@tromey.com>
1985
1986 * tui/tui.c (tui_rl_other_window): Update.
1987 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1988 superclass method first. Always iterate over regs_content.
1989 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1990 method.
1991 * tui/tui-win.c (tui_set_focus_command): Update.
1992
01aeb396
TT
19932019-07-17 Tom Tromey <tom@tromey.com>
1994
1995 * tui/tui-win.c (tui_set_focus_command): Rename from
1996 tui_set_focus. Call tui_enable.
1997 (tui_set_focus_command): Remove.
1998
fd6c75ee
TT
19992019-07-17 Tom Tromey <tom@tromey.com>
2000
2001 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2002 refresh_window.
2003 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2004 touchwin.
2005 (tui_data_window::refresh_window): Call refresh_window on data
2006 items. Always call superclass refresh_window.
2007 (tui_win_info::refresh): Remove.
2008 (tui_source_window_base::refresh_window): Update.
2009 (tui_refresh_all): Update.
2010 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2011 refresh_window.
2012 (show_source_or_disasm_and_command): Likewise.
2013 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2014 (struct tui_source_window_base) <refresh>: Likewise.
2015
f6cc34a9
TT
20162019-07-17 Tom Tromey <tom@tromey.com>
2017
2018 * tui/tui-winsource.c (tui_clear_source_content)
2019 (tui_show_source_content): Update.
2020 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2021 whether content is empty.
2022 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2023 Remove.
2024
f31ec9af
TT
20252019-07-17 Tom Tromey <tom@tromey.com>
2026
2027 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2028 window's contents.
2029 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2030 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2031
d1b6f1e5
TT
20322019-07-17 Tom Tromey <tom@tromey.com>
2033
2034 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2035 (struct tui_data_item_window): Update.
2036
d9743a13
TT
20372019-07-17 Tom Tromey <tom@tromey.com>
2038
2039 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2040 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2041 defines.
2042
caf0bc4e
TT
20432019-07-17 Tom Tromey <tom@tromey.com>
2044
2045 * tui/tui-winsource.h (tui_erase_source_content)
2046 (tui_clear_source_content): Remove "display_prompt" parameter.
2047 * tui/tui-winsource.c (tui_update_source_window_as_is)
2048 (tui_update_source_windows_with_addr): Update.
2049 (tui_clear_source_content): Remove "display_prompt" parameter.
2050 (tui_erase_source_content): Likewise. Simplify.
2051 (tui_show_source_content): Update.
2052 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2053 * tui/tui-stack.c (tui_show_frame_info): Update.
2054 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2055 Remove defines.
2056
9d391078
TT
20572019-07-17 Tom Tromey <tom@tromey.com>
2058
2059 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2060 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2061 parameter.
2062 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2063 parameter.
2064
a38da35d
TT
20652019-07-17 Tom Tromey <tom@tromey.com>
2066
2067 * tui/tui-winsource.c (tui_clear_source_content)
2068 (tui_show_source_content, tui_show_exec_info_content)
2069 (tui_clear_exec_info_content): Update.
2070 * tui/tui-stack.c (tui_show_locator_content): Update.
2071 (tui_show_frame_info): Update.
2072 * tui/tui-source.h (tui_source_window): Don't declare.
2073 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2074 from tui_source_is_displayed.
2075 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2076 Remove field.
2077 (struct tui_source_window_base) <content_in_use>: New field. Now
2078 bool.
2079 (struct tui_source_window) <showing_source_p>: New method.
2080 (TUI_SRC_WIN): Change cast.
2081 * tui/tui-data.c (tui_initialize_static_data): Update.
2082
c2cd8994
TT
20832019-07-17 Tom Tromey <tom@tromey.com>
2084
2085 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2086 location_matches_p.
2087 * tui/tui-source.c (tui_source_window::location_matches_p): New
2088 method.
2089 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2090 method.
2091 * tui/tui-data.h (struct tui_source_window_base)
2092 <location_matches_p>: New method.
2093 (struct tui_source_window, struct tui_disasm_window)
2094 <location_matches_p>: Likewise.
2095
4dde7b34
TT
20962019-07-17 Tom Tromey <tom@tromey.com>
2097
2098 * tui/tui-win.c (tui_set_win_height_command): Rename from
2099 tui_set_win_height.
2100 (tui_set_win_height_command): Remove.
2101
b73dd877
TT
21022019-07-17 Tom Tromey <tom@tromey.com>
2103
2104 * tui/tui-source.c (tui_source_window): New constructor. Add
2105 observer.
2106 (~tui_source_window): New destructor.
2107 (tui_source_window::style_changed): New method.
2108 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2109 (tui_attach_detach_observers): Update.
2110 * tui/tui-data.h (struct tui_source_window): Make constructor not
2111 inline. Add destructor.
2112 (struct tui_source_window) <style_changed>: New method.
2113 <m_observable>: New member.
2114
ae2b5380
TT
21152019-07-17 Tom Tromey <tom@tromey.com>
2116
2117 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2118 * tui/tui-win.c (tui_resize_all): Fix typo.
2119
1ce3e844
TT
21202019-07-17 Tom Tromey <tom@tromey.com>
2121
2122 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2123 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2124 (tui_refresh_all): Remove "list" parameter. Use foreach.
2125 * tui/tui-win.c (window_name_completer): Use foreach.
2126 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2127 (update_tab_width): Likewise.
2128 * tui/tui-layout.c (show_layout): Update.
2129 * tui/tui-data.h (class tui_window_iterator): New.
2130 (struct all_tui_windows): New.
2131 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2132
fe3eaf1c
TT
21332019-07-17 Tom Tromey <tom@tromey.com>
2134
2135 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2136 parameter. Don't reference globals.
2137 (tui_reg_command): Update.
2138
368c1354
TT
21392019-07-17 Tom Tromey <tom@tromey.com>
2140
2141 * tui/tui-regs.c (tui_show_registers): Simplify.
2142
e80cd204
TT
21432019-07-17 Tom Tromey <tom@tromey.com>
2144
2145 * tui/tui-regs.c (tui_show_registers): Update.
2146 (tui_show_register_group): Add win_info parameter.
2147
aca2dd16
TT
21482019-07-17 Tom Tromey <tom@tromey.com>
2149
2150 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2151 Rename from tui_display_reg_element_at_line.
2152 (tui_data_window::display_registers_from_line): Update.
2153 * tui/tui-data.h (struct tui_data_window)
2154 <display_reg_element_at_line>: New method.
2155
517e9505
TT
21562019-07-17 Tom Tromey <tom@tromey.com>
2157
2158 * tui/tui-regs.h (tui_display_registers_from)
2159 (tui_display_registers_from_line): Don't declare.
2160 * tui/tui-windata.c (tui_data_window::display_all_data)
2161 (tui_data_window::refresh_all)
2162 (tui_data_window::do_scroll_vertical): Update.
2163 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2164 from tui_display_registers_from.
2165 (tui_display_reg_element_at_line): Update.
2166 (tui_data_window::display_registers_from_line): Rename from
2167 tui_display_registers_from_line.
2168 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2169 display_registers_from_line>: New methods.
2170
f76d8b19
TT
21712019-07-17 Tom Tromey <tom@tromey.com>
2172
2173 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2174 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2175 from tui_erase_data_content.
2176 (tui_data_window::display_all_data)
2177 (tui_data_window::refresh_all)
2178 (tui_data_window::do_scroll_vertical): Update.
2179 * tui/tui-regs.c (tui_show_registers): Update.
2180 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2181 New method.
2182
b4094625
TT
21832019-07-17 Tom Tromey <tom@tromey.com>
2184
2185 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2186 declare.
2187 * tui/tui-windata.c
2188 (tui_data_window::delete_data_content_windows): Rename from
2189 tui_delete_data_content_windows.
2190 (tui_data_window::display_all_data)
2191 (tui_data_window::do_scroll_vertical): Update.
2192 * tui/tui-data.h (struct tui_data_window)
2193 <delete_data_content_windows>: New method.
2194
c223a729
TT
21952019-07-17 Tom Tromey <tom@tromey.com>
2196
2197 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2198 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2199
50daf268
TT
22002019-07-17 Tom Tromey <tom@tromey.com>
2201
2202 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2203 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2204 from tui_display_all_data.
2205 * tui/tui-win.c
2206 (tui_data_window::do_make_visible_with_new_height): Update.
2207 * tui/tui-regs.c (tui_show_registers): Update.
2208 * tui/tui-layout.c (tui_set_layout): Update.
2209 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2210 method.
2211
df5f8cab
TT
22122019-07-17 Tom Tromey <tom@tromey.com>
2213
2214 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2215 * tui/tui-windata.c (tui_display_data_from): Remove.
2216 (tui_data_window::refresh_all): Update.
2217
80cb6c27
TT
22182019-07-17 Tom Tromey <tom@tromey.com>
2219
2220 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2221 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2222 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2223 tui_display_registers_from_line.
2224 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2225 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2226 "force_display" parameter.
2227
baff0c28
TT
22282019-07-17 Tom Tromey <tom@tromey.com>
2229
2230 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2231 declare.
2232 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2233 Rename from tui_first_reg_element_no_inline.
2234 (tui_display_reg_element_at_line)
2235 (tui_display_registers_from_line): Update.
2236 * tui/tui-data.h (struct tui_data_window)
2237 <first_reg_element_no_inline>: New method.
2238
3b23c5f2
TT
22392019-07-17 Tom Tromey <tom@tromey.com>
2240
2241 * tui/tui-windata.c (tui_display_data_from)
2242 (tui_data_window::do_scroll_vertical): Update.
2243 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2244 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2245 Rename from tui_line_from_reg_element_no.
2246 (tui_display_registers_from_line): Update.
2247 * tui/tui-data.h (struct tui_data_window)
2248 <line_from_reg_element_no>: New method.
2249
0b5ec218
TT
22502019-07-17 Tom Tromey <tom@tromey.com>
2251
2252 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2253 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2254 tui_last_regs_line_no.
2255 (tui_display_reg_element_at_line)
2256 (tui_display_registers_from_line): Update.
2257 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2258 method.
2259
0807ab7b
TT
22602019-07-17 Tom Tromey <tom@tromey.com>
2261
2262 PR tui/24722:
2263 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2264 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2265 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2266 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2267 (tui_update_breakpoint_info): Likewise.
2268 * tui/tui-hooks.c (tui_event_create_breakpoint)
2269 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2270 Update.
2271
9ad7fdef
TT
22722019-07-17 Tom Tromey <tom@tromey.com>
2273
2274 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2275
5813316f
TT
22762019-07-17 Tom Tromey <tom@tromey.com>
2277
2278 * tui/tui-winsource.c (tui_update_source_window_as_is)
2279 (tui_update_source_windows_with_addr): Update.
2280 * tui/tui-source.h (tui_set_source_content)
2281 (tui_show_symtab_source): Add "win_info" parameter.
2282 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2283 parameter.
2284 (tui_show_symtab_source): Likewise.
2285
00e264e7
TT
22862019-07-17 Tom Tromey <tom@tromey.com>
2287
2288 * tui/tui-wingeneral.c
2289 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2290
06210ce4
TT
22912019-07-17 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2294 (struct tui_cmd_window) <can_scroll>: New method.
2295 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2296 method.
2297
381befee
TT
22982019-07-17 Tom Tromey <tromey@adacore.com>
2299
2300 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2301 do_field_signed>: Rename. Change type of "value".
2302 * ui-out.c (ui_out::field_signed): Rename from field_int.
2303 Change type of "value".
2304 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2305 type of "value".
2306 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2307 do_field_int. Change type of "value".
2308 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2309 do_field_int. Change type of "value".
2310 * tracepoint.c (trace_status_mi, tfind_1)
2311 (print_one_static_tracepoint_marker): Update.
2312 * thread.c (print_thread_info_1, print_selected_thread_frame):
2313 Update.
2314 * stack.c (print_frame, print_frame_info): Update.
2315 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2316 Update.
2317 * source.c (print_source_lines_base): Update.
2318 * skip.c (info_skip_command): Update.
2319 * record-btrace.c (btrace_ui_out_decode_error)
2320 (btrace_call_history_src_line): Update.
2321 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2322 Update.
2323 * progspace.c (print_program_space): Update.
2324 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2325 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2326 do_field_int. Change type of "value".
2327 * mi/mi-out.c (mi_ui_out::do_table_begin)
2328 (mi_ui_out::do_table_header): Update.
2329 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2330 type of "value".
2331 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2332 (mi_cmd_data_list_changed_registers, output_register)
2333 (mi_cmd_data_read_memory, mi_load_progress)
2334 (mi_cmd_trace_frame_collected): Update.
2335 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2336 Update.
2337 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2338 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2339 (mi_cmd_var_list_children, varobj_update_one): Update.
2340 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2341 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2342 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2343 * inferior.c (print_inferior): Update.
2344 * gdb_bfd.c (print_one_bfd): Update.
2345 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2346 Update.
2347 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2348 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2349 do_field_int. Change type of "value".
2350 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2351 do_field_int. Change type of "value".
2352 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2353 (print_one_breakpoint_location, print_it_catch_fork)
2354 (print_one_catch_fork, print_it_catch_vfork)
2355 (print_one_catch_vfork, print_it_catch_solib)
2356 (print_it_catch_exec, print_it_ranged_breakpoint)
2357 (print_mention_watchpoint, print_mention_masked_watchpoint)
2358 (bkpt_print_it, update_static_tracepoint): Update.
2359 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2360 * break-catch-syscall.c (print_it_catch_syscall): Update.
2361 * ada-tasks.c (print_ada_task_info): Update.
2362 * ada-lang.c (print_it_exception, print_mention_exception):
2363 Update.
2364
6b78c3f8
AB
23652019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2366
2367 PR breakpoints/24541
2368 * gdbarch.c: Regenerate.
2369 * gdbarch.h: Regenerate.
2370 * gdbarch.sh: Adjust return type and parameter types for
2371 'stap_adjust_register'.
2372 (i386_stap_adjust_register): Adjust signature and return new
2373 register name.
2374 * stap-probe.c (stap_parse_register_operand): Adjust use of
2375 'gdbarch_stap_adjust_register'.
2376
d72a9b85
TT
23772019-07-17 Tom Tromey <tromey@adacore.com>
2378
2379 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2380 declare VEC.
2381 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2382 std::vector.
2383 (struct s390_process_info): Add initializers.
2384 (s390_add_process): Use new.
2385 (s390_linux_nat_target::low_forget_process): Use delete.
2386 (s390_linux_nat_target::low_new_fork)
2387 (s390_linux_nat_target::stopped_by_watchpoint)
2388 (s390_linux_nat_target::low_prepare_to_resume)
2389 (s390_linux_nat_target::insert_watchpoint)
2390 (s390_linux_nat_target::insert_hw_breakpoint)
2391 (s390_linux_nat_target::remove_watchpoint)
2392 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2393
206e6c58
JB
23942019-07-16 John Baldwin <jhb@FreeBSD.org>
2395
2396 * aarch64-fbsd-nat.c: Include regcache.h.
2397 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2398 argument.
2399 (aarch64_fbsd_nat_target::fetch_registers)
2400 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2401 variable.
2402 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2403
cbde90f2
JB
24042019-07-16 John Baldwin <jhb@FreeBSD.org>
2405
2406 * fbsd-nat.c: Include gdbarch.h.
2407
07128006
TT
24082019-07-15 Tom Tromey <tromey@adacore.com>
2409
2410 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2411
1f77b012
TT
24122019-07-15 Tom Tromey <tromey@adacore.com>
2413
2414 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2415 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2416 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2417 * cli-out.c (cli_ui_out::do_field_int): New method.
2418 * ui-out.c (ui_out::field_unsigned): New method.
2419 * symfile.c (generic_load): Use field_unsigned.
2420 (print_transfer_performance): Likewise.
2421 * record-btrace.c (ui_out_field_uint): Remove.
2422 (btrace_call_history_insn_range, btrace_call_history): Use
2423 field_unsigned.
2424 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2425 field_unsigned.
2426 * ui-out.h (class ui_out) <field_unsigned>: New method.
2427 <do_field_unsigned>: Likewise.
2428
33eca680
TT
24292019-07-15 Tom Tromey <tromey@adacore.com>
2430
2431 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2432 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2433 * target.c (flash_erase_command): Use field_string.
2434 * infrun.c (print_signal_received_reason): Use field_string.
2435 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2436 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2437 field_string.
2438 * ada-tasks.c (print_ada_task_info): Use field_string.
2439
ca8d69be
TT
24402019-07-15 Tom Tromey <tromey@adacore.com>
2441
2442 * target.c (flash_erase_command): Use field_core_addr.
2443 * symfile.c (generic_load): Use field_core_addr.
2444 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2445 Use field_core_addr.
2446 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2447 field_core_addr.
2448
0d4e84ed
AB
24492019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2450
2451 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2452 value if its desired type is smaller than a CORE_ADDR and signed.
2453
9a49df9d
AB
24542019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2455
2456 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2457 of changes to field names, and use new is_reference field to
2458 decide if a property is a reference or not.
2459 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2460 field.
2461 (struct dwarf2_property_baton): Update header comment, rename
2462 'referenced_type' to 'property_type' and update comments.
2463 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2464 default property type, store in property baton, update to take
2465 accound of renamed field.
2466 (read_func_scope): Update call to attr_to_dynamic_prop.
2467 (read_array_type): Likewise.
2468 (dwarf2_per_cu_addr_sized_int_type): New function.
2469 (read_subrange_index_type): Move type finding code to
2470 dwarf2_per_cu_addr_sized_int_type.
2471 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2472 (dwarf2_per_cu_addr_type): New function.
2473 (set_die_type): Update calls to attr_to_dynamic_prop.
2474
b86352cf
AB
24752019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2476
2477 * dwarf2read.c (read_subrange_index_type): New function.
2478 (read_subrange_type): Move code into new function and call it.
2479 * gdbtypes.c (create_range_type): Add some asserts.
2480
603490bf
AB
24812019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2482
2483 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2484 update return statements.
2485 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2486 declaration, and update comment to match.
2487 * gdbtypes.c (resolve_dynamic_array): Update call to
2488 dwarf2_evaluate_property to match new return type.
2489
592f9d27
AB
24902019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2491
2492 * valarith.c (value_subscripted_rvalue): Change lowerbound
2493 parameter type from int to LONGEST.
2494 * value.h (value_subscripted_rvalue): Likewise in declaration.
2495
60cfcb20
AB
24962019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * cli/cli-utils.c (info_print_command_completer): New function.
2499 * cli/cli-utils.h: Add 'completer.h' include, and forward
2500 declaration for 'struct cmd_list_element'.
2501 (info_print_command_completer): Declare.
2502 * stack.c (_initialize_stack): Add completer for 'info locals' and
2503 'info args'.
2504 * symtab.c (_initialize_symtab): Add completer for 'info
2505 variables' and 'info functions'.
2506 * NEWS: Mention completion for additional info commands.
2507
b16507e0
AB
25082019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2509
2510 * cli/cli-utils.c (extract_info_print_args): Delete.
2511 (extract_arg_maybe_quoted): Delete.
2512 (info_print_options_defs): New variable.
2513 (make_info_print_options_def_group): New function.
2514 (extract_info_print_options): Define new function.
2515 * cli/cli-utils.h (extract_info_print_args): Delete.
2516 (struct info_print_options): New structure.
2517 (extract_info_print_options): Declare new function.
2518 * stack.c (info_locals_command): Update to use new
2519 extract_info_print_options, also add a header comment.
2520 (info_args_command): Likewise.
2521 * symtab.c (info_variables_command): Likewise.
2522 (info_functions_command): Likewise.
2523
021d8588
AB
25242019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2525
2526 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2527 to extract string arguments.
2528 * common/common-utils.c (extract_string_maybe_quoted): New function.
2529 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2530
b777eb6d
TT
25312019-07-11 Tom Tromey <tromey@adacore.com>
2532
2533 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2534 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2535 * top.h (gdbinit): Don't declare.
2536 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2537 into...
2538 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2539 * top.c (gdb_init): Don't call init_cli_cmds.
2540 (gdbinit): Remove.
2541 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2542
72ee03ff
TT
25432019-07-11 Tom Tromey <tromey@adacore.com>
2544
2545 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2546 after it has been moved.
2547
00db9531
SM
25482019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2549
2550 * valops.c (value_must_coerce_to_target): Change return type to
2551 bool.
2552 * value.h (value_must_coerce_to_target): Likewise.
2553
f2478a7e
SM
25542019-07-10 Simon Marchi <simon.marchi@efficios.com>
2555
2556 * breakpoint.c (is_hardware_watchpoint): Remove
2557 forward-declaration.
2558 (is_masked_watchpoint): Change return type to bool.
2559 (is_tracepoint): Likewise.
2560 (is_breakpoint): Likewise.
2561 (is_hardware_watchpoint): Likewise.
2562 (is_watchpoint): Likewise.
2563 (is_no_memory_software_watchpoint): Likewise.
2564 (is_catchpoint): Likewise.
2565 (breakpoint_1): Make FILTER parameter's return type bool.
2566 is_masked_watchpoint): Change return type to bool.
2567 (save_breakpoints): Make FILTER parameter's return type bool.
2568 * breakpoint.h (is_breakpoint): Change return type to bool.
2569 (is_watchpoint): Likewise.
2570 (is_catchpoint): Likewise.
2571 (is_tracepoint): Likewise.
2572
0d12e84c
TT
25732019-07-10 Tom Tromey <tom@tromey.com>
2574
2575 * defs.h: Don't include gdbarch.h.
2576 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2577 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2578 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2579 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2580 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2581 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2582 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2583 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2584 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2585 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2586 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2587 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2588 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2589 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2590 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2591 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2592 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2593 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2594 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2595 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2596 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2597 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2598 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2599 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2600 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2601 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2602 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2603
f06f1252
TT
26042019-07-10 Tom Tromey <tromey@adacore.com>
2605
2606 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2607 * breakpoint.c (init_ada_exception_breakpoint): Register as
2608 bp_catchpoint.
2609 (print_one_breakpoint_location, print_one_breakpoint): Use
2610 is_ada_exception_catchpoint.
2611 * ada-lang.c (class ada_catchpoint_location): Pass
2612 bp_loc_software_breakpoint to bp_location constructor.
2613 (is_ada_exception_catchpoint): New function.
2614
7a5d944b
TT
26152019-07-10 Tom Tromey <tromey@adacore.com>
2616
2617 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2618 VEC.
2619 (struct arm_exidx_entry): New method operator<.
2620 (struct arm_exidx_data) <section_maps>: Change type.
2621 (arm_exidx_data_free): Remove.
2622 (arm_exidx_data_key): Change type. Move lower.
2623 (arm_exidx_new_objfile): Update.
2624 (arm_compare_exidx_entries): Remove.
2625 (arm_find_exidx_entry, _initialize_arm_tdep)
2626
48c66e1d
TT
26272019-07-10 Tom Tromey <tromey@adacore.com>
2628
2629 * solib-spu.c (ocl_program_data_key): Change type.
2630 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2631 Update.
2632
a269fbf1
TT
26332019-07-10 Tom Tromey <tromey@adacore.com>
2634
2635 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2636 (struct solib_aix_inferior_data) <library_list>: Change type.
2637 (solib_aix_inferior_data_handle): Change type.
2638 (get_solib_aix_inferior_data): Update.
2639 (solib_aix_free_library_list): Remove.
2640 (library_list_start_library): Update.
2641 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2642 return type.
2643 (solib_aix_get_library_list)
2644 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2645 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2646
c294730c
TT
26472019-07-10 Tom Tromey <tromey@adacore.com>
2648
2649 * solib-dsbt.c (struct dsbt_info): Add initializers.
2650 (solib_dsbt_pspace_data): Change type.
2651 (dsbt_pspace_data_cleanup): Remove.
2652 (get_dsbt_info, _initialize_dsbt_solib): Update.
2653
9d52077d
TT
26542019-07-10 Tom Tromey <tromey@adacore.com>
2655
2656 * spu-tdep.c (spu_overlay_data): Change type.
2657 (spu_get_overlay_table, spu_overlay_new_objfile)
2658 (_initialize_spu_tdep): Update.
2659
22a20dca
TT
26602019-07-10 Tom Tromey <tromey@adacore.com>
2661
2662 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2663 destructor.
2664 (dbx_objfile_data_key): Change type and declare later.
2665 (DBX_SYMFILE_INFO): Rewrite.
2666 * dbxread.c (dbx_objfile_data_key): Change type.
2667 (dbx_symfile_init): Update.
2668 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2669 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2670 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2671
cb60f420
TT
26722019-07-10 Tom Tromey <tromey@adacore.com>
2673
2674 * jit.c (jit_program_space_key): Change type. Move lower.
2675 (get_jit_program_space_data): Update.
2676 (jit_program_space_data_cleanup): Remove.
2677 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2678 Update.
2679 (struct jit_program_space_data): Add initializers.
2680
51df2ae3
TT
26812019-07-10 Tom Tromey <tromey@adacore.com>
2682
2683 * solib-darwin.c (struct darwin_info): Add initializers.
2684 (solib_darwin_pspace_data): Change type.
2685 (darwin_pspace_data_cleanup): Remove.
2686 (get_darwin_info, _initialize_darwin_solib): Update.
2687
18101a35
TT
26882019-07-10 Tom Tromey <tromey@adacore.com>
2689
2690 * remote-sim.c (struct sim_inferior_data): Add initializers,
2691 constructor, and destructor.
2692 (sim_inferior_data_key): Change type. Move lower.
2693 (check_for_duplicate_sim_descriptor): Update.
2694 (get_sim_inferior_data): Use new. Update.
2695 (~sim_inferior_data_cleanup): Rename from
2696 sim_inferior_data_cleanup. Simplify.
2697 (gdbsim_close_inferior, simulator_command)
2698 (sim_command_completer, _initialize_remote_sim): Update.
2699 (next_pid, INITIAL_PID): Move earlier.
2700
05b08ac1
TT
27012019-07-10 Tom Tromey <tromey@adacore.com>
2702
2703 * python/python-internal.h (create_thread_object): Return
2704 gdbpy_ref.
2705 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2706 * python/py-inferior.c (struct threadlist_entry): Add
2707 constructor.
2708 <thread_obj>: Now a gdbpy_ref.
2709 (thread_to_thread_object): Update.
2710 (add_thread_object): Use new.
2711 (delete_thread_object): Use delete.
2712 (infpy_threads): Update.
2713 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2714 GIL.
2715
32372d80
TT
27162019-07-10 Tom Tromey <tromey@adacore.com>
2717
2718 * valops.c (value_cast): Specialize error message for Ada.
2719
5c458ae8
SM
27202019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2721
2722 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2723
4c462cb0
SM
27242019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2725
2726 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2727 bpstat_should_step): Return bool, adjust comments.
2728 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2729 bpstat_should_step): Likewise.
2730
89abbcc2
AH
27312019-07-10 Alan Hayward <alan.hayward@arm.com>
2732
2733 * features/Makefile: Use feature target descriptions for Arm.
2734 * features/arm/arm-core.c: Generate new file.
2735 * features/arm/arm-fpa.c: Likewise.
2736 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2737 * features/arm/arm-m-profile.c: Likewise.
2738 * features/arm/arm-vfpv2.c: Likewise.
2739 * features/arm/arm-vfpv3.c: Likewise.
2740 * features/arm/xscale-iwmmxt.c: Likewise.
2741 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2742
166a82be
AH
27432019-07-10 Alan Hayward <alan.hayward@arm.com>
2744
2745 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2746 ptrace earlier.
2747
9fb4c7e9
AH
27482019-07-10 Alan Hayward <alan.hayward@arm.com>
2749
2750 * features/aarch64-pauth.c: Regenerate.
2751
e2d0f980
SM
27522019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2753
2754 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2755 bool.
2756 (bpstat_what): Use false instead of 0.
2757
a38118e5
PA
27582019-07-09 Pedro Alves <palves@redhat.com>
2759
2760 * break-catch-throw.c (is_exception_catchpoint): New.
2761 * breakpoint.c (print_one_breakpoint_location): New parameter
2762 'raw_loc'. Handle it. Use
2763 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2764 looking at the breakpoint's type.
2765 (print_one_breakpoint): If handling "maint info breakpoints", also
2766 print locations of exception catchpoints.
2767 * breakpoint.h (is_exception_catchpoint): Declare.
2768
cb1e4e32
PA
27692019-07-09 Pedro Alves <palves@redhat.com>
2770
2771 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2772 "addr" field.
2773 (allocate_location_exception_catchpoint): New.
2774 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2775 (initialize_throw_catchpoint_ops): Install
2776 allocate_location_exception_catchpoint as allocate_location
2777 method.
2778 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2779 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2780 bp_loc_other.
2781 (breakpoint_address_is_meaningful): Delete.
2782 (bl_address_is_meaningful): New.
2783 (breakpoint_locations_match): Adjust comment.
2784 (bp_location_from_bp_type): New, factored out of...
2785 (bp_location::bp_location(breakpoint *)): ... this.
2786 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2787 factored out of...
2788 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2789 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2790 breakpoint_address_is_meaningful.
2791 (bp_locations_compare): Adjust comment.
2792 (update_global_location_list): Use bl_address_is_meaningful
2793 instead of breakpoint_address_is_meaningful.
2794 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2795 explicit.
2796 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2797 * python/py-breakpoint.c (bppy_get_location): No longer check
2798 whether location is null.
2799
b58a68fe
PA
28002019-07-09 Pedro Alves <palves@redhat.com>
2801
2802 PR c++/15468
2803 * breakpoint.c (print_one_breakpoint_location): Remove
2804 single-location assert.
2805
268a13a5
TT
28062019-07-09 Tom Tromey <tom@tromey.com>
2807
2808 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2809 * configure: Rebuild.
2810 * configure.ac: Change common to gdbsupport.
2811 * gdbsupport: Rename from common.
2812 * acinclude.m4: Change common to gdbsupport.
2813 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2814 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2815 gdbsupport.
2816 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2817 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2818 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2819 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2820 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2821 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2822 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2823 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2824 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2825 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2826 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2827 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2828 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2829 coff-pe-read.c, command.h, compile/compile-c-support.c,
2830 compile/compile-c.h, compile/compile-cplus-symbols.c,
2831 compile/compile-cplus-types.c, compile/compile-cplus.h,
2832 compile/compile-loc2c.c, compile/compile.c, completer.c,
2833 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2834 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2835 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2836 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2837 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2838 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2839 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2840 features/aarch64-core.c, features/aarch64-fpu.c,
2841 features/aarch64-pauth.c, features/aarch64-sve.c,
2842 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2843 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2844 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2845 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2846 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2847 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2848 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2849 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2850 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2851 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2852 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2853 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2854 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2855 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2856 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2857 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2858 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2859 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2860 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2861 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2862 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2863 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2864 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2865 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2866 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2867 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2868 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2869 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2870 minsyms.c, mips-linux-tdep.c, namespace.h,
2871 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2872 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2873 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2874 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2875 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2876 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2877 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2878 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2879 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2880 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2881 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2882 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2883 procfs.c, producer.c, progspace.h, psymtab.h,
2884 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2885 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2886 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2887 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2888 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2889 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2890 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2891 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2892 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2893 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2894 target-memory.c, target.c, target.h, target/waitstatus.c,
2895 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2896 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2897 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2898 unittests/array-view-selftests.c,
2899 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2900 unittests/common-utils-selftests.c,
2901 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2902 unittests/format_pieces-selftests.c,
2903 unittests/function-view-selftests.c,
2904 unittests/lookup_name_info-selftests.c,
2905 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2906 unittests/mkdir-recursive-selftests.c,
2907 unittests/observable-selftests.c,
2908 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2909 unittests/parse-connection-spec-selftests.c,
2910 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2911 unittests/scoped_fd-selftests.c,
2912 unittests/scoped_mmap-selftests.c,
2913 unittests/scoped_restore-selftests.c,
2914 unittests/string_view-selftests.c, unittests/style-selftests.c,
2915 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2916 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2917 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2918 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2919 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2920 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2921
5b0e2db4
AB
29222019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2923
2924 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2925 bool value.
2926 (decode_digits_ordinary): Set explicit_line field in sal.
2927 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2928 symtab_and_line that was set on an explicit line number in
2929 assembler code. Do always update the recorded symtab and line if
2930 we do skip the prologue.
2931
0ba852ab
AB
29322019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 * breakpoint.c (set_breakpoint_location_function): Remove
2935 explicit_loc parameter.
2936 (momentary_breakpoint_from_master): Update call to
2937 set_breakpoint_location_function.
2938 (add_location_to_breakpoint): Likewise.
2939
b3a7d171
AB
29402019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2941
2942 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2943 required features based on default bfd type when no specific bfd
2944 is present.
2945
1f6f6e21
PW
29462019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2947
2948 * NEWS: Mention that GDB printf and eval commands can now print
2949 C-style and Ada-style convenience var strings without
2950 calling the inferior.
2951 * printcmd.c (printf_c_string): Locally print GDB internal var
2952 instead of transiting via the inferior.
2953 (printf_wide_c_string): Likewise.
2954
29552019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2956
2957 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2958
0598af48
TT
29592019-07-04 Tom Tromey <tom@tromey.com>
2960
2961 PR tui/24724:
2962 * tui/tui-winsource.c (tui_clear_source_content): Update.
2963 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2964 (tui_update_breakpoint_info): Update.
2965 (tui_set_exec_info_content): Update.
2966 * tui/tui-source.c (tui_set_source_content_nil): Update.
2967 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2968 has_break.
2969 * tui/tui-data.h (enum tui_bp_flag): New.
2970 (tui_bp_flags): New enum flags type.
2971 (struct tui_source_element) <break_mode>: Change type. Rename
2972 from has_break.
2973 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2974 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2975 constants.
2976 * tui/tui-winsource.h: Fix comment.
2977
350fab54
AH
29782019-07-04 Alan Hayward <alan.hayward@arm.com>
2979
2980 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2981 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2982 (store_fpregs_to_thread)
2983 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2984 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2985 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2986 (IWMMXT_REGS_SIZE): Add define.
2987 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2988 (fetch_vfp_regs, store_vfp_regs)
2989 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2990 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2991
f0452268
AH
29922019-07-04 Alan Hayward <alan.hayward@arm.com>
2993
2994 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2995 defines.
2996 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2997 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2998 (ARM_INT_REGISTER_SIZE): ...to this.
2999 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3000 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3001 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3002 (arm_linux_collect_gregset, supply_nwfpe_register)
3003 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3004 defines.
3005 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3006 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3007 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3008 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3009 (arm_return_in_memory, arm_store_return_value)
3010 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3011 (arm_record_ld_st_multiple): Likewise.
3012 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3013 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3014
e935475c
AH
30152019-07-04 Alan Hayward <alan.hayward@arm.com>
3016
3017 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3018 AARCH64_DISPLACED_MODIFIED_INSNS.
3019 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3020 (aarch64_displaced_step_copy_insn): Likewise.
3021 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3022 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3023 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3024 ARM_DISPLACED_MODIFIED_INSNS.
3025 * arm-tdep.c (arm_gdbarch_init): Likewise.
3026 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3027 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3028 (struct arm_displaced_step_closure): Use
3029 ARM_DISPLACED_MODIFIED_INSNS.
3030
df0bb381
AH
30312019-07-04 Alan Hayward <alan.hayward@arm.com>
3032
3033 * features/Makefile: Remove unused xml files.
3034 * features/aarch64.xml: Remove.
3035 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3036 * features/i386/amd64-avx-avx512.xml: Remove.
3037 * features/i386/amd64-avx-linux.xml: Remove.
3038 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3039 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3040 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3041 * features/i386/amd64-avx-mpx.xml: Remove.
3042 * features/i386/amd64-avx.xml: Remove.
3043 * features/i386/amd64-linux.xml: Remove.
3044 * features/i386/amd64-mpx-linux.xml: Remove.
3045 * features/i386/amd64-mpx.xml: Remove.
3046 * features/i386/amd64.xml: Remove.
3047 * features/i386/i386-avx-avx512-linux.xml: Remove.
3048 * features/i386/i386-avx-avx512.xml: Remove.
3049 * features/i386/i386-avx-linux.xml: Remove.
3050 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3051 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3052 * features/i386/i386-avx-mpx-linux.xml: Remove.
3053 * features/i386/i386-avx-mpx.xml: Remove.
3054 * features/i386/i386-avx.xml: Remove.
3055 * features/i386/i386-linux.xml: Remove.
3056 * features/i386/i386-mmx-linux.xml: Remove.
3057 * features/i386/i386-mmx.xml: Remove.
3058 * features/i386/i386-mpx-linux.xml: Remove.
3059 * features/i386/i386-mpx.xml: Remove.
3060 * features/i386/i386.xml: Remove.
3061 * features/i386/x32-avx-avx512-linux.xml: Remove.
3062 * features/i386/x32-avx-linux.xml: Remove.
3063 * features/i386/x32-linux.xml: Remove.
3064
edd6266a
AH
30652019-07-04 Alan Hayward <alan.hayward@arm.com>
3066
3067 * regformats/aarch64.dat: Remove.
3068 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3069 * regformats/i386/amd64-avx-linux.dat: Remove.
3070 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3071 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3072 * regformats/i386/amd64-linux.dat: Remove.
3073 * regformats/i386/amd64-mpx-linux.dat: Remove.
3074 * regformats/i386/amd64.dat: Remove.
3075 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3076 * regformats/i386/i386-avx-linux.dat: Remove.
3077 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3078 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3079 * regformats/i386/i386-linux.dat: Remove.
3080 * regformats/i386/i386-mmx-linux.dat: Remove.
3081 * regformats/i386/i386-mpx-linux.dat: Remove.
3082 * regformats/i386/i386.dat: Remove.
3083 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3084 * regformats/i386/x32-avx-linux.dat: Remove.
3085 * regformats/i386/x32-linux.dat: Remove.
3086
2b40fda7
AH
30872019-07-04 Alan Hayward <alan.hayward@arm.com>
3088
3089 * aarch64-tdep.c: Remove xml self tests.
3090 * amd64-linux-tdep.c: Likewise.
3091 * amd64-tdep.c: Likewise.
3092 * i386-linux-tdep.c: Likewise.
3093 * i386-tdep.c: Likewise.
3094
5f4ba3e7
PA
30952019-07-03 Pedro Alves <palves@redhat.com>
3096
3097 PR cli/24732
3098 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3099 (pipe_cmd_option_defs): New.
3100 (make_pipe_cmd_options_def_group): New.
3101 (pipe_command): Use gdb::option::process_options.
3102 (pipe_command_completer): New function.
3103 (_initialize_cli_cmds): Install completer for "pipe" command.
3104
3d9be6f5
PA
31052019-07-03 Pedro Alves <palves@redhat.com>
3106
3107 * cli/cli-option.c (union option_value) <string>: New field.
3108 (struct option_def_and_value): Add ctor, move ctor, dtor and
3109 use DISABLE_COPY_AND_ASSIGN.
3110 (option_def_and_value::clear_value): New.
3111 (parse_option, save_option_value_in_ctx, get_val_type_str)
3112 (add_setshow_cmds_for_options): Handle var_string.
3113 * cli-option.h (union option_def::var_address) <string>: New
3114 field.
3115 (struct string_option_def): New.
3116 * maint-test-options.c (struct test_options_opts): Add default
3117 ctor and use DISABLE_COPY_AND_ASSIGN.
3118 <string_opt>: New field.
3119 (test_options_opts::~test_options_opts): New.
3120 (test_options_opts::dump): Also dump "-string".
3121 (test_options_option_defs): Install "string.
3122
41fc454c
PA
31232019-07-03 Pedro Alves <palves@redhat.com>
3124
3125 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3126 option_value with a null enumeration.
3127 (complete_options): Save the option values in the context.
3128 (save_option_value_in_ctx): New, factored out from ...
3129 (process_options): ... here.
3130 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3131 of the function.
3132 * maint-test-options.c (test_options_opts::dump): New, factored
3133 out from ...
3134 (maintenance_test_options_command_mode): ... here.
3135 (maintenance_test_options_command_completion_result): Delete.
3136 (maintenance_test_options_command_completion_text): Update
3137 comment.
3138 (maintenance_show_test_options_completion_result): Change
3139 prototype. Just print
3140 maintenance_test_options_command_completion_text.
3141 (save_completion_result): New.
3142 (maintenance_test_options_completer_mode): Pass options context to
3143 complete_options, and then save a dump.
3144 (_initialize_maint_test_options): Use add_cmd to install "maint
3145 show test-options-completion-result".
3146
fdbc9870
PA
31472019-07-03 Pedro Alves <palves@redhat.com>
3148
3149 * NEWS (New commands): Mention "with" and "maint with".
3150 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3151 (with_command, with_command_completer): New.
3152 (pipe_command): Adjust to new repeat_previous
3153 interface.
3154 (_initialize_cli_cmds): Install the "with" command and its "w"
3155 alias.
3156 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3157 declarations.
3158 * cli/cli-setshow.c (parse_cli_var_uinteger)
3159 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3160 argument strings for all var_types.
3161 (get_setshow_command_value_string): New, factored out from ...
3162 (do_show_command): ... this.
3163 * cli/cli-setshow.h: Include <string>.
3164 (get_setshow_command_value_string): Declare.
3165 * command.h (repeat_previous): Now returns const char *. Adjust
3166 comment.
3167 * maint.c: Include "cli/cli-cmds.h".
3168 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3169 (_initialize_maint_cmds): Register the "maintenance with" command.
3170 * top.c (repeat_previous): Move bits from pipe_command here:
3171 Return the saved command line, if any; error out if there's no
3172 command to relaunch.
3173
c6ac8931
PA
31742019-07-03 Pedro Alves <palves@redhat.com>
3175
3176 * NEWS (New commands): Mention "maint set/show test-settings"
3177 instead of "maint test-settings".
3178 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3179 (maintenance_test_settings_set_list): Rename to ...
3180 (maintenance_set_test_settings_list): ... this.
3181 (maintenance_test_settings_show_list): Rename to ...
3182 (maintenance_show_test_settings_list): ... this.
3183 (maintenance_test_settings_cmd): Delete.
3184 (maintenance_test_settings_set_cmd): ...
3185 (maintenance_set_test_settings_cmd): ... this.
3186 (maintenance_test_settings_show_cmd): ...
3187 (maintenance_show_test_settings_cmd): ... this.
3188 (maintenance_test_settings_show_value_cmd):
3189 (maintenance_show_test_settings_value_cmd): ... this.
3190 (_initialize_maint_test_settings): No longer install the "maint
3191 test-settings" prefix command. Rename "maint test-settings set"
3192 to "maint set test-settings", and "maint test-settings show" to
3193 "maint show test-settings". Adjust all subcommands.
3194
d1fcf2fd
PA
31952019-07-03 Pedro Alves <palves@redhat.com>
3196
3197 * maint-test-settings.c: Fix file's intro comment. Replace all
3198 references to "test-options" with references to "test-settings",
3199 in comments.
3200
970f9d09
PA
32012019-07-03 Pedro Alves <palves@redhat.com>
3202
3203 * maint-test-settings.c (maintenance_test_settings_xxx)
3204 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3205 New.
3206 (maintenance_test_settings_enums): Use them.
3207 (maintenance_test_settings_enum): Default to
3208 maintenance_test_settings_xxx.
3209 (_initialize_maint_test_settings): Initialize
3210 MAINTENANCE_TEST_SETTINGS_FILENAME.
3211
f3869b1a
SM
32122019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3213
3214 * breakpoint.h (remove_breakpoints_inf): Change return type to
3215 void, move function documentation here.
3216 * breakpoint.c (remove_breakpoints_inf): Change return type to
3217 void, move function documentation to header.
3218
54d66006
PA
32192019-07-02 Pedro Alves <palves@redhat.com>
3220
3221 * NEWS (Completion improvements): Mention "info threads".
3222 * thread.c (struct info_threads_opts, info_threads_option_defs)
3223 (make_info_threads_options_def_group): New.
3224 (info_threads_command): Use gdb::option::process_options.
3225 (info_threads_command_completer): New.
3226 (_initialize_thread): Use gdb::option::build_help to build the
3227 help text for "info threads".
3228
854f6088
SM
32292019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3230
3231 * defs.h (generic_load): Move from here...
3232 * symfile.h (generic_load): ... to here. Rename name parameter
3233 to args.
3234 * symfile.c (generic_load): Add comment.
3235
54ee4252
TT
32362019-07-01 Tom Tromey <tromey@adacore.com>
3237
3238 * dwarf2read.c
3239 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3240 declaration of without_params. Fix formatting.
3241
65392b3e
TT
32422019-07-01 Tom Tromey <tromey@adacore.com>
3243
3244 * ada-exp.y (find_primitive_type): Update.
3245 * ada-lang.h (ada_lookup_symbol): Update.
3246 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3247 parameter.
3248 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3249
7d7571f0
SDJ
32502019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3251
3252 PR breakpoints/24541
3253 * gdbarch.c: Regenerate.
3254 * gdbarch.h: Regenerate.
3255 * gdbarch.sh: Add 'stap_adjust_register'.
3256 * i386-tdep.c: Include '<unordered_set>'.
3257 (i386_stap_adjust_register): New function.
3258 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3259 * stap-probe.c (stap_parse_register_operand): Call
3260 'gdbarch_stap_adjust_register'.
3261
5af5392a
SDJ
32622019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3263
3264 PR python/24742
3265 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3266 * python/python.c (do_start_initialization): Use 'xmalloc'
3267 instead of 'PyMem_Malloc'.
3268
10d06d82
TT
32692019-06-28 Tom Tromey <tromey@adacore.com>
3270
3271 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3272 for Ada.
3273
1b7f24cd
TT
32742019-06-27 Tom Tromey <tromey@adacore.com>
3275
3276 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3277 objfile_key.
3278 (arm_find_mapping_symbol, arm_record_special_symbol)
3279 (_initialize_arm_tdep): Update.
3280 (arm_objfile_data_free): Remove.
3281
3d507ff2
TT
32822019-06-27 Tom Tromey <tromey@adacore.com>
3283
3284 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3285 to cp_print_static_field.
3286
762c164d
TT
32872019-06-26 Tom Tromey <tromey@adacore.com>
3288
3289 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3290 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3291 declare.
3292
aa2f9bcf
AH
32932019-06-26 Alan Hayward <alan.hayward@arm.com>
3294
3295 * features/aarch64-core.c (create_feature_aarch64_core):
3296 Regenerate.
3297 * features/aarch64-core.xml: Add cpsr flags.
3298
3426ae57
AH
32992019-06-26 Alan Hayward <alan.hayward@arm.com>
3300
3301 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3302 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3303
4838e44c
SM
33042019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3305
3306 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3307 field.
3308 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3309 use.
3310 (arm_record_special_symbol): Don't insert new symbol in sorted
3311 position, push it at the end.
3312
54cc7474
SM
33132019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3314
3315 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3316 (arm_mapping_symbol_s): Remove.
3317 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3318 (arm_mapping_symbol_vec): New typedef.
3319 (struct arm_per_objfile): Add constructor.
3320 <section_maps>: Change type to
3321 std::unique_ptr<arm_mapping_symbol_vec[]>.
3322 (arm_compare_mapping_symbols): Remove.
3323 (arm_find_mapping_symbol): Adjust to section_maps type change.
3324 (arm_objfile_data_free): Call delete on arm_per_objfile.
3325 (arm_record_special_symbol): Adjust to section_maps type change.
3326 Allocate arm_per_objfile with new.
3327
b65b566c
PW
33282019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3329
3330 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3331 with the command prefix.
3332
c2fc64f5
TT
33332019-06-25 Tom Tromey <tom@tromey.com>
3334
3335 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3336 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3337
fb54fa76
TT
33382019-06-25 Tom Tromey <tom@tromey.com>
3339
3340 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3341 type.
3342 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3343 protected.
3344
f7952c57
TT
33452019-06-25 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui-winsource.c
3348 (tui_source_window_base::set_is_exec_point_at): Add check against
3349 LOA_ADDRESS.
3350
17568d78
TT
33512019-06-25 Tom Tromey <tom@tromey.com>
3352
3353 * tui/tui-source.c (tui_set_source_content): Don't check before
3354 xfree.
3355 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3356
53e7cdba
TT
33572019-06-25 Tom Tromey <tom@tromey.com>
3358
3359 * tui/tui-winsource.h (tui_update_source_window_as_is)
3360 (tui_alloc_source_buffer, tui_line_is_displayed)
3361 (tui_addr_is_displayed): Change type of win_info.
3362 * tui/tui-winsource.c (tui_update_source_window_as_is)
3363 (tui_clear_source_content, tui_show_source_line)
3364 (tui_show_source_content, tui_source_window_base::refill)
3365 (tui_source_window_base::set_is_exec_point_at)
3366 (tui_source_window_base::set_is_exec_point_at)
3367 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3368 (tui_alloc_source_buffer, tui_line_is_displayed)
3369 (tui_addr_is_displayed): Change type of win_info. Update.
3370 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3371 (tui_source_window_base::do_make_visible_with_new_height):
3372 Update.
3373 * tui/tui-source.c (tui_set_source_content)
3374 (tui_set_source_content_nil)
3375 (tui_source_window::do_scroll_vertical): Update.
3376 * tui/tui-layout.c (show_layout): Update.
3377 * tui/tui-disasm.c (tui_set_disassem_content)
3378 (tui_disasm_window::do_scroll_vertical): Update.
3379 * tui/tui-data.h (tui_win_content): Remove.
3380 (struct tui_gen_win_info) <content, content_size>: Remove.
3381 (struct tui_source_element): Add initializers and destructor.
3382 (union tui_which_element, struct tui_win_element): Remove.
3383 (struct tui_source_window_base) <content>: New field.
3384 (struct tui_data_window): Remove destructor.
3385 (tui_alloc_content, tui_free_win_content)
3386 (tui_free_all_source_wins_content): Don't declare.
3387 * tui/tui-data.c (tui_initialize_static_data): Update.
3388 (init_content_element, tui_alloc_content): Remove.
3389 (~tui_gen_win_info): Update.
3390 (~tui_data_window, tui_free_all_source_wins_content)
3391 (tui_free_win_content, free_content, free_content_elements):
3392 Remove.
3393
7908abbf
TT
33942019-06-25 Tom Tromey <tom@tromey.com>
3395
3396 * tui/tui-winsource.h (tui_clear_source_content)
3397 (tui_erase_source_content, tui_show_source_content): Change type
3398 of win_info.
3399 * tui/tui-winsource.c (tui_clear_source_content)
3400 (tui_erase_source_content, tui_show_source_content): Change type
3401 of win_info.
3402 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3403 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3404 win_info.
3405 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3406 win_info.
3407 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3408
02c28df0
TT
34092019-06-25 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-winsource.c (tui_clear_source_content)
3412 (tui_source_window_base::set_is_exec_point_at): Update.
3413 * tui/tui-source.c (tui_set_source_content_nil): Update.
3414 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3415 a bool.
3416 * tui/tui-data.c (init_content_element): Update.
3417
6658b1bf
TT
34182019-06-25 Tom Tromey <tom@tromey.com>
3419
3420 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3421 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3422 * tui/tui-layout.c (init_and_make_win): Update.
3423 * tui/tui.h (enum tui_win_type): Update.
3424 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3425 tui_win_is_auxillary.
3426 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3427 tui_win_is_auxillary.
3428
21e1c91e
TT
34292019-06-25 Tom Tromey <tom@tromey.com>
3430
3431 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3432 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3433 (tui_delete_data_content_windows, tui_display_all_data)
3434 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3435 Update.
3436 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3437 * tui/tui-regs.c (tui_last_regs_line_no)
3438 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3439 (tui_show_registers): Update.
3440 (tui_show_register_group): Return void. Update.
3441 (tui_display_registers_from, tui_display_reg_element_at_line)
3442 (tui_display_registers_from_line, tui_check_register_values):
3443 Update.
3444 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3445 member.
3446 (struct tui_data_window) <regs_content>: Now a std::vector.
3447 <regs_content_count>: Remove.
3448 (tui_add_content_elements, tui_free_data_content): Don't declare.
3449 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3450 (init_content_element): Remove DATA_WIN case. Add assert.
3451 (tui_add_content_elements): Remove.
3452 (tui_data_window): Update.
3453 (tui_free_data_content): Remove.
3454 (free_content_elements): Remove DATA_WIN case.
3455
115ac53b
TT
34562019-06-25 Tom Tromey <tom@tromey.com>
3457
3458 * tui/tui-data.c (tui_data_item_window): Update.
3459 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3460 * tui/tui-windata.c (tui_display_all_data)
3461 (tui_display_data_from_line): Update.
3462 (tui_check_data_values): Remove.
3463 * tui/tui-regs.c (tui_show_register_group)
3464 (tui_display_reg_element_at_line): Update.
3465 * tui/tui-hooks.c (tui_register_changed)
3466 (tui_refresh_frame_and_register_information): Call
3467 tui_check_register_values.
3468 * tui/tui-data.h (struct tui_data_window) <data_content,
3469 data_content_count, data_type>: Remove.
3470 (enum tui_data_type): Remove.
3471
3472 * tui/tui-data.c (tui_data_window::clear_detail)
3473 (~tui_data_window): Update.
3474
eaf9738b
TT
34752019-06-25 Tom Tromey <tom@tromey.com>
3476
3477 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3478 declare.
3479 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3480 Rename from tui_first_data_item_displayed. Update.
3481 (tui_data_window::refresh_all)
3482 (tui_data_window::do_scroll_vertical): Update.
3483 * tui/tui-data.h (struct tui_data_window)
3484 <first_data_item_displayed>: Declare new method.
3485
31ca4723
TT
34862019-06-25 Tom Tromey <tom@tromey.com>
3487
3488 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3489 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3490 contents...
3491 (tui_initialize_static_data): ...here.
3492
41bcff7f
TT
34932019-06-25 Tom Tromey <tom@tromey.com>
3494
3495 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3496 (tui_display_registers_from, tui_check_register_values): Update.
3497 (tui_display_register): Remove win_info parameter; update.
3498 (tui_get_register): Change type of parameters.
3499 * tui/tui-data.h (struct tui_data_element): Remove.
3500 (union tui_which_element) <data>: Remove.
3501 <data_window>: Change type.
3502 (struct tui_data_item_window): New.
3503 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3504 case. Add assert.
3505 (~tui_data_item_window): New destructor.
3506 (free_content_elements): Remove DATA_ITEM_WIN case.
3507
d2802c33
TT
35082019-06-25 Tom Tromey <tom@tromey.com>
3509
3510 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3511 Remove.
3512
dd835f8b
TT
35132019-06-25 Tom Tromey <tom@tromey.com>
3514
3515 * tui/tui-data.h (struct tui_command_element): Remove.
3516 (union tui_which_element) <command>: Remove.
3517 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3518 assert.
3519 (free_content_elements): Remove CMD_WIN case.
3520
bd7db367
TT
35212019-06-25 Tom Tromey <tom@tromey.com>
3522
3523 * tui/tui-layout.c (tui_set_layout): Update.
3524 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3525 * tui/tui-data.c (layout_def): Update.
3526
3add462f
TT
35272019-06-25 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3530 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3531 (tui_source_window_base::set_new_height): Update.
3532 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3533 Update.
3534 (tui_set_locator_fullname, tui_set_locator_info)
3535 (tui_show_frame_info): Update.
3536 * tui/tui-source.c (tui_set_source_content)
3537 (tui_source_is_displayed): Update.
3538 * tui/tui-layout.c (show_source_disasm_command, show_data)
3539 (show_source_or_disasm_and_command): Update.
3540 * tui/tui-disasm.c (tui_set_disassem_content)
3541 (tui_get_begin_asm_address): Update.
3542 * tui/tui-data.h (struct tui_locator_element): Remove.
3543 (union tui_which_element) <locator>: Remove.
3544 (struct tui_locator_window): New.
3545 (tui_locator_win_info_ptr): Change return type.
3546 * tui/tui-data.c (_locator): Change type.
3547 (tui_locator_win_info_ptr): Change return type.
3548 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3549 (tui_alloc_content): Add assert.
3550
489e9d8b
TT
35512019-06-25 Tom Tromey <tom@tromey.com>
3552
3553 * tui/tui-winsource.c
3554 (tui_exec_info_window::maybe_allocate_content): New method.
3555 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3556 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3557 (make_source_or_disasm_window): Add cast.
3558 * tui/tui-data.h (union tui_which_element) <simple_string>:
3559 Remove.
3560 (struct tui_source_info): New.
3561 (struct tui_source_window_base) <execution_info>: Change type.
3562 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3563 case, and add assert.
3564 (tui_alloc_content): Add assert.
3565
c3fabb7d
TT
35662019-06-25 Tom Tromey <tom@tromey.com>
3567
3568 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3569 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3570 * tui/tui-data.c (tui_alloc_win_info): Remove.
3571
bbc228ee
TT
35722019-06-25 Tom Tromey <tom@tromey.com>
3573
3574 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3575 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3576 can_highlight.
3577
5fcee43a
TT
35782019-06-25 Tom Tromey <tom@tromey.com>
3579
3580 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3581 make_visible_with_new_height method.
3582 (tui_win_info::make_visible_with_new_height): New method.
3583 (tui_source_window_base::do_make_visible_with_new_height)
3584 (tui_data_window::do_make_visible_with_new_height)
3585 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3586 (make_visible_with_new_height): Remove.
3587 (tui_resize_all, tui_adjust_win_heights): Use
3588 make_visible_with_new_height method.
3589 * tui/tui-data.h (struct tui_win_info)
3590 <do_make_visible_with_new_height, make_visible_with_new_height>:
3591 New methods.
3592 (struct tui_source_window_base, struct tui_data_window)
3593 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3594 methods.
3595
d83f1fe6
TT
35962019-06-25 Tom Tromey <tom@tromey.com>
3597
3598 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3599 method.
3600 (update_tab_width): Call update_tab_width method.
3601 * tui/tui-data.h (struct tui_win_info)
3602 (struct tui_source_window_base) <update_tab_width>: New methods.
3603
17374de4
TT
36042019-06-25 Tom Tromey <tom@tromey.com>
3605
3606 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3607 parameter.
3608 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3609 parameter.
3610 (tui_gen_win_info::make_visible): Update.
3611 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3612 parameter.
3613 * tui/tui-data.h (enum tui_box): New enum.
3614 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3615
f936bca2
TT
36162019-06-25 Tom Tromey <tom@tromey.com>
3617
3618 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3619 init_and_make_win for EXEC_INFO_WIN.
3620 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3621 longer inline.
3622 (struct tui_win_info) <~tui_win_info>: Inline.
3623 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3624 Don't declare.
3625 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3626 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3627 Remove.
3628 (tui_initialize_static_data): Update.
3629 (~tui_gen_win_info): Handle more cleanup here.
3630 (~tui_source_window_base): Delete "execution_info".
3631 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3632
d6ba6a11
TT
36332019-06-25 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-layout.c (make_command_window): Don't set
3636 can_highlight.
3637 (show_source_disasm_command): Call the reset method.
3638 (show_data): Don't set can_highlight. Call the reset method.
3639 (tui_gen_win_info::reset): Rename from init_gen_win_info
3640 (init_and_make_win): Simplify. Return tui_gen_win_info.
3641 (show_source_or_disasm_and_command): Call the reset method.
3642 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3643 (struct tui_cmd_window): Set can_highlight.
3644
48a3bd16
TT
36452019-06-25 Tom Tromey <tom@tromey.com>
3646
3647 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3648 from make_visible.
3649 (tui_make_visible, tui_make_invisible): Rewrite.
3650 (tui_win_info::make_visible): Remove.
3651 (tui_source_window_base::make_visible): Update.
3652 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3653 method. Moved from...
3654 (struct tui_win_info) <make_visible>: ...here.
3655
c3bd716f
TT
36562019-06-25 Tom Tromey <tom@tromey.com>
3657
3658 * tui/tui-winsource.c
3659 (tui_source_window_base::do_scroll_horizontal): Remove direction
3660 parameter.
3661 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3662 direction parameter.
3663 * tui/tui-win.c (tui_win_info::forward_scroll)
3664 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3665 (tui_win_info::right_scroll): Update.
3666 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3667 direction parameter.
3668 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3669 direction parameter.
3670 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3671 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3672 Remove direction parameter.
3673 (struct tui_source_window_base, struct tui_source_window)
3674 (struct tui_disasm_window, struct tui_data_window)
3675 (struct tui_cmd_window): Update.
3676
21c32dca
TT
36772019-06-25 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui-winsource.h (tui_set_exec_info_content)
3680 (tui_show_exec_info_content, tui_erase_exec_info_content)
3681 (tui_clear_exec_info_content, tui_update_exec_info): Change
3682 argument to tui_source_window_base.
3683 * tui/tui-winsource.c (tui_set_exec_info_content)
3684 (tui_show_exec_info_content, tui_erase_exec_info_content)
3685 (tui_clear_exec_info_content, tui_update_exec_info): Change
3686 argument to tui_source_window_base.
3687
73fbdc65
TT
36882019-06-25 Tom Tromey <tom@tromey.com>
3689
3690 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3691 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3692
33325343
TT
36932019-06-25 Tom Tromey <tom@tromey.com>
3694
3695 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3696 check.
3697
29d2c474
TT
36982019-06-25 Tom Tromey <tom@tromey.com>
3699
3700 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3701 type to void.
3702 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3703 type to void.
3704 * tui/tui-source.c (tui_set_source_content): Update.
3705 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3706
152f3f4b
TT
37072019-06-25 Tom Tromey <tom@tromey.com>
3708
3709 * tui/tui-win.c (window_name_completer, tui_set_focus)
3710 (tui_all_windows_info): Use name method.
3711 * tui/tui-data.h (struct tui_gen_win_info)
3712 (struct tui_source_window, struct tui_disasm_window)
3713 (struct tui_data_window, struct tui_cmd_window) <name>: New
3714 method.
3715 (tui_win_name): Don't declare.
3716 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3717 (tui_win_name): Remove.
3718
be4da588
TT
37192019-06-25 Tom Tromey <tom@tromey.com>
3720
3721 * tui/tui-winsource.h (tui_update_source_window)
3722 (tui_update_source_window_as_is): Change parameter type.
3723 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3724 to be a tui_source_window_base.
3725 (tui_update_source_window_as_is): Likewise.
3726 * tui/tui-win.c (make_visible_with_new_height): Update.
3727
5b81daba
TT
37282019-06-25 Tom Tromey <tom@tromey.com>
3729
3730 * tui/tui-winsource.c (tui_erase_source_content)
3731 (tui_show_source_content, tui_show_exec_info_content)
3732 (tui_erase_exec_info_content): Use refresh_window method.
3733 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3734 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3735 from tui_refresh_win.
3736 (tui_data_window::refresh_window): New method.
3737 (tui_win_info::refresh, tui_source_window_base::refresh)
3738 (tui_refresh_all): Use refresh_window method.
3739 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3740 method.
3741 * tui/tui-regs.c (tui_display_register): Call refresh_window
3742 method.
3743 * tui/tui-layout.c (show_source_disasm_command)
3744 (show_source_or_disasm_and_command): Call refresh_window method.
3745 * tui/tui-data.h (struct tui_gen_win_info)
3746 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3747 New method.
3748
cb2ce893
TT
37492019-06-25 Tom Tromey <tom@tromey.com>
3750
3751 * tui/tui.c (tui_rl_other_window, tui_enable)
3752 (tui_is_window_visible, tui_get_command_dimension): Update.
3753 * tui/tui-winsource.c (tui_update_source_window_as_is)
3754 (tui_clear_source_content, tui_erase_source_content)
3755 (tui_show_source_line, tui_source_window_base::refill)
3756 (tui_source_window_base::do_scroll_horizontal)
3757 (tui_source_window_base::set_is_exec_point_at)
3758 (tui_update_breakpoint_info, tui_set_exec_info_content)
3759 (tui_alloc_source_buffer, tui_line_is_displayed)
3760 (tui_addr_is_displayed): Update.
3761 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3762 (tui_check_and_display_highlight_if_needed)
3763 (tui_win_info::make_visible, tui_win_info::refresh)
3764 (tui_refresh_all): Update.
3765 * tui/tui-windata.c (tui_first_data_item_displayed)
3766 (tui_delete_data_content_windows, tui_erase_data_content)
3767 (tui_display_all_data, tui_data_window::refresh_all)
3768 (tui_check_data_values): Update.
3769 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3770 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3771 (tui_win_info::backward_scroll, tui_refresh_all_win)
3772 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3773 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3774 (tui_source_window_base::set_new_height)
3775 (tui_data_window::set_new_height)
3776 (make_invisible_and_set_new_height)
3777 (make_visible_with_new_height, new_height_ok)
3778 (parse_scrolling_args): Update.
3779 * tui/tui-stack.c (tui_show_frame_info): Update.
3780 * tui/tui-source.c (tui_set_source_content)
3781 (tui_set_source_content_nil, tui_source_is_displayed)
3782 (tui_source_window::do_scroll_vertical): Update.
3783 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3784 (tui_display_registers_from, tui_display_reg_element_at_line)
3785 (tui_check_register_values, tui_reg_command): Update.
3786 * tui/tui-layout.c (tui_default_win_height)
3787 (show_source_disasm_command, show_data, init_and_make_win)
3788 (show_source_or_disasm_and_command): Update.
3789 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3790 (tui_redisplay_readline, tui_mld_flush)
3791 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3792 (tui_getc): Update.
3793 * tui/tui-disasm.c (tui_set_disassem_content)
3794 (tui_disasm_window::do_scroll_vertical): Update.
3795 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3796 Now virtual.
3797 (struct tui_win_info): Derive from tui_gen_win_info.
3798 <~tui_win_info>: Mark as override.
3799 <generic>: Remove member.
3800 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3801 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3802 (~tui_data_window, ~tui_win_info)
3803 (tui_free_all_source_wins_content): Update.
3804 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3805
ab313b35
TT
38062019-06-25 Tom Tromey <tom@tromey.com>
3807
3808 * tui/tui-layout.c (init_and_make_win): Use new.
3809 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3810 destructor, initializers.
3811 (tui_alloc_generic_win_info): Don't declare.
3812 * tui/tui-data.c (_locator): Add argument to constructor.
3813 (source_win, disasm_win): New globals.
3814 (exec_info): Remove.
3815 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3816 Update.
3817 (tui_alloc_generic_win_info): Remove.
3818 (init_content_element): Use new.
3819 (tui_win_info::tui_win_info): Update.
3820 (free_content_elements) <case DATA_WIN>: Use delete.
3821
dc2c33e4
TT
38222019-06-25 Tom Tromey <tom@tromey.com>
3823
3824 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3825 * tui/tui-windata.c (tui_first_data_item_displayed)
3826 (tui_delete_data_content_windows): Update.
3827 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3828 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3829 (tui_display_registers_from, tui_check_register_values): Update.
3830 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3831 pointer.
3832 * tui/tui-data.c (init_content_element): Update. Allocate the new
3833 window.
3834 (tui_free_data_content): Update.
3835 (free_content_elements) <case DATA_WIN>: Free the window.
3836
214a5cbe
TT
38372019-06-25 Tom Tromey <tom@tromey.com>
3838
3839 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3840 Update.
3841 * tui/tui-layout.c (make_command_window)
3842 (show_source_disasm_command, show_data, init_and_make_win)
3843 (show_source_or_disasm_and_command): Update.
3844 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3845 method.
3846 <can_highight, is_highlighted>: Now bool.
3847 (tui_set_win_highlight): Don't declare.
3848 * tui/tui-data.c (tui_set_win_highlight): Remove.
3849
8e2daf15
TT
38502019-06-25 Tom Tromey <tom@tromey.com>
3851
3852 * tui/tui-wingeneral.c (make_visible): Remove check of window
3853 type.
3854
8903bd8a
TT
38552019-06-25 Tom Tromey <tom@tromey.com>
3856
3857 * tui/tui-win.c (tui_win_info::max_height)
3858 (tui_cmd_window::max_height): New methods.
3859 (new_height_ok): Call max_height.
3860 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3861 <max_height>: New method.
3862
3f02ce1e
TT
38632019-06-25 Tom Tromey <tom@tromey.com>
3864
3865 * tui/tui-win.c (tui_source_window_base::set_new_height)
3866 (tui_data_window::set_new_height): New methods.
3867 (make_invisible_and_set_new_height): Call set_new_height method.
3868 * tui/tui-data.h (struct tui_win_info)
3869 (struct tui_source_window_base, struct tui_data_window)
3870 <set_new_height>: New method.
3871
1825f487
TT
38722019-06-25 Tom Tromey <tom@tromey.com>
3873
3874 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3875 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3876 tui_refresh_data_win.
3877 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3878 method.
3879 (tui_refresh_all_win): Call the refresh_all method.
3880 (tui_set_focus): Likewise.
3881 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3882 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3883 Likewise.
3884
ad54d15b
TT
38852019-06-25 Tom Tromey <tom@tromey.com>
3886
3887 * tui/tui-winsource.h (tui_refill_source_window)
3888 (tui_set_is_exec_point_at): Don't declare.
3889 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3890 (tui_source_window_base::refill): Rename from
3891 tui_refill_source_window.
3892 (tui_source_window_base::do_scroll_horizontal): Update.
3893 (tui_source_window_base::set_is_exec_point_at): Rename from
3894 tui_set_is_exec_point_at.
3895 (tui_update_all_breakpoint_info): Update.
3896 * tui/tui-stack.c (tui_show_frame_info): Update.
3897 * tui/tui-layout.c (show_data): Add cast.
3898 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3899 * tui/tui-data.h (struct tui_source_window_base) <refill,
3900 set_is_exec_point_at>: New methods.
3901 (tui_source_windows, tui_add_to_source_windows): Update types.
3902 (tui_add_to_source_windows): Remove redundant declaration.
3903 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3904 (tui_source_windows): Change return type.
3905 (tui_clear_source_windows_detail): Update.
3906 (tui_add_to_source_windows): Change type of parameter.
3907 (tui_free_all_source_wins_content): Update.
3908
2042b506
TT
39092019-06-25 Tom Tromey <tom@tromey.com>
3910
3911 * tui/tui-wingeneral.c (tui_win_info::refresh)
3912 (tui_source_window_base::refresh): New methods.
3913 (tui_refresh_all): Call the refresh method.
3914 * tui/tui-data.h (struct tui_win_info)
3915 (struct tui_source_window_base) <refresh>: New method.
3916
56122977
TT
39172019-06-25 Tom Tromey <tom@tromey.com>
3918
3919 * tui/tui.h (tui_is_window_visible): Return bool.
3920 * tui/tui.c (tui_is_window_visible): Return bool.
3921 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3922 (tui_make_visible, tui_make_invisible)
3923 (tui_win_info::make_visible)
3924 (tui_source_window_base::make_visible, make_all_visible)
3925 (tui_make_all_visible, tui_make_all_invisible): Update.
3926 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3927 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3928 bool.
3929 (struct tui_win_info, struct tui_source_window_base)
3930 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3931 * tui/tui-data.c (tui_init_generic_part): Update.
3932
cda37efb
TT
39332019-06-25 Tom Tromey <tom@tromey.com>
3934
3935 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3936 (tui_source_window_base::make_visible): New methods.
3937 (make_all_visible): Make method call.
3938 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3939 (struct tui_source_window_base, struct tui_cmd_window): Override
3940 make_visible.
3941 (tui_win_is_source_type): Don't declare.
3942 * tui/tui-data.c (tui_win_is_source_type): Remove.
3943
6a0ee02c
TT
39442019-06-25 Tom Tromey <tom@tromey.com>
3945
3946 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3947 NULL check.
3948
63901aec
TT
39492019-06-25 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3952 Inline constructor. Add initializers for members.
3953 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3954 constructors; now inline in class.
3955
ceb13a13
TT
39562019-06-25 Tom Tromey <tom@tromey.com>
3957
3958 * tui/tui-regs.c (tui_show_registers): Update.
3959 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3960 bool.
3961 * tui/tui-data.c (tui_data_window::clear_detail)
3962 (tui_data_window): Update.
3963
238eb706
TT
39642019-06-25 Tom Tromey <tom@tromey.com>
3965
3966 * tui/tui-windata.c (tui_display_all_data)
3967 (tui_display_data_from_line, tui_display_data_from)
3968 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3969 Update.
3970 * tui/tui-regs.c (tui_last_regs_line_no)
3971 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3972 (tui_show_registers, tui_show_register_group)
3973 (tui_display_registers_from, tui_display_reg_element_at_line)
3974 (tui_display_registers_from_line, tui_check_register_values)
3975 (tui_reg_next, tui_reg_prev): Update.
3976 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3977 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3978 tui_data_window.
3979 (struct tui_win_info) <detail>: Remove. Add new fields from
3980 tui_data_info.
3981 (TUI_DATA_WIN): Add cast.
3982 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3983 (~tui_data_window): Simplify.
3984
81491aa0
TT
39852019-06-25 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-layout.c (show_source_disasm_command)
3988 (show_source_or_disasm_and_command): Update.
3989 * tui/tui-io.c (update_cmdwin_start_line)
3990 (tui_redisplay_readline): Update.
3991 * tui/tui-data.h (struct tui_command_info): Remove.
3992 (struct tui_win_info) <detail>: Remove command_info member.
3993 (struct tui_data_window) <start_line>: New member, from
3994 tui_command_info.
3995 (TUI_CMD_WIN): Add casts.
3996
e6e41501
TT
39972019-06-25 Tom Tromey <tom@tromey.com>
3998
3999 * tui/tui-winsource.c (tui_update_source_window)
4000 (tui_refill_source_window)
4001 (tui_source_window_base::do_scroll_horizontal)
4002 (tui_update_breakpoint_info, tui_set_exec_info_content)
4003 (tui_show_exec_info_content, tui_erase_exec_info_content)
4004 (tui_clear_exec_info_content): Update.
4005 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4006 Update.
4007 * tui/tui-win.c (make_invisible_and_set_new_height)
4008 (make_visible_with_new_height): Update.
4009 * tui/tui-source.c (tui_set_source_content)
4010 (tui_show_symtab_source): Update.
4011 * tui/tui-layout.c (extract_display_start_addr)
4012 (show_source_disasm_command, show_data)
4013 (make_source_or_disasm_window)
4014 (show_source_or_disasm_and_command): Update.
4015 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4016 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4017 "gdbarch".
4018 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4019 to tui_source_window_base.
4020 (struct tui_win_info) <detail>: Remove source_info member.
4021 (struct tui_source_window_base) <has_locator>: Inline.
4022 Move contents from tui_source_info; rename has_locator member to
4023 m_has_locator.
4024 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4025 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4026 header file.
4027 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4028 Simplify.
4029 (tui_free_all_source_wins_content): Cast to
4030 tui_source_window_base.
4031
44f0e208
TT
40322019-06-25 Tom Tromey <tom@tromey.com>
4033
4034 * tui/tui-win.c (make_invisible_and_set_new_height)
4035 (make_visible_with_new_height): Call has_locator method.
4036 * tui/tui-layout.c (show_source_disasm_command, show_data)
4037 (show_source_or_disasm_and_command): Update for bool change.
4038 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4039 (tui_win_info) <has_locator>: New method.
4040 (struct tui_source_window_base) <has_locator>: New method.
4041 (tui_win_has_locator): Don't declare.
4042 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4043 from tui_win_has_locator.
4044 (tui_source_window_base): Use false, not FALSE.
4045
7778b912
TT
40462019-06-25 Tom Tromey <tom@tromey.com>
4047
4048 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4049 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4050 clear_detail method directly.
4051 (tui_clear_win_detail): Remove.
4052
f83d391c
TT
40532019-06-25 Tom Tromey <tom@tromey.com>
4054
4055 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4056 "this", not TUI_DISASM_WIN.
4057
13446e05
TT
40582019-06-25 Tom Tromey <tom@tromey.com>
4059
4060 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4061 declare.
4062 * tui/tui-winsource.c
4063 (tui_source_window_base::do_scroll_horizontal): Rename from
4064 tui_horizontal_source_scroll.
4065 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4066 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4067 from tui_vertical_data_scroll.
4068 * tui/tui-win.h (tui_scroll): Don't declare.
4069 * tui/tui-win.c (tui_win_info::forward_scroll)
4070 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4071 (tui_win_info::right_scroll): Rename and update.
4072 (tui_scroll_forward_command, tui_scroll_backward_command)
4073 (tui_scroll_left_command, tui_scroll_right_command): Update.
4074 (tui_scroll): Remove.
4075 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4076 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4077 from tui_vertical_source_scroll.
4078 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4079 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4080 from tui_vertical_disassem_scroll.
4081 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4082 do_scroll_horizontal>: New methods.
4083 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4084 Likewise.
4085 (struct tui_source_window_base): Add do_scroll_horizontal.
4086 (struct tui_source_window, struct tui_disasm_window): Add
4087 do_scroll_vertical.
4088 (struct tui_data_window, struct tui_cmd_window): Add
4089 do_scroll_horizontal and do_scroll_vertical.
4090 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4091
5cf82909
TT
40922019-06-25 Tom Tromey <tom@tromey.com>
4093
4094 * tui/tui-data.h (struct tui_source_window_base): New struct.
4095 (struct tui_source_window): Derive from tui_source_window_base.
4096 (struct tui_disasm_window): New struct.
4097 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4098 from tui_source_window::clear_detail.
4099 (tui_source_window_base): Rename from tui_source_window.
4100 (~tui_source_window_base): Rename from ~tui_source_window.
4101 (tui_alloc_win_info): Create a tui_disasm_window.
4102
ee1d42d6
TT
41032019-06-25 Tom Tromey <tom@tromey.com>
4104
4105 * tui/tui-data.h (struct tui_source_window)
4106 (struct tui_data_window): Declare destructors.
4107 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4108 destructors.
4109 (tui_win_info): Simplify.
4110
b4eb2452
TT
41112019-06-25 Tom Tromey <tom@tromey.com>
4112
4113 * tui/tui-winsource.c (tui_display_main)
4114 (tui_update_source_windows_with_addr)
4115 (tui_update_all_breakpoint_info): Update.
4116 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4117 (new_height_ok, parse_scrolling_args): Update.
4118 * tui/tui-stack.c (tui_show_frame_info): Update.
4119 * tui/tui-data.h (struct tui_list): Remove.
4120 (tui_source_windows): Return a reference to a std::vector.
4121 * tui/tui-data.c (source_windows): Now a std::vector.
4122 (tui_source_windows): Change return type.
4123 (tui_clear_source_windows): Rewrite.
4124 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4125 (tui_free_all_source_wins_content): Rewrite.
4126
8761a91b
TT
41272019-06-25 Tom Tromey <tom@tromey.com>
4128
4129 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4130 (struct tui_data_window, struct tui_cmd_window): Declare
4131 clear_detail method.
4132 * tui/tui-data.c (tui_source_window::clear_detail)
4133 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4134 methods.
4135 (tui_clear_win_detail): Simplify.
4136
0ed69eda
TT
41372019-06-25 Tom Tromey <tom@tromey.com>
4138
4139 * tui/tui-layout.c (make_source_window, make_disasm_window)
4140 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4141 Return the new window.
4142 (show_source_disasm_command, show_data)
4143 (show_source_or_disasm_and_command): Update.
4144
82432e10
TT
41452019-06-25 Tom Tromey <tom@tromey.com>
4146
4147 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4148 parameter. Return the new window.
4149 (show_source_disasm_command): Update and remove NULL check.
4150 (show_source_or_disasm_and_command): Update.
4151
ec328aa5
TT
41522019-06-25 Tom Tromey <tom@tromey.com>
4153
4154 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4155
33b906ab
TT
41562019-06-25 Tom Tromey <tom@tromey.com>
4157
4158 * tui/tui-data.h (struct tui_win_info): Make constructor
4159 protected. Make destructor virtual. Add initializers.
4160 (tui_source_window, tui_data_window, tui_cmd_window): New
4161 classes.
4162 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4163 constructor. Add "type" parameter.
4164 (tui_source_window, tui_data_window, tui_cmd_window): New
4165 constructors.
4166 (tui_alloc_win_info): Instantiate the appropriate subclass.
4167
e7e11af4
TT
41682019-06-25 Tom Tromey <tom@tromey.com>
4169
4170 * tui/tui-win.c (tui_resize_all): Use delete.
4171 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4172 destructor.
4173 (tui_free_window): Don't declare.
4174 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4175 Update.
4176
6792b55e
TT
41772019-06-25 Tom Tromey <tom@tromey.com>
4178
4179 * tui/tui-data.h (struct tui_win_info): Add constructor.
4180 * tui/tui-data.c (tui_alloc_win_info): Use new.
4181 (tui_free_window): Use delete.
4182
f95675e1
TT
41832019-06-22 Tom Tromey <tom@tromey.com>
4184
4185 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4186 declare.
4187 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4188
5bff081c
TT
41892019-06-22 Tom Tromey <tom@tromey.com>
4190
4191 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4192 declare.
4193 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4194
47e3f474
TV
41952019-06-22 Tom de Vries <tdevries@suse.de>
4196
4197 * dwarf2read.c (create_addrmap_from_aranges)
4198 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4199 instead of '%zu'.
4200
fd5866f6
SM
42012019-06-21 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * dwarf2read.h (dwarf2_section_info_def): Remove.
4204 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4205 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4206 std::vector<dwarf2_section_info>.
4207 (struct dwo_file) <~dwo_file>: Remove.
4208 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4209 types field.
4210 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4211 (dwarf2_read_debug_names): Likewise.
4212 (create_debug_types_hash_table): Change parameter type to
4213 array_view, adjust code accordingly.
4214 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4215 (partial_die_info::fixup): Likewise.
4216 (determine_prefix): Likewise.
4217 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4218
fb1eb2f9
SM
42192019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4220
4221 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4222 gdb_bfd_ref_ptr.
4223 <~dwo_file>: Remove call to gdb_bfd_unref.
4224 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4225 gdb_bfd_ref_ptr::get.
4226
51ac9db5
SM
42272019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4228
4229 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4230 type to htab_up.
4231 * dwarf2read.c (struct dwo_file): Initialize fields.
4232 <~dwo_file>: New.
4233 (free_dwo_file): Remove, move content to ~dwo_file.
4234 (struct dwo_file_deleter): Remove.
4235 (dwo_file_up>: Remove custom deleter.
4236 (free_dwo_files): Remove.
4237 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4238 dwo_files.
4239 (process_skeletonless_type_units): Call unique_ptr::get.
4240 (allocate_dwo_file_hash_table): Add deleter to created hash
4241 table. Change return type to htab_up.
4242 (lookup_dwo_file_slot): Don't memset dwo_file, call
4243 unique_ptr::get.
4244 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4245 (create_dwo_unit_in_dwp_v2): Likewise.
4246 (open_and_init_dwo_file): Likewise.
4247 (free_dwo_file_from_slot): Remove.
4248
dc4ccb6f
SM
42492019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4250
4251 * dwarf2read.h (struct dwarf2_section_info) <readin,
4252 is_virtual>: Change type to bool.
4253 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4254 true instead of 1.
4255
e6a1c5cb
TT
42562019-06-19 Tom Tromey <tom@tromey.com>
4257
4258 * tui/tui-data.h (tui_init_content_element): Don't declare.
4259
6f6ffbeb
TT
42602019-06-19 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-data.h (tui_init_win_info): Don't declare.
4263
f23f598e
TV
42642019-06-19 Tom de Vries <tdevries@suse.de>
4265
4266 * dwarf2read.h (abstract_to_concrete): Change type to
4267 std::unordered_map<sect_offset, std::vector<sect_offset>,
4268 gdb::hash_enum<sect_offset>>.
4269
680e1bee
TT
42702019-06-19 Tom Tromey <tromey@adacore.com>
4271
4272 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4273 EVAL_AVOID_SIDE_EFFECTS specially.
4274
dcf37923
TT
42752019-06-19 Tom Tromey <tromey@adacore.com>
4276
4277 * source-cache.c (highlighter): New global.
4278 (source_cache::get_source_lines): Create a highlighter on demand.
4279
494986d5
AB
42802019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4281
4282 * defs.h (deprecated_interactive_hook): Delete declaration.
4283 * interps.c (clear_interpreter_hooks): Remove use of
4284 deprecated_interactive_hook.
4285 * top.c (deprecated_interactive_hook): Delete definition.
4286 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4287
3360b6e7
TV
42882019-06-18 Tom de Vries <tdevries@suse.de>
4289
4290 PR gdb/24515
4291 * dwarf2read.h (abstract_to_concrete): Change type from
4292 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4293 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4294 * dwarf2read.c (read_variable): Update.
4295 (dwarf2_fetch_die_loc_sect_off): Update.
4296
310b3441
TV
42972019-06-17 Tom de Vries <tdevries@suse.de>
4298
4299 PR gdb/24617
4300 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4301 accessing parent[parent_len - 1].
4302
ba9777be
PP
43032019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4304
4305 PR gdb/24364
4306 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4307 call dtrace_process_dof with NULL dof.
4308
2b9f6e89
TV
43092019-06-16 Tom de Vries <tdevries@suse.de>
4310
4311 PR gdb/24445
4312 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4313
431b3ead
TT
43142019-06-16 Tom Tromey <tom@tromey.com>
4315
4316 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4317 (make_all_visible): Use address of member.
4318
d04b44a1
TT
43192019-06-16 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4322 (tui_free_window, free_content, free_content_elements): Remove
4323 unnecessary cast.
4324 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4325 cast.
4326 * tui/tui-regs.c (tui_show_register_group)
4327 (tui_display_registers_from, tui_display_reg_element_at_line):
4328 Remove unnecessary cast.
4329
bf5142e7
AB
43302019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4331
4332 * linux-nat.c (normal_mask): Delete.
4333 (_initialize_linux_nat): Don't initialise normal_mask.
4334
c4973306
SM
43352019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4336
4337 PR gdb/24445
4338 * dwarf-index-write.h (write_psymtabs_to_index): Add
4339 dwz_basename parameter.
4340 * dwarf-index-write.c (write_gdbindex): Move file writing to
4341 write_gdbindex_1. Change return type void.
4342 (assert_file_size): Move up, remove filename parameter.
4343 (write_gdbindex_1): New function.
4344 (write_debug_names): Change return type to void, call
4345 assert_file_size.
4346 (struct index_wip_file): New struct.
4347 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4348 file logic to index_wip_file. Write index for dwz file if
4349 needed.
4350 (save_gdb_index_command): Pass basename of dwz file, if present.
4351 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4352 build-id of dwz file, if present.
4353 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4354 (dwarf2_get_dwz_file): Likewise.
4355 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4356 (dwarf2_get_dwz_file): Likewise.
4357
395f9c91
TT
43582019-06-16 Tom Tromey <tom@tromey.com>
4359
4360 * coffread.c (process_coff_symbol): Use xstrdup.
4361 * value.c (create_internalvar): Use xstrdup.
4362
cafb3438
TT
43632019-06-16 Tom Tromey <tom@tromey.com>
4364
4365 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4366 * breakpoint.c (stopin_command, stopat_command)
4367 (until_break_command, decode_location_default): Remove unnecessary
4368 cast.
4369 * utils.c (subset_compare): Remove unnecessary cast.
4370 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4371 cast.
4372 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4373 cast.
4374 * infcmd.c (path_command): Remove unnecessary cast.
4375 * coffread.c (decode_type): Remove unnecessary cast.
4376 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4377 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4378 * tui/tui-stack.c (tui_show_locator_content)
4379 (tui_show_frame_info): Remove unnecessary cast.
4380 * tui/tui-win.c (tui_scroll_forward_command)
4381 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4382 (parse_scrolling_args): Remove unnecessary cast.
4383 * tui/tui-data.c (init_win_info, tui_del_window)
4384 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4385 (free_content_elements): Remove unnecessary cast.
4386 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4387 unnecessary cast.
4388 * tui/tui-source.c (tui_set_source_content)
4389 (tui_vertical_source_scroll): Remove unnecessary cast.
4390 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4391 cast.
4392 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4393 * tui/tui-regs.c (tui_display_registers_from)
4394 (tui_display_register): Remove unnecessary cast.
4395 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4396 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4397 (make_visible): Remove unnecessary cast.
4398 * tui/tui-winsource.c (tui_erase_source_content)
4399 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4400 unnecessary cast.
4401 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4402 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4403 * stabsread.c (read_type, read_array_type, read_range_type):
4404 Remove unnecessary cast.
4405 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4406 (parse_symbol, parse_type, upgrade_type, parse_external)
4407 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4408 unnecessary cast.
4409 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4410
730ead81
TT
44112019-06-16 Tom Tromey <tom@tromey.com>
4412
4413 * tui/tui-data.c (tui_alloc_generic_win_info)
4414 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4415 checks.
4416
584a927c
AB
44172019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4418 Andrew Burgess <andrew.burgess@embecosm.com>
4419
4420 * f-typeprint.c (f_print_type): Don't return early for not
4421 associated or not allocated types.
4422 (f_type_print_varspec_suffix): Add print_rank parameter and print
4423 ranks of array types in case they dangling.
4424 (f_type_print_base): Add print_rank parameter.
4425
30056ea0
AB
44262019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4427
4428 * NEWS: Mention new MI commands.
4429 * break-catch-throw.c (enum exception_event_kind): Move to
4430 breakpoint.h.
4431 (print_mention_exception_catchpoint): Output text as a single
4432 message.
4433 (catch_exception_command_1): Rename to...
4434 (catch_exception_event): ...this, make non-static, update header
4435 command, and change some parameter types.
4436 (catch_catch_command): Update for changes to
4437 catch_exception_command_1.
4438 (catch_throw_command): Likewise.
4439 (catch_rethrow_command): Likewise.
4440 * breakpoint.c (enum exception_event_kind): Delete.
4441 * breakpoint.h (enum exception_event_kind): Moved here from
4442 break-catch-throw.c.
4443 (catch_exception_event): Declare.
4444 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4445 (mi_cmd_catch_throw): New function.
4446 (mi_cmd_catch_rethrow): New function.
4447 (mi_cmd_catch_catch): New function.
4448 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4449 'catch-catch' entries.
4450 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4451 (mi_cmd_catch_rethrow): Declare.
4452 (mi_cmd_catch_catch): Declare.
4453
ec8e2b6d
AB
44542019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4455
4456 * annotate.c (annotate_source_line): Change return type to void,
4457 update implementation to match.
4458 * annotate.h (annotate_source_line): Change return type to void,
4459 update header comment.
4460 * stack.c (print_frame_info): Don't change what frame information
4461 is printed based on whether annotations are on or not.
4462
0d3abd8c
AB
44632019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4466 (annotate_source): Make static.
4467 (annotate_source_line): Moved from source.c and renamed from
4468 identify_source_line. Update the return type.
4469 * annotate.h (annotate_source): Delete declaration.
4470 (annotate_source_line): Declaration moved from source.h, and
4471 renamed from identify_source_line. Return type updated.
4472 * source.c (identify_source_line): Moved to annotate.c and renamed
4473 to annotate_source_line.
4474 (info_line_command): Remove check of annotation_level.
4475 * source.h (identify_source_line): Move declaration to annotate.h
4476 and rename to annotate_source_line.
4477 * stack.c: Add 'annotate.h' include.
4478 (print_frame_info): Remove check of annotation_level before
4479 calling annotate_source_line.
4480
00df30ae
AB
44812019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4482
4483 * source-cache.c (source_cache::get_plain_source_lines): Use
4484 open_source_file_with_line_charpos instead of just
4485 open_source_file, remove call to find_source_lines.
4486 (source_cache::get_source_lines): Likewise.
4487 * source.c (find_source_lines): Make static.
4488 (get_filename_and_charpos): Renamed into...
4489 (open_source_file_with_line_charpos): ..this along with changes to
4490 return a scoped_fd, and some other minor clean ups.
4491 (identify_source_line): Use open_source_file_with_line_charpos.
4492 (search_command_helper): Use open_source_file_with_line_charpos
4493 instead of just open_source_file, remove call to
4494 find_source_lines.
4495 * source.h (open_source_file_with_line_charpos): Declare new
4496 function.
4497 (find_source_lines): Delete declaration.
4498
afda45a2
AB
44992019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4500
4501 * source.c (get_filename_and_charpos): Remove fullname
4502 parameter.
4503 (identify_source_line): Update call to get_filename_and_charpos.
4504
0735b091
TT
45052019-06-14 Tom Tromey <tromey@adacore.com>
4506
4507 PR gdb/24502:
4508 * ui-style.h (skip_ansi_escape): Update comment.
4509 * ui-file.h (class no_terminal_escape_file): New class.
4510 * ui-file.c (no_terminal_escape_file::write)
4511 (no_terminal_escape_file::puts): New methods.
4512 * cli/cli-logging.c (handle_redirections): Use
4513 no_terminal_escape_file.
4514
52ce35e2
TT
45152019-06-14 Tom Tromey <tromey@adacore.com>
4516
4517 * NEWS: Move convenience variable news above Python news.
4518
73cc7272
TT
45192019-06-14 Tom Tromey <tom@tromey.com>
4520
4521 * gnulib: Move directory to top-level.
4522 * configure.ac: Don't configure gnulib.
4523 * configure: Rebuild.
4524 * common/common-defs.h: Use new path to gnulib.
4525 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4526 (GNULIB_H): Remove.
4527 (INCGNU): Look in new gnulib location.
4528 (HFILES_NO_SRCDIR): Remove gnulib files.
4529 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4530 (generated_files): Remove GNULIB_H.
4531 ($(LIBGNU), all-lib): Remove targets.
4532 (distclean): Don't mention GNULIB_BUILDDIR.
4533 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4534
f5686554
TT
45352019-06-14 Tom Tromey <tromey@adacore.com>
4536
4537 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4538 Warn if symbol file does not provide any symbols.
4539
a0c1ffed
TT
45402019-06-14 Tom Tromey <tromey@adacore.com>
4541
4542 * source.c (find_and_open_source): Respect basenames_may_differ.
4543
7c39e397
AB
45442019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4545
4546 * annotate.c (annotate_breakpoints_invalid): Make use of
4547 scoped_restore_terminal_state.
4548 (annotate_frames_invalid): Likewise.
4549
f411722c
TT
45502019-06-14 Tom Tromey <tromey@adacore.com>
4551
4552 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4553 allow assignment to an internalvar.
4554
4268ec18
TT
45552019-06-14 Tom Tromey <tromey@adacore.com>
4556
4557 * ada-lex.l: Allow "_" in attribute names.
4558
abdb711e
TT
45592019-06-14 Tom Tromey <tromey@adacore.com>
4560
4561 PR gdb/24653:
4562 * regcache.c (registers_changed): Don't call alloca.
4563 * top.c (execute_command): Don't call alloca.
4564
4c048731
PA
45652019-06-13 Pedro Alves <palves@redhat.com>
4566
4567 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4568 'expression'. When parsing an expression, error out if there's
4569 junk after "unlimited".
4570 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4571 (do_set_command): Adjust calls to is_unlimited_literal.
4572
66eb1ed3
PA
45732019-06-13 Pedro Alves <palves@redhat.com>
4574
4575 * compile/compile.c (make_compile_options_def_group): Add braces
4576 around array_view initializer.
4577 * thread.c (make_thread_apply_all_options_def_group)
4578 (make_thread_apply_all_options_def_group): Likewise.
4579
3345721a
PA
45802019-06-13 Pedro Alves <palves@redhat.com>
4581
4582 * NEWS (New commands): Mention "maint test-options
4583 require-delimiter", "maint test-options unknown-is-error", "maint
4584 test-options unknown-is-operand" and "maint show
4585 test-options-completion-result".
4586 (New command options, command completion): New section.
4587 (Completion improvements): New section.
4588 Mention that you can abbreviate "unlimited".
4589
6206060d
PA
45902019-06-13 Pedro Alves <palves@redhat.com>
4591
4592 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4593 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4594 * unittests/cli-utils-selftests.c (test_parse_flags)
4595 (test_parse_flags_qcs): Delete.
4596 (test_cli_utils): Don't call deleted functions.
4597
6665660a
PA
45982019-06-13 Pedro Alves <palves@redhat.com>
4599
4600 * thread.c: Include "cli/cli-option.h".
4601 (tp_array_compar_ascending): Global.
4602 (tp_array_compar): Delete function.
4603 (tp_array_compar_ascending, tp_array_compar_descending): New
4604 functions.
4605 (ascending_option_def, qcs_flag_option_def)
4606 (thr_qcs_flags_option_defs)
4607 (make_thread_apply_all_options_def_group)
4608 (make_thread_apply_options_def_group): New.
4609 (thread_apply_all_command): Use gdb::option::process_options.
4610 (thread_apply_command_completer)
4611 (thread_apply_all_command_completer): New.
4612 (thread_apply_command): Use gdb::option::process_options.
4613 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4614 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4615 to generate help text of "thread apply". Adjust "taas"'s help.
4616 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4617 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4618
f7e13587
PA
46192019-06-13 Pedro Alves <palves@redhat.com>
4620
4621 * thread.c (thread_apply_command): Check for invalid TID with
4622 isdigit instead of !isalpha.
4623
5d707134
PA
46242019-06-13 Pedro Alves <palves@redhat.com>
4625
4626 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4627 (validate_flags_qcs): New.
4628 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4629 (validate_flags_qcs): Declare.
4630 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4631 (make_frame_apply_options_def_group): New.
4632 (frame_apply_command_count): Process options with
4633 gdb::option::process_options.
4634 (frame_apply_completer): New.
4635 (frame_apply_level_completer, frame_apply_all_completer)
4636 (frame_apply_completer): New.
4637 (_initialize_stack): Update help of "frame apply", "frame apply
4638 level", "frame apply all" and "faas" to mention supported options
4639 and install command completers.
4640 * stack.h (frame_apply_all_completer): Declare.
4641 * thread.c: Include "stack.h".
4642 (tfaas_command): Add "--".
4643 (_initialize_thread): Update help "tfaas" to mention supported
4644 options and install command completer.
4645
272d4594
PA
46462019-06-13 Pedro Alves <palves@redhat.com>
4647
4648 * completer.c (complete_nested_command_line): New.
4649 (gdb_completion_word_break_characters_throw): Add assertion.
4650 * completer.h (complete_nested_command_line): Declare.
4651
90a1ef87
PA
46522019-06-13 Pedro Alves <palves@redhat.com>
4653
4654 * stack.c (parse_backtrace_qualifiers): New.
4655 (backtrace_command): Use it.
4656 (backtrace_command_completer): Complete on qualifiers.
4657
d4c16835
PA
46582019-06-13 Pedro Alves <palves@redhat.com>
4659
4660 * frame.c: Include "cli/cli-option.h.
4661 (user_set_backtrace_options): New.
4662 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4663 Delete.
4664 (get_prev_frame): Adjust.
4665 (boolean_option_def, uinteger_option_def)
4666 (set_backtrace_option_defs): New.
4667 (_initialize_frame): Adjust and use
4668 gdb::option::add_setshow_cmds_for_options to install "set
4669 backtrace past-main" and "set backtrace past-entry".
4670 * frame.h: Include "cli/cli-option.h".
4671 (struct frame_print_options): Forward declare.
4672 (print_frame_arguments_all, print_frame_arguments_scalars)
4673 (print_frame_arguments_none): Declare.
4674 (print_entry_values): Delete declaration.
4675 (struct frame_print_options, user_frame_print_options): New.
4676 (struct set_backtrace_options): New.
4677 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4678 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4679 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4680 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4681 (list_args_or_locals): Add frame_print_options parameter.
4682 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4683 * python/py-framefilter.c (enumerate_args): Pass down
4684 USER_FRAME_PRINT_OPTIONS.
4685 * stack.c: Include "cli/cli-option.h".
4686 (print_frame_arguments_all, print_frame_arguments_scalars)
4687 (print_frame_arguments_none): Declare.
4688 (print_raw_frame_arguments, print_entry_values): Delete.
4689 (user_frame_print_options): New.
4690 (boolean_option_def, enum_option_def, frame_print_option_defs):
4691 New.
4692 (struct backtrace_cmd_options): New.
4693 (bt_flag_option_def): New.
4694 (backtrace_command_option_defs): New.
4695 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4696 (print_frame_arg, read_frame_arg, print_frame_args)
4697 (print_frame_info, print_frame): Add frame_print_options parameter
4698 and use it.
4699 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4700 (backtrace_command_1): Add frame_print_options and
4701 backtrace_cmd_options parameters and use them.
4702 (make_backtrace_options_def_group): New.
4703 (backtrace_command): Process command options with
4704 gdb::option::process_options.
4705 (backtrace_command_completer): New.
4706 (_initialize_stack): Extend "backtrace"'s help to mention
4707 supported options. Install completer for "backtrace".
4708 Install some settings commands with add_setshow_cmds_for_options.
4709
2daf894e
PA
47102019-06-13 Pedro Alves <palves@redhat.com>
4711
4712 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4713 and that "set/show print raw frame-arguments" are now deprecated.
4714
4715 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4716 command.
4717 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4718 * stack.c (_initialize_stack): Install "set/show print
4719 raw-frame-arguments", and deprecate "set/show print raw
4720 frame-arguments".
4721 * valprint.c (_initialize_valprint): Deprecate "set/show print
4722 raw".
4723
e6ed716c
PA
47242019-06-13 Pedro Alves <palves@redhat.com>
4725
4726 * compile/compile.c (struct compile_options): New.
4727 (compile_flag_option_def, compile_command_option_defs)
4728 (make_compile_options_def_group): New.
4729 (compile_file_command): Handle options with
4730 gdb::option::process_options.
4731 (compile_file_command_completer): New function.
4732 (compile_code_command): Handle options with
4733 gdb::option::process_options.
4734 (compile_code_command_completer): New function.
4735 (_initialize_compiler): Install completers for "compile code" and
4736 "compile file". Mention available options in "compile code" and
4737 "compile code"'s help.
4738 * completer.c (advance_to_completion_word): New, factored out from
4739 ...
4740 (advance_to_expression_complete_word_point): ... this.
4741 (advance_to_filename_complete_word_point): New.
4742 * completer.h (advance_to_filename_complete_word_point): New
4743 declaration.
4744
7d8062de
PA
47452019-06-13 Pedro Alves <palves@redhat.com>
4746
4747 * compile/compile.c: Include "cli/cli-option.h".
4748 (compile_print_value): Scope data pointer is now a
4749 value_print_options pointer; adjust.
4750 (compile_print_command): Process options. Scope data pointer is
4751 now a value_print_options pointer; adjust.
4752 (_initialize_compile): Update "compile print"'s help to include
4753 supported options. Install a completer for "compile print".
4754 * cp-valprint.c (show_vtblprint, show_objectprint)
4755 (show_static_field_print): Delete.
4756 (_initialize_cp_valprint): Don't install "set print
4757 static-members", "set print vtbl", "set print object" here.
4758 * printcmd.c: Include "cli/cli-option.h" and
4759 "common/gdb_optional.h".
4760 (print_command_parse_format): Rework to fill in a
4761 value_print_options instead of a format_data.
4762 (print_value): Change parameter type from format_data pointer to
4763 value_print_options reference. Adjust.
4764 (print_command_1): Process options. Adjust to pass down a
4765 value_print_options.
4766 (print_command_completer): New.
4767 (_initialize_printcmd): Install print_command_completer as
4768 handle_brkchars completer for the "print" command. Update
4769 "print"'s help to include supported options.
4770 * valprint.c: Include "cli/cli-option.h".
4771 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4772 here from cp-valprint.c.
4773 (boolean_option_def, uinteger_option_def)
4774 (value_print_option_defs, make_value_print_options_def_group):
4775 New. Use gdb::option::add_setshow_cmds_for_options to install
4776 "set print elements", "set print null-stop", "set print repeats",
4777 "set print pretty", "set print union", "set print array", "set
4778 print address", "set print symbol", "set print array-indexes".
4779 * valprint.h: Include <string> and "cli/cli-option.h".
4780 (make_value_print_options_def_group): Declare.
4781 (print_value): Change parameter type from format_data pointer to
4782 value_print_options reference.
4783 (print_command_completer): Declare.
4784
9d0faba9
PA
47852019-06-13 Pedro Alves <palves@redhat.com>
4786
4787 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4788 (COMMON_SFILES): Add maint-test-settings.c.
4789 * cli/cli-decode.c (boolean_enums): New global, factored out from
4790 ...
4791 (add_setshow_boolean_cmd): ... here.
4792 * cli/cli-decode.h (boolean_enums): Declare.
4793 * cli/cli-option.c: New file.
4794 * cli/cli-option.h: New file.
4795 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4796 factored out from ...
4797 (parse_cli_boolean_value(const char *)): ... this.
4798 (is_unlimited_literal): Change parameter type to pointer to
4799 pointer. Adjust and advance ARG pointer.
4800 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4801 (parse_cli_var_enum): New, factored out from ...
4802 (do_set_command): ... this. Adjust.
4803 * cli/cli-setshow.h (parse_cli_boolean_value)
4804 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4805 (parse_cli_var_enum): Declare.
4806 * cli/cli-utils.c: Include "cli/cli-option.h".
4807 (get_ulongest): New.
4808 * cli/cli-utils.h (get_ulongest): Declare.
4809 (check_for_argument): New overloads.
4810 * maint-test-options.c: New file.
4811
2c722807
PA
48122019-06-13 Pedro Alves <palves@redhat.com>
4813
4814 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4815 parse a range if "-" is at the end of the string.
4816
dee7b4c8
PA
48172019-06-13 Pedro Alves <palves@redhat.com>
4818
4819 * cli/cli-setshow.c (parse_auto_binary_operation)
4820 (parse_cli_boolean_value): Don't allow "o".
4821
dca0f6c0
PA
48222019-06-13 Pedro Alves <palves@redhat.com>
4823
4824 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4825 * NEWS: Mention maint test-settings KIND.
4826 * maint-test-settings.c: New file.
4827
597bf39d
PA
48282019-06-13 Pedro Alves <palves@redhat.com>
4829
4830 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4831 completer.
4832 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4833 "set" completers.
4834
48c410fb
PA
48352019-06-13 Pedro Alves <palves@redhat.com>
4836
4837 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4838 after item.
4839
93bcb043
PA
48402019-06-13 Pedro Alves <palves@redhat.com>
4841
4842 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4843
cbba3ecd
PA
48442019-06-13 Pedro Alves <palves@redhat.com>
4845
4846 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4847 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4848 call.
4849 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4850 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4851 calls.
4852 (check_for_argument): Skip spaces after argument.
4853
b9a3f842
PA
48542019-06-13 Pedro Alves <palves@redhat.com>
4855
4856 * thread.c (thread_apply_command): Adjust TID parsing.
4857 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4858 detected before end of string.
4859 (tid_is_in_list): Error out if LIST is invalid.
4860
3844e605
PA
48612019-06-13 Pedro Alves <palves@redhat.com>
4862
4863 * completer.c (complete_line_internal_1): Rewind completion word
4864 point.
4865 (completion_tracker::advance_custom_word_point_by): Change
4866 parameter type to int.
4867 * completer.h (completion_tracker::advance_custom_word_point_by):
4868 Likewise.
4869
00b56dbe
PA
48702019-06-13 Pedro Alves <palves@redhat.com>
4871
4872 * completer.c (advance_to_completion_word): Handle delimiters.
4873
d106773e
PA
48742019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4875
4876 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4877
08f10e02
TT
48782019-06-11 Tom Tromey <tom@tromey.com>
4879
4880 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4881 (xmalloc_failed): Move to alloc.c.
4882 * alloc.c: New file.
4883 * Makefile.in (COMMON_SFILES): Add alloc.c.
4884
1c7fe951
TT
48852019-06-11 Tom Tromey <tom@tromey.com>
4886
4887 * nat/linux-waitpid.c: Don't include server.h.
4888 (linux_debug): Remove.
4889 (my_waitpid): Update.
4890
89549d7f
TT
48912019-06-11 Tom Tromey <tromey@adacore.com>
4892
4893 * infcall.c (_initialize_infcall): Remove trailing newline from
4894 help.
4895 * user-regs.c (_initialize_user_regs): Remove trailing newline
4896 from help.
4897 * typeprint.c (_initialize_typeprint): Remove trailing newline
4898 from help.
4899 * reverse.c (_initialize_reverse): Remove trailing newlines from
4900 help.
4901 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4902 from help.
4903 * language.c (add_set_language_command): Remove trailing newline
4904 from help.
4905 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4906 help.
4907 * disasm.c (_initialize_disasm): Remove trailing newline from
4908 help.
4909 * top.c (init_main): Remove trailing newline from help.
4910 * interps.c (_initialize_interpreter): Remove trailing newline
4911 from help.
4912 * btrace.c (_initialize_btrace): Remove trailing newlines from
4913 help.
4914 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4915 from help.
4916 * python/python.c (_initialize_python): Remove trailing newline
4917 from help.
4918 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4919 help.
4920 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4921 from help. Reformat some text.
4922 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4923 from help.
4924 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4925 newline from help.
4926
86108c13
TT
49272019-06-11 Tom Tromey <tromey@adacore.com>
4928
4929 * darwin-nat.c (darwin_decode_exception_message)
4930 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4931
a7067863
AB
49322019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * valops.c (value_slice): Check for not allocated or not
4935 associated values.
4936
9ab08412
TV
49372019-06-10 Tom de Vries <tdevries@suse.de>
4938
4939 PR gdb/24618
4940 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4941 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4942 invalid.
4943
f19e22e9
TV
49442019-06-10 Tom de Vries <tdevries@suse.de>
4945
4946 PR gdb/24611
4947 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4948 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4949
e99f9db0
TV
49502019-06-10 Tom de Vries <tdevries@suse.de>
4951
4952 PR symtab/24545
4953 * symtab.c (struct demangled_name_entry): Add language field.
4954 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4955 static minimal symbol". Set and use language field.
4956
9bf7038b
TT
49572019-06-10 Tom Tromey <tromey@adacore.com>
4958
4959 * ada-lang.c (_initialize_ada_language): Update help text.
4960
422186a9
TT
49612019-06-10 Tom Tromey <tromey@adacore.com>
4962
4963 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4964 with a newline.
4965 * guile/guile.c (handle_boot_error): Don't end warning with a
4966 newline.
4967 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4968 warning with a newline.
4969 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4970 newline.
4971 (s12z_frame_cache): Likewise.
4972 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4973 a newline.
4974 * solib-svr4.c (disable_probes_interface): Don't end warning with
4975 a newline.
4976 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4977 newline.
4978 * python/python.c (do_finish_initialization): Don't end warning
4979 with a newline.
4980
25ce02ee
TT
49812019-06-10 Tom Tromey <tom@tromey.com>
4982
4983 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4984 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4985 gdbpy_enter.
4986
caa429d8
TT
49872019-06-10 Tom Tromey <tromey@adacore.com>
4988
4989 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4990 data.
4991 (elf_new_init): Don't call stabsread_new_init.
4992 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4993 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4994 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4995
81873cc8
TV
49962019-06-10 Tom de Vries <tdevries@suse.de>
4997
4998 PR symtab/16264
4999 PR symtab/24517
5000 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5001
4fa0265e
РИ
50022019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5003
5004 * source.c (find_and_open_source): Also rewrite relative file
5005 names.
5006
1a3da2cd
AB
50072019-04-26 Amos Bird <amosbird@gmail.com>
5008
5009 * annotate.c (annotate_thread_exited): Add "thread-exited"
5010 annotation.
5011
3847a7bf
TT
50122019-06-06 Tom Tromey <tromey@adacore.com>
5013
5014 * maint.h (class scoped_command_stats): Use
5015 DISABLE_COPY_AND_ASSIGN.
5016 <print_time>: New method.
5017 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5018 print_time.
5019 (scoped_command_stats::print_time): New method.
5020
312617a3
AB
50212019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5024 instructions of lengths 6 or 8 bytes.
5025
b02f78f9
PA
50262019-06-04 Pedro Alves <palves@redhat.com>
5027
5028 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5029
5030 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5031 * breakpoint.c (condition_completer): Likewise.
5032 * cli/cli-dump.c (scan_expression): Likewise.
5033 * common/filestuff.c (mkdir_recursive): Likewise.
5034 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5035 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5036 (gdb_abspath): Likewise.
5037 * compile/compile-cplus-types.c
5038 (compile_cplus_instance::decl_name): Likewise.
5039 * completer.c (complete_explicit_location):
5040 (signal_completer, reg_or_group_completer_1): Likewise.
5041 * cp-support.c (cp_remove_params_if_any): Likewise.
5042 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5043 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5044 * infcmd.c (strip_bg_char): Likewise.
5045 * linespec.c (copy_token_string): Likewise.
5046 * mi/mi-main.c (output_cores): Likewise.
5047 * psymtab.c (psymtab_search_name):
5048 * symfile.c (test_set_ext_lang_command): Likewise.
5049 * target.c (target_fileio_read_stralloc): Likewise.
5050 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5051 * value.c (complete_internalvar): Likewise.
5052
e1f2e1a2
CB
50532019-06-04 Christian Biesinger <cbiesinger@google.com>
5054
5055 Add objfile property to gdb.Type.
d3238f7d
PA
5056 * NEWS: Mention Python API addition.
5057 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5058
e664d728
PW
50592019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5060
5061 * NEWS: Mention the new set|show style [title|highlight].
5062 Mention changes to "show style", "help" and "apropos".
5063
66d8c862
PW
50642019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5065
5066 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5067 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5068 instead of print_help_for_command.
5069 (print_doc_of_command): New function.
5070 (help_list): Add 'apropos -v word' suggestion.
5071 (print_help_for_command): Style the command name using title style.
5072 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5073 (_initialize_cli_cmds): Describe -v in apropos_command help.
5074
9303eb2f
PW
50752019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5076
5077 * cli/cli-style.h (cli_style_option): Add name in constructor,
5078 add m_name class member, add constructor with intensity,
5079 add name class function.
5080 (cli_style_option::add_setshow_commands): Remove name argument.
5081 (highlight_style, title_style): New styles.
5082 * cli/cli-style.c (do_show): New function that shows a style
5083 characteristic styling the style name with itself.
5084 (set_style_name): New function.
5085 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5086 Update all callers according to the changes in cli/cli-style.h.
5087 * utils.h (fputs_highlighted): New function.
5088 * utils.c (fputs_highlighted): Likewise.
5089
e2c52041
PW
50902019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5091
5092 * NEWS: Mention new pipe command and new convenience variables.
5093
947d3946
PW
50942019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5095
5096 * cli/cli-cmds.c (pipe_command): New function.
5097 (_initialize_cli_cmds): Call add_com for pipe_command.
5098 Define | as an alias for pipe.
5099 (exit_status_set_internal_vars): New function.
5100 (shell_escape): Call exit_status_set_internal_vars.
5101 cli/cli-decode.c (find_command_name_length): Recognize | as
5102 a single character command.
5103
b8fd0918
PW
51042019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5105
5106 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5107 top.c (execute_command_to_ui_file): New function, mostly a copy
5108 of execute_command_to_string.
5109 (execute_command_to_string): Implement by calling
5110 execute_command_to_ui_file.
5111
68bb5386
PW
51122019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5113
5114 * top.h (saved_command_line): Remove declaration.
5115 * top.c (previous_saved_command_line, previous_repeat_arguments):
5116 New variables.
5117 (saved_command_line): Make static, define together with other
5118 'repeat variables'.
5119 (dont_repeat): Clear repeat_arguments.
5120 (repeat_previous, get_saved_command_line, save_command_line):
5121 New functions.
5122 (gdb_init): Initialize saved_command_line
5123 and previous_saved_command_line.
5124 * main.c (captured_main_1): Remove saved_command_line initialization.
5125 * event-top.c (handle_line_of_input): Update to use
5126 the new 'repeat' related functions instead of direct access to
5127 saved_command_line.
5128 * command.h (repeat_previous, get_saved_command_line,
5129 save_command_line): New declarations.
5130 (dont_repeat): Add comment.
5131
bfcdb852
TT
51322019-05-30 Tom Tromey <tromey@adacore.com>
5133
5134 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5135 Fix comment.
5136 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5137
0ef209f2
JV
51382019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5139
5140 PR cli/24587
5141 * completer.c (complete): Initialize variable word.
5142
955b06fa
SDJ
51432019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5144
5145 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5146 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5147 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5148 'body' is NULL to the outter 'if', protecting the '!is_define'
5149 situation as well.
5150
fa9c3fa0
TT
51512019-05-29 Tom Tromey <tromey@adacore.com>
5152
5153 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5154 (dwarf_unknown): New function.
5155 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5156 (dwarf_type_encoding_name): Use dwarf_unknown.
5157
4330d61d
TT
51582019-05-29 Tom Tromey <tromey@adacore.com>
5159
5160 PR c++/20020:
5161 * cp-valprint.c (cp_print_value_fields): Call
5162 cp_print_static_field inside "try".
5163
33a6bc35
TT
51642019-05-29 Tom Tromey <tromey@adacore.com>
5165
5166 * inflow.c (struct terminal_info): Add default operator=.
5167 * configure: Rebuild.
5168 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5169 -Wdeprecated-copy-dtor, -Wredundant-move.
5170
000439d5
TT
51712019-05-29 Tom Tromey <tromey@adacore.com>
5172
5173 * NEWS: Add entry.
5174 * infcmd.c (print_return_value_1): Handle finish_print
5175 option.
5176 (show_print_finish): New function.
5177 (_initialize_infcmd): Add "set/show print finish" commands.
5178 * valprint.c (user_print_options): Initialize new member.
5179 * valprint.h (struct value_print_options) <finish_print>: New
5180 member.
5181
c0e70c62
TT
51822019-05-28 Tom Tromey <tromey@adacore.com>
5183
5184 * ada-lang.c (ada_remove_Xbn_suffix)
5185 (find_old_style_renaming_symbol)
5186 (parse_old_style_renaming): Remove.
5187 (ada_find_renaming_symbol): Don't call
5188 find_old_style_renaming_symbol.
5189 (ada_is_renaming_symbol): Rename from
5190 ada_find_renaming_symbol. Remove "block" parameter. Return
5191 bool. Now static.
5192 (ada_read_var_value): Update and simplify.
5193 * ada-exp.y (write_var_or_type): Remove old code.
5194
766f8836
AH
51952019-05-28 Alan Hayward <alan.hayward@arm.com>
5196
5197 * event-top.c: Remove include comment.
5198 * inflow.c (class scoped_ignore_sigttou): Move from here...
5199 * inflow.h (class scoped_ignore_sigttou): ...to here.
5200 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5201 * top.c: Remove include comment.
5202
eb41253a
TT
52032019-05-27 Tom Tromey <tom@tromey.com>
5204
5205 * NEWS: Fix typo.
5206
4ca51187
TT
52072019-05-22 Tom Tromey <tromey@adacore.com>
5208
5209 * target.c (target_follow_exec): Constify parameter.
5210 * target-delegates.c: Rebuild.
5211 * remote.c (remote_target::follow_exec): Constify parameter.
5212 * infrun.c (follow_exec): Constify parameter.
5213 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5214 (target_follow_exec): Likewise.
5215
8fca4da0
AH
52162019-05-22 Alan Hayward <alan.hayward@arm.com>
5217
5218 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5219 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5220
b7060614
AH
52212019-05-22 Alan Hayward <alan.hayward@arm.com>
5222
5223 * NEWS: Add debugredirect and testsuite sections.
5224
0a5954bd
SC
52252019-05-22 Simon Cook <simon.cook@embecosm.com>
5226
5227 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5228 target descriptions using exclusively floating point register name
5229 aliases.
5230
dc42e902
AB
52312019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 PR gdb/18644:
5234 * f-lang.c (build_fortran_types): Handle the case where
5235 gdbarch_floatformat_for_type returns a nullptr.
5236
fb7806c7
TV
52372019-05-21 Tom de Vries <tdevries@suse.de>
5238
5239 PR cli/24587
5240 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5241
34d11c68
AB
52422019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5243
5244 PR gdb/18644:
5245 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5246 16-byte floats.
5247 * i386-tdep.c (i386_floatformat_for_type): Use
5248 floatformats_ia64_quad for the 16-byte floating point component
5249 within a fortran 32-byte complex number.
5250
122cf0f2
AB
52512019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5254 delete default constructor.
5255 (find_partial_die): Update to return const struct.
5256 (partial_die_parent_scope): Move variable declaration into scope
5257 of its use and change its type to auto.
5258 (guess_partial_die_structure_name): Likewise.
5259 (partial_die_info::fixup): Likewise.
5260
33d0e35a
TT
52612019-05-17 Tom Tromey <tromey@adacore.com>
5262
5263 * source.c (find_and_open_source): Remove cast.
5264
a45575b0
TT
52652019-05-17 Tom Tromey <tromey@adacore.com>
5266
5267 * annotate.c (annotate_source): Make "filename" const.
5268 * annotate.h (annotate_source): Use const.
5269
81f47ac2
AH
52702019-05-17 Alan Hayward <alan.hayward@arm.com>
5271
5272 * disasm.c (set_disassembler_options): Send errors to stderr.
5273
ca1285d1
AH
52742019-05-17 Alan Hayward <alan.hayward@arm.com>
5275
5276 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5277 (cli_interp_base::set_logging): Check debug_redirect.
5278 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5279 * cli/cli-logging.c (debug_redirect): Add static variable.
5280 (pop_output_files): Add default param.
5281 (handle_redirections): Print debug setting.
5282 (show_logging_command): Likewise.
5283 (_initialize_cli_logging): Add debugredirect command.
5284 * interps.c (current_interp_set_logging): Add debug_redirect
5285 parameter.
5286 * interps.h (set_logging): Add debug_redirect parameter.
5287 (current_interp_set_logging): Likewise.
5288 * mi/mi-common.h: Likewise.
5289 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5290
52912019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5292 Tom Tromey <tromey@adacore.com>
5293
5294 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5295 directly.
5296 * cli/cli-interp.h (make_logging_output): Remove declaration.
5297 * cli/cli-logging.c (make_logging_output): Remove function.
5298 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5299 directly.
5300 * ui-file.c (tee_file::tee_file): Remove bools.
5301 (tee_file::~tee_file): Remove deletes.
5302 * ui-file.h (tee_file): Remove bools.
5303
26648588
JV
53042019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5305
5306 * mi/mi-cmds.h (mi_cmd_complete): New function.
5307 * mi/mi-main.c (mi_cmd_complete): Likewise.
5308 * mi/mi-cmds.c: Define new MI command -complete.
5309 * NEWS: Mention new -complete command.
5310
6e035501
JV
53112019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5312
5313 * completer.h (complete): New function.
5314 * completer.c (complete): Likewise.
5315 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5316 function defined in completer.h.
5317
7d0e2ece
JV
53182019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5319
e79be6e5 5320 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5321
fb816e8b
TV
53222019-05-17 Tom de Vries <tdevries@suse.de>
5323
5324 PR gdb/24094
5325 * dwarf2read.c (struct cu_partial_die_info): New struct.
5326 (find_partial_die): Return cu_partial_die_info.
5327 (partial_die_parent_scope, guess_partial_die_structure_name)
5328 (partial_die_info::fixup): Handle new return type of find_partial_die.
5329
677052f2
SDJ
53302019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5331
5332 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5333 "std::string", simplifying the algorithm.
5334
f3da9116
SDJ
53352019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5336
5337 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5338 (stap_static_probe_ops::get_probes): Likewise.
5339
f1bb75ab
SDJ
53402019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5341
5342 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5343 '-')" and "else if".
5344 (stap_parse_single_operand): Join checks for
5345 "gdbarch_stap_parse_special_token_p" and
5346 "gdbarch_stap_parse_special_token" in the same "if" statement.
5347 Invert check when verifying for operation on register
5348 displacement.
5349
3ca58cde
SDJ
53502019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5351
5352 * stap-probe.c (stap_get_opcode): Update comment.
5353 (stap_get_expected_argument_type): Likewise.
5354 (handle_stap_probe): Likewise.
5355
af2d9bee
SDJ
53562019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5357
5358 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5359 return type to 'bool'. Adjust comment. Use 'bool' when
5360 appropriate.
5361 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5362 * stap-probe.c (stap_parse_argument_1): Likewise.
5363 (stap_is_operator): Likewise.
5364 (stap_is_generic_prefix): Likewise.
5365 (stap_is_register_prefix): Likewise.
5366 (stap_is_register_indirection_prefix): Likewise.
5367 (stap_is_integer_prefix): Likewise.
5368 (stap_generic_check_suffix): Likewise.
5369 (stap_check_integer_suffix): Likewise.
5370 (stap_check_register_suffix): Likewise.
5371 (stap_check_register_indirection_suffix): Likewise.
5372 (stap_parse_register_operand): Likewise.
5373 (stap_parse_single_operand): Likewise.
5374 (stap_parse_argument_1): Likewise.
5375 (stap_probe::get_argument_count): Likewise.
5376 (stap_is_operator): Likewise.
5377
61c9c421
TT
53782019-05-16 Tom Tromey <tromey@adacore.com>
5379
5380 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5381 keyword to foreach.
5382
9ddc1af1
SM
53832019-05-15 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * linux-thread-db.c (try_thread_db_load_1): Change return type
5386 to bool.
5387 (try_thread_db_load): Likewise.
5388 (try_thread_db_load_from_pdir_1): Likewise.
5389 (try_thread_db_load_from_pdir): Likewise.
5390 (try_thread_db_load_from_sdir): Likewise.
5391 (try_thread_db_load_from_dir): Likewise.
5392 (thread_db_load_search): Likewise.
5393 (has_libpthread): Likewise.
5394 (thread_db_load): Likewise.
5395
7bede828
SDJ
53962019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5397
5398 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5399 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5400 NULL, and complain/return if that's the case.
5401
c5358db4
JD
54022019-05-15 John Darrington <john@darrington.wattle.id.au>
5403
5404 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5405 (advance, posn, abstract_read_memory): New functions.
5406 [struct mem_read_abstraction]: New struct.
5407 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5408
c408a94f
TT
54092019-05-14 Tom Tromey <tromey@adacore.com>
5410
5411 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5412 value is not lval_memory.
5413
e7bd7fba
TT
54142019-05-14 Tom Tromey <tromey@adacore.com>
5415
5416 * solib.c (info_sharedlibrary_command): Style the file name.
5417
a6d0f249
AH
54182019-05-14 Alan Hayward <alan.hayward@arm.com>
5419
5420 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5421 (aarch64_vnv_type): Likewise.
5422 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5423 * common/tdesc.c: Likewise.
5424 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5425 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5426 * features/aarch64-fpu.xml: Add ieee half view.
5427 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5428 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5429 * gdbtypes.h (struct builtin_type): Likewise.
5430 (struct objfile_type): Likewise.
5431
66b8bb74
SM
54322019-05-12 Paul Naert <paul.naert@polymtl.ca>
5433
5434 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5435 typo.
5436 * location.h (string_to_event_location): Likewise.
5437
21c219fd
JB
54382019-05-11 Joel Brobecker <brobecker@adacore.com>
5439
5440 GDB 8.3 released.
5441
13674803
SM
54422019-05-10 Simon Marchi <simon.marchi@efficios.com>
5443
5444 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5445 New variable declaration.
5446 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5447 New variable.
5448 (print_one_breakpoint): Use ui_out::test_flags and new global
5449 variable to compute use_fixed_output.
5450 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5451 Remove.
5452 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5453 (mi_multi_location_breakpoint_output_fixed): Remove.
5454 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5455 new variable.
5456 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5457 fix_multi_location_breakpoint_output flag if version >= 3.
5458 * ui-out.h (enum ui_out_flag)
5459 <fix_multi_location_breakpoint_output>: New enumerator.
5460
a9eac7f9
SM
54612019-05-10 Simon Marchi <simon.marchi@efficios.com>
5462
5463 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5464
71bed2db
TT
54652019-05-10 Tom Tromey <tromey@adacore.com>
5466
5467 * ada-lang.c (catch_ada_completer): New function.
5468 (_initialize_ada_language): Use it.
5469
24c54127
TT
54702019-05-10 Tom Tromey <tromey@adacore.com>
5471
5472 * thread.c (print_thread_info): Make "requested_threads" const.
5473 * gdbthread.h (print_thread_info): Make "requested_threads"
5474 const.
5475 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5476 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5477
7a102139
TT
54782019-05-08 Tom Tromey <tom@tromey.com>
5479
5480 * gdbtypes.c (objfile_type_data): Change type.
5481 (objfile_type, _initialize_gdbtypes): Update.
5482
924d79e2
TT
54832019-05-08 Tom Tromey <tom@tromey.com>
5484
5485 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5486 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5487 (_initialize_dwarf2_frame): Update.
5488
4c58e337
TT
54892019-05-08 Tom Tromey <tom@tromey.com>
5490
5491 * objc-lang.c (objc_objfile_data): Change type.
5492 (find_methods): Update.
5493 (_initialize_objc_lang): Remove.
5494
d772d2ab
TT
54952019-05-08 Tom Tromey <tom@tromey.com>
5496
5497 * stabsread.c (rs6000_builtin_type_data): Change type.
5498 (rs6000_builtin_type, _initialize_stabsread): Update.
5499
d11d83f4
TT
55002019-05-08 Tom Tromey <tom@tromey.com>
5501
5502 * mips-tdep.c (mips_pdr_data): Remove.
5503 (_initialize_mips_tdep): Update.
5504
9a73f0ad
TT
55052019-05-08 Tom Tromey <tom@tromey.com>
5506
5507 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5508 (hppa_init_objfile_priv_data, read_unwind_info)
5509 (find_unwind_entry, _initialize_hppa_tdep): Update.
5510
8127a2fa
TT
55112019-05-08 Tom Tromey <tom@tromey.com>
5512
5513 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5514 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5515 on obstack.
5516 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5517
91d3055d
TT
55182019-05-08 Tom Tromey <tom@tromey.com>
5519
5520 * mdebugread.c (basic_type_data): Change type.
5521 (basic_type, _initialize_mdebugread): Update.
5522
31930bd3
TT
55232019-05-08 Tom Tromey <tom@tromey.com>
5524
5525 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5526
bdb3ed9e
TT
55272019-05-08 Tom Tromey <tom@tromey.com>
5528
5529 * nto-tdep.c (nto_inferior_data_reg): Change type.
5530 (nto_inferior_data): Update.
5531 (nto_inferior_data_cleanup, nto_new_inferior_data)
5532 (_initialize_nto_tdep): Remove.
5533 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5534
f37b313d
TT
55352019-05-08 Tom Tromey <tom@tromey.com>
5536
5537 * ada-lang.c (struct ada_inferior_data): Add initializers.
5538 (ada_inferior_data): Change type.
5539 (ada_inferior_data_cleanup): Remove.
5540 (get_ada_inferior_data, ada_inferior_exit)
5541 (struct ada_pspace_data): Add initializers, destructor.
5542 (ada_pspace_data_handle): Change type.
5543 (get_ada_pspace_data): Update.
5544 (ada_pspace_data_cleanup): Remove.
5545
24699405
TT
55462019-05-08 Tom Tromey <tom@tromey.com>
5547
5548 * coffread.c (struct coff_symfile_info): Add initializers.
5549 (coff_objfile_data_key): Move lower. Change type.
5550 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5551 Update.
5552 (coff_free_info): Remove.
5553
d4e05d2f
TT
55542019-05-08 Tom Tromey <tom@tromey.com>
5555
5556 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5557 (fbsd_pspace_data_handle): Move lower. Change type.
5558 (get_fbsd_pspace_data): Update.
5559 (fbsd_pspace_data_cleanup): Remove.
5560 (_initialize_fbsd_tdep): Update.
5561
14ef6690
TT
55622019-05-08 Tom Tromey <tom@tromey.com>
5563
5564 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5565 (get_ada_tasks_pspace_data): Update.
5566 (ada_tasks_pspace_data_cleanup): Remove.
5567 (_initialize_tasks): Update.
5568 (ada_tasks_inferior_data_handle): Change type.
5569 (get_ada_tasks_inferior_data): Update.
5570 (ada_tasks_inferior_data_cleanup): Remove.
5571 (struct ada_tasks_pspace_data): Add initializers.
5572
814cf43a
TT
55732019-05-08 Tom Tromey <tom@tromey.com>
5574
5575 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5576 * symfile-debug.c (debug_sym_get_probes): Change type.
5577 * stap-probe.c (handle_stap_probe):
5578 (stap_static_probe_ops::get_probes): Change type.
5579 * probe.h (class static_probe_ops) <get_probes>: Change type.
5580 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5581 (parse_probes_in_pspace): Update.
5582 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5583 Update.
5584 (any_static_probe_ops::get_probes): Change type.
5585 * elfread.c (elfread_data): New typedef.
5586 (probe_key): Change type.
5587 (elf_get_probes): Likewise. Update.
5588 (probe_key_free): Remove.
5589 (_initialize_elfread): Update.
5590 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5591 Change type.
5592 (dtrace_process_dof_probe, dtrace_process_dof)
5593 (dtrace_static_probe_ops::get_probe): Change type.
5594
02dc647e
TT
55952019-05-08 Tom Tromey <tom@tromey.com>
5596
5597 * xcoffread.c (struct xcoff_symfile_info): Rename from
5598 coff_symfile_info. Add initializers.
5599 (xcoff_objfile_data_key): Move lower. Change type.
5600 (XCOFF_DATA): Rewrite.
5601 (xcoff_free_info): Remove.
5602 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5603 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5604 (xcoff_initial_scan): Update.
5605
09232438
TT
56062019-05-08 Tom Tromey <tom@tromey.com>
5607
5608 * solib-svr4.c (struct svr4_info): Add initializers and
5609 destructor.
5610 <probes_table>: Now an htab_up.
5611 (solib_svr4_pspace_data): Change type.
5612 (free_probes_table): Simplify.
5613 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5614 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5615 (probes_table_remove_objfile_probes, register_solib_event_probe)
5616 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5617 (_initialize_svr4_solib): Update.
5618
7b4a314f
TT
56192019-05-08 Tom Tromey <tom@tromey.com>
5620
5621 * remote.c (remote_pspace_data): Change type.
5622 (remote_pspace_data_cleanup): Remove.
5623 (get_remote_exec_file, set_pspace_remote_exec_file)
5624 (_initialize_remote): Update.
5625
51d3063a
TT
56262019-05-08 Tom Tromey <tom@tromey.com>
5627
5628 * breakpoint.c (breakpoint_objfile_key): Change type.
5629 (get_breakpoint_objfile_data): Update.
5630 (free_breakpoint_objfile_data): Remove.
5631 (_initialize_breakpoint): Update.
5632
89fb8848
TT
56332019-05-08 Tom Tromey <tom@tromey.com>
5634
5635 * linux-tdep.c (struct linux_info): Add initializers.
5636 (linux_inferior_data): Move. Change type.
5637 (invalidate_linux_cache_inf): Update.
5638 (linux_inferior_data_cleanup): Remove.
5639 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5640
e9b89e2d
TT
56412019-05-08 Tom Tromey <tom@tromey.com>
5642
5643 * auxv.c (auxv_inferior_data): Move. Change type.
5644 (auxv_inferior_data_cleanup): Remove.
5645 (invalidate_auxv_cache_inf): Rewrite.
5646 (get_auxv_inferior_data, _initialize_auxv): Update.
5647
8c42777c
TT
56482019-05-08 Tom Tromey <tom@tromey.com>
5649
5650 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5651 (symfile_debug_objfile_data_key): Change type.
5652 (symfile_debug_installed, debug_qf_has_symbols)
5653 (debug_qf_find_last_source_symtab)
5654 (debug_qf_forget_cached_source_info)
5655 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5656 (debug_qf_print_stats, debug_qf_dump)
5657 (debug_qf_expand_symtabs_for_function)
5658 (debug_qf_expand_all_symtabs)
5659 (debug_qf_expand_symtabs_with_fullname)
5660 (debug_qf_map_matching_symbols)
5661 (debug_qf_expand_symtabs_matching)
5662 (debug_qf_find_pc_sect_compunit_symtab)
5663 (debug_qf_map_symbol_filenames)
5664 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5665 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5666 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5667 (debug_sym_read_linetable, debug_sym_relocate): Update.
5668 (symfile_debug_free_objfile): Remove.
5669 (install_symfile_debug_logging, _initialize_symfile_debug):
5670 Update.
5671
5bfd760d
TT
56722019-05-08 Tom Tromey <tom@tromey.com>
5673
5674 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5675 allocate_on_obstack.
5676 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5677 (get_dwarf2_per_objfile): Update.
5678 (set_dwarf2_per_objfile): Remove.
5679 (dwarf2_has_info, dwarf2_get_section_info): Update.
5680 (dwarf2_free_objfile): Remove.
5681 (_initialize_dwarf2_read): Update.
5682
e85e19b4
TT
56832019-05-08 Tom Tromey <tom@tromey.com>
5684
5685 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5686 initializers.
5687 <unsupported_script_warning_printed,
5688 script_not_found_warning_printed>: Now bool.
5689 (auto_load_pspace_data): Change type.
5690 (~auto_load_pspace_info): Rename from
5691 auto_load_pspace_data_cleanup.
5692 (get_auto_load_pspace_data, init_loaded_scripts_info)
5693 (clear_section_scripts, maybe_print_unsupported_script_warning)
5694 (maybe_print_script_not_found_warning, _initialize_auto_load):
5695 Update.
5696
f6aa7436
TT
56972019-05-08 Tom Tromey <tom@tromey.com>
5698
5699 * objfiles.c (objfile_pspace_info): Add destructor and
5700 initializers.
5701 (objfiles_pspace_data): Change type.
5702 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5703 (get_objfile_pspace_data): Update.
5704 (objfiles_bfd_data): Change type.
5705 (get_objfile_bfd_data): Update.
5706 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5707
6ae614f6
TT
57082019-05-08 Tom Tromey <tom@tromey.com>
5709
5710 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5711 Change type.
5712 (get_catch_syscall_inferior_data): Update.
5713 (catch_syscall_inferior_data_cleanup): Remove.
5714 (_initialize_break_catch_syscall): Update.
5715
6509b8eb
TT
57162019-05-08 Tom Tromey <tom@tromey.com>
5717
5718 * inflow.c (struct terminal_info): Add destructor and
5719 initializers.
5720 (inflow_inferior_data): Change type.
5721 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5722 (get_inflow_inferior_data, inflow_inferior_exit)
5723 (swap_terminal_info, _initialize_inflow): Update.
5724
35632941
TT
57252019-05-08 Tom Tromey <tom@tromey.com>
5726
5727 * target-dcache.c (target_dcache_cleanup): Remove.
5728 (target_dcache_aspace_key): Change type.
5729 (target_dcache_init_p, target_dcache_invalidate)
5730 (target_dcache_get, target_dcache_get_or_init)
5731 (_initialize_target_dcache): Update.
5732 * dcache.h (struct dcache_deleter): New.
5733
3017b94d
TT
57342019-05-08 Tom Tromey <tom@tromey.com>
5735
5736 * symtab.c (struct symbol_cache): Add destructor and
5737 initializers.
5738 (symbol_cache_key): Move. Change type.
5739 (make_symbol_cache, free_symbol_cache): Remove.
5740 (get_symbol_cache): Update.
5741 (symbol_cache_cleanup): Remove.
5742 (ALL_PSPACES, symbol_cache_flush)
5743 (maintenance_print_symbol_cache)
5744 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5745 Update.
5746
a32ad8c5
TT
57472019-05-08 Tom Tromey <tom@tromey.com>
5748
5749 * symtab.c (struct main_info): Add destructor and initializers.
5750 (main_progspace_key): Move. Change type.
5751 (get_main_info): Update.
5752 (main_info_cleanup): Remove.
5753 (_initialize_symtab): Update.
5754
5f6e90a0
TT
57552019-05-08 Tom Tromey <tom@tromey.com>
5756
5757 * registry.h (DECLARE_REGISTRY): Define the _key class.
5758
1bd0c6e4
AB
57592019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5760
5761 * NEWS: Merge two 'New commands' sections.
5762
2228ef77
XR
57632019-05-08 Joel Brobecker <brobecker@adacore.com>
5764
5765 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5766 parameter and use Ada language definition instead.
5767 (ada_val_print_ptr): Remove unused language parameter.
5768 (ada_val_print_num): Remove language parameter and use Ada language
5769 definition instead.
5770 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5771 parameter.
5772 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5773 parameter and use Ada language definition instead.
5774 (ada_val_print_1): Update all ada_val_print_xxx calls.
5775 Remove language parameter.
5776 (ada_val_print): Update ada_val_print_1 call.
5777
60fcc1c3
TT
57782019-05-08 Tom Tromey <tromey@adacore.com>
5779
5780 * remote.c (remote_hw_watchpoint_limit)
5781 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5782 Now static.
5783
ed2b7c17
TT
57842019-05-08 Tom Tromey <tromey@adacore.com>
5785
5786 * maint.c (_initialize_maint_cmds): Move initialization code to
5787 remote.c.
5788 (watchdog, show_watchdog): Move to remote.c.
5789 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5790 "watchdog" static.
5791 (_initialize_remote): Move initialization code from maint.c.
5792 * defs.h (watchdog): Don't declare.
5793
b0be6c91
TT
57942019-05-08 Tom Tromey <tromey@adacore.com>
5795
5796 * tui/tui-interp.c: Include main.h.
5797 * interps.c: Include main.h.
5798 * main.h (interpreter_p): Declare.
5799 * defs.h (interpreter_p): Don't declare.
5800
587ee17b
TT
58012019-05-08 Tom Tromey <tromey@adacore.com>
5802
5803 * dwarf2loc.c: Include dwarf2read.h.
5804 * defs.h (read_unsigned_leb128): Don't declare.
5805 * dwarf2read.h (read_unsigned_leb128): Declare.
5806
ca1df239
TT
58072019-05-08 Tom Tromey <tromey@adacore.com>
5808
5809 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5810 method.
5811
99f20f08
TT
58122019-05-08 Tom Tromey <tromey@adacore.com>
5813
5814 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5815 when no wrap column is set.
5816
80e55b13
TT
58172019-05-08 Tom Tromey <tromey@adacore.com>
5818
5819 * c-lang.c (c_get_string): Handle non-C-style arrays.
5820
9d3421af
TT
58212019-05-08 Tom Tromey <tromey@adacore.com>
5822
5823 * typeprint.c (print_offset_data::update): Print the bit offset,
5824 not the number of bits remaining.
5825
844333e2
TT
58262019-05-08 Tom Tromey <tromey@adacore.com>
5827
5828 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5829 padding at end of comment.
5830
988915ee
TT
58312019-05-08 Tom Tromey <tromey@adacore.com>
5832
5833 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5834 Compare main types.
5835
26bfd823
TT
58362019-05-06 Tom Tromey <tom@tromey.com>
5837
5838 * common/scoped_mmap.c: Include common-defs.h.
5839 * common/scoped_mmap.h: Don't include config.h.
5840
89055eaa
TT
58412019-05-04 Tom Tromey <tom@tromey.com>
5842
5843 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5844 (struct aarch64_call_info): Add initializers.
5845 <si>: Now a std::vector.
5846 (pass_on_stack, aarch64_push_dummy_call): Update.
5847
5da01df5
TT
58482019-05-04 Simon Marchi <simon.marchi@efficios.com>
5849 Tom Tromey <tom@tromey.com>
5850
5851 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5852 (ppc_threads): Now a std::vector. Now static.
5853 (hwdebug_find_thread_points_by_tid)
5854 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5855 Update.
5856
fbdf05a1
TT
58572019-05-04 Tom Tromey <tom@tromey.com>
5858
5859 * arc-tdep.c (arc_tdesc_init): Return bool.
5860
06d16ec9
TT
58612019-05-04 Tom Tromey <tom@tromey.com>
5862
5863 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5864 Use gdb_assert_not_reached.
5865
9c056022
TT
58662019-05-04 Tom Tromey <tom@tromey.com>
5867
5868 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5869 "false".
5870
fa9c2a59
TT
58712019-05-04 Tom Tromey <tom@tromey.com>
5872
5873 * arc-tdep.c (arc_tdesc_init): Use bool.
5874
e2eb806a
TT
58752019-05-04 Tom Tromey <tom@tromey.com>
5876
5877 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5878
6fe87677
TT
58792019-05-04 Tom Tromey <tom@tromey.com>
5880
5881 * cli/cli-cmds.c (valid_command_p): Return bool.
5882
7f008c9e
TT
58832019-05-04 Tom Tromey <tom@tromey.com>
5884
5885 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5886 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5887
b6484282
RT
58882019-05-04 Raul Tambre <raul@tambre.ee>
5889
5890 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5891 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5892 operator for comparison.
5893
af97b416
TT
58942019-05-04 Tom Tromey <tom@tromey.com>
5895
5896 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5897 (lookup_partial_symbol, print_partial_symbols)
5898 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5899 (psymbol_compare): Update.
5900 (add_psymbol_to_bcache): Clear the entire psymbol.
5901 (maintenance_check_psymtabs): Update.
5902 * psympriv.h (struct partial_symbol): Don't derive from
5903 general_symbol_info.
5904 <obj_section, unrelocated_address, address,
5905 set_unrelocated_address>: Update.
5906 <ginfo>: New member.
5907 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5908 (debug_names::write_psymbols): Update.
5909
9d6d4be8
TV
59102019-05-04 Tom de Vries <tdevries@suse.de>
5911
5912 * contrib/cc-with-tweaks.sh: Support -n arg.
5913
66452beb
PW
59142019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5915
5916 * corelow.c (core_target::detach): Ensure frame cache and
5917 register caches are cleared.
5918 inferior.c (exit_inferior_1): Likewise.
5919
bde09ab7
TT
59202019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5921 Tom Tromey <tom@tromey.com>
5922
5923 * dictionary.c (collate_pending_symbols_by_language): Remove
5924 "struct" from foreach.
5925 * symtab.c (lookup_global_symbol_from_objfile)
5926 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5927 foreach.
5928 * ser-tcp.c (net_open): Remove "struct" from foreach.
5929 * objfiles.c (objfile_relocate, objfile_rebase)
5930 (objfile_has_symbols): Remove "struct" from foreach.
5931 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5932 from foreach.
5933 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5934 foreach.
5935 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5936 "struct" from foreach.
5937 * ada-lang.c (create_excep_cond_exprs)
5938 (ada_exception_catchpoint_cond_string): Remove "struct" from
5939 foreach.
5940
222a8d25
TT
59412019-05-03 Tom Tromey <tromey@adacore.com>
5942
5943 * ada-exp.y (convert_char_literal): Check suffix of each
5944 enumerator.
5945
fcd60b84
DP
59462019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5947
5948 PR ada/21406:
5949 * ada-exp.y (yywrap): Don't define.
5950 * ada-lex.l (%option): Add noyywrap
5951 (yywrap): Remove.
5952
5f2459c2
EZ
59532019-05-03 Eli Zaretskii <eliz@gnu.org>
5954
353ea2d1
EZ
5955 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5956 _WIN32_WINNT to the XP level, unless already defined to a higher
5957 level.
5958
5959 * unittests/parse-connection-spec-selftests.c:
5960 * ser-tcp.c:
5961 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5962 override.
5963
5f2459c2
EZ
5964 * symfile.c (find_separate_debug_file): Remove colon from the
5965 drive spec of DOS/Windows file names of the target, so that the
5966 file name produced from DEBUGDIR and the target's directory will
5967 be valid on DOS/Windows systems.
5968
80062eb9
AB
59692019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5970
5971 * rust-lang.c (val_print_struct): Handle printing structures
5972 containing strings.
5973
b8c05e85
TT
59742019-05-02 Tom Tromey <tromey@adacore.com>
5975
5976 * valarith.c (_initialize_valarith): Remove.
5977
4504bbde
TT
59782019-05-01 Tom Tromey <tromey@adacore.com>
5979
5980 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5981 bitfields.
5982
d48e62f4
TT
59832019-05-01 Tom Tromey <tromey@adacore.com>
5984
5985 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5986 for big-endian copies.
5987
15f18d14
AT
59882019-04-30 Ali Tamur <tamur@google.com>
5989 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5990 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5991 (read_3_bytes): New function.
5992
ab4ee614
JB
59932019-04-30 Joel Brobecker <brobecker@adacore.com>
5994
5995 * windows-nat.c (main_thread_id): Delete.
5996 (handle_output_debug_string): Replace main_thread_id by
5997 current_event.dwThreadId.
5998 (fake_create_process): Likewise.
5999 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6000 Do not set main_thread_id.
6001 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6002 current_event.dwThreadId.
6003 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6004
8ed5b76e
JB
60052019-04-30 Joel Brobecker <brobecker@adacore.com>
6006
6007 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6008 Use current_event.dwThreadId instead of main_thread_id.
6009
2ff0a947
TT
60102019-04-30 Tom Tromey <tromey@adacore.com>
6011
6012 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6013 (create_excep_cond_exprs): Iterate over program spaces.
6014 (ada_exception_catchpoint_cond_string): Examine all minimal
6015 symbols for exception types.
6016
a776957c
TT
60172019-04-30 Tom Tromey <tromey@adacore.com>
6018
6019 PR c++/24470:
6020 * dwarf2read.c (process_structure_scope): Handle case where type
6021 has template parameters but no symbol was created.
6022
bc68014d
AB
60232019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6024 Chris January <chris.january@arm.com>
6025
6026 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6027 qualifier.
6028 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6029
f1fdc960
AB
60302019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * f-typeprint.c (f_print_type): Update rules for printing
6033 whitespace.
6034 (f_type_print_varspec_suffix): Likewise.
6035
bf7a4de1
AB
60362019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6037 Chris January <chris.january@arm.com>
6038
6039 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6040 function arguments.
6041
bbe75b9d
AB
60422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6043
6044 * f-lang.c (build_fortran_types): Change name of void type to
6045 lower case.
6046 * f-typeprint.c (f_type_print_base): Print the name of the void
6047 type, rather than a fixed string.
6048 * f-valprint.c (f_decorations): Use lower case void string.
6049
1db455a7
AB
60502019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6051 Chris January <chris.january@arm.com>
6052
6053 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6054 types for Fortran.
6055
b6d03bb2
AB
60562019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6057 Chris January <chris.january@arm.com>
6058 David Lecomber <david.lecomber@arm.com>
6059
6060 * f-exp.y (BINOP_INTRINSIC): New token.
6061 (exp): New parser rule handling BINOP_INTRINSIC.
6062 (f77_keywords): Add new builtin procedures.
6063 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6064 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6065 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6066 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6067 (print_unop_subexp_f): New function.
6068 (print_binop_subexp_f): New function.
6069 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6070 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6071 (dump_subexp_body_f): Likewise.
6072 (operator_check_f): Likewise.
6073 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6074 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6075
83228e93
AB
60762019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6077
6078 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6079 UNOP_KIND.
6080 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6081 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6082 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6083 (operator_length_f): New fuction.
6084 (print_subexp_f): New function.
6085 (op_name_f): New function.
6086 (dump_subexp_body_f): New function.
6087 (operator_check_f): New function.
6088 (exp_descriptor_f): Replace standard expression handling functions
6089 with new functions.
6090 * gdb/fortran-operator.def: New file.
6091 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6092 * gdb/std-operator.def: Remove UNOP_KIND.
6093
6fdcd7cc
AB
60942019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6095
6096 * std-operator.def: Remove unbalanced, stray double quote
6097 character.
6098
2e62ab40
AB
60992019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6100 Chris January <chris.january@arm.com>
6101 Daniel Everett <daniel.everett@arm.com>
6102 Nick Forrington <nick.forrington@arm.com>
6103 Richard Bunt <richard.bunt@arm.com>
6104
6105 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6106 of depth when printing anonymous structs or unions.
6107 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6108 Don't print either the top-level value, or the children if the
6109 max-depth is exceeded.
6110 (ppscm_print_children): When printing the key of a map, allow one
6111 extra level of depth.
6112 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6113 print either the top-level value, or the children if the max-depth
6114 is exceeded.
6115 (print_children): When printing the key of a map, allow one extra
6116 level of depth.
6117 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6118 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6119 (user_print_options): Initialise max_depth field.
6120 (val_print_scalar_or_string_type_p): New function.
6121 (val_print): Check to see if the max depth has been reached.
6122 (val_print_check_max_depth): Define new function.
6123 (show_print_max_depth): New function.
6124 (_initialize_valprint): Add 'print max-depth' option.
6125 * valprint.h (struct value_print_options) <max_depth>: New field.
6126 (val_print_check_max_depth): Declare new function.
6127 * NEWS: Document new feature.
6128
4be290b2
AB
61292019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6130
6131 * ada-lang.c (ada_language_defn): Initialise new field.
6132 * c-lang.c (c_is_string_type_p): New function.
6133 (c_language_defn): Initialise new field.
6134 (cplus_language_defn): Initialise new field.
6135 (asm_language_defn): Initialise new field.
6136 (minimal_language_defn): Initialise new field.
6137 * c-lang.h (c_is_string_type_p): Declare new function.
6138 * d-lang.c (d_language_defn): Initialise new field.
6139 * f-lang.c (f_is_string_type_p): New function.
6140 (f_language_defn): Initialise new field.
6141 * go-lang.c (go_is_string_type_p): New function.
6142 (go_language_defn): Initialise new field.
6143 * language.c (default_is_string_type_p): New function.
6144 (unknown_language_defn): Initialise new field.
6145 (auto_language_defn): Initialise new field.
6146 * language.h (struct language_defn) <la_is_string_type_p>: New
6147 member variable.
6148 (default_is_string_type_p): Declare new function.
6149 * m2-lang.c (m2_language_defn): Initialise new field.
6150 * objc-lang.c (objc_language_defn): Initialise new field.
6151 * opencl-lang.c (opencl_language_defn): Initialise new field.
6152 * p-lang.c (pascal_is_string_type_p): New function.
6153 (pascal_language_defn): Initialise new field.
6154 * rust-lang.c (rust_is_string_type_p): New function.
6155 (rust_language_defn): Initialise new field.
6156
721b08c6
AB
61572019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6158
6159 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6160 New field.
6161 * ada-lang.c (ada_language_defn): Initialise new field.
6162 * c-lang.c (c_language_defn): Likewise.
6163 (cplus_language_defn): Likewise.
6164 (asm_language_defn): Likewise.
6165 (minimal_language_defn): Likewise.
6166 * d-lang.c (d_language_defn): Likewise.
6167 * f-lang.c (f_language_defn): Likewise.
6168 * go-lang.c (go_language_defn): Likewise.
6169 * language.c (unknown_language_defn): Likewise.
6170 (auto_language_defn): Likewise.
6171 * m2-lang.c (m2_language_defn): Likewise.
6172 * objc-lang.c (objc_language_defn): Likewise.
6173 * opencl-lang.c (opencl_language_defn): Likewise.
6174 * p-lang.c (pascal_language_defn): Likewise.
6175 * rust-lang.c (rust_language_defn): Likewise.
6176
fc913e53
AB
61772019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6178
6179 * ada-lang.c (ada_is_character_type): Change return type to bool.
6180 (ada_is_string_type): Likewise.
6181 * ada-lang.h (ada_is_character_type): Update declaration
6182 (ada_is_string_type): Likewise.
6183
fa731fa0
PW
61842019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6185
6186 Support style in 'frame|thread apply'
6187
6188 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6189 * record.c (record_start, record_stop): Update callers of
6190 execute_command_to_string with false.
6191 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6192 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6193 methods.
6194 (class string_file): New constructor with term_out parameter.
6195 Override methods term_out and can_emit_style_escape. New member
6196 term_out.
6197 (class stdio_file): Override can_emit_style_escape.
6198 (class tee_file): Override term_out and can_emit_style_escape.
6199 * utils.h (can_emit_style_escape): Remove.
6200 * utils.c (can_emit_style_escape): Likewise.
6201 Update all callers of can_emit_style_escape (SOMESTREAM) to
6202 SOMESTREAM->can_emit_style_escape.
6203 * source-cache.c (source_cache::get_source_lines): Likewise.
6204 * stack.c (frame_apply_command_count): Call execute_command_to_string
6205 passing the term_out characteristic of the current gdb_stdout.
6206 * thread.c (thr_try_catch_cmd): Likewise.
6207 * top.c (execute_command_to_string): pass term_out parameter
6208 to construct the string_file for the command output.
6209 * ui-file.c (term_cli_styling): New function (most code moved
6210 from utils.c can_emit_style_escape).
6211 (string_file::string_file, string_file::can_emit_style_escape,
6212 stdio_file::can_emit_style_escape, tee_file::term_out,
6213 tee_file::can_emit_style_escape): New functions.
6214
136afab8
PW
62152019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6216
6217 * NEWS: Mention the new set|show may-call-functions.
6218 * infcall.c (may_call_functions_p): New variable.
6219 (show_may_call_functions_p): New function.
6220 (call_function_by_hand_dummy): Throws an error if not
6221 may-call-functions.
6222 (_initialize_infcall): Call add_setshow_boolean_cmd for
6223 may-call-functions.
6224
725cbb63
KS
62252019-04-25 Keith Seitz <keiths@redhat.com>
6226
6227 PR c++/24367
6228 * cp-support.c (inspect_type): Don't attempt substitutions
6229 of symbol with the same name.
6230
3d1cbb78
TT
62312019-04-25 Tom Tromey <tromey@adacore.com>
6232
6233 PR gdb/24475:
6234 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6235 static.
6236
94aeb44b
TT
62372019-04-25 Tom Tromey <tromey@adacore.com>
6238
6239 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6240 rvalue reference.
6241 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6242 (gdb_xml_parser::parse): Use std::move.
6243 * python/python-internal.h (gdbpy_convert_exception): Take a const
6244 reference.
6245 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6246 std::move.
6247 * python/py-utils.c (gdbpy_convert_exception): Take a const
6248 reference.
6249 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6250 Use std::move.
6251 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6252 Use std::move.
6253 * mi/mi-main.c (mi_print_exception): Take a const reference.
6254 * main.c (handle_command_errors): Take a const reference.
6255 * linespec.c (parse_linespec): Use std::move.
6256 * infcall.c (run_inferior_call): Use std::move.
6257 (call_function_by_hand_dummy): Use std::move.
6258 * exec.c (try_open_exec_file): Use std::move.
6259 * exceptions.h (exception_print, exception_fprintf)
6260 (exception_print_same): Update.
6261 * exceptions.c (print_exception, exception_print)
6262 (exception_fprintf, exception_print_same): Change parameters to
6263 const reference.
6264 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6265 * common/new-op.c: Use std::move.
6266 * common/common-exceptions.h (struct gdb_exception): Add move
6267 constructor.
6268 (struct gdb_exception_error, struct gdb_exception_quit, struct
6269 gdb_quit_bad_alloc): Change constructor to move constructor.
6270 (throw_exception): Change parameter to rvalue reference.
6271 * common/common-exceptions.c (throw_exception): Take rvalue
6272 reference.
6273 * cli/cli-interp.c (safe_execute_command): Use std::move.
6274 * breakpoint.c (insert_bp_location, location_to_sals): Use
6275 std::move.
6276
680d7fd5
TT
62772019-04-25 Tom Tromey <tromey@adacore.com>
6278
6279 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6280 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6281 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6282 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6283 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6284 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6285 guile/scm-value.c: Use unpack.
6286 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6287 gdbscm_gdb_exception.
6288 (gdbscm_throw_gdb_exception): Likewise.
6289 (struct gdbscm_gdb_exception): New.
6290 (unpack): New function.
6291 (gdbscm_wrap): Use unpack.
6292
c6fdd8b2
TT
62932019-04-25 Tom Tromey <tromey@adacore.com>
6294
6295 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6296 (gdb_rl_callback_handler): Use std::move.
6297 * common/common-exceptions.h (struct gdb_exception): Add move
6298 assignment operator.
6299 (throw_exception_sjlj): Change "exception" to const reference.
6300 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6301 (throw_exception_sjlj): Change "exception" to const reference.
6302
cc06b668
TT
63032019-04-25 Tom Tromey <tromey@adacore.com>
6304
6305 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6306 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6307 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6308 Update.
6309 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6310 Update.
6311 * mi/mi-interp.c (mi_interp::exec): Update.
6312 * linespec.c (parse_linespec): Update.
6313 * infcall.c (run_inferior_call): Update.
6314 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6315 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6316 (gdbscm_lookup_global_symbol): Update.
6317 * guile/scm-param.c (gdbscm_parameter_value): Update.
6318 * guile/scm-frame.c (gdbscm_frame_read_register)
6319 (gdbscm_frame_read_var): Update.
6320 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6321 * exec.c (try_open_exec_file): Update.
6322 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6323 (gdb_rl_callback_handler): Update.
6324 * common/common-exceptions.h (exception_none): Don't declare.
6325 * common/common-exceptions.c (exception_none): Don't define.
6326 (struct catcher) <exception>: Update.
6327 * cli/cli-interp.c (safe_execute_command): Update.
6328 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6329
cf532bd1
AT
63302019-04-25 Ali Tamur <tamur@google.com>
6331
6332 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6333 (read_attribute_value): Likewise.
6334 (dwarf2_read_addr_index): Update comment.
6335 (read_str_index): Add DW_FORM_strx.
6336 (dwarf2_string_attr): Likewise.
6337 (dwarf2_const_value_attr): Likewise.
6338 (dump_die_shallow): Likewise.
6339 (dwarf2_fetch_constant_bytes): Likewise.
6340 (skip_form_bytes): Likewise.
6341 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6342
82433e3e
SDJ
63432019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6344
6345 PR corefiles/11608
6346 PR corefiles/18187
6347 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6348 OFFSET. Verify if current mapping contains an ELF header.
6349 (linux_find_memory_regions_full): Adjust call to
6350 dump_mapping_p.
6351
723adb65
SL
63522019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6353 Kang Li <kanglictf@gmail.com>
6354
6355 PR gdb/21600
6356
6357 * dwarf2-frame.c (read_initial_length): Be consistent about using
6358 unsigned representation of length.
6359 (decode_frame_entry_1): Likewise. Check for wraparound of
6360 end pointer as well as buffer overflow.
6361
596179f7
SDJ
63622019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6363
6364 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6365 "vq".
6366
a59240a4
TT
63672019-04-24 Tom Tromey <tromey@adacore.com>
6368
6369 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6370
f872fdbb
AB
63712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6372
6373 * s12z-tdep.c (s12z_unwind_pc): Delete.
6374 (s12z_unwind_sp): Delete.
6375 (s12z_gdbarch_init): Don't register deleted functions with
6376 gdbarch.
6377
b614e6f3
AB
63782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6379
6380 * rl78-tdep.c (rl78_unwind_sp): Delete.
6381 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6382
14faed38
AB
63832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6384
6385 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6386 (xstormy16_unwind_pc): Delete.
6387 (xstormy16_dummy_id): Delete.
6388 (xstormy16_gdbarch_init): Don't register deleted functions with
6389 gdbarch.
6390
541aad8a
AB
63912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6392
6393 * vax-tdep.c (vax_unwind_pc): Delete.
6394 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6395
29222070
AB
63962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6397
6398 * v850-tdep.c (v850_unwind_sp): Delete.
6399 (v850_unwind_pc): Delete.
6400 (v850_dummy_id): Delete.
6401 (v850_gdbarch_init): Don't register deleted functions with
6402 gdbarch.
6403
0f534d76
AB
64042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6405
6406 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6407 (tilegx_unwind_pc): Delete.
6408 (tilegx_unwind_dummy_id): Delete.
6409 (tilegx_gdbarch_init): Don't register deleted functions with
6410 gdbarch.
6411
1ba7b7f9
AB
64122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6413
6414 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6415 (tic6x_dummy_id): Delete.
6416 (tic6x_gdbarch_init): Don't register deleted functions with
6417 gdbarch.
6418
d31f262c
AB
64192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6420
6421 * sparc-tdep.c (sparc_unwind_pc): Delete.
6422 (sparc32_gdbarch_init): Don't register deleted function with
6423 gdbarch.
6424
6d14d64d
AB
64252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6426
6427 * sh-tdep.c (sh_unwind_sp): Delete.
6428 (sh_unwind_pc): Delete.
6429 (sh_dummy_id): Delete.
6430 (sh_gdbarch_init): Don't register deleted functions with
6431 gdbarch.
6432
a40dde9d
AB
64332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6434
6435 * score-tdep.c (score_unwind_sp): Delete.
6436 (score_unwind_pc): Delete.
6437 (score_dummy_id): Delete.
6438 (score_gdbarch_init): Don't register deleted functions with
6439 gdbarch.
6440
47c47d69
AB
64412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6442
6443 * rx-tdep.c (rx_unwind_pc): Delete.
6444 (rx_unwind_sp): Delete.
6445 (rx_dummy_id): Delete.
6446 (rx_gdbarch_init): Don't register deleted functions with
6447 gdbarch. Update comment.
6448
833a4480
AB
64492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6450
6451 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6452 (rs6000_dummy_id): Delete.
6453 (rs6000_gdbarch_init): Don't register deleted functions with
6454 gdbarch.
6455
3f2cef49
AB
64562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6457
6458 * or1k-tdep.c (or1k_dummy_id): Delete.
6459 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6460
96acf884
AB
64612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6462
6463 * nios2-tdep.c (nios2_dummy_id): Delete.
6464 (nios2_unwind_sp): Delete.
6465 (nios2_gdbarch_init): Don't register deleted functions with
6466 gdbarch.
6467
ca0ab0aa
AB
64682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6469
6470 * nds32-tdep.c (nds32_dummy_id): Delete.
6471 (nds32_unwind_pc): Delete.
6472 (nds32_unwind_sp): Delete.
6473 (nds32_gdbarch_init): Don't register deleted functions with
6474 gdbarch.
6475
c8259044
AB
64762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6477
6478 * msp430-tdep.c (msp430_unwind_pc): Delete.
6479 (msp430_unwind_sp): Delete.
6480 (msp430_dummy_id): Delete.
6481 (msp430_gdbarch_init): Don't register deleted functions with
6482 gdbarch.
6483
27f113c8
AB
64842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6485
6486 * moxie-tdep.c (moxie_unwind_sp): Delete.
6487 (moxie_unwind_pc): Delete.
6488 (moxie_dummy_id): Delete.
6489 (moxie_gdbarch_init): Don't register deleted functions with
6490 gdbarch.
6491
aee6c3cd
AB
64922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6493
6494 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6495 (mn10300_unwind_pc): Delete.
6496 (mn10300_unwind_sp): Delete.
6497 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6498 mn10300_unwind_sp.
6499 (mn10300_frame_unwind_init): Don't register deleted functions with
6500 gdbarch.
6501
8e2b5aea
AB
65022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6503
6504 * mep-tdep.c (mep_unwind_pc): Delete.
6505 (mep_unwind_sp): Delete.
6506 (mep_dummy_id): Delete.
6507 (mep_gdbarch_init): Don't register deleted functions with
6508 gdbarch.
6509
43cf3ede
AB
65102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6511
6512 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6513 (m68hc11_unwind_sp): Delete.
6514 (m68hc11_gdbarch_init): Don't register deleted functions with
6515 gdbarch.
6516
5e79b7bb
AB
65172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6518
6519 * m32r-tdep.c (m32r_unwind_sp): Delete.
6520 (m32r_unwind_pc): Delete.
6521 (m32r_dummy_id): Delete.
6522 (m32r_gdbarch_init): Don't register deleted functions with
6523 gdbarch.
6524
89b268d8
AB
65252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6526
6527 * m32c-tdep.c (m32c_unwind_pc): Delete.
6528 (m32c_unwind_sp): Delete.
6529 (m32c_dummy_id): Delete.
6530 (m32c_gdbarch_init): Don't register deleted functions with
6531 gdbarch.
6532
946c28d2
AB
65332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6534
6535 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6536 (lm32_unwind_pc): Delete.
6537 (lm32_dummy_id): Delete.
6538 (lm32_gdbarch_init): Don't register deleted functions with
6539 gdbarch.
6540
bf12844a
AB
65412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6542
6543 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6544 (iq2000_unwind_pc): Delete.
6545 (iq2000_dummy_id): Delete.
6546 (iq2000_gdbarch_init): Don't register deleted functions with
6547 gdbarch.
6548
ecbc06d2
AB
65492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6550
6551 * nds32-tdep.c (nds32_type_align): Delete.
6552 (nds32_push_dummy_call): Use type_align instead.
6553
030197b4
AB
65542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6555
6556 * arm-tdep.c (arm_type_align): Only handle vector override case.
6557 (arm_push_dummy_call): Use type_align.
6558 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6559
b907456c
AB
65602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6561
6562 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6563 case.
6564 (pass_on_stack): Use type_align.
6565 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6566 function.
6567
9e97ba43
TT
65682019-04-23 Tom Tromey <tromey@adacore.com>
6569
6570 * dwarf2read.c (line_header::file_name_at): Remove unused
6571 overload.
6572
6892f601
TV
65732019-04-23 Tom de Vries <tdevries@suse.de>
6574
6575 PR gdb/24438
6576 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6577 invocation.
6578
336d760d
AT
6579
65802019-03-27 Ali Tamur <tamur@google.com>
6581
6582 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6583 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6584 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6585 (dwarf_expr_context::get_addr_index): Likewise
6586 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6587 (symbol_needs_eval_context::get_addr_index): Likewise
6588 (disassemble_dwarf_expression): Add DW_OP_addrx
6589 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6590 (read_cutu_die_from_dwo): Update comment
6591 (skip_one_die): Add DW_FORM_addrx
6592 (read_attribute_value): Likewise
6593 (var_decode_location): Add DW_OP_addrx
6594 (dwarf2_const_value_attr): Add DW_FORM_addrx
6595 (dump_die_shallow): Likewise
6596 (dwarf2_fetch_constant_bytes): Likewise
6597 (decode_locdesc): Add DW_OP_addrx
6598 (skip_form_bytes): Add DW_FORM_addrx
6599
ad9d13f8
AT
66002019-04-22 Ali Tamur <tamur@google.com>
6601
6602 * MAINTAINERS (Write After Approval): Add self.
6603
d70cc3ba
SM
66042019-04-22 Simon Marchi <simon.marchi@efficios.com>
6605
6606 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6607 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6608 (open_symbol_file_object): Likewise.
6609 (svr4_default_sos): Add info parameter.
6610 (svr4_read_so_list): Likewise.
6611 (svr4_current_sos_direct): Adjust functions calls to pass down
6612 info.
6613 (svr4_current_sos_1): Add info parameter.
6614 (svr4_current_sos): Call get_svr4_info, pass info down to
6615 svr4_current_sos_1.
6616 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6617 get_svr4_info.
6618 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6619 get_svr4_info.
6620 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6621 to get_svr4_info.
6622 (probes_table_remove_objfile_probes): Likewise.
6623 (register_solib_event_probe): Add info parameter.
6624 (solist_update_incremental): Pass info parameter down to
6625 svr4_read_so_list.
6626 (disable_probes_interface): Add info parameter.
6627 (svr4_handle_solib_event): Pass current_program_space to
6628 get_svr4_info. Adjust disable_probes_interface cleanup.
6629 (svr4_create_probe_breakpoints): Add info parameter, pass it
6630 down to register_solib_event_probe.
6631 (svr4_create_solib_event_breakpoints): Add info parameter,
6632 pass it down to svr4_create_probe_breakpoints.
6633 (enable_break): Pass info down to
6634 svr4_create_solib_event_breakpoints.
6635 (svr4_solib_create_inferior_hook): Pass current_program_space to
6636 get_svr4_info.
6637 (svr4_clear_solib): Likewise.
6638
7905fc35
PA
66392019-04-22 Pedro Alves <palves@redhat.com>
6640
6641 * solib-svr4.c (svr4_free_objfile_observer): New.
6642 (probe_and_action::objfile): New field.
6643 (probes_table_htab_remove_objfile_probes)
6644 (probes_table_remove_objfile_probes): New functions.
6645 (register_solib_event_probe): Add 'objfile' parameter. Store it
6646 in the new probe_and_action. Don't store the probe in 'lookup'.
6647 (svr4_create_probe_breakpoints): Pass objfile to
6648 register_solib_event_probe.
6649 (_initialize_svr4_solib): Register a free_objfile observer.
6650
fb881986
TT
66512019-04-19 Tom Tromey <tom@tromey.com>
6652
6653 * common/queue.h: Remove.
6654
8732db6c
TT
66552019-04-19 Tom Tromey <tom@tromey.com>
6656
6657 * event-loop.c: Don't include "common/queue.h".
6658
97dfbadd
TT
66592019-04-19 Tom Tromey <tom@tromey.com>
6660
6661 * remote.c (remote_target): Use delete.
6662 * remote-notif.h: Include <list>, not "common/queue.h".
6663 (notif_client_p): Remove typedef.
6664 (remote_notif_state): Add constructor, destructor, initializer.
6665 <notif_queue>: Now a std::list.
6666 (remote_notif_state_xfree): Don't declare.
6667 * remote-notif.c (remote_notif_process, handle_notification)
6668 (remote_notif_state_allocate): Update.
6669 (~remote_notif_state): Rename from remote_notif_state_xfree.
6670
cf250e36
TT
66712019-04-19 Tom Tromey <tom@tromey.com>
6672
6673 * symfile.c (reread_symbols): Update.
6674 * objfiles.c (objfile_register_static_link)
6675 (objfile_lookup_static_link): Update
6676 (~objfile) Don't delete static_links.
6677 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6678
61f4b350
TT
66792019-04-19 Tom Tromey <tom@tromey.com>
6680
6681 * type-stack.h (struct type_stack) <insert>: Constify string.
6682 * type-stack.c (type_stack::insert): Constify string.
6683 * gdbtypes.h (lookup_template_type): Update.
6684 (address_space_name_to_int): Update.
6685 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6686 const.
6687 (lookup_template_type): Make name const.
6688 * c-exp.y: Update rules.
6689 (lex_one_token, classify_name, classify_inner_name)
6690 (c_print_token): Update.
6691 * p-exp.y: Update rules.
6692 (yylex): Update.
6693 * f-exp.y: Update rules.
6694 (yylex): Update.
6695 * d-exp.y: Update rules.
6696 (lex_one_token, classify_name, classify_inner_name): Update.
6697 * parse.c (write_dollar_variable, copy_name): Return std::string.
6698 * parser-defs.h (copy_name): Change return type.
6699 * m2-exp.y: Update rules.
6700 (yylex): Update.
6701 * go-exp.y (lex_one_token): Update.
6702 Update rules.
6703 (classify_unsafe_function, classify_packaged_name)
6704 (classify_name, yylex): Update.
6705
189b8c2e
ST
67062019-04-19 Sergei Trofimovich <siarheit@google.com>
6707
6708 * configure.ac: add --enable-source-highlight switch.
6709 * configure: Regenerate.
6710 * top.c (print_gdb_version): plumb --enable-source-highlight
6711 status to "show configuration".
6712
8ecb59f8
TT
67132019-04-19 Tom Tromey <tromey@adacore.com>
6714
6715 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6716 Check ADA_TYPE_P.
6717 (empty_record, ada_template_to_fixed_record_type_1)
6718 (template_to_static_fixed_type)
6719 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6720 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6721 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6722 macros.
6723
62160ec9
TT
67242019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6725
6726 PR symtab/24423:
6727 * source.c (print_source_lines_base): Advance "iter" when a
6728 control character is seen.
6729
f2ae8bc8
PW
67302019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6731
6732 * inferior.h (struct infcall_suspend_state_deleter):
6733 Catch exception in destructor to avoid crash.
6734
d563b953
PW
67352019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6736
6737 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6738 close to the add_com "shell".
6739
dc34c897
TT
67402019-04-18 Tom Tromey <tromey@adacore.com>
6741
6742 * process-stratum-target.h (class process_stratum_target)
6743 <stratum>: Add "final".
6744
a12e5744
TT
67452019-04-17 Tom Tromey <tromey@adacore.com>
6746
6747 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6748 against nullptr before use.
6749
a7e559cc
AH
67502019-04-17 Alan Hayward <alan.hayward@arm.com>
6751
6752 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6753
c01660c6
AB
67542019-04-17 Jim Wilson <jimw@sifive.com>
6755 Andrew Burgess <andrew.burgess@embecosm.com>
6756
6757 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6758 code read might fail, assume 4-byte breakpoint in that case.
6759
4aa866af
LS
67602019-04-15 Leszek Swirski <leszeks@google.com>
6761
6762 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6763 rather than a hand-rolled POD check when checking for forced MEMORY
6764 classification.
6765
48574d91
AH
67662019-04-15 Alan Hayward <alan.hayward@arm.com>
6767
6768 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6769 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6770 function.
6771 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6772 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6773 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6774 declaration.
6775
4da037ef
AH
67762019-04-15 Alan Hayward <alan.hayward@arm.com>
6777
6778 * aarch64-linux-nat.c
6779 (aarch64_linux_nat_target::thread_architecture): Add override.
6780 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6781 each VQ.
6782
ccb8d7e8
AH
67832019-04-15 Alan Hayward <alan.hayward@arm.com>
6784
6785 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6786
35add35e
AB
67872019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6788
6789 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6790 target types of size 96-bits, add some additional comments, and
6791 check that the builtin type we found was the correct size.
6792
51196bbc
EZ
67932019-04-12 Eli Zaretskii <eliz@gnu.org>
6794
6795 * utils.c (prompt_for_continue): Don't restore the styling at the
6796 end, as applied_style has the wrong value. This fixes styling in
6797 long lists of file names that are interrupted by the "Continue?"
6798 prompt.
6799
62253a61
AB
68002019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6801
6802 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6803 * c-lang.c (c_language_defn): Likewise.
6804 (cplus_language_defn): Likewise.
6805 (asm_language_defn): Likewise.
6806 (minimal_language_defn): Likewise.
6807 * d-lang.c (d_language_defn): Likewise.
6808 * f-lang.c (f_language_defn): Likewise.
6809 * go-lang.c (go_language_defn): Likewise.
6810 * language.c (unknown_language_defn): Likewise.
6811 (auto_language_defn): Likewise.
6812 * language.h (struct language_defn): Remove la_magic field.
6813 (LANG_MAGIC): Delete.
6814 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6815 * objc-lang.c (objc_language_defn): Likewise.
6816 * opencl-lang.c (opencl_language_defn): Likewise.
6817 * p-lang.c (pascal_language_defn): Likewise.
6818 * rust-lang.c (rust_language_defn): Likewise.
6819
a9158a86
AB
68202019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6821
6822 * riscv-tdep.c (riscv_type_align): New function.
6823 (riscv_type_alignment): Delete.
6824 (riscv_arg_location): Use 'type_align'.
6825 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6826
41077b66
AB
68272019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6828
6829 * gdbtypes.c (type_align): A struct with no non-static fields also
6830 has alignment of 1.
6831
9f0272f8
AB
68322019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6833
6834 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6835 component to 0.
6836 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6837 member.
6838 (riscv_struct_info::analyse): New implementation using new
6839 analyse_inner member function.
6840 (riscv_struct_info::field_offset): New member function.
6841 (riscv_struct_info::m_offsets): New member variable.
6842 (riscv_struct_info::analyse_inner): New private member function,
6843 takes the old implementation of riscv_struct_info::analyse but
6844 extended to track field offsets.
6845 (riscv_call_arg_struct): Update the struct folding special cases
6846 to handle cases where empty C++ structs, which are non-zero
6847 length, are found.
6848 (riscv_arg_location): Initialise the length of each location, a
6849 non-zero length now indicates the location is in use.
6850 (riscv_push_dummy_call): Allow for the first location having a
6851 non-zero offset when setting up arguments.
6852 (riscv_return_value): Likewise, but for return values.
6853
02cf60c7
TT
68542019-04-11 Tom Tromey <tromey@adacore.com>
6855
6856 * utils.c (internal_vproblem): Make "msg" const.
6857
68811f8f
AH
68582019-04-11 Alan Hayward <alan.hayward@arm.com>
6859
6860 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6861 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6862 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6863 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6864
3f52fdbc
KB
68652019-04-10 Kevin Buettner <kevinb@redhat.com>
6866
6867 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6868 function.
6869 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6870 of amd64_collect_native_gregset.
6871 (amd64_linux_nat_target::store_registers): Likewise.
6872
e9ad22ee
TT
68732019-04-10 Tom Tromey <tom@tromey.com>
6874
6875 * symtab.c (lookup_global_symbol_from_objfile)
6876 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6877 * objfiles.h (class separate_debug_iterator): New.
6878 (class separate_debug_range): New.
6879 (struct objfile) <separate_debug_objfiles>: New method.
6880 (objfile_separate_debug_iterate): Don't declare.
6881 * objfiles.c (separate_debug_iterator::operator++): Rename from
6882 objfile_separate_debug_iterate.
6883 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6884 iterator.
6885 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6886 iterator.
6887
ee371134
TT
68882019-04-10 Tom Tromey <tom@tromey.com>
6889
6890 * symfile.c (reread_symbols): Remove old comment.
6891 * objfiles.c (free_all_objfiles): Fix a typo.
6892
bf227d61
TT
68932019-04-10 Tom Tromey <tom@tromey.com>
6894
6895 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6896 * minsyms.c (lookup_minimal_symbol): Use foreach.
6897 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6898 (lookup_minimal_symbol_solib_trampoline): Likewise.
6899 * symfile.c (reread_symbols): Use foreach.
6900
8dc433a0
TT
69012019-04-09 Ivan Begert <ivanbegert@gmail.com>
6902 Tom Tromey <tromey@adacore.com>
6903
6904 PR rust/24414:
6905 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6906 (rust_lex_int_test): Change "value" to be LONGEST.
6907 (rust_lex_tests): Add test for long integer literal.
6908
9ab8741a
TT
69092019-04-09 Tom Tromey <tromey@adacore.com>
6910
6911 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6912 to bool.
6913 (extended_remote_target::attach): Update.
6914 (remote_target::remote_notice_new_inferior): Update.
6915 (remote_target::add_current_inferior_and_thread): Update.
6916 * inferior.c (exit_inferior_1): Use "false".
6917 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6918
e242fd12
SM
69192019-04-09 Simon Marchi <simon.marchi@efficios.com>
6920
9ca1957f 6921 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
6922 the "start" command.
6923
2b0c8b01
KB
69242019-04-08 Kevin Buettner <kevinb@redhat.com>
6925
6926 * python/py-inferior.c (infpy_thread_from_thread_handle):
6927 Adjust comments to reflect renaming of thread_from_thread_handle
6928 to thread_from_handle. Adjust keywords. Fix type error message.
6929 (inferior_object_methods): Add thread_from_handle. Retain
6930 thread_from_thread_handle, but mark it as deprecated.
6931
50a82723
KB
69322019-04-08 Kevin Buettner <kevinb@redhat.com>
6933
6934 * gdbthread.h (find_thread_by_handle): Revise declaration.
6935 * thread.c (find_thread_by_handle): Likewise. Adjust
6936 implementation too.
6937 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6938 support for buffer objects as handles.
6939
cf63b016
KB
69402019-04-08 Kevin Buettner <kevinb@redhat.com>
6941
6942 * python/py-infthread.c (thpy_thread_handle): New function.
6943 (thread_object_methods): Register thpy_thread_handle.
6944
3d6c6204
KB
69452019-04-08 Kevin Buettner <kevinb@redhat.com>
6946
6947 * gdbthread.h (thread_to_thread_handle): Declare.
6948 * thread.c (gdbtypes.h): Include.
6949 (thread_to_thread_handle): New function.
6950
6951 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6952 (target_thread_info_to_thread_handle): Declare.
6953 * target.c (target_thread_info_to_thread_handle): New function.
6954 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6955 * target-delegates.c: Regenerate.
6956
6957 * linux-thread-db.c (class thread_db_target): Add method
6958 thread_info_to_thread_handle.
6959 (thread_db_target::thread_info_to_thread_handle): Define.
6960 * remote.c (class remote_target): Add new method
6961 thread_info_to_thread_handle.
6962 (remote_target::thread_info_to_thread_handle): Define.
6963
56be6ea8
PA
69642019-04-08 Pedro Alves <palves@redhat.com>
6965
6966 * common/common-exceptions.c (throw_exception): Don't create
6967 named object to throw; throw directly.
6968 (throw_it): Likewise. Don't initialize gdb_exception::message
6969 here, with new; pass FMT and AP to the ctor instead.
6970 * common/common-exceptions.h: Include <string>.
6971 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6972 const char *, va_list)): New ctor. Use std::make_shared.
6973 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6974 errors)): Delete.
6975 (gdb_exception_error::gdb_exception_error(enum errors, const char
6976 *, va_list)): New.
6977 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6978 Add assertion.
6979 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6980 errors)): Delete.
6981 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6982 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6983 Add assertion.
6984
eedc3f4f
TT
69852019-04-08 Tom Tromey <tom@tromey.com>
6986
6987 * valops.c (value_rtti_indirect_type): Replace throw_exception
6988 with throw.
6989 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6990 with throw.
6991 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6992 throw.
6993 * target.c (target_translate_tls_address): Replace throw_exception
6994 with throw.
6995 * stack.c (frame_apply_command_count): Replace throw_exception
6996 with throw.
6997 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6998 throw.
6999 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7000 with throw.
7001 * rs6000-tdep.c (rs6000_frame_cache)
7002 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7003 * remote.c: Replace throw_exception with throw.
7004 * record-full.c (record_full_message, record_full_wait_1)
7005 (record_full_restore): Replace throw_exception with throw.
7006 * record-btrace.c:
7007 (get_thread_current_frame_id, record_btrace_start_replaying)
7008 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7009 (cmd_record_btrace_start): Replace throw_exception with throw.
7010 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7011 throw.
7012 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7013 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7014 * linespec.c:
7015 (find_linespec_symbols): Replace throw_exception with throw.
7016 * infrun.c (displaced_step_prepare, resume): Replace
7017 throw_exception with throw.
7018 * infcmd.c (post_create_inferior): Replace throw_exception with
7019 throw.
7020 * inf-loop.c (inferior_event_handler): Replace throw_exception
7021 with throw.
7022 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7023 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7024 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7025 (get_prev_frame_always, get_frame_pc_if_available)
7026 (get_frame_address_in_block_if_available, get_frame_language):
7027 Replace throw_exception with throw.
7028 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7029 throw_exception with throw.
7030 * eval.c (fetch_subexp_value, evaluate_var_value)
7031 (evaluate_funcall, evaluate_subexp_standard): Replace
7032 throw_exception with throw.
7033 * dwarf2loc.c (call_site_find_chain)
7034 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7035 Replace throw_exception with throw.
7036 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7037 with throw.
7038 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7039 throw.
7040 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7041 * completer.c (complete_line_internal): Replace throw_exception
7042 with throw.
7043 * compile/compile-object-run.c (compile_object_run): Replace
7044 throw_exception with throw.
7045 * cli/cli-script.c (process_next_line): Replace throw_exception
7046 with throw.
7047 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7048 (btrace_enable, btrace_maint_update_pt_packets): Replace
7049 throw_exception with throw.
7050 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7051 throw_exception with throw.
7052 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7053 throw_exception with throw.
7054 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7055 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7056 * aarch64-tdep.c (aarch64_make_prologue_cache)
7057 (aarch64_make_stub_cache): Replace throw_exception with throw.
7058
26003a20
TT
70592019-04-08 Tom Tromey <tom@tromey.com>
7060
7061 * common/common-exceptions.c (throw_exception): Rename from
7062 throw_exception_cxx. Remove old copy. Make argument const.
7063 (throw_it): Create and throw exception objects directly.
7064 * common/common-exceptions.h (throw_exception): Make argument
7065 const.
7066 (struct gdb_exception_error): Add constructor.
7067 (struct gdb_exception_quit): Add constructor.
7068
d272eb37
TT
70692019-04-08 Tom Tromey <tom@tromey.com>
7070
7071 * common/common-exceptions.h (exception_rethrow): Don't declare.
7072 (TRY_SJLJ): Update comment.
7073 (TRY, CATCH, END_CATCH): Remove.
7074 * common/common-exceptions.c (exception_rethrow): Remove.
7075
230d2906
TT
70762019-04-08 Tom Tromey <tom@tromey.com>
7077
7078 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7079 Remove.
7080 (gdb_exception_error): Rename from
7081 gdb_exception_RETURN_MASK_ERROR.
7082 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7083 (gdb_quit_bad_alloc): Update.
7084 * aarch64-tdep.c: Update.
7085 * ada-lang.c: Update.
7086 * ada-typeprint.c: Update.
7087 * ada-valprint.c: Update.
7088 * amd64-tdep.c: Update.
7089 * arch-utils.c: Update.
7090 * break-catch-throw.c: Update.
7091 * breakpoint.c: Update.
7092 * btrace.c: Update.
7093 * c-varobj.c: Update.
7094 * cli/cli-cmds.c: Update.
7095 * cli/cli-interp.c: Update.
7096 * cli/cli-script.c: Update.
7097 * common/common-exceptions.c: Update.
7098 * common/new-op.c: Update.
7099 * common/selftest.c: Update.
7100 * compile/compile-c-symbols.c: Update.
7101 * compile/compile-cplus-symbols.c: Update.
7102 * compile/compile-object-load.c: Update.
7103 * compile/compile-object-run.c: Update.
7104 * completer.c: Update.
7105 * corelow.c: Update.
7106 * cp-abi.c: Update.
7107 * cp-support.c: Update.
7108 * cp-valprint.c: Update.
7109 * darwin-nat.c: Update.
7110 * disasm-selftests.c: Update.
7111 * dtrace-probe.c: Update.
7112 * dwarf-index-cache.c: Update.
7113 * dwarf-index-write.c: Update.
7114 * dwarf2-frame-tailcall.c: Update.
7115 * dwarf2-frame.c: Update.
7116 * dwarf2loc.c: Update.
7117 * dwarf2read.c: Update.
7118 * eval.c: Update.
7119 * event-loop.c: Update.
7120 * event-top.c: Update.
7121 * exec.c: Update.
7122 * f-valprint.c: Update.
7123 * fbsd-tdep.c: Update.
7124 * frame-unwind.c: Update.
7125 * frame.c: Update.
7126 * gdbtypes.c: Update.
7127 * gnu-v3-abi.c: Update.
7128 * guile/guile-internal.h: Update.
7129 * guile/scm-block.c: Update.
7130 * guile/scm-breakpoint.c: Update.
7131 * guile/scm-cmd.c: Update.
7132 * guile/scm-disasm.c: Update.
7133 * guile/scm-frame.c: Update.
7134 * guile/scm-lazy-string.c: Update.
7135 * guile/scm-math.c: Update.
7136 * guile/scm-param.c: Update.
7137 * guile/scm-ports.c: Update.
7138 * guile/scm-pretty-print.c: Update.
7139 * guile/scm-symbol.c: Update.
7140 * guile/scm-symtab.c: Update.
7141 * guile/scm-type.c: Update.
7142 * guile/scm-value.c: Update.
7143 * i386-linux-tdep.c: Update.
7144 * i386-tdep.c: Update.
7145 * inf-loop.c: Update.
7146 * infcall.c: Update.
7147 * infcmd.c: Update.
7148 * infrun.c: Update.
7149 * jit.c: Update.
7150 * language.c: Update.
7151 * linespec.c: Update.
7152 * linux-fork.c: Update.
7153 * linux-nat.c: Update.
7154 * linux-tdep.c: Update.
7155 * linux-thread-db.c: Update.
7156 * main.c: Update.
7157 * mi/mi-cmd-break.c: Update.
7158 * mi/mi-cmd-stack.c: Update.
7159 * mi/mi-interp.c: Update.
7160 * mi/mi-main.c: Update.
7161 * objc-lang.c: Update.
7162 * p-valprint.c: Update.
7163 * parse.c: Update.
7164 * ppc-linux-tdep.c: Update.
7165 * printcmd.c: Update.
7166 * python/py-arch.c: Update.
7167 * python/py-breakpoint.c: Update.
7168 * python/py-cmd.c: Update.
7169 * python/py-finishbreakpoint.c: Update.
7170 * python/py-frame.c: Update.
7171 * python/py-framefilter.c: Update.
7172 * python/py-gdb-readline.c: Update.
7173 * python/py-inferior.c: Update.
7174 * python/py-infthread.c: Update.
7175 * python/py-lazy-string.c: Update.
7176 * python/py-linetable.c: Update.
7177 * python/py-objfile.c: Update.
7178 * python/py-param.c: Update.
7179 * python/py-prettyprint.c: Update.
7180 * python/py-progspace.c: Update.
7181 * python/py-record-btrace.c: Update.
7182 * python/py-record.c: Update.
7183 * python/py-symbol.c: Update.
7184 * python/py-type.c: Update.
7185 * python/py-unwind.c: Update.
7186 * python/py-utils.c: Update.
7187 * python/py-value.c: Update.
7188 * python/python.c: Update.
7189 * record-btrace.c: Update.
7190 * record-full.c: Update.
7191 * remote-fileio.c: Update.
7192 * remote.c: Update.
7193 * riscv-tdep.c: Update.
7194 * rs6000-aix-tdep.c: Update.
7195 * rs6000-tdep.c: Update.
7196 * rust-exp.y: Update.
7197 * rust-lang.c: Update.
7198 * s390-tdep.c: Update.
7199 * selftest-arch.c: Update.
7200 * solib-dsbt.c: Update.
7201 * solib-frv.c: Update.
7202 * solib-spu.c: Update.
7203 * solib-svr4.c: Update.
7204 * solib.c: Update.
7205 * sparc64-linux-tdep.c: Update.
7206 * stack.c: Update.
7207 * symfile-mem.c: Update.
7208 * symmisc.c: Update.
7209 * target.c: Update.
7210 * thread.c: Update.
7211 * top.c: Update.
7212 * tracefile-tfile.c: Update.
7213 * tui/tui.c: Update.
7214 * typeprint.c: Update.
7215 * unittests/cli-utils-selftests.c: Update.
7216 * unittests/parse-connection-spec-selftests.c: Update.
7217 * valops.c: Update.
7218 * valprint.c: Update.
7219 * value.c: Update.
7220 * varobj.c: Update.
7221 * windows-nat.c: Update.
7222 * x86-linux-nat.c: Update.
7223 * xml-support.c: Update.
7224
a70b8144
TT
72252019-04-08 Tom Tromey <tom@tromey.com>
7226
7227 * xml-support.c: Use C++ exception handling.
7228 * x86-linux-nat.c: Use C++ exception handling.
7229 * windows-nat.c: Use C++ exception handling.
7230 * varobj.c: Use C++ exception handling.
7231 * value.c: Use C++ exception handling.
7232 * valprint.c: Use C++ exception handling.
7233 * valops.c: Use C++ exception handling.
7234 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7235 handling.
7236 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7237 * typeprint.c: Use C++ exception handling.
7238 * tui/tui.c: Use C++ exception handling.
7239 * tracefile-tfile.c: Use C++ exception handling.
7240 * top.c: Use C++ exception handling.
7241 * thread.c: Use C++ exception handling.
7242 * target.c: Use C++ exception handling.
7243 * symmisc.c: Use C++ exception handling.
7244 * symfile-mem.c: Use C++ exception handling.
7245 * stack.c: Use C++ exception handling.
7246 * sparc64-linux-tdep.c: Use C++ exception handling.
7247 * solib.c: Use C++ exception handling.
7248 * solib-svr4.c: Use C++ exception handling.
7249 * solib-spu.c: Use C++ exception handling.
7250 * solib-frv.c: Use C++ exception handling.
7251 * solib-dsbt.c: Use C++ exception handling.
7252 * selftest-arch.c: Use C++ exception handling.
7253 * s390-tdep.c: Use C++ exception handling.
7254 * rust-lang.c: Use C++ exception handling.
7255 * rust-exp.y: Use C++ exception handling.
7256 * rs6000-tdep.c: Use C++ exception handling.
7257 * rs6000-aix-tdep.c: Use C++ exception handling.
7258 * riscv-tdep.c: Use C++ exception handling.
7259 * remote.c: Use C++ exception handling.
7260 * remote-fileio.c: Use C++ exception handling.
7261 * record-full.c: Use C++ exception handling.
7262 * record-btrace.c: Use C++ exception handling.
7263 * python/python.c: Use C++ exception handling.
7264 * python/py-value.c: Use C++ exception handling.
7265 * python/py-utils.c: Use C++ exception handling.
7266 * python/py-unwind.c: Use C++ exception handling.
7267 * python/py-type.c: Use C++ exception handling.
7268 * python/py-symbol.c: Use C++ exception handling.
7269 * python/py-record.c: Use C++ exception handling.
7270 * python/py-record-btrace.c: Use C++ exception handling.
7271 * python/py-progspace.c: Use C++ exception handling.
7272 * python/py-prettyprint.c: Use C++ exception handling.
7273 * python/py-param.c: Use C++ exception handling.
7274 * python/py-objfile.c: Use C++ exception handling.
7275 * python/py-linetable.c: Use C++ exception handling.
7276 * python/py-lazy-string.c: Use C++ exception handling.
7277 * python/py-infthread.c: Use C++ exception handling.
7278 * python/py-inferior.c: Use C++ exception handling.
7279 * python/py-gdb-readline.c: Use C++ exception handling.
7280 * python/py-framefilter.c: Use C++ exception handling.
7281 * python/py-frame.c: Use C++ exception handling.
7282 * python/py-finishbreakpoint.c: Use C++ exception handling.
7283 * python/py-cmd.c: Use C++ exception handling.
7284 * python/py-breakpoint.c: Use C++ exception handling.
7285 * python/py-arch.c: Use C++ exception handling.
7286 * printcmd.c: Use C++ exception handling.
7287 * ppc-linux-tdep.c: Use C++ exception handling.
7288 * parse.c: Use C++ exception handling.
7289 * p-valprint.c: Use C++ exception handling.
7290 * objc-lang.c: Use C++ exception handling.
7291 * mi/mi-main.c: Use C++ exception handling.
7292 * mi/mi-interp.c: Use C++ exception handling.
7293 * mi/mi-cmd-stack.c: Use C++ exception handling.
7294 * mi/mi-cmd-break.c: Use C++ exception handling.
7295 * main.c: Use C++ exception handling.
7296 * linux-thread-db.c: Use C++ exception handling.
7297 * linux-tdep.c: Use C++ exception handling.
7298 * linux-nat.c: Use C++ exception handling.
7299 * linux-fork.c: Use C++ exception handling.
7300 * linespec.c: Use C++ exception handling.
7301 * language.c: Use C++ exception handling.
7302 * jit.c: Use C++ exception handling.
7303 * infrun.c: Use C++ exception handling.
7304 * infcmd.c: Use C++ exception handling.
7305 * infcall.c: Use C++ exception handling.
7306 * inf-loop.c: Use C++ exception handling.
7307 * i386-tdep.c: Use C++ exception handling.
7308 * i386-linux-tdep.c: Use C++ exception handling.
7309 * guile/scm-value.c: Use C++ exception handling.
7310 * guile/scm-type.c: Use C++ exception handling.
7311 * guile/scm-symtab.c: Use C++ exception handling.
7312 * guile/scm-symbol.c: Use C++ exception handling.
7313 * guile/scm-pretty-print.c: Use C++ exception handling.
7314 * guile/scm-ports.c: Use C++ exception handling.
7315 * guile/scm-param.c: Use C++ exception handling.
7316 * guile/scm-math.c: Use C++ exception handling.
7317 * guile/scm-lazy-string.c: Use C++ exception handling.
7318 * guile/scm-frame.c: Use C++ exception handling.
7319 * guile/scm-disasm.c: Use C++ exception handling.
7320 * guile/scm-cmd.c: Use C++ exception handling.
7321 * guile/scm-breakpoint.c: Use C++ exception handling.
7322 * guile/scm-block.c: Use C++ exception handling.
7323 * guile/guile-internal.h: Use C++ exception handling.
7324 * gnu-v3-abi.c: Use C++ exception handling.
7325 * gdbtypes.c: Use C++ exception handling.
7326 * frame.c: Use C++ exception handling.
7327 * frame-unwind.c: Use C++ exception handling.
7328 * fbsd-tdep.c: Use C++ exception handling.
7329 * f-valprint.c: Use C++ exception handling.
7330 * exec.c: Use C++ exception handling.
7331 * event-top.c: Use C++ exception handling.
7332 * event-loop.c: Use C++ exception handling.
7333 * eval.c: Use C++ exception handling.
7334 * dwarf2read.c: Use C++ exception handling.
7335 * dwarf2loc.c: Use C++ exception handling.
7336 * dwarf2-frame.c: Use C++ exception handling.
7337 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7338 * dwarf-index-write.c: Use C++ exception handling.
7339 * dwarf-index-cache.c: Use C++ exception handling.
7340 * dtrace-probe.c: Use C++ exception handling.
7341 * disasm-selftests.c: Use C++ exception handling.
7342 * darwin-nat.c: Use C++ exception handling.
7343 * cp-valprint.c: Use C++ exception handling.
7344 * cp-support.c: Use C++ exception handling.
7345 * cp-abi.c: Use C++ exception handling.
7346 * corelow.c: Use C++ exception handling.
7347 * completer.c: Use C++ exception handling.
7348 * compile/compile-object-run.c: Use C++ exception handling.
7349 * compile/compile-object-load.c: Use C++ exception handling.
7350 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7351 * compile/compile-c-symbols.c: Use C++ exception handling.
7352 * common/selftest.c: Use C++ exception handling.
7353 * common/new-op.c: Use C++ exception handling.
7354 * cli/cli-script.c: Use C++ exception handling.
7355 * cli/cli-interp.c: Use C++ exception handling.
7356 * cli/cli-cmds.c: Use C++ exception handling.
7357 * c-varobj.c: Use C++ exception handling.
7358 * btrace.c: Use C++ exception handling.
7359 * breakpoint.c: Use C++ exception handling.
7360 * break-catch-throw.c: Use C++ exception handling.
7361 * arch-utils.c: Use C++ exception handling.
7362 * amd64-tdep.c: Use C++ exception handling.
7363 * ada-valprint.c: Use C++ exception handling.
7364 * ada-typeprint.c: Use C++ exception handling.
7365 * ada-lang.c: Use C++ exception handling.
7366 * aarch64-tdep.c: Use C++ exception handling.
7367
3d6e9d23
TT
73682019-04-08 Tom Tromey <tom@tromey.com>
7369
7370 * xml-support.c (gdb_xml_parser::parse): Update.
7371 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7372 * value.c (show_convenience): Update.
7373 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7374 (test_parse_flags_qcs): Update.
7375 * thread.c (thr_try_catch_cmd): Update.
7376 * target.c (target_translate_tls_address): Update.
7377 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7378 (info_frame_command_core, frame_apply_command_count): Update.
7379 * rust-exp.y (rust_lex_exception_test): Update.
7380 * riscv-tdep.c (riscv_print_one_register_info): Update.
7381 * remote.c (remote_target::enable_btrace): Update.
7382 * record-btrace.c (record_btrace_enable_warn): Update.
7383 * python/py-utils.c (gdbpy_convert_exception): Update.
7384 * printcmd.c (do_one_display, print_variable_and_value): Update.
7385 * mi/mi-main.c (mi_print_exception): Update.
7386 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7387 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7388 * linux-nat.c (linux_nat_target::attach): Update.
7389 * linux-fork.c (class scoped_switch_fork_info): Update.
7390 * infrun.c (displaced_step_prepare): Update.
7391 * infcall.c (call_function_by_hand_dummy): Update.
7392 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7393 * gnu-v3-abi.c (print_one_vtable): Update.
7394 * frame.c (get_prev_frame_always): Update.
7395 * f-valprint.c (info_common_command_for_block): Update.
7396 * exec.c (try_open_exec_file): Update.
7397 * exceptions.c (print_exception, exception_print)
7398 (exception_fprintf, exception_print_same): Update.
7399 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7400 * dwarf-index-cache.c (index_cache::store)
7401 (index_cache::lookup_gdb_index): Update.
7402 * darwin-nat.c (maybe_cache_shell): Update.
7403 * cp-valprint.c (cp_print_value_fields): Update.
7404 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7405 (gcc_cplus_symbol_address): Update.
7406 * compile/compile-c-symbols.c (gcc_convert_symbol)
7407 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7408 * common/selftest.c: Update.
7409 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7410 a std::string.
7411 (exception_try_scope_entry, exception_try_scope_exit): Don't
7412 declare.
7413 (struct exception_try_scope): Remove.
7414 (TRY): Don't use exception_try_scope.
7415 (struct gdb_exception): Add constructor, operator=.
7416 <what>: New method.
7417 (struct gdb_exception_RETURN_MASK_ALL)
7418 (struct gdb_exception_RETURN_MASK_ERROR)
7419 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7420 (struct gdb_quit_bad_alloc): Update.
7421 * common/common-exceptions.c (exception_none): Change
7422 initializer.
7423 (struct catcher) <state, exception>: Initialize inline.
7424 <prev>: Remove member.
7425 (current_catcher): Remove.
7426 (catchers): New global.
7427 (exceptions_state_mc_init): Simplify.
7428 (catcher_pop): Remove.
7429 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7430 (try_scope_depth, exception_try_scope_entry)
7431 (exception_try_scope_exit): Remove.
7432 (throw_exception_sjlj): Update.
7433 (exception_messages, exception_messages_size): Remove.
7434 (throw_it): Simplify.
7435 (gdb_exception_sliced_copy): Remove.
7436 (throw_exception_cxx): Update.
7437 * cli/cli-script.c (script_from_file): Update.
7438 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7439 Update.
7440 * ada-valprint.c (ada_val_print): Update.
7441 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7442 (create_excep_cond_exprs): Update.
7443
c5c10118
TT
74442019-04-08 Tom Tromey <tom@tromey.com>
7445
7446 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7447 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7448 (TRY, CATCH, END_CATCH): Remove some definitions.
7449 * common/common-exceptions.c: Don't use GDB_XCPT.
7450 (catcher_list_size): Remove.
7451 (throw_exception, throw_it): Simplify.
7452
4de283e4
TT
74532019-04-05 Tom Tromey <tom@tromey.com>
7454
7455 Revert the header-sorting patch.
7456 * ft32-tdep.c: Revert.
7457 * frv-tdep.c: Revert.
7458 * frv-linux-tdep.c: Revert.
7459 * frame.c: Revert.
7460 * frame-unwind.c: Revert.
7461 * frame-base.c: Revert.
7462 * fork-child.c: Revert.
7463 * findvar.c: Revert.
7464 * findcmd.c: Revert.
7465 * filesystem.c: Revert.
7466 * filename-seen-cache.h: Revert.
7467 * filename-seen-cache.c: Revert.
7468 * fbsd-tdep.c: Revert.
7469 * fbsd-nat.h: Revert.
7470 * fbsd-nat.c: Revert.
7471 * f-valprint.c: Revert.
7472 * f-typeprint.c: Revert.
7473 * f-lang.c: Revert.
7474 * extension.h: Revert.
7475 * extension.c: Revert.
7476 * extension-priv.h: Revert.
7477 * expprint.c: Revert.
7478 * exec.h: Revert.
7479 * exec.c: Revert.
7480 * exceptions.c: Revert.
7481 * event-top.c: Revert.
7482 * event-loop.c: Revert.
7483 * eval.c: Revert.
7484 * elfread.c: Revert.
7485 * dwarf2read.h: Revert.
7486 * dwarf2read.c: Revert.
7487 * dwarf2loc.c: Revert.
7488 * dwarf2expr.h: Revert.
7489 * dwarf2expr.c: Revert.
7490 * dwarf2-frame.c: Revert.
7491 * dwarf2-frame-tailcall.c: Revert.
7492 * dwarf-index-write.h: Revert.
7493 * dwarf-index-write.c: Revert.
7494 * dwarf-index-common.c: Revert.
7495 * dwarf-index-cache.h: Revert.
7496 * dwarf-index-cache.c: Revert.
7497 * dummy-frame.c: Revert.
7498 * dtrace-probe.c: Revert.
7499 * disasm.h: Revert.
7500 * disasm.c: Revert.
7501 * disasm-selftests.c: Revert.
7502 * dictionary.c: Revert.
7503 * dicos-tdep.c: Revert.
7504 * demangle.c: Revert.
7505 * dcache.h: Revert.
7506 * dcache.c: Revert.
7507 * darwin-nat.h: Revert.
7508 * darwin-nat.c: Revert.
7509 * darwin-nat-info.c: Revert.
7510 * d-valprint.c: Revert.
7511 * d-namespace.c: Revert.
7512 * d-lang.c: Revert.
7513 * ctf.c: Revert.
7514 * csky-tdep.c: Revert.
7515 * csky-linux-tdep.c: Revert.
7516 * cris-tdep.c: Revert.
7517 * cris-linux-tdep.c: Revert.
7518 * cp-valprint.c: Revert.
7519 * cp-support.c: Revert.
7520 * cp-namespace.c: Revert.
7521 * cp-abi.c: Revert.
7522 * corelow.c: Revert.
7523 * corefile.c: Revert.
7524 * continuations.c: Revert.
7525 * completer.h: Revert.
7526 * completer.c: Revert.
7527 * complaints.c: Revert.
7528 * coffread.c: Revert.
7529 * coff-pe-read.c: Revert.
7530 * cli-out.h: Revert.
7531 * cli-out.c: Revert.
7532 * charset.c: Revert.
7533 * c-varobj.c: Revert.
7534 * c-valprint.c: Revert.
7535 * c-typeprint.c: Revert.
7536 * c-lang.c: Revert.
7537 * buildsym.c: Revert.
7538 * buildsym-legacy.c: Revert.
7539 * build-id.h: Revert.
7540 * build-id.c: Revert.
7541 * btrace.c: Revert.
7542 * bsd-uthread.c: Revert.
7543 * breakpoint.h: Revert.
7544 * breakpoint.c: Revert.
7545 * break-catch-throw.c: Revert.
7546 * break-catch-syscall.c: Revert.
7547 * break-catch-sig.c: Revert.
7548 * blockframe.c: Revert.
7549 * block.c: Revert.
7550 * bfin-tdep.c: Revert.
7551 * bfin-linux-tdep.c: Revert.
7552 * bfd-target.c: Revert.
7553 * bcache.c: Revert.
7554 * ax-general.c: Revert.
7555 * ax-gdb.h: Revert.
7556 * ax-gdb.c: Revert.
7557 * avr-tdep.c: Revert.
7558 * auxv.c: Revert.
7559 * auto-load.c: Revert.
7560 * arm-wince-tdep.c: Revert.
7561 * arm-tdep.c: Revert.
7562 * arm-symbian-tdep.c: Revert.
7563 * arm-pikeos-tdep.c: Revert.
7564 * arm-obsd-tdep.c: Revert.
7565 * arm-nbsd-tdep.c: Revert.
7566 * arm-nbsd-nat.c: Revert.
7567 * arm-linux-tdep.c: Revert.
7568 * arm-linux-nat.c: Revert.
7569 * arm-fbsd-tdep.c: Revert.
7570 * arm-fbsd-nat.c: Revert.
7571 * arm-bsd-tdep.c: Revert.
7572 * arch-utils.c: Revert.
7573 * arc-tdep.c: Revert.
7574 * arc-newlib-tdep.c: Revert.
7575 * annotate.h: Revert.
7576 * annotate.c: Revert.
7577 * amd64-windows-tdep.c: Revert.
7578 * amd64-windows-nat.c: Revert.
7579 * amd64-tdep.c: Revert.
7580 * amd64-sol2-tdep.c: Revert.
7581 * amd64-obsd-tdep.c: Revert.
7582 * amd64-obsd-nat.c: Revert.
7583 * amd64-nbsd-tdep.c: Revert.
7584 * amd64-nbsd-nat.c: Revert.
7585 * amd64-nat.c: Revert.
7586 * amd64-linux-tdep.c: Revert.
7587 * amd64-linux-nat.c: Revert.
7588 * amd64-fbsd-tdep.c: Revert.
7589 * amd64-fbsd-nat.c: Revert.
7590 * amd64-dicos-tdep.c: Revert.
7591 * amd64-darwin-tdep.c: Revert.
7592 * amd64-bsd-nat.c: Revert.
7593 * alpha-tdep.c: Revert.
7594 * alpha-obsd-tdep.c: Revert.
7595 * alpha-nbsd-tdep.c: Revert.
7596 * alpha-mdebug-tdep.c: Revert.
7597 * alpha-linux-tdep.c: Revert.
7598 * alpha-linux-nat.c: Revert.
7599 * alpha-bsd-tdep.c: Revert.
7600 * alpha-bsd-nat.c: Revert.
7601 * aix-thread.c: Revert.
7602 * agent.c: Revert.
7603 * addrmap.c: Revert.
7604 * ada-varobj.c: Revert.
7605 * ada-valprint.c: Revert.
7606 * ada-typeprint.c: Revert.
7607 * ada-tasks.c: Revert.
7608 * ada-lang.c: Revert.
7609 * aarch64-tdep.c: Revert.
7610 * aarch64-ravenscar-thread.c: Revert.
7611 * aarch64-newlib-tdep.c: Revert.
7612 * aarch64-linux-tdep.c: Revert.
7613 * aarch64-linux-nat.c: Revert.
7614 * aarch64-fbsd-tdep.c: Revert.
7615 * aarch64-fbsd-nat.c: Revert.
7616 * aarch32-linux-nat.c: Revert.
7617
d55e5aa6
TT
76182019-04-05 Tom Tromey <tom@tromey.com>
7619
7620 * ft32-tdep.c: Sort headers.
7621 * frv-tdep.c: Sort headers.
7622 * frv-linux-tdep.c: Sort headers.
7623 * frame.c: Sort headers.
7624 * frame-unwind.c: Sort headers.
7625 * frame-base.c: Sort headers.
7626 * fork-child.c: Sort headers.
7627 * findvar.c: Sort headers.
7628 * findcmd.c: Sort headers.
7629 * filesystem.c: Sort headers.
7630 * filename-seen-cache.h: Sort headers.
7631 * filename-seen-cache.c: Sort headers.
7632 * fbsd-tdep.c: Sort headers.
7633 * fbsd-nat.h: Sort headers.
7634 * fbsd-nat.c: Sort headers.
7635 * f-valprint.c: Sort headers.
7636 * f-typeprint.c: Sort headers.
7637 * f-lang.c: Sort headers.
7638 * extension.h: Sort headers.
7639 * extension.c: Sort headers.
7640 * extension-priv.h: Sort headers.
7641 * expprint.c: Sort headers.
7642 * exec.h: Sort headers.
7643 * exec.c: Sort headers.
7644 * exceptions.c: Sort headers.
7645 * event-top.c: Sort headers.
7646 * event-loop.c: Sort headers.
7647 * eval.c: Sort headers.
7648 * elfread.c: Sort headers.
7649 * dwarf2read.h: Sort headers.
7650 * dwarf2read.c: Sort headers.
7651 * dwarf2loc.c: Sort headers.
7652 * dwarf2expr.h: Sort headers.
7653 * dwarf2expr.c: Sort headers.
7654 * dwarf2-frame.c: Sort headers.
7655 * dwarf2-frame-tailcall.c: Sort headers.
7656 * dwarf-index-write.h: Sort headers.
7657 * dwarf-index-write.c: Sort headers.
7658 * dwarf-index-common.c: Sort headers.
7659 * dwarf-index-cache.h: Sort headers.
7660 * dwarf-index-cache.c: Sort headers.
7661 * dummy-frame.c: Sort headers.
7662 * dtrace-probe.c: Sort headers.
7663 * disasm.h: Sort headers.
7664 * disasm.c: Sort headers.
7665 * disasm-selftests.c: Sort headers.
7666 * dictionary.c: Sort headers.
7667 * dicos-tdep.c: Sort headers.
7668 * demangle.c: Sort headers.
7669 * dcache.h: Sort headers.
7670 * dcache.c: Sort headers.
7671 * darwin-nat.h: Sort headers.
7672 * darwin-nat.c: Sort headers.
7673 * darwin-nat-info.c: Sort headers.
7674 * d-valprint.c: Sort headers.
7675 * d-namespace.c: Sort headers.
7676 * d-lang.c: Sort headers.
7677 * ctf.c: Sort headers.
7678 * csky-tdep.c: Sort headers.
7679 * csky-linux-tdep.c: Sort headers.
7680 * cris-tdep.c: Sort headers.
7681 * cris-linux-tdep.c: Sort headers.
7682 * cp-valprint.c: Sort headers.
7683 * cp-support.c: Sort headers.
7684 * cp-namespace.c: Sort headers.
7685 * cp-abi.c: Sort headers.
7686 * corelow.c: Sort headers.
7687 * corefile.c: Sort headers.
7688 * continuations.c: Sort headers.
7689 * completer.h: Sort headers.
7690 * completer.c: Sort headers.
7691 * complaints.c: Sort headers.
7692 * coffread.c: Sort headers.
7693 * coff-pe-read.c: Sort headers.
7694 * cli-out.h: Sort headers.
7695 * cli-out.c: Sort headers.
7696 * charset.c: Sort headers.
7697 * c-varobj.c: Sort headers.
7698 * c-valprint.c: Sort headers.
7699 * c-typeprint.c: Sort headers.
7700 * c-lang.c: Sort headers.
7701 * buildsym.c: Sort headers.
7702 * buildsym-legacy.c: Sort headers.
7703 * build-id.h: Sort headers.
7704 * build-id.c: Sort headers.
7705 * btrace.c: Sort headers.
7706 * bsd-uthread.c: Sort headers.
7707 * breakpoint.h: Sort headers.
7708 * breakpoint.c: Sort headers.
7709 * break-catch-throw.c: Sort headers.
7710 * break-catch-syscall.c: Sort headers.
7711 * break-catch-sig.c: Sort headers.
7712 * blockframe.c: Sort headers.
7713 * block.c: Sort headers.
7714 * bfin-tdep.c: Sort headers.
7715 * bfin-linux-tdep.c: Sort headers.
7716 * bfd-target.c: Sort headers.
7717 * bcache.c: Sort headers.
7718 * ax-general.c: Sort headers.
7719 * ax-gdb.h: Sort headers.
7720 * ax-gdb.c: Sort headers.
7721 * avr-tdep.c: Sort headers.
7722 * auxv.c: Sort headers.
7723 * auto-load.c: Sort headers.
7724 * arm-wince-tdep.c: Sort headers.
7725 * arm-tdep.c: Sort headers.
7726 * arm-symbian-tdep.c: Sort headers.
7727 * arm-pikeos-tdep.c: Sort headers.
7728 * arm-obsd-tdep.c: Sort headers.
7729 * arm-nbsd-tdep.c: Sort headers.
7730 * arm-nbsd-nat.c: Sort headers.
7731 * arm-linux-tdep.c: Sort headers.
7732 * arm-linux-nat.c: Sort headers.
7733 * arm-fbsd-tdep.c: Sort headers.
7734 * arm-fbsd-nat.c: Sort headers.
7735 * arm-bsd-tdep.c: Sort headers.
7736 * arch-utils.c: Sort headers.
7737 * arc-tdep.c: Sort headers.
7738 * arc-newlib-tdep.c: Sort headers.
7739 * annotate.h: Sort headers.
7740 * annotate.c: Sort headers.
7741 * amd64-windows-tdep.c: Sort headers.
7742 * amd64-windows-nat.c: Sort headers.
7743 * amd64-tdep.c: Sort headers.
7744 * amd64-sol2-tdep.c: Sort headers.
7745 * amd64-obsd-tdep.c: Sort headers.
7746 * amd64-obsd-nat.c: Sort headers.
7747 * amd64-nbsd-tdep.c: Sort headers.
7748 * amd64-nbsd-nat.c: Sort headers.
7749 * amd64-nat.c: Sort headers.
7750 * amd64-linux-tdep.c: Sort headers.
7751 * amd64-linux-nat.c: Sort headers.
7752 * amd64-fbsd-tdep.c: Sort headers.
7753 * amd64-fbsd-nat.c: Sort headers.
7754 * amd64-dicos-tdep.c: Sort headers.
7755 * amd64-darwin-tdep.c: Sort headers.
7756 * amd64-bsd-nat.c: Sort headers.
7757 * alpha-tdep.c: Sort headers.
7758 * alpha-obsd-tdep.c: Sort headers.
7759 * alpha-nbsd-tdep.c: Sort headers.
7760 * alpha-mdebug-tdep.c: Sort headers.
7761 * alpha-linux-tdep.c: Sort headers.
7762 * alpha-linux-nat.c: Sort headers.
7763 * alpha-bsd-tdep.c: Sort headers.
7764 * alpha-bsd-nat.c: Sort headers.
7765 * aix-thread.c: Sort headers.
7766 * agent.c: Sort headers.
7767 * addrmap.c: Sort headers.
7768 * ada-varobj.c: Sort headers.
7769 * ada-valprint.c: Sort headers.
7770 * ada-typeprint.c: Sort headers.
7771 * ada-tasks.c: Sort headers.
7772 * ada-lang.c: Sort headers.
7773 * aarch64-tdep.c: Sort headers.
7774 * aarch64-ravenscar-thread.c: Sort headers.
7775 * aarch64-newlib-tdep.c: Sort headers.
7776 * aarch64-linux-tdep.c: Sort headers.
7777 * aarch64-linux-nat.c: Sort headers.
7778 * aarch64-fbsd-tdep.c: Sort headers.
7779 * aarch64-fbsd-nat.c: Sort headers.
7780 * aarch32-linux-nat.c: Sort headers.
7781
699bd4cf
TT
77822019-04-04 Tom Tromey <tom@tromey.com>
7783
7784 * varobj.c (varobj_create): Update.
7785 * rust-exp.y (struct rust_parser) <update_innermost_block,
7786 lookup_symbol>: New methods.
7787 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7788 Rename.
7789 (rust_parser::rust_lookup_type)
7790 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7791 * printcmd.c (display_command, do_one_display): Update.
7792 * parser-defs.h (struct parser_state) <parser_state>: Add
7793 "tracker" parameter.
7794 (block_tracker): New member.
7795 (class innermost_block_tracker) <innermost_block_tracker>: Add
7796 "types" parameter.
7797 <reset>: Remove method.
7798 (innermost_block): Don't declare.
7799 (null_post_parser): Update.
7800 * parse.c (innermost_block): Remove global.
7801 (write_dollar_variable): Update.
7802 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7803 Remove "tracker_types" parameter.
7804 (parse_expression): Add "tracker" parameter.
7805 (parse_expression_for_completion): Update.
7806 (null_post_parser): Add "tracker" parameter.
7807 * p-exp.y: Update rules.
7808 * m2-exp.y: Update rules.
7809 * language.h (struct language_defn) <la_post_parser>: Add
7810 "tracker" parameter.
7811 * go-exp.y: Update rules.
7812 * f-exp.y: Update rules.
7813 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7814 parameter.
7815 * d-exp.y: Update rules.
7816 * c-exp.y: Update rules.
7817 * breakpoint.c (set_breakpoint_condition): Create an
7818 innermost_block_tracker.
7819 (watch_command_1): Likewise.
7820 * ada-lang.c (resolve): Add "tracker" parameter.
7821 (resolve_subexp): Likewise.
7822 * ada-exp.y (write_var_from_sym): Update.
7823
dac43e32
TT
78242019-04-04 Tom Tromey <tom@tromey.com>
7825
7826 * type-stack.h: New file.
7827 * type-stack.c: New file.
7828 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7829 type-stack.h.
7830 (insert_into_type_stack, insert_type, push_type, push_type_int)
7831 (insert_type_address_space, pop_type, pop_type_int)
7832 (pop_typelist, pop_type_stack, append_type_stack)
7833 (push_type_stack, get_type_stack, push_typelist)
7834 (follow_type_instance_flags, follow_types): Don't declare.
7835 * parse.c (type_stack): Remove global.
7836 (parse_exp_in_context): Update.
7837 (insert_into_type_stack, insert_type, push_type, push_type_int)
7838 (insert_type_address_space, pop_type, pop_type_int)
7839 (pop_typelist, pop_type_stack, append_type_stack)
7840 (push_type_stack, get_type_stack, push_typelist)
7841 (follow_type_instance_flags, follow_types): Remove (moved to
7842 type-stack.c).
7843 * f-exp.y (type_stack): New global.
7844 Update rules.
7845 (push_kind_type, f_parse): Update.
7846 * d-exp.y (type_stack): New global.
7847 Update rules.
7848 (d_parse): Update.
7849 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7850 Update rules.
7851 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7852 (HFILES_NO_SRCDIR): Add type-stack.h.
7853
2a612529
TT
78542019-04-04 Tom Tromey <tom@tromey.com>
7855
7856 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7857 (rust_parser::convert_ast_to_expression, rust_parse)
7858 (rust_lex_test_completion, rust_lex_tests): Update.
7859 * parser-defs.h (struct expr_completion_state): New.
7860 (struct parser_state) <parser_state>: Add completion parameter.
7861 <mark_struct_expression, mark_completion_tag>: New methods.
7862 <parse_completion, m_completion_state>: New members.
7863 (prefixify_expression, null_post_parser): Update.
7864 (mark_struct_expression, mark_completion_tag): Don't declare.
7865 * parse.c (parse_completion, expout_last_struct)
7866 (expout_tag_completion_type, expout_completion_name): Remove
7867 globals.
7868 (parser_state::mark_struct_expression)
7869 (parser_state::mark_completion_tag): Now methods.
7870 (prefixify_expression): Add last_struct parameter.
7871 (prefixify_subexp): Likewise.
7872 (parse_exp_1): Update.
7873 (parse_exp_in_context): Add cstate parameter. Update.
7874 (parse_expression_for_completion): Create an
7875 expr_completion_state.
7876 (null_post_parser): Add "completion" parameter.
7877 * p-exp.y: Update rules.
7878 (yylex): Update.
7879 * language.h (struct language_defn) <la_post_parser>: Add
7880 "completing" parameter.
7881 * go-exp.y: Update rules.
7882 (lex_one_token): Update.
7883 * expression.h (parse_completion): Don't declare.
7884 * d-exp.y: Update rules.
7885 (lex_one_token): Update rules.
7886 * c-exp.y: Update rules.
7887 (lex_one_token): Update.
7888 * ada-lang.c (resolve): Add "parse_completion" parameter.
7889 (resolve_subexp): Likewise.
7890 (ada_resolve_function): Likewise.
7891
43476f0b
TT
78922019-04-04 Tom Tromey <tom@tromey.com>
7893
7894 * parser-defs.h (struct parser_state) <start_arglist,
7895 end_arglist>: New methods.
7896 <arglist_len, m_funcall_chain>: New members.
7897 (arglist_len, start_arglist, end_arglist): Don't declare.
7898 * parse.c (arglist_len, funcall_chain): Remove global.
7899 (start_arglist, end_arglist): Remove functions.
7900 (parse_exp_in_context): Update.
7901 * p-exp.y: Update rules.
7902 * m2-exp.y: Update rules.
7903 * go-exp.y: Update rules.
7904 * f-exp.y: Update rules.
7905 * d-exp.y: Update rules.
7906 * c-exp.y: Update rules.
7907
5776fca3
TT
79082019-04-04 Tom Tromey <tom@tromey.com>
7909
7910 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7911 lex_operator, push_back>: New methods.
7912 Update all rules.
7913 (rust_parser::lex_hex, lex_escape): Rename and update.
7914 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7915 (rust_parser::lex_operator): Rename and update.
7916 (rust_parser::lex_number, rustyylex, rustyyerror)
7917 (rust_lex_test_init, rust_lex_test_sequence)
7918 (rust_lex_test_push_back, rust_lex_tests): Update.
7919 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7920 parameter.
7921 <lexptr, prev_lexptr>: New members.
7922 (lexptr, prev_lexptr): Don't declare.
7923 * parse.c (lexptr, prev_lexptr): Remove globals.
7924 (parse_exp_in_context): Update.
7925 * p-exp.y (yylex, yyerror): Update.
7926 * m2-exp.y (parse_number, yylex, yyerror): Update.
7927 * go-exp.y (lex_one_token, yyerror): Update.
7928 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7929 * d-exp.y (lex_one_token, yyerror): Update.
7930 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7931 (lex_one_token, yyerror): Update.
7932 * ada-lex.l (YY_INPUT): Update.
7933 (rewind_to_char): Update.
7934 * ada-exp.y (yyerror): Update.
7935
8621b685
TT
79362019-04-04 Tom Tromey <tom@tromey.com>
7937
7938 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7939 * parser-defs.h (struct parser_state) <parser_state>: Add new
7940 parameter.
7941 <comma_terminates>: New member.
7942 (comma_terminates): Don't declare global.
7943 * parse.c (comma_terminates): Remove global.
7944 (parse_exp_in_context): Update.
7945 * p-exp.y (yylex): Update.
7946 * m2-exp.y (yylex): Update.
7947 * go-exp.y (lex_one_token): Update.
7948 * f-exp.y (yylex): Update.
7949 * d-exp.y (lex_one_token): Update.
7950 * c-exp.y (lex_one_token): Update.
7951 * ada-lex.l: Update.
7952
28aaf3fd
TT
79532019-04-04 Tom Tromey <tom@tromey.com>
7954
7955 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7956 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7957 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7958 * parser-defs.h (paren_depth): Don't declare.
7959 * parse.c (paren_depth): Remove global.
7960 (parse_exp_in_context): Update.
7961 * p-exp.y (paren_depth): New global.
7962 (pascal_parse): Initialize it.
7963 * m2-exp.y (paren_depth): New global.
7964 (m2_parse): Initialize it.
7965 * go-exp.y (paren_depth): New global.
7966 (go_parse): Initialize it.
7967 * f-exp.y (paren_depth): New global.
7968 (f_parse): Initialize it.
7969 * d-exp.y (paren_depth): New global.
7970 (d_parse): Initialize it.
7971 * c-exp.y (paren_depth): New global.
7972 (c_parse): Initialize it.
7973 * ada-lex.l (paren_depth): New global.
7974 (lexer_init): Initialize it.
7975
1e58a4a4
TT
79762019-04-04 Tom Tromey <tom@tromey.com>
7977
7978 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7979 (rust_parser::convert_ast_to_type)
7980 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7981 * parser-defs.h (struct parser_state) <parser_state>: Add
7982 parameters. Initialize new members.
7983 <expression_context_block, expression_context_pc>: New members.
7984 * parse.c (expression_context_block, expression_context_pc):
7985 Remove globals.
7986 (parse_exp_in_context): Update.
7987 * p-exp.y: Update all rules.
7988 (yylex): Update.
7989 * m2-exp.y: Update all rules.
7990 (yylex): Update.
7991 * go-exp.y (yylex): Update.
7992 * f-exp.y (yylex): Update.
7993 * d-exp.y: Update all rules.
7994 (yylex): Update.
7995 * c-exp.y: Update all rules.
7996 (lex_one_token, classify_name, yylex, c_parse): Update.
7997 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7998
37eedb39
TT
79992019-04-04 Tom Tromey <tom@tromey.com>
8000
8001 * gdbarch.h, gdbarch.c: Rebuild.
8002 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8003 * stap-probe.h:
8004 (struct stap_parse_info): Replace "parser_state" with
8005 "expr_builder".
8006 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8007 (parser_state): New class.
8008 * parse.c (expr_builder): Rename.
8009 (expr_builder::release): Rename.
8010 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8011 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8012 (write_exp_elt_longcst, write_exp_elt_floatcst)
8013 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8014 (write_exp_string_vector, write_exp_bitstring)
8015 (write_exp_msymbol, mark_struct_expression)
8016 (write_dollar_variable)
8017 (insert_type_address_space, increase_expout_size): Replace
8018 "parser_state" with "expr_builder".
8019 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8020 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8021 "parser_state" with "expr_builder".
8022
73923d7e
TT
80232019-04-04 Tom Tromey <tom@tromey.com>
8024
8025 * rust-exp.y: Replace "parse_language" with method call.
8026 * p-exp.y:
8027 (yylex): Replace "parse_language" with method call.
8028 * m2-exp.y:
8029 (yylex): Replace "parse_language" with method call.
8030 * go-exp.y (classify_name): Replace "parse_language" with method
8031 call.
8032 * f-exp.y (yylex): Replace "parse_language" with method call.
8033 * d-exp.y (lex_one_token): Replace "parse_language" with method
8034 call.
8035 * c-exp.y:
8036 (lex_one_token, classify_name, yylex): Replace "parse_language"
8037 with method call.
8038 * ada-exp.y (find_primitive_type, type_char)
8039 (type_system_address): Replace "parse_language" with method call.
8040
fa9f5be6
TT
80412019-04-04 Tom Tromey <tom@tromey.com>
8042
8043 * rust-exp.y: Replace "parse_gdbarch" with method call.
8044 * parse.c (write_dollar_variable, insert_type_address_space):
8045 Replace "parse_gdbarch" with method call.
8046 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8047 call.
8048 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8049 call.
8050 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8051 "parse_gdbarch" with method call.
8052 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8053 with method call.
8054 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8055 "parse_gdbarch" with method call.
8056 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8057 "parse_gdbarch" with method call.
8058 * c-exp.y (parse_type, parse_number, classify_name): Replace
8059 "parse_gdbarch" with method call.
8060 * ada-lex.l: Replace "parse_gdbarch" with method call.
8061 * ada-exp.y (parse_type, find_primitive_type, type_char)
8062 (type_system_address): Replace "parse_gdbarch" with method call.
8063
1201a264
TT
80642019-04-04 Tom Tromey <tom@tromey.com>
8065
8066 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8067 * stap-probe.c (stap_parse_argument): Update.
8068 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8069 initial_size parameter.
8070 * rust-exp.y (rust_lex_tests): Update.
8071 * parse.c (parser_state): Update.
8072 (parse_exp_in_context): Update.
8073 * parser-defs.h (struct parser_state) <parser_state>: Remove
8074 "initial_size" parameter.
8075
e3980ce2
TT
80762019-04-04 Tom Tromey <tom@tromey.com>
8077
8078 * parser-defs.h (increase_expout_size): Don't declare.
8079 * parse.c (increase_expout_size): Now static.
8080
e9f8e3f1
TS
80812019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8082
8083 * gnu-nat.c (gnu_nat_target::wait): Fix
8084 target_waitstatus_to_string call.
8085
d7df6549
AB
80862019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8087
8088 * eval.c (evaluate_subexp_standard): Handle internal functions
8089 during Fortran function call handling.
8090
8bdc1658
AB
80912019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8092
8093 * NEWS: Mention new internal functions.
8094 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8095 (read_base_type): Use dwarf2_init_complex_target_type.
8096 * value.c (creal_internal_fn): New function.
8097 (cimag_internal_fn): New function.
8098 (_initialize_values): Register new internal functions.
8099
c29705b7
PW
81002019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8101
8102 * infrun.c (stop_all_threads): If debug_infrun, always
8103 trace the wait status after wait_one, using
8104 target_waitstatus_to_string and target_pid_to_str.
8105 (handle_inferior_event): Replace various trace of
8106 wait status kind by a single trace.
8107 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8108 wait status kind image by target_waitstatus_to_string.
8109 * target/waitstatus.c (target_waitstatus_to_string): Fix
8110 obsolete comment.
8111
05caa1d2
TT
81122019-04-01 Tom Tromey <tromey@adacore.com>
8113
8114 PR symtab/23331:
8115 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8116
9d1447e0
SDJ
81172019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8118 Pedro Alves <palves@redhat.com>
8119
8120 * top.c (quit_force): Call 'finalize_values'.
8121 * value.c (finalize_values): New function.
8122 * value.h (finalize_values): Declare.
8123
7734102d
EZ
81242019-03-30 Eli Zaretskii <eliz@gnu.org>
8125
8126 * NEWS: Announce $_gdb_major and $_gdb_minor.
8127
8128 * top.c (init_gdb_version_vars): New function.
8129 (gdb_init): Call init_gdb_version_vars.
8130
188e1fa9
TT
81312019-03-29 Tom Tromey <tromey@adacore.com>
8132
8133 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8134 help text. Remove dead code.
8135
2880242d
KS
81362019-03-29 Keith Seitz <keiths@redhat.com>
8137
8138 From Siddhesh Poyarekar:
8139 * f-lang.h (f77_get_upperbound): Return LONGEST.
8140 (f77_get_lowerbound): Likewise.
8141 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8142 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8143 print them.
8144 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8145 plongest to format print it.
8146 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8147 (f77_get_upperbound): Likewise.
8148 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8149 LOWER_BOUND to LONGEST.
8150 (f77_create_arrayprint_offset_tbl): Likewise.
8151
cc1defb1
KS
81522019-03-29 Keith Seitz <keiths@redhat.com>
8153
8154 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8155 %s/pulongest for TYPE_LENGTH instead of %d in format
8156 strings.
8157 * ada-typerint.c (ada_print_type): Likewise.
8158 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8159 * compile/compile-c-support.c (generate_register_struct): Likewise.
8160 * gdbtypes.c (recursive_dump_type): Likewise.
8161 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8162 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8163 instead of %d in format strings.
8164 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8165 to std::min to ULONGEST.
8166 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8167 instead of %d in format strings.
8168 * tracepoint.c (info_scope_command): Likewise.
8169 * typeprint.c (print_offset_data::update)
8170 (print_offset_data::finish): Likewise.
8171 * xtensa-tdep.c (xtensa_store_return_value)
8172 (xtensa_push_dummy_call): Likewise.
8173
e432ccf1
JT
81742019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8175
8176 * windows-nat.c (display_selector): Fixed format specifications
8177 for 64-bit Cygwin.
8178
65d2b333
PW
81792019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8180
8181 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8182
f489207e
SL
81832019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8184
8185 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8186 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8187 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8188 (nios2_linux_init_abi): Install it.
8189
bffa1015
AH
81902019-03-28 Alan Hayward <alan.hayward@arm.com>
8191
8192 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8193
fc96163a
AH
81942019-03-28 Alan Hayward <alan.hayward@arm.com>
8195
8196 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8197
20dc7e9b
PW
81982019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8199 Tom Tromey <tromey@adacore.com>
8200
8201 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8202
7f5331a8
JB
82032019-03-26 Joel Brobecker <brobecker@adacore.com>
8204
8205 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8206 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8207 method to compute the bounds of range types. Also print "[evaluated]"
8208 if the bounds' values come from a dynamic evaluation.
8209
18c77628
AB
82102019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8211
8212 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8213 whitespace when pretty printing is on.
8214
53c973f2
AH
82152019-03-26 Alan Hayward <alan.hayward@arm.com>
8216
e79be6e5 8217 * ppc-linux-nat.c: Add include.
53c973f2 8218
d851aa71
AH
82192019-03-26 Alan Hayward <alan.hayward@arm.com>
8220
e79be6e5 8221 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 8222
2fe7bab7
AH
82232019-03-26 Alan Hayward <alan.hayward@arm.com>
8224
e79be6e5 8225 * arm-linux-nat.c: Add include.
2fe7bab7 8226
068ef30e
SM
82272019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8228
8229 * source-cache.c (source_cache::get_source_lines): Re-read
8230 fullname after calling open_source_file.
8231
81a24d04
JB
82322019-03-25 John Baldwin <jhb@FreeBSD.org>
8233
8234 * NEWS: Mention TLS support for FreeBSD.
8235
79e7ae11
TT
82362019-03-25 Tom Tromey <tromey@adacore.com>
8237
8238 * minsyms.c (BUNCH_SIZE): Update comment.
8239 (~minimal_symbol_reader): Remove old comment.
8240 (compact_minimal_symbols): Update comment.
8241 (minimal_symbol_reader::install): Remove old comment. Update
8242 other comments.
8243
d45963c2
AH
82442019-03-25 Alan Hayward <alan.hayward@arm.com>
8245
8246 * s390-linux-nat.c: Add include.
8247
0f83012e
AH
82482019-03-25 Alan Hayward <alan.hayward@arm.com>
8249
8250 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8251 Call linux_get_hwcap.
8252 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8253 Likewise.
8254 (aarch64_linux_get_hwcap): Remove function.
8255 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8256 declaration.
8257 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8258 linux_get_hwcap.
8259 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8260 * linux-tdep.c (linux_get_hwcap): Add function.
8261 (linux_get_hwcap2): Likewise.
8262 * linux-tdep.h (linux_get_hwcap): Add declaration.
8263 (linux_get_hwcap2): Likewise.
8264 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8265 (ppc_linux_get_hwcap2): Likewise.
8266 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8267 linux_get_hwcap.
8268 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8269 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8270 (ppc_linux_nat_target::read_description): Likewise.
8271 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8272 * s390-linux-nat.c: Likewise.
8273 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8274
6640a367
TT
82752019-03-24 Tom Tromey <tom@tromey.com>
8276
8277 * ada-lang.c (standard_lookup): Simplify initialization.
8278 (ada_lookup_symbol_nonlocal): Simplify return.
8279 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8280 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8281 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8282 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8283 initialization.
8284 * solib.c (solib_global_lookup): Simplify.
8285 * symtab.c (null_block_symbol): Remove.
8286 (symbol_cache_lookup): Simplify returns.
8287 (lookup_language_this): Simplify returns.
8288 (lookup_symbol_aux): Simplify return.
8289 (lookup_local_symbol): Simplify returns.
8290 (lookup_global_symbol_from_objfile): Simplify return.
8291 (lookup_symbol_in_objfile_symtabs)
8292 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8293 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8294 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8295 * cp-namespace.c (cp_lookup_bare_symbol)
8296 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8297 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8298 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8299 (cp_lookup_symbol_via_imports): Simplify initialization.
8300 (find_symbol_in_baseclass): Likewise.
8301 * symtab.h (null_block_symbol): Remove.
8302 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8303 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8304 (d_lookup_symbol_module): Likewise.
8305 (find_symbol_in_baseclass): Simplify initialization.
8306
a930ebcd
TT
83072019-03-24 Tom Tromey <tom@tromey.com>
8308
8309 * expression.h: Don't include symtab.h.
8310 (struct block): Forward declare.
8311
582942f4
TT
83122019-03-24 Tom Tromey <tom@tromey.com>
8313
8314 * c-exp.y (typebase): Remove casts.
8315 * gdbtypes.c (lookup_unsigned_typename, )
8316 (lookup_signed_typename): Remove cast.
8317 * eval.c (parse_to_comma_and_eval): Remove cast.
8318 * parse.c (write_dollar_variable): Remove cast.
8319 * block.h (struct block) <superblock>: Now const.
8320 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8321 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8322 (map_block): Make "block" const.
8323 * symfile.h (struct quick_symbol_functions)
8324 <map_matching_symbols>: Constify block argument to "callback".
8325 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8326 const.
8327 (find_pc_sect_compunit_symtab): Make "b" const.
8328 (find_symbol_at_address): Likewise.
8329 (search_symbols): Likewise.
8330 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8331 (dw2_debug_names_lookup_symbol): Likewise.
8332 (dw2_map_matching_symbols): Update.
8333 * p-valprint.c (pascal_val_print): Remove "block".
8334 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8335 (aux_add_nonlocal_symbols): Make "block" const.
8336 (resolve_subexp): Remove cast.
8337 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8338 const.
8339 (iterate_over_file_blocks): Likewise.
8340 * f-exp.y (%union) <bval>: Remove.
8341 * coffread.c (patch_opaque_types): Make "b" const.
8342 * spu-tdep.c (spu_catch_start): Make "block" const.
8343 * c-valprint.c (print_unpacked_pointer): Remove "block".
8344 * symmisc.c (dump_symtab_1): Make "b" const.
8345 (block_depth): Make "block" const.
8346 * d-exp.y (%union) <bval>: Remove.
8347 * cp-support.h (cp_lookup_rtti_type): Update.
8348 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8349 * psymtab.c (psym_lookup_symbol): Make "block" const.
8350 (maintenance_check_psymtabs): Make "b" const.
8351 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8352 (enumerate_locals, enumerate_args): Update.
8353 * python/py-symtab.c (stpy_global_block): Make "block" const.
8354 (stpy_static_block): Likewise.
8355 * inline-frame.c (block_starting_point_at): Make "new_block"
8356 const.
8357 * block.c (find_block_in_blockvector): Make return type const.
8358 (blockvector_for_pc_sect): Make "b" const.
8359 (find_block_in_blockvector): Make "b" const.
8360
7ad417dd
TT
83612019-03-23 Tom Tromey <tom@tromey.com>
8362
8363 * varobj.c (varobj_create): Update.
8364 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8365 * printcmd.c (display_command, do_one_display): Don't reset
8366 innermost_block.
8367 * parser-defs.h (enum innermost_block_tracker_type): Move to
8368 expression.h.
8369 (innermost_block): Update comment.
8370 * parse.c (parse_exp_1): Add tracker_types parameter.
8371 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8372 tracker_types parameter. Reset innermost_block.
8373 (parse_exp_in_context): Remove.
8374 (parse_expression_for_completion): Update.
8375 * objfiles.c (~objfile): Don't reset expression_context_block or
8376 innermost_block.
8377 * expression.h (enum innermost_block_tracker_type): Move from
8378 parser-defs.h.
8379 (parse_exp_1): Add tracker_types parameter.
8380 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8381 reset innermost_block.
8382
b366c208
TT
83832019-03-23 Tom Tromey <tom@tromey.com>
8384
8385 * objfiles.h: Include bcache.h.
8386
9bb9b2f9
TT
83872019-03-23 Tom Tromey <tom@tromey.com>
8388
8389 * linespec.c (get_current_search_block): Use
8390 scoped_restore_current_language.
8391 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8392
59c28372
AH
83932019-03-22 Alan Hayward <alan.hayward@arm.com>
8394 Jiong Wang <jiong.wang@arm.com>
8395
8396 * aarch64-linux-tdep.c
8397 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8398 section.
8399 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8400
17e116a7
AH
84012019-03-22 Alan Hayward <alan.hayward@arm.com>
8402 Jiong Wang <jiong.wang@arm.com>
8403
8404 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8405 instructions.
8406 (aarch64_analyze_prologue_test): Add PACIASP test.
8407 (aarch64_prologue_prev_register): Unmask PC value.
8408
11e1b75f
AH
84092019-03-22 Alan Hayward <alan.hayward@arm.com>
8410 Jiong Wang <jiong.wang@arm.com>
8411
8412 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8413 (aarch64_dwarf2_prev_register): Unmask PC value.
8414 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8415 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8416 DW_CFA_AARCH64_negate_ra_state.
8417 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8418
34dcc7cf
AH
84192019-03-22 Alan Hayward <alan.hayward@arm.com>
8420 Jiong Wang <jiong.wang@arm.com>
8421
8422 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8423 registers.
8424 (aarch64_pseudo_register_name): Likewise.
8425 (aarch64_pseudo_register_type): Likewise.
8426 (aarch64_pseudo_register_reggroup_p): Likewise.
8427 (aarch64_gdbarch_init): Add pauth registers.
8428 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8429 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8430 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8431 (struct gdbarch_tdep): Add regnum for ra_state.
8432
1ef53e6b
AH
84332019-03-22 Alan Hayward <alan.hayward@arm.com>
8434 Jiong Wang <jiong.wang@arm.com>
8435
8436 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8437
76bed0fd
AH
84382019-03-22 Alan Hayward <alan.hayward@arm.com>
8439 Jiong Wang <jiong.wang@arm.com>
8440
8441 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8442 function.
8443 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8444 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8445 (aarch64_gdbarch_init): Add puth registers.
8446 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8447 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8448 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8449
ee4fbcfa
AH
84502019-03-22 Alan Hayward <alan.hayward@arm.com>
8451 Jiong Wang <jiong.wang@arm.com>
8452
8453 * aarch64-linux-nat.c
8454 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8455 * aarch64-linux-tdep.c
8456 (aarch64_linux_core_read_description): Likewise.
8457 (aarch64_linux_get_hwcap): New function.
8458 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8459 (aarch64_linux_get_hwcap): New declaration.
8460
6dc0ebde
AH
84612019-03-22 Alan Hayward <alan.hayward@arm.com>
8462 Jiong Wang <jiong.wang@arm.com>
8463
8464 * aarch64-linux-nat.c
8465 (aarch64_linux_nat_target::read_description): Add pauth param.
8466 * aarch64-linux-tdep.c
8467 (aarch64_linux_core_read_description): Likewise.
8468 * aarch64-tdep.c (struct target_desc): Add in pauth.
8469 (aarch64_read_description): Add pauth param.
8470 (aarch64_gdbarch_init): Likewise.
8471 * aarch64-tdep.h (aarch64_read_description): Likewise.
8472 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8473 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8474 * features/Makefile: Add new files.
8475 * features/aarch64-pauth.c: New file.
8476 * features/aarch64-pauth.xml: New file.
8477
595915c1
TT
84782019-03-20 Tom Tromey <tromey@adacore.com>
8479
8480 * infrun.c (handle_inferior_event): Rename from
8481 handle_inferior_event_1. Create a scoped_value_mark.
8482 (handle_inferior_event): Remove.
8483
4c7d57e7
TT
84842019-03-19 Tom Tromey <tromey@adacore.com>
8485
8486 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8487 * infrun.h (print_stop_event): Add "displays" parameter.
8488 * infrun.c (print_stop_event): Add "displays" parameter.
8489
cb246234
PA
84902019-03-19 Pedro Alves <palves@redhat.com>
8491
8492 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8493 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8494 to -1. Fix TABs vs spaces.
8495 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8496 * tui/tui-out.h (tui_ui_out) Add intro comments.
8497 <m_line, m_start_of_line>: In-class initialize, and add describing
8498 comment.
8499
3a0e45b2
AH
85002019-03-18 Alan Hayward <alan.hayward@arm.com>
8501
8502 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8503 variable names.
8504 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8505
5371b850
PA
85062019-03-18 Pedro Alves <palves@redhat.com>
8507 Eli Zaretskii <eliz@gnu.org>
8508
8509 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8510 m_line and m_start_of_line.
8511
b17c4cd0
EZ
85122019-03-18 Eli Zaretskii <eliz@gnu.org>
8513
8514 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8515 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8516 it returns a newline. This fixes a regression in TU mode, whereby
8517 the next line is output on the same screen line as the user input.
8518
4bd56d18
TT
85192019-03-18 Tom Tromey <tromey@adacore.com>
8520
8521 * minsyms.c (minimal_symbol_reader::install): Remove call to
8522 obstack_blank.
8523
55c10aca
PA
85242019-03-18 Pedro Alves <palves@redhat.com>
8525
8526 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8527 New globals.
8528 (apply_style): New, factored out from ...
8529 (apply_ansi_escape): ... this. Handle reverse video mode.
8530 (tui_set_reverse_mode): New function.
8531 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8532 * tui/tui-winsource.c (tui_show_source_line): Use
8533 tui_set_reverse_mode instead of setting A_STANDOUT.
8534 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8535 New setter methods.
8536
647bb750
HD
85372019-03-18 Hannes Domani <ssbssa@yahoo.de>
8538
8539 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8540 Handle tabs.
8541
bff8c71f
TT
85422019-03-18 Tom Tromey <tromey@adacore.com>
8543
8544 * ada-lang.c (empty_array): Add "high" parameter.
8545 (ada_evaluate_subexp): Update.
8546
58785d98
ST
85472019-03-17 Sergei Trofimovich <siarheit@google.com>
8548
8549 * unittests/string_view-selftests.c: Define
8550 _initialize_string_view_selftests unconditionally.
8551
d4cbef22
ВМ
85522019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8553
8554 PR gdb/24350
8555 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8556
fce4c071
ВМ
85572019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8558
8559 PR gdb/24351
8560 * windows-nat.c (display_selector): Fix format specifiers.
8561
f7f0a123
EZ
85622019-03-17 Eli Zaretskii <eliz@gnu.org>
8563
8564 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8565 tui_refill_source_window instead of tui_refresh_win, to update the
8566 current execution line. This fixes redisplay of the current line
8567 when stepping through the code with "next" or "step".
8568
ab42892f
EZ
85692019-03-16 Eli Zaretskii <eliz@gnu.org>
8570
8571 * source-cache.c (source_cache::get_source_lines): Call
8572 find_source_lines to initialize s->nlines. This fixes vertical
8573 scrolling of TUI source window when the DOWN arrow is pressed.
8574
8d8c087f
PW
85752019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8576
8577 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8578 linux-thread-db.c (_initialize_thread_db): Likewise.
8579
798e1c30
EZ
85802019-03-16 Eli Zaretskii <eliz@gnu.org>
8581
8582 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8583 wclrtoeol in tui_show_source_line". This reverts changes made in
8584 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8585
eefba3da
TT
85862019-03-15 Tom Tromey <tom@tromey.com>
8587
8588 * symtab.h (struct minimal_symbol): Derive from
8589 general_symbol_info.
8590 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8591 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8592 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8593 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8594 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8595 (MSYMBOL_SEARCH_NAME): Update.
8596 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8597 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8598 * minsyms.c (minimal_symbol_reader::record_full): Update.
8599
0de2420c
TT
86002019-03-15 Tom Tromey <tom@tromey.com>
8601
8602 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8603
042d75e4
TT
86042019-03-15 Tom Tromey <tom@tromey.com>
8605
8606 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8607 unique_xmalloc_ptr.
8608 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8609 Update.
8610 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8611 (build_minimal_symbol_hash_tables)
8612 (minimal_symbol_reader::install): Update.
8613
db92718b
TT
86142019-03-15 Tom Tromey <tom@tromey.com>
8615
8616 * symtab.c (create_demangled_names_hash): Update.
8617 (symbol_set_names): Update.
8618 * objfiles.h (struct objfile_per_bfd_storage)
8619 <demangled_names_hash>: Now an htab_up.
8620 * objfiles.c (objfile_per_bfd_storage): Simplify.
8621
d6797f46
TT
86222019-03-15 Tom Tromey <tom@tromey.com>
8623
8624 * objfiles.h (struct objfile_per_bfd_storage): Declare
8625 destructor.
8626 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8627 New.
8628 (get_objfile_bfd_data): Use new. Don't initialize
8629 language_of_main.
8630 (free_objfile_per_bfd_storage): Remove.
8631 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8632
741d7538
TT
86332019-03-15 Tom Tromey <tom@tromey.com>
8634
8635 * symfile.c (reread_symbols): Update.
8636 * objfiles.c (objfile::objfile): Update.
8637 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8638 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8639 comment.
8640 (minimal_symbol_reader::install): Update.
8641 (terminate_minimal_symbol_table): Remove.
8642 * jit.c (jit_object_close_impl): Update.
8643
788c80d1
TT
86442019-03-15 Tom Tromey <tom@tromey.com>
8645
8646 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8647 initializations.
8648
1b7a07cb
TT
86492019-03-15 Tom Tromey <tom@tromey.com>
8650
8651 * objfiles.h (struct objfile_per_bfd_storage)
8652 <demangled_hash_languages>: Now a bitset.
8653 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8654 (lookup_minimal_symbol): Update.
8655
3db066bc
TT
86562019-03-15 Tom Tromey <tom@tromey.com>
8657
8658 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8659 Don't return the symbol.
8660 * coffread.c (record_minimal_symbol): Use record_full.
8661
3fff2c37
EZ
86622019-03-14 Eli Zaretskii <eliz@gnu.org>
8663
8664 The MS-Windows port of ncurses fails to switch to a color pair if
8665 one or both of the colors are the implicit default colors. This
8666 change records the default colors when TUI is initialized, and
8667 then specifies them explicitly when a color pair uses the default
8668 colors. This allows color styling in TUI mode on MS-Windows.
8669
8670 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8671 ncurses_norm_attr.
8672 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8673 colors in ncurses_norm_attr.
8674 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8675 "none", replace it with the default color recorded in
8676 ncurses_norm_attr.
8677
3b336828
TT
86782019-03-14 Tom Tromey <tromey@adacore.com>
8679
8680 * source-cache.h (class source_cache) <get_source_lines>: Return
8681 std::string.
8682 * source-cache.c (source_cache::extract_lines): Handle case where
8683 first_pos==npos. Return std::string.
8684 (source_cache::get_source_lines): Update.
8685
d085f989
TT
86862019-03-14 Tom Tromey <tromey@adacore.com>
8687
8688 * NEWS: Add item for "style sources" commands.
8689 * source-cache.c (source_cache::get_source_lines): Check
8690 source_styling.
8691 * cli/cli-style.c (source_styling): New global.
8692 (_initialize_cli_style): Add "style sources" commands.
8693 (show_style_sources): New function.
8694 * cli/cli-style.h (source_styling): Declare.
8695
6f11e682
TT
86962019-03-14 Pedro Alves <palves@redhat.com>
8697 Tom Tromey <tromey@adacore.com>
8698
8699 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8700 * tui/tui-winsource.c (tui_refill_source_window): New function,
8701 from...
8702 (tui_horizontal_source_scroll): ... here. Move some logic.
8703 * cli/cli-style.c (set_style_enabled): Notify new observable.
8704 * tui/tui-hooks.c (tui_redisplay_source): New function.
8705 (tui_attach_detach_observers): Attach or detach
8706 tui_redisplay_source.
8707 * observable.h (source_styling_changed): New observable.
8708 * observable.c: Define source_styling_changed observable.
8709
a068643d
TT
87102019-03-13 Tom Tromey <tromey@adacore.com>
8711
8712 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8713 (i386_gnu_nat_target::store_registers): Update.
8714 * target-debug.h (target_debug_print_std_string): New macro.
8715 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8716 * windows-tdep.c (display_one_tib): Update.
8717 * tui/tui-stack.c (tui_make_status_line): Update.
8718 * top.c (print_inferior_quit_action): Update.
8719 * thread.c (thr_try_catch_cmd): Update.
8720 (add_thread_with_info): Update.
8721 (thread_target_id_str): Update.
8722 (thr_try_catch_cmd): Update.
8723 (thread_command): Update.
8724 (thread_find_command): Update.
8725 * record-btrace.c (record_btrace_target::info_record)
8726 (record_btrace_resume_thread, record_btrace_target::resume)
8727 (record_btrace_cancel_resume, record_btrace_step_thread)
8728 (record_btrace_target::wait, record_btrace_target::wait)
8729 (record_btrace_target::wait, record_btrace_target::stop): Update.
8730 * progspace.c (print_program_space): Update.
8731 * process-stratum-target.c
8732 (process_stratum_target::thread_address_space): Update.
8733 * linux-fork.c (linux_fork_mourn_inferior)
8734 (detach_checkpoint_command, info_checkpoints_command)
8735 (linux_fork_context): Update.
8736 (linux_fork_detach): Update.
8737 (class scoped_switch_fork_info): Update.
8738 (delete_checkpoint_command): Update.
8739 * infrun.c (follow_fork_inferior): Update.
8740 (follow_fork_inferior): Update.
8741 (proceed_after_vfork_done): Update.
8742 (handle_vfork_child_exec_or_exit): Update.
8743 (follow_exec): Update.
8744 (displaced_step_prepare_throw): Update.
8745 (displaced_step_restore): Update.
8746 (start_step_over): Update.
8747 (resume_1): Update.
8748 (clear_proceed_status_thread): Update.
8749 (proceed): Update.
8750 (print_target_wait_results): Update.
8751 (do_target_wait): Update.
8752 (context_switch): Update.
8753 (stop_all_threads): Update.
8754 (restart_threads): Update.
8755 (finish_step_over): Update.
8756 (handle_signal_stop): Update.
8757 (switch_back_to_stepped_thread): Update.
8758 (keep_going_pass_signal): Update.
8759 (print_exited_reason): Update.
8760 (normal_stop): Update.
8761 * inferior.c (inferior_pid_to_str): Change return type.
8762 (print_selected_inferior): Update.
8763 (add_inferior): Update.
8764 (detach_inferior): Update.
8765 * dummy-frame.c (fprint_dummy_frames): Update.
8766 * dcache.c (dcache_info_1): Update.
8767 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8768 (btrace_fetch, btrace_clear): Update.
8769 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8770 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8771 type.
8772 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8773 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8774 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8775 * gdbarch.c, gdbarch.h: Rebuild.
8776 * gdbarch.sh (core_pid_to_str): Change return type.
8777 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8778 return type.
8779 (windows_nat_target::pid_to_str): Change return type.
8780 (windows_delete_thread): Update.
8781 (windows_nat_target::attach): Update.
8782 (windows_nat_target::files_info): Update.
8783 * target-delegates.c: Rebuild.
8784 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8785 return type.
8786 (sol_thread_target::pid_to_str): Change return type.
8787 * remote.c (class remote_target) <pid_to_str>: Change return
8788 type.
8789 (remote_target::pid_to_str): Change return type.
8790 (extended_remote_target::attach, remote_target::remote_stop_ns)
8791 (remote_target::remote_notif_remove_queued_reply)
8792 (remote_target::push_stop_reply, remote_target::disable_btrace):
8793 Update.
8794 (extended_remote_target::attach): Update.
8795 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8796 type.
8797 (gdbsim_target::pid_to_str): Change return type.
8798 * ravenscar-thread.c (struct ravenscar_thread_target)
8799 <pid_to_str>: Change return type.
8800 (ravenscar_thread_target::pid_to_str): Change return type.
8801 * procfs.c (class procfs_target) <pid_to_str>: Change return
8802 type.
8803 (procfs_target::pid_to_str): Change return type.
8804 (procfs_target::attach): Update.
8805 (procfs_target::detach): Update.
8806 (procfs_target::fetch_registers): Update.
8807 (procfs_target::store_registers): Update.
8808 (procfs_target::wait): Update.
8809 (procfs_target::files_info): Update.
8810 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8811 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8812 return type.
8813 (nto_procfs_target::pid_to_str): Change return type.
8814 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8815 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8816 return type.
8817 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8818 (exit_lwp): Update.
8819 (attach_proc_task_lwp_callback, get_detach_signal)
8820 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8821 (linux_nat_target::resume, wait_lwp, stop_callback)
8822 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8823 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8824 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8825 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8826 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8827 type.
8828 (inf_ptrace_target::attach): Update.
8829 (inf_ptrace_target::files_info): Update.
8830 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8831 type.
8832 (go32_nat_target::pid_to_str): Change return type.
8833 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8834 (gnu_nat_target::wait): Update.
8835 (gnu_nat_target::wait): Update.
8836 (gnu_nat_target::resume): Update.
8837 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8838 (fbsd_nat_target::wait): Update.
8839 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8840 type.
8841 (darwin_nat_target::attach): Update.
8842 * corelow.c (class core_target) <pid_to_str>: Change return type.
8843 (core_target::pid_to_str): Change return type.
8844 * target.c (normal_pid_to_str): Change return type.
8845 (default_pid_to_str): Likewise.
8846 (target_pid_to_str): Change return type.
8847 (target_translate_tls_address): Update.
8848 (target_announce_detach): Update.
8849 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8850 return type.
8851 (bsd_uthread_target::pid_to_str): Change return type.
8852 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8853 type.
8854 (bsd_kvm_target::pid_to_str): Change return type.
8855 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8856 return type.
8857 (aix_thread_target::pid_to_str): Change return type.
8858 * target.h (struct target_ops) <pid_to_str>: Change return type.
8859 (target_pid_to_str, normal_pid_to_str): Likewise.
8860 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8861 type.
8862 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8863 type.
8864 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8865 return type.
8866 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8867 type.
8868 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8869 type.
8870 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8871 return type.
8872
b4be1b06
SM
88732019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8874
8875 * NEWS: Mention that the new default MI version is 3. Mention
8876 changes to the output of commands and events that deal with
8877 multi-location breakpoints.
8878 * breakpoint.c: Include "mi/mi-out.h".
8879 (print_one_breakpoint): Change output syntax if using MI version
8880 >= 3.
8881 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8882 New.
8883 (mi_multi_location_breakpoint_output_fixed): New.
8884 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8885 (mi_cmd_fix_multi_location_breakpoint_output): New.
8886 (mi_multi_location_breakpoint_output_fixed): New.
8887 * mi/mi-cmds.c (mi_cmds): Register command
8888 -fix-multi-location-breakpoint-output.
8889 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8890 interpreter "mi".
8891
8e5e5494
SM
88922019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8893
8894 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8895 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8896 instantiate mi_ui_out based on interpreter name.
8897 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8898 * mi/mi-main.c (mi_load_progress): Likewise.
8899
197df35e
JB
89002019-03-12 John Baldwin <jhb@FreeBSD.org>
8901
8902 * NEWS: Combine separate "New targets" sections for 8.3.
8903
8399425f
JB
89042019-03-12 John Baldwin <jhb@FreeBSD.org>
8905
8906 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8907 (ppcfbsd_init_abi): Install gdbarch
8908 "fetch_tls_load_module_address" and "get_thread_local_address"
8909 methods.
8910
b0f87ed0
JB
89112019-03-12 John Baldwin <jhb@FreeBSD.org>
8912
8913 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8914 (riscv_fbsd_init_abi): Install gdbarch
8915 "fetch_tls_load_module_address" and "get_thread_local_address"
8916 methods.
8917
ce25aa57
JB
89182019-03-12 John Baldwin <jhb@FreeBSD.org>
8919
8920 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8921 (i386fbsd_init_abi): Install gdbarch
8922 "fetch_tls_load_module_address" and "get_thread_local_address"
8923 methods.
8924
f5424cfa
JB
89252019-03-12 John Baldwin <jhb@FreeBSD.org>
8926
8927 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8928 (amd64fbsd_init_abi): Install gdbarch
8929 "fetch_tls_load_module_address" and "get_thread_local_address"
8930 methods.
8931
945f3901
JB
89322019-03-12 John Baldwin <jhb@FreeBSD.org>
8933
8934 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8935 (struct fbsd_pspace_data): New type.
8936 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8937 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8938 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8939 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8940 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8941
ef0bd204
JB
89422019-03-12 John Baldwin <jhb@FreeBSD.org>
8943
8944 * gdbtypes.c (lookup_struct_elt): New function.
8945 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8946 * gdbtypes.h (struct struct_elt): New type.
8947 (lookup_struct_elt): New prototype.
8948
36c53a02
JB
89492019-03-12 John Baldwin <jhb@FreeBSD.org>
8950
8951 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8952 remove disabled code block.
8953
6e056c81
JB
89542019-03-12 John Baldwin <jhb@FreeBSD.org>
8955
8956 * gdbarch.sh (get_thread_local_address): New method.
8957 * gdbarch.h, gdbarch.c: Regenerate.
8958 * target.c (target_translate_tls_address): Use
8959 gdbarch_get_thread_local_address if present instead of
8960 target::get_thread_local_address.
8961
cd250a18
JB
89622019-03-12 John Baldwin <jhb@FreeBSD.org>
8963
8964 * target.h (target::get_thread_local_address): Update comment.
8965
df22c1e5
JB
89662019-03-12 John Baldwin <jhb@FreeBSD.org>
8967
8968 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8969 objfile->separate_debug_objfile_backlink if not NULL.
8970
dd6876c9
JB
89712019-03-12 John Baldwin <jhb@FreeBSD.org>
8972
8973 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8974 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8975 (amd64bsd_store_inferior_registers): Likewise.
8976 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8977 Enable segment base registers.
8978 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8979 PT_GETFSBASE and PT_GETGSBASE.
8980 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8981 PT_SETGSBASE.
8982 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8983 segment base registers.
8984 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8985
1163a4b7
JB
89862019-03-12 John Baldwin <jhb@FreeBSD.org>
8987
8988 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8989 Update calls to i386_target_description to add 'segments'
8990 parameter.
8991 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8992 add segment base registers.
8993 * arch/i386.c (i386_create_target_description): Add 'segments'
8994 parameter to enable segment base registers.
8995 * arch/i386.h (i386_create_target_description): Likewise.
8996 * features/i386/32bit-segments.xml: New file.
8997 * features/i386/32bit-segments.c: Generate.
8998 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8999 call to i386_target_description to add 'segments' parameter.
9000 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9001 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9002 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9003 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9004 if feature is present.
9005 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9006 Add 'segments' parameter to call to i386_target_description.
9007 (i386_target_description): Add 'segments' parameter to enable
9008 segment base registers.
9009 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9010 to call to i386_target_description.
9011 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9012 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9013 Define I386_NUM_REGS.
9014 (i386_target_description): Add 'segments' parameter to enable
9015 segment base registers.
9016
3a350822
EZ
90172019-03-12 Eli Zaretskii <eliz@gnu.org>
9018
9019 PR/24325
9020 * source-cache.c: #undef open and close, to avoid unresolved
9021 externals during linking.
9022
ffdd69cf
TT
90232019-03-12 Tom Tromey <tromey@adacore.com>
9024
9025 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9026 const. Add initializers.
9027 (_initialize_remote): Don't initialize ptid globals.
9028
ec148c57
PA
90292019-03-12 Pedro Alves <palves@redhat.com>
9030
9031 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9032
32764270
PA
90332019-03-12 Pedro Alves <palves@redhat.com>
9034
9035 * cp-name-parser.y (main): Remove unused 'len' variable.
9036
17547186
TT
90372019-03-12 Tom Tromey <tromey@adacore.com>
9038
9039 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9040 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9041
d3a70e03
TT
90422019-03-12 Tom Tromey <tromey@adacore.com>
9043
9044 * linux-nat.c (iterate_over_lwps): Update.
9045 (stop_callback): Remove parameter.
9046 (stop_wait_callback, detach_callback, resume_set_callback)
9047 (select_singlestep_lwp_callback, set_ignore_sigint)
9048 (status_callback, resumed_callback, resume_clear_callback)
9049 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9050 data parameter.
9051 (linux_nat_target::detach, linux_nat_target::resume)
9052 (linux_stop_and_wait_all_lwps, select_event_lwp)
9053 (linux_nat_filter_event, linux_nat_wait_1)
9054 (linux_nat_target::kill, linux_nat_target::stop)
9055 (linux_nat_target::stop): Update.
9056 (linux_nat_resume_callback): Change type.
9057 (resume_stopped_resumed_lwps, count_events_callback)
9058 (select_event_lwp_callback): Likewise.
9059 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9060 * arm-linux-nat.c (struct update_registers_data): Remove.
9061 (update_registers_callback): Change type.
9062 (arm_linux_insert_hw_breakpoint1): Update.
9063 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9064 parameter.
9065 (x86_linux_dr_set_addr): Update.
9066 (x86_linux_dr_set_control): Update.
9067 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9068 (iterate_over_lwps): Use gdb::function_view.
9069 * nat/aarch64-linux-hw-point.c (struct
9070 aarch64_dr_update_callback_param): Remove.
9071 (debug_reg_change_callback): Change type.
9072 (aarch64_notify_debug_reg_change): Update.
9073 * s390-linux-nat.c (s390_refresh_per_info): Update.
9074
82cb27ff
TT
90752019-03-11 Tom Tromey <tromey@adacore.com>
9076
9077 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9078 redundant assignment to "this_cu".
9079
568c0683
SM
90802019-03-08 Simon Marchi <simon.marchi@efficios.com>
9081
9082 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9083
f09ce22d
SM
90842019-03-08 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9087 from...
9088 (rank_one_type): ... this.
9089
595f96a9
SM
90902019-03-08 Simon Marchi <simon.marchi@efficios.com>
9091
9092 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9093 from...
9094 (rank_one_type): ... this.
9095
2598a94b
SM
90962019-03-08 Simon Marchi <simon.marchi@efficios.com>
9097
9098 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9099 from...
9100 (rank_one_type): ... this.
9101
7f17b20d
SM
91022019-03-08 Simon Marchi <simon.marchi@efficios.com>
9103
9104 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9105 from...
9106 (rank_one_type): ... this.
9107
2c509035
SM
91082019-03-08 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9111 from...
9112 (rank_one_type): ... this.
9113
0dd322dc
SM
91142019-03-08 Simon Marchi <simon.marchi@efficios.com>
9115
9116 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9117 from...
9118 (rank_one_type): ... this.
9119
41ea4728
SM
91202019-03-08 Simon Marchi <simon.marchi@efficios.com>
9121
9122 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9123 from...
9124 (rank_one_type): ... this.
9125
793cd1d2
SM
91262019-03-08 Simon Marchi <simon.marchi@efficios.com>
9127
9128 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9129 from...
9130 (rank_one_type): ... this.
9131
34910087
SM
91322019-03-08 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9135 from...
9136 (rank_one_type): ... this.
9137
f1f832d6
SM
91382019-03-08 Simon Marchi <simon.marchi@efficios.com>
9139
9140 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9141 from...
9142 (rank_one_type): ... this.
9143
b9f4512f
SM
91442019-03-08 Simon Marchi <simon.marchi@efficios.com>
9145
9146 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9147 from...
9148 (rank_one_type): ... this.
9149
9293fc63
SM
91502019-03-08 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9153 from...
9154 (rank_one_type): ... this.
9155
e3abbe7e
PW
91562019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9157
9158 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9159 inferior-events' shows the example events.
9160
e4adb939
EZ
91612019-03-08 Eli Zaretskii <eliz@gnu.org>
9162
9163 Support styling on native MS-Windows console
9164
9165 PR/24315
9166 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9167 on MS-Windows if $TERM is not defined.
9168
9169 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9170
9171 * posix-hdep.c (gdb_console_fputs):
9172 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9173 functions.
9174 * ui-file.h (gdb_console_fputs): Add prototype.
9175
9176 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9177 back to fputs only if the former returns zero.
9178
25629dfd
TT
91792019-03-07 Tom Tromey <tom@tromey.com>
9180
9181 * symmisc.c (print_symbol_bcache_statistics): Update.
9182 (print_objfile_statistics): Update.
9183 * symfile.c (allocate_symtab): Update.
9184 * stabsread.c: Don't include bcache.h.
9185 * psymtab.h (struct psymbol_bcache): Don't declare.
9186 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9187 (psymbol_bcache_init, psymbol_bcache_free)
9188 (psymbol_bcache_get_bcache): Don't declare.
9189 * psymtab.c (struct psymbol_bcache): Remove.
9190 (psymtab_storage::psymtab_storage): Update.
9191 (psymtab_storage::~psymtab_storage): Update.
9192 (psymbol_bcache_init, psymbol_bcache_free)
9193 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9194 (add_psymbol_to_bcache): Update.
9195 (allocate_psymtab): Update.
9196 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9197 macro_cache>: No longer pointers.
9198 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9199 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9200 * macrotab.c (macro_bcache): Update.
9201 * macroexp.c: Don't include bcache.h.
9202 * gdbtypes.c (check_types_worklist): Update.
9203 (types_deeply_equal): Remove TRY/CATCH. Update.
9204 * elfread.c (elf_symtab_read): Update.
9205 * dwarf2read.c: Don't include bcache.h.
9206 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9207 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9208 (print_bcache_statistics, bcache_memory_used): Don't declare.
9209 (struct bcache): Move from bcache.c. Add constructor, destructor,
9210 methods. Rename all data members.
9211 * bcache.c (struct bcache): Move to bcache.h.
9212 (bcache::expand_hash_table): Rename from expand_hash_table.
9213 (bcache): Remove.
9214 (bcache::insert): Rename from bcache_full.
9215 (bcache::compare): Rename from bcache_compare.
9216 (bcache_xmalloc): Remove.
9217 (bcache::~bcache): Rename from bcache_xfree.
9218 (bcache::print_statistics): Rename from print_bcache_statistics.
9219 (bcache::memory_used): Rename from bcache_memory_used.
9220
fe726667
PA
92212019-03-07 Pedro Alves <palves@redhat.com>
9222
9223 * infrun.c (normal_stop): Also check for
9224 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9225
7584bb30
AB
92262019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9227
9228 * f-lang.c (value_from_host_double): Moved to...
9229 * value.c (value_from_host_double): ...here.
9230 * value.h (value_from_host_double): Declare.
9231 * guile/scm-math.c (vlscm_convert_typed_number): Use
9232 value_from_host_double.
9233 (vlscm_convert_number): Likewise.
9234 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9235 * python/py-value.c (convert_value_from_python): Likewise.
9236
a7b1986e
TT
92372019-03-06 Tom Tromey <tom@tromey.com>
9238
9239 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9240
0ccf4211
TT
92412019-03-06 Tom Tromey <tom@tromey.com>
9242
9243 * utils.h (free_current_contents): Don't declare.
9244 * utils.c (free_current_contents): Remove.
9245
fe7b42e5
TT
92462019-03-06 Tom Tromey <tom@tromey.com>
9247
9248 * top.c (quit_force): Update.
9249 * main.c (captured_command_loop): Update.
9250 * common/new-op.c (operator new): Update.
9251 * common/common-exceptions.c (struct catcher)
9252 <save_cleanup_chain>: Remove member.
9253 (exceptions_state_mc_init): Update.
9254 (exception_try_scope_entry): Return nullptr.
9255 (exception_try_scope_exit, exception_rethrow)
9256 (throw_exception_sjlj, throw_exception_cxx): Update.
9257 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9258 (all_cleanups, do_cleanups, discard_cleanups)
9259 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9260 (restore_cleanups, restore_final_cleanups): Don't declare.
9261 (do_final_cleanups): Remove parameter.
9262 * common/cleanups.c (cleanup_chain, make_cleanup)
9263 (make_cleanup_dtor, all_cleanups, do_cleanups)
9264 (discard_my_cleanups, discard_cleanups)
9265 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9266 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9267 (null_cleanup): Remove.
9268 (do_final_cleanups): Remove parameter.
9269
c6321f19
TT
92702019-03-06 Tom Tromey <tom@tromey.com>
9271
9272 * remote.c (remote_target::remote_parse_stop_reply): Use
9273 unique_xmalloc_ptr.
9274
61b30099
TT
92752019-03-06 Tom Tromey <tom@tromey.com>
9276
9277 * stabsread.c (struct stabs_field_info): Rename from field_info.
9278 <list, fnlist>: Add initializers.
9279 <obstack>: New member.
9280 (read_member_functions, read_struct_fields, read_baseclasses):
9281 Allocate on obstack. Don't use cleanups.
9282 (read_one_struct_field, read_member_functions, read_struct_fields)
9283 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9284 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9285 (read_struct_type): Update.
9286
6cceac94
TT
92872019-03-06 Tom Tromey <tom@tromey.com>
9288
9289 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9290 * common/filestuff.h (make_cleanup_close): Don't declare.
9291 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9292 Remove.
9293
72412762
TT
92942019-03-06 Tom Tromey <tom@tromey.com>
9295
9296 * solib-aix.c: Use make_scope_exit.
9297
2b6ff1c0
TT
92982019-03-06 Tom Tromey <tom@tromey.com>
9299
9300 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9301 Use make_scope_exit.
9302
d01c5877
TT
93032019-03-06 Tom Tromey <tom@tromey.com>
9304
9305 * solib-svr4.c (disable_probes_interface): Remove parameter.
9306 (svr4_handle_solib_event): Use make_scope_exit.
9307
32603266
TT
93082019-03-06 Tom Tromey <tom@tromey.com>
9309
9310 * remote.c (struct stop_reply_deleter): Remove.
9311 (stop_reply_up): Update.
9312 (struct stop_reply): Derive from notif_event. Don't typedef.
9313 <regcache>: Now a std::vector.
9314 (stop_reply_xfree): Remove.
9315 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9316 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9317 (remote_target::discard_pending_stop_replies): Use delete.
9318 (remote_target::remote_parse_stop_reply): Update.
9319 (remote_target::process_stop_reply): Update.
9320 * remote-notif.h (struct notif_event): Add virtual destructor.
9321 Remove "dtr" member.
9322 (struct notif_client) <alloc_event>: Return a unique_ptr.
9323 (notif_event_xfree): Don't declare.
9324 (notif_event_up): New typedef.
9325 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9326 (notif_event_xfree, do_notif_event_xfree): Remove.
9327 (remote_notif_state_xfree): Update.
9328
9799571e
TT
93292019-03-06 Tom Tromey <tom@tromey.com>
9330
9331 * infrun.c (displaced_step_clear_cleanup): Now a
9332 forward_scope_exit type.
9333 (displaced_step_prepare_throw): Update.
9334 (displaced_step_fixup): Update.
9335
09e3c4ca
TT
93362019-03-06 Tom Tromey <tom@tromey.com>
9337
9338 * inferior.h (class inferior): Update comment.
9339 * gdbthread.h (class thread_info): Update comment.
9340
e2a03548
TT
93412019-03-06 Joel Brobecker <brobecker@adacore.com>
9342 Tom Tromey <tom@tromey.com>
9343
9344 * stabsread.h (struct stab_section_list): Remove.
9345 (coffstab_build_psymtabs): Update.
9346 * dbxread.c (symbuf_sections): Now a std::vector.
9347 (sect_idx): New global.
9348 (fill_symbuf): Update.
9349 (coffstab_build_psymtabs): Change type of stabsects parameter.
9350 Update.
9351 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9352 std::vector.
9353 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9354 (coff_locate_sections): Update.
9355 (coff_symfile_read): Remove cleanups. Update.
9356 (init_stringtab): Add storage parameter.
9357 (free_stringtab, free_stringtab_cleanup): Remove.
9358 (init_lineno): Add storage parameter.
9359 (free_linetab, free_linetab_cleanup): Remove.
9360
b7e60d85
PA
93612019-03-06 Pedro Alves <palves@redhat.com>
9362
9363 * linux-fork.c (fork_info::clobber_regs): Delete.
9364 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9365 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9366 comment. Adjust.
9367 (scoped_switch_fork_info::scoped_switch_fork_info)
9368 (checkpoint_command, linux_fork_context): Adjust
9369 fork_save_infrun_state calls.
9370
e52c971f
PA
93712019-03-06 Pedro Alves <palves@redhat.com>
9372
9373 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9374 (inf_has_multiple_threads): Return 'bool' and rewrite using
9375 inferior_info::threads().
9376
06974e6c
PA
93772019-03-06 Pedro Alves <palves@redhat.com>
9378
9379 * linux-fork.c: Include <list>.
9380 (fork_list): Now a std::list instance.
9381 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9382 (forks_exist_p, find_last_fork): Adjust.
9383 (new_fork): Delete.
9384 (one_fork_p): New.
9385 (add_fork): Adjust.
9386 (free_fork): Delete, folded into fork_info::~fork_info().
9387 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9388 Adjust.
9389 (init_fork_list): Delete.
9390 (linux_fork_killall, linux_fork_mourn_inferior)
9391 (linux_fork_detach, info_checkpoints_command): Adjust.
9392 (_initialize_linux_fork): No longer call init_fork_list.
9393
72f31aea
PA
93942019-03-06 Pedro Alves <palves@redhat.com>
9395
9396 * linux-fork.c (new_fork): New, split out of ...
9397 (add_fork): ... this. Return void. Move "first fork" special
9398 case from here, to ...
9399 (checkpoint_command): ... here.
9400 * linux-linux.h (add_fork): Return void.
9401
efbecbc1
AB
94022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9403
9404 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9405
0841c79a
AB
94062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9407 Chris January <chris.january@arm.com>
9408 David Lecomber <david.lecomber@arm.com>
9409
9410 * f-exp.y: New token, UNOP_INTRINSIC.
9411 (exp): New pattern using UNOP_INTRINSIC token.
9412 (f77_keywords): Add 'abs' keyword.
9413 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9414 (value_from_host_double): New function.
9415 (evaluate_subexp_f): Support UNOP_ABS.
9416
4a270568
AB
94172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9418
9419 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9420 types.
9421
067630bd
AB
94222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9423
9424 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9425 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9426 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9427
3be47f7a
AB
94282019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9429
9430 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9431
4d00f5d8
AB
94322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9433 Chris January <chris.january@arm.com>
9434
9435 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9436 * f-exp.y: Define 'KIND' token.
9437 (exp): New pattern for KIND expressions.
9438 (ptype): Handle types with a kind extension.
9439 (direct_abs_decl): Extend to spot kind extensions.
9440 (f77_keywords): Add 'kind' to the list.
9441 (push_kind_type): New function.
9442 (convert_to_kind_type): New function.
9443 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9444 * parse.c (operator_length_standard): Likewise.
9445 * parser-defs.h (enum type_pieces): Add tp_kind.
9446 * std-operator.def: Add UNOP_KIND.
9447
e454224f
AB
94482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9449
9450 * f-exp.y (f_parse): Set yydebug.
9451
9dad4a58
AB
94522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9453
9454 * f-lang.c (evaluate_subexp_f): New function.
9455 (exp_descriptor_f): New global.
9456 (f_language_defn): Use exp_descriptor_f instead of
9457 exp_descriptor_standard.
9458
c8f91604
AB
94592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9460
9461 * f-exp.y (struct token): Add comments.
9462 (dot_ops): Remove uppercase versions and the end marker.
9463 (f77_keywords): Likewise.
9464 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9465 entries in the dot_ops array are case insensitive, and use
9466 strncasecmp to compare strings. Also some whitespace cleanup in
9467 this area. Similar for the f77_keywords array, except entries in
9468 this list might be case sensitive.
9469
dd9f2c76
AB
94702019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9471
9472 * f-exp.y (struct f77_boolean_val): Add comments.
9473 (boolean_values): Remove uppercase versions, and end marker.
9474 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9475 and use strncasecmp to achieve case insensitivity. Additionally,
9476 perform whitespace cleanup around this code.
9477
67a3048c
TT
94782019-03-06 Tom Tromey <tromey@adacore.com>
9479
9480 * remote-sim.c (gdbsim_target_open): Use result of
9481 gdb_argv::release.
9482
aa3cfbda
RB
94832019-03-06 Richard Bunt <richard.bunt@arm.com>
9484 Dirk Schubert <dirk.schubert@arm.com>
9485 Chris January <chris.january@arm.com>
9486
9487 * eval.c (evaluate_subexp_standard): Call Fortran argument
9488 wrapping logic.
9489 * f-lang.c (struct value): A value which can be passed into a
9490 Fortran function call.
9491 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9492 where appropriate.
9493 (struct type): Value ready for a Fortran function call.
9494 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9495 is needed.
9496 * f-lang.h (fortran_argument_convert): Declaration.
9497 (fortran_preserve_arg_pointer): Declaration.
9498 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9499
ea38e5df
TT
95002019-03-05 Tom Tromey <tromey@adacore.com>
9501
9502 * python/py-prettyprint.c (print_string_repr): Remove #if.
9503 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9504
06b5b831
TT
95052019-03-05 Tom Tromey <tromey@adacore.com>
9506
9507 * target.c (the_dummy_target): Move later. Change type to
9508 "dummy_target".
9509 (initialize_targets): Don't initialize the_dummy_target.
9510
edbd9e45
TT
95112019-03-05 Tom Tromey <tromey@adacore.com>
9512
9513 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9514 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9515
c119e040
TT
95162019-03-05 Tom Tromey <tromey@adacore.com>
9517
9518 * windows-nat.c (windows_nat_target::attach)
9519 (windows_nat_target::detach): Don't call gdb_flush.
9520 * valprint.c (generic_val_print, val_print, val_print_string):
9521 Don't call gdb_flush.
9522 * utils.c (defaulted_query): Don't call gdb_flush.
9523 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9524 * target.c (target_announce_detach): Don't call gdb_flush.
9525 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9526 * remote.c (extended_remote_target::attach): Don't call
9527 gdb_flush.
9528 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9529 * printcmd.c (do_examine): Don't call gdb_flush.
9530 (info_display_command): Don't call gdb_flush.
9531 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9532 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9533 * memattr.c (info_mem_command): Don't call gdb_flush.
9534 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9535 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9536 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9537 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9538 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9539 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9540 (gnu_nat_target::detach): Don't call gdb_flush.
9541 * f-valprint.c (f_val_print): Don't call gdb_flush.
9542 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9543 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9544 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9545 gdb_flush.
9546 * c-valprint.c (c_val_print): Don't call gdb_flush.
9547 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9548
895dafa6
TT
95492019-03-05 Tom Tromey <tromey@adacore.com>
9550
9551 * varobj.c (update_dynamic_varobj_children): Update.
9552 (install_default_visualizer): Use reset, not release.
9553 * value.c (set_internalvar): Update.
9554 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9555 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9556 ATTRIBUTE_UNUSED_RESULT.
9557
88a774b9
TT
95582019-03-05 Tom Tromey <tromey@adacore.com>
9559
9560 * remote.c (class scoped_remote_fd) <release>: Add
9561 ATTRIBUTE_UNUSED_RESULT.
9562
4e4a8b93
TT
95632019-03-05 Tom Tromey <tromey@adacore.com>
9564
9565 * macroexp.c (struct macro_buffer) <release>: Add
9566 ATTRIBUTE_UNUSED_RESULT.
9567
083eef1f
TT
95682019-03-05 Tom Tromey <tromey@adacore.com>
9569
9570 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9571 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9572 ATTRIBUTE_UNUSED_RESULT.
9573
3cabd438
TT
95742019-03-05 Tom Tromey <tromey@adacore.com>
9575
9576 * common/scoped_fd.h (class scoped_fd) <release>: Add
9577 ATTRIBUTE_UNUSED_RESULT.
9578
41e3300a
TT
95792019-03-05 Tom Tromey <tromey@adacore.com>
9580
9581 * parser-defs.h (struct parser_state) <release>: Add
9582 ATTRIBUTE_UNUSED_RESULT.
9583
18cb7c9f
TT
95842019-03-05 Tom Tromey <tromey@adacore.com>
9585
9586 * utils.h (class gdb_argv) <release>: Add
9587 ATTRIBUTE_UNUSED_RESULT.
9588 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9589
41fa577f
EZ
95902019-03-02 Eli Zaretskii <eliz@gnu.org>
9591
a6a4b2c6
EZ
9592 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9593 for-loop range, to avoid compiler warnings.
9594
9595 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9596 avoid compiler warnings about unused variables.
9597
742a7df5
EZ
9598 * NEWS: Mention end of support for native debugging on MS-Windows
9599 before XP.
9600
41fa577f
EZ
9601 PR gdb/24292
9602 * common/netstuff.c:
9603 * gdbserver/gdbreplay.c
9604 * gdbserver/remote-utils.c:
9605 * ser-tcp.c:
9606 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9607 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9608 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9609 'getaddrinfo' and 'freeaddrinfo' were not available before
9610 Windows XP, and mingw.org's MinGW headers by default define
9611 _WIN32_WINNT to 0x500.
9612
827f438f
GB
96132019-03-01 Gary Benson <gbenson@redhat.com>
9614
9615 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9616
92137da0
RO
96172019-02-28 Brian Vandenberg <phantall@gmail.com>
9618 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9619
9620 PR gdb/8527
9621 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9622 set_sigint_trap, clear_sigint_trap.
9623
799efbe8
PW
96242019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9625
9626 * target.c (target_detach): Clear the regcache and the
9627 frame cache.
9628
8ed25214
PA
96292019-02-27 Pedro Alves <palves@redhat.com>
9630
9631 * utils.c (set_screen_size): When we cap the height/width sizes,
9632 tweak the corresponding command variable to show "unlimited":
9633
23031e31
SJ
96342019-02-27 Saagar Jha <saagar@saagarjha.com>
9635 Pedro Alves <palves@redhat.com>
9636
9637 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9638 before calling rl_set_screen_size.
9639
6c28e44a
TT
96402019-02-27 Tom Tromey <tromey@adacore.com>
9641
9642 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9643 define.
9644 * python/py-value.c: Remove Python 2.4 workaround.
9645 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9646 workaround.
9647 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9648 Python 2.4 workaround.
9649 * python/python-internal.h: Remove Python 2.4 comment.
9650 (Py_ssize_t): Don't define.
9651 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9652 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9653 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9654 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9655 * python/python.c (do_start_initialization): Remove Python 2.4
9656 workaround.
9657 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9658 (print_children): Remove Python 2.4 workaround.
9659 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9660 workaround.
9661 (CHARBUFFERPROC_NAME): Remove.
9662 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9663 Python 2.4 workaround.
9664
2c3fc25d 96652019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 9666
2c3fc25d
KB
9667 * NEWS: Note minimum Python version.
9668
6ca62222
KB
96692019-02-27 Kevin Buettner <kevinb@redhat.com>
9670
9671 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9672 code from these functions. Remove corresponding ifdefs. Use
9673 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9674 Remove gotos and target of gotos.
9675 (infpy_search_memory): Likewise.
9676
f4bc7d2c
AB
96772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9678
9679 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9680 (hppa_gdbarch_init): Don't register deleted functions with
9681 gdbarch.
9682
9734a586
AB
96832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9684
9685 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9686 (h8300_unwind_sp): Delete.
9687 (h8300_dummy_id): Delete.
9688 (h8300_gdbarch_init): Don't register deleted functions with
9689 gdbarch.
9690
68b867f3
AB
96912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9692
9693 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9694 (ft32_unwind_pc): Delete.
9695 (ft32_unwind_sp): Delete.
9696 (ft32_gdbarch_init): Don't register deleted functions with
9697 gdbarch.
9698
2fbe7ad0
AB
96992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9700
9701 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9702 (frv_unwind_pc): Delete.
9703 (frv_unwind_sp): Delete.
9704 (frv_gdbarch_init): Don't register deleted functions with
9705 gdbarch.
9706
76055cbe
AB
97072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9708
9709 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9710 (riscv_unwind_pc): Delete.
9711 (riscv_unwind_sp): Delete.
9712 (riscv_gdbarch_init): Don't register deleted functions with
9713 gdbarch.
9714
4133e5a1
AB
97152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9716
9717 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9718 (csky_unwind_pc): Delete.
9719 (csky_unwind_sp): Delete.
9720 (csky_gdbarch_init): Don't register deleted functions with
9721 gdbarch.
9722
8010f576
AB
97232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9724
9725 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9726 (cris_unwind_pc): Delete.
9727 (cris_unwind_sp): Delete.
9728 (cris_gdbarch_init): Don't register deleted functions with
9729 gdbarch.
9730
b56bf084
AB
97312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9732
9733 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9734 (bfin_unwind_pc): Delete.
9735 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9736
a19a650f
AB
97372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9738
9739 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9740 (arm_unwind_pc): Delete.
9741 (arm_unwind_sp): Delete.
9742 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9743
f8278c3c
AB
97442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9745
9746 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9747 (arc_unwind_pc): Delete.
9748 (arc_unwind_sp): Delete.
9749 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9750
480e46cf
AB
97512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9752
9753 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9754 (alpha_unwind_pc): Delete.
9755 (alpha_gdbarch_init): Don't register deleted functions with
9756 gdbarch.
9757
7a995095
AB
97582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9759
9760 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9761 (aarch64_unwind_pc): Delete.
9762 (aarch64_unwind_sp): Delete.
9763 (aarch64_gdbarch_init): Don't register deleted functions with
9764 gdbarch.
9765
bf9a735e
AB
97662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9767
9768 * gdbtypes.c (type_align): Don't consider static members when
9769 computing structure alignment.
9770
5561fc30
AB
97712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9772
9773 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9774 return 0 for other types.
9775 * arch-utils.c (default_type_align): Always return 0.
9776 * gdbarch.h: Regenerate.
9777 * gdbarch.sh (type_align): Extend comment.
9778 * gdbtypes.c (type_align): Add additional comments, always call
9779 gdbarch_type_align before applying the default rules.
9780 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9781 generic code will then apply a suitable default.
9782 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9783 types, return 0 for other types.
9784
9335e75a
JB
97852019-02-27 Joel Brobecker <brobecker@adacore.com>
9786
9787 * NEWS: Create a new section for the next release branch.
9788 Rename the section of the current branch, now that it has
9789 been cut.
9790
3d34d8de
JB
97912019-02-27 Joel Brobecker <brobecker@adacore.com>
9792
9793 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9794 * version.in: Bump version to 8.3.50.DATE-git.
9795
143420fb
SM
97962019-02-26 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * aix-thread.c (ptid_cmp): Remove unused variable.
9799 (get_signaled_thread): Likewise.
9800 (store_regs_user_thread): Likewise.
9801 (store_regs_kernel_thread): Likewise.
9802 (fetch_regs_kernel_thread): Remove shadowed variable.
9803
172fb711
AB
98042019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9805
9806 * features/riscv/32bit-cpu.xml: Add register numbers.
9807 * features/riscv/32bit-fpu.c: Regenerate.
9808 * features/riscv/32bit-fpu.xml: Add register numbers.
9809 * features/riscv/64bit-cpu.xml: Add register numbers.
9810 * features/riscv/64bit-fpu.c: Regenerate.
9811 * features/riscv/64bit-fpu.xml: Add register numbers.
9812
26c89782
KB
98132019-02-26 Kevin Buettner <kevinb@redhat.com>
9814
af54ade9 9815 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
9816 * python/py-value.c (convert_buffer_and_type_to_value): New
9817 function.
9818 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9819 Add support for handling an optional second argument. Call
9820 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
9821 * python/python-internal.h (Py_buffer_deleter): New struct.
9822 (Py_buffer_up): New typedef.
9823
0f58c9e8
JB
98242019-02-25 John Baldwin <jhb@FreeBSD.org>
9825
9826 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9827 instead of releasing ownership.
9828
0a0f4c01
JR
98292019-02-25 Jordan Rupprecht <rupprecht@google.com>
9830
9831 * dwarf2read.c (open_and_init_dwp_file): Call
9832 elf_numsections instead of bfd_count_sections to initialize
9833 dwp_file->num_sections.
9834
cd5a152c
TT
98352019-02-25 Tom Tromey <tromey@adacore.com>
9836
9837 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9838
8a6a8513
SDJ
98392019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9840
9841 * gcore.in: Add '--readnever' option when invoking GDB.
9842
04dcda9c
SM
98432019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9844
9845 * MAINTAINERS: Update my email address.
9846
07bc701d
SM
98472019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9848
9849 * build-id.c (build_id_to_debug_bfd_1): New function.
9850 (build_id_to_debug_bfd): Look for separate debug file in
9851 sysroot.
9852
c6f4a5d0
AB
98532019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9854
9855 * gdbarch.sh: Update the copyright year range that is placed into
9856 generated files.
9857
9600246d
KS
98582019-02-22 Keith Seitz <keiths@redhat.com>
9859
9860 PR symtab/23853
9861 * linespec.c (create_sals_line_offset): Search for the default
9862 symtab's filename instead of its fullname.
9863
7557a514
AH
98642019-02-21 Alan Hayward <alan.hayward@arm.com>
9865
9866 * NEWS: Update style defaults.
9867
ee2bcb0c
AH
98682019-02-21 Alan Hayward <alan.hayward@arm.com>
9869
9870 * main.c (captured_main_1): Disable styling in batch mode.
9871
0c95f9ed
TT
98722019-02-20 Tom Tromey <tom@tromey.com>
9873
9874 * symtab.c (symtab_symbol_info): Fix typos.
9875
c763b894
TT
98762019-02-20 Tom Tromey <tromey@adacore.com>
9877
9878 * findcmd.c (_initialize_mem_search): Use upper case for
9879 metasyntactic variables.
9880
0ef8a082
AH
98812019-02-20 Alan Hayward <alan.hayward@arm.com>
9882
9883 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9884 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9885
6caa91b6
SM
98862019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9887
9888 * top.h (source_file_name): Change to std::string.
9889 * top.c (source_file_name): Likewise.
9890 (command_line_input): Adjust.
9891 * cli/cli-script.c (script_from_file): Adjust.
9892
98814c6c
TT
98932019-02-19 Tom Tromey <tromey@adacore.com>
9894
9895 * ravenscar-thread.c
9896 (ravenscar_thread_target::update_thread_list): Don't call
9897 ada_build_task_list.
9898 * ada-lang.h (ada_build_task_list): Don't declare.
9899 * ada-tasks.c (struct ada_tasks_inferior_data)
9900 <task_list_valid_p>: Now bool.
9901 (read_known_tasks, ada_task_list_changed)
9902 (ada_tasks_invalidate_inferior_data): Update.
9903 (read_known_tasks_array): Return bool.
9904 (read_known_tasks_list): Likewise.
9905 (read_known_tasks): Return void.
9906 (ada_build_task_list): Now static.
9907
70cd633e
AB
99082019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9909
9910 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9911 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9912
040b3e95
PW
99132019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9914
9915 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9916 variant for ada_tasks_pspace_data_handle and
9917 ada_tasks_inferior_data_handle.
9918 (ada_tasks_pspace_data_cleanup): New function.
9919 (ada_tasks_inferior_data_cleanup): New function.
9920
9409233b
TT
99212019-02-17 Tom Tromey <tom@tromey.com>
9922
9923 * macrotab.h (macro_source_fullname): Return a std::string.
9924 * macrotab.c (macro_include, check_for_redefinition)
9925 (macro_undef, macro_lookup_definition, foreach_macro)
9926 (foreach_macro_in_scope): Update.
9927 (macro_source_fullname): Return a std::string.
9928 * macrocmd.c (show_pp_source_pos): Update.
9929
6506371f
TT
99302019-02-17 Tom Tromey <tom@tromey.com>
9931
9932 * macrocmd.c (show_pp_source_pos): Style the file names.
9933
0c820d67
TT
99342019-02-17 Tom Tromey <tom@tromey.com>
9935
9936 PR tui/24197:
9937 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9938
a0087920
TT
99392019-02-17 Tom Tromey <tom@tromey.com>
9940
9941 * ada-lang.c (user_select_syms): Use filtered printing.
9942 * utils.c (wrap_style): New global.
9943 (desired_style): Remove.
9944 (emit_style_escape): Add stream parameter.
9945 (set_output_style, reset_terminal_style, prompt_for_continue):
9946 Update.
9947 (flush_wrap_buffer): Only flush gdb_stdout.
9948 (wrap_here): Set wrap_style.
9949 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9950 treat escape sequences as a character. Change when wrap buffer is
9951 flushed.
9952 (fputs_styled): Do not set the output style when the default is
9953 requested.
9954 * ui-style.h (struct ui_file_style) <is_default>: New method.
9955 * source.c (print_source_lines_base): Emit escape sequences in one
9956 piece.
9957
75ba10dc
JB
99582019-02-17 Joel Brobecker <brobecker@adacore.com>
9959
9960 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9961 integers and enumeration types.
9962
a2cd4f14
JB
99632019-02-17 Joel Brobecker <brobecker@adacore.com>
9964
9965 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9966 instead of lookup_symbol_in_language
9967 (do_exact_match): New function.
9968 (ada_get_symbol_name_matcher): Return do_exact_match when
9969 doing a verbatim match.
9970
485b851b
TT
99712019-02-15 Tom Tromey <tromey@adacore.com>
9972
9973 * ravenscar-thread.c (ravenscar_thread_target::resume)
9974 (ravenscar_thread_target::wait): Special case wildcard requests.
9975
0b790b1e
TT
99762019-02-15 Tom Tromey <tromey@adacore.com>
9977
9978 * ravenscar-thread.c (base_ptid): Remove.
9979 (struct ravenscar_thread_target) <close>: New method.
9980 <m_base_ptid>: New member.
9981 <update_inferior_ptid, active_task, task_is_currently_active,
9982 runtime_initialized>: Declare methods.
9983 <ravenscar_thread_target>: Add constructor.
9984 (ravenscar_thread_target::task_is_currently_active)
9985 (ravenscar_thread_target::update_inferior_ptid)
9986 (ravenscar_runtime_initialized): Rename. Now methods.
9987 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9988 (ravenscar_thread_target::update_thread_list): Update.
9989 (ravenscar_thread_target::active_task): Now method.
9990 (ravenscar_thread_target::store_registers)
9991 (ravenscar_thread_target::prepare_to_store)
9992 (ravenscar_thread_target::prepare_to_store)
9993 (ravenscar_thread_target::mourn_inferior): Update.
9994 (ravenscar_inferior_created): Use "new" to create target.
9995 (ravenscar_thread_target::get_ada_task_ptid): Update.
9996 (_initialize_ravenscar): Don't initialize base_ptid.
9997 (ravenscar_ops): Remove global.
9998
dea57a62
TT
99992019-02-15 Tom Tromey <tromey@adacore.com>
10000
10001 * target.h (push_target): Declare new overload.
10002 * target.c (push_target): New overload, taking an rvalue reference.
10003 * remote.c (remote_target::open_1): Use push_target overload.
10004 * corelow.c (core_target_open): Use push_target overload.
10005
989f3c58
TT
100062019-02-15 Tom Tromey <tromey@adacore.com>
10007
10008 * ravenscar-thread.c (is_ravenscar_task)
10009 (ravenscar_task_is_currently_active): Return bool.
10010 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10011 (_initialize_ravenscar): Remove "(void)".
10012 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10013 Return bool.
10014
6cbcc006
TT
100152019-02-15 Tom Tromey <tromey@adacore.com>
10016
10017 * ravenscar-thread.c (ravenscar_runtime_initializer)
10018 (has_ravenscar_runtime, get_running_thread_id)
10019 (ravenscar_thread_target::resume): Fix indentation.
10020
7657f14d
TT
100212019-02-15 Tom Tromey <tromey@adacore.com>
10022
10023 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10024 from ravenscar_arch_ops.
10025 (sparc_ravenscar_ops::fetch_registers)
10026 (sparc_ravenscar_ops::store_registers): Now methods.
10027 (sparc_ravenscar_prepare_to_store): Remove.
10028 (sparc_ravenscar_ops): Redefine.
10029 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10030 methods and destructor. Remove members.
10031 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10032 (ravenscar_thread_target::store_registers)
10033 (ravenscar_thread_target::prepare_to_store): Update.
10034 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10035 Remove.
10036 (struct ppc_ravenscar_powerpc_ops): Derive from
10037 ravenscar_arch_ops.
10038 (ppc_ravenscar_powerpc_ops::fetch_registers)
10039 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10040 (ppc_ravenscar_powerpc_ops): Redefine.
10041 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10042 (ppc_ravenscar_e500_ops::fetch_registers)
10043 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10044 (ppc_ravenscar_e500_ops): Redefine.
10045 * aarch64-ravenscar-thread.c
10046 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10047 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10048 (aarch64_ravenscar_fetch_registers)
10049 (aarch64_ravenscar_store_registers): Now methods.
10050 (aarch64_ravenscar_ops): Redefine.
10051
5b6ea500
TT
100522019-02-15 Tom Tromey <tromey@adacore.com>
10053
10054 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10055 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10056 (ravenscar_thread_target::stopped_by_watchpoint)
10057 (ravenscar_thread_target::stopped_data_address)
10058 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10059
e397fd39
TT
100602019-02-15 Tom Tromey <tromey@adacore.com>
10061
10062 * ravenscar-thread.c: Fix some typos.
10063
cc12f4a8
TT
100642019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10065 Tom Tromey <tromey@adacore.com>
10066
10067 * ada-lang.c (ada_exception_sal): Change addr_string to a
10068 std::string.
10069 (create_ada_exception_catchpoint): Update.
10070
5f486660
TT
100712019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10072 Tom Tromey <tromey@adacore.com>
10073
10074 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10075 (bp_location_ops): Remove.
10076 (base_breakpoint_allocate_location): Update.
10077 (free_bp_location): Update.
10078 * ada-lang.c (class ada_catchpoint_location)
10079 <ada_catchpoint_location>: Remove ops parameter.
10080 (ada_catchpoint_location_dtor): Remove.
10081 (ada_catchpoint_location_ops): Remove.
10082 (allocate_location_exception): Update.
10083 * breakpoint.h (struct bp_location_ops): Remove.
10084 (class bp_location) <bp_location>: Remove bp_location_ops
10085 parameter.
10086 <~bp_location>: Add destructor.
10087 <ops>: Remove.
10088
b671c7fb
TS
100892019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10090 Pedro Alves <palves@redhat.com>
10091
10092 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10093 'PATH_MAX'.
10094
8071c5ce
DM
100952019-02-14 David Michael <fedora.dm0@gmail.com>
10096 Samuel Thibault <samuel.thibault@gnu.org>
10097 Thomas Schwinge <thomas@codesourcery.com>
10098
10099 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10100 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10101
b1041ae0
TS
101022019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10103
924514e1
TS
10104 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10105 (check_empty): Use "const char *".
10106
c29ee8d4
TS
10107 * gnu-nat.c (gnu_nat_target::detach): Instead of
10108 'detach_inferior (pid)' call
10109 'detach_inferior (find_inferior_pid (pid))'.
10110
6c6ef69f
TS
10111 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10112 'nat/fork-inferior.o'.
10113 * gnu-nat.c: #include "nat/fork-inferior.h".
10114
2d0a338c
TS
10115 * gnu-nat.c (gnu_nat_target::detach): Instead of
10116 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10117 * gnu-nat.h: #include "inf-child.h".
10118 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10119 'i386_gnu_nat_target::fetch_registers'.
10120 (gnu_store_registers): Rename/move to
10121 'i386_gnu_nat_target::store_registers'.
10122
cabb5f06
TS
10123 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10124 * gnu-nat.h (mach_thread_info): New function.
10125 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10126
b1041ae0
TS
10127 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10128
2988d01e
KF
101292019-02-14 Frederic Konrad <konrad@adacore.com>
10130
10131 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10132
c559d709
JB
101332019-02-14 Joel Brobecker <brobecker@adacore.com>
10134
10135 * windows-nat.c (windows_add_thread): Add new parameter
10136 "main_thread_p" with default value set to false. Update
10137 function documentation as well as all callers.
10138 (windows_delete_thread): Likewise.
10139 (fake_create_process): Update call to windows_add_thread.
10140 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10141 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10142 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10143 call to windows_delete_thread.
10144
007024cc
SM
101452019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10146
10147 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10148
f62318e9
JB
101492019-02-12 John Baldwin <jhb@FreeBSD.org>
10150
10151 * symfile.c (find_separate_debug_file): Use canonical path of
10152 sysroot with child_path instead of gdb_sysroot if it is valid.
10153
cd4b7848
JB
101542019-02-12 John Baldwin <jhb@FreeBSD.org>
10155
10156 * symfile.c (find_separate_debug_file): Use child_path to
10157 determine if an object file is under a sysroot.
10158
efac4bfe
JB
101592019-02-12 John Baldwin <jhb@FreeBSD.org>
10160
10161 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10162 unittests/child-path-selftests.c.
10163 * common/pathstuff.c (child_path): New function.
10164 * common/pathstuff.h (child_path): New prototype.
10165 * unittests/child-path-selftests.c: New file.
10166
402d2bfe
JB
101672019-02-12 John Baldwin <jhb@FreeBSD.org>
10168
10169 * symfile.c (find_separate_debug_file): Look for separate debug
10170 files in debug directories under the sysroot.
10171
1ed9f74e
PW
101722019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10173
10174 * symtab.h (struct minimal_symbol data_p): New const method.
10175 (struct minimal_symbol text_p): Likewise.
10176 * symtab.c (output_source_filename): Use file name style
10177 to print file name.
10178 (print_symbol_info): Likewise.
10179 (print_msymbol_info): Use address style to print addresses.
10180 Use function name style to print executable text symbols.
10181 (expand_symtab_containing_pc): Use data_p.
10182 (find_pc_sect_compunit_symtab): Likewise.
10183
2636d81d
PW
101842019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10185
10186 * breakpoint.c (describe_other_breakpoints): Use address style
10187 to print addresses.
10188 (say_where): Likewise.
10189
ac8c53cc
PW
101902019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10191
10192 * ada-typeprint.c (print_func_type): Print function name
10193 style to print function name.
10194 * c-typeprint.c (c_print_type_1): Likewise.
10195
ea638c43
AH
101962019-02-11 Alan Hayward <alan.hayward@arm.com>
10197
10198 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10199 for execve.
10200
ab759ca8
PW
102012019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10202
10203 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10204 type_stack.
10205
aff29d1c
JB
102062019-02-10 Joel Brobecker <brobecker@adacore.com>
10207
10208 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10209 TYPE_CODE_REF types.
10210
617126bc
JW
102112019-02-08 Jim Wilson <jimw@sifive.com>
10212
10213 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10214 (riscv_linux_fregset): New.
10215 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10216
46e3ed7f
TT
102172019-02-07 Tom Tromey <tom@tromey.com>
10218
10219 * thread.c (thread_cancel_execution_command): Update.
10220 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10221 methods.
10222 (struct thread_fsm_ops): Remove.
10223 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10224 (thread_fsm_should_stop, thread_fsm_return_value)
10225 (thread_fsm_set_finished, thread_fsm_finished_p)
10226 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10227 Don't declare.
10228 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10229 * infrun.c (clear_proceed_status_thread)
10230 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10231 (print_stop_event): Update.
10232 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10233 Add constructor.
10234 (step_command_fsm_ops): Remove.
10235 (new_step_command_fsm): Remove.
10236 (step_1): Update.
10237 (step_command_fsm::should_stop): Rename from
10238 step_command_fsm_should_stop.
10239 (step_command_fsm::clean_up): Rename from
10240 step_command_fsm_clean_up.
10241 (step_command_fsm::do_async_reply_reason): Rename from
10242 step_command_fsm_async_reply_reason.
10243 (struct until_next_fsm): Inherit from thread_fsm. Add
10244 constructor.
10245 (until_next_fsm_ops): Remove.
10246 (new_until_next_fsm): Remove.
10247 (until_next_fsm::should_stop): Rename from
10248 until_next_fsm_should_stop.
10249 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10250 (until_next_fsm::do_async_reply_reason): Rename from
10251 until_next_fsm_async_reply_reason.
10252 (struct finish_command_fsm): Inherit from thread_fsm. Add
10253 constructor. Change type of breakpoint.
10254 (finish_command_fsm_ops): Remove.
10255 (new_finish_command_fsm): Remove.
10256 (finish_command_fsm::should_stop): Rename from
10257 finish_command_fsm_should_stop.
10258 (finish_command_fsm::clean_up): Rename from
10259 finish_command_fsm_clean_up.
10260 (finish_command_fsm::return_value): Rename from
10261 finish_command_fsm_return_value.
10262 (finish_command_fsm::do_async_reply_reason): Rename from
10263 finish_command_fsm_async_reply_reason.
10264 (finish_command): Update.
10265 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10266 Add constructor.
10267 (call_thread_fsm_ops): Remove.
10268 (call_thread_fsm::call_thread_fsm): Rename from
10269 new_call_thread_fsm.
10270 (call_thread_fsm::should_stop): Rename from
10271 call_thread_fsm_should_stop.
10272 (call_thread_fsm::should_notify_stop): Rename from
10273 call_thread_fsm_should_notify_stop.
10274 (run_inferior_call, call_function_by_hand_dummy): Update.
10275 * cli/cli-interp.c (should_print_stop_to_console): Update.
10276 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10277 Add constructor. Change type of location_breakpoint,
10278 caller_breakpoint.
10279 (until_break_fsm_ops): Remove.
10280 (new_until_break_fsm): Remove.
10281 (until_break_fsm::should_stop): Rename from
10282 until_break_fsm_should_stop.
10283 (until_break_fsm::clean_up): Rename from
10284 until_break_fsm_clean_up.
10285 (until_break_fsm::do_async_reply_reason): Rename from
10286 until_break_fsm_async_reply_reason.
10287 (until_break_command): Update.
10288 * thread-fsm.c: Remove.
10289 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10290
1a5c2598
TT
102912019-02-07 Tom Tromey <tom@tromey.com>
10292
10293 * yy-remap.h: Add include guard.
10294 * xtensa-tdep.h: Add include guard.
10295 * xcoffread.h: Rename include guard.
10296 * varobj-iter.h: Add include guard.
10297 * tui/tui.h: Rename include guard.
10298 * tui/tui-winsource.h: Rename include guard.
10299 * tui/tui-wingeneral.h: Rename include guard.
10300 * tui/tui-windata.h: Rename include guard.
10301 * tui/tui-win.h: Rename include guard.
10302 * tui/tui-stack.h: Rename include guard.
10303 * tui/tui-source.h: Rename include guard.
10304 * tui/tui-regs.h: Rename include guard.
10305 * tui/tui-out.h: Rename include guard.
10306 * tui/tui-layout.h: Rename include guard.
10307 * tui/tui-io.h: Rename include guard.
10308 * tui/tui-hooks.h: Rename include guard.
10309 * tui/tui-file.h: Rename include guard.
10310 * tui/tui-disasm.h: Rename include guard.
10311 * tui/tui-data.h: Rename include guard.
10312 * tui/tui-command.h: Rename include guard.
10313 * tic6x-tdep.h: Add include guard.
10314 * target/waitstatus.h: Rename include guard.
10315 * target/wait.h: Rename include guard.
10316 * target/target.h: Rename include guard.
10317 * target/resume.h: Rename include guard.
10318 * target-float.h: Rename include guard.
10319 * stabsread.h: Add include guard.
10320 * rs6000-tdep.h: Add include guard.
10321 * riscv-fbsd-tdep.h: Add include guard.
10322 * regformats/regdef.h: Rename include guard.
10323 * record.h: Rename include guard.
10324 * python/python.h: Rename include guard.
10325 * python/python-internal.h: Rename include guard.
10326 * python/py-stopevent.h: Rename include guard.
10327 * python/py-ref.h: Rename include guard.
10328 * python/py-record.h: Rename include guard.
10329 * python/py-record-full.h: Rename include guard.
10330 * python/py-record-btrace.h: Rename include guard.
10331 * python/py-instruction.h: Rename include guard.
10332 * python/py-events.h: Rename include guard.
10333 * python/py-event.h: Rename include guard.
10334 * procfs.h: Add include guard.
10335 * proc-utils.h: Add include guard.
10336 * p-lang.h: Add include guard.
10337 * or1k-tdep.h: Rename include guard.
10338 * observable.h: Rename include guard.
10339 * nto-tdep.h: Rename include guard.
10340 * nat/x86-linux.h: Rename include guard.
10341 * nat/x86-linux-dregs.h: Rename include guard.
10342 * nat/x86-gcc-cpuid.h: Add include guard.
10343 * nat/x86-dregs.h: Rename include guard.
10344 * nat/x86-cpuid.h: Rename include guard.
10345 * nat/ppc-linux.h: Rename include guard.
10346 * nat/mips-linux-watch.h: Rename include guard.
10347 * nat/linux-waitpid.h: Rename include guard.
10348 * nat/linux-ptrace.h: Rename include guard.
10349 * nat/linux-procfs.h: Rename include guard.
10350 * nat/linux-osdata.h: Rename include guard.
10351 * nat/linux-nat.h: Rename include guard.
10352 * nat/linux-namespaces.h: Rename include guard.
10353 * nat/linux-btrace.h: Rename include guard.
10354 * nat/glibc_thread_db.h: Rename include guard.
10355 * nat/gdb_thread_db.h: Rename include guard.
10356 * nat/gdb_ptrace.h: Rename include guard.
10357 * nat/fork-inferior.h: Rename include guard.
10358 * nat/amd64-linux-siginfo.h: Rename include guard.
10359 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10360 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10361 * nat/aarch64-linux.h: Rename include guard.
10362 * nat/aarch64-linux-hw-point.h: Rename include guard.
10363 * mn10300-tdep.h: Add include guard.
10364 * mips-linux-tdep.h: Add include guard.
10365 * mi/mi-parse.h: Rename include guard.
10366 * mi/mi-out.h: Rename include guard.
10367 * mi/mi-main.h: Rename include guard.
10368 * mi/mi-interp.h: Rename include guard.
10369 * mi/mi-getopt.h: Rename include guard.
10370 * mi/mi-console.h: Rename include guard.
10371 * mi/mi-common.h: Rename include guard.
10372 * mi/mi-cmds.h: Rename include guard.
10373 * mi/mi-cmd-break.h: Rename include guard.
10374 * m2-lang.h: Add include guard.
10375 * location.h: Rename include guard.
10376 * linux-record.h: Rename include guard.
10377 * linux-nat.h: Add include guard.
10378 * linux-fork.h: Add include guard.
10379 * i386-darwin-tdep.h: Rename include guard.
10380 * hppa-linux-offsets.h: Add include guard.
10381 * guile/guile.h: Rename include guard.
10382 * guile/guile-internal.h: Rename include guard.
10383 * gnu-nat.h: Rename include guard.
10384 * gdb-stabs.h: Rename include guard.
10385 * frv-tdep.h: Add include guard.
10386 * f-lang.h: Add include guard.
10387 * event-loop.h: Add include guard.
10388 * darwin-nat.h: Rename include guard.
10389 * cp-abi.h: Rename include guard.
10390 * config/sparc/nm-sol2.h: Rename include guard.
10391 * config/nm-nto.h: Rename include guard.
10392 * config/nm-linux.h: Add include guard.
10393 * config/i386/nm-i386gnu.h: Rename include guard.
10394 * config/djgpp/nl_types.h: Rename include guard.
10395 * config/djgpp/langinfo.h: Rename include guard.
10396 * compile/gcc-cp-plugin.h: Add include guard.
10397 * compile/gcc-c-plugin.h: Add include guard.
10398 * compile/compile.h: Rename include guard.
10399 * compile/compile-object-run.h: Rename include guard.
10400 * compile/compile-object-load.h: Rename include guard.
10401 * compile/compile-internal.h: Rename include guard.
10402 * compile/compile-cplus.h: Rename include guard.
10403 * compile/compile-c.h: Rename include guard.
10404 * common/xml-utils.h: Rename include guard.
10405 * common/x86-xstate.h: Rename include guard.
10406 * common/version.h: Rename include guard.
10407 * common/vec.h: Rename include guard.
10408 * common/tdesc.h: Rename include guard.
10409 * common/selftest.h: Rename include guard.
10410 * common/scoped_restore.h: Rename include guard.
10411 * common/scoped_mmap.h: Rename include guard.
10412 * common/scoped_fd.h: Rename include guard.
10413 * common/safe-iterator.h: Rename include guard.
10414 * common/run-time-clock.h: Rename include guard.
10415 * common/refcounted-object.h: Rename include guard.
10416 * common/queue.h: Rename include guard.
10417 * common/ptid.h: Rename include guard.
10418 * common/print-utils.h: Rename include guard.
10419 * common/preprocessor.h: Rename include guard.
10420 * common/pathstuff.h: Rename include guard.
10421 * common/observable.h: Rename include guard.
10422 * common/netstuff.h: Rename include guard.
10423 * common/job-control.h: Rename include guard.
10424 * common/host-defs.h: Rename include guard.
10425 * common/gdb_wait.h: Rename include guard.
10426 * common/gdb_vecs.h: Rename include guard.
10427 * common/gdb_unlinker.h: Rename include guard.
10428 * common/gdb_unique_ptr.h: Rename include guard.
10429 * common/gdb_tilde_expand.h: Rename include guard.
10430 * common/gdb_sys_time.h: Rename include guard.
10431 * common/gdb_string_view.h: Rename include guard.
10432 * common/gdb_splay_tree.h: Rename include guard.
10433 * common/gdb_setjmp.h: Rename include guard.
10434 * common/gdb_ref_ptr.h: Rename include guard.
10435 * common/gdb_optional.h: Rename include guard.
10436 * common/gdb_locale.h: Rename include guard.
10437 * common/gdb_assert.h: Rename include guard.
10438 * common/filtered-iterator.h: Rename include guard.
10439 * common/filestuff.h: Rename include guard.
10440 * common/fileio.h: Rename include guard.
10441 * common/environ.h: Rename include guard.
10442 * common/common-utils.h: Rename include guard.
10443 * common/common-types.h: Rename include guard.
10444 * common/common-regcache.h: Rename include guard.
10445 * common/common-inferior.h: Rename include guard.
10446 * common/common-gdbthread.h: Rename include guard.
10447 * common/common-exceptions.h: Rename include guard.
10448 * common/common-defs.h: Rename include guard.
10449 * common/common-debug.h: Rename include guard.
10450 * common/cleanups.h: Rename include guard.
10451 * common/buffer.h: Rename include guard.
10452 * common/btrace-common.h: Rename include guard.
10453 * common/break-common.h: Rename include guard.
10454 * cli/cli-utils.h: Rename include guard.
10455 * cli/cli-style.h: Rename include guard.
10456 * cli/cli-setshow.h: Rename include guard.
10457 * cli/cli-script.h: Rename include guard.
10458 * cli/cli-interp.h: Rename include guard.
10459 * cli/cli-decode.h: Rename include guard.
10460 * cli/cli-cmds.h: Rename include guard.
10461 * charset-list.h: Add include guard.
10462 * buildsym-legacy.h: Rename include guard.
10463 * bfin-tdep.h: Add include guard.
10464 * ax.h: Rename include guard.
10465 * arm-linux-tdep.h: Add include guard.
10466 * arm-fbsd-tdep.h: Add include guard.
10467 * arch/xtensa.h: Rename include guard.
10468 * arch/tic6x.h: Add include guard.
10469 * arch/i386.h: Add include guard.
10470 * arch/arm.h: Rename include guard.
10471 * arch/arm-linux.h: Rename include guard.
10472 * arch/arm-get-next-pcs.h: Rename include guard.
10473 * arch/amd64.h: Add include guard.
10474 * arch/aarch64-insn.h: Rename include guard.
10475 * arch-utils.h: Rename include guard.
10476 * annotate.h: Add include guard.
10477 * amd64-darwin-tdep.h: Rename include guard.
10478 * aarch64-linux-tdep.h: Add include guard.
10479 * aarch64-fbsd-tdep.h: Add include guard.
10480 * aarch32-linux-nat.h: Add include guard.
10481
ab9268d2
PW
104822019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10483
10484 * macrotab.c (macro_define_internal): New function that
10485 factorizes macro_define_object_internal and macro_define_function
10486 code.
10487 (macro_define_object_internal): Use macro_define_internal.
10488 (macro_define_function): Likewise.
10489
bb0da2b4
PW
104902019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10491
10492 * macrocmd.c (extract_identifier): Return
10493 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10494 callers.
10495
424eb552
JB
104962019-02-06 John Baldwin <jhb@FreeBSD.org>
10497
10498 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10499
1688cb29
TT
105002019-02-05 Tom Tromey <tom@tromey.com>
10501
10502 * target.c (target_stack::unpush): Move assertion earlier.
10503
b5eba2d8
TT
105042019-01-30 Tom Tromey <tom@tromey.com>
10505
10506 PR python/23615:
10507 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10508 (gdbpy_parse_and_eval): Likewise.
10509 * python/python-internal.h (gdbpy_allow_threads): New class.
10510
7054e2ff
JB
105112019-01-28 John Baldwin <jhb@FreeBSD.org>
10512
10513 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10514 (aarch64_fbsd_fpregmap): Move earlier.
10515 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10516 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10517 instead of individual calls to trad_frame_set_reg_addr.
10518 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10519 earlier.
10520 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10521 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10522 instead of individual calls to trad_frame_set_reg_addr.
10523
36c25ffa
AH
105242019-01-28 Alan Hayward <alan.hayward@arm.com>
10525
10526 * CONTRIBUTE: Replace contribution list with wiki link.
10527
a0707f3c
TT
105282019-01-25 Tom Tromey <tom@tromey.com>
10529
10530 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10531
0747795c
TT
105322019-01-25 Tom Tromey <tom@tromey.com>
10533
10534 * xtensa-linux-nat.c: Fix common/ includes.
10535 * xml-support.h: Fix common/ includes.
10536 * xml-support.c: Fix common/ includes.
10537 * x86-linux-nat.c: Fix common/ includes.
10538 * windows-nat.c: Fix common/ includes.
10539 * varobj.h: Fix common/ includes.
10540 * varobj.c: Fix common/ includes.
10541 * value.c: Fix common/ includes.
10542 * valops.c: Fix common/ includes.
10543 * utils.c: Fix common/ includes.
10544 * unittests/xml-utils-selftests.c: Fix common/ includes.
10545 * unittests/utils-selftests.c: Fix common/ includes.
10546 * unittests/unpack-selftests.c: Fix common/ includes.
10547 * unittests/tracepoint-selftests.c: Fix common/ includes.
10548 * unittests/style-selftests.c: Fix common/ includes.
10549 * unittests/string_view-selftests.c: Fix common/ includes.
10550 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10551 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10552 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10553 * unittests/rsp-low-selftests.c: Fix common/ includes.
10554 * unittests/parse-connection-spec-selftests.c: Fix common/
10555 includes.
10556 * unittests/optional-selftests.c: Fix common/ includes.
10557 * unittests/offset-type-selftests.c: Fix common/ includes.
10558 * unittests/observable-selftests.c: Fix common/ includes.
10559 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10560 * unittests/memrange-selftests.c: Fix common/ includes.
10561 * unittests/memory-map-selftests.c: Fix common/ includes.
10562 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10563 * unittests/function-view-selftests.c: Fix common/ includes.
10564 * unittests/environ-selftests.c: Fix common/ includes.
10565 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10566 * unittests/common-utils-selftests.c: Fix common/ includes.
10567 * unittests/cli-utils-selftests.c: Fix common/ includes.
10568 * unittests/array-view-selftests.c: Fix common/ includes.
10569 * ui-file.c: Fix common/ includes.
10570 * tui/tui-io.c: Fix common/ includes.
10571 * tracepoint.h: Fix common/ includes.
10572 * tracepoint.c: Fix common/ includes.
10573 * tracefile-tfile.c: Fix common/ includes.
10574 * top.h: Fix common/ includes.
10575 * top.c: Fix common/ includes.
10576 * thread.c: Fix common/ includes.
10577 * target/waitstatus.h: Fix common/ includes.
10578 * target/waitstatus.c: Fix common/ includes.
10579 * target.h: Fix common/ includes.
10580 * target.c: Fix common/ includes.
10581 * target-memory.c: Fix common/ includes.
10582 * target-descriptions.c: Fix common/ includes.
10583 * symtab.h: Fix common/ includes.
10584 * symfile.c: Fix common/ includes.
10585 * stap-probe.c: Fix common/ includes.
10586 * spu-linux-nat.c: Fix common/ includes.
10587 * sparc-nat.c: Fix common/ includes.
10588 * source.c: Fix common/ includes.
10589 * solib.c: Fix common/ includes.
10590 * solib-target.c: Fix common/ includes.
10591 * ser-unix.c: Fix common/ includes.
10592 * ser-tcp.c: Fix common/ includes.
10593 * ser-pipe.c: Fix common/ includes.
10594 * ser-base.c: Fix common/ includes.
10595 * selftest-arch.c: Fix common/ includes.
10596 * s12z-tdep.c: Fix common/ includes.
10597 * rust-exp.y: Fix common/ includes.
10598 * rs6000-aix-tdep.c: Fix common/ includes.
10599 * riscv-tdep.c: Fix common/ includes.
10600 * remote.c: Fix common/ includes.
10601 * remote-notif.h: Fix common/ includes.
10602 * remote-fileio.h: Fix common/ includes.
10603 * remote-fileio.c: Fix common/ includes.
10604 * regcache.h: Fix common/ includes.
10605 * regcache.c: Fix common/ includes.
10606 * record-btrace.c: Fix common/ includes.
10607 * python/python.c: Fix common/ includes.
10608 * python/py-type.c: Fix common/ includes.
10609 * python/py-inferior.c: Fix common/ includes.
10610 * progspace.h: Fix common/ includes.
10611 * producer.c: Fix common/ includes.
10612 * procfs.c: Fix common/ includes.
10613 * proc-api.c: Fix common/ includes.
10614 * printcmd.c: Fix common/ includes.
10615 * ppc-linux-nat.c: Fix common/ includes.
10616 * parser-defs.h: Fix common/ includes.
10617 * osdata.c: Fix common/ includes.
10618 * obsd-nat.c: Fix common/ includes.
10619 * nat/x86-linux.c: Fix common/ includes.
10620 * nat/x86-linux-dregs.c: Fix common/ includes.
10621 * nat/x86-dregs.h: Fix common/ includes.
10622 * nat/x86-dregs.c: Fix common/ includes.
10623 * nat/ppc-linux.c: Fix common/ includes.
10624 * nat/mips-linux-watch.h: Fix common/ includes.
10625 * nat/mips-linux-watch.c: Fix common/ includes.
10626 * nat/linux-waitpid.c: Fix common/ includes.
10627 * nat/linux-ptrace.h: Fix common/ includes.
10628 * nat/linux-ptrace.c: Fix common/ includes.
10629 * nat/linux-procfs.c: Fix common/ includes.
10630 * nat/linux-personality.c: Fix common/ includes.
10631 * nat/linux-osdata.c: Fix common/ includes.
10632 * nat/linux-namespaces.c: Fix common/ includes.
10633 * nat/linux-btrace.h: Fix common/ includes.
10634 * nat/linux-btrace.c: Fix common/ includes.
10635 * nat/fork-inferior.c: Fix common/ includes.
10636 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10637 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10638 * nat/aarch64-linux.c: Fix common/ includes.
10639 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10640 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10641 * namespace.h: Fix common/ includes.
10642 * mips-linux-tdep.c: Fix common/ includes.
10643 * minsyms.c: Fix common/ includes.
10644 * mi/mi-parse.h: Fix common/ includes.
10645 * mi/mi-main.c: Fix common/ includes.
10646 * mi/mi-cmd-env.c: Fix common/ includes.
10647 * memrange.h: Fix common/ includes.
10648 * memattr.c: Fix common/ includes.
10649 * maint.h: Fix common/ includes.
10650 * maint.c: Fix common/ includes.
10651 * main.c: Fix common/ includes.
10652 * machoread.c: Fix common/ includes.
10653 * location.c: Fix common/ includes.
10654 * linux-thread-db.c: Fix common/ includes.
10655 * linux-nat.c: Fix common/ includes.
10656 * linux-fork.c: Fix common/ includes.
10657 * inline-frame.c: Fix common/ includes.
10658 * infrun.c: Fix common/ includes.
10659 * inflow.c: Fix common/ includes.
10660 * inferior.h: Fix common/ includes.
10661 * inferior.c: Fix common/ includes.
10662 * infcmd.c: Fix common/ includes.
10663 * inf-ptrace.c: Fix common/ includes.
10664 * inf-child.c: Fix common/ includes.
10665 * ia64-linux-nat.c: Fix common/ includes.
10666 * i387-tdep.c: Fix common/ includes.
10667 * i386-tdep.c: Fix common/ includes.
10668 * i386-linux-tdep.c: Fix common/ includes.
10669 * i386-linux-nat.c: Fix common/ includes.
10670 * i386-go32-tdep.c: Fix common/ includes.
10671 * i386-fbsd-tdep.c: Fix common/ includes.
10672 * i386-fbsd-nat.c: Fix common/ includes.
10673 * guile/scm-type.c: Fix common/ includes.
10674 * guile/guile.c: Fix common/ includes.
10675 * go32-nat.c: Fix common/ includes.
10676 * gnu-nat.c: Fix common/ includes.
10677 * gdbthread.h: Fix common/ includes.
10678 * gdbarch-selftests.c: Fix common/ includes.
10679 * gdb_usleep.c: Fix common/ includes.
10680 * gdb_select.h: Fix common/ includes.
10681 * gdb_bfd.c: Fix common/ includes.
10682 * gcore.c: Fix common/ includes.
10683 * fork-child.c: Fix common/ includes.
10684 * findvar.c: Fix common/ includes.
10685 * fbsd-nat.c: Fix common/ includes.
10686 * event-top.c: Fix common/ includes.
10687 * event-loop.c: Fix common/ includes.
10688 * dwarf2read.c: Fix common/ includes.
10689 * dwarf2loc.c: Fix common/ includes.
10690 * dwarf2-frame.c: Fix common/ includes.
10691 * dwarf-index-cache.c: Fix common/ includes.
10692 * dtrace-probe.c: Fix common/ includes.
10693 * disasm-selftests.c: Fix common/ includes.
10694 * defs.h: Fix common/ includes.
10695 * csky-tdep.c: Fix common/ includes.
10696 * cp-valprint.c: Fix common/ includes.
10697 * cp-support.h: Fix common/ includes.
10698 * cp-support.c: Fix common/ includes.
10699 * corelow.c: Fix common/ includes.
10700 * completer.h: Fix common/ includes.
10701 * completer.c: Fix common/ includes.
10702 * compile/compile.c: Fix common/ includes.
10703 * compile/compile-loc2c.c: Fix common/ includes.
10704 * compile/compile-cplus-types.c: Fix common/ includes.
10705 * compile/compile-cplus-symbols.c: Fix common/ includes.
10706 * command.h: Fix common/ includes.
10707 * cli/cli-dump.c: Fix common/ includes.
10708 * cli/cli-cmds.c: Fix common/ includes.
10709 * charset.c: Fix common/ includes.
10710 * build-id.c: Fix common/ includes.
10711 * btrace.h: Fix common/ includes.
10712 * btrace.c: Fix common/ includes.
10713 * breakpoint.h: Fix common/ includes.
10714 * breakpoint.c: Fix common/ includes.
10715 * ax.h:
10716 (enum agent_op): Fix common/ includes.
10717 * ax-general.c (struct aop_map): Fix common/ includes.
10718 * ax-gdb.c: Fix common/ includes.
10719 * auxv.c: Fix common/ includes.
10720 * auto-load.c: Fix common/ includes.
10721 * arm-tdep.c: Fix common/ includes.
10722 * arch/riscv.c: Fix common/ includes.
10723 * arch/ppc-linux-common.c: Fix common/ includes.
10724 * arch/i386.c: Fix common/ includes.
10725 * arch/arm.c: Fix common/ includes.
10726 * arch/arm-linux.c: Fix common/ includes.
10727 * arch/arm-get-next-pcs.c: Fix common/ includes.
10728 * arch/amd64.c: Fix common/ includes.
10729 * arch/aarch64.c: Fix common/ includes.
10730 * arch/aarch64-insn.c: Fix common/ includes.
10731 * arch-utils.c: Fix common/ includes.
10732 * amd64-windows-tdep.c: Fix common/ includes.
10733 * amd64-tdep.c: Fix common/ includes.
10734 * amd64-sol2-tdep.c: Fix common/ includes.
10735 * amd64-obsd-tdep.c: Fix common/ includes.
10736 * amd64-nbsd-tdep.c: Fix common/ includes.
10737 * amd64-linux-tdep.c: Fix common/ includes.
10738 * amd64-linux-nat.c: Fix common/ includes.
10739 * amd64-fbsd-tdep.c: Fix common/ includes.
10740 * amd64-fbsd-nat.c: Fix common/ includes.
10741 * amd64-dicos-tdep.c: Fix common/ includes.
10742 * amd64-darwin-tdep.c: Fix common/ includes.
10743 * agent.c: Fix common/ includes.
10744 * ada-lang.h: Fix common/ includes.
10745 * ada-lang.c: Fix common/ includes.
10746 * aarch64-tdep.c: Fix common/ includes.
10747
2f5c153e
TT
107482019-01-25 Tom Tromey <tom@tromey.com>
10749
10750 * common/create-version.sh: Use common/version.h.
10751
adc6a863
PA
107522019-01-24 Pedro Alves <palves@redhat.com>
10753
10754 * infrun.c (signal_stop, signal_print, signal_program)
10755 (signal_catch, signal_pass): Now arrays instead of pointers.
10756 (update_signals_program_target, do_target_resume)
10757 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10758 * linux-nat.c (linux_nat_target::pass_signals)
10759 (linux_nat_target::create_inferior, linux_nat_target::attach):
10760 Adjust.
10761 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10762 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10763 * procfs.c (procfs_target::pass_signals): Adjust.
10764 * record-full.c (record_full_target::resume): Adjust.
10765 * remote.c (remote_target::pass_signals)
10766 (remote_target::program_signals): Adjust.
10767 * target-debug.h (target_debug_print_signals): Now takes a
10768 gdb::array_view as parameter. Adjust.
10769 * target.h (target_ops) <pass_signals, program_signals>: Replace
10770 pointer and length parameters with gdb::array_view.
10771 (target_pass_signals, target_program_signals): Likewise.
10772 * target-delegates.c: Regenerate.
10773
3046d67a
PA
107742019-01-24 Pedro Alves <palves@redhat.com>
10775
10776 * common/forward-scope-exit.h
10777 (forward_scope_exit::forward_scope_exit): Pass arguments to
10778 m_bind_function directly, instead of creating a std::bind and
10779 copying that.
10780
353229bf
AH
107812019-01-24 Alan Hayward <alan.hayward@arm.com>
10782
10783 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10784 for static members.
10785 (pass_in_v_vfp_candidate): Likewise.
10786
311dc83a
TT
107872019-01-23 Tom Tromey <tom@tromey.com>
10788 Pedro Alves <palves@redhat.com>
10789
10790 * regcache.c (class regcache_invalidator): Remove.
10791 (regcache::raw_write): Use make_scope_exit.
10792
296bd123
TT
107932019-01-23 Tom Tromey <tom@tromey.com>
10794
10795 * ui-out.h (class ui_out_emit_type): Update comment.
10796
979a0d13
TT
107972019-01-23 Tom Tromey <tom@tromey.com>
10798
10799 * infrun.c (fetch_inferior_event): Update comment.
10800
d238133d
TT
108012019-01-23 Tom Tromey <tom@tromey.com>
10802 Pedro Alves <palves@redhat.com>
10803
10804 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10805 parameter.
10806 (fetch_inferior_event): Use SCOPE_EXIT.
10807
10808
9885e6bb
TT
108092019-01-23 Tom Tromey <tom@tromey.com>
10810 Pedro Alves <palves@redhat.com>
10811
10812 * infrun.c (disable_thread_events): Delete.
10813 (stop_all_threads): Use SCOPE_EXIT.
10814
286526c1
TT
108152019-01-23 Tom Tromey <tom@tromey.com>
10816 Pedro Alves <palves@redhat.com>
10817
10818 * symfile.c: Include forward-scope-exit.h.
10819 (clear_symtab_users_cleanup): Replace forward declaration with
10820 a FORWARD_SCOPE_EXIT.
10821 (syms_from_objfile_1): Use the forward_scope_exit and
10822 gdb::optional instead of cleanup_function.
10823 (reread_symbols): Use the forward_scope_exit instead of
10824 cleanup_function.
10825 (clear_symtab_users_cleanup): Remove function.
10826
1db93f14
TT
108272019-01-23 Tom Tromey <tom@tromey.com>
10828 Pedro Alves <palves@redhat.com>
10829
10830 * linux-nat.c: Include scope-exit.h.
10831 (cleanup_target_stop): Remove.
10832 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10833 SCOPE_EXIT.
10834
2cc83d1e
TT
108352019-01-23 Tom Tromey <tom@tromey.com>
10836 Pedro Alves <palves@redhat.com>
10837
10838 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10839 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10840
694c6bf5
TT
108412019-01-23 Tom Tromey <tom@tromey.com>
10842 Andrew Burgess <andrew.burgess@embecosm.com>
10843 Pedro Alves <palves@redhat.com>
10844
10845 * infrun.c (fetch_inferior_event): Use scope_exit.
10846 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10847 * top.c (execute_command): Use scope_exit.
10848 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10849 * utils.c (do_bpstat_clear_actions_cleanup)
10850 (make_bpstat_clear_actions_cleanup): Remove.
10851
4c41382a
TT
108522019-01-23 Tom Tromey <tom@tromey.com>
10853 Pedro Alves <palves@redhat.com>
10854
10855 * infrun.c: Include "common/scope-exit.h"
10856 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10857 (wait_for_inferior): Use SCOPE_EXIT.
10858 (fetch_inferior_event): Use scope_exit.
10859
89f8fb50
TT
108602019-01-23 Tom Tromey <tom@tromey.com>
10861 Pedro Alves <palves@redhat.com>
10862
10863 * breakpoint.c (create_breakpoint): Remove cleanup.
10864
5419bdae
TT
108652019-01-23 Tom Tromey <tom@tromey.com>
10866 Andrew Burgess <andrew.burgess@embecosm.com>
10867 Pedro Alves <palves@redhat.com>
10868
e587ef42
PA
108692019-01-23 Pedro Alves <palves@redhat.com>
10870
10871 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10872
77f0e74c
PA
108732019-01-23 Pedro Alves <palves@redhat.com>
10874 Andrew Burgess <andrew.burgess@embecosm.com>
10875
10876 * gdbthread.h: Include "common/forward-scope-exit.h".
10877 (scoped_finish_thread_state): Redefine custom class in terms of
10878 forward_scope_exit.
10879
5b9b3e53
PA
108802019-01-23 Pedro Alves <palves@redhat.com>
10881 Andrew Burgess <andrew.burgess@embecosm.com>
10882
10883 * common/forward-scope-exit.h: New file.
10884
54b65c9b
PA
108852019-01-23 Pedro Alves <palves@redhat.com>
10886 Andrew Burgess <andrew.burgess@embecosm.com>
10887 Tom Tromey <tom@tromey.com>
10888
10889 * common/scope-exit.h: New file.
10890
cf08fb29
PA
108912019-01-23 Pedro Alves <palves@redhat.com>
10892
10893 * common/preprocessor.h (ESC): Rename to ...
10894 (ESC_PARENS): ... this.
10895 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10896 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10897
ae73e2e2
TT
108982019-01-23 Tom Tromey <tom@tromey.com>
10899
10900 * language.h (class scoped_switch_to_sym_language_if_auto):
10901 Initialize m_lang in both cases.
10902
6594e122
AH
109032019-01-23 Alan Hayward <alan.hayward@arm.com>
10904
10905 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10906 with XCNEW.
10907
a7c9855d
TT
109082019-01-22 Tom Tromey <tom@tromey.com>
10909
10910 * corelow.c: Do not include sys/file.h.
10911
93cc1d53
TT
109122019-01-22 Tom Tromey <tom@tromey.com>
10913
10914 * tui/tui-wingeneral.h: Include gdb_curses.h.
10915
38561778
TT
109162019-01-22 Tom Tromey <tom@tromey.com>
10917
10918 * source-cache.h (class source_cache) <get_source_lines,
10919 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10920
37b3ab5b
TT
109212019-01-22 Tom Tromey <tom@tromey.com>
10922
10923 * remote-fileio.h (struct remote_target): Declare.
10924
3fabc016
TT
109252019-01-22 Tom Tromey <tom@tromey.com>
10926
10927 * python/py-arch.c: Do not include py-ref.h.
10928 * python/py-bpevent.c: Do not include py-ref.h.
10929 * python/py-cmd.c: Do not include py-ref.h.
10930 * python/py-continueevent.c: Do not include py-ref.h.
10931 * python/py-event.h: Do not include py-ref.h.
10932 * python/py-evtregistry.c: Do not include py-ref.h.
10933 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10934 * python/py-frame.c: Do not include py-ref.h.
10935 * python/py-framefilter.c: Do not include py-ref.h.
10936 * python/py-function.c: Do not include py-ref.h.
10937 * python/py-infevents.c: Do not include py-ref.h.
10938 * python/py-linetable.c: Do not include py-ref.h.
10939 * python/py-objfile.c: Do not include py-ref.h.
10940 * python/py-param.c: Do not include py-ref.h.
10941 * python/py-prettyprint.c: Do not include py-ref.h.
10942 * python/py-progspace.c: Do not include py-ref.h.
10943 * python/py-symbol.c: Do not include py-ref.h.
10944 * python/py-symtab.c: Do not include py-ref.h.
10945 * python/py-type.c: Do not include py-ref.h.
10946 * python/py-unwind.c: Do not include py-ref.h.
10947 * python/py-utils.c: Do not include py-ref.h.
10948 * python/py-value.c: Do not include py-ref.h.
10949 * python/py-varobj.c: Do not include py-ref.h.
10950 * python/py-xmethods.c: Do not include py-ref.h.
10951 * python/python.c: Do not include py-ref.h.
10952 * varobj.c: Do not include py-ref.h.
10953
6b4d7774
TT
109542019-01-22 Tom Tromey <tom@tromey.com>
10955
10956 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10957 keyword for bcache.
10958
7af7e9b5
TT
109592019-01-22 Tom Tromey <tom@tromey.com>
10960
10961 * compile/compile-cplus-types.c: Remove a comment by #include.
10962
951d1049
TT
109632019-01-22 Tom Tromey <tom@tromey.com>
10964
10965 * compile/gcc-c-plugin.h: Include compile-internal.h.
10966
d65d5705
TT
109672019-01-22 Tom Tromey <tom@tromey.com>
10968
10969 * stabsread.c (EXTERN): Do not define.
10970 (symnum, next_symbol_text_func, processing_gcc_compilation)
10971 (within_function, global_sym_chain, global_stabs)
10972 (previous_stab_code, this_object_header_files)
10973 (n_this_object_header_files)
10974 (n_allocated_this_object_header_files): Define.
10975 * stabsread.h (EXTERN): Never define. Use "extern".
10976
b6fb1ee5
PW
109772019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10978
10979 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10980 history_value.
10981
be6d4f74
TT
109822019-01-21 Tom Tromey <tom@tromey.com>
10983
10984 * ui-out.c: Fix includes.
10985 * tui/tui-source.c: Fix includes.
10986 * target.c: Fix includes.
10987 * remote.c: Fix includes.
10988 * regcache.c: Fix includes.
10989 * python/py-block.c: Fix includes.
10990 * printcmd.c: Fix includes.
10991 * or1k-tdep.c: Fix includes.
10992 * mi/mi-main.c: Fix includes.
10993 * m32r-tdep.c: Fix includes.
10994 * csky-tdep.c: Fix includes.
10995 * compile/compile-cplus-types.c: Fix includes.
10996 * cli/cli-interp.c: Fix includes.
10997
73021deb
AH
109982019-01-21 Alan Hayward <alan.hayward@arm.com>
10999
11000 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11001 for padding.
11002
7932255d
TT
110032019-01-16 Tom Tromey <tom@tromey.com>
11004
11005 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11006 earlier.
11007 (struct objfile) <msymbols_range>: Move from top level.
11008 <msymbols>: New method.
11009 (class objfile_msymbols): Remove.
11010 * symtab.c (default_collect_symbol_completion_matches_break_on):
11011 Update.
11012 * symmisc.c (dump_msymbols): Update.
11013 * stabsread.c (scan_file_globals): Update.
11014 * objc-lang.c (info_selectors_command, info_classes_command)
11015 (find_methods): Update.
11016 * minsyms.c (find_solib_trampoline_target): Update.
11017 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11018 * coffread.c (coff_symfile_read): Update.
11019 * ada-lang.c (ada_lookup_simple_minsym)
11020 (ada_collect_symbol_completion_matches): Update.
11021
604b1bfb
TT
110222019-01-16 Tom Tromey <tom@tromey.com>
11023
11024 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11025 type. Remove no-argument constructor.
11026 <iterator::operator++>: Simplify.
11027 <begin>: Update.
11028 <end>: Use minimal_symbol_count.
11029
f252c6d5
TT
110302019-01-16 Tom Tromey <tom@tromey.com>
11031
11032 * objfiles.h (struct objfile) <psymtabs>: New method.
11033 (class objfile_psymtabs): Remove.
11034 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11035 typedef.
11036 <range>: New method.
11037 (require_partial_symbols): Change return type.
11038 * psymtab.c (require_partial_symbols)
11039 (psym_expand_symtabs_matching): Update.
11040 * mdebugread.c (parse_partial_symbols): Update.
11041 * dbxread.c (dbx_end_psymtab): Update.
11042
b669c953
TT
110432019-01-15 Tom Tromey <tom@tromey.com>
11044
11045 * symtab.c (lookup_objfile_from_block)
11046 (lookup_symbol_in_objfile_symtabs)
11047 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11048 (find_line_symtab, info_sources_command)
11049 (default_collect_symbol_completion_matches_break_on)
11050 (make_source_files_completion_list): Update.
11051 * symmisc.c (print_objfile_statistics, dump_objfile)
11052 (maintenance_print_symbols, maintenance_info_symtabs)
11053 (maintenance_check_symtabs, maintenance_info_line_tables):
11054 Update.
11055 * source.c (select_source_symtab)
11056 (forget_cached_source_info_for_objfile): Update.
11057 * objfiles.h (class objfile_compunits): Remove.
11058 (struct objfile) <compunits_range>: New typedef.
11059 (compunits): New method.
11060 * objfiles.c (objfile_relocate1): Update.
11061 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11062 * maint.c (count_symtabs_and_blocks): Update.
11063 * linespec.c (iterate_over_all_matching_symtabs): Update.
11064 * cp-support.c (add_symbol_overload_list_qualified): Update.
11065 * coffread.c (coff_symtab_read): Update.
11066 * ada-lang.c (add_nonlocal_symbols)
11067 (ada_collect_symbol_completion_matches)
11068 (ada_add_global_exceptions): Update.
11069
7e955d83
TT
110702019-01-15 Tom Tromey <tom@tromey.com>
11071
11072 * progspace.h (program_space) <objfiles_safe_range>: New
11073 typedef.
11074 <objfiles_safe>: New method.
11075 * objfiles.h (class all_objfiles_safe): Remove.
11076 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11077 * jit.c (jit_inferior_exit_hook): Update.
11078
2030c079
TT
110792019-01-17 Tom Tromey <tom@tromey.com>
11080
11081 * progspace.h (program_space) <objfiles_range>: New typedef.
11082 <objfiles>: New method.
11083 <objfiles_head>: Rename from objfiles.
11084 (object_files): Update.
11085 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11086 * guile/scm-pretty-print.c
11087 (ppscm_find_pretty_printer_from_objfiles): Update.
11088 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11089 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11090 Update.
11091 * python/py-progspace.c (pspy_get_objfiles): Update.
11092 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11093 Update.
11094 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11095 (objfpy_lookup_objfile_by_build_id): Update.
11096 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11097 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11098 Update.
11099 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11100 (expand_symtab_containing_pc, lookup_objfile_from_block)
11101 (lookup_static_symbol, basic_lookup_transparent_type)
11102 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11103 (find_line_symtab, info_sources_command)
11104 (default_collect_symbol_completion_matches_break_on)
11105 (make_source_files_completion_list, find_main_name): Update.
11106 * symmisc.c (print_symbol_bcache_statistics)
11107 (print_objfile_statistics, maintenance_print_symbols)
11108 (maintenance_print_msymbols, maintenance_print_objfiles)
11109 (maintenance_info_symtabs, maintenance_check_symtabs)
11110 (maintenance_expand_symtabs, maintenance_info_line_tables):
11111 Update.
11112 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11113 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11114 (map_overlay_command, unmap_overlay_command)
11115 (simple_overlay_update, expand_symtabs_matching)
11116 (map_symbol_filenames): Update.
11117 * symfile-debug.c (set_debug_symfile): Update.
11118 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11119 Update.
11120 * source.c (select_source_symtab, forget_cached_source_info):
11121 Update.
11122 * solib.c (solib_read_symbols): Update.
11123 * solib-spu.c (append_ocl_sos): Update.
11124 * psymtab.c (maintenance_print_psymbols)
11125 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11126 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11127 * printcmd.c (info_symbol_command): Update.
11128 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11129 Update.
11130 * objfiles.h (class all_objfiles): Remove.
11131 * objfiles.c (have_partial_symbols, have_full_symbols)
11132 (have_minimal_symbols, qsort_cmp, update_section_map)
11133 (shared_objfile_contains_address_p)
11134 (default_iterate_over_objfiles_in_search_order): Update.
11135 * objc-lang.c (info_selectors_command, info_classes_command)
11136 (find_methods): Update.
11137 * minsyms.c (find_solib_trampoline_target): Update.
11138 * maint.c (maintenance_info_sections)
11139 (maintenance_translate_address, count_symtabs_and_blocks):
11140 Update.
11141 * main.c (captured_main_1): Update.
11142 * linux-thread-db.c (try_thread_db_load_from_pdir)
11143 (has_libpthread): Update.
11144 * linespec.c (iterate_over_all_matching_symtabs)
11145 (search_minsyms_for_name): Update.
11146 * jit.c (jit_find_objf_with_entry_addr): Update.
11147 * hppa-tdep.c (find_unwind_entry)
11148 (hppa_lookup_stub_minimal_symbol): Update.
11149 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11150 Update.
11151 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11152 (elf_gnu_ifunc_resolve_by_got): Update.
11153 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11154 * dwarf-index-write.c (save_gdb_index_command): Update.
11155 * cp-support.c (add_symbol_overload_list_qualified): Update.
11156 * breakpoint.c (create_overlay_event_breakpoint)
11157 (create_longjmp_master_breakpoint)
11158 (create_std_terminate_master_breakpoint)
11159 (create_exception_master_breakpoint): Update.
11160 * blockframe.c (find_pc_partial_function): Update.
11161 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11162 (ada_collect_symbol_completion_matches)
11163 (ada_add_global_exceptions): Update.
11164
776489e0
TT
111652019-01-17 Tom Tromey <tom@tromey.com>
11166
11167 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11168 declare VEC.
11169 (solib_target_parse_libraries): Change return type.
11170 (library_list_start_segment, library_list_start_section)
11171 (library_list_end_library, library_list_start_library); Update.
11172 (solib_target_free_library_list): Remove.
11173 (solib_target_parse_libraries): Remove cleanup. Change return
11174 type.
11175 (solib_target_current_sos): Update.
11176
6471e7d2
TT
111772019-01-17 Tom Tromey <tromey@bapiya>
11178
11179 * valprint.c: Replace "the the" with "the".
11180 * symtab.c: Replace "the the" with "the".
11181 * solib.c: Replace "the the" with "the".
11182 * solib-dsbt.c: Replace "the the" with "the".
11183 * linespec.c: Replace "the the" with "the".
11184 * dwarf2loc.h: Replace "the the" with "the".
11185 * amd64-windows-tdep.c: Replace "the the" with "the".
11186 * aarch64-tdep.c: Replace "the the" with "the".
11187
c24bdb02
KS
111882019-01-16 Keith Seitz <keiths@redhat.com>
11189
11190 PR gdb/23773
11191 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11192 <builder>: Rename to ..
11193 <m_builder>: ... this and make private.
11194 (dwarf2_cu::get_builder): New method. Change all users of
11195 `builder' to use this method.
11196 (dwarf2_start_symtab): Move to ...
11197 (dwarf2_cu::start_symtab): ... here. Update all callers
11198 (setup_type_unit_groups): Move to ...
11199 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11200 callers.
11201 (dwarf2_cu::reset_builder): New method.
11202 (process_full_compunit, process_full_type_unit): Use
11203 dwarf2_cu::reset_builder.
11204 (follow_die_offset): Record the ancestor CU if it is different
11205 from the followed DIE's CU.
11206 (follow_die_sig_1): Likewise.
11207
8d64371b
TT
112082019-01-15 Tom Tromey <tom@tromey.com>
11209
11210 * remote.c (class remote_state) <buf>: Now a char_vector.
11211 <buf_size>: Remove.
11212 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11213 parameter.
11214 (remote_target::getpkt_or_notif_sane_1)
11215 (remote_target::getpkt_sane)
11216 (remote_target::getpkt_or_notif_sane): Likewise.
11217 (class remote_target) <putpkt>: New overload.
11218 (remote_target::read_frame): Change type of "buf_p". Remove
11219 sizeof_p parameter.
11220 (packet_ok): New overload.
11221 (packet_check_result): New overload.
11222 Update all uses.
11223
bb277751
TT
112242019-01-14 Tom Tromey <tom@tromey.com>
11225
11226 * remote-notif.c (handle_notification, remote_notif_ack)
11227 (remote_notif_parse): Make "buf" const.
11228 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11229 const.
11230 (remote_notif_parse, remote_notif_ack, handle_notification):
11231 Likewise.
11232 * remote.c (remote_notif_stop_parse): Make "buf" const.
11233 (remote_target::remote_parse_stop_reply): Make "buf" const.
11234 (remote_notif_stop_ack): Make "buf" const.
11235
05be00a8
TT
112362019-01-14 Tom Tromey <tom@tromey.com>
11237
11238 * remote.c (remote_console_output): Make parameter const.
11239
491adeca
TT
112402019-01-14 Tom Tromey <tom@tromey.com>
11241
11242 * target-debug.h (target_debug_print_signals): Constify.
11243 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11244 * procfs.c (procfs_target::pass_signals): Update.
11245 * linux-nat.c (linux_nat_target::pass_signals): Update.
11246 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11247 * target-delegates.c: Rebuild.
11248 * remote.c (remote_target::program_signals): Update.
11249 (remote_target::pass_signals): Update.
11250 * target.c (target_pass_signals): Constify argument.
11251 (target_program_signals): Likewise.
11252 * target.h (struct target_ops) <pass_signals, program_signals>:
11253 Constify argument.
11254 (target_pass_signals, target_program_signals): Constify argument.
11255
bbd94648
TT
112562019-01-14 Tom Tromey <tom@tromey.com>
11257
11258 PR tui/28819:
11259 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11260
6f072a10
PFC
112612019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11262
11263 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11264 field.
11265 * rs6000-tdep.c: Include reggroups.h.
11266 (IS_V_ALIAS_PSEUDOREG): Define.
11267 (rs6000_register_name): Return names for the "vX" aliases.
11268 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11269 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11270 aliases. Call default_register_reggroup_p for all other
11271 pseudo-registers.
11272 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11273 New functions.
11274 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11275 Handle "vX" aliases.
11276 (v_alias_pseudo_register_collect): New function.
11277 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11278 (rs6000_gdbarch_init): Initialize "vX" aliases as
11279 pseudo-registers. Restore registration of
11280 rs6000_pseudo_register_reggroup_p with
11281 set_tdesc_pseudo_register_reggroup_p.
11282
1a782351
MF
112832019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11284
11285 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11286 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11287 set_gdbarch_num_pseudo_regs.
11288
d73cff18
PW
112892019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11290
11291 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11292 Remove arg prefixname, add do_set and do_show.
11293 Add member functions set_list and show_list.
11294 * cli/cli-style.c (class cli_style_option): Update accordingly.
11295 (style_set_list): Move to file scope.
11296 (style_show_list): Likewise.
11297 (set_style): Call help_list.
11298 (show_style): Call cmd_show_list.
11299 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11300 Update to use the new macro.
11301
60a90376
JB
113022019-10-12 Joel Brobecker <brobecker@adacore.com>
11303
11304 * ada-lang.c (_initialize_ada_language): Expand the help text
11305 for the "catch exception" command.
11306
9d7c67bf
PW
113072019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11308
11309 * symtab.c (matching_obj_sections): Initialize obj,
11310 declare it closer to its usage.
11311
7cf47dc4
TT
113122019-01-10 Tom Tromey <tom@tromey.com>
11313
11314 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11315 (basic_inf_threads_range): Remove.
11316 (inf_threads_range, inf_non_exited_threads_range)
11317 (safe_inf_threads_range): Use next_adapter.
11318
d3cb6808
KS
113192019-01-10 Keith Seitz <keiths@redhat.com>
11320
11321 PR gdb/23712
11322 PR symtab/23010
11323 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11324 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11325
63a20375
KS
113262019-01-10 Keith Seitz <keiths@redhat.com>
11327
11328 PR gdb/23712
11329 PR symtab/23010
11330 * dictionary.c (pending_to_vector): Remove.
11331 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11332 Remove _1 suffix, replacing functions of the same name. Update
11333 all callers.
11334 (dict_create_hashed, dict_create_hashed_expandable)
11335 (dict_create_linear, dict_create_linear_expandable, dict_free)
11336 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11337 Make functions static.
11338
b026f593
KS
113392019-01-10 Keith Seitz <keiths@redhat.com>
11340
11341 PR gdb/23712
11342 PR symtab/23010
11343 * dictionary.h (struct dictionary): Replace declaration with
11344 multidictionary.
11345 (dict_create_hashed, dict_create_hashed_expandable)
11346 (dict_create_linear, dict_create_linear_expandable)
11347 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11348 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11349 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11350 taking multidictionary argument.
11351 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11352 * block.h (struct block) <dict>: Change to multidictionary
11353 and rename `multidict'.
11354 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11355 symmisc.c: Update all dictionary references to multidictionary.
11356
c7748ee9
KS
113572019-01-10 Keith Seitz <keiths@redhat.com>
11358
11359 PR gdb/23712
11360 PR symtab/23010
11361 * dictionary.c: Include unordered_map.
11362 (pending_to_vector): New function.
11363 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11364 Rewrite the non-"_1" functions to take vector instead
11365 of linked list.
11366 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11367 "new" _1 versions of the same name.
11368 (multidictionary): Define.
11369 (std::hash<enum language): New definition.
11370 (collate_pending_symbols_by_language, mdict_create_hashed)
11371 (mdict_create_hashed_expandable, mdict_create_linear)
11372 (mdict_create_linear_expandable, mdict_free)
11373 (find_language_dictionary, create_new_language_dictionary)
11374 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11375 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11376 (mdict_size, mdict_empty): New functions.
11377 * dictionary.h (mdict_iterator): Define.
11378
67aa1f3c
PA
113792019-01-10 Pedro Alves <palves@redhat.com>
11380
11381 * breakpoint.c (read_uploaded_action)
11382 (create_tracepoint_from_upload): Adjust to use
11383 gdb::unique_xmalloc_ptr.
11384 * ctf.c (ctf_write_uploaded_tp):
11385 (SET_ARRAY_FIELD): Use emplace_back.
11386 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11387 * tracefile-tfile.c (tfile_write_uploaded_tp):
11388 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11389 gdb::unique_xmalloc_ptr.
11390 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11391 at_string, cond_string, cmd_strings>: Replace char pointers
11392 with gdb::unique_xmalloc_ptr.
11393
2f667667
PA
113942019-01-10 Pedro Alves <palves@redhat.com>
11395
11396 * solib-target.c (library_list_start_library): Don't xstrdup name.
11397
36cb7237
PA
113982019-01-10 Pedro Alves <palves@redhat.com>
11399
11400 * mdebugread.c (parse_partial_symbols): Use
11401 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11402
da584958
AB
114032019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11404
11405 * linux-fork.c (scoped_switch_fork_info)
11406 <~scoped_switch_fork_info>: Fix incorrect variable name.
11407
1ef8573c
AB
114082019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11409
11410 * linux-fork.c (scoped_switch_fork_info)
11411 <scoped_switch_fork_info>: Make explicit.
11412 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11413
8d7bcccb
TT
114142019-01-10 Tom Tromey <tom@tromey.com>
11415
11416 * objfiles.h (objfile::reset_psymtabs): Update.
11417 * objfiles.c (objfile::objfile): Update.
11418 * psymtab.h (psymtab_storage::obstack): Update.
11419 (psymtab_storage::m_obstack): Use gdb::optional.
11420 (class psymtab_storage): Update comment. Remove objfile
11421 parameter.
11422 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11423
b596a3c7
TT
114242019-01-10 Tom Tromey <tom@tromey.com>
11425
11426 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11427 <free_psymtabs>: Now private.
11428 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11429 (allocate_psymtab): Use new method.
11430
a9342b62
TT
114312019-01-10 Tom Tromey <tom@tromey.com>
11432
11433 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11434 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11435 * mdebugread.c (parse_partial_symbols): Use
11436 allocate_dependencies.
11437 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11438 allocate_dependencies.
11439 (process_psymtab_comp_unit_reader)
11440 (build_type_psymtab_dependencies): Likewise.
11441 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11442
5af70966
TT
114432019-01-10 Tom Tromey <tom@tromey.com>
11444
11445 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11446 PSYMBOL_SET_LANGUAGE.
11447 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11448
5923a04c
TT
114492019-01-10 Tom Tromey <tom@tromey.com>
11450
11451 * psymtab.h (psymtab_storage::obstack): New method.
11452 <m_obstack>: Rename from obstack; now private.
11453 * psymtab.c (psymtab_storage): Update.
11454 * dwarf2read.c (create_addrmap_from_index)
11455 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11456 Update.
11457
6d6a12bf
TT
114582019-01-10 Tom Tromey <tom@tromey.com>
11459
11460 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11461 * objfiles.h (objfile::reset_psymtabs): New method.
11462
d320c2b5
TT
114632019-01-10 Tom Tromey <tom@tromey.com>
11464
11465 * symmisc.c (print_symbol_bcache_statistics): Update.
11466 (print_objfile_statistics): Update.
11467 * symfile.c (reread_symbols): Update.
11468 * psymtab.h (class psymtab_storage): New.
11469 * psymtab.c (psymtab_storage): New constructor.
11470 (~psymtab_storage): New destructor.
11471 (require_partial_symbols): Update.
11472 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11473 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11474 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11475 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11476 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11477 (start_psymtab_common, end_psymtab_common)
11478 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11479 (allocate_psymtab): Update.
11480 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11481 Update.
11482 (dump_psymtab_addrmap, maintenance_print_psymbols)
11483 (maintenance_check_psymtabs): Update.
11484 (class objfile_psymtabs): Move to objfiles.h.
11485 * psympriv.h (discard_psymtab): Now inline.
11486 (psymtab_discarder::psymtab_discarder): Update.
11487 (psymtab_discarder::~psymtab_discarder): Update.
11488 (ALL_OBJFILE_PSYMTABS): Rewrite.
11489 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11490 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11491 Remove fields.
11492 <partial_symtabs>: New field.
11493 (class objfile_psymtabs): Move from psymtab.h. Update.
11494 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11495 psymbol_cache.
11496 (objfile::~objfile): Don't destroy psymbol_cache.
11497 * mdebugread.c (parse_partial_symbols): Update.
11498 * dwarf2read.c (create_addrmap_from_index)
11499 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11500 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11501 (add_partial_subprogram, dwarf2_ranges_read): Update.
11502 * dwarf-index-write.c (write_address_map)
11503 (write_one_signatured_type, recursively_write_psymbols)
11504 (class debug_names, class debug_names, write_psymtabs_to_index):
11505 Update.
11506
1d94a5a3
TT
115072019-01-10 Tom Tromey <tom@tromey.com>
11508
11509 * symtab.h (SYMBOL_SET_NAMES): Update.
11510 (symbol_set_names): Update.
11511 (MSYMBOL_SET_NAMES): Update.
11512 * symtab.c (symbol_set_names): Change argument to be an
11513 objfile_per_bfd_storage.
11514 * psymtab.c (add_psymbol_to_bcache): Update.
11515 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11516
0f14768a
TT
115172019-01-10 Tom Tromey <tom@tromey.com>
11518
11519 * symtab.c (create_demangled_names_hash): Change argument to be an
11520 objfile_per_bfd_storage.
11521 (symbol_set_names): Update.
11522
6eee24ce
TT
115232019-01-10 Tom Tromey <tom@tromey.com>
11524
11525 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11526 init_psymbol_list.
11527 * psymtab.c (init_psymbol_list): Do nothing if already called.
11528 * psympriv.h (init_psymbol_list): Add comment.
11529 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11530 init_psymbol_list.
11531 * dbxread.c (dbx_symfile_read): Unconditionally call
11532 init_psymbol_list.
11533
75aedd27
TT
115342019-01-10 Tom Tromey <tom@tromey.com>
11535
11536 * xcoffread.c (scan_xcoff_symtab): Update.
11537 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11538 "where".
11539 * mdebugread.c (parse_partial_symbols)
11540 (handle_psymbol_enumerators): Update.
11541 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11542 * dbxread.c (read_dbx_symtab): Update.
11543 * psympriv.h (psymbol_placement): New enum.
11544 (add_psymbol_to_list): Update.
11545
939652a5
TT
115462019-01-10 Tom Tromey <tom@tromey.com>
11547
11548 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11549 static_psymbols parameters.
11550 (scan_xcoff_symtab): Update.
11551 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11552 static_psymbols parameters.
11553 * psympriv.h (start_psymtab_common): Update.
11554 * mdebugread.c (parse_partial_symbols): Update.
11555 * dwarf2read.c (create_partial_symtab): Update.
11556 * dbxread.c (read_dbx_symtab): Update.
11557 (start_psymtab): Remove global_psymbols and static_psymbols
11558 parameters.
11559
baa62830
TT
115602019-01-10 Tom Tromey <tom@tromey.com>
11561
11562 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11563 * psymtab.c (allocate_psymtab): Add comment.
11564 * psympriv.h (allocate_psymtab): Add comment.
11565 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11566 initializations.
11567 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11568
0e8f53ba
TT
115692019-01-10 Tom Tromey <tom@tromey.com>
11570
11571 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11572 Don't declare.
11573 * mipsread.c: Include mdebugread.h.
11574 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11575 Declare.
11576 * elfread.c: Include mdebugread.h.
11577
b22a7c6a
TT
115782019-01-09 Tom Tromey <tom@tromey.com>
11579
11580 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11581 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11582 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11583 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11584 (psym_lookup_symbol, psym_find_last_source_symtab)
11585 (psym_forget_cached_source_info, psym_print_stats)
11586 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11587 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11588 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11589 (psym_find_compunit_symtab_by_address)
11590 (maintenance_print_psymbols, maintenance_info_psymtabs)
11591 (maintenance_check_psymtabs): Use ranged for.
11592 * psymtab.h (class objfile_psymtabs): New.
11593 (require_partial_symbols): Return objfile_psymtabs.
11594 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11595
3b9d3ac2
TT
115962019-01-09 Tom Tromey <tom@tromey.com>
11597
11598 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11599 (find_pc_mapped_section, list_overlays_command)
11600 (map_overlay_command, unmap_overlay_command)
11601 (simple_overlay_update): Use all_objfiles.
11602 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11603 * printcmd.c (info_symbol_command): Use all_objfiles.
11604 * objfiles.h (ALL_OBJSECTIONS): Remove.
11605 * maint.c (maintenance_translate_address): Use all_objfiles.
11606 * gcore.c (gcore_create_callback): Use all_objfiles.
11607 (objfile_find_memory_regions): Likewise.
11608
8b31193a
TT
116092019-01-09 Tom Tromey <tom@tromey.com>
11610
11611 * symtab.c (find_line_symtab, info_sources_command)
11612 (make_source_files_completion_list): Use objfile_compunits.
11613 * source.c (select_source_symtab): Use objfile_compunits.
11614 * objfiles.h (struct objfile): Update comment.
11615 (ALL_OBJFILES): Remove.
11616 (ALL_FILETABS): Remove.
11617 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11618 objfile_compunits.
11619
d5da8b3c
TT
116202019-01-09 Tom Tromey <tom@tromey.com>
11621
11622 * symmisc.c (print_objfile_statistics, dump_objfile)
11623 (maintenance_print_symbols): Use compunit_filetabs.
11624 * source.c (forget_cached_source_info_for_objfile): Use
11625 compunit_filetabs.
11626 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11627 (ALL_FILETABS): Use compunit_filetabs.
11628 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11629 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11630
5accd1a0
TT
116312019-01-09 Tom Tromey <tom@tromey.com>
11632
11633 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11634 (compunit_filetabs): New.
11635 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11636 compunit_filetabs.
11637 (info_sources_command, make_source_files_completion_list): Remove
11638 declaration.
11639 * symmisc.c (print_objfile_statistics, dump_objfile)
11640 (maintenance_print_symbols): Remove declaration.
11641 (maintenance_info_symtabs): Use compunit_filetabs.
11642 (maintenance_info_line_tables): Likewise.
11643 * source.c (select_source_symtab): Change local variable name.
11644 (forget_cached_source_info_for_objfile): Remove declaration.
11645 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11646 * objfiles.c (objfile_relocate1): Remove declaration.
11647 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11648 declaration.
11649 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11650 * coffread.c (coff_symtab_read): Remove declaration.
11651 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11652 compunit_filetabs.
11653
d8aeb77f
TT
116542019-01-09 Tom Tromey <tom@tromey.com>
11655
11656 * symtab.c (lookup_objfile_from_block)
11657 (find_pc_sect_compunit_symtab, search_symbols)
11658 (default_collect_symbol_completion_matches_break_on): Use
11659 objfile_compunits.
11660 * objfiles.h (ALL_COMPUNITS): Remove.
11661 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11662 * cp-support.c (add_symbol_overload_list_qualified): Use
11663 objfile_compunits.
11664 * ada-lang.c (ada_collect_symbol_completion_matches)
11665 (ada_add_global_exceptions): Use objfile_compunits.
11666
592553c4
TT
116672019-01-09 Tom Tromey <tom@tromey.com>
11668
11669 * source.c (select_source_symtab)
11670 (forget_cached_source_info_for_objfile): Remove declaration.
11671 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11672 declaration.
11673 * maint.c (count_symtabs_and_blocks): Remove declaration.
11674 * cp-support.c (add_symbol_overload_list_qualified): Remove
11675 declaration.
11676 * coffread.c (coff_symtab_read): Remove declaration.
11677 * symtab.c (lookup_symbol_in_objfile_symtabs)
11678 (basic_lookup_transparent_type_1): Use objfile_compunits.
11679 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11680 (info_sources_command, search_symbols)
11681 (default_collect_symbol_completion_matches_break_on)
11682 (make_source_files_completion_list): Remove declaration.
11683 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11684 (ada_collect_symbol_completion_matches)
11685 (ada_add_global_exceptions): Remove declaration.
11686 * linespec.c (iterate_over_all_matching_symtabs): Use
11687 objfile_compunits.
11688 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11689 (class objfile_compunits): New.
11690 (ALL_COMPUNITS): Use objfile_compunits.
11691 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11692 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11693 objfile_compunits.
11694 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11695
5325b9bf
TT
116962019-01-09 Tom Tromey <tom@tromey.com>
11697
11698 * symtab.c (search_symbols)
11699 (default_collect_symbol_completion_matches_break_on): Use
11700 objfile_msymbols.
11701 * ada-lang.c (ada_lookup_simple_minsym)
11702 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11703 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11704 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11705 objfile_msymbols.
11706 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11707 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11708 * objc-lang.c (find_methods): Use objfile_msymbols.
11709 (info_selectors_command, info_classes_command): Likewise.
11710 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11711 * objfiles.h (class objfile_msymbols): New.
11712 (ALL_OBJFILE_MSYMBOLS): Remove.
11713 (ALL_MSYMBOLS): Remove.
11714
cac85af2
TT
117152019-01-09 Tom Tromey <tom@tromey.com>
11716
11717 * common/next-iterator.h (next_adapter): Add Iterator template
11718 parameter.
11719 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11720 (class all_objfiles_safe): New.
11721 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11722 * objfiles.c (put_objfile_before): Update comment.
11723 (add_separate_debug_objfile): Likewise.
11724 (free_all_objfiles): Use all_objfiles_safe.
11725 (objfile_purge_solibs): Likewise.
11726
aed57c53
TT
117272019-01-09 Tom Tromey <tom@tromey.com>
11728
11729 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11730 (expand_symtab_containing_pc, lookup_static_symbol)
11731 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11732 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11733 all_objfiles.
11734 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11735 * breakpoint.c (create_overlay_event_breakpoint)
11736 (create_longjmp_master_breakpoint)
11737 (create_std_terminate_master_breakpoint)
11738 (create_exception_master_breakpoint): Use all_objfiles.
11739 * linux-thread-db.c (try_thread_db_load_from_pdir)
11740 (has_libpthread): Use all_objfiles.
11741 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11742 * linespec.c (iterate_over_all_matching_symtabs)
11743 (search_minsyms_for_name): Use all_objfiles.
11744 * maint.c (maintenance_info_sections): Use all_objfiles.
11745 * main.c (captured_main_1): Use all_objfiles.
11746 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11747 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11748 * guile/scm-pretty-print.c
11749 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11750 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11751 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11752 (maintenance_print_msymbols): Use all_objfiles.
11753 * source.c (select_source_symtab): Use all_objfiles.
11754 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11755 * symfile.c (remove_symbol_file_command)
11756 (expand_symtabs_matching, map_symbol_filenames): Use
11757 all_objfiles.
11758 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11759 all_objfiles.
11760 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11761 * objc-lang.c (find_methods): Use all_objfiles.
11762 * objfiles.c (have_partial_symbols, have_full_symbols)
11763 (have_minimal_symbols, qsort_cmp)
11764 (default_iterate_over_objfiles_in_search_order): Use
11765 all_objfiles.
11766 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11767 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11768 (maintenance_check_psymtabs): Use all_objfiles.
11769 (ALL_PSYMTABS): Remove.
11770 * compile/compile-object-run.c (do_module_cleanup): Use
11771 all_objfiles.
11772 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11773 * cp-support.c (add_symbol_overload_list_qualified): Use
11774 all_objfiles.
11775 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11776 Use all_objfiles.
11777 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11778 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11779 all_objfiles.
11780 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11781 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11782 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11783 Uses all_objfiles.
11784 * solib.c (solib_read_symbols): Use all_objfiles
11785
99d89cde
TT
117862019-01-09 Tom Tromey <tom@tromey.com>
11787
11788 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11789 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11790 all_objfiles.
11791 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11792 * symmisc.c (print_symbol_bcache_statistics)
11793 (print_objfile_statistics, maintenance_print_objfiles)
11794 (maintenance_info_symtabs, maintenance_check_symtabs)
11795 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11796 all_objfiles.
11797 * source.c (forget_cached_source_info): Use all_objfiles.
11798 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11799 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11800 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11801 * objfiles.c (update_section_map): Use all_objfiles.
11802 (shared_objfile_contains_address_p): Likewise.
11803 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11804 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11805
21708325
TT
118062019-01-09 Tom Tromey <tom@tromey.com>
11807
11808 * common/next-iterator.h: New file.
11809 * objfiles.h (class all_objfiles): New.
11810 (struct objfile_iterator): New.
11811
669e09f6
PW
118122019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11813
11814 * NEWS: Move the description of the changed "frame", "select-frame",
11815 and "info frame" commands to the Changed commands section.
11816
041be526
SM
118172019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11818
11819 * gdbtypes.c (check_stub_method_group): Remove handling of old
11820 mangling schemes.
11821 * linespec.c (find_methods): Likewise.
11822 * stabsread.c (read_member_functions): Likewise.
11823 * valops.c (search_struct_method): Likewise.
11824 (value_struct_elt_for_reference): Likewise.
11825 * NEWS: Mention this change.
11826
0e2a2133
AB
118272019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11828
11829 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11830 print_source_lines.
11831 * source.c (print_source_lines_base): Update line number check.
11832 (print_source_lines): New function.
11833 (source_lines_range::source_lines_range): New function.
11834 * source.h (class source_lines_range): New class.
11835 (print_source_lines): New declaration.
11836
1055a3b4
PW
118372019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11838
11839 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11840
cfeadda5
TT
118412019-01-08 Tom Tromey <tom@tromey.com>
11842 Simon Marchi <simon.marchi@ericsson.com>
11843
11844 PR gdb/24060
11845 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11846 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11847 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11848 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11849 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11850 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11851
583068ca
AB
118522019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11853
11854 * source.c (select_source_symtab): Move header comment to
11855 declaration in source.h.
11856 (forget_cached_source_info_for_objfile): Likewise.
11857 (forget_cached_source_info): Likewise.
11858 (identify_source_line): Likewise.
11859 * source.h (identify_source_line): Move declaration from symtab.h
11860 and add comment from source.c
11861 (print_source_lines): Likewise.
11862 (forget_cached_source_info_for_objfile): Likewise.
11863 (forget_cached_source_info): Likewise.
11864 (select_source_symtab): Likewise.
11865 (enum print_source_lines_flag): Move definition from symtab.h.
11866 * symtab.h (identify_source_line): Move declaration to source.h.
11867 (print_source_lines): Likewise.
11868 (forget_cached_source_info_for_objfile): Likewise.
11869 (forget_cached_source_info): Likewise.
11870 (select_source_symtab): Likewise.
11871 (enum print_source_lines_flag): Move definition to source.h.
11872 * tui/tui-hooks.c: Add 'source.h' include.
11873
ec98a4ad
AB
118742019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11875
11876 * source.c (print_source_lines_base): Handle requests to print
11877 reverse line number sequences, and guard against empty lines
11878 string.
11879
62ea19c1
AB
118802019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11881
11882 * source.c (print_source_lines_base): Fix skip of '\r' if next
11883 character is '\n'.
11884
9d30e1fd
TT
118852019-01-06 Tom Tromey <tom@tromey.com>
11886
11887 * c-exp.y (struct c_parse_state) <macro_original_text,
11888 expansion_obstack>: New member.
11889 (macro_original_text, expansion_obstack): Remove globals.
11890 (scan_macro_expansion, scanning_macro_expansion)
11891 (finished_macro_expansion): Update.
11892 (scan_macro_cleanup): Remove.
11893 (yylex, c_parse): Update.
11894
c65bac38
TT
118952019-01-06 Tom Tromey <tom@tromey.com>
11896
11897 * c-exp.y (struct c_parse_state) <strings>: New member.
11898 (operator_stoken): Update.
11899
02e12e38
TT
119002019-01-06 Tom Tromey <tom@tromey.com>
11901
11902 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11903 (union type_stack_elt) <typelist_val>: Now a pointer to
11904 std::vector.
11905 (type_stack_cleanup): Don't declare.
11906 (push_typelist): Update.
11907 * parse.c (pop_typelist): Return a std::vector.
11908 (push_typelist): Take a std::vector.
11909 (follow_types): Update. Do not free args.
11910 (type_stack_cleanup): Remove.
11911 * c-exp.y (struct c_parse_state): New.
11912 (cpstate): New global.
11913 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11914 (nonempty_typelist): Update.
11915 (func_mod): Create a new vector.
11916 (c_parse): Create a c_parse_state.
11917 (check_parameter_typelist): Do not delete params.
11918 (function_method): Update. Do not delete type_list.
11919
f097f5ad
TT
119202019-01-06 Tom Tromey <tom@tromey.com>
11921
11922 PR gdb/28155:
11923 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11924 check_typedef.
11925 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11926 (print_return_value): Likewise.
11927
d2adf9f1
TT
119282019-01-05 Tom Tromey <tom@tromey.com>
11929
11930 * contrib/cleanup_check.py: Remove.
11931 * contrib/gcc-with-excheck: Remove.
11932 * contrib/exsummary.py: Remove.
11933 * contrib/excheck.py: Remove.
11934
2eab46b1
JB
119352019-01-05 Joel Brobecker <brobecker@adacore.com>
11936
11937 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11938 NULL. Initialize tpprev to NULL instead of assigning it
11939 to NULL on the next statement.
11940 * windows-nat.c (windows_delete_thread): Remove check for
11941 main_thread_id before printing thread exit notifications.
11942 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11943 Remove thread ID check against main_thread_id.
11944 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11945 windows_delete_thread.
11946 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11947
48c5e7e2
TT
119482019-01-04 Tom Tromey <tom@tromey.com>
11949
11950 * compile/compile.c (_initialize_compile): Use upper case for
11951 metasyntactic variables.
11952 * symmisc.c (_initialize_symmisc): Use upper case for
11953 metasyntactic variables.
11954 * psymtab.c (_initialize_psymtab): Use upper case for
11955 metasyntactic variables.
11956 * demangle.c (demangle_command): Use upper case for metasyntactic
11957 variables.
11958 (_initialize_demangler): Likewise.
11959 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11960 variables.
11961
986041cd
TT
119622019-01-03 Tom Tromey <tom@tromey.com>
11963
11964 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11965
7c711119
TT
119662019-01-03 Tom Tromey <tom@tromey.com>
11967
11968 * python/py-symtab.c (salpy_str): Update.
11969 (struct salpy_sal_object) <symtab>: Now a PyObject.
11970 (salpy_dealloc): Update.
11971 (del_objfile_sal): Use gdbpy_ref.
11972
1b20edf0
TT
119732019-01-03 Tom Tromey <tom@tromey.com>
11974
11975 * python/py-type.c (convert_field): Use new_reference. Return
11976 gdbpy_ref.
11977 (make_fielditem): Return gdbpy_ref.
11978 (typy_fields): Update.
11979 (typy_getitem): Update.
11980 (field_name): Return gdbpy_ref. Use new_reference.
11981 (typy_iterator_iternext): Update.
11982
ea41325b
TT
119832019-01-03 Tom Tromey <tom@tromey.com>
11984
11985 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11986
2a3c71d6
TT
119872019-01-03 Tom Tromey <tom@tromey.com>
11988
11989 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11990 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11991 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11992 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11993 (pspy_set_type_printers): Likewise.
11994 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11995 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11996 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11997 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11998 (objfpy_set_type_printers): Likewise.
11999
5c329e6a
TT
120002019-01-03 Tom Tromey <tom@tromey.com>
12001
12002 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12003 (gdbpy_print_stack): Use gdbpy_err_fetch.
12004 * python/python-internal.h (class gdbpy_err_fetch): New class.
12005 (class gdbpy_enter) <m_error_type, m_error_value,
12006 m_error_traceback>: Remove.
12007 <m_error>: New member.
12008 (gdbpy_exception_to_string): Don't declare.
12009 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12010 * python/py-value.c (convert_value_from_python): Use
12011 gdbpy_err_fetch.
12012 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12013 gdbpy_exception_to_string.
12014 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12015 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12016 gdbpy_err_fetch.
12017
169bb27b
AB
120182019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12019
12020 * linux-nat.c (delete_lwp_cleanup): Delete.
12021 (struct lwp_deleter): New struct.
12022 (lwp_info_up): New typedef.
12023 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12024 lwp_info_up.
12025
a07c8880
AB
120262019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12027
12028 * linux-fork.c (class scoped_switch_fork_info): New class.
12029 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12030
26089c49
AB
120312019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12032
12033 * valops.c (find_overload_match): Remove use of null_cleanup, and
12034 calls to do_cleanups.
12035
06d3e5b0
AB
120362019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12037
12038 * compile/compile-cplus-types.c
12039 (compile_cplus_instance::decl_name): Handle changes to
12040 cp_func_name.
12041 * cp-support.c (cp_func_name): Update header comment, update
12042 return type.
12043 * cp-support.h (cp_func_name): Update return type in declaration.
12044 * valops.c (find_overload_match): Move temp_func local to top
12045 level of function and change its type. Use temp_func to hold and
12046 delete temporary string obtained from cp_func_name.
12047
66644cd3
AB
120482019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12049
12050 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12051 gdb::char_vector, remove cleanup, and update uses of `msg`.
12052
592d8c0a
JW
120532019-01-03 Jim Wilson <jimw@sifive.com>
12054
12055 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12056
c55d06ec
TT
120572019-01-02 Tom Tromey <tom@tromey.com>
12058
12059 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12060 (tdesc_parse_xml): Remove cleanups.
12061 * target-descriptions.h (make_cleanup_free_target_description):
12062 Don't declare.
12063 (target_desc_deleter): New struct.
12064 (target_desc_up): New typedef.
12065 * target-descriptions.c (target_desc_deleter::operator()): Rename
12066 from free_target_description.
12067 (make_cleanup_free_target_description): Remove.
12068
3a6ae42d
TT
120692019-01-02 Tom Tromey <tom@tromey.com>
12070
12071 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12072 constructor, destructor.
12073 (linespec_parser): Remove typedef.
12074 (~linespec_parser): Rename from linespec_parser_delete.
12075 (linespec_lex_to_end, linespec_complete_label)
12076 (linespec_complete): Update.
12077 (decode_line_full): Remove cleanups.
12078 (decode_line_1): Update.
12079
61fd3e73
TT
120802019-01-02 Tom Tromey <tom@tromey.com>
12081
12082 * python/python-internal.h (inferior_to_inferior_object): Change
12083 return type.
12084 * python/py-exitedevent.c (create_exited_event_object): Update.
12085 * python/py-inferior.c (inferior_to_inferior_object): Return
12086 gdbpy_ref.
12087 (python_new_inferior, python_inferior_deleted)
12088 (thread_to_thread_object, delete_thread_object)
12089 (build_inferior_list, gdbpy_selected_inferior): Update.
12090 * python/py-infthread.c (create_thread_object): Update. Also fail
12091 if inferior_to_inferior_object fails.
12092
d20172fc
SM
120932019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12094
12095 * inferior.h (class inferior) <displaced_step_state>: New field.
12096 * infrun.h (struct displaced_step_state): Move here from
12097 infrun.c. Initialize fields, add constructor.
12098 <inf>: Remove field.
12099 <reset>: New method.
12100 * infrun.c (struct displaced_step_inferior_state): Move to
12101 infrun.h.
12102 (displaced_step_inferior_states): Remove.
12103 (get_displaced_stepping_state): Adust.
12104 (displaced_step_in_progress_any_inferior): Adjust.
12105 (displaced_step_in_progress_thread): Adjust.
12106 (displaced_step_in_progress): Adjust.
12107 (add_displaced_stepping_state): Remove.
12108 (get_displaced_step_closure_by_addr): Adjust.
12109 (remove_displaced_stepping_state): Remove.
12110 (infrun_inferior_exit): Call displaced_step_state.reset.
12111 (use_displaced_stepping): Don't check for NULL.
12112 (displaced_step_prepare_throw): Call
12113 get_displaced_stepping_state.
12114 (displaced_step_fixup): Don't check for NULL.
12115 (prepare_for_detach): Don't check for NULL.
12116
e3319240
PW
121172019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12118
12119 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12120 in case of call that did not complete.
12121
5d36dfb9
AU
121222019-01-02 Andrey Utkin <autkin@undo.io>
12123
12124 * symfile.c (find_separate_debug_file): Fix search of debug files for
12125 remote debuggee.
12126
8833fbf0
TT
121272019-01-02 Tom Tromey <tom@tromey.com>
12128
12129 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12130 indentation.
12131 * python/py-frame.c (frapy_older): Remove cast.
12132 (frapy_newer): Likewise.
12133 * python/py-breakpoint.c (local_setattro): Remove cast.
12134 * python/py-arch.c (archpy_name): Remove local variable.
12135 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12136
4ada3dfd
JB
121372019-01-02 Joel Brobecker <brobecker@adacore.com>
12138
12139 * unittests/basic_string_view/element_access/char/empty.cc:
12140 Fix year range in copyright header.
12141
113b7b81
AB
121422019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12143
12144 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12145 Delete.
12146 <operator==>: Update with for removed field.
12147 <hash>: Likewise.
12148 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12149 <isa_features>: ...this.
12150 <abi_features>: New field.
12151 (riscv_isa_flen): Update comment.
12152 (riscv_abi_xlen): New declaration.
12153 (riscv_abi_flen): New declaration.
12154 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12155 isa_features.
12156 (riscv_abi_xlen): New function.
12157 (riscv_isa_flen): Update to get answer from isa_features.
12158 (riscv_abi_flen): New function.
12159 (riscv_has_fp_abi): Update to get answer from abi_features.
12160 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12161 xlen and flen.
12162 (riscv_call_info) <xlen, flen>: Update comment.
12163 (riscv_call_arg_struct): Remove invalid assertions
12164 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12165 is removed.
12166 (riscv_gdbarch_init): Gather isa features and abi features
12167 separately, ensure both match on the gdbarch when reusing an old
12168 gdbarch. Relax an error check to allow 32-bit abi float to run on
12169 a target with 64-bit float hardware.
12170
b18ca514
PW
121712019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12172
12173 * source.c (search_command_helper): Stop reverse search
12174 when line 1 has been searched.
12175
ec70d8db
PW
121762019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12177
12178 * record-full.c (record_full_base_target::close): Rewrite
12179 record_full_core_buf_list free logic.
12180
5b38f9c1
PW
121812019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12182
12183 * break-catch-syscall.c (print_one_catch_syscall): xfree
12184 the last text.
12185
66d91b39
JB
121862019-01-01 Joel Brobecker <brobecker@adacore.com>
12187
12188 * top.c (print_gdb_version): Update Copyright year in version
12189 message.
12190
42a4f53d
JB
121912019-01-01 Joel Brobecker <brobecker@adacore.com>
12192
12193 Update copyright year range in all GDB files.
12194
7e955d83 121952019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 12196
5bbd631d 12197 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 12198
5bbd631d 12199For older changes see ChangeLog-2018.
c906108c
SS
12200\f
12201Local Variables:
12202mode: change-log
12203left-margin: 8
12204fill-column: 74
12205version-control: never
57da7796 12206coding: utf-8
c906108c 12207End:
5bbd631d 12208
This page took 2.707476 seconds and 4 git commands to generate.