Remove some checks of .empty()
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0670413d
TT
12019-08-30 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4 (tui_data_window::display_registers_from)
5 (tui_data_window::display_reg_element_at_line)
6 (tui_data_window::display_registers_from_line): Remove checks of
7 "empty".
8
18bb55c7
TT
92019-08-30 Tom Tromey <tom@tromey.com>
10
11 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
12 Don't declare.
13 * tui/tui-regs.c (tui_data_window::show_registers): Call
14 rerender.
15 (tui_data_window::rerender): Rename from display_all_data.
16 (tui_data_window::rerender): Remove old implementation.
17
1f6d2f10
TT
182019-08-30 Tom Tromey <tom@tromey.com>
19
20 * tui/tui-regs.c (tui_data_window::display_all_data): Change
21 text.
22 * tui/tui-data.h (NO_DATA_STRING): Remove define.
23
16d01f9c
BW
242019-08-29 Bernhard Wodok <barto@gmx.net>
25 Sergio Durigan Junior <sergiodj@redhat.com>
26
27 PR win32/24284
28 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
29
d8f27c60
AB
302019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
33 when searching for types.
34
1f20c35e
AB
352019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
36
37 * f-lang.c (f_language_defn): Use f_print_typedef.
38 * f-lang.h (f_print_typedef): Declare.
39 * f-typeprint.c (f_print_typedef): Define.
40
550105b7
CB
412019-08-27 Christian Biesinger <cbiesinger@google.com>
42
43 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
44
4acfdd20
AB
452019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
46
47 * cli/cli-utils.c (info_print_options_defs): Delete.
48 (make_info_print_options_def_group): Delete.
49 (extract_info_print_options): Delete.
50 (info_print_command_completer): Delete.
51 (info_print_args_help): Add extra parameter, and optionally
52 include text about -n flag.
53 * cli/cli-utils.h (struct info_print_options): Delete.
54 (extract_info_print_options): Delete declaration.
55 (info_print_command_completer): Delete declaration.
56 (info_print_args_help): Add extra parameter, extend header
57 comment.
58 * python/python.c (gdbpy_rbreak): Pass additional parameter to
59 search_symbols.
60 * stack.c (struct info_print_options): New type.
61 (info_print_options_defs): New file scoped variable.
62 (make_info_print_options_def_group): New static function.
63 (info_print_command_completer): New static function.
64 (info_locals_command): Update to use new local functions.
65 (info_args_command): Likewise.
66 (_initialize_stack): Add extra parameter to calls to
67 info_print_args_help.
68 * symtab.c (search_symbols): Add extra parameter, use this to
69 possibly excluse non-debug symbols.
70 (symtab_symbol_info): Add extra parameter, which is passed on to
71 search_symbols.
72 (struct info_print_options): New type.
73 (info_print_options_defs): New file scoped variable.
74 (make_info_print_options_def_group): New static function.
75 (info_print_command_completer): New static function.
76 (info_variables_command): Update to use local functions, and pass
77 extra parameter through to symtab_symbol_info.
78 (info_functions_command): Likewise.
79 (info_types_command): Pass additional argument through to
80 symtab_symbol_info.
81 (rbreak_command): Pass extra argument to search_symbols.
82 (_initialize_symtab): Add extra arguments for calls to
83 info_print_args_help, and update help text for 'info variables',
84 'whereis', and 'info functions' commands.
85 * symtab.h (search_symbols): Add extra argument to declaration.
86 * NEWS: Mention new flags.
87
9aa55206
CB
882019-08-26 Christian Biesinger <cbiesinger@google.com>
89
90 * symtab.c (lookup_static_symbol): Call the new function (and move
91 it down to be next to lookup_global_symbol).
92 (struct global_sym_lookup_data): Add block_enum member and rename to...
93 (struct global_or_static_sym_lookup_data): ...this.
94 (lookup_symbol_global_iterator_cb): Pass block_index instead of
95 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
96 (lookup_symbol_global_or_static_iterator_cb): ...this.
97 (lookup_global_or_static_symbol): New function.
98 (lookup_global_symbol): Call new function.
99
5c31b358
TV
1002019-08-26 Tom de Vries <tdevries@suse.de>
101
102 PR c++/24852
103 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
104 when pc_probe.prob == NULL.
105
23c13d42
SM
1062019-08-25 Simon Marchi <simon.marchi@efficios.com>
107
108 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
109 variable symbol_linkage to symbol_linkage_.
110
beadd3e8
SM
1112019-08-25 Simon Marchi <simon.marchi@efficios.com>
112
113 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
114 represent whether the symbol is static, dynamic, or we don't
115 know.
116
e3ec872f
YS
1172019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
118
119 * gdb/rx-tdep.c (rx_register_names): New.
120 (rx_register_name): Delete.
121 (rx_psw_type): Delete.
122 (rx_fpsw_type): Delete.
123 (rx_register_type): Delete.
124 (rx_gdbarch_init): Convert target-descriptions.
125 (_initialize_rx_tdep): Add initialize_tdesc_rx.
126 * gdb/features/Makefile: Add rx.xml.
127 * gdb/features/rx.xml: New.
128 * gdb/features/rx.c: Generated.
129 * gdb/NEWS: Mention target description support.
130
d0509ba4
CB
1312019-08-22 Christian Biesinger <cbiesinger@google.com>
132
133 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
134 *slot_ptr.
135
2d41fa11
SDJ
1362019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
137
138 * configure.ac: Don't check for 'dlfcn.h' (moved to
139 gdbsupport/common.m4).
140 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
141 'gdbsupport/'.
142 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
143 * compile/compile-c-support.c: Include
144 'gdbsupport/gdb-dlfcn.h'.
145 * gdbsupport/common.m4: Check for 'dlfcn.h'.
146 * gdb-dlfcn.c: Move to...
147 * gdbsupport/gdb-dlfcn.c: ... here.
148 * gdb-dlfcn.h: Move to...
149 * gdbsupport/gdb-dlfcn.h: ... here.
150
de8af808
SL
1512019-08-23 Sandra Loosemore <sandra@codesourcery.com>
152
153 * nios2-tdep.c (struct reg_value): Improve comments. Make
154 the offset field signed.
155
27204489
CB
1562019-08-22 Christian Biesinger <cbiesinger@google.com>
157
158 * python/lib/gdb/__init__.py (_execute_file): New function.
159 * python/python.c (python_run_simple_file): Call gdb._execute_file
160 on Windows.
161
43771869
AB
1622019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
163
164 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
165 all uses as this was never set to anything but a zero value.
166
26c957f1
PA
1672019-08-21 Bogdan Harjoc <harjoc@gmail.com>
168
169 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
170
c07aae6e
CB
1712019-08-21 Christian Biesinger <cbiesinger@google.com>
172
173 * tui/tui-data.h (tui_gen_win_info): Add an =default
174 move constructor, required by some GCC versions.
175
3960cb7a
JF
1762019-08-21 Jinke Fan <fanjinke51@yeah.net>
177
178 * go32-nat.c (go32_sysinfo): Add hygon_p.
179
04c72a68
TT
1802019-08-20 Tom Tromey <tom@tromey.com>
181
182 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
183 line_from_reg_element_no, first_reg_element_no_inline,
184 display_all_data, delete_data_content_windows,
185 erase_data_content>: Now private.
186
072272ce
TT
1872019-08-20 Tom Tromey <tom@tromey.com>
188
189 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
190 (tui_unhighlight_win, tui_highlight_win)
191 (tui_win_info::make_window): Update.
192 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
193
973961bd
TT
1942019-08-20 Tom Tromey <tom@tromey.com>
195
196 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
197 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
198 (MAX_PID_WIDTH): Move to tui-stack.c.
199 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
200 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
201 (MAX_PID_WIDTH): Move from tui-data.h.
202
ab0e1f1a
TT
2032019-08-20 Tom Tromey <tom@tromey.com>
204
205 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
206 * tui/tui-wingeneral.c (box_win): Change type of win_info.
207 (box_win): Update.
208 (tui_gen_win_info::make_window): Rename from tui_make_window.
209 (tui_win_info::make_window): New method.
210 (tui_gen_win_info::make_visible): Update.
211 * tui/tui-source.c (tui_source_window::set_contents): Update.
212 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
213 (tui_data_window::display_registers_from): Update.
214 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
215 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
216 Declare.
217 <can_box>: Remove.
218 <title>: Remove.
219 (struct tui_win_info) <make_window>: Declare.
220 <can_box>: Now virtual.
221 <title>: New member.
222 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
223 * tui/tui-command.c (tui_cmd_window::resize): Update.
224
100c2bf3
TT
2252019-08-20 Tom Tromey <tom@tromey.com>
226
227 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
228 * tui/tui-regs.c (tui_data_window::show_registers): Update.
229 (tui_data_window::check_register_values): Update.
230
fa4dc567
TT
2312019-08-20 Tom Tromey <tom@tromey.com>
232
233 * tui/tui-regs.h (struct tui_data_window): Use
234 DISABLE_COPY_AND_ASSIGN.
235 <regs_content>: Change type, removing unique_ptr.
236 <tui_data_window>: Add move constructor.
237 * tui/tui-regs.c (tui_data_window::show_registers)
238 (tui_data_window::show_register_group)
239 (tui_data_window::display_registers_from)
240 (tui_data_window::display_registers_from)
241 (tui_data_window::first_data_item_displayed)
242 (tui_data_window::delete_data_content_windows)
243 (tui_data_window::rerender, tui_data_window::refresh_window)
244 (tui_data_window::check_register_values): Update.
245
ca02d7c8
TT
2462019-08-20 Tom Tromey <tom@tromey.com>
247
248 * tui/tui-regs.h (struct tui_data_window) <show_registers,
249 show_register_group>: Declare.
250 (tui_show_register_group): Don't declare.
251 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
252 tui_show_registers.
253 (tui_data_window::show_register_group): Rename from
254 tui_show_register_group.
255 (tui_data_window::check_register_values, tui_reg_command):
256 Update.
257 * tui/tui-layout.c (tui_set_layout): Update.
258
63356bfd
TT
2592019-08-20 Tom Tromey <tom@tromey.com>
260
261 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
262 Declare.
263 (tui_check_register_values): Don't declare.
264 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
265 from tui_check_register_values.
266 * tui/tui-hooks.c (tui_register_changed): Update.
267
42cc14a7
TT
2682019-08-20 Tom Tromey <tom@tromey.com>
269
270 * tui/tui-regs.c (tui_reg_layout): Move later.
271 (tui_show_registers): Don't enable TUI mode or change layout.
272
b9ad3686
TT
2732019-08-20 Tom Tromey <tom@tromey.com>
274
275 * tui/tui-regs.h (struct tui_data_item_window)
276 <~tui_data_item_window>: Remove.
277 <content>: Now a unique_xmalloc_ptr.
278 * tui/tui-regs.c (tui_register_format): Return a
279 unique_xmalloc_ptr.
280 (tui_get_register): Update.
281 (~tui_data_item_window): Remove.
282 (tui_data_window::display_registers_from, tui_display_register):
283 Update.
284 * tui/tui-io.h (tui_expand_tabs): Update.
285 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
286 Remove "col" parameter.
287
8e114aab
TT
2882019-08-20 Tom Tromey <tom@tromey.com>
289
290 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
291 field.
292 * tui/tui-regs.c (~tui_data_item_window): Update.
293
1a4f81dd
TT
2942019-08-20 Tom Tromey <tom@tromey.com>
295
296 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
297 earlier.
298
0f8d8876
TT
2992019-08-20 Tom Tromey <tom@tromey.com>
300
301 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
302
605dc2c2
TT
3032019-08-20 Tom Tromey <tom@tromey.com>
304
305 * tui/tui-source.h (struct tui_source_window): Update.
306 * tui/tui-regs.c (tui_show_registers): Update.
307 * tui/tui-disasm.h (struct tui_disasm_window): Update.
308 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
309 (NO_REGS_STRING): Remove defines.
310
aedbe3bb
CM
3112019-08-20 Conrad Meyer <cem@FreeBSD.org>
312
313 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
314 unnecessary thread walk if remote doesn't support the packet.
315
7ce8f214
TT
3162019-08-19 Tom Tromey <tromey@adacore.com>
317
318 * python/py-value.c (value_has_field): Fix indentation.
319
f21c2bd7
TT
3202019-08-19 Tom Tromey <tromey@adacore.com>
321
322 * printcmd.c (do_one_display, info_display_command): Update.
323 * block.h (contained_in): Return bool. Add allow_nested
324 parameter.
325 * block.c (contained_in): Return bool. Add allow_nested
326 parameter.
327
d806ea2d
TT
3282019-08-19 Tom Tromey <tom@tromey.com>
329
330 * configure: Rebuild.
331 * configure.ac: Disallow the combination of -static-libstdc++ and
332 source highlight.
333 * source-cache.c (get_language_name): Handle rust.
334 (source_cache::get_source_lines): Ignore highlighting exceptions.
335
398fdd60
TT
3362019-08-16 Tom Tromey <tom@tromey.com>
337
338 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
339 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
340 (struct tui_source_window_base) <make_visible, refresh_window,
341 resize>: Remove methods.
342 <execution_info>: Remove field.
343 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
344 (tui_show_source_line, tui_source_window_base)
345 (~tui_source_window_base): Update.
346 (tui_source_window_base::resize)
347 (tui_source_window_base::make_visible)
348 (tui_source_window_base::refresh_window): Remove.
349 (tui_source_window_base::update_exec_info): Update.
350 * tui/tui-source.c (tui_source_window::set_contents): Update.
351 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
352
e699d331
TT
3532019-08-16 Tom Tromey <tom@tromey.com>
354
355 * tui/tui-hooks.c (tui_remove_hooks): Don't set
356 deprecated_query_hook.
357
bb01dbfc
TT
3582019-08-16 Tom Tromey <tom@tromey.com>
359
360 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
361 (tui_update_source_windows_with_line): Update.
362 * tui/tui-source.h (struct tui_source_window)
363 <show_symtab_source>: Declare.
364 (tui_show_symtab_source): Don't declare.
365 * tui/tui-source.c (tui_show_symtab_source): Rename from
366 tui_show_symtab_source.
367
81c82c4b
TT
3682019-08-16 Tom Tromey <tom@tromey.com>
369
370 * tui/tui-winsource.h (struct tui_source_window_base)
371 <set_contents>: Declare.
372 * tui/tui-winsource.c
373 (tui_source_window_base::update_source_window_as_is): Update.
374 * tui/tui-source.h (struct tui_source_window) <set_contents>:
375 Declare.
376 (tui_set_source_content): Don't declare.
377 * tui/tui-source.c (tui_source_window::set_contents): Rename from
378 tui_set_source_content.
379 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
380 Declare.
381 (tui_set_disassem_content): Don't declare.
382 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
383 tui_set_disassem_content.
384
2ddaf614
TT
3852019-08-16 Tom Tromey <tom@tromey.com>
386
387 * tui/tui-winsource.h (struct tui_source_window_base)
388 <update_breakpoint_info>: Declare.
389 (tui_update_breakpoint_info): Don't declare.
390 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
391 (tui_update_all_breakpoint_info): Update.
392 (tui_source_window_base::update_breakpoint_info): Rename from
393 tui_update_breakpoint_info.
394 (tui_source_window_base::update_exec_info): Update.
395
017f9828
TT
3962019-08-16 Tom Tromey <tom@tromey.com>
397
398 * tui/tui-winsource.h (struct tui_source_window_base)
399 <update_source_window>: Declare.
400 (tui_update_source_window): Don't declare.
401 * tui/tui-winsource.c
402 (tui_source_window_base::update_source_window): Rename from
403 tui_update_source_window.
404 (tui_source_window_base::rerender): Update.
405 * tui/tui-source.c (tui_source_window::maybe_update): Update.
406 * tui/tui-disasm.c (tui_show_disassem)
407 (tui_show_disassem_and_update_source)
408 (tui_disasm_window::maybe_update): Update.
409
ed8358e9
TT
4102019-08-16 Tom Tromey <tom@tromey.com>
411
412 * tui/tui-winsource.h (struct tui_source_window_base)
413 <update_source_window_as_is>: Declare.
414 (tui_update_source_window_as_is): Don't declare.
415 * tui/tui-winsource.c (tui_update_source_window): Update
416 (tui_source_window_base::update_source_window_as_is): Rename from
417 tui_update_source_window_as_is.
418 (tui_source_window_base::refill): Update.
419 * tui/tui-source.c (tui_show_symtab_source): Update.
420 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
421 Update.
422
20149b6b
TT
4232019-08-16 Tom Tromey <tom@tromey.com>
424
425 * tui/tui-winsource.h (tui_update_source_window)
426 (tui_update_source_window_as_is): Remove "noerror" parameter.
427 * tui/tui-winsource.c (tui_update_source_window)
428 (tui_update_source_window_as_is): Remove "noerror" parameter.
429 (tui_update_source_windows_with_addr)
430 (tui_update_source_windows_with_line)
431 (tui_source_window_base::rerender)
432 (tui_source_window_base::refill): Update.
433 * tui/tui-source.h (tui_set_source_content)
434 (tui_show_symtab_source): Remove "noerror" parameter.
435 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
436 parameter.
437 (tui_show_symtab_source): Likewise.
438 (tui_source_window::maybe_update): Update.
439 * tui/tui-disasm.c (tui_show_disassem)
440 (tui_show_disassem_and_update_source)
441 (tui_disasm_window::do_scroll_vertical)
442 (tui_disasm_window::maybe_update): Update.
443
2d83e710
TT
4442019-08-16 Tom Tromey <tom@tromey.com>
445
446 * tui/tui.c (tui_is_window_visible): Update.
447 * tui/tui-wingeneral.c (tui_make_window)
448 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
449 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
450 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
451 (tui_set_win_height_command, parse_scrolling_args): Update.
452 * tui/tui-source.c (tui_source_window::style_changed): Update.
453 * tui/tui-regs.c (tui_show_registers)
454 (tui_data_window::first_data_item_displayed)
455 (tui_data_window::delete_data_content_windows)
456 (tui_check_register_values, tui_reg_command): Update.
457 * tui/tui-disasm.c (tui_show_disassem): Update.
458 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
459 method.
460 <is_visible>: Remove field.
461 * tui/tui-data.c (tui_next_win, tui_prev_win)
462 (tui_delete_invisible_windows): Update.
463
d4ab829a
TT
4642019-08-16 Tom Tromey <tom@tromey.com>
465
466 * tui/tui-winsource.h (struct tui_source_window_base)
467 <m_has_locator>: Remove.
468 * tui/tui-layout.c (show_source_disasm_command, show_data)
469 (show_source_or_disasm_and_command): Update.
470
aa7ca1bb
AH
4712019-08-16 Alan Hayward <alan.hayward@arm.com>
472
473 * NEWS (Other MI changes): New subsection.
474 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
475 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
476 * arch-utils.c (default_get_pc_address_flags): New function.
477 * arch-utils.h (default_get_pc_address_flags): New declaration.
478 * gdbarch.sh: Add get_pc_address_flags.
479 * gdbarch.c: Regenerate.
480 * gdbarch.h: Likewise.
481 * stack.c (print_pc): New function.
482 (print_frame_info) (print_frame): Call print_pc.
483
6eac171f
TV
4842019-08-16 Tom de Vries <tdevries@suse.de>
485
486 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
487 print_objfile_section_info.
488
3df505f6
TT
4892019-08-15 Tom Tromey <tom@tromey.com>
490
491 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
492 calling update_cmdwin_start_line.
493 * tui/tui-winsource.h (struct tui_source_window_base)
494 <do_make_visible_with_new_height, set_new_height>: Don't declare.
495 <rerender>: Declare.
496 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
497 Call rerender.
498 (tui_source_window_base::set_new_height): Remove.
499 (tui_source_window_base::rerender): Rename from
500 do_make_visible_with_new_height.
501 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
502 resize method.
503 (tui_win_info::make_invisible_and_set_new_height)
504 (tui_win_info::make_visible_with_new_height): Remove.
505 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
506 Declare.
507 * tui/tui-stack.c (tui_locator_window::rerender): New method.
508 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
509 do_make_visible_with_new_height>: Don't declare.
510 <rerender>: Declare.
511 * tui/tui-regs.c (tui_data_window::rerender): Rename from
512 set_new_height.
513 (tui_data_window::do_make_visible_with_new_height): Remove.
514 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
515 call tui_show_locator_content.
516 (tui_gen_win_info::resize): Call rerender.
517 (show_source_or_disasm_and_command): Don't call
518 tui_show_locator_content.
519 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
520 method.
521 (struct tui_win_info) <rerender>: Declare.
522 <set_new_height, make_invisible_and_set_new_height,
523 make_visible_with_new_height>: Don't declare.
524 * tui/tui-data.c (tui_win_list::rerender): New method.
525 * tui/tui-command.h (struct tui_cmd_window)
526 <do_make_visible_with_new_height>: Don't declare.
527 * tui/tui-command.c
528 (tui_cmd_window::do_make_visible_with_new_height): Remove.
529
272560b5
TT
5302019-08-15 Tom Tromey <tromey@adacore.com>
531
532 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
533 * ada-lang.c (ada_enum_name): Likewise.
534
08235187
CB
5352019-08-15 Christian Biesinger <cbiesinger@google.com>
536
537 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
538 leading underscore.
539 (GdbOutputErrorFile): Likewise.
540 (global scope): Adjust constructor calls to GdbOutput{,Error}File
541 accordingly.
542 (execute_unwinders): Rename to have a leading underscore.
543 (auto_load_packages): Likewise.
544 (global scope): Adjust call to auto_load_packages accordingly.
545 (GdbSetPythonDirectory): Likewise.
546 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
547 instead of execute_unwinders.
548
db502012
TT
5492019-08-15 Tom Tromey <tom@tromey.com>
550
551 * tui/tui-layout.c (show_layout, show_source_disasm_command)
552 (show_data): Don't change window visibility.
553 (tui_gen_win_info::resize): Remove special case for command
554 window. Use wresize, when available.
555 (show_source_or_disasm_and_command): Don't change window
556 visibility.
557 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
558 <make_visible>: New method.
559 * tui/tui-command.c (tui_cmd_window::resize): New method.
560
3891b65e
TT
5612019-08-15 Tom Tromey <tom@tromey.com>
562
563 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
564 (struct tui_source_windows): New.
565 * tui/tui-winsource.c (tui_display_main): Update.
566 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
567 (new_height_ok, parse_scrolling_args): Update.
568 * tui/tui-layout.c (show_layout, show_data): Update.
569 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
570 (tui_add_to_source_windows): Don't declare.
571 * tui/tui-data.c (source_windows, tui_source_windows)
572 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
573
ee556432
TT
5742019-08-15 Tom Tromey <tom@tromey.com>
575
576 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
577 Rename from reset.
578 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
579 * tui/tui-layout.c (show_source_disasm_command, show_data):
580 Update.
581 (tui_gen_win_info::resize): Rename.
582 (show_source_or_disasm_and_command): Update.
583 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
584 reset.
585
46f438e3
TT
5862019-08-15 Tom Tromey <tom@tromey.com>
587
588 * tui/tui-stack.c (tui_initialize_static_data): Remove.
589 * tui/tui-interp.c (tui_interp::init): Don't call
590 tui_initialize_static_data.
591 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
592
f4ce562c
TT
5932019-08-15 Tom Tromey <tom@tromey.com>
594
595 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
596 examine tui_win_list.
597
c398c3d0
TT
5982019-08-15 Tom Tromey <tom@tromey.com>
599
600 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
601 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
602 tui_clear_source_content.
603 (tui_clear_source_content): Remove.
604 (tui_source_window_base::do_erase_source_content): Hoist call to
605 content.clear().
606 * tui/tui-stack.c (tui_show_frame_info): Don't call
607 tui_clear_source_content.
608
e25d2004
TT
6092019-08-15 Tom Tromey <tom@tromey.com>
610
611 * tui/tui-winsource.h (struct tui_source_window_base)
612 <do_erase_source_content>: New method.
613 <erase_source_content>: New method.
614 (tui_erase_source_content): Don't declare.
615 * tui/tui-winsource.c (tui_clear_source_content): Update.
616 (tui_source_window_base::do_erase_source_content): Rename from
617 tui_erase_source_content.
618 (tui_source_window_base::show_source_content): Update.
619 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
620 * tui/tui-source.h (struct tui_source_window)
621 <erase_source_content>: New method.
622 * tui/tui-disasm.h (struct tui_disasm_window)
623 <erase_source_content>: New method.
624
002f15c2
TT
6252019-08-15 Tom Tromey <tom@tromey.com>
626
627 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
628 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
629 constructor.
630 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
631 * tui/tui-source.c (tui_set_source_content): Update.
632 * tui/tui-disasm.c (tui_set_disassem_content): Update.
633
c9033fe8
TT
6342019-08-15 Tom Tromey <tom@tromey.com>
635
636 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
637 * tui/tui-winsource.c (tui_line_is_displayed): Move to
638 tui-source.c.
639 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
640 Declare.
641 * tui/tui-source.c (tui_source_window::line_is_displayed): New
642 method.
643 (tui_source_window::maybe_update): Update.
644
088f37dd
TT
6452019-08-15 Tom Tromey <tom@tromey.com>
646
647 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
648 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
649 tui-disasm.c.
650 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
651 Declare.
652 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
653 method.
654 (tui_disasm_window::maybe_update): Update.
655
a54700c6
TT
6562019-08-15 Tom Tromey <tom@tromey.com>
657
658 * tui/tui-winsource.h (struct tui_source_window_base)
659 <maybe_update>: Declare.
660 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
661 method.
662 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
663 Declare.
664 * tui/tui-source.c (tui_source_window::maybe_update): New method.
665 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
666 Declare.
667 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
668
e2a678a5
TT
6692019-08-15 Tom Tromey <tom@tromey.com>
670
671 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
672
f2dda477
TT
6732019-08-15 Tom Tromey <tom@tromey.com>
674
675 * tui/tui-wingeneral.c: Include tui-stack.h.
676 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
677 (struct tui_locator_window): Move from tui-data.h.
678 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
679 (tui_initialize_static_data): Move from tui-data.c.
680 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
681 (struct tui_locator_window): Move to tui-stack.c.
682 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
683 (tui_initialize_static_data): Move to tui-stack.c.
684
ed4a1084
TT
6852019-08-15 Tom Tromey <tom@tromey.com>
686
687 * tui/tui-layout.c (show_source_disasm_command)
688 (show_source_or_disasm_and_command): Use make_visible method, not
689 tui_make_window.
690 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
691 Remove.
692
65962b20
TT
6932019-08-15 Tom Tromey <tom@tromey.com>
694
695 * tui/tui-wingeneral.h (tui_make_window): Update.
696 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
697 parameter.
698 (tui_gen_win_info::make_visible): Update.
699 * tui/tui-regs.c (tui_data_window::display_registers_from):
700 Update.
701 * tui/tui-layout.c (show_source_disasm_command)
702 (show_source_or_disasm_and_command): Update.
703 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
704 (enum tui_box): Remove.
705 (struct tui_win_info) <can_box>: New method.
706 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
707 method.
708
2208ee91
TV
7092019-08-15 Tom de Vries <tdevries@suse.de>
710
711 * linux-nat-trad.c: Include gdbarch.h.
712
75faf5c4
AH
7132019-08-14 Alan Hayward <alan.hayward@arm.com>
714
715 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
716 register sizes.
717
b1c896b3
TT
7182019-08-14 Tom Tromey <tromey@adacore.com>
719
720 * darwin-nat.c: Include gdbarch.h.
721 * darwin-nat-info.c: Include gdbarch.h.
722
6405cd73
TT
7232019-08-13 Tom Tromey <tom@tromey.com>
724
725 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
726 Remove.
727 * tui/tui-data.c (tui_initialize_static_data): Update.
728
5216580d
TT
7292019-08-13 Tom Tromey <tom@tromey.com>
730
731 * tui/tui-winsource.h (struct tui_exec_info_window)
732 <~tui_exec_info_window, maybe_allocate_content, get_content,
733 m_content>: Remove.
734 (struct tui_source_window_base) <set_exec_info_content,
735 show_exec_info_content>: Don't declare.
736 * tui/tui-winsource.c
737 (tui_exec_info_window::maybe_allocate_content): Remove.
738 (tui_source_window_base::update_exec_info): Rename from
739 set_exec_info_content.
740 (tui_source_window_base::show_exec_info_content)
741 (tui_source_window_base::update_exec_info): Remove.
742
93858ad3
TT
7432019-08-13 Tom Tromey <tom@tromey.com>
744
745 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
746 declare.
747 * tui/tui-winsource.c (tui_update_source_window_as_is)
748 (tui_update_source_windows_with_addr, tui_erase_source_content):
749 Update.
750 (tui_clear_exec_info_content): Remove.
751
e321e7ce
TT
7522019-08-13 Tom Tromey <tom@tromey.com>
753
754 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
755 declare.
756 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
757 call tui_erase_exec_info_content.
758 (tui_clear_exec_info_content): Rename from
759 tui_erase_exec_info_content.
760 (tui_clear_exec_info_content): Delete.
761
8270ac62
TT
7622019-08-13 Tom Tromey <tom@tromey.com>
763
764 * tui/tui-winsource.h (struct tui_source_window_base)
765 <show_exec_info_content>: Declare.
766 (tui_show_exec_info_content): Don't declare.
767 * tui/tui-winsource.c
768 (tui_source_window_base::show_exec_info_content): Rename from
769 tui_show_exec_info_content.
770 (tui_source_window_base::update_exec_info): Update.
771
7b56485d
TT
7722019-08-13 Tom Tromey <tom@tromey.com>
773
774 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
775 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
776 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
777 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
778 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
779 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
780 ... here.
781
7ba913dc
TT
7822019-08-13 Tom Tromey <tom@tromey.com>
783
784 * tui/tui-winsource.h (struct tui_source_window_base)
785 <update_exec_info>: Declare.
786 (tui_update_exec_info): Don't declare.
787 * tui/tui-winsource.c (tui_update_source_window_as_is)
788 (tui_source_window_base::refresh_all)
789 (tui_update_all_breakpoint_info): Update.
790 (tui_source_window_base::update_exec_info): Rename from
791 tui_update_exec_info.
792 * tui/tui-stack.c (tui_show_frame_info): Update.
793
37a4a131
TT
7942019-08-13 Tom Tromey <tom@tromey.com>
795
796 * tui/tui-winsource.h (struct tui_source_window_base)
797 <set_exec_info_content>: Declare.
798 (tui_set_exec_info_content): Don't declare.
799 * tui/tui-winsource.c
800 (tui_source_window_base::set_exec_info_content): Rename from
801 tui_set_exec_info_content.
802 (tui_update_exec_info): Update.
803
0bd27e07
TT
8042019-08-13 Tom Tromey <tom@tromey.com>
805
806 * tui/tui-winsource.h (struct tui_source_window_base)
807 <show_source_content>: Declare.
808 (tui_show_source_content): Don't declare.
809 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
810 (tui_source_window_base::show_source_content): Rename from
811 tui_show_source_content.
812 (tui_source_window_base::refresh_all): Update.
813 * tui/tui-layout.c (show_source_disasm_command)
814 (show_source_or_disasm_and_command): Update.
815
b4ef5aeb
TT
8162019-08-13 Tom Tromey <tom@tromey.com>
817
818 * tui/tui-winsource.c (tui_erase_source_content)
819 (tui_show_source_content, tui_source_window_base::refresh_all):
820 Update.
821 * tui/tui-wingeneral.h
822 (tui_check_and_display_highlight_if_needed): Don't declare.
823 * tui/tui-wingeneral.c
824 (tui_win_info::check_and_display_highlight_if_needed): Rename from
825 check_and_display_highlight_if_needed.
826 * tui/tui-win.c (tui_rehighlight_all)
827 (tui_win_info::make_visible_with_new_height): Update.
828 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
829 (tui_data_window::erase_data_content)
830 (tui_data_window::display_all_data): Update.
831 * tui/tui-data.h (struct tui_win_info)
832 <check_and_display_highlight_if_needed>: Declare.
833
fede5273
TT
8342019-08-13 Tom Tromey <tom@tromey.com>
835
836 * tui/tui-win.c (tui_resize_all): Call
837 tui_delete_invisible_windows.
838 * tui/tui-layout.c (show_layout): Call
839 tui_delete_invisible_windows.
840 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
841 * tui/tui-data.c (tui_delete_invisible_windows): New function.
842
22c3f490
TT
8432019-08-13 Tom Tromey <tom@tromey.com>
844
845 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
846 tui_add_win_to_layout.
847
16cb7910
TT
8482019-08-13 Tom Tromey <tom@tromey.com>
849
850 * tui/tui-layout.h (tui_default_win_height): Don't declare.
851 * tui/tui-layout.c (tui_default_win_height): Now static.
852
cc0c3ffb
TT
8532019-08-13 Tom Tromey <tom@tromey.com>
854
855 * tui/tui-layout.c (show_layout): Unify all layout cases into a
856 single switch.
857 (show_source_disasm_command, show_source_or_disasm_and_command):
858 Don't check current layout.
859
3f3ffe54
TT
8602019-08-13 Tom Tromey <tom@tromey.com>
861
862 * tui/tui-wingeneral.c (make_all_visible): Remove.
863 (tui_make_all_invisible): Simplify.
864 * tui/tui-layout.c (tui_make_all_invisible): Move from
865 tui-wingeneral.c; simplify.
866 (show_layout): Hoist call to tui_make_all_invisible.
867 (show_data): Don't call tui_make_all_invisible.
868
69258091
TT
8692019-08-13 Tom Tromey <tom@tromey.com>
870
871 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
872 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
873
62cf57fe
TT
8742019-08-13 Tom Tromey <tom@tromey.com>
875
876 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
877 tui-data.c.
878 (show_source_disasm_command, show_data)
879 (show_source_or_disasm_and_command): Don't use
880 tui_set_current_layout_to.
881 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
882 * tui/tui-data.c (current_layout, tui_current_layout): Move to
883 tui-layout.c.
884 (tui_set_current_layout_to): Remove.
885
2afade5d
TT
8862019-08-13 Tom Tromey <tom@tromey.com>
887
888 * tui/tui-layout.c (tui_set_layout): Update.
889 * tui/tui-data.h (struct tui_layout_def): Remove.
890 (tui_layout_def): Don't declare.
891 * tui/tui-data.c (layout_def): Remove.
892 (tui_layout_def): Remove.
893
a3504e96
TT
8942019-08-13 Tom Tromey <tom@tromey.com>
895
896 * tui/tui-winsource.h (struct tui_source_window_base)
897 <clear_detail>: No longer "override".
898 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
899 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
900 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
901 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
902 Remove.
903 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
904
29c92911
TT
9052019-08-13 Tom Tromey <tromey@adacore.com>
906
907 * tracepoint.c: Don't include readline.h or history.h.
908
86c6b807
TT
9092019-08-12 Tom Tromey <tom@tromey.com>
910
911 * configure: Rebuild.
912 * configure.ac: Check for readline 7.
913 * NEWS: Mention readline 7 requirement.
914 * README: Update.
915
5db2718c
TT
9162019-08-12 Tom Tromey <tom@tromey.com>
917
918 * mingw-hdep.c (gdb_select): Remove readline hack.
919
dac36daf
PFC
9202019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
921
922 * blockframe.c (find_pc_partial_function): Set *block to nullptr
923 when the function fails.
924
1022c627
AA
9252019-08-09 Andreas Arnez <arnez@linux.ibm.com>
926
927 * s390-tdep.c (s390_type_align): New function.
928 (s390_gdbarch_init): Set it as type_align gdbarch method.
929
eba4caf2
TV
9302019-08-09 Tom de Vries <tdevries@suse.de>
931
932 PR gdb/24591
933 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
934 pc_low with relocation offset.
935
123cd851
TT
9362019-08-07 Tom Tromey <tromey@adacore.com>
937
938 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
939 (print_frame_args): Update.
940 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
941 Update.
942 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
943 * frame.h (struct frame_arg): Add initializers.
944 <error>: Now a unique_xmalloc_ptr.
945
3d31bc39
AH
9462019-08-07 Alan Hayward <alan.hayward@arm.com>
947
948 * NEWS: Expand the Pointer Authentication entry.
949 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
950 (aarch64_frame_unmask_lr): ... to this.
951 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
952 Call aarch64_frame_unmask_lr.
953 * frame.c (struct frame_info): Add "masked" variable.
954 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
955 (fprint_frame): Check for masked pc.
956 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
957 declarations.
958 * python/py-framefilter.c (py_print_frame): Check for masked pc.
959 * stack.c (print_frame): Check for masked pc.
960
0cf9feb9
TT
9612019-08-06 Tom Tromey <tom@tromey.com>
962
963 * stabsread.c (patch_block_stabs, read_one_struct_field)
964 (read_enum_type): Use obstack_strndup.
965 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
966 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
967 * dwarf2read.c (guess_full_die_structure_name)
968 (anonymous_struct_prefix): Use obstack_strndup.
969 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
970 * c-exp.y (yylex): Use obstack_strndup.
971 * ada-exp.y (write_object_renaming, write_ambiguous_var)
972 (write_var_or_type): Use obstack_strndup.
973
efba19b0
TT
9742019-08-06 Tom Tromey <tom@tromey.com>
975
976 * symfile.c (reread_symbols): Use obstack_strdup.
977 * stabsread.c (read_type): Use obstack_strdup.
978 * gdb_obstack.h (obstack_strdup): New overload.
979 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
980 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
981 (dwarf2_canonicalize_name): Use obstack_strdup.
982 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
983 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
984 Use obstack_strdup.
985
f25102f7
TT
9862019-08-06 Tom Tromey <tom@tromey.com>
987
988 * gdb_obstack.h (obstack_strdup): Define.
989 * gdb_obstack.c (obstack_strdup): Don't define.
990
021887d8
TT
9912019-08-06 Tom Tromey <tom@tromey.com>
992
993 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
994 obstack_strdup.
995 * typeprint.c (typedef_hash_table::find_global_typedef): Use
996 obstack_strdup.
997 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
998 * stabsread.c (common_block_start): Use obstack_strdup.
999 * objfiles.c (set_objfile_main_name, objfile): Use
1000 obstack_strdup.
1001 * namespace.c (add_using_directive): Use obstack_strdup.
1002 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1003 * jit.c (finalize_symtab): Use obstack_strdup.
1004 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1005 (guess_partial_die_structure_name, partial_die_info::fixup)
1006 (dwarf2_name): Use obstack_strdup.
1007 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1008 obstack_strdup.
1009 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1010 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1011 obstack_strdup.
1012 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1013
d2834edc
PW
10142019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1015
1016 * unittests/help-doc-selftests.c: New file.
1017 * Makefile.in: Add the new file.
1018
590042fc
PW
10192019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1020
1021 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1022 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1023 the full first line, except when FOR_VALUE_PREFIX. In this case,
1024 the trailing '.' is not output, and the first character is uppercased.
1025 (print_help_for_command): Update call to print_doc_line.
1026 (print_doc_of_command): Likewise.
1027 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1028 * cli/cli-option.c (append_indented_doc): Do not append newline.
1029 (build_help_option): Append newline after first appended_indented_doc
1030 only if a second call is done.
1031 (build_help): Append 2 new lines before each option, except the first
1032 one.
1033 * compile/compile.c (_initialize_compile): Add new lines after
1034 %OPTIONS%, when not at the end of the help.
1035 Change help doc or code
1036 producing the help doc to respect the invariants.
1037 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1038 Also removed the new line after 'Options:', as all other commands
1039 do not put an empty line between 'Options:' and the first option.
1040 * printcmd.c (_initialize_printcmd): Likewise.
1041 * stack.c (_initialize_stack): Likewise.
1042 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1043 incorrectly telling COMMAND is optional.
1044 * ada-lang.c (_initialize_ada_language): Change help doc or code
1045 producing the help doc to respect the invariants.
1046 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1047 * breakpoint.c (_initialize_breakpoint): Likewise.
1048 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1049 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1050 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1051 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1052 _initialize_cli_style): Likewise.
1053 * corelow.c (core_target_info): Likewise.
1054 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1055 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1056 * filesystem.c (_initialize_filesystem): Likewise.
1057 * frame.c (_initialize_frame): Likewise.
1058 * gnu-nat.c (add_task_commands): Likewise.
1059 * infcall.c (_initialize_infcall): Likewise.
1060 * infcmd.c (_initialize_infcmd): Likewise.
1061 * interps.c (_initialize_interpreter): Likewise.
1062 * language.c (_initialize_language): Likewise.
1063 * linux-fork.c (_initialize_linux_fork): Likewise.
1064 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1065 * maint.c (_initialize_maint_cmds): Likewise.
1066 * memattr.c (_initialize_mem): Likewise.
1067 * printcmd.c (_initialize_printcmd): Likewise.
1068 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1069 _RegEx): Likewise.
1070 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1071 * record-btrace.c (_initialize_record_btrace): Likewise.
1072 * record-full.c (_initialize_record_full): Likewise.
1073 * record.c (_initialize_record): Likewise.
1074 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1075 * regcache.c (_initialize_regcache): Likewise.
1076 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1077 _initialize_remote): Likewise.
1078 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1079 * serial.c (_initialize_serial): Likewise.
1080 * skip.c (_initialize_step_skip): Likewise.
1081 * source.c (_initialize_source): Likewise.
1082 * stack.c (_initialize_stack): Likewise.
1083 * symfile.c (_initialize_symfile): Likewise.
1084 * symtab.c (_initialize_symtab): Likewise.
1085 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1086 * top.c (init_main): Likewise.
1087 * tracefile-tfile.c (tfile_target_info): Likewise.
1088 * tracepoint.c (_initialize_tracepoint): Likewise.
1089 * tui/tui-win.c (_initialize_tui_win): Likewise.
1090 * utils.c (add_internal_problem_command): Likewise.
1091 * valprint.c (value_print_option_defs): Likewise.
1092
404f2902
FCE
10932019-08-06 Frank Ch. Eigler <fche@redhat.com>
1094
1095 PR build/24886
1096 * configure.ac: Drop enable-libmcheck support.
1097 * configure, config.in: Rebuild.
1098 * libmcheck.m4: Remove.
1099 * acinclude.m4: Don't include it.
1100 * Makefile.in: Don't distribute it.
1101 * top.c (print_gdb_configuration): Don't mention it.
1102
046bebe1
TT
11032019-08-06 Tom Tromey <tom@tromey.com>
1104
1105 * utils.c (set_output_style): Sometimes pass stream to
1106 emit_style_escape.
1107 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1108 * record-btrace.c (btrace_insn_history): Update.
1109 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1110 method.
1111 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1112 Update initializers.
1113 <m_uiout>: New field.
1114 <m_di>: Move lower.
1115 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1116 Remove "uiout" parameter.
1117 (dump_insns): Update.
1118 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1119 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1120
ddbcedf5
CB
11212019-08-06 Christian Biesinger <cbiesinger@google.com>
1122
1123 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1124 (error_in_psymtab_expansion): Likewise.
1125 (lookup_symbol_via_quick_fns): Likewise.
1126 (basic_lookup_transparent_type_quick): Likewise.
1127 (basic_lookup_transparent_type_1): Likewise.
1128
b08b16c8
TT
11292019-08-06 Tom Tromey <tromey@adacore.com>
1130
1131 * source.c (last_source_error): Now bool.
1132 (print_source_lines_base): Make "noprint" bool. Only open
1133 source file when last_source_visited changes.
1134
cb44333d
TT
11352019-08-06 Tom Tromey <tromey@adacore.com>
1136
1137 * annotate.c (annotate_source_line): Use g_source_cache.
1138 * source-cache.c (source_cache::get_plain_source_lines): Change
1139 parameters. Populate m_offset_cache.
1140 (source_cache::ensure): New method.
1141 (source_cache::get_line_charpos): New method.
1142 (extract_lines): Move lower. Change parameters.
1143 (source_cache::get_source_lines): Move lower.
1144 * source-cache.h (class source_cache): Update comment.
1145 <get_line_charpos>: New method.
1146 <get_source_lines>: Update comment.
1147 <clear>: Clear m_offset_cache.
1148 <get_plain_source_lines>: Change parameters.
1149 <ensure>: New method
1150 <m_offset_cache>: New member.
1151 * source.c (forget_cached_source_info_for_objfile): Update.
1152 (info_source_command): Use g_source_cache.
1153 (find_source_lines, open_source_file_with_line_charpos): Remove.
1154 (print_source_lines_base, search_command_helper): Use g_source_cache.
1155 * source.h (open_source_file_with_line_charpos): Don't declare.
1156 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1157 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1158 Use g_source_cache.
1159
872dceaa
TT
11602019-08-06 Tom Tromey <tromey@adacore.com>
1161
1162 * source-cache.c (source_cache::get_plain_source_lines):
1163 Remove "first_line" and "last_line" parameters.
1164 (source_cache::get_source_lines): Cache plain text.
1165 * source-cache.h (class source_cache)
1166 <get_plain_source_lines>: Update.
1167
269249d9
TT
11682019-08-06 Tom Tromey <tromey@adacore.com>
1169
1170 * source-cache.c (extract_lines): No longer a method.
1171 Changed type of parameter. Include final newline.
1172 (selftests::extract_lines_test): New function.
1173 (_initialize_source_cache): Likewise.
1174 * source-cache.h (class source_cache)
1175 <extract_lines>: Don't declare.
1176
c0e8dcd8
TT
11772019-08-06 Tom Tromey <tromey@adacore.com>
1178
1179 * breakpoint.c (init_breakpoint_sal): Update.
1180 (breakpoint): Update.
1181 * breakpoint.h (struct breakpoint) <filter>: Now a
1182 unique_xmalloc_ptr.
1183
0b27c27d
CB
11842019-08-05 Christian Biesinger <cbiesinger@google.com>
1185
1186 * NEWS: Mention dictionary access on blocks.
1187 * python/py-block.c (blpy_getitem): New function.
1188 (block_object_as_mapping): New struct.
1189 (block_object_type): Use new struct for tp_as_mapping field.
1190
4ee94178
CB
11912019-08-05 Christian Biesinger <cbiesinger@google.com>
1192
1193 * objfiles.h (objfile): Add a comment describing partial symbols.
1194
8abfcabc
TT
11952019-08-05 Tom Tromey <tromey@adacore.com>
1196
1197 * compile/compile.c (_initialize_compile): Use _(), not N_().
1198 * thread.c (_initialize_thread): Use _(), not N_().
1199 * stack.c (_initialize_stack): Use _(), not N_().
1200 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1201
2b79f376
SM
12022019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1203
1204 * dwarf2read.c (struct dw2_symtab_iterator):
1205 <want_specific_block>: Remove.
1206 <block_index>: Change type to gdb::optional.
1207 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1208 change type of BLOCK_INDEX parameter to gdb::optional.
1209 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1210 (dw2_lookup_symbol): Don't pass argument for
1211 WANT_SPECIFIC_BLOCK.
1212 (dw2_expand_symtabs_for_function): Don't pass argument for
1213 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1214 (class dw2_debug_names_iterator)
1215 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1216 parameter, change BLOCK_INDEX type to gdb::optional.
1217 <m_want_specific_block>: Remove.
1218 <m_block_index>: Change type to gdb::optional.
1219 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1220 gdb::optional. Re-write in function of gdb::optional.
1221 (dw2_debug_names_lookup_symbol): Don't pass argument for
1222 WANT_SPECIFIC_BLOCK.
1223 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1224 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1225 BLOCK_INDEX.
1226
ae60f04e
PW
12272019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1228
1229 * NEWS: Mention changes to "info sources" command.
1230
28cd9371
PW
12312019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1232
1233 * symtab.c (filename_partial_match_opts): New struct type.
1234 (struct output_source_filename_data): New members
1235 regexp, c_regexp, partial_match.
1236 (output_source_filename): Use new members to decide to print file.
1237 (info_sources_option_defs): New variable.
1238 (make_info_sources_options_def_group, print_info_sources_header,
1239 info_sources_command_completer):
1240 New functions.
1241 (info_sources_command): Read new optional arguments.
1242 (_initialize_symtab): Update info sources help.
1243
ca683e3a
AO
12442019-08-02 Alexandre Oliva <oliva@adacore.com>
1245
1246 * ada-lang.c (exception_support_info_v0): Renamed from...
1247 (default_exception_support_info): ... this. Create new
1248 definition for v1.
1249 (ada_has_this_exception_support): Look up catch_handlers_sym.
1250 (ada_exception_support_info_sniffer): Try v0 after default.
1251
f1264162
TT
12522019-08-01 Tom Tromey <tromey@adacore.com>
1253
1254 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1255 gdbarch.h.
1256
0a7b2485
CB
12572019-08-01 Christian Biesinger <cbiesinger@google.com>
1258
1259 * s12z-tdep.c: Fix include path for s12z-opc.h.
1260
c6bdbeb7
AH
12612019-08-01 Alan Hayward <alan.hayward@arm.com>
1262
1263 * NEWS: Require GNU make 3.82.
1264
a2bd7b82
TT
12652019-07-16 Tom Tromey <tom@tromey.com>
1266
1267 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1268 declare.
1269
aa3b6533
TT
12702019-07-30 Tom Tromey <tromey@adacore.com>
1271
1272 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1273
a1530dc7
KB
12742019-07-30 Kevin Buettner <kevinb@redhat.com>
1275
1276 * printcmd.c (print_address_symbolic): Print negative offsets.
1277 (build_address_symbolic): Force signed arithmetic when computing
1278 offset.
1279
2906593f
CB
12802019-07-30 Christian Biesinger <cbiesinger@google.com>
1281
1282 PR/24474: Add a function to lookup static variables.
1283 * NEWS: Mention this new function.
1284 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1285 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1286 * python/python.c (python_GdbMethods): Add new function.
1287
c620ed88
CB
12882019-07-29 Christian Biesinger <cbiesinger@google.com>
1289
1290 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1291 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1292 (objfpy_lookup_static_symbol): New function.
1293 (objfile_object_methods): Add new functions.
1294
bc4268a5
PW
12952019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1296
1297 * NEWS: Mention 'set|show print frame-info'. Mention new
1298 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1299 backtrace argument. Mention that python frame filtering code
1300 is now consistent with what 'backtrace' command prints.
1301
4b5e8d19
PW
13022019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1303
1304 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1305 comments.
1306 (print_frame_info_auto, print_frame_info_source_line,
1307 print_frame_info_location, print_frame_info_source_and_location,
1308 print_frame_info_location_and_address, print_frame_info_short_location):
1309 New declarations.
1310 (struct frame_print_options): New member print_frame_info.
1311 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1312 * stack.h (get_user_print_what_frame_info): New declaration.
1313 (frame_show_address): New declaration.
1314 * stack.c (print_frame_arguments_choices): New value 'presence'.
1315 (print_frame_info_auto, print_frame_info_source_line,
1316 print_frame_info_location, print_frame_info_source_and_location,
1317 print_frame_info_location_and_address, print_frame_info_short_location,
1318 print_frame_info_choices, print_frame_info_print_what): New definitions.
1319 (print_frame_args): Only print dots for args if print frame-arguments
1320 is 'presence'.
1321 (frame_print_option_defs): New element for "frame-info".
1322 (get_user_print_what_frame_info): New function.
1323 (frame_show_address): Make non static. Move comment to stack.h.
1324 (print_frame_info_to_print_what): New function.
1325 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1326 to decide what to print.
1327 (backtrace_command_1): Handle the new print_frame_arguments_presence
1328 value.
1329 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1330 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1331 (py_print_frame): In non-mi mode, use LOCATION as default for
1332 print_what, similarly to frame information printed directly by
1333 backtrace command. Handle frame-info user option in non MI mode.
1334
6bdfee81
KB
13352019-07-27 Kevin Buettner <kevinb@redhat.com>
1336
1337 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1338 Add case for debugging 32-bit target on 64-bit host. Revise
1339 comment.
1340
98a617f8
KB
13412019-07-27 Kevin Buettner <kevinb@redhat.com>
1342
1343 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1344 instead of find_function_entry_range_from_pc.
1345
567238c9
KB
13462019-07-27 Kevin Buettner <kevinb@redhat.com>
1347
1348 * stack.c (find_frame_funname): Remove code which preferred
1349 minsym over symtab sym in "certain pathological cases".
1350
2dc80cf8
KB
1351 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1352 parameter. Change type of "do_demangle" to bool.
1353 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1354 Pass suitable "prefer_sym_over_minsym" flag to
1355 build_address_symbolic(). Don't output "+" for negative offsets.
1356 * printcmd.c (print_address_symbolic): Update invocation of
1357 build_address_symbolic to include a "prefer_sym_over_minsym"
1358 flag.
1359 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1360 Restrict cases in which use of minimal symbol is preferred to that
1361 of a found symbol. Update comments.
1362
1aff7173
KB
1363 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1364 for entry pc when entry pc is out of range for that FDE.
1365
89b085ac
BC
13662019-07-26 Brian Callahan <bcallah@openbsd.org>
1367
1368 PR gdb/24839:
1369 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1370 type.
1371
f32feb4a
CB
13722019-07-25 Christian Biesinger <cbiesinger@google.com>
1373
1374 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1375 this function's Python signature.
1376
1377
13782019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
1379
1380 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1381 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1382 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1383 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1384 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1385
1386
c54e4253
YS
13872019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1388
1389 * h8300-tdep.c (h8300_register_name_common): New.
1390 h8300_register_name): Use h8300_register_name_common.
1391 (h8300s_register_name): Likewise.
1392 (h8300sx_register_name): Likewise.
1393 (h8300h_register_nam): New.
1394 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1395
1396
40eadf04
SP
13972019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1398
1399 * arm-tdep.c (arm_skip_cmse_entry): New function.
1400 (arm_is_sgstubs_section): New function.
1401 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1402
bfa2a36d
TT
14032019-07-22 Tom Tromey <tom@tromey.com>
1404
1405 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1406 Don't self-assign.
1407
a8e9d247
AB
14082019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1411 type_print.
1412
eb86c5e2
AB
14132019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1414
1415 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1416 so that GDB doesn't match any msymbols when searching in the
1417 TYPES_DOMAIN.
1418 (print_symbol_info): Print using typedef_print or type_print based
1419 on the type of the symbol. Add updated FIXME comment moved from...
1420 (_initialize_symtab): ... move and update FIXME comment to above.
1421
a8eab7c6
AB
14222019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * NEWS: Mention adding -q option to "info types".
1425 * symtab.c (struct info_types_options): New struct.
1426 (info_types_options_defs): New variable.
1427 (make_info_types_options_def_group): New function.
1428 (info_types_command): Use gdb::option framework to parse options.
1429 (info_types_command_completer): New function.
1430 (_initialize_symtab): Extend the help text on "info types" and
1431 register command completer.
1432
b4603c34
CB
14332019-07-21 Christian Biesinger <cbiesinger@google.com>
1434
1435 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1436 (lookup_symbol_in_objfile): Change int to block_enum and add a
1437 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1438
c8cdc1e0
CB
14392019-07-20 Christian Biesinger <cbiesinger@google.com>
1440
1441 * MAINTAINERS (Write After Approval): Add self.
1442
01e175fe
AB
14432019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1444
1445 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1446 instruction to the dummy code region.
1447
56f79b63
TT
14482019-07-19 Tom Tromey <tromey@adacore.com>
1449
1450 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1451 (ARGSUSED, PARAMS, __func__): Remove rules.
1452
4c5aa8e0
AH
14532019-07-19 Alan Hayward <alan.hayward@arm.com>
1454
1455 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1456 * features/arm/arm-with-iwmmxt.c: Remove.
1457 * features/arm/arm-with-iwmmxt.xml: Remove.
1458 * features/arm/arm-with-m-fpa-layout.c: Remove.
1459 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1460 * features/arm/arm-with-m-vfp-d16.c: Remove.
1461 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1462 * features/arm/arm-with-m.c: Remove.
1463 * features/arm/arm-with-m.xml: Remove.
1464 * features/arm/arm-with-neon.c: Remove.
1465 * features/arm/arm-with-neon.xml: Remove.
1466 * features/arm/arm-with-vfpv2.c: Remove.
1467 * features/arm/arm-with-vfpv2.xml: Remove.
1468 * features/arm/arm-with-vfpv3.c: Remove.
1469 * features/arm/arm-with-vfpv3.xml: Remove.
1470
f42b2617
AH
14712019-07-19 Alan Hayward <alan.hayward@arm.com>
1472
1473 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1474
f29ec966
AH
14752019-07-19 Alan Hayward <alan.hayward@arm.com>
1476
1477 * arch/aarch32.c (aarch32_create_target_description): Create
1478 target descriptions using features.
1479 * arch/arm.c (arm_create_target_description)
1480 (arm_create_mprofile_target_description): Likewise.
1481 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1482
d105cce5
AH
14832019-07-19 Alan Hayward <alan.hayward@arm.com>
1484
1485 * Makefile.in: Add new files.
1486 * aarch32-tdep.c: New file.
1487 * aarch32-tdep.h: New file.
1488 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1489 Call aarch32_read_description.
1490 * arch/aarch32.c: New file.
1491 * arch/aarch32.h: New file.
1492 * arch/arm.c (arm_create_target_description)
1493 (arm_create_mprofile_target_description): New function.
1494 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1495 (arm_create_target_description)
1496 (arm_create_mprofile_target_description): New declaration.
1497 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1498 read_description functions.
1499 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1500 Likewise.
1501 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1502 * arm-tdep.c (tdesc_arm_list): New variable.
1503 (arm_register_g_packet_guesses): Call create description functions.
1504 (arm_read_description) (arm_read_mprofile_description): New
1505 function.
1506 * arm-tdep.h (arm_read_description)
1507 (arm_read_mprofile_description): Add declaration.
1508 * configure.tgt: Add new files.
1509
afe09f0b
GL
15102019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1511
1512 * top.c (new_ui_command): Open specified terminal just once.
1513
cd215b2e
TT
15142019-07-18 Tom Tromey <tromey@adacore.com>
1515
1516 * symtab.c (main_name): Constify return type.
1517 * symfile.c (set_initial_language): Update.
1518 * symtab.h (main_name): Constify return type.
1519
d8f68fcb
TT
15202019-07-17 Tom Tromey <tom@tromey.com>
1521
1522 * tui/tui-winsource.c (tui_update_source_window)
1523 (tui_update_source_window_as_is)
1524 (tui_update_source_windows_with_line): Remove return.
1525 * tui/tui-disasm.c (tui_show_disassem)
1526 (tui_show_disassem_and_update_source): Remove return.
1527 * tui/tui.c (tui_reset): Remove return.
1528 * tui/tui-wingeneral.c
1529 (tui_check_and_display_highlight_if_needed): Remove return.
1530
ca5af91e
TT
15312019-07-17 Tom Tromey <tom@tromey.com>
1532
1533 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1534
5104fe36
TT
15352019-07-17 Tom Tromey <tom@tromey.com>
1536
1537 * tui/tui-winsource.h (struct tui_exec_info_window)
1538 (struct tui_source_window_base): Move from tui-data.h.
1539 * tui/tui-winsource.c: Move many method definitions from
1540 elsewhere. Remove "structuring" comments.
1541 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1542 (tui_source_window_base::refresh_window): Move to
1543 tui-winsource.c.
1544 * tui/tui-win.c (tui_source_window_base::refresh_all)
1545 (tui_source_window_base::update_tab_width)
1546 (tui_source_window_base::set_new_height)
1547 (tui_source_window_base::do_make_visible_with_new_height): Move to
1548 tui-winsource.c.
1549 * tui/tui-source.h: Update.
1550 * tui/tui-source.c (tui_source_window_base::reset): Move to
1551 tui-winsource.c.
1552 * tui/tui-disasm.h: Update.
1553 * tui/tui-data.h (struct tui_exec_info_window): Move to
1554 tui-winsource.h.
1555 (struct tui_source_window_base): Likewise.
1556 * tui/tui-data.c (tui_source_window_base::clear_detail)
1557 (tui_source_window_base, ~tui_source_window_base): Move to
1558 tui-winsource.c.
1559
daa15dde
TT
15602019-07-17 Tom Tromey <tom@tromey.com>
1561
1562 * tui/tui-win.c (tui_resize_all)
1563 (tui_source_window_base::update_tab_width)
1564 (tui_adjust_win_heights): Update.
1565 (tui_win_info::make_invisible_and_set_new_height): Rename from
1566 make_invisible_and_set_new_height.
1567 * tui/tui-data.h (struct tui_win_info)
1568 <make_invisible_and_set_new_height>: New method.
1569
bfad4537
TT
15702019-07-17 Tom Tromey <tom@tromey.com>
1571
1572 * tui/tui.c: Update.
1573 * tui/tui-source.h (struct tui_source_window): Move from
1574 tui-data.h.
1575 * tui/tui-layout.c: Update.
1576 * tui/tui-disasm.c: Update.
1577 * tui/tui-data.h (struct tui_source_window): Move to
1578 tui-source.h.
1579
88f7e873
TT
15802019-07-17 Tom Tromey <tom@tromey.com>
1581
1582 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1583 tui-data.h.
1584 * tui/tui-data.h (struct tui_disasm_window): Move to
1585 tui-disasm.h.
1586
96bd6233
TT
15872019-07-17 Tom Tromey <tom@tromey.com>
1588
1589 * tui/tui-regs.h (struct tui_data_item_window): Move from
1590 tui-data.h.
1591 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1592 * tui/tui-data.h (struct tui_data_item_window): Move to
1593 tui-regs.h.
1594 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1595
ce38393b
TT
15962019-07-17 Tom Tromey <tom@tromey.com>
1597
1598 * tui/tui.c: Update.
1599 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1600 (tui_cmd_window::max_height): Move to tui-command.c.
1601 * tui/tui-layout.c: Update.
1602 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1603 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1604 tui-command.c.
1605 * tui/tui-command.h (struct tui_cmd_window): Move from
1606 tui-data.h.
1607 * tui/tui-command.c: Remove "structuring" comments.
1608 (tui_cmd_window::clear_detail)
1609 (tui_cmd_window::do_make_visible_with_new_height)
1610 (tui_cmd_window::max_height): Move from elsewhere.
1611
2d8b51cb
TT
16122019-07-17 Tom Tromey <tom@tromey.com>
1613
1614 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1615 Now static.
1616 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1617 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1618
18ab23af
TT
16192019-07-17 Tom Tromey <tom@tromey.com>
1620
1621 * tui/tui.c: Update.
1622 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1623 tui-regs.c.
1624 * tui/tui-windata.h: Remove file.
1625 * tui/tui-windata.c: Remove file.
1626 * tui/tui-win.c (tui_data_window::set_new_height)
1627 (tui_data_window::do_make_visible_with_new_height): Move to
1628 tui-regs.c.
1629 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1630 * tui/tui-regs.c: Remove "structuring" comments.
1631 (tui_data_window::first_data_item_displayed)
1632 (tui_data_window::delete_data_content_windows)
1633 (tui_data_window::erase_data_content)
1634 (tui_data_window::display_all_data)
1635 (tui_data_window::refresh_all)
1636 (tui_data_window::do_scroll_vertical)
1637 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1638 (tui_data_window::do_make_visible_with_new_height)
1639 (tui_data_window::refresh_window): Move from elsewhere.
1640 (_initialize_tui_regs): Move to end of file.
1641 * tui/tui-layout.c: Update.
1642 * tui/tui-hooks.c: Update.
1643 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1644 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1645 tui-regs.c.
1646 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1647
88b7e7cc
TT
16482019-07-17 Tom Tromey <tom@tromey.com>
1649
1650 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1651 seen.
1652
0fcd3711
TT
16532019-07-17 Tom Tromey <tom@tromey.com>
1654
1655 * tui/tui-win.c (tui_source_window_base::set_new_height)
1656 (tui_source_window_base::do_make_visible_with_new_height): Use
1657 m_has_locator field directly.
1658 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1659 method.
1660 (struct tui_source_window_base) <has_locator>: Likewise.
1661
4a38112d
TT
16622019-07-17 Tom Tromey <tom@tromey.com>
1663
1664 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1665 Don't declare.
1666 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1667 Remove.
1668 * tui/tui-win.c (tui_source_window_base::set_new_height)
1669 (tui_source_window_base::set_new_height)
1670 (make_invisible_and_set_new_height)
1671 (tui_source_window_base::do_make_visible_with_new_height)
1672 (tui_source_window_base::do_make_visible_with_new_height):
1673 Update.
1674 * tui/tui-layout.c (show_source_disasm_command, show_data)
1675 (show_source_or_disasm_and_command): Update.
1676 * tui/tui-layout.c (show_layout): Update.
1677
09129226
TT
16782019-07-17 Tom Tromey <tom@tromey.com>
1679
1680 * tui/tui-layout.c (make_data_window): Remove.
1681 (show_data): Unify creation and re-initialization cases.
1682
4a8a5e84
TT
16832019-07-17 Tom Tromey <tom@tromey.com>
1684
1685 * tui/tui-layout.c (make_source_window, make_disasm_window):
1686 Remove.
1687 (show_data): Unify creation and re-initialization cases.
1688
76d2be8e
TT
16892019-07-17 Tom Tromey <tom@tromey.com>
1690
1691 * tui/tui-layout.c (make_command_window): Remove.
1692 (show_source_disasm_command, show_source_or_disasm_and_command):
1693 Unify creation and re-initialization cases.
1694
890b8bde
TT
16952019-07-17 Tom Tromey <tom@tromey.com>
1696
1697 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1698 creation and re-initialization cases.
1699
2cdfa113
TT
17002019-07-17 Tom Tromey <tom@tromey.com>
1701
1702 * tui/tui-regs.c (tui_get_register): Return void.
1703
8e3cfd09
TT
17042019-07-17 Tom Tromey <tom@tromey.com>
1705
1706 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1707 Simplify.
1708
f4e04977
TT
17092019-07-17 Tom Tromey <tom@tromey.com>
1710
1711 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1712 resetting.
1713
0379b883
TT
17142019-07-17 Tom Tromey <tom@tromey.com>
1715
1716 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1717 * tui/tui-regs.c (tui_reg_layout): New function.
1718 (tui_show_registers, tui_reg_command): Use it.
1719 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1720 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1721 parameters.
1722 (tui_layout_command): Remove.
1723
b7fbad91
TT
17242019-07-17 Tom Tromey <tom@tromey.com>
1725
1726 * tui/tui-layout.h (tui/tui-layout): Return void.
1727 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1728
4e1e56b9
TT
17292019-07-17 Tom Tromey <tom@tromey.com>
1730
1731 * tui/tui-layout.c (show_source_disasm_command, show_data):
1732 Update.
1733 (reset_locator): Remove.
1734 (show_source_or_disasm_and_command): Update.
1735
1e0c09ba
TT
17362019-07-17 Tom Tromey <tom@tromey.com>
1737
1738 * tui/tui-source.c (tui_source_window_base::reset): Remove
1739 win_type parameter.
1740 * tui/tui-layout.c (make_command_window, make_source_window)
1741 (make_disasm_window, make_data_window)
1742 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1743 (reset_locator, show_source_or_disasm_and_command): Update.
1744 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1745 win_type parameter.
1746 (struct tui_source_window_base) <reset>: Likewise.
1747
1bf605de
TT
17482019-07-17 Tom Tromey <tom@tromey.com>
1749
1750 * tui/tui-layout.c (show_source_disasm_command): Use
1751 reset_locator.
1752 (reset_locator): New function.
1753 (init_and_make_win): Remove.
1754 (show_source_or_disasm_and_command): Use reset_locator.
1755
098f9ed4
TT
17562019-07-17 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1759 condition.
1760 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1761 Remove condition.
1762 * tui/tui-source.c (tui_source_window_base::reset): New method.
1763 * tui/tui-layout.c (make_command_window): Don't call
1764 init_and_make_win.
1765 (make_source_window, make_disasm_window): Don't call
1766 make_source_or_disasm_window.
1767 (make_data_window): Don't call init_and_make_win. Change calling
1768 convention.
1769 (show_source_disasm_command, show_data): Simplify.
1770 (make_source_or_disasm_window): Remove.
1771 (show_source_or_disasm_and_command): Simplify.
1772 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1773 (struct tui_source_window_base) <reset>: Likewise.
1774 <execution_info>: Remove initializer.
1775 * tui/tui-data.c (tui_source_window_base): Initialize
1776 execution_info.
1777
80110957
TT
17782019-07-17 Tom Tromey <tom@tromey.com>
1779
1780 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1781 variable.
1782
cf82af05
TT
17832019-07-17 Tom Tromey <tom@tromey.com>
1784
1785 * tui/tui.c (tui_rl_other_window): Update.
1786 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1787 superclass method first. Always iterate over regs_content.
1788 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1789 method.
1790 * tui/tui-win.c (tui_set_focus_command): Update.
1791
01aeb396
TT
17922019-07-17 Tom Tromey <tom@tromey.com>
1793
1794 * tui/tui-win.c (tui_set_focus_command): Rename from
1795 tui_set_focus. Call tui_enable.
1796 (tui_set_focus_command): Remove.
1797
fd6c75ee
TT
17982019-07-17 Tom Tromey <tom@tromey.com>
1799
1800 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1801 refresh_window.
1802 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1803 touchwin.
1804 (tui_data_window::refresh_window): Call refresh_window on data
1805 items. Always call superclass refresh_window.
1806 (tui_win_info::refresh): Remove.
1807 (tui_source_window_base::refresh_window): Update.
1808 (tui_refresh_all): Update.
1809 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1810 refresh_window.
1811 (show_source_or_disasm_and_command): Likewise.
1812 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1813 (struct tui_source_window_base) <refresh>: Likewise.
1814
f6cc34a9
TT
18152019-07-17 Tom Tromey <tom@tromey.com>
1816
1817 * tui/tui-winsource.c (tui_clear_source_content)
1818 (tui_show_source_content): Update.
1819 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1820 whether content is empty.
1821 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1822 Remove.
1823
f31ec9af
TT
18242019-07-17 Tom Tromey <tom@tromey.com>
1825
1826 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1827 window's contents.
1828 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1829 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1830
d1b6f1e5
TT
18312019-07-17 Tom Tromey <tom@tromey.com>
1832
1833 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1834 (struct tui_data_item_window): Update.
1835
d9743a13
TT
18362019-07-17 Tom Tromey <tom@tromey.com>
1837
1838 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1839 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1840 defines.
1841
caf0bc4e
TT
18422019-07-17 Tom Tromey <tom@tromey.com>
1843
1844 * tui/tui-winsource.h (tui_erase_source_content)
1845 (tui_clear_source_content): Remove "display_prompt" parameter.
1846 * tui/tui-winsource.c (tui_update_source_window_as_is)
1847 (tui_update_source_windows_with_addr): Update.
1848 (tui_clear_source_content): Remove "display_prompt" parameter.
1849 (tui_erase_source_content): Likewise. Simplify.
1850 (tui_show_source_content): Update.
1851 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1852 * tui/tui-stack.c (tui_show_frame_info): Update.
1853 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1854 Remove defines.
1855
9d391078
TT
18562019-07-17 Tom Tromey <tom@tromey.com>
1857
1858 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1859 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1860 parameter.
1861 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1862 parameter.
1863
a38da35d
TT
18642019-07-17 Tom Tromey <tom@tromey.com>
1865
1866 * tui/tui-winsource.c (tui_clear_source_content)
1867 (tui_show_source_content, tui_show_exec_info_content)
1868 (tui_clear_exec_info_content): Update.
1869 * tui/tui-stack.c (tui_show_locator_content): Update.
1870 (tui_show_frame_info): Update.
1871 * tui/tui-source.h (tui_source_window): Don't declare.
1872 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1873 from tui_source_is_displayed.
1874 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1875 Remove field.
1876 (struct tui_source_window_base) <content_in_use>: New field. Now
1877 bool.
1878 (struct tui_source_window) <showing_source_p>: New method.
1879 (TUI_SRC_WIN): Change cast.
1880 * tui/tui-data.c (tui_initialize_static_data): Update.
1881
c2cd8994
TT
18822019-07-17 Tom Tromey <tom@tromey.com>
1883
1884 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1885 location_matches_p.
1886 * tui/tui-source.c (tui_source_window::location_matches_p): New
1887 method.
1888 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1889 method.
1890 * tui/tui-data.h (struct tui_source_window_base)
1891 <location_matches_p>: New method.
1892 (struct tui_source_window, struct tui_disasm_window)
1893 <location_matches_p>: Likewise.
1894
4dde7b34
TT
18952019-07-17 Tom Tromey <tom@tromey.com>
1896
1897 * tui/tui-win.c (tui_set_win_height_command): Rename from
1898 tui_set_win_height.
1899 (tui_set_win_height_command): Remove.
1900
b73dd877
TT
19012019-07-17 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-source.c (tui_source_window): New constructor. Add
1904 observer.
1905 (~tui_source_window): New destructor.
1906 (tui_source_window::style_changed): New method.
1907 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1908 (tui_attach_detach_observers): Update.
1909 * tui/tui-data.h (struct tui_source_window): Make constructor not
1910 inline. Add destructor.
1911 (struct tui_source_window) <style_changed>: New method.
1912 <m_observable>: New member.
1913
ae2b5380
TT
19142019-07-17 Tom Tromey <tom@tromey.com>
1915
1916 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1917 * tui/tui-win.c (tui_resize_all): Fix typo.
1918
1ce3e844
TT
19192019-07-17 Tom Tromey <tom@tromey.com>
1920
1921 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1922 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1923 (tui_refresh_all): Remove "list" parameter. Use foreach.
1924 * tui/tui-win.c (window_name_completer): Use foreach.
1925 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1926 (update_tab_width): Likewise.
1927 * tui/tui-layout.c (show_layout): Update.
1928 * tui/tui-data.h (class tui_window_iterator): New.
1929 (struct all_tui_windows): New.
1930 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1931
fe3eaf1c
TT
19322019-07-17 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1935 parameter. Don't reference globals.
1936 (tui_reg_command): Update.
1937
368c1354
TT
19382019-07-17 Tom Tromey <tom@tromey.com>
1939
1940 * tui/tui-regs.c (tui_show_registers): Simplify.
1941
e80cd204
TT
19422019-07-17 Tom Tromey <tom@tromey.com>
1943
1944 * tui/tui-regs.c (tui_show_registers): Update.
1945 (tui_show_register_group): Add win_info parameter.
1946
aca2dd16
TT
19472019-07-17 Tom Tromey <tom@tromey.com>
1948
1949 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1950 Rename from tui_display_reg_element_at_line.
1951 (tui_data_window::display_registers_from_line): Update.
1952 * tui/tui-data.h (struct tui_data_window)
1953 <display_reg_element_at_line>: New method.
1954
517e9505
TT
19552019-07-17 Tom Tromey <tom@tromey.com>
1956
1957 * tui/tui-regs.h (tui_display_registers_from)
1958 (tui_display_registers_from_line): Don't declare.
1959 * tui/tui-windata.c (tui_data_window::display_all_data)
1960 (tui_data_window::refresh_all)
1961 (tui_data_window::do_scroll_vertical): Update.
1962 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1963 from tui_display_registers_from.
1964 (tui_display_reg_element_at_line): Update.
1965 (tui_data_window::display_registers_from_line): Rename from
1966 tui_display_registers_from_line.
1967 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1968 display_registers_from_line>: New methods.
1969
f76d8b19
TT
19702019-07-17 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1973 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1974 from tui_erase_data_content.
1975 (tui_data_window::display_all_data)
1976 (tui_data_window::refresh_all)
1977 (tui_data_window::do_scroll_vertical): Update.
1978 * tui/tui-regs.c (tui_show_registers): Update.
1979 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1980 New method.
1981
b4094625
TT
19822019-07-17 Tom Tromey <tom@tromey.com>
1983
1984 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1985 declare.
1986 * tui/tui-windata.c
1987 (tui_data_window::delete_data_content_windows): Rename from
1988 tui_delete_data_content_windows.
1989 (tui_data_window::display_all_data)
1990 (tui_data_window::do_scroll_vertical): Update.
1991 * tui/tui-data.h (struct tui_data_window)
1992 <delete_data_content_windows>: New method.
1993
c223a729
TT
19942019-07-17 Tom Tromey <tom@tromey.com>
1995
1996 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1997 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1998
50daf268
TT
19992019-07-17 Tom Tromey <tom@tromey.com>
2000
2001 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2002 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2003 from tui_display_all_data.
2004 * tui/tui-win.c
2005 (tui_data_window::do_make_visible_with_new_height): Update.
2006 * tui/tui-regs.c (tui_show_registers): Update.
2007 * tui/tui-layout.c (tui_set_layout): Update.
2008 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2009 method.
2010
df5f8cab
TT
20112019-07-17 Tom Tromey <tom@tromey.com>
2012
2013 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2014 * tui/tui-windata.c (tui_display_data_from): Remove.
2015 (tui_data_window::refresh_all): Update.
2016
80cb6c27
TT
20172019-07-17 Tom Tromey <tom@tromey.com>
2018
2019 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2020 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2021 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2022 tui_display_registers_from_line.
2023 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2024 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2025 "force_display" parameter.
2026
baff0c28
TT
20272019-07-17 Tom Tromey <tom@tromey.com>
2028
2029 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2030 declare.
2031 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2032 Rename from tui_first_reg_element_no_inline.
2033 (tui_display_reg_element_at_line)
2034 (tui_display_registers_from_line): Update.
2035 * tui/tui-data.h (struct tui_data_window)
2036 <first_reg_element_no_inline>: New method.
2037
3b23c5f2
TT
20382019-07-17 Tom Tromey <tom@tromey.com>
2039
2040 * tui/tui-windata.c (tui_display_data_from)
2041 (tui_data_window::do_scroll_vertical): Update.
2042 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2043 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2044 Rename from tui_line_from_reg_element_no.
2045 (tui_display_registers_from_line): Update.
2046 * tui/tui-data.h (struct tui_data_window)
2047 <line_from_reg_element_no>: New method.
2048
0b5ec218
TT
20492019-07-17 Tom Tromey <tom@tromey.com>
2050
2051 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2052 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2053 tui_last_regs_line_no.
2054 (tui_display_reg_element_at_line)
2055 (tui_display_registers_from_line): Update.
2056 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2057 method.
2058
0807ab7b
TT
20592019-07-17 Tom Tromey <tom@tromey.com>
2060
2061 PR tui/24722:
2062 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2063 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2064 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2065 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2066 (tui_update_breakpoint_info): Likewise.
2067 * tui/tui-hooks.c (tui_event_create_breakpoint)
2068 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2069 Update.
2070
9ad7fdef
TT
20712019-07-17 Tom Tromey <tom@tromey.com>
2072
2073 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2074
5813316f
TT
20752019-07-17 Tom Tromey <tom@tromey.com>
2076
2077 * tui/tui-winsource.c (tui_update_source_window_as_is)
2078 (tui_update_source_windows_with_addr): Update.
2079 * tui/tui-source.h (tui_set_source_content)
2080 (tui_show_symtab_source): Add "win_info" parameter.
2081 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2082 parameter.
2083 (tui_show_symtab_source): Likewise.
2084
00e264e7
TT
20852019-07-17 Tom Tromey <tom@tromey.com>
2086
2087 * tui/tui-wingeneral.c
2088 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2089
06210ce4
TT
20902019-07-17 Tom Tromey <tom@tromey.com>
2091
2092 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2093 (struct tui_cmd_window) <can_scroll>: New method.
2094 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2095 method.
2096
381befee
TT
20972019-07-17 Tom Tromey <tromey@adacore.com>
2098
2099 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2100 do_field_signed>: Rename. Change type of "value".
2101 * ui-out.c (ui_out::field_signed): Rename from field_int.
2102 Change type of "value".
2103 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2104 type of "value".
2105 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2106 do_field_int. Change type of "value".
2107 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2108 do_field_int. Change type of "value".
2109 * tracepoint.c (trace_status_mi, tfind_1)
2110 (print_one_static_tracepoint_marker): Update.
2111 * thread.c (print_thread_info_1, print_selected_thread_frame):
2112 Update.
2113 * stack.c (print_frame, print_frame_info): Update.
2114 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2115 Update.
2116 * source.c (print_source_lines_base): Update.
2117 * skip.c (info_skip_command): Update.
2118 * record-btrace.c (btrace_ui_out_decode_error)
2119 (btrace_call_history_src_line): Update.
2120 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2121 Update.
2122 * progspace.c (print_program_space): Update.
2123 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2124 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2125 do_field_int. Change type of "value".
2126 * mi/mi-out.c (mi_ui_out::do_table_begin)
2127 (mi_ui_out::do_table_header): Update.
2128 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2129 type of "value".
2130 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2131 (mi_cmd_data_list_changed_registers, output_register)
2132 (mi_cmd_data_read_memory, mi_load_progress)
2133 (mi_cmd_trace_frame_collected): Update.
2134 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2135 Update.
2136 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2137 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2138 (mi_cmd_var_list_children, varobj_update_one): Update.
2139 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2140 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2141 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2142 * inferior.c (print_inferior): Update.
2143 * gdb_bfd.c (print_one_bfd): Update.
2144 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2145 Update.
2146 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2147 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2148 do_field_int. Change type of "value".
2149 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2150 do_field_int. Change type of "value".
2151 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2152 (print_one_breakpoint_location, print_it_catch_fork)
2153 (print_one_catch_fork, print_it_catch_vfork)
2154 (print_one_catch_vfork, print_it_catch_solib)
2155 (print_it_catch_exec, print_it_ranged_breakpoint)
2156 (print_mention_watchpoint, print_mention_masked_watchpoint)
2157 (bkpt_print_it, update_static_tracepoint): Update.
2158 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2159 * break-catch-syscall.c (print_it_catch_syscall): Update.
2160 * ada-tasks.c (print_ada_task_info): Update.
2161 * ada-lang.c (print_it_exception, print_mention_exception):
2162 Update.
2163
6b78c3f8
AB
21642019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 PR breakpoints/24541
2167 * gdbarch.c: Regenerate.
2168 * gdbarch.h: Regenerate.
2169 * gdbarch.sh: Adjust return type and parameter types for
2170 'stap_adjust_register'.
2171 (i386_stap_adjust_register): Adjust signature and return new
2172 register name.
2173 * stap-probe.c (stap_parse_register_operand): Adjust use of
2174 'gdbarch_stap_adjust_register'.
2175
d72a9b85
TT
21762019-07-17 Tom Tromey <tromey@adacore.com>
2177
2178 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2179 declare VEC.
2180 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2181 std::vector.
2182 (struct s390_process_info): Add initializers.
2183 (s390_add_process): Use new.
2184 (s390_linux_nat_target::low_forget_process): Use delete.
2185 (s390_linux_nat_target::low_new_fork)
2186 (s390_linux_nat_target::stopped_by_watchpoint)
2187 (s390_linux_nat_target::low_prepare_to_resume)
2188 (s390_linux_nat_target::insert_watchpoint)
2189 (s390_linux_nat_target::insert_hw_breakpoint)
2190 (s390_linux_nat_target::remove_watchpoint)
2191 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2192
206e6c58
JB
21932019-07-16 John Baldwin <jhb@FreeBSD.org>
2194
2195 * aarch64-fbsd-nat.c: Include regcache.h.
2196 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2197 argument.
2198 (aarch64_fbsd_nat_target::fetch_registers)
2199 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2200 variable.
2201 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2202
cbde90f2
JB
22032019-07-16 John Baldwin <jhb@FreeBSD.org>
2204
2205 * fbsd-nat.c: Include gdbarch.h.
2206
07128006
TT
22072019-07-15 Tom Tromey <tromey@adacore.com>
2208
2209 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2210
1f77b012
TT
22112019-07-15 Tom Tromey <tromey@adacore.com>
2212
2213 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2214 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2215 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2216 * cli-out.c (cli_ui_out::do_field_int): New method.
2217 * ui-out.c (ui_out::field_unsigned): New method.
2218 * symfile.c (generic_load): Use field_unsigned.
2219 (print_transfer_performance): Likewise.
2220 * record-btrace.c (ui_out_field_uint): Remove.
2221 (btrace_call_history_insn_range, btrace_call_history): Use
2222 field_unsigned.
2223 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2224 field_unsigned.
2225 * ui-out.h (class ui_out) <field_unsigned>: New method.
2226 <do_field_unsigned>: Likewise.
2227
33eca680
TT
22282019-07-15 Tom Tromey <tromey@adacore.com>
2229
2230 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2231 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2232 * target.c (flash_erase_command): Use field_string.
2233 * infrun.c (print_signal_received_reason): Use field_string.
2234 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2235 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2236 field_string.
2237 * ada-tasks.c (print_ada_task_info): Use field_string.
2238
ca8d69be
TT
22392019-07-15 Tom Tromey <tromey@adacore.com>
2240
2241 * target.c (flash_erase_command): Use field_core_addr.
2242 * symfile.c (generic_load): Use field_core_addr.
2243 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2244 Use field_core_addr.
2245 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2246 field_core_addr.
2247
0d4e84ed
AB
22482019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2249
2250 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2251 value if its desired type is smaller than a CORE_ADDR and signed.
2252
9a49df9d
AB
22532019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2254
2255 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2256 of changes to field names, and use new is_reference field to
2257 decide if a property is a reference or not.
2258 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2259 field.
2260 (struct dwarf2_property_baton): Update header comment, rename
2261 'referenced_type' to 'property_type' and update comments.
2262 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2263 default property type, store in property baton, update to take
2264 accound of renamed field.
2265 (read_func_scope): Update call to attr_to_dynamic_prop.
2266 (read_array_type): Likewise.
2267 (dwarf2_per_cu_addr_sized_int_type): New function.
2268 (read_subrange_index_type): Move type finding code to
2269 dwarf2_per_cu_addr_sized_int_type.
2270 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2271 (dwarf2_per_cu_addr_type): New function.
2272 (set_die_type): Update calls to attr_to_dynamic_prop.
2273
b86352cf
AB
22742019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2275
2276 * dwarf2read.c (read_subrange_index_type): New function.
2277 (read_subrange_type): Move code into new function and call it.
2278 * gdbtypes.c (create_range_type): Add some asserts.
2279
603490bf
AB
22802019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2281
2282 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2283 update return statements.
2284 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2285 declaration, and update comment to match.
2286 * gdbtypes.c (resolve_dynamic_array): Update call to
2287 dwarf2_evaluate_property to match new return type.
2288
592f9d27
AB
22892019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * valarith.c (value_subscripted_rvalue): Change lowerbound
2292 parameter type from int to LONGEST.
2293 * value.h (value_subscripted_rvalue): Likewise in declaration.
2294
60cfcb20
AB
22952019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * cli/cli-utils.c (info_print_command_completer): New function.
2298 * cli/cli-utils.h: Add 'completer.h' include, and forward
2299 declaration for 'struct cmd_list_element'.
2300 (info_print_command_completer): Declare.
2301 * stack.c (_initialize_stack): Add completer for 'info locals' and
2302 'info args'.
2303 * symtab.c (_initialize_symtab): Add completer for 'info
2304 variables' and 'info functions'.
2305 * NEWS: Mention completion for additional info commands.
2306
b16507e0
AB
23072019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2308
2309 * cli/cli-utils.c (extract_info_print_args): Delete.
2310 (extract_arg_maybe_quoted): Delete.
2311 (info_print_options_defs): New variable.
2312 (make_info_print_options_def_group): New function.
2313 (extract_info_print_options): Define new function.
2314 * cli/cli-utils.h (extract_info_print_args): Delete.
2315 (struct info_print_options): New structure.
2316 (extract_info_print_options): Declare new function.
2317 * stack.c (info_locals_command): Update to use new
2318 extract_info_print_options, also add a header comment.
2319 (info_args_command): Likewise.
2320 * symtab.c (info_variables_command): Likewise.
2321 (info_functions_command): Likewise.
2322
021d8588
AB
23232019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2324
2325 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2326 to extract string arguments.
2327 * common/common-utils.c (extract_string_maybe_quoted): New function.
2328 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2329
b777eb6d
TT
23302019-07-11 Tom Tromey <tromey@adacore.com>
2331
2332 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2333 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2334 * top.h (gdbinit): Don't declare.
2335 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2336 into...
2337 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2338 * top.c (gdb_init): Don't call init_cli_cmds.
2339 (gdbinit): Remove.
2340 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2341
72ee03ff
TT
23422019-07-11 Tom Tromey <tromey@adacore.com>
2343
2344 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2345 after it has been moved.
2346
00db9531
SM
23472019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2348
2349 * valops.c (value_must_coerce_to_target): Change return type to
2350 bool.
2351 * value.h (value_must_coerce_to_target): Likewise.
2352
f2478a7e
SM
23532019-07-10 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * breakpoint.c (is_hardware_watchpoint): Remove
2356 forward-declaration.
2357 (is_masked_watchpoint): Change return type to bool.
2358 (is_tracepoint): Likewise.
2359 (is_breakpoint): Likewise.
2360 (is_hardware_watchpoint): Likewise.
2361 (is_watchpoint): Likewise.
2362 (is_no_memory_software_watchpoint): Likewise.
2363 (is_catchpoint): Likewise.
2364 (breakpoint_1): Make FILTER parameter's return type bool.
2365 is_masked_watchpoint): Change return type to bool.
2366 (save_breakpoints): Make FILTER parameter's return type bool.
2367 * breakpoint.h (is_breakpoint): Change return type to bool.
2368 (is_watchpoint): Likewise.
2369 (is_catchpoint): Likewise.
2370 (is_tracepoint): Likewise.
2371
0d12e84c
TT
23722019-07-10 Tom Tromey <tom@tromey.com>
2373
2374 * defs.h: Don't include gdbarch.h.
2375 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2376 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2377 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2378 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2379 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2380 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2381 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2382 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2383 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2384 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2385 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2386 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2387 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2388 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2389 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2390 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2391 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2392 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2393 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2394 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2395 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2396 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2397 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2398 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2399 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2400 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2401 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2402
f06f1252
TT
24032019-07-10 Tom Tromey <tromey@adacore.com>
2404
2405 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2406 * breakpoint.c (init_ada_exception_breakpoint): Register as
2407 bp_catchpoint.
2408 (print_one_breakpoint_location, print_one_breakpoint): Use
2409 is_ada_exception_catchpoint.
2410 * ada-lang.c (class ada_catchpoint_location): Pass
2411 bp_loc_software_breakpoint to bp_location constructor.
2412 (is_ada_exception_catchpoint): New function.
2413
7a5d944b
TT
24142019-07-10 Tom Tromey <tromey@adacore.com>
2415
2416 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2417 VEC.
2418 (struct arm_exidx_entry): New method operator<.
2419 (struct arm_exidx_data) <section_maps>: Change type.
2420 (arm_exidx_data_free): Remove.
2421 (arm_exidx_data_key): Change type. Move lower.
2422 (arm_exidx_new_objfile): Update.
2423 (arm_compare_exidx_entries): Remove.
2424 (arm_find_exidx_entry, _initialize_arm_tdep)
2425
48c66e1d
TT
24262019-07-10 Tom Tromey <tromey@adacore.com>
2427
2428 * solib-spu.c (ocl_program_data_key): Change type.
2429 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2430 Update.
2431
a269fbf1
TT
24322019-07-10 Tom Tromey <tromey@adacore.com>
2433
2434 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2435 (struct solib_aix_inferior_data) <library_list>: Change type.
2436 (solib_aix_inferior_data_handle): Change type.
2437 (get_solib_aix_inferior_data): Update.
2438 (solib_aix_free_library_list): Remove.
2439 (library_list_start_library): Update.
2440 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2441 return type.
2442 (solib_aix_get_library_list)
2443 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2444 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2445
c294730c
TT
24462019-07-10 Tom Tromey <tromey@adacore.com>
2447
2448 * solib-dsbt.c (struct dsbt_info): Add initializers.
2449 (solib_dsbt_pspace_data): Change type.
2450 (dsbt_pspace_data_cleanup): Remove.
2451 (get_dsbt_info, _initialize_dsbt_solib): Update.
2452
9d52077d
TT
24532019-07-10 Tom Tromey <tromey@adacore.com>
2454
2455 * spu-tdep.c (spu_overlay_data): Change type.
2456 (spu_get_overlay_table, spu_overlay_new_objfile)
2457 (_initialize_spu_tdep): Update.
2458
22a20dca
TT
24592019-07-10 Tom Tromey <tromey@adacore.com>
2460
2461 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2462 destructor.
2463 (dbx_objfile_data_key): Change type and declare later.
2464 (DBX_SYMFILE_INFO): Rewrite.
2465 * dbxread.c (dbx_objfile_data_key): Change type.
2466 (dbx_symfile_init): Update.
2467 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2468 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2469 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2470
cb60f420
TT
24712019-07-10 Tom Tromey <tromey@adacore.com>
2472
2473 * jit.c (jit_program_space_key): Change type. Move lower.
2474 (get_jit_program_space_data): Update.
2475 (jit_program_space_data_cleanup): Remove.
2476 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2477 Update.
2478 (struct jit_program_space_data): Add initializers.
2479
51df2ae3
TT
24802019-07-10 Tom Tromey <tromey@adacore.com>
2481
2482 * solib-darwin.c (struct darwin_info): Add initializers.
2483 (solib_darwin_pspace_data): Change type.
2484 (darwin_pspace_data_cleanup): Remove.
2485 (get_darwin_info, _initialize_darwin_solib): Update.
2486
18101a35
TT
24872019-07-10 Tom Tromey <tromey@adacore.com>
2488
2489 * remote-sim.c (struct sim_inferior_data): Add initializers,
2490 constructor, and destructor.
2491 (sim_inferior_data_key): Change type. Move lower.
2492 (check_for_duplicate_sim_descriptor): Update.
2493 (get_sim_inferior_data): Use new. Update.
2494 (~sim_inferior_data_cleanup): Rename from
2495 sim_inferior_data_cleanup. Simplify.
2496 (gdbsim_close_inferior, simulator_command)
2497 (sim_command_completer, _initialize_remote_sim): Update.
2498 (next_pid, INITIAL_PID): Move earlier.
2499
05b08ac1
TT
25002019-07-10 Tom Tromey <tromey@adacore.com>
2501
2502 * python/python-internal.h (create_thread_object): Return
2503 gdbpy_ref.
2504 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2505 * python/py-inferior.c (struct threadlist_entry): Add
2506 constructor.
2507 <thread_obj>: Now a gdbpy_ref.
2508 (thread_to_thread_object): Update.
2509 (add_thread_object): Use new.
2510 (delete_thread_object): Use delete.
2511 (infpy_threads): Update.
2512 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2513 GIL.
2514
32372d80
TT
25152019-07-10 Tom Tromey <tromey@adacore.com>
2516
2517 * valops.c (value_cast): Specialize error message for Ada.
2518
5c458ae8
SM
25192019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2520
2521 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2522
4c462cb0
SM
25232019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2524
2525 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2526 bpstat_should_step): Return bool, adjust comments.
2527 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2528 bpstat_should_step): Likewise.
2529
89abbcc2
AH
25302019-07-10 Alan Hayward <alan.hayward@arm.com>
2531
2532 * features/Makefile: Use feature target descriptions for Arm.
2533 * features/arm/arm-core.c: Generate new file.
2534 * features/arm/arm-fpa.c: Likewise.
2535 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2536 * features/arm/arm-m-profile.c: Likewise.
2537 * features/arm/arm-vfpv2.c: Likewise.
2538 * features/arm/arm-vfpv3.c: Likewise.
2539 * features/arm/xscale-iwmmxt.c: Likewise.
2540 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2541
166a82be
AH
25422019-07-10 Alan Hayward <alan.hayward@arm.com>
2543
2544 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2545 ptrace earlier.
2546
9fb4c7e9
AH
25472019-07-10 Alan Hayward <alan.hayward@arm.com>
2548
2549 * features/aarch64-pauth.c: Regenerate.
2550
e2d0f980
SM
25512019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2552
2553 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2554 bool.
2555 (bpstat_what): Use false instead of 0.
2556
a38118e5
PA
25572019-07-09 Pedro Alves <palves@redhat.com>
2558
2559 * break-catch-throw.c (is_exception_catchpoint): New.
2560 * breakpoint.c (print_one_breakpoint_location): New parameter
2561 'raw_loc'. Handle it. Use
2562 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2563 looking at the breakpoint's type.
2564 (print_one_breakpoint): If handling "maint info breakpoints", also
2565 print locations of exception catchpoints.
2566 * breakpoint.h (is_exception_catchpoint): Declare.
2567
cb1e4e32
PA
25682019-07-09 Pedro Alves <palves@redhat.com>
2569
2570 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2571 "addr" field.
2572 (allocate_location_exception_catchpoint): New.
2573 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2574 (initialize_throw_catchpoint_ops): Install
2575 allocate_location_exception_catchpoint as allocate_location
2576 method.
2577 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2578 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2579 bp_loc_other.
2580 (breakpoint_address_is_meaningful): Delete.
2581 (bl_address_is_meaningful): New.
2582 (breakpoint_locations_match): Adjust comment.
2583 (bp_location_from_bp_type): New, factored out of...
2584 (bp_location::bp_location(breakpoint *)): ... this.
2585 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2586 factored out of...
2587 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2588 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2589 breakpoint_address_is_meaningful.
2590 (bp_locations_compare): Adjust comment.
2591 (update_global_location_list): Use bl_address_is_meaningful
2592 instead of breakpoint_address_is_meaningful.
2593 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2594 explicit.
2595 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2596 * python/py-breakpoint.c (bppy_get_location): No longer check
2597 whether location is null.
2598
b58a68fe
PA
25992019-07-09 Pedro Alves <palves@redhat.com>
2600
2601 PR c++/15468
2602 * breakpoint.c (print_one_breakpoint_location): Remove
2603 single-location assert.
2604
268a13a5
TT
26052019-07-09 Tom Tromey <tom@tromey.com>
2606
2607 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2608 * configure: Rebuild.
2609 * configure.ac: Change common to gdbsupport.
2610 * gdbsupport: Rename from common.
2611 * acinclude.m4: Change common to gdbsupport.
2612 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2613 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2614 gdbsupport.
2615 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2616 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2617 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2618 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2619 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2620 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2621 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2622 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2623 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2624 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2625 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2626 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2627 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2628 coff-pe-read.c, command.h, compile/compile-c-support.c,
2629 compile/compile-c.h, compile/compile-cplus-symbols.c,
2630 compile/compile-cplus-types.c, compile/compile-cplus.h,
2631 compile/compile-loc2c.c, compile/compile.c, completer.c,
2632 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2633 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2634 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2635 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2636 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2637 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2638 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2639 features/aarch64-core.c, features/aarch64-fpu.c,
2640 features/aarch64-pauth.c, features/aarch64-sve.c,
2641 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2642 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2643 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2644 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2645 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2646 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2647 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2648 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2649 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2650 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2651 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2652 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2653 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2654 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2655 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2656 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2657 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2658 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2659 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2660 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2661 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2662 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2663 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2664 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2665 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2666 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2667 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2668 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2669 minsyms.c, mips-linux-tdep.c, namespace.h,
2670 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2671 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2672 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2673 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2674 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2675 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2676 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2677 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2678 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2679 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2680 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2681 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2682 procfs.c, producer.c, progspace.h, psymtab.h,
2683 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2684 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2685 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2686 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2687 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2688 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2689 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2690 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2691 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2692 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2693 target-memory.c, target.c, target.h, target/waitstatus.c,
2694 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2695 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2696 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2697 unittests/array-view-selftests.c,
2698 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2699 unittests/common-utils-selftests.c,
2700 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2701 unittests/format_pieces-selftests.c,
2702 unittests/function-view-selftests.c,
2703 unittests/lookup_name_info-selftests.c,
2704 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2705 unittests/mkdir-recursive-selftests.c,
2706 unittests/observable-selftests.c,
2707 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2708 unittests/parse-connection-spec-selftests.c,
2709 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2710 unittests/scoped_fd-selftests.c,
2711 unittests/scoped_mmap-selftests.c,
2712 unittests/scoped_restore-selftests.c,
2713 unittests/string_view-selftests.c, unittests/style-selftests.c,
2714 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2715 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2716 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2717 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2718 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2719 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2720
5b0e2db4
AB
27212019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2722
2723 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2724 bool value.
2725 (decode_digits_ordinary): Set explicit_line field in sal.
2726 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2727 symtab_and_line that was set on an explicit line number in
2728 assembler code. Do always update the recorded symtab and line if
2729 we do skip the prologue.
2730
0ba852ab
AB
27312019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2732
2733 * breakpoint.c (set_breakpoint_location_function): Remove
2734 explicit_loc parameter.
2735 (momentary_breakpoint_from_master): Update call to
2736 set_breakpoint_location_function.
2737 (add_location_to_breakpoint): Likewise.
2738
b3a7d171
AB
27392019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2740
2741 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2742 required features based on default bfd type when no specific bfd
2743 is present.
2744
1f6f6e21
PW
27452019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2746
2747 * NEWS: Mention that GDB printf and eval commands can now print
2748 C-style and Ada-style convenience var strings without
2749 calling the inferior.
2750 * printcmd.c (printf_c_string): Locally print GDB internal var
2751 instead of transiting via the inferior.
2752 (printf_wide_c_string): Likewise.
2753
27542019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2755
2756 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2757
0598af48
TT
27582019-07-04 Tom Tromey <tom@tromey.com>
2759
2760 PR tui/24724:
2761 * tui/tui-winsource.c (tui_clear_source_content): Update.
2762 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2763 (tui_update_breakpoint_info): Update.
2764 (tui_set_exec_info_content): Update.
2765 * tui/tui-source.c (tui_set_source_content_nil): Update.
2766 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2767 has_break.
2768 * tui/tui-data.h (enum tui_bp_flag): New.
2769 (tui_bp_flags): New enum flags type.
2770 (struct tui_source_element) <break_mode>: Change type. Rename
2771 from has_break.
2772 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2773 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2774 constants.
2775 * tui/tui-winsource.h: Fix comment.
2776
350fab54
AH
27772019-07-04 Alan Hayward <alan.hayward@arm.com>
2778
2779 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2780 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2781 (store_fpregs_to_thread)
2782 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2783 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2784 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2785 (IWMMXT_REGS_SIZE): Add define.
2786 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2787 (fetch_vfp_regs, store_vfp_regs)
2788 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2789 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2790
f0452268
AH
27912019-07-04 Alan Hayward <alan.hayward@arm.com>
2792
2793 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2794 defines.
2795 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2796 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2797 (ARM_INT_REGISTER_SIZE): ...to this.
2798 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2799 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2800 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2801 (arm_linux_collect_gregset, supply_nwfpe_register)
2802 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2803 defines.
2804 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2805 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2806 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2807 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2808 (arm_return_in_memory, arm_store_return_value)
2809 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2810 (arm_record_ld_st_multiple): Likewise.
2811 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2812 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2813
e935475c
AH
28142019-07-04 Alan Hayward <alan.hayward@arm.com>
2815
2816 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2817 AARCH64_DISPLACED_MODIFIED_INSNS.
2818 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2819 (aarch64_displaced_step_copy_insn): Likewise.
2820 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2821 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2822 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2823 ARM_DISPLACED_MODIFIED_INSNS.
2824 * arm-tdep.c (arm_gdbarch_init): Likewise.
2825 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2826 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2827 (struct arm_displaced_step_closure): Use
2828 ARM_DISPLACED_MODIFIED_INSNS.
2829
df0bb381
AH
28302019-07-04 Alan Hayward <alan.hayward@arm.com>
2831
2832 * features/Makefile: Remove unused xml files.
2833 * features/aarch64.xml: Remove.
2834 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2835 * features/i386/amd64-avx-avx512.xml: Remove.
2836 * features/i386/amd64-avx-linux.xml: Remove.
2837 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2838 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2839 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2840 * features/i386/amd64-avx-mpx.xml: Remove.
2841 * features/i386/amd64-avx.xml: Remove.
2842 * features/i386/amd64-linux.xml: Remove.
2843 * features/i386/amd64-mpx-linux.xml: Remove.
2844 * features/i386/amd64-mpx.xml: Remove.
2845 * features/i386/amd64.xml: Remove.
2846 * features/i386/i386-avx-avx512-linux.xml: Remove.
2847 * features/i386/i386-avx-avx512.xml: Remove.
2848 * features/i386/i386-avx-linux.xml: Remove.
2849 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2850 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2851 * features/i386/i386-avx-mpx-linux.xml: Remove.
2852 * features/i386/i386-avx-mpx.xml: Remove.
2853 * features/i386/i386-avx.xml: Remove.
2854 * features/i386/i386-linux.xml: Remove.
2855 * features/i386/i386-mmx-linux.xml: Remove.
2856 * features/i386/i386-mmx.xml: Remove.
2857 * features/i386/i386-mpx-linux.xml: Remove.
2858 * features/i386/i386-mpx.xml: Remove.
2859 * features/i386/i386.xml: Remove.
2860 * features/i386/x32-avx-avx512-linux.xml: Remove.
2861 * features/i386/x32-avx-linux.xml: Remove.
2862 * features/i386/x32-linux.xml: Remove.
2863
edd6266a
AH
28642019-07-04 Alan Hayward <alan.hayward@arm.com>
2865
2866 * regformats/aarch64.dat: Remove.
2867 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2868 * regformats/i386/amd64-avx-linux.dat: Remove.
2869 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2870 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2871 * regformats/i386/amd64-linux.dat: Remove.
2872 * regformats/i386/amd64-mpx-linux.dat: Remove.
2873 * regformats/i386/amd64.dat: Remove.
2874 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2875 * regformats/i386/i386-avx-linux.dat: Remove.
2876 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2877 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2878 * regformats/i386/i386-linux.dat: Remove.
2879 * regformats/i386/i386-mmx-linux.dat: Remove.
2880 * regformats/i386/i386-mpx-linux.dat: Remove.
2881 * regformats/i386/i386.dat: Remove.
2882 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2883 * regformats/i386/x32-avx-linux.dat: Remove.
2884 * regformats/i386/x32-linux.dat: Remove.
2885
2b40fda7
AH
28862019-07-04 Alan Hayward <alan.hayward@arm.com>
2887
2888 * aarch64-tdep.c: Remove xml self tests.
2889 * amd64-linux-tdep.c: Likewise.
2890 * amd64-tdep.c: Likewise.
2891 * i386-linux-tdep.c: Likewise.
2892 * i386-tdep.c: Likewise.
2893
5f4ba3e7
PA
28942019-07-03 Pedro Alves <palves@redhat.com>
2895
2896 PR cli/24732
2897 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2898 (pipe_cmd_option_defs): New.
2899 (make_pipe_cmd_options_def_group): New.
2900 (pipe_command): Use gdb::option::process_options.
2901 (pipe_command_completer): New function.
2902 (_initialize_cli_cmds): Install completer for "pipe" command.
2903
3d9be6f5
PA
29042019-07-03 Pedro Alves <palves@redhat.com>
2905
2906 * cli/cli-option.c (union option_value) <string>: New field.
2907 (struct option_def_and_value): Add ctor, move ctor, dtor and
2908 use DISABLE_COPY_AND_ASSIGN.
2909 (option_def_and_value::clear_value): New.
2910 (parse_option, save_option_value_in_ctx, get_val_type_str)
2911 (add_setshow_cmds_for_options): Handle var_string.
2912 * cli-option.h (union option_def::var_address) <string>: New
2913 field.
2914 (struct string_option_def): New.
2915 * maint-test-options.c (struct test_options_opts): Add default
2916 ctor and use DISABLE_COPY_AND_ASSIGN.
2917 <string_opt>: New field.
2918 (test_options_opts::~test_options_opts): New.
2919 (test_options_opts::dump): Also dump "-string".
2920 (test_options_option_defs): Install "string.
2921
41fc454c
PA
29222019-07-03 Pedro Alves <palves@redhat.com>
2923
2924 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2925 option_value with a null enumeration.
2926 (complete_options): Save the option values in the context.
2927 (save_option_value_in_ctx): New, factored out from ...
2928 (process_options): ... here.
2929 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2930 of the function.
2931 * maint-test-options.c (test_options_opts::dump): New, factored
2932 out from ...
2933 (maintenance_test_options_command_mode): ... here.
2934 (maintenance_test_options_command_completion_result): Delete.
2935 (maintenance_test_options_command_completion_text): Update
2936 comment.
2937 (maintenance_show_test_options_completion_result): Change
2938 prototype. Just print
2939 maintenance_test_options_command_completion_text.
2940 (save_completion_result): New.
2941 (maintenance_test_options_completer_mode): Pass options context to
2942 complete_options, and then save a dump.
2943 (_initialize_maint_test_options): Use add_cmd to install "maint
2944 show test-options-completion-result".
2945
fdbc9870
PA
29462019-07-03 Pedro Alves <palves@redhat.com>
2947
2948 * NEWS (New commands): Mention "with" and "maint with".
2949 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2950 (with_command, with_command_completer): New.
2951 (pipe_command): Adjust to new repeat_previous
2952 interface.
2953 (_initialize_cli_cmds): Install the "with" command and its "w"
2954 alias.
2955 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2956 declarations.
2957 * cli/cli-setshow.c (parse_cli_var_uinteger)
2958 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2959 argument strings for all var_types.
2960 (get_setshow_command_value_string): New, factored out from ...
2961 (do_show_command): ... this.
2962 * cli/cli-setshow.h: Include <string>.
2963 (get_setshow_command_value_string): Declare.
2964 * command.h (repeat_previous): Now returns const char *. Adjust
2965 comment.
2966 * maint.c: Include "cli/cli-cmds.h".
2967 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2968 (_initialize_maint_cmds): Register the "maintenance with" command.
2969 * top.c (repeat_previous): Move bits from pipe_command here:
2970 Return the saved command line, if any; error out if there's no
2971 command to relaunch.
2972
c6ac8931
PA
29732019-07-03 Pedro Alves <palves@redhat.com>
2974
2975 * NEWS (New commands): Mention "maint set/show test-settings"
2976 instead of "maint test-settings".
2977 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2978 (maintenance_test_settings_set_list): Rename to ...
2979 (maintenance_set_test_settings_list): ... this.
2980 (maintenance_test_settings_show_list): Rename to ...
2981 (maintenance_show_test_settings_list): ... this.
2982 (maintenance_test_settings_cmd): Delete.
2983 (maintenance_test_settings_set_cmd): ...
2984 (maintenance_set_test_settings_cmd): ... this.
2985 (maintenance_test_settings_show_cmd): ...
2986 (maintenance_show_test_settings_cmd): ... this.
2987 (maintenance_test_settings_show_value_cmd):
2988 (maintenance_show_test_settings_value_cmd): ... this.
2989 (_initialize_maint_test_settings): No longer install the "maint
2990 test-settings" prefix command. Rename "maint test-settings set"
2991 to "maint set test-settings", and "maint test-settings show" to
2992 "maint show test-settings". Adjust all subcommands.
2993
d1fcf2fd
PA
29942019-07-03 Pedro Alves <palves@redhat.com>
2995
2996 * maint-test-settings.c: Fix file's intro comment. Replace all
2997 references to "test-options" with references to "test-settings",
2998 in comments.
2999
970f9d09
PA
30002019-07-03 Pedro Alves <palves@redhat.com>
3001
3002 * maint-test-settings.c (maintenance_test_settings_xxx)
3003 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3004 New.
3005 (maintenance_test_settings_enums): Use them.
3006 (maintenance_test_settings_enum): Default to
3007 maintenance_test_settings_xxx.
3008 (_initialize_maint_test_settings): Initialize
3009 MAINTENANCE_TEST_SETTINGS_FILENAME.
3010
f3869b1a
SM
30112019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3012
3013 * breakpoint.h (remove_breakpoints_inf): Change return type to
3014 void, move function documentation here.
3015 * breakpoint.c (remove_breakpoints_inf): Change return type to
3016 void, move function documentation to header.
3017
54d66006
PA
30182019-07-02 Pedro Alves <palves@redhat.com>
3019
3020 * NEWS (Completion improvements): Mention "info threads".
3021 * thread.c (struct info_threads_opts, info_threads_option_defs)
3022 (make_info_threads_options_def_group): New.
3023 (info_threads_command): Use gdb::option::process_options.
3024 (info_threads_command_completer): New.
3025 (_initialize_thread): Use gdb::option::build_help to build the
3026 help text for "info threads".
3027
854f6088
SM
30282019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3029
3030 * defs.h (generic_load): Move from here...
3031 * symfile.h (generic_load): ... to here. Rename name parameter
3032 to args.
3033 * symfile.c (generic_load): Add comment.
3034
54ee4252
TT
30352019-07-01 Tom Tromey <tromey@adacore.com>
3036
3037 * dwarf2read.c
3038 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3039 declaration of without_params. Fix formatting.
3040
65392b3e
TT
30412019-07-01 Tom Tromey <tromey@adacore.com>
3042
3043 * ada-exp.y (find_primitive_type): Update.
3044 * ada-lang.h (ada_lookup_symbol): Update.
3045 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3046 parameter.
3047 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3048
7d7571f0
SDJ
30492019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3050
3051 PR breakpoints/24541
3052 * gdbarch.c: Regenerate.
3053 * gdbarch.h: Regenerate.
3054 * gdbarch.sh: Add 'stap_adjust_register'.
3055 * i386-tdep.c: Include '<unordered_set>'.
3056 (i386_stap_adjust_register): New function.
3057 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3058 * stap-probe.c (stap_parse_register_operand): Call
3059 'gdbarch_stap_adjust_register'.
3060
5af5392a
SDJ
30612019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3062
3063 PR python/24742
3064 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3065 * python/python.c (do_start_initialization): Use 'xmalloc'
3066 instead of 'PyMem_Malloc'.
3067
10d06d82
TT
30682019-06-28 Tom Tromey <tromey@adacore.com>
3069
3070 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3071 for Ada.
3072
1b7f24cd
TT
30732019-06-27 Tom Tromey <tromey@adacore.com>
3074
3075 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3076 objfile_key.
3077 (arm_find_mapping_symbol, arm_record_special_symbol)
3078 (_initialize_arm_tdep): Update.
3079 (arm_objfile_data_free): Remove.
3080
3d507ff2
TT
30812019-06-27 Tom Tromey <tromey@adacore.com>
3082
3083 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3084 to cp_print_static_field.
3085
762c164d
TT
30862019-06-26 Tom Tromey <tromey@adacore.com>
3087
3088 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3089 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3090 declare.
3091
aa2f9bcf
AH
30922019-06-26 Alan Hayward <alan.hayward@arm.com>
3093
3094 * features/aarch64-core.c (create_feature_aarch64_core):
3095 Regenerate.
3096 * features/aarch64-core.xml: Add cpsr flags.
3097
3426ae57
AH
30982019-06-26 Alan Hayward <alan.hayward@arm.com>
3099
3100 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3101 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3102
4838e44c
SM
31032019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3104
3105 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3106 field.
3107 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3108 use.
3109 (arm_record_special_symbol): Don't insert new symbol in sorted
3110 position, push it at the end.
3111
54cc7474
SM
31122019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3113
3114 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3115 (arm_mapping_symbol_s): Remove.
3116 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3117 (arm_mapping_symbol_vec): New typedef.
3118 (struct arm_per_objfile): Add constructor.
3119 <section_maps>: Change type to
3120 std::unique_ptr<arm_mapping_symbol_vec[]>.
3121 (arm_compare_mapping_symbols): Remove.
3122 (arm_find_mapping_symbol): Adjust to section_maps type change.
3123 (arm_objfile_data_free): Call delete on arm_per_objfile.
3124 (arm_record_special_symbol): Adjust to section_maps type change.
3125 Allocate arm_per_objfile with new.
3126
b65b566c
PW
31272019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3128
3129 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3130 with the command prefix.
3131
c2fc64f5
TT
31322019-06-25 Tom Tromey <tom@tromey.com>
3133
3134 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3135 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3136
fb54fa76
TT
31372019-06-25 Tom Tromey <tom@tromey.com>
3138
3139 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3140 type.
3141 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3142 protected.
3143
f7952c57
TT
31442019-06-25 Tom Tromey <tom@tromey.com>
3145
3146 * tui/tui-winsource.c
3147 (tui_source_window_base::set_is_exec_point_at): Add check against
3148 LOA_ADDRESS.
3149
17568d78
TT
31502019-06-25 Tom Tromey <tom@tromey.com>
3151
3152 * tui/tui-source.c (tui_set_source_content): Don't check before
3153 xfree.
3154 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3155
53e7cdba
TT
31562019-06-25 Tom Tromey <tom@tromey.com>
3157
3158 * tui/tui-winsource.h (tui_update_source_window_as_is)
3159 (tui_alloc_source_buffer, tui_line_is_displayed)
3160 (tui_addr_is_displayed): Change type of win_info.
3161 * tui/tui-winsource.c (tui_update_source_window_as_is)
3162 (tui_clear_source_content, tui_show_source_line)
3163 (tui_show_source_content, tui_source_window_base::refill)
3164 (tui_source_window_base::set_is_exec_point_at)
3165 (tui_source_window_base::set_is_exec_point_at)
3166 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3167 (tui_alloc_source_buffer, tui_line_is_displayed)
3168 (tui_addr_is_displayed): Change type of win_info. Update.
3169 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3170 (tui_source_window_base::do_make_visible_with_new_height):
3171 Update.
3172 * tui/tui-source.c (tui_set_source_content)
3173 (tui_set_source_content_nil)
3174 (tui_source_window::do_scroll_vertical): Update.
3175 * tui/tui-layout.c (show_layout): Update.
3176 * tui/tui-disasm.c (tui_set_disassem_content)
3177 (tui_disasm_window::do_scroll_vertical): Update.
3178 * tui/tui-data.h (tui_win_content): Remove.
3179 (struct tui_gen_win_info) <content, content_size>: Remove.
3180 (struct tui_source_element): Add initializers and destructor.
3181 (union tui_which_element, struct tui_win_element): Remove.
3182 (struct tui_source_window_base) <content>: New field.
3183 (struct tui_data_window): Remove destructor.
3184 (tui_alloc_content, tui_free_win_content)
3185 (tui_free_all_source_wins_content): Don't declare.
3186 * tui/tui-data.c (tui_initialize_static_data): Update.
3187 (init_content_element, tui_alloc_content): Remove.
3188 (~tui_gen_win_info): Update.
3189 (~tui_data_window, tui_free_all_source_wins_content)
3190 (tui_free_win_content, free_content, free_content_elements):
3191 Remove.
3192
7908abbf
TT
31932019-06-25 Tom Tromey <tom@tromey.com>
3194
3195 * tui/tui-winsource.h (tui_clear_source_content)
3196 (tui_erase_source_content, tui_show_source_content): Change type
3197 of win_info.
3198 * tui/tui-winsource.c (tui_clear_source_content)
3199 (tui_erase_source_content, tui_show_source_content): Change type
3200 of win_info.
3201 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3202 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3203 win_info.
3204 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3205 win_info.
3206 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3207
02c28df0
TT
32082019-06-25 Tom Tromey <tom@tromey.com>
3209
3210 * tui/tui-winsource.c (tui_clear_source_content)
3211 (tui_source_window_base::set_is_exec_point_at): Update.
3212 * tui/tui-source.c (tui_set_source_content_nil): Update.
3213 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3214 a bool.
3215 * tui/tui-data.c (init_content_element): Update.
3216
6658b1bf
TT
32172019-06-25 Tom Tromey <tom@tromey.com>
3218
3219 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3220 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3221 * tui/tui-layout.c (init_and_make_win): Update.
3222 * tui/tui.h (enum tui_win_type): Update.
3223 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3224 tui_win_is_auxillary.
3225 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3226 tui_win_is_auxillary.
3227
21e1c91e
TT
32282019-06-25 Tom Tromey <tom@tromey.com>
3229
3230 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3231 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3232 (tui_delete_data_content_windows, tui_display_all_data)
3233 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3234 Update.
3235 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3236 * tui/tui-regs.c (tui_last_regs_line_no)
3237 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3238 (tui_show_registers): Update.
3239 (tui_show_register_group): Return void. Update.
3240 (tui_display_registers_from, tui_display_reg_element_at_line)
3241 (tui_display_registers_from_line, tui_check_register_values):
3242 Update.
3243 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3244 member.
3245 (struct tui_data_window) <regs_content>: Now a std::vector.
3246 <regs_content_count>: Remove.
3247 (tui_add_content_elements, tui_free_data_content): Don't declare.
3248 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3249 (init_content_element): Remove DATA_WIN case. Add assert.
3250 (tui_add_content_elements): Remove.
3251 (tui_data_window): Update.
3252 (tui_free_data_content): Remove.
3253 (free_content_elements): Remove DATA_WIN case.
3254
115ac53b
TT
32552019-06-25 Tom Tromey <tom@tromey.com>
3256
3257 * tui/tui-data.c (tui_data_item_window): Update.
3258 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3259 * tui/tui-windata.c (tui_display_all_data)
3260 (tui_display_data_from_line): Update.
3261 (tui_check_data_values): Remove.
3262 * tui/tui-regs.c (tui_show_register_group)
3263 (tui_display_reg_element_at_line): Update.
3264 * tui/tui-hooks.c (tui_register_changed)
3265 (tui_refresh_frame_and_register_information): Call
3266 tui_check_register_values.
3267 * tui/tui-data.h (struct tui_data_window) <data_content,
3268 data_content_count, data_type>: Remove.
3269 (enum tui_data_type): Remove.
3270
3271 * tui/tui-data.c (tui_data_window::clear_detail)
3272 (~tui_data_window): Update.
3273
eaf9738b
TT
32742019-06-25 Tom Tromey <tom@tromey.com>
3275
3276 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3277 declare.
3278 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3279 Rename from tui_first_data_item_displayed. Update.
3280 (tui_data_window::refresh_all)
3281 (tui_data_window::do_scroll_vertical): Update.
3282 * tui/tui-data.h (struct tui_data_window)
3283 <first_data_item_displayed>: Declare new method.
3284
31ca4723
TT
32852019-06-25 Tom Tromey <tom@tromey.com>
3286
3287 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3288 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3289 contents...
3290 (tui_initialize_static_data): ...here.
3291
41bcff7f
TT
32922019-06-25 Tom Tromey <tom@tromey.com>
3293
3294 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3295 (tui_display_registers_from, tui_check_register_values): Update.
3296 (tui_display_register): Remove win_info parameter; update.
3297 (tui_get_register): Change type of parameters.
3298 * tui/tui-data.h (struct tui_data_element): Remove.
3299 (union tui_which_element) <data>: Remove.
3300 <data_window>: Change type.
3301 (struct tui_data_item_window): New.
3302 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3303 case. Add assert.
3304 (~tui_data_item_window): New destructor.
3305 (free_content_elements): Remove DATA_ITEM_WIN case.
3306
d2802c33
TT
33072019-06-25 Tom Tromey <tom@tromey.com>
3308
3309 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3310 Remove.
3311
dd835f8b
TT
33122019-06-25 Tom Tromey <tom@tromey.com>
3313
3314 * tui/tui-data.h (struct tui_command_element): Remove.
3315 (union tui_which_element) <command>: Remove.
3316 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3317 assert.
3318 (free_content_elements): Remove CMD_WIN case.
3319
bd7db367
TT
33202019-06-25 Tom Tromey <tom@tromey.com>
3321
3322 * tui/tui-layout.c (tui_set_layout): Update.
3323 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3324 * tui/tui-data.c (layout_def): Update.
3325
3add462f
TT
33262019-06-25 Tom Tromey <tom@tromey.com>
3327
3328 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3329 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3330 (tui_source_window_base::set_new_height): Update.
3331 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3332 Update.
3333 (tui_set_locator_fullname, tui_set_locator_info)
3334 (tui_show_frame_info): Update.
3335 * tui/tui-source.c (tui_set_source_content)
3336 (tui_source_is_displayed): Update.
3337 * tui/tui-layout.c (show_source_disasm_command, show_data)
3338 (show_source_or_disasm_and_command): Update.
3339 * tui/tui-disasm.c (tui_set_disassem_content)
3340 (tui_get_begin_asm_address): Update.
3341 * tui/tui-data.h (struct tui_locator_element): Remove.
3342 (union tui_which_element) <locator>: Remove.
3343 (struct tui_locator_window): New.
3344 (tui_locator_win_info_ptr): Change return type.
3345 * tui/tui-data.c (_locator): Change type.
3346 (tui_locator_win_info_ptr): Change return type.
3347 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3348 (tui_alloc_content): Add assert.
3349
489e9d8b
TT
33502019-06-25 Tom Tromey <tom@tromey.com>
3351
3352 * tui/tui-winsource.c
3353 (tui_exec_info_window::maybe_allocate_content): New method.
3354 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3355 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3356 (make_source_or_disasm_window): Add cast.
3357 * tui/tui-data.h (union tui_which_element) <simple_string>:
3358 Remove.
3359 (struct tui_source_info): New.
3360 (struct tui_source_window_base) <execution_info>: Change type.
3361 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3362 case, and add assert.
3363 (tui_alloc_content): Add assert.
3364
c3fabb7d
TT
33652019-06-25 Tom Tromey <tom@tromey.com>
3366
3367 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3368 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3369 * tui/tui-data.c (tui_alloc_win_info): Remove.
3370
bbc228ee
TT
33712019-06-25 Tom Tromey <tom@tromey.com>
3372
3373 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3374 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3375 can_highlight.
3376
5fcee43a
TT
33772019-06-25 Tom Tromey <tom@tromey.com>
3378
3379 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3380 make_visible_with_new_height method.
3381 (tui_win_info::make_visible_with_new_height): New method.
3382 (tui_source_window_base::do_make_visible_with_new_height)
3383 (tui_data_window::do_make_visible_with_new_height)
3384 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3385 (make_visible_with_new_height): Remove.
3386 (tui_resize_all, tui_adjust_win_heights): Use
3387 make_visible_with_new_height method.
3388 * tui/tui-data.h (struct tui_win_info)
3389 <do_make_visible_with_new_height, make_visible_with_new_height>:
3390 New methods.
3391 (struct tui_source_window_base, struct tui_data_window)
3392 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3393 methods.
3394
d83f1fe6
TT
33952019-06-25 Tom Tromey <tom@tromey.com>
3396
3397 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3398 method.
3399 (update_tab_width): Call update_tab_width method.
3400 * tui/tui-data.h (struct tui_win_info)
3401 (struct tui_source_window_base) <update_tab_width>: New methods.
3402
17374de4
TT
34032019-06-25 Tom Tromey <tom@tromey.com>
3404
3405 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3406 parameter.
3407 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3408 parameter.
3409 (tui_gen_win_info::make_visible): Update.
3410 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3411 parameter.
3412 * tui/tui-data.h (enum tui_box): New enum.
3413 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3414
f936bca2
TT
34152019-06-25 Tom Tromey <tom@tromey.com>
3416
3417 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3418 init_and_make_win for EXEC_INFO_WIN.
3419 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3420 longer inline.
3421 (struct tui_win_info) <~tui_win_info>: Inline.
3422 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3423 Don't declare.
3424 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3425 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3426 Remove.
3427 (tui_initialize_static_data): Update.
3428 (~tui_gen_win_info): Handle more cleanup here.
3429 (~tui_source_window_base): Delete "execution_info".
3430 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3431
d6ba6a11
TT
34322019-06-25 Tom Tromey <tom@tromey.com>
3433
3434 * tui/tui-layout.c (make_command_window): Don't set
3435 can_highlight.
3436 (show_source_disasm_command): Call the reset method.
3437 (show_data): Don't set can_highlight. Call the reset method.
3438 (tui_gen_win_info::reset): Rename from init_gen_win_info
3439 (init_and_make_win): Simplify. Return tui_gen_win_info.
3440 (show_source_or_disasm_and_command): Call the reset method.
3441 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3442 (struct tui_cmd_window): Set can_highlight.
3443
48a3bd16
TT
34442019-06-25 Tom Tromey <tom@tromey.com>
3445
3446 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3447 from make_visible.
3448 (tui_make_visible, tui_make_invisible): Rewrite.
3449 (tui_win_info::make_visible): Remove.
3450 (tui_source_window_base::make_visible): Update.
3451 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3452 method. Moved from...
3453 (struct tui_win_info) <make_visible>: ...here.
3454
c3bd716f
TT
34552019-06-25 Tom Tromey <tom@tromey.com>
3456
3457 * tui/tui-winsource.c
3458 (tui_source_window_base::do_scroll_horizontal): Remove direction
3459 parameter.
3460 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3461 direction parameter.
3462 * tui/tui-win.c (tui_win_info::forward_scroll)
3463 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3464 (tui_win_info::right_scroll): Update.
3465 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3466 direction parameter.
3467 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3468 direction parameter.
3469 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3470 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3471 Remove direction parameter.
3472 (struct tui_source_window_base, struct tui_source_window)
3473 (struct tui_disasm_window, struct tui_data_window)
3474 (struct tui_cmd_window): Update.
3475
21c32dca
TT
34762019-06-25 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui-winsource.h (tui_set_exec_info_content)
3479 (tui_show_exec_info_content, tui_erase_exec_info_content)
3480 (tui_clear_exec_info_content, tui_update_exec_info): Change
3481 argument to tui_source_window_base.
3482 * tui/tui-winsource.c (tui_set_exec_info_content)
3483 (tui_show_exec_info_content, tui_erase_exec_info_content)
3484 (tui_clear_exec_info_content, tui_update_exec_info): Change
3485 argument to tui_source_window_base.
3486
73fbdc65
TT
34872019-06-25 Tom Tromey <tom@tromey.com>
3488
3489 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3490 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3491
33325343
TT
34922019-06-25 Tom Tromey <tom@tromey.com>
3493
3494 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3495 check.
3496
29d2c474
TT
34972019-06-25 Tom Tromey <tom@tromey.com>
3498
3499 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3500 type to void.
3501 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3502 type to void.
3503 * tui/tui-source.c (tui_set_source_content): Update.
3504 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3505
152f3f4b
TT
35062019-06-25 Tom Tromey <tom@tromey.com>
3507
3508 * tui/tui-win.c (window_name_completer, tui_set_focus)
3509 (tui_all_windows_info): Use name method.
3510 * tui/tui-data.h (struct tui_gen_win_info)
3511 (struct tui_source_window, struct tui_disasm_window)
3512 (struct tui_data_window, struct tui_cmd_window) <name>: New
3513 method.
3514 (tui_win_name): Don't declare.
3515 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3516 (tui_win_name): Remove.
3517
be4da588
TT
35182019-06-25 Tom Tromey <tom@tromey.com>
3519
3520 * tui/tui-winsource.h (tui_update_source_window)
3521 (tui_update_source_window_as_is): Change parameter type.
3522 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3523 to be a tui_source_window_base.
3524 (tui_update_source_window_as_is): Likewise.
3525 * tui/tui-win.c (make_visible_with_new_height): Update.
3526
5b81daba
TT
35272019-06-25 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-winsource.c (tui_erase_source_content)
3530 (tui_show_source_content, tui_show_exec_info_content)
3531 (tui_erase_exec_info_content): Use refresh_window method.
3532 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3533 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3534 from tui_refresh_win.
3535 (tui_data_window::refresh_window): New method.
3536 (tui_win_info::refresh, tui_source_window_base::refresh)
3537 (tui_refresh_all): Use refresh_window method.
3538 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3539 method.
3540 * tui/tui-regs.c (tui_display_register): Call refresh_window
3541 method.
3542 * tui/tui-layout.c (show_source_disasm_command)
3543 (show_source_or_disasm_and_command): Call refresh_window method.
3544 * tui/tui-data.h (struct tui_gen_win_info)
3545 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3546 New method.
3547
cb2ce893
TT
35482019-06-25 Tom Tromey <tom@tromey.com>
3549
3550 * tui/tui.c (tui_rl_other_window, tui_enable)
3551 (tui_is_window_visible, tui_get_command_dimension): Update.
3552 * tui/tui-winsource.c (tui_update_source_window_as_is)
3553 (tui_clear_source_content, tui_erase_source_content)
3554 (tui_show_source_line, tui_source_window_base::refill)
3555 (tui_source_window_base::do_scroll_horizontal)
3556 (tui_source_window_base::set_is_exec_point_at)
3557 (tui_update_breakpoint_info, tui_set_exec_info_content)
3558 (tui_alloc_source_buffer, tui_line_is_displayed)
3559 (tui_addr_is_displayed): Update.
3560 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3561 (tui_check_and_display_highlight_if_needed)
3562 (tui_win_info::make_visible, tui_win_info::refresh)
3563 (tui_refresh_all): Update.
3564 * tui/tui-windata.c (tui_first_data_item_displayed)
3565 (tui_delete_data_content_windows, tui_erase_data_content)
3566 (tui_display_all_data, tui_data_window::refresh_all)
3567 (tui_check_data_values): Update.
3568 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3569 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3570 (tui_win_info::backward_scroll, tui_refresh_all_win)
3571 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3572 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3573 (tui_source_window_base::set_new_height)
3574 (tui_data_window::set_new_height)
3575 (make_invisible_and_set_new_height)
3576 (make_visible_with_new_height, new_height_ok)
3577 (parse_scrolling_args): Update.
3578 * tui/tui-stack.c (tui_show_frame_info): Update.
3579 * tui/tui-source.c (tui_set_source_content)
3580 (tui_set_source_content_nil, tui_source_is_displayed)
3581 (tui_source_window::do_scroll_vertical): Update.
3582 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3583 (tui_display_registers_from, tui_display_reg_element_at_line)
3584 (tui_check_register_values, tui_reg_command): Update.
3585 * tui/tui-layout.c (tui_default_win_height)
3586 (show_source_disasm_command, show_data, init_and_make_win)
3587 (show_source_or_disasm_and_command): Update.
3588 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3589 (tui_redisplay_readline, tui_mld_flush)
3590 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3591 (tui_getc): Update.
3592 * tui/tui-disasm.c (tui_set_disassem_content)
3593 (tui_disasm_window::do_scroll_vertical): Update.
3594 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3595 Now virtual.
3596 (struct tui_win_info): Derive from tui_gen_win_info.
3597 <~tui_win_info>: Mark as override.
3598 <generic>: Remove member.
3599 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3600 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3601 (~tui_data_window, ~tui_win_info)
3602 (tui_free_all_source_wins_content): Update.
3603 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3604
ab313b35
TT
36052019-06-25 Tom Tromey <tom@tromey.com>
3606
3607 * tui/tui-layout.c (init_and_make_win): Use new.
3608 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3609 destructor, initializers.
3610 (tui_alloc_generic_win_info): Don't declare.
3611 * tui/tui-data.c (_locator): Add argument to constructor.
3612 (source_win, disasm_win): New globals.
3613 (exec_info): Remove.
3614 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3615 Update.
3616 (tui_alloc_generic_win_info): Remove.
3617 (init_content_element): Use new.
3618 (tui_win_info::tui_win_info): Update.
3619 (free_content_elements) <case DATA_WIN>: Use delete.
3620
dc2c33e4
TT
36212019-06-25 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3624 * tui/tui-windata.c (tui_first_data_item_displayed)
3625 (tui_delete_data_content_windows): Update.
3626 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3627 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3628 (tui_display_registers_from, tui_check_register_values): Update.
3629 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3630 pointer.
3631 * tui/tui-data.c (init_content_element): Update. Allocate the new
3632 window.
3633 (tui_free_data_content): Update.
3634 (free_content_elements) <case DATA_WIN>: Free the window.
3635
214a5cbe
TT
36362019-06-25 Tom Tromey <tom@tromey.com>
3637
3638 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3639 Update.
3640 * tui/tui-layout.c (make_command_window)
3641 (show_source_disasm_command, show_data, init_and_make_win)
3642 (show_source_or_disasm_and_command): Update.
3643 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3644 method.
3645 <can_highight, is_highlighted>: Now bool.
3646 (tui_set_win_highlight): Don't declare.
3647 * tui/tui-data.c (tui_set_win_highlight): Remove.
3648
8e2daf15
TT
36492019-06-25 Tom Tromey <tom@tromey.com>
3650
3651 * tui/tui-wingeneral.c (make_visible): Remove check of window
3652 type.
3653
8903bd8a
TT
36542019-06-25 Tom Tromey <tom@tromey.com>
3655
3656 * tui/tui-win.c (tui_win_info::max_height)
3657 (tui_cmd_window::max_height): New methods.
3658 (new_height_ok): Call max_height.
3659 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3660 <max_height>: New method.
3661
3f02ce1e
TT
36622019-06-25 Tom Tromey <tom@tromey.com>
3663
3664 * tui/tui-win.c (tui_source_window_base::set_new_height)
3665 (tui_data_window::set_new_height): New methods.
3666 (make_invisible_and_set_new_height): Call set_new_height method.
3667 * tui/tui-data.h (struct tui_win_info)
3668 (struct tui_source_window_base, struct tui_data_window)
3669 <set_new_height>: New method.
3670
1825f487
TT
36712019-06-25 Tom Tromey <tom@tromey.com>
3672
3673 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3674 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3675 tui_refresh_data_win.
3676 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3677 method.
3678 (tui_refresh_all_win): Call the refresh_all method.
3679 (tui_set_focus): Likewise.
3680 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3681 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3682 Likewise.
3683
ad54d15b
TT
36842019-06-25 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-winsource.h (tui_refill_source_window)
3687 (tui_set_is_exec_point_at): Don't declare.
3688 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3689 (tui_source_window_base::refill): Rename from
3690 tui_refill_source_window.
3691 (tui_source_window_base::do_scroll_horizontal): Update.
3692 (tui_source_window_base::set_is_exec_point_at): Rename from
3693 tui_set_is_exec_point_at.
3694 (tui_update_all_breakpoint_info): Update.
3695 * tui/tui-stack.c (tui_show_frame_info): Update.
3696 * tui/tui-layout.c (show_data): Add cast.
3697 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3698 * tui/tui-data.h (struct tui_source_window_base) <refill,
3699 set_is_exec_point_at>: New methods.
3700 (tui_source_windows, tui_add_to_source_windows): Update types.
3701 (tui_add_to_source_windows): Remove redundant declaration.
3702 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3703 (tui_source_windows): Change return type.
3704 (tui_clear_source_windows_detail): Update.
3705 (tui_add_to_source_windows): Change type of parameter.
3706 (tui_free_all_source_wins_content): Update.
3707
2042b506
TT
37082019-06-25 Tom Tromey <tom@tromey.com>
3709
3710 * tui/tui-wingeneral.c (tui_win_info::refresh)
3711 (tui_source_window_base::refresh): New methods.
3712 (tui_refresh_all): Call the refresh method.
3713 * tui/tui-data.h (struct tui_win_info)
3714 (struct tui_source_window_base) <refresh>: New method.
3715
56122977
TT
37162019-06-25 Tom Tromey <tom@tromey.com>
3717
3718 * tui/tui.h (tui_is_window_visible): Return bool.
3719 * tui/tui.c (tui_is_window_visible): Return bool.
3720 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3721 (tui_make_visible, tui_make_invisible)
3722 (tui_win_info::make_visible)
3723 (tui_source_window_base::make_visible, make_all_visible)
3724 (tui_make_all_visible, tui_make_all_invisible): Update.
3725 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3726 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3727 bool.
3728 (struct tui_win_info, struct tui_source_window_base)
3729 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3730 * tui/tui-data.c (tui_init_generic_part): Update.
3731
cda37efb
TT
37322019-06-25 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3735 (tui_source_window_base::make_visible): New methods.
3736 (make_all_visible): Make method call.
3737 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3738 (struct tui_source_window_base, struct tui_cmd_window): Override
3739 make_visible.
3740 (tui_win_is_source_type): Don't declare.
3741 * tui/tui-data.c (tui_win_is_source_type): Remove.
3742
6a0ee02c
TT
37432019-06-25 Tom Tromey <tom@tromey.com>
3744
3745 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3746 NULL check.
3747
63901aec
TT
37482019-06-25 Tom Tromey <tom@tromey.com>
3749
3750 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3751 Inline constructor. Add initializers for members.
3752 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3753 constructors; now inline in class.
3754
ceb13a13
TT
37552019-06-25 Tom Tromey <tom@tromey.com>
3756
3757 * tui/tui-regs.c (tui_show_registers): Update.
3758 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3759 bool.
3760 * tui/tui-data.c (tui_data_window::clear_detail)
3761 (tui_data_window): Update.
3762
238eb706
TT
37632019-06-25 Tom Tromey <tom@tromey.com>
3764
3765 * tui/tui-windata.c (tui_display_all_data)
3766 (tui_display_data_from_line, tui_display_data_from)
3767 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3768 Update.
3769 * tui/tui-regs.c (tui_last_regs_line_no)
3770 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3771 (tui_show_registers, tui_show_register_group)
3772 (tui_display_registers_from, tui_display_reg_element_at_line)
3773 (tui_display_registers_from_line, tui_check_register_values)
3774 (tui_reg_next, tui_reg_prev): Update.
3775 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3776 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3777 tui_data_window.
3778 (struct tui_win_info) <detail>: Remove. Add new fields from
3779 tui_data_info.
3780 (TUI_DATA_WIN): Add cast.
3781 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3782 (~tui_data_window): Simplify.
3783
81491aa0
TT
37842019-06-25 Tom Tromey <tom@tromey.com>
3785
3786 * tui/tui-layout.c (show_source_disasm_command)
3787 (show_source_or_disasm_and_command): Update.
3788 * tui/tui-io.c (update_cmdwin_start_line)
3789 (tui_redisplay_readline): Update.
3790 * tui/tui-data.h (struct tui_command_info): Remove.
3791 (struct tui_win_info) <detail>: Remove command_info member.
3792 (struct tui_data_window) <start_line>: New member, from
3793 tui_command_info.
3794 (TUI_CMD_WIN): Add casts.
3795
e6e41501
TT
37962019-06-25 Tom Tromey <tom@tromey.com>
3797
3798 * tui/tui-winsource.c (tui_update_source_window)
3799 (tui_refill_source_window)
3800 (tui_source_window_base::do_scroll_horizontal)
3801 (tui_update_breakpoint_info, tui_set_exec_info_content)
3802 (tui_show_exec_info_content, tui_erase_exec_info_content)
3803 (tui_clear_exec_info_content): Update.
3804 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3805 Update.
3806 * tui/tui-win.c (make_invisible_and_set_new_height)
3807 (make_visible_with_new_height): Update.
3808 * tui/tui-source.c (tui_set_source_content)
3809 (tui_show_symtab_source): Update.
3810 * tui/tui-layout.c (extract_display_start_addr)
3811 (show_source_disasm_command, show_data)
3812 (make_source_or_disasm_window)
3813 (show_source_or_disasm_and_command): Update.
3814 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3815 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3816 "gdbarch".
3817 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3818 to tui_source_window_base.
3819 (struct tui_win_info) <detail>: Remove source_info member.
3820 (struct tui_source_window_base) <has_locator>: Inline.
3821 Move contents from tui_source_info; rename has_locator member to
3822 m_has_locator.
3823 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3824 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3825 header file.
3826 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3827 Simplify.
3828 (tui_free_all_source_wins_content): Cast to
3829 tui_source_window_base.
3830
44f0e208
TT
38312019-06-25 Tom Tromey <tom@tromey.com>
3832
3833 * tui/tui-win.c (make_invisible_and_set_new_height)
3834 (make_visible_with_new_height): Call has_locator method.
3835 * tui/tui-layout.c (show_source_disasm_command, show_data)
3836 (show_source_or_disasm_and_command): Update for bool change.
3837 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3838 (tui_win_info) <has_locator>: New method.
3839 (struct tui_source_window_base) <has_locator>: New method.
3840 (tui_win_has_locator): Don't declare.
3841 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3842 from tui_win_has_locator.
3843 (tui_source_window_base): Use false, not FALSE.
3844
7778b912
TT
38452019-06-25 Tom Tromey <tom@tromey.com>
3846
3847 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3848 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3849 clear_detail method directly.
3850 (tui_clear_win_detail): Remove.
3851
f83d391c
TT
38522019-06-25 Tom Tromey <tom@tromey.com>
3853
3854 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3855 "this", not TUI_DISASM_WIN.
3856
13446e05
TT
38572019-06-25 Tom Tromey <tom@tromey.com>
3858
3859 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3860 declare.
3861 * tui/tui-winsource.c
3862 (tui_source_window_base::do_scroll_horizontal): Rename from
3863 tui_horizontal_source_scroll.
3864 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3865 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3866 from tui_vertical_data_scroll.
3867 * tui/tui-win.h (tui_scroll): Don't declare.
3868 * tui/tui-win.c (tui_win_info::forward_scroll)
3869 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3870 (tui_win_info::right_scroll): Rename and update.
3871 (tui_scroll_forward_command, tui_scroll_backward_command)
3872 (tui_scroll_left_command, tui_scroll_right_command): Update.
3873 (tui_scroll): Remove.
3874 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3875 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3876 from tui_vertical_source_scroll.
3877 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3878 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3879 from tui_vertical_disassem_scroll.
3880 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3881 do_scroll_horizontal>: New methods.
3882 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3883 Likewise.
3884 (struct tui_source_window_base): Add do_scroll_horizontal.
3885 (struct tui_source_window, struct tui_disasm_window): Add
3886 do_scroll_vertical.
3887 (struct tui_data_window, struct tui_cmd_window): Add
3888 do_scroll_horizontal and do_scroll_vertical.
3889 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3890
5cf82909
TT
38912019-06-25 Tom Tromey <tom@tromey.com>
3892
3893 * tui/tui-data.h (struct tui_source_window_base): New struct.
3894 (struct tui_source_window): Derive from tui_source_window_base.
3895 (struct tui_disasm_window): New struct.
3896 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3897 from tui_source_window::clear_detail.
3898 (tui_source_window_base): Rename from tui_source_window.
3899 (~tui_source_window_base): Rename from ~tui_source_window.
3900 (tui_alloc_win_info): Create a tui_disasm_window.
3901
ee1d42d6
TT
39022019-06-25 Tom Tromey <tom@tromey.com>
3903
3904 * tui/tui-data.h (struct tui_source_window)
3905 (struct tui_data_window): Declare destructors.
3906 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3907 destructors.
3908 (tui_win_info): Simplify.
3909
b4eb2452
TT
39102019-06-25 Tom Tromey <tom@tromey.com>
3911
3912 * tui/tui-winsource.c (tui_display_main)
3913 (tui_update_source_windows_with_addr)
3914 (tui_update_all_breakpoint_info): Update.
3915 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3916 (new_height_ok, parse_scrolling_args): Update.
3917 * tui/tui-stack.c (tui_show_frame_info): Update.
3918 * tui/tui-data.h (struct tui_list): Remove.
3919 (tui_source_windows): Return a reference to a std::vector.
3920 * tui/tui-data.c (source_windows): Now a std::vector.
3921 (tui_source_windows): Change return type.
3922 (tui_clear_source_windows): Rewrite.
3923 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3924 (tui_free_all_source_wins_content): Rewrite.
3925
8761a91b
TT
39262019-06-25 Tom Tromey <tom@tromey.com>
3927
3928 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3929 (struct tui_data_window, struct tui_cmd_window): Declare
3930 clear_detail method.
3931 * tui/tui-data.c (tui_source_window::clear_detail)
3932 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3933 methods.
3934 (tui_clear_win_detail): Simplify.
3935
0ed69eda
TT
39362019-06-25 Tom Tromey <tom@tromey.com>
3937
3938 * tui/tui-layout.c (make_source_window, make_disasm_window)
3939 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3940 Return the new window.
3941 (show_source_disasm_command, show_data)
3942 (show_source_or_disasm_and_command): Update.
3943
82432e10
TT
39442019-06-25 Tom Tromey <tom@tromey.com>
3945
3946 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3947 parameter. Return the new window.
3948 (show_source_disasm_command): Update and remove NULL check.
3949 (show_source_or_disasm_and_command): Update.
3950
ec328aa5
TT
39512019-06-25 Tom Tromey <tom@tromey.com>
3952
3953 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3954
33b906ab
TT
39552019-06-25 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-data.h (struct tui_win_info): Make constructor
3958 protected. Make destructor virtual. Add initializers.
3959 (tui_source_window, tui_data_window, tui_cmd_window): New
3960 classes.
3961 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3962 constructor. Add "type" parameter.
3963 (tui_source_window, tui_data_window, tui_cmd_window): New
3964 constructors.
3965 (tui_alloc_win_info): Instantiate the appropriate subclass.
3966
e7e11af4
TT
39672019-06-25 Tom Tromey <tom@tromey.com>
3968
3969 * tui/tui-win.c (tui_resize_all): Use delete.
3970 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3971 destructor.
3972 (tui_free_window): Don't declare.
3973 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3974 Update.
3975
6792b55e
TT
39762019-06-25 Tom Tromey <tom@tromey.com>
3977
3978 * tui/tui-data.h (struct tui_win_info): Add constructor.
3979 * tui/tui-data.c (tui_alloc_win_info): Use new.
3980 (tui_free_window): Use delete.
3981
f95675e1
TT
39822019-06-22 Tom Tromey <tom@tromey.com>
3983
3984 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3985 declare.
3986 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3987
5bff081c
TT
39882019-06-22 Tom Tromey <tom@tromey.com>
3989
3990 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3991 declare.
3992 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3993
47e3f474
TV
39942019-06-22 Tom de Vries <tdevries@suse.de>
3995
3996 * dwarf2read.c (create_addrmap_from_aranges)
3997 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3998 instead of '%zu'.
3999
fd5866f6
SM
40002019-06-21 Simon Marchi <simon.marchi@efficios.com>
4001
4002 * dwarf2read.h (dwarf2_section_info_def): Remove.
4003 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4004 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4005 std::vector<dwarf2_section_info>.
4006 (struct dwo_file) <~dwo_file>: Remove.
4007 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4008 types field.
4009 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4010 (dwarf2_read_debug_names): Likewise.
4011 (create_debug_types_hash_table): Change parameter type to
4012 array_view, adjust code accordingly.
4013 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4014 (partial_die_info::fixup): Likewise.
4015 (determine_prefix): Likewise.
4016 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4017
fb1eb2f9
SM
40182019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4019
4020 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4021 gdb_bfd_ref_ptr.
4022 <~dwo_file>: Remove call to gdb_bfd_unref.
4023 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4024 gdb_bfd_ref_ptr::get.
4025
51ac9db5
SM
40262019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4027
4028 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4029 type to htab_up.
4030 * dwarf2read.c (struct dwo_file): Initialize fields.
4031 <~dwo_file>: New.
4032 (free_dwo_file): Remove, move content to ~dwo_file.
4033 (struct dwo_file_deleter): Remove.
4034 (dwo_file_up>: Remove custom deleter.
4035 (free_dwo_files): Remove.
4036 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4037 dwo_files.
4038 (process_skeletonless_type_units): Call unique_ptr::get.
4039 (allocate_dwo_file_hash_table): Add deleter to created hash
4040 table. Change return type to htab_up.
4041 (lookup_dwo_file_slot): Don't memset dwo_file, call
4042 unique_ptr::get.
4043 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4044 (create_dwo_unit_in_dwp_v2): Likewise.
4045 (open_and_init_dwo_file): Likewise.
4046 (free_dwo_file_from_slot): Remove.
4047
dc4ccb6f
SM
40482019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4049
4050 * dwarf2read.h (struct dwarf2_section_info) <readin,
4051 is_virtual>: Change type to bool.
4052 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4053 true instead of 1.
4054
e6a1c5cb
TT
40552019-06-19 Tom Tromey <tom@tromey.com>
4056
4057 * tui/tui-data.h (tui_init_content_element): Don't declare.
4058
6f6ffbeb
TT
40592019-06-19 Tom Tromey <tom@tromey.com>
4060
4061 * tui/tui-data.h (tui_init_win_info): Don't declare.
4062
f23f598e
TV
40632019-06-19 Tom de Vries <tdevries@suse.de>
4064
4065 * dwarf2read.h (abstract_to_concrete): Change type to
4066 std::unordered_map<sect_offset, std::vector<sect_offset>,
4067 gdb::hash_enum<sect_offset>>.
4068
680e1bee
TT
40692019-06-19 Tom Tromey <tromey@adacore.com>
4070
4071 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4072 EVAL_AVOID_SIDE_EFFECTS specially.
4073
dcf37923
TT
40742019-06-19 Tom Tromey <tromey@adacore.com>
4075
4076 * source-cache.c (highlighter): New global.
4077 (source_cache::get_source_lines): Create a highlighter on demand.
4078
494986d5
AB
40792019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4080
4081 * defs.h (deprecated_interactive_hook): Delete declaration.
4082 * interps.c (clear_interpreter_hooks): Remove use of
4083 deprecated_interactive_hook.
4084 * top.c (deprecated_interactive_hook): Delete definition.
4085 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4086
3360b6e7
TV
40872019-06-18 Tom de Vries <tdevries@suse.de>
4088
4089 PR gdb/24515
4090 * dwarf2read.h (abstract_to_concrete): Change type from
4091 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4092 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4093 * dwarf2read.c (read_variable): Update.
4094 (dwarf2_fetch_die_loc_sect_off): Update.
4095
310b3441
TV
40962019-06-17 Tom de Vries <tdevries@suse.de>
4097
4098 PR gdb/24617
4099 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4100 accessing parent[parent_len - 1].
4101
ba9777be
PP
41022019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4103
4104 PR gdb/24364
4105 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4106 call dtrace_process_dof with NULL dof.
4107
2b9f6e89
TV
41082019-06-16 Tom de Vries <tdevries@suse.de>
4109
4110 PR gdb/24445
4111 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4112
431b3ead
TT
41132019-06-16 Tom Tromey <tom@tromey.com>
4114
4115 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4116 (make_all_visible): Use address of member.
4117
d04b44a1
TT
41182019-06-16 Tom Tromey <tom@tromey.com>
4119
4120 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4121 (tui_free_window, free_content, free_content_elements): Remove
4122 unnecessary cast.
4123 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4124 cast.
4125 * tui/tui-regs.c (tui_show_register_group)
4126 (tui_display_registers_from, tui_display_reg_element_at_line):
4127 Remove unnecessary cast.
4128
bf5142e7
AB
41292019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4130
4131 * linux-nat.c (normal_mask): Delete.
4132 (_initialize_linux_nat): Don't initialise normal_mask.
4133
c4973306
SM
41342019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4135
4136 PR gdb/24445
4137 * dwarf-index-write.h (write_psymtabs_to_index): Add
4138 dwz_basename parameter.
4139 * dwarf-index-write.c (write_gdbindex): Move file writing to
4140 write_gdbindex_1. Change return type void.
4141 (assert_file_size): Move up, remove filename parameter.
4142 (write_gdbindex_1): New function.
4143 (write_debug_names): Change return type to void, call
4144 assert_file_size.
4145 (struct index_wip_file): New struct.
4146 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4147 file logic to index_wip_file. Write index for dwz file if
4148 needed.
4149 (save_gdb_index_command): Pass basename of dwz file, if present.
4150 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4151 build-id of dwz file, if present.
4152 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4153 (dwarf2_get_dwz_file): Likewise.
4154 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4155 (dwarf2_get_dwz_file): Likewise.
4156
395f9c91
TT
41572019-06-16 Tom Tromey <tom@tromey.com>
4158
4159 * coffread.c (process_coff_symbol): Use xstrdup.
4160 * value.c (create_internalvar): Use xstrdup.
4161
cafb3438
TT
41622019-06-16 Tom Tromey <tom@tromey.com>
4163
4164 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4165 * breakpoint.c (stopin_command, stopat_command)
4166 (until_break_command, decode_location_default): Remove unnecessary
4167 cast.
4168 * utils.c (subset_compare): Remove unnecessary cast.
4169 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4170 cast.
4171 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4172 cast.
4173 * infcmd.c (path_command): Remove unnecessary cast.
4174 * coffread.c (decode_type): Remove unnecessary cast.
4175 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4176 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4177 * tui/tui-stack.c (tui_show_locator_content)
4178 (tui_show_frame_info): Remove unnecessary cast.
4179 * tui/tui-win.c (tui_scroll_forward_command)
4180 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4181 (parse_scrolling_args): Remove unnecessary cast.
4182 * tui/tui-data.c (init_win_info, tui_del_window)
4183 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4184 (free_content_elements): Remove unnecessary cast.
4185 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4186 unnecessary cast.
4187 * tui/tui-source.c (tui_set_source_content)
4188 (tui_vertical_source_scroll): Remove unnecessary cast.
4189 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4190 cast.
4191 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4192 * tui/tui-regs.c (tui_display_registers_from)
4193 (tui_display_register): Remove unnecessary cast.
4194 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4195 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4196 (make_visible): Remove unnecessary cast.
4197 * tui/tui-winsource.c (tui_erase_source_content)
4198 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4199 unnecessary cast.
4200 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4201 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4202 * stabsread.c (read_type, read_array_type, read_range_type):
4203 Remove unnecessary cast.
4204 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4205 (parse_symbol, parse_type, upgrade_type, parse_external)
4206 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4207 unnecessary cast.
4208 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4209
730ead81
TT
42102019-06-16 Tom Tromey <tom@tromey.com>
4211
4212 * tui/tui-data.c (tui_alloc_generic_win_info)
4213 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4214 checks.
4215
584a927c
AB
42162019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4217 Andrew Burgess <andrew.burgess@embecosm.com>
4218
4219 * f-typeprint.c (f_print_type): Don't return early for not
4220 associated or not allocated types.
4221 (f_type_print_varspec_suffix): Add print_rank parameter and print
4222 ranks of array types in case they dangling.
4223 (f_type_print_base): Add print_rank parameter.
4224
30056ea0
AB
42252019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4226
4227 * NEWS: Mention new MI commands.
4228 * break-catch-throw.c (enum exception_event_kind): Move to
4229 breakpoint.h.
4230 (print_mention_exception_catchpoint): Output text as a single
4231 message.
4232 (catch_exception_command_1): Rename to...
4233 (catch_exception_event): ...this, make non-static, update header
4234 command, and change some parameter types.
4235 (catch_catch_command): Update for changes to
4236 catch_exception_command_1.
4237 (catch_throw_command): Likewise.
4238 (catch_rethrow_command): Likewise.
4239 * breakpoint.c (enum exception_event_kind): Delete.
4240 * breakpoint.h (enum exception_event_kind): Moved here from
4241 break-catch-throw.c.
4242 (catch_exception_event): Declare.
4243 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4244 (mi_cmd_catch_throw): New function.
4245 (mi_cmd_catch_rethrow): New function.
4246 (mi_cmd_catch_catch): New function.
4247 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4248 'catch-catch' entries.
4249 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4250 (mi_cmd_catch_rethrow): Declare.
4251 (mi_cmd_catch_catch): Declare.
4252
ec8e2b6d
AB
42532019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4254
4255 * annotate.c (annotate_source_line): Change return type to void,
4256 update implementation to match.
4257 * annotate.h (annotate_source_line): Change return type to void,
4258 update header comment.
4259 * stack.c (print_frame_info): Don't change what frame information
4260 is printed based on whether annotations are on or not.
4261
0d3abd8c
AB
42622019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4263
4264 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4265 (annotate_source): Make static.
4266 (annotate_source_line): Moved from source.c and renamed from
4267 identify_source_line. Update the return type.
4268 * annotate.h (annotate_source): Delete declaration.
4269 (annotate_source_line): Declaration moved from source.h, and
4270 renamed from identify_source_line. Return type updated.
4271 * source.c (identify_source_line): Moved to annotate.c and renamed
4272 to annotate_source_line.
4273 (info_line_command): Remove check of annotation_level.
4274 * source.h (identify_source_line): Move declaration to annotate.h
4275 and rename to annotate_source_line.
4276 * stack.c: Add 'annotate.h' include.
4277 (print_frame_info): Remove check of annotation_level before
4278 calling annotate_source_line.
4279
00df30ae
AB
42802019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4281
4282 * source-cache.c (source_cache::get_plain_source_lines): Use
4283 open_source_file_with_line_charpos instead of just
4284 open_source_file, remove call to find_source_lines.
4285 (source_cache::get_source_lines): Likewise.
4286 * source.c (find_source_lines): Make static.
4287 (get_filename_and_charpos): Renamed into...
4288 (open_source_file_with_line_charpos): ..this along with changes to
4289 return a scoped_fd, and some other minor clean ups.
4290 (identify_source_line): Use open_source_file_with_line_charpos.
4291 (search_command_helper): Use open_source_file_with_line_charpos
4292 instead of just open_source_file, remove call to
4293 find_source_lines.
4294 * source.h (open_source_file_with_line_charpos): Declare new
4295 function.
4296 (find_source_lines): Delete declaration.
4297
afda45a2
AB
42982019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4299
4300 * source.c (get_filename_and_charpos): Remove fullname
4301 parameter.
4302 (identify_source_line): Update call to get_filename_and_charpos.
4303
0735b091
TT
43042019-06-14 Tom Tromey <tromey@adacore.com>
4305
4306 PR gdb/24502:
4307 * ui-style.h (skip_ansi_escape): Update comment.
4308 * ui-file.h (class no_terminal_escape_file): New class.
4309 * ui-file.c (no_terminal_escape_file::write)
4310 (no_terminal_escape_file::puts): New methods.
4311 * cli/cli-logging.c (handle_redirections): Use
4312 no_terminal_escape_file.
4313
52ce35e2
TT
43142019-06-14 Tom Tromey <tromey@adacore.com>
4315
4316 * NEWS: Move convenience variable news above Python news.
4317
73cc7272
TT
43182019-06-14 Tom Tromey <tom@tromey.com>
4319
4320 * gnulib: Move directory to top-level.
4321 * configure.ac: Don't configure gnulib.
4322 * configure: Rebuild.
4323 * common/common-defs.h: Use new path to gnulib.
4324 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4325 (GNULIB_H): Remove.
4326 (INCGNU): Look in new gnulib location.
4327 (HFILES_NO_SRCDIR): Remove gnulib files.
4328 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4329 (generated_files): Remove GNULIB_H.
4330 ($(LIBGNU), all-lib): Remove targets.
4331 (distclean): Don't mention GNULIB_BUILDDIR.
4332 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4333
f5686554
TT
43342019-06-14 Tom Tromey <tromey@adacore.com>
4335
4336 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4337 Warn if symbol file does not provide any symbols.
4338
a0c1ffed
TT
43392019-06-14 Tom Tromey <tromey@adacore.com>
4340
4341 * source.c (find_and_open_source): Respect basenames_may_differ.
4342
7c39e397
AB
43432019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4344
4345 * annotate.c (annotate_breakpoints_invalid): Make use of
4346 scoped_restore_terminal_state.
4347 (annotate_frames_invalid): Likewise.
4348
f411722c
TT
43492019-06-14 Tom Tromey <tromey@adacore.com>
4350
4351 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4352 allow assignment to an internalvar.
4353
4268ec18
TT
43542019-06-14 Tom Tromey <tromey@adacore.com>
4355
4356 * ada-lex.l: Allow "_" in attribute names.
4357
abdb711e
TT
43582019-06-14 Tom Tromey <tromey@adacore.com>
4359
4360 PR gdb/24653:
4361 * regcache.c (registers_changed): Don't call alloca.
4362 * top.c (execute_command): Don't call alloca.
4363
4c048731
PA
43642019-06-13 Pedro Alves <palves@redhat.com>
4365
4366 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4367 'expression'. When parsing an expression, error out if there's
4368 junk after "unlimited".
4369 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4370 (do_set_command): Adjust calls to is_unlimited_literal.
4371
66eb1ed3
PA
43722019-06-13 Pedro Alves <palves@redhat.com>
4373
4374 * compile/compile.c (make_compile_options_def_group): Add braces
4375 around array_view initializer.
4376 * thread.c (make_thread_apply_all_options_def_group)
4377 (make_thread_apply_all_options_def_group): Likewise.
4378
3345721a
PA
43792019-06-13 Pedro Alves <palves@redhat.com>
4380
4381 * NEWS (New commands): Mention "maint test-options
4382 require-delimiter", "maint test-options unknown-is-error", "maint
4383 test-options unknown-is-operand" and "maint show
4384 test-options-completion-result".
4385 (New command options, command completion): New section.
4386 (Completion improvements): New section.
4387 Mention that you can abbreviate "unlimited".
4388
6206060d
PA
43892019-06-13 Pedro Alves <palves@redhat.com>
4390
4391 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4392 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4393 * unittests/cli-utils-selftests.c (test_parse_flags)
4394 (test_parse_flags_qcs): Delete.
4395 (test_cli_utils): Don't call deleted functions.
4396
6665660a
PA
43972019-06-13 Pedro Alves <palves@redhat.com>
4398
4399 * thread.c: Include "cli/cli-option.h".
4400 (tp_array_compar_ascending): Global.
4401 (tp_array_compar): Delete function.
4402 (tp_array_compar_ascending, tp_array_compar_descending): New
4403 functions.
4404 (ascending_option_def, qcs_flag_option_def)
4405 (thr_qcs_flags_option_defs)
4406 (make_thread_apply_all_options_def_group)
4407 (make_thread_apply_options_def_group): New.
4408 (thread_apply_all_command): Use gdb::option::process_options.
4409 (thread_apply_command_completer)
4410 (thread_apply_all_command_completer): New.
4411 (thread_apply_command): Use gdb::option::process_options.
4412 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4413 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4414 to generate help text of "thread apply". Adjust "taas"'s help.
4415 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4416 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4417
f7e13587
PA
44182019-06-13 Pedro Alves <palves@redhat.com>
4419
4420 * thread.c (thread_apply_command): Check for invalid TID with
4421 isdigit instead of !isalpha.
4422
5d707134
PA
44232019-06-13 Pedro Alves <palves@redhat.com>
4424
4425 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4426 (validate_flags_qcs): New.
4427 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4428 (validate_flags_qcs): Declare.
4429 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4430 (make_frame_apply_options_def_group): New.
4431 (frame_apply_command_count): Process options with
4432 gdb::option::process_options.
4433 (frame_apply_completer): New.
4434 (frame_apply_level_completer, frame_apply_all_completer)
4435 (frame_apply_completer): New.
4436 (_initialize_stack): Update help of "frame apply", "frame apply
4437 level", "frame apply all" and "faas" to mention supported options
4438 and install command completers.
4439 * stack.h (frame_apply_all_completer): Declare.
4440 * thread.c: Include "stack.h".
4441 (tfaas_command): Add "--".
4442 (_initialize_thread): Update help "tfaas" to mention supported
4443 options and install command completer.
4444
272d4594
PA
44452019-06-13 Pedro Alves <palves@redhat.com>
4446
4447 * completer.c (complete_nested_command_line): New.
4448 (gdb_completion_word_break_characters_throw): Add assertion.
4449 * completer.h (complete_nested_command_line): Declare.
4450
90a1ef87
PA
44512019-06-13 Pedro Alves <palves@redhat.com>
4452
4453 * stack.c (parse_backtrace_qualifiers): New.
4454 (backtrace_command): Use it.
4455 (backtrace_command_completer): Complete on qualifiers.
4456
d4c16835
PA
44572019-06-13 Pedro Alves <palves@redhat.com>
4458
4459 * frame.c: Include "cli/cli-option.h.
4460 (user_set_backtrace_options): New.
4461 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4462 Delete.
4463 (get_prev_frame): Adjust.
4464 (boolean_option_def, uinteger_option_def)
4465 (set_backtrace_option_defs): New.
4466 (_initialize_frame): Adjust and use
4467 gdb::option::add_setshow_cmds_for_options to install "set
4468 backtrace past-main" and "set backtrace past-entry".
4469 * frame.h: Include "cli/cli-option.h".
4470 (struct frame_print_options): Forward declare.
4471 (print_frame_arguments_all, print_frame_arguments_scalars)
4472 (print_frame_arguments_none): Declare.
4473 (print_entry_values): Delete declaration.
4474 (struct frame_print_options, user_frame_print_options): New.
4475 (struct set_backtrace_options): New.
4476 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4477 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4478 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4479 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4480 (list_args_or_locals): Add frame_print_options parameter.
4481 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4482 * python/py-framefilter.c (enumerate_args): Pass down
4483 USER_FRAME_PRINT_OPTIONS.
4484 * stack.c: Include "cli/cli-option.h".
4485 (print_frame_arguments_all, print_frame_arguments_scalars)
4486 (print_frame_arguments_none): Declare.
4487 (print_raw_frame_arguments, print_entry_values): Delete.
4488 (user_frame_print_options): New.
4489 (boolean_option_def, enum_option_def, frame_print_option_defs):
4490 New.
4491 (struct backtrace_cmd_options): New.
4492 (bt_flag_option_def): New.
4493 (backtrace_command_option_defs): New.
4494 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4495 (print_frame_arg, read_frame_arg, print_frame_args)
4496 (print_frame_info, print_frame): Add frame_print_options parameter
4497 and use it.
4498 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4499 (backtrace_command_1): Add frame_print_options and
4500 backtrace_cmd_options parameters and use them.
4501 (make_backtrace_options_def_group): New.
4502 (backtrace_command): Process command options with
4503 gdb::option::process_options.
4504 (backtrace_command_completer): New.
4505 (_initialize_stack): Extend "backtrace"'s help to mention
4506 supported options. Install completer for "backtrace".
4507 Install some settings commands with add_setshow_cmds_for_options.
4508
2daf894e
PA
45092019-06-13 Pedro Alves <palves@redhat.com>
4510
4511 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4512 and that "set/show print raw frame-arguments" are now deprecated.
4513
4514 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4515 command.
4516 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4517 * stack.c (_initialize_stack): Install "set/show print
4518 raw-frame-arguments", and deprecate "set/show print raw
4519 frame-arguments".
4520 * valprint.c (_initialize_valprint): Deprecate "set/show print
4521 raw".
4522
e6ed716c
PA
45232019-06-13 Pedro Alves <palves@redhat.com>
4524
4525 * compile/compile.c (struct compile_options): New.
4526 (compile_flag_option_def, compile_command_option_defs)
4527 (make_compile_options_def_group): New.
4528 (compile_file_command): Handle options with
4529 gdb::option::process_options.
4530 (compile_file_command_completer): New function.
4531 (compile_code_command): Handle options with
4532 gdb::option::process_options.
4533 (compile_code_command_completer): New function.
4534 (_initialize_compiler): Install completers for "compile code" and
4535 "compile file". Mention available options in "compile code" and
4536 "compile code"'s help.
4537 * completer.c (advance_to_completion_word): New, factored out from
4538 ...
4539 (advance_to_expression_complete_word_point): ... this.
4540 (advance_to_filename_complete_word_point): New.
4541 * completer.h (advance_to_filename_complete_word_point): New
4542 declaration.
4543
7d8062de
PA
45442019-06-13 Pedro Alves <palves@redhat.com>
4545
4546 * compile/compile.c: Include "cli/cli-option.h".
4547 (compile_print_value): Scope data pointer is now a
4548 value_print_options pointer; adjust.
4549 (compile_print_command): Process options. Scope data pointer is
4550 now a value_print_options pointer; adjust.
4551 (_initialize_compile): Update "compile print"'s help to include
4552 supported options. Install a completer for "compile print".
4553 * cp-valprint.c (show_vtblprint, show_objectprint)
4554 (show_static_field_print): Delete.
4555 (_initialize_cp_valprint): Don't install "set print
4556 static-members", "set print vtbl", "set print object" here.
4557 * printcmd.c: Include "cli/cli-option.h" and
4558 "common/gdb_optional.h".
4559 (print_command_parse_format): Rework to fill in a
4560 value_print_options instead of a format_data.
4561 (print_value): Change parameter type from format_data pointer to
4562 value_print_options reference. Adjust.
4563 (print_command_1): Process options. Adjust to pass down a
4564 value_print_options.
4565 (print_command_completer): New.
4566 (_initialize_printcmd): Install print_command_completer as
4567 handle_brkchars completer for the "print" command. Update
4568 "print"'s help to include supported options.
4569 * valprint.c: Include "cli/cli-option.h".
4570 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4571 here from cp-valprint.c.
4572 (boolean_option_def, uinteger_option_def)
4573 (value_print_option_defs, make_value_print_options_def_group):
4574 New. Use gdb::option::add_setshow_cmds_for_options to install
4575 "set print elements", "set print null-stop", "set print repeats",
4576 "set print pretty", "set print union", "set print array", "set
4577 print address", "set print symbol", "set print array-indexes".
4578 * valprint.h: Include <string> and "cli/cli-option.h".
4579 (make_value_print_options_def_group): Declare.
4580 (print_value): Change parameter type from format_data pointer to
4581 value_print_options reference.
4582 (print_command_completer): Declare.
4583
9d0faba9
PA
45842019-06-13 Pedro Alves <palves@redhat.com>
4585
4586 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4587 (COMMON_SFILES): Add maint-test-settings.c.
4588 * cli/cli-decode.c (boolean_enums): New global, factored out from
4589 ...
4590 (add_setshow_boolean_cmd): ... here.
4591 * cli/cli-decode.h (boolean_enums): Declare.
4592 * cli/cli-option.c: New file.
4593 * cli/cli-option.h: New file.
4594 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4595 factored out from ...
4596 (parse_cli_boolean_value(const char *)): ... this.
4597 (is_unlimited_literal): Change parameter type to pointer to
4598 pointer. Adjust and advance ARG pointer.
4599 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4600 (parse_cli_var_enum): New, factored out from ...
4601 (do_set_command): ... this. Adjust.
4602 * cli/cli-setshow.h (parse_cli_boolean_value)
4603 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4604 (parse_cli_var_enum): Declare.
4605 * cli/cli-utils.c: Include "cli/cli-option.h".
4606 (get_ulongest): New.
4607 * cli/cli-utils.h (get_ulongest): Declare.
4608 (check_for_argument): New overloads.
4609 * maint-test-options.c: New file.
4610
2c722807
PA
46112019-06-13 Pedro Alves <palves@redhat.com>
4612
4613 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4614 parse a range if "-" is at the end of the string.
4615
dee7b4c8
PA
46162019-06-13 Pedro Alves <palves@redhat.com>
4617
4618 * cli/cli-setshow.c (parse_auto_binary_operation)
4619 (parse_cli_boolean_value): Don't allow "o".
4620
dca0f6c0
PA
46212019-06-13 Pedro Alves <palves@redhat.com>
4622
4623 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4624 * NEWS: Mention maint test-settings KIND.
4625 * maint-test-settings.c: New file.
4626
597bf39d
PA
46272019-06-13 Pedro Alves <palves@redhat.com>
4628
4629 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4630 completer.
4631 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4632 "set" completers.
4633
48c410fb
PA
46342019-06-13 Pedro Alves <palves@redhat.com>
4635
4636 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4637 after item.
4638
93bcb043
PA
46392019-06-13 Pedro Alves <palves@redhat.com>
4640
4641 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4642
cbba3ecd
PA
46432019-06-13 Pedro Alves <palves@redhat.com>
4644
4645 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4646 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4647 call.
4648 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4649 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4650 calls.
4651 (check_for_argument): Skip spaces after argument.
4652
b9a3f842
PA
46532019-06-13 Pedro Alves <palves@redhat.com>
4654
4655 * thread.c (thread_apply_command): Adjust TID parsing.
4656 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4657 detected before end of string.
4658 (tid_is_in_list): Error out if LIST is invalid.
4659
3844e605
PA
46602019-06-13 Pedro Alves <palves@redhat.com>
4661
4662 * completer.c (complete_line_internal_1): Rewind completion word
4663 point.
4664 (completion_tracker::advance_custom_word_point_by): Change
4665 parameter type to int.
4666 * completer.h (completion_tracker::advance_custom_word_point_by):
4667 Likewise.
4668
00b56dbe
PA
46692019-06-13 Pedro Alves <palves@redhat.com>
4670
4671 * completer.c (advance_to_completion_word): Handle delimiters.
4672
d106773e
PA
46732019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4674
4675 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4676
08f10e02
TT
46772019-06-11 Tom Tromey <tom@tromey.com>
4678
4679 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4680 (xmalloc_failed): Move to alloc.c.
4681 * alloc.c: New file.
4682 * Makefile.in (COMMON_SFILES): Add alloc.c.
4683
1c7fe951
TT
46842019-06-11 Tom Tromey <tom@tromey.com>
4685
4686 * nat/linux-waitpid.c: Don't include server.h.
4687 (linux_debug): Remove.
4688 (my_waitpid): Update.
4689
89549d7f
TT
46902019-06-11 Tom Tromey <tromey@adacore.com>
4691
4692 * infcall.c (_initialize_infcall): Remove trailing newline from
4693 help.
4694 * user-regs.c (_initialize_user_regs): Remove trailing newline
4695 from help.
4696 * typeprint.c (_initialize_typeprint): Remove trailing newline
4697 from help.
4698 * reverse.c (_initialize_reverse): Remove trailing newlines from
4699 help.
4700 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4701 from help.
4702 * language.c (add_set_language_command): Remove trailing newline
4703 from help.
4704 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4705 help.
4706 * disasm.c (_initialize_disasm): Remove trailing newline from
4707 help.
4708 * top.c (init_main): Remove trailing newline from help.
4709 * interps.c (_initialize_interpreter): Remove trailing newline
4710 from help.
4711 * btrace.c (_initialize_btrace): Remove trailing newlines from
4712 help.
4713 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4714 from help.
4715 * python/python.c (_initialize_python): Remove trailing newline
4716 from help.
4717 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4718 help.
4719 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4720 from help. Reformat some text.
4721 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4722 from help.
4723 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4724 newline from help.
4725
86108c13
TT
47262019-06-11 Tom Tromey <tromey@adacore.com>
4727
4728 * darwin-nat.c (darwin_decode_exception_message)
4729 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4730
a7067863
AB
47312019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4732
4733 * valops.c (value_slice): Check for not allocated or not
4734 associated values.
4735
9ab08412
TV
47362019-06-10 Tom de Vries <tdevries@suse.de>
4737
4738 PR gdb/24618
4739 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4740 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4741 invalid.
4742
f19e22e9
TV
47432019-06-10 Tom de Vries <tdevries@suse.de>
4744
4745 PR gdb/24611
4746 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4747 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4748
e99f9db0
TV
47492019-06-10 Tom de Vries <tdevries@suse.de>
4750
4751 PR symtab/24545
4752 * symtab.c (struct demangled_name_entry): Add language field.
4753 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4754 static minimal symbol". Set and use language field.
4755
9bf7038b
TT
47562019-06-10 Tom Tromey <tromey@adacore.com>
4757
4758 * ada-lang.c (_initialize_ada_language): Update help text.
4759
422186a9
TT
47602019-06-10 Tom Tromey <tromey@adacore.com>
4761
4762 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4763 with a newline.
4764 * guile/guile.c (handle_boot_error): Don't end warning with a
4765 newline.
4766 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4767 warning with a newline.
4768 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4769 newline.
4770 (s12z_frame_cache): Likewise.
4771 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4772 a newline.
4773 * solib-svr4.c (disable_probes_interface): Don't end warning with
4774 a newline.
4775 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4776 newline.
4777 * python/python.c (do_finish_initialization): Don't end warning
4778 with a newline.
4779
25ce02ee
TT
47802019-06-10 Tom Tromey <tom@tromey.com>
4781
4782 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4783 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4784 gdbpy_enter.
4785
caa429d8
TT
47862019-06-10 Tom Tromey <tromey@adacore.com>
4787
4788 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4789 data.
4790 (elf_new_init): Don't call stabsread_new_init.
4791 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4792 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4793 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4794
81873cc8
TV
47952019-06-10 Tom de Vries <tdevries@suse.de>
4796
4797 PR symtab/16264
4798 PR symtab/24517
4799 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4800
4fa0265e
РИ
48012019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4802
4803 * source.c (find_and_open_source): Also rewrite relative file
4804 names.
4805
1a3da2cd
AB
48062019-04-26 Amos Bird <amosbird@gmail.com>
4807
4808 * annotate.c (annotate_thread_exited): Add "thread-exited"
4809 annotation.
4810
3847a7bf
TT
48112019-06-06 Tom Tromey <tromey@adacore.com>
4812
4813 * maint.h (class scoped_command_stats): Use
4814 DISABLE_COPY_AND_ASSIGN.
4815 <print_time>: New method.
4816 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4817 print_time.
4818 (scoped_command_stats::print_time): New method.
4819
312617a3
AB
48202019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4821
4822 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4823 instructions of lengths 6 or 8 bytes.
4824
b02f78f9
PA
48252019-06-04 Pedro Alves <palves@redhat.com>
4826
4827 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4828
4829 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4830 * breakpoint.c (condition_completer): Likewise.
4831 * cli/cli-dump.c (scan_expression): Likewise.
4832 * common/filestuff.c (mkdir_recursive): Likewise.
4833 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4834 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4835 (gdb_abspath): Likewise.
4836 * compile/compile-cplus-types.c
4837 (compile_cplus_instance::decl_name): Likewise.
4838 * completer.c (complete_explicit_location):
4839 (signal_completer, reg_or_group_completer_1): Likewise.
4840 * cp-support.c (cp_remove_params_if_any): Likewise.
4841 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4842 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4843 * infcmd.c (strip_bg_char): Likewise.
4844 * linespec.c (copy_token_string): Likewise.
4845 * mi/mi-main.c (output_cores): Likewise.
4846 * psymtab.c (psymtab_search_name):
4847 * symfile.c (test_set_ext_lang_command): Likewise.
4848 * target.c (target_fileio_read_stralloc): Likewise.
4849 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4850 * value.c (complete_internalvar): Likewise.
4851
e1f2e1a2
CB
48522019-06-04 Christian Biesinger <cbiesinger@google.com>
4853
4854 Add objfile property to gdb.Type.
d3238f7d
PA
4855 * NEWS: Mention Python API addition.
4856 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4857
e664d728
PW
48582019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4859
4860 * NEWS: Mention the new set|show style [title|highlight].
4861 Mention changes to "show style", "help" and "apropos".
4862
66d8c862
PW
48632019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4864
4865 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4866 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4867 instead of print_help_for_command.
4868 (print_doc_of_command): New function.
4869 (help_list): Add 'apropos -v word' suggestion.
4870 (print_help_for_command): Style the command name using title style.
4871 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4872 (_initialize_cli_cmds): Describe -v in apropos_command help.
4873
9303eb2f
PW
48742019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4875
4876 * cli/cli-style.h (cli_style_option): Add name in constructor,
4877 add m_name class member, add constructor with intensity,
4878 add name class function.
4879 (cli_style_option::add_setshow_commands): Remove name argument.
4880 (highlight_style, title_style): New styles.
4881 * cli/cli-style.c (do_show): New function that shows a style
4882 characteristic styling the style name with itself.
4883 (set_style_name): New function.
4884 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4885 Update all callers according to the changes in cli/cli-style.h.
4886 * utils.h (fputs_highlighted): New function.
4887 * utils.c (fputs_highlighted): Likewise.
4888
e2c52041
PW
48892019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4890
4891 * NEWS: Mention new pipe command and new convenience variables.
4892
947d3946
PW
48932019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4894
4895 * cli/cli-cmds.c (pipe_command): New function.
4896 (_initialize_cli_cmds): Call add_com for pipe_command.
4897 Define | as an alias for pipe.
4898 (exit_status_set_internal_vars): New function.
4899 (shell_escape): Call exit_status_set_internal_vars.
4900 cli/cli-decode.c (find_command_name_length): Recognize | as
4901 a single character command.
4902
b8fd0918
PW
49032019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4904
4905 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4906 top.c (execute_command_to_ui_file): New function, mostly a copy
4907 of execute_command_to_string.
4908 (execute_command_to_string): Implement by calling
4909 execute_command_to_ui_file.
4910
68bb5386
PW
49112019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4912
4913 * top.h (saved_command_line): Remove declaration.
4914 * top.c (previous_saved_command_line, previous_repeat_arguments):
4915 New variables.
4916 (saved_command_line): Make static, define together with other
4917 'repeat variables'.
4918 (dont_repeat): Clear repeat_arguments.
4919 (repeat_previous, get_saved_command_line, save_command_line):
4920 New functions.
4921 (gdb_init): Initialize saved_command_line
4922 and previous_saved_command_line.
4923 * main.c (captured_main_1): Remove saved_command_line initialization.
4924 * event-top.c (handle_line_of_input): Update to use
4925 the new 'repeat' related functions instead of direct access to
4926 saved_command_line.
4927 * command.h (repeat_previous, get_saved_command_line,
4928 save_command_line): New declarations.
4929 (dont_repeat): Add comment.
4930
bfcdb852
TT
49312019-05-30 Tom Tromey <tromey@adacore.com>
4932
4933 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4934 Fix comment.
4935 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4936
0ef209f2
JV
49372019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4938
4939 PR cli/24587
4940 * completer.c (complete): Initialize variable word.
4941
955b06fa
SDJ
49422019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4943
4944 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4945 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4946 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4947 'body' is NULL to the outter 'if', protecting the '!is_define'
4948 situation as well.
4949
fa9c3fa0
TT
49502019-05-29 Tom Tromey <tromey@adacore.com>
4951
4952 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4953 (dwarf_unknown): New function.
4954 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4955 (dwarf_type_encoding_name): Use dwarf_unknown.
4956
4330d61d
TT
49572019-05-29 Tom Tromey <tromey@adacore.com>
4958
4959 PR c++/20020:
4960 * cp-valprint.c (cp_print_value_fields): Call
4961 cp_print_static_field inside "try".
4962
33a6bc35
TT
49632019-05-29 Tom Tromey <tromey@adacore.com>
4964
4965 * inflow.c (struct terminal_info): Add default operator=.
4966 * configure: Rebuild.
4967 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4968 -Wdeprecated-copy-dtor, -Wredundant-move.
4969
000439d5
TT
49702019-05-29 Tom Tromey <tromey@adacore.com>
4971
4972 * NEWS: Add entry.
4973 * infcmd.c (print_return_value_1): Handle finish_print
4974 option.
4975 (show_print_finish): New function.
4976 (_initialize_infcmd): Add "set/show print finish" commands.
4977 * valprint.c (user_print_options): Initialize new member.
4978 * valprint.h (struct value_print_options) <finish_print>: New
4979 member.
4980
c0e70c62
TT
49812019-05-28 Tom Tromey <tromey@adacore.com>
4982
4983 * ada-lang.c (ada_remove_Xbn_suffix)
4984 (find_old_style_renaming_symbol)
4985 (parse_old_style_renaming): Remove.
4986 (ada_find_renaming_symbol): Don't call
4987 find_old_style_renaming_symbol.
4988 (ada_is_renaming_symbol): Rename from
4989 ada_find_renaming_symbol. Remove "block" parameter. Return
4990 bool. Now static.
4991 (ada_read_var_value): Update and simplify.
4992 * ada-exp.y (write_var_or_type): Remove old code.
4993
766f8836
AH
49942019-05-28 Alan Hayward <alan.hayward@arm.com>
4995
4996 * event-top.c: Remove include comment.
4997 * inflow.c (class scoped_ignore_sigttou): Move from here...
4998 * inflow.h (class scoped_ignore_sigttou): ...to here.
4999 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5000 * top.c: Remove include comment.
5001
eb41253a
TT
50022019-05-27 Tom Tromey <tom@tromey.com>
5003
5004 * NEWS: Fix typo.
5005
4ca51187
TT
50062019-05-22 Tom Tromey <tromey@adacore.com>
5007
5008 * target.c (target_follow_exec): Constify parameter.
5009 * target-delegates.c: Rebuild.
5010 * remote.c (remote_target::follow_exec): Constify parameter.
5011 * infrun.c (follow_exec): Constify parameter.
5012 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5013 (target_follow_exec): Likewise.
5014
8fca4da0
AH
50152019-05-22 Alan Hayward <alan.hayward@arm.com>
5016
5017 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5018 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5019
b7060614
AH
50202019-05-22 Alan Hayward <alan.hayward@arm.com>
5021
5022 * NEWS: Add debugredirect and testsuite sections.
5023
0a5954bd
SC
50242019-05-22 Simon Cook <simon.cook@embecosm.com>
5025
5026 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5027 target descriptions using exclusively floating point register name
5028 aliases.
5029
dc42e902
AB
50302019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5031
5032 PR gdb/18644:
5033 * f-lang.c (build_fortran_types): Handle the case where
5034 gdbarch_floatformat_for_type returns a nullptr.
5035
fb7806c7
TV
50362019-05-21 Tom de Vries <tdevries@suse.de>
5037
5038 PR cli/24587
5039 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5040
34d11c68
AB
50412019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5042
5043 PR gdb/18644:
5044 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5045 16-byte floats.
5046 * i386-tdep.c (i386_floatformat_for_type): Use
5047 floatformats_ia64_quad for the 16-byte floating point component
5048 within a fortran 32-byte complex number.
5049
122cf0f2
AB
50502019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5051
5052 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5053 delete default constructor.
5054 (find_partial_die): Update to return const struct.
5055 (partial_die_parent_scope): Move variable declaration into scope
5056 of its use and change its type to auto.
5057 (guess_partial_die_structure_name): Likewise.
5058 (partial_die_info::fixup): Likewise.
5059
33d0e35a
TT
50602019-05-17 Tom Tromey <tromey@adacore.com>
5061
5062 * source.c (find_and_open_source): Remove cast.
5063
a45575b0
TT
50642019-05-17 Tom Tromey <tromey@adacore.com>
5065
5066 * annotate.c (annotate_source): Make "filename" const.
5067 * annotate.h (annotate_source): Use const.
5068
81f47ac2
AH
50692019-05-17 Alan Hayward <alan.hayward@arm.com>
5070
5071 * disasm.c (set_disassembler_options): Send errors to stderr.
5072
ca1285d1
AH
50732019-05-17 Alan Hayward <alan.hayward@arm.com>
5074
5075 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5076 (cli_interp_base::set_logging): Check debug_redirect.
5077 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5078 * cli/cli-logging.c (debug_redirect): Add static variable.
5079 (pop_output_files): Add default param.
5080 (handle_redirections): Print debug setting.
5081 (show_logging_command): Likewise.
5082 (_initialize_cli_logging): Add debugredirect command.
5083 * interps.c (current_interp_set_logging): Add debug_redirect
5084 parameter.
5085 * interps.h (set_logging): Add debug_redirect parameter.
5086 (current_interp_set_logging): Likewise.
5087 * mi/mi-common.h: Likewise.
5088 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5089
50902019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5091 Tom Tromey <tromey@adacore.com>
5092
5093 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5094 directly.
5095 * cli/cli-interp.h (make_logging_output): Remove declaration.
5096 * cli/cli-logging.c (make_logging_output): Remove function.
5097 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5098 directly.
5099 * ui-file.c (tee_file::tee_file): Remove bools.
5100 (tee_file::~tee_file): Remove deletes.
5101 * ui-file.h (tee_file): Remove bools.
5102
26648588
JV
51032019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5104
5105 * mi/mi-cmds.h (mi_cmd_complete): New function.
5106 * mi/mi-main.c (mi_cmd_complete): Likewise.
5107 * mi/mi-cmds.c: Define new MI command -complete.
5108 * NEWS: Mention new -complete command.
5109
6e035501
JV
51102019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5111
5112 * completer.h (complete): New function.
5113 * completer.c (complete): Likewise.
5114 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5115 function defined in completer.h.
5116
7d0e2ece
JV
51172019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5118
e79be6e5 5119 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5120
fb816e8b
TV
51212019-05-17 Tom de Vries <tdevries@suse.de>
5122
5123 PR gdb/24094
5124 * dwarf2read.c (struct cu_partial_die_info): New struct.
5125 (find_partial_die): Return cu_partial_die_info.
5126 (partial_die_parent_scope, guess_partial_die_structure_name)
5127 (partial_die_info::fixup): Handle new return type of find_partial_die.
5128
677052f2
SDJ
51292019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5130
5131 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5132 "std::string", simplifying the algorithm.
5133
f3da9116
SDJ
51342019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5135
5136 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5137 (stap_static_probe_ops::get_probes): Likewise.
5138
f1bb75ab
SDJ
51392019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5140
5141 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5142 '-')" and "else if".
5143 (stap_parse_single_operand): Join checks for
5144 "gdbarch_stap_parse_special_token_p" and
5145 "gdbarch_stap_parse_special_token" in the same "if" statement.
5146 Invert check when verifying for operation on register
5147 displacement.
5148
3ca58cde
SDJ
51492019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5150
5151 * stap-probe.c (stap_get_opcode): Update comment.
5152 (stap_get_expected_argument_type): Likewise.
5153 (handle_stap_probe): Likewise.
5154
af2d9bee
SDJ
51552019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5156
5157 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5158 return type to 'bool'. Adjust comment. Use 'bool' when
5159 appropriate.
5160 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5161 * stap-probe.c (stap_parse_argument_1): Likewise.
5162 (stap_is_operator): Likewise.
5163 (stap_is_generic_prefix): Likewise.
5164 (stap_is_register_prefix): Likewise.
5165 (stap_is_register_indirection_prefix): Likewise.
5166 (stap_is_integer_prefix): Likewise.
5167 (stap_generic_check_suffix): Likewise.
5168 (stap_check_integer_suffix): Likewise.
5169 (stap_check_register_suffix): Likewise.
5170 (stap_check_register_indirection_suffix): Likewise.
5171 (stap_parse_register_operand): Likewise.
5172 (stap_parse_single_operand): Likewise.
5173 (stap_parse_argument_1): Likewise.
5174 (stap_probe::get_argument_count): Likewise.
5175 (stap_is_operator): Likewise.
5176
61c9c421
TT
51772019-05-16 Tom Tromey <tromey@adacore.com>
5178
5179 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5180 keyword to foreach.
5181
9ddc1af1
SM
51822019-05-15 Simon Marchi <simon.marchi@efficios.com>
5183
5184 * linux-thread-db.c (try_thread_db_load_1): Change return type
5185 to bool.
5186 (try_thread_db_load): Likewise.
5187 (try_thread_db_load_from_pdir_1): Likewise.
5188 (try_thread_db_load_from_pdir): Likewise.
5189 (try_thread_db_load_from_sdir): Likewise.
5190 (try_thread_db_load_from_dir): Likewise.
5191 (thread_db_load_search): Likewise.
5192 (has_libpthread): Likewise.
5193 (thread_db_load): Likewise.
5194
7bede828
SDJ
51952019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5196
5197 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5198 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5199 NULL, and complain/return if that's the case.
5200
c5358db4
JD
52012019-05-15 John Darrington <john@darrington.wattle.id.au>
5202
5203 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5204 (advance, posn, abstract_read_memory): New functions.
5205 [struct mem_read_abstraction]: New struct.
5206 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5207
c408a94f
TT
52082019-05-14 Tom Tromey <tromey@adacore.com>
5209
5210 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5211 value is not lval_memory.
5212
e7bd7fba
TT
52132019-05-14 Tom Tromey <tromey@adacore.com>
5214
5215 * solib.c (info_sharedlibrary_command): Style the file name.
5216
a6d0f249
AH
52172019-05-14 Alan Hayward <alan.hayward@arm.com>
5218
5219 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5220 (aarch64_vnv_type): Likewise.
5221 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5222 * common/tdesc.c: Likewise.
5223 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5224 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5225 * features/aarch64-fpu.xml: Add ieee half view.
5226 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5227 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5228 * gdbtypes.h (struct builtin_type): Likewise.
5229 (struct objfile_type): Likewise.
5230
66b8bb74
SM
52312019-05-12 Paul Naert <paul.naert@polymtl.ca>
5232
5233 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5234 typo.
5235 * location.h (string_to_event_location): Likewise.
5236
21c219fd
JB
52372019-05-11 Joel Brobecker <brobecker@adacore.com>
5238
5239 GDB 8.3 released.
5240
13674803
SM
52412019-05-10 Simon Marchi <simon.marchi@efficios.com>
5242
5243 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5244 New variable declaration.
5245 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5246 New variable.
5247 (print_one_breakpoint): Use ui_out::test_flags and new global
5248 variable to compute use_fixed_output.
5249 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5250 Remove.
5251 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5252 (mi_multi_location_breakpoint_output_fixed): Remove.
5253 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5254 new variable.
5255 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5256 fix_multi_location_breakpoint_output flag if version >= 3.
5257 * ui-out.h (enum ui_out_flag)
5258 <fix_multi_location_breakpoint_output>: New enumerator.
5259
a9eac7f9
SM
52602019-05-10 Simon Marchi <simon.marchi@efficios.com>
5261
5262 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5263
71bed2db
TT
52642019-05-10 Tom Tromey <tromey@adacore.com>
5265
5266 * ada-lang.c (catch_ada_completer): New function.
5267 (_initialize_ada_language): Use it.
5268
24c54127
TT
52692019-05-10 Tom Tromey <tromey@adacore.com>
5270
5271 * thread.c (print_thread_info): Make "requested_threads" const.
5272 * gdbthread.h (print_thread_info): Make "requested_threads"
5273 const.
5274 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5275 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5276
7a102139
TT
52772019-05-08 Tom Tromey <tom@tromey.com>
5278
5279 * gdbtypes.c (objfile_type_data): Change type.
5280 (objfile_type, _initialize_gdbtypes): Update.
5281
924d79e2
TT
52822019-05-08 Tom Tromey <tom@tromey.com>
5283
5284 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5285 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5286 (_initialize_dwarf2_frame): Update.
5287
4c58e337
TT
52882019-05-08 Tom Tromey <tom@tromey.com>
5289
5290 * objc-lang.c (objc_objfile_data): Change type.
5291 (find_methods): Update.
5292 (_initialize_objc_lang): Remove.
5293
d772d2ab
TT
52942019-05-08 Tom Tromey <tom@tromey.com>
5295
5296 * stabsread.c (rs6000_builtin_type_data): Change type.
5297 (rs6000_builtin_type, _initialize_stabsread): Update.
5298
d11d83f4
TT
52992019-05-08 Tom Tromey <tom@tromey.com>
5300
5301 * mips-tdep.c (mips_pdr_data): Remove.
5302 (_initialize_mips_tdep): Update.
5303
9a73f0ad
TT
53042019-05-08 Tom Tromey <tom@tromey.com>
5305
5306 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5307 (hppa_init_objfile_priv_data, read_unwind_info)
5308 (find_unwind_entry, _initialize_hppa_tdep): Update.
5309
8127a2fa
TT
53102019-05-08 Tom Tromey <tom@tromey.com>
5311
5312 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5313 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5314 on obstack.
5315 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5316
91d3055d
TT
53172019-05-08 Tom Tromey <tom@tromey.com>
5318
5319 * mdebugread.c (basic_type_data): Change type.
5320 (basic_type, _initialize_mdebugread): Update.
5321
31930bd3
TT
53222019-05-08 Tom Tromey <tom@tromey.com>
5323
5324 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5325
bdb3ed9e
TT
53262019-05-08 Tom Tromey <tom@tromey.com>
5327
5328 * nto-tdep.c (nto_inferior_data_reg): Change type.
5329 (nto_inferior_data): Update.
5330 (nto_inferior_data_cleanup, nto_new_inferior_data)
5331 (_initialize_nto_tdep): Remove.
5332 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5333
f37b313d
TT
53342019-05-08 Tom Tromey <tom@tromey.com>
5335
5336 * ada-lang.c (struct ada_inferior_data): Add initializers.
5337 (ada_inferior_data): Change type.
5338 (ada_inferior_data_cleanup): Remove.
5339 (get_ada_inferior_data, ada_inferior_exit)
5340 (struct ada_pspace_data): Add initializers, destructor.
5341 (ada_pspace_data_handle): Change type.
5342 (get_ada_pspace_data): Update.
5343 (ada_pspace_data_cleanup): Remove.
5344
24699405
TT
53452019-05-08 Tom Tromey <tom@tromey.com>
5346
5347 * coffread.c (struct coff_symfile_info): Add initializers.
5348 (coff_objfile_data_key): Move lower. Change type.
5349 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5350 Update.
5351 (coff_free_info): Remove.
5352
d4e05d2f
TT
53532019-05-08 Tom Tromey <tom@tromey.com>
5354
5355 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5356 (fbsd_pspace_data_handle): Move lower. Change type.
5357 (get_fbsd_pspace_data): Update.
5358 (fbsd_pspace_data_cleanup): Remove.
5359 (_initialize_fbsd_tdep): Update.
5360
14ef6690
TT
53612019-05-08 Tom Tromey <tom@tromey.com>
5362
5363 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5364 (get_ada_tasks_pspace_data): Update.
5365 (ada_tasks_pspace_data_cleanup): Remove.
5366 (_initialize_tasks): Update.
5367 (ada_tasks_inferior_data_handle): Change type.
5368 (get_ada_tasks_inferior_data): Update.
5369 (ada_tasks_inferior_data_cleanup): Remove.
5370 (struct ada_tasks_pspace_data): Add initializers.
5371
814cf43a
TT
53722019-05-08 Tom Tromey <tom@tromey.com>
5373
5374 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5375 * symfile-debug.c (debug_sym_get_probes): Change type.
5376 * stap-probe.c (handle_stap_probe):
5377 (stap_static_probe_ops::get_probes): Change type.
5378 * probe.h (class static_probe_ops) <get_probes>: Change type.
5379 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5380 (parse_probes_in_pspace): Update.
5381 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5382 Update.
5383 (any_static_probe_ops::get_probes): Change type.
5384 * elfread.c (elfread_data): New typedef.
5385 (probe_key): Change type.
5386 (elf_get_probes): Likewise. Update.
5387 (probe_key_free): Remove.
5388 (_initialize_elfread): Update.
5389 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5390 Change type.
5391 (dtrace_process_dof_probe, dtrace_process_dof)
5392 (dtrace_static_probe_ops::get_probe): Change type.
5393
02dc647e
TT
53942019-05-08 Tom Tromey <tom@tromey.com>
5395
5396 * xcoffread.c (struct xcoff_symfile_info): Rename from
5397 coff_symfile_info. Add initializers.
5398 (xcoff_objfile_data_key): Move lower. Change type.
5399 (XCOFF_DATA): Rewrite.
5400 (xcoff_free_info): Remove.
5401 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5402 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5403 (xcoff_initial_scan): Update.
5404
09232438
TT
54052019-05-08 Tom Tromey <tom@tromey.com>
5406
5407 * solib-svr4.c (struct svr4_info): Add initializers and
5408 destructor.
5409 <probes_table>: Now an htab_up.
5410 (solib_svr4_pspace_data): Change type.
5411 (free_probes_table): Simplify.
5412 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5413 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5414 (probes_table_remove_objfile_probes, register_solib_event_probe)
5415 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5416 (_initialize_svr4_solib): Update.
5417
7b4a314f
TT
54182019-05-08 Tom Tromey <tom@tromey.com>
5419
5420 * remote.c (remote_pspace_data): Change type.
5421 (remote_pspace_data_cleanup): Remove.
5422 (get_remote_exec_file, set_pspace_remote_exec_file)
5423 (_initialize_remote): Update.
5424
51d3063a
TT
54252019-05-08 Tom Tromey <tom@tromey.com>
5426
5427 * breakpoint.c (breakpoint_objfile_key): Change type.
5428 (get_breakpoint_objfile_data): Update.
5429 (free_breakpoint_objfile_data): Remove.
5430 (_initialize_breakpoint): Update.
5431
89fb8848
TT
54322019-05-08 Tom Tromey <tom@tromey.com>
5433
5434 * linux-tdep.c (struct linux_info): Add initializers.
5435 (linux_inferior_data): Move. Change type.
5436 (invalidate_linux_cache_inf): Update.
5437 (linux_inferior_data_cleanup): Remove.
5438 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5439
e9b89e2d
TT
54402019-05-08 Tom Tromey <tom@tromey.com>
5441
5442 * auxv.c (auxv_inferior_data): Move. Change type.
5443 (auxv_inferior_data_cleanup): Remove.
5444 (invalidate_auxv_cache_inf): Rewrite.
5445 (get_auxv_inferior_data, _initialize_auxv): Update.
5446
8c42777c
TT
54472019-05-08 Tom Tromey <tom@tromey.com>
5448
5449 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5450 (symfile_debug_objfile_data_key): Change type.
5451 (symfile_debug_installed, debug_qf_has_symbols)
5452 (debug_qf_find_last_source_symtab)
5453 (debug_qf_forget_cached_source_info)
5454 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5455 (debug_qf_print_stats, debug_qf_dump)
5456 (debug_qf_expand_symtabs_for_function)
5457 (debug_qf_expand_all_symtabs)
5458 (debug_qf_expand_symtabs_with_fullname)
5459 (debug_qf_map_matching_symbols)
5460 (debug_qf_expand_symtabs_matching)
5461 (debug_qf_find_pc_sect_compunit_symtab)
5462 (debug_qf_map_symbol_filenames)
5463 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5464 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5465 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5466 (debug_sym_read_linetable, debug_sym_relocate): Update.
5467 (symfile_debug_free_objfile): Remove.
5468 (install_symfile_debug_logging, _initialize_symfile_debug):
5469 Update.
5470
5bfd760d
TT
54712019-05-08 Tom Tromey <tom@tromey.com>
5472
5473 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5474 allocate_on_obstack.
5475 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5476 (get_dwarf2_per_objfile): Update.
5477 (set_dwarf2_per_objfile): Remove.
5478 (dwarf2_has_info, dwarf2_get_section_info): Update.
5479 (dwarf2_free_objfile): Remove.
5480 (_initialize_dwarf2_read): Update.
5481
e85e19b4
TT
54822019-05-08 Tom Tromey <tom@tromey.com>
5483
5484 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5485 initializers.
5486 <unsupported_script_warning_printed,
5487 script_not_found_warning_printed>: Now bool.
5488 (auto_load_pspace_data): Change type.
5489 (~auto_load_pspace_info): Rename from
5490 auto_load_pspace_data_cleanup.
5491 (get_auto_load_pspace_data, init_loaded_scripts_info)
5492 (clear_section_scripts, maybe_print_unsupported_script_warning)
5493 (maybe_print_script_not_found_warning, _initialize_auto_load):
5494 Update.
5495
f6aa7436
TT
54962019-05-08 Tom Tromey <tom@tromey.com>
5497
5498 * objfiles.c (objfile_pspace_info): Add destructor and
5499 initializers.
5500 (objfiles_pspace_data): Change type.
5501 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5502 (get_objfile_pspace_data): Update.
5503 (objfiles_bfd_data): Change type.
5504 (get_objfile_bfd_data): Update.
5505 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5506
6ae614f6
TT
55072019-05-08 Tom Tromey <tom@tromey.com>
5508
5509 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5510 Change type.
5511 (get_catch_syscall_inferior_data): Update.
5512 (catch_syscall_inferior_data_cleanup): Remove.
5513 (_initialize_break_catch_syscall): Update.
5514
6509b8eb
TT
55152019-05-08 Tom Tromey <tom@tromey.com>
5516
5517 * inflow.c (struct terminal_info): Add destructor and
5518 initializers.
5519 (inflow_inferior_data): Change type.
5520 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5521 (get_inflow_inferior_data, inflow_inferior_exit)
5522 (swap_terminal_info, _initialize_inflow): Update.
5523
35632941
TT
55242019-05-08 Tom Tromey <tom@tromey.com>
5525
5526 * target-dcache.c (target_dcache_cleanup): Remove.
5527 (target_dcache_aspace_key): Change type.
5528 (target_dcache_init_p, target_dcache_invalidate)
5529 (target_dcache_get, target_dcache_get_or_init)
5530 (_initialize_target_dcache): Update.
5531 * dcache.h (struct dcache_deleter): New.
5532
3017b94d
TT
55332019-05-08 Tom Tromey <tom@tromey.com>
5534
5535 * symtab.c (struct symbol_cache): Add destructor and
5536 initializers.
5537 (symbol_cache_key): Move. Change type.
5538 (make_symbol_cache, free_symbol_cache): Remove.
5539 (get_symbol_cache): Update.
5540 (symbol_cache_cleanup): Remove.
5541 (ALL_PSPACES, symbol_cache_flush)
5542 (maintenance_print_symbol_cache)
5543 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5544 Update.
5545
a32ad8c5
TT
55462019-05-08 Tom Tromey <tom@tromey.com>
5547
5548 * symtab.c (struct main_info): Add destructor and initializers.
5549 (main_progspace_key): Move. Change type.
5550 (get_main_info): Update.
5551 (main_info_cleanup): Remove.
5552 (_initialize_symtab): Update.
5553
5f6e90a0
TT
55542019-05-08 Tom Tromey <tom@tromey.com>
5555
5556 * registry.h (DECLARE_REGISTRY): Define the _key class.
5557
1bd0c6e4
AB
55582019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5559
5560 * NEWS: Merge two 'New commands' sections.
5561
2228ef77
XR
55622019-05-08 Joel Brobecker <brobecker@adacore.com>
5563
5564 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5565 parameter and use Ada language definition instead.
5566 (ada_val_print_ptr): Remove unused language parameter.
5567 (ada_val_print_num): Remove language parameter and use Ada language
5568 definition instead.
5569 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5570 parameter.
5571 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5572 parameter and use Ada language definition instead.
5573 (ada_val_print_1): Update all ada_val_print_xxx calls.
5574 Remove language parameter.
5575 (ada_val_print): Update ada_val_print_1 call.
5576
60fcc1c3
TT
55772019-05-08 Tom Tromey <tromey@adacore.com>
5578
5579 * remote.c (remote_hw_watchpoint_limit)
5580 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5581 Now static.
5582
ed2b7c17
TT
55832019-05-08 Tom Tromey <tromey@adacore.com>
5584
5585 * maint.c (_initialize_maint_cmds): Move initialization code to
5586 remote.c.
5587 (watchdog, show_watchdog): Move to remote.c.
5588 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5589 "watchdog" static.
5590 (_initialize_remote): Move initialization code from maint.c.
5591 * defs.h (watchdog): Don't declare.
5592
b0be6c91
TT
55932019-05-08 Tom Tromey <tromey@adacore.com>
5594
5595 * tui/tui-interp.c: Include main.h.
5596 * interps.c: Include main.h.
5597 * main.h (interpreter_p): Declare.
5598 * defs.h (interpreter_p): Don't declare.
5599
587ee17b
TT
56002019-05-08 Tom Tromey <tromey@adacore.com>
5601
5602 * dwarf2loc.c: Include dwarf2read.h.
5603 * defs.h (read_unsigned_leb128): Don't declare.
5604 * dwarf2read.h (read_unsigned_leb128): Declare.
5605
ca1df239
TT
56062019-05-08 Tom Tromey <tromey@adacore.com>
5607
5608 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5609 method.
5610
99f20f08
TT
56112019-05-08 Tom Tromey <tromey@adacore.com>
5612
5613 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5614 when no wrap column is set.
5615
80e55b13
TT
56162019-05-08 Tom Tromey <tromey@adacore.com>
5617
5618 * c-lang.c (c_get_string): Handle non-C-style arrays.
5619
9d3421af
TT
56202019-05-08 Tom Tromey <tromey@adacore.com>
5621
5622 * typeprint.c (print_offset_data::update): Print the bit offset,
5623 not the number of bits remaining.
5624
844333e2
TT
56252019-05-08 Tom Tromey <tromey@adacore.com>
5626
5627 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5628 padding at end of comment.
5629
988915ee
TT
56302019-05-08 Tom Tromey <tromey@adacore.com>
5631
5632 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5633 Compare main types.
5634
26bfd823
TT
56352019-05-06 Tom Tromey <tom@tromey.com>
5636
5637 * common/scoped_mmap.c: Include common-defs.h.
5638 * common/scoped_mmap.h: Don't include config.h.
5639
89055eaa
TT
56402019-05-04 Tom Tromey <tom@tromey.com>
5641
5642 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5643 (struct aarch64_call_info): Add initializers.
5644 <si>: Now a std::vector.
5645 (pass_on_stack, aarch64_push_dummy_call): Update.
5646
5da01df5
TT
56472019-05-04 Simon Marchi <simon.marchi@efficios.com>
5648 Tom Tromey <tom@tromey.com>
5649
5650 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5651 (ppc_threads): Now a std::vector. Now static.
5652 (hwdebug_find_thread_points_by_tid)
5653 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5654 Update.
5655
fbdf05a1
TT
56562019-05-04 Tom Tromey <tom@tromey.com>
5657
5658 * arc-tdep.c (arc_tdesc_init): Return bool.
5659
06d16ec9
TT
56602019-05-04 Tom Tromey <tom@tromey.com>
5661
5662 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5663 Use gdb_assert_not_reached.
5664
9c056022
TT
56652019-05-04 Tom Tromey <tom@tromey.com>
5666
5667 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5668 "false".
5669
fa9c2a59
TT
56702019-05-04 Tom Tromey <tom@tromey.com>
5671
5672 * arc-tdep.c (arc_tdesc_init): Use bool.
5673
e2eb806a
TT
56742019-05-04 Tom Tromey <tom@tromey.com>
5675
5676 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5677
6fe87677
TT
56782019-05-04 Tom Tromey <tom@tromey.com>
5679
5680 * cli/cli-cmds.c (valid_command_p): Return bool.
5681
7f008c9e
TT
56822019-05-04 Tom Tromey <tom@tromey.com>
5683
5684 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5685 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5686
b6484282
RT
56872019-05-04 Raul Tambre <raul@tambre.ee>
5688
5689 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5690 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5691 operator for comparison.
5692
af97b416
TT
56932019-05-04 Tom Tromey <tom@tromey.com>
5694
5695 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5696 (lookup_partial_symbol, print_partial_symbols)
5697 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5698 (psymbol_compare): Update.
5699 (add_psymbol_to_bcache): Clear the entire psymbol.
5700 (maintenance_check_psymtabs): Update.
5701 * psympriv.h (struct partial_symbol): Don't derive from
5702 general_symbol_info.
5703 <obj_section, unrelocated_address, address,
5704 set_unrelocated_address>: Update.
5705 <ginfo>: New member.
5706 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5707 (debug_names::write_psymbols): Update.
5708
9d6d4be8
TV
57092019-05-04 Tom de Vries <tdevries@suse.de>
5710
5711 * contrib/cc-with-tweaks.sh: Support -n arg.
5712
66452beb
PW
57132019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5714
5715 * corelow.c (core_target::detach): Ensure frame cache and
5716 register caches are cleared.
5717 inferior.c (exit_inferior_1): Likewise.
5718
bde09ab7
TT
57192019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5720 Tom Tromey <tom@tromey.com>
5721
5722 * dictionary.c (collate_pending_symbols_by_language): Remove
5723 "struct" from foreach.
5724 * symtab.c (lookup_global_symbol_from_objfile)
5725 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5726 foreach.
5727 * ser-tcp.c (net_open): Remove "struct" from foreach.
5728 * objfiles.c (objfile_relocate, objfile_rebase)
5729 (objfile_has_symbols): Remove "struct" from foreach.
5730 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5731 from foreach.
5732 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5733 foreach.
5734 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5735 "struct" from foreach.
5736 * ada-lang.c (create_excep_cond_exprs)
5737 (ada_exception_catchpoint_cond_string): Remove "struct" from
5738 foreach.
5739
222a8d25
TT
57402019-05-03 Tom Tromey <tromey@adacore.com>
5741
5742 * ada-exp.y (convert_char_literal): Check suffix of each
5743 enumerator.
5744
fcd60b84
DP
57452019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5746
5747 PR ada/21406:
5748 * ada-exp.y (yywrap): Don't define.
5749 * ada-lex.l (%option): Add noyywrap
5750 (yywrap): Remove.
5751
5f2459c2
EZ
57522019-05-03 Eli Zaretskii <eliz@gnu.org>
5753
353ea2d1
EZ
5754 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5755 _WIN32_WINNT to the XP level, unless already defined to a higher
5756 level.
5757
5758 * unittests/parse-connection-spec-selftests.c:
5759 * ser-tcp.c:
5760 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5761 override.
5762
5f2459c2
EZ
5763 * symfile.c (find_separate_debug_file): Remove colon from the
5764 drive spec of DOS/Windows file names of the target, so that the
5765 file name produced from DEBUGDIR and the target's directory will
5766 be valid on DOS/Windows systems.
5767
80062eb9
AB
57682019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5769
5770 * rust-lang.c (val_print_struct): Handle printing structures
5771 containing strings.
5772
b8c05e85
TT
57732019-05-02 Tom Tromey <tromey@adacore.com>
5774
5775 * valarith.c (_initialize_valarith): Remove.
5776
4504bbde
TT
57772019-05-01 Tom Tromey <tromey@adacore.com>
5778
5779 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5780 bitfields.
5781
d48e62f4
TT
57822019-05-01 Tom Tromey <tromey@adacore.com>
5783
5784 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5785 for big-endian copies.
5786
15f18d14
AT
57872019-04-30 Ali Tamur <tamur@google.com>
5788 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5789 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5790 (read_3_bytes): New function.
5791
ab4ee614
JB
57922019-04-30 Joel Brobecker <brobecker@adacore.com>
5793
5794 * windows-nat.c (main_thread_id): Delete.
5795 (handle_output_debug_string): Replace main_thread_id by
5796 current_event.dwThreadId.
5797 (fake_create_process): Likewise.
5798 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5799 Do not set main_thread_id.
5800 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5801 current_event.dwThreadId.
5802 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5803
8ed5b76e
JB
58042019-04-30 Joel Brobecker <brobecker@adacore.com>
5805
5806 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5807 Use current_event.dwThreadId instead of main_thread_id.
5808
2ff0a947
TT
58092019-04-30 Tom Tromey <tromey@adacore.com>
5810
5811 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5812 (create_excep_cond_exprs): Iterate over program spaces.
5813 (ada_exception_catchpoint_cond_string): Examine all minimal
5814 symbols for exception types.
5815
a776957c
TT
58162019-04-30 Tom Tromey <tromey@adacore.com>
5817
5818 PR c++/24470:
5819 * dwarf2read.c (process_structure_scope): Handle case where type
5820 has template parameters but no symbol was created.
5821
bc68014d
AB
58222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5823 Chris January <chris.january@arm.com>
5824
5825 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5826 qualifier.
5827 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5828
f1fdc960
AB
58292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5830
5831 * f-typeprint.c (f_print_type): Update rules for printing
5832 whitespace.
5833 (f_type_print_varspec_suffix): Likewise.
5834
bf7a4de1
AB
58352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5836 Chris January <chris.january@arm.com>
5837
5838 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5839 function arguments.
5840
bbe75b9d
AB
58412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5842
5843 * f-lang.c (build_fortran_types): Change name of void type to
5844 lower case.
5845 * f-typeprint.c (f_type_print_base): Print the name of the void
5846 type, rather than a fixed string.
5847 * f-valprint.c (f_decorations): Use lower case void string.
5848
1db455a7
AB
58492019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5850 Chris January <chris.january@arm.com>
5851
5852 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5853 types for Fortran.
5854
b6d03bb2
AB
58552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5856 Chris January <chris.january@arm.com>
5857 David Lecomber <david.lecomber@arm.com>
5858
5859 * f-exp.y (BINOP_INTRINSIC): New token.
5860 (exp): New parser rule handling BINOP_INTRINSIC.
5861 (f77_keywords): Add new builtin procedures.
5862 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5863 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5864 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5865 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5866 (print_unop_subexp_f): New function.
5867 (print_binop_subexp_f): New function.
5868 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5869 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5870 (dump_subexp_body_f): Likewise.
5871 (operator_check_f): Likewise.
5872 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5873 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5874
83228e93
AB
58752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5876
5877 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5878 UNOP_KIND.
5879 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5880 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5881 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5882 (operator_length_f): New fuction.
5883 (print_subexp_f): New function.
5884 (op_name_f): New function.
5885 (dump_subexp_body_f): New function.
5886 (operator_check_f): New function.
5887 (exp_descriptor_f): Replace standard expression handling functions
5888 with new functions.
5889 * gdb/fortran-operator.def: New file.
5890 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5891 * gdb/std-operator.def: Remove UNOP_KIND.
5892
6fdcd7cc
AB
58932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5894
5895 * std-operator.def: Remove unbalanced, stray double quote
5896 character.
5897
2e62ab40
AB
58982019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5899 Chris January <chris.january@arm.com>
5900 Daniel Everett <daniel.everett@arm.com>
5901 Nick Forrington <nick.forrington@arm.com>
5902 Richard Bunt <richard.bunt@arm.com>
5903
5904 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5905 of depth when printing anonymous structs or unions.
5906 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5907 Don't print either the top-level value, or the children if the
5908 max-depth is exceeded.
5909 (ppscm_print_children): When printing the key of a map, allow one
5910 extra level of depth.
5911 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5912 print either the top-level value, or the children if the max-depth
5913 is exceeded.
5914 (print_children): When printing the key of a map, allow one extra
5915 level of depth.
5916 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5917 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5918 (user_print_options): Initialise max_depth field.
5919 (val_print_scalar_or_string_type_p): New function.
5920 (val_print): Check to see if the max depth has been reached.
5921 (val_print_check_max_depth): Define new function.
5922 (show_print_max_depth): New function.
5923 (_initialize_valprint): Add 'print max-depth' option.
5924 * valprint.h (struct value_print_options) <max_depth>: New field.
5925 (val_print_check_max_depth): Declare new function.
5926 * NEWS: Document new feature.
5927
4be290b2
AB
59282019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5929
5930 * ada-lang.c (ada_language_defn): Initialise new field.
5931 * c-lang.c (c_is_string_type_p): New function.
5932 (c_language_defn): Initialise new field.
5933 (cplus_language_defn): Initialise new field.
5934 (asm_language_defn): Initialise new field.
5935 (minimal_language_defn): Initialise new field.
5936 * c-lang.h (c_is_string_type_p): Declare new function.
5937 * d-lang.c (d_language_defn): Initialise new field.
5938 * f-lang.c (f_is_string_type_p): New function.
5939 (f_language_defn): Initialise new field.
5940 * go-lang.c (go_is_string_type_p): New function.
5941 (go_language_defn): Initialise new field.
5942 * language.c (default_is_string_type_p): New function.
5943 (unknown_language_defn): Initialise new field.
5944 (auto_language_defn): Initialise new field.
5945 * language.h (struct language_defn) <la_is_string_type_p>: New
5946 member variable.
5947 (default_is_string_type_p): Declare new function.
5948 * m2-lang.c (m2_language_defn): Initialise new field.
5949 * objc-lang.c (objc_language_defn): Initialise new field.
5950 * opencl-lang.c (opencl_language_defn): Initialise new field.
5951 * p-lang.c (pascal_is_string_type_p): New function.
5952 (pascal_language_defn): Initialise new field.
5953 * rust-lang.c (rust_is_string_type_p): New function.
5954 (rust_language_defn): Initialise new field.
5955
721b08c6
AB
59562019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5957
5958 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5959 New field.
5960 * ada-lang.c (ada_language_defn): Initialise new field.
5961 * c-lang.c (c_language_defn): Likewise.
5962 (cplus_language_defn): Likewise.
5963 (asm_language_defn): Likewise.
5964 (minimal_language_defn): Likewise.
5965 * d-lang.c (d_language_defn): Likewise.
5966 * f-lang.c (f_language_defn): Likewise.
5967 * go-lang.c (go_language_defn): Likewise.
5968 * language.c (unknown_language_defn): Likewise.
5969 (auto_language_defn): Likewise.
5970 * m2-lang.c (m2_language_defn): Likewise.
5971 * objc-lang.c (objc_language_defn): Likewise.
5972 * opencl-lang.c (opencl_language_defn): Likewise.
5973 * p-lang.c (pascal_language_defn): Likewise.
5974 * rust-lang.c (rust_language_defn): Likewise.
5975
fc913e53
AB
59762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5977
5978 * ada-lang.c (ada_is_character_type): Change return type to bool.
5979 (ada_is_string_type): Likewise.
5980 * ada-lang.h (ada_is_character_type): Update declaration
5981 (ada_is_string_type): Likewise.
5982
fa731fa0
PW
59832019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5984
5985 Support style in 'frame|thread apply'
5986
5987 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5988 * record.c (record_start, record_stop): Update callers of
5989 execute_command_to_string with false.
5990 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5991 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5992 methods.
5993 (class string_file): New constructor with term_out parameter.
5994 Override methods term_out and can_emit_style_escape. New member
5995 term_out.
5996 (class stdio_file): Override can_emit_style_escape.
5997 (class tee_file): Override term_out and can_emit_style_escape.
5998 * utils.h (can_emit_style_escape): Remove.
5999 * utils.c (can_emit_style_escape): Likewise.
6000 Update all callers of can_emit_style_escape (SOMESTREAM) to
6001 SOMESTREAM->can_emit_style_escape.
6002 * source-cache.c (source_cache::get_source_lines): Likewise.
6003 * stack.c (frame_apply_command_count): Call execute_command_to_string
6004 passing the term_out characteristic of the current gdb_stdout.
6005 * thread.c (thr_try_catch_cmd): Likewise.
6006 * top.c (execute_command_to_string): pass term_out parameter
6007 to construct the string_file for the command output.
6008 * ui-file.c (term_cli_styling): New function (most code moved
6009 from utils.c can_emit_style_escape).
6010 (string_file::string_file, string_file::can_emit_style_escape,
6011 stdio_file::can_emit_style_escape, tee_file::term_out,
6012 tee_file::can_emit_style_escape): New functions.
6013
136afab8
PW
60142019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6015
6016 * NEWS: Mention the new set|show may-call-functions.
6017 * infcall.c (may_call_functions_p): New variable.
6018 (show_may_call_functions_p): New function.
6019 (call_function_by_hand_dummy): Throws an error if not
6020 may-call-functions.
6021 (_initialize_infcall): Call add_setshow_boolean_cmd for
6022 may-call-functions.
6023
725cbb63
KS
60242019-04-25 Keith Seitz <keiths@redhat.com>
6025
6026 PR c++/24367
6027 * cp-support.c (inspect_type): Don't attempt substitutions
6028 of symbol with the same name.
6029
3d1cbb78
TT
60302019-04-25 Tom Tromey <tromey@adacore.com>
6031
6032 PR gdb/24475:
6033 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6034 static.
6035
94aeb44b
TT
60362019-04-25 Tom Tromey <tromey@adacore.com>
6037
6038 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6039 rvalue reference.
6040 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6041 (gdb_xml_parser::parse): Use std::move.
6042 * python/python-internal.h (gdbpy_convert_exception): Take a const
6043 reference.
6044 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6045 std::move.
6046 * python/py-utils.c (gdbpy_convert_exception): Take a const
6047 reference.
6048 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6049 Use std::move.
6050 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6051 Use std::move.
6052 * mi/mi-main.c (mi_print_exception): Take a const reference.
6053 * main.c (handle_command_errors): Take a const reference.
6054 * linespec.c (parse_linespec): Use std::move.
6055 * infcall.c (run_inferior_call): Use std::move.
6056 (call_function_by_hand_dummy): Use std::move.
6057 * exec.c (try_open_exec_file): Use std::move.
6058 * exceptions.h (exception_print, exception_fprintf)
6059 (exception_print_same): Update.
6060 * exceptions.c (print_exception, exception_print)
6061 (exception_fprintf, exception_print_same): Change parameters to
6062 const reference.
6063 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6064 * common/new-op.c: Use std::move.
6065 * common/common-exceptions.h (struct gdb_exception): Add move
6066 constructor.
6067 (struct gdb_exception_error, struct gdb_exception_quit, struct
6068 gdb_quit_bad_alloc): Change constructor to move constructor.
6069 (throw_exception): Change parameter to rvalue reference.
6070 * common/common-exceptions.c (throw_exception): Take rvalue
6071 reference.
6072 * cli/cli-interp.c (safe_execute_command): Use std::move.
6073 * breakpoint.c (insert_bp_location, location_to_sals): Use
6074 std::move.
6075
680d7fd5
TT
60762019-04-25 Tom Tromey <tromey@adacore.com>
6077
6078 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6079 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6080 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6081 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6082 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6083 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6084 guile/scm-value.c: Use unpack.
6085 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6086 gdbscm_gdb_exception.
6087 (gdbscm_throw_gdb_exception): Likewise.
6088 (struct gdbscm_gdb_exception): New.
6089 (unpack): New function.
6090 (gdbscm_wrap): Use unpack.
6091
c6fdd8b2
TT
60922019-04-25 Tom Tromey <tromey@adacore.com>
6093
6094 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6095 (gdb_rl_callback_handler): Use std::move.
6096 * common/common-exceptions.h (struct gdb_exception): Add move
6097 assignment operator.
6098 (throw_exception_sjlj): Change "exception" to const reference.
6099 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6100 (throw_exception_sjlj): Change "exception" to const reference.
6101
cc06b668
TT
61022019-04-25 Tom Tromey <tromey@adacore.com>
6103
6104 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6105 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6106 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6107 Update.
6108 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6109 Update.
6110 * mi/mi-interp.c (mi_interp::exec): Update.
6111 * linespec.c (parse_linespec): Update.
6112 * infcall.c (run_inferior_call): Update.
6113 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6114 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6115 (gdbscm_lookup_global_symbol): Update.
6116 * guile/scm-param.c (gdbscm_parameter_value): Update.
6117 * guile/scm-frame.c (gdbscm_frame_read_register)
6118 (gdbscm_frame_read_var): Update.
6119 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6120 * exec.c (try_open_exec_file): Update.
6121 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6122 (gdb_rl_callback_handler): Update.
6123 * common/common-exceptions.h (exception_none): Don't declare.
6124 * common/common-exceptions.c (exception_none): Don't define.
6125 (struct catcher) <exception>: Update.
6126 * cli/cli-interp.c (safe_execute_command): Update.
6127 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6128
cf532bd1
AT
61292019-04-25 Ali Tamur <tamur@google.com>
6130
6131 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6132 (read_attribute_value): Likewise.
6133 (dwarf2_read_addr_index): Update comment.
6134 (read_str_index): Add DW_FORM_strx.
6135 (dwarf2_string_attr): Likewise.
6136 (dwarf2_const_value_attr): Likewise.
6137 (dump_die_shallow): Likewise.
6138 (dwarf2_fetch_constant_bytes): Likewise.
6139 (skip_form_bytes): Likewise.
6140 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6141
82433e3e
SDJ
61422019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6143
6144 PR corefiles/11608
6145 PR corefiles/18187
6146 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6147 OFFSET. Verify if current mapping contains an ELF header.
6148 (linux_find_memory_regions_full): Adjust call to
6149 dump_mapping_p.
6150
723adb65
SL
61512019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6152 Kang Li <kanglictf@gmail.com>
6153
6154 PR gdb/21600
6155
6156 * dwarf2-frame.c (read_initial_length): Be consistent about using
6157 unsigned representation of length.
6158 (decode_frame_entry_1): Likewise. Check for wraparound of
6159 end pointer as well as buffer overflow.
6160
596179f7
SDJ
61612019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6162
6163 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6164 "vq".
6165
a59240a4
TT
61662019-04-24 Tom Tromey <tromey@adacore.com>
6167
6168 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6169
f872fdbb
AB
61702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6171
6172 * s12z-tdep.c (s12z_unwind_pc): Delete.
6173 (s12z_unwind_sp): Delete.
6174 (s12z_gdbarch_init): Don't register deleted functions with
6175 gdbarch.
6176
b614e6f3
AB
61772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6178
6179 * rl78-tdep.c (rl78_unwind_sp): Delete.
6180 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6181
14faed38
AB
61822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6183
6184 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6185 (xstormy16_unwind_pc): Delete.
6186 (xstormy16_dummy_id): Delete.
6187 (xstormy16_gdbarch_init): Don't register deleted functions with
6188 gdbarch.
6189
541aad8a
AB
61902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6191
6192 * vax-tdep.c (vax_unwind_pc): Delete.
6193 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6194
29222070
AB
61952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6196
6197 * v850-tdep.c (v850_unwind_sp): Delete.
6198 (v850_unwind_pc): Delete.
6199 (v850_dummy_id): Delete.
6200 (v850_gdbarch_init): Don't register deleted functions with
6201 gdbarch.
6202
0f534d76
AB
62032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6204
6205 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6206 (tilegx_unwind_pc): Delete.
6207 (tilegx_unwind_dummy_id): Delete.
6208 (tilegx_gdbarch_init): Don't register deleted functions with
6209 gdbarch.
6210
1ba7b7f9
AB
62112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6212
6213 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6214 (tic6x_dummy_id): Delete.
6215 (tic6x_gdbarch_init): Don't register deleted functions with
6216 gdbarch.
6217
d31f262c
AB
62182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6219
6220 * sparc-tdep.c (sparc_unwind_pc): Delete.
6221 (sparc32_gdbarch_init): Don't register deleted function with
6222 gdbarch.
6223
6d14d64d
AB
62242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6225
6226 * sh-tdep.c (sh_unwind_sp): Delete.
6227 (sh_unwind_pc): Delete.
6228 (sh_dummy_id): Delete.
6229 (sh_gdbarch_init): Don't register deleted functions with
6230 gdbarch.
6231
a40dde9d
AB
62322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6233
6234 * score-tdep.c (score_unwind_sp): Delete.
6235 (score_unwind_pc): Delete.
6236 (score_dummy_id): Delete.
6237 (score_gdbarch_init): Don't register deleted functions with
6238 gdbarch.
6239
47c47d69
AB
62402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6241
6242 * rx-tdep.c (rx_unwind_pc): Delete.
6243 (rx_unwind_sp): Delete.
6244 (rx_dummy_id): Delete.
6245 (rx_gdbarch_init): Don't register deleted functions with
6246 gdbarch. Update comment.
6247
833a4480
AB
62482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6249
6250 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6251 (rs6000_dummy_id): Delete.
6252 (rs6000_gdbarch_init): Don't register deleted functions with
6253 gdbarch.
6254
3f2cef49
AB
62552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6256
6257 * or1k-tdep.c (or1k_dummy_id): Delete.
6258 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6259
96acf884
AB
62602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6261
6262 * nios2-tdep.c (nios2_dummy_id): Delete.
6263 (nios2_unwind_sp): Delete.
6264 (nios2_gdbarch_init): Don't register deleted functions with
6265 gdbarch.
6266
ca0ab0aa
AB
62672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6268
6269 * nds32-tdep.c (nds32_dummy_id): Delete.
6270 (nds32_unwind_pc): Delete.
6271 (nds32_unwind_sp): Delete.
6272 (nds32_gdbarch_init): Don't register deleted functions with
6273 gdbarch.
6274
c8259044
AB
62752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6276
6277 * msp430-tdep.c (msp430_unwind_pc): Delete.
6278 (msp430_unwind_sp): Delete.
6279 (msp430_dummy_id): Delete.
6280 (msp430_gdbarch_init): Don't register deleted functions with
6281 gdbarch.
6282
27f113c8
AB
62832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6284
6285 * moxie-tdep.c (moxie_unwind_sp): Delete.
6286 (moxie_unwind_pc): Delete.
6287 (moxie_dummy_id): Delete.
6288 (moxie_gdbarch_init): Don't register deleted functions with
6289 gdbarch.
6290
aee6c3cd
AB
62912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6292
6293 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6294 (mn10300_unwind_pc): Delete.
6295 (mn10300_unwind_sp): Delete.
6296 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6297 mn10300_unwind_sp.
6298 (mn10300_frame_unwind_init): Don't register deleted functions with
6299 gdbarch.
6300
8e2b5aea
AB
63012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6302
6303 * mep-tdep.c (mep_unwind_pc): Delete.
6304 (mep_unwind_sp): Delete.
6305 (mep_dummy_id): Delete.
6306 (mep_gdbarch_init): Don't register deleted functions with
6307 gdbarch.
6308
43cf3ede
AB
63092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6310
6311 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6312 (m68hc11_unwind_sp): Delete.
6313 (m68hc11_gdbarch_init): Don't register deleted functions with
6314 gdbarch.
6315
5e79b7bb
AB
63162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6317
6318 * m32r-tdep.c (m32r_unwind_sp): Delete.
6319 (m32r_unwind_pc): Delete.
6320 (m32r_dummy_id): Delete.
6321 (m32r_gdbarch_init): Don't register deleted functions with
6322 gdbarch.
6323
89b268d8
AB
63242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6325
6326 * m32c-tdep.c (m32c_unwind_pc): Delete.
6327 (m32c_unwind_sp): Delete.
6328 (m32c_dummy_id): Delete.
6329 (m32c_gdbarch_init): Don't register deleted functions with
6330 gdbarch.
6331
946c28d2
AB
63322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6333
6334 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6335 (lm32_unwind_pc): Delete.
6336 (lm32_dummy_id): Delete.
6337 (lm32_gdbarch_init): Don't register deleted functions with
6338 gdbarch.
6339
bf12844a
AB
63402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6341
6342 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6343 (iq2000_unwind_pc): Delete.
6344 (iq2000_dummy_id): Delete.
6345 (iq2000_gdbarch_init): Don't register deleted functions with
6346 gdbarch.
6347
ecbc06d2
AB
63482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6349
6350 * nds32-tdep.c (nds32_type_align): Delete.
6351 (nds32_push_dummy_call): Use type_align instead.
6352
030197b4
AB
63532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6354
6355 * arm-tdep.c (arm_type_align): Only handle vector override case.
6356 (arm_push_dummy_call): Use type_align.
6357 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6358
b907456c
AB
63592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6360
6361 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6362 case.
6363 (pass_on_stack): Use type_align.
6364 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6365 function.
6366
9e97ba43
TT
63672019-04-23 Tom Tromey <tromey@adacore.com>
6368
6369 * dwarf2read.c (line_header::file_name_at): Remove unused
6370 overload.
6371
6892f601
TV
63722019-04-23 Tom de Vries <tdevries@suse.de>
6373
6374 PR gdb/24438
6375 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6376 invocation.
6377
336d760d
AT
6378
63792019-03-27 Ali Tamur <tamur@google.com>
6380
6381 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6382 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6383 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6384 (dwarf_expr_context::get_addr_index): Likewise
6385 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6386 (symbol_needs_eval_context::get_addr_index): Likewise
6387 (disassemble_dwarf_expression): Add DW_OP_addrx
6388 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6389 (read_cutu_die_from_dwo): Update comment
6390 (skip_one_die): Add DW_FORM_addrx
6391 (read_attribute_value): Likewise
6392 (var_decode_location): Add DW_OP_addrx
6393 (dwarf2_const_value_attr): Add DW_FORM_addrx
6394 (dump_die_shallow): Likewise
6395 (dwarf2_fetch_constant_bytes): Likewise
6396 (decode_locdesc): Add DW_OP_addrx
6397 (skip_form_bytes): Add DW_FORM_addrx
6398
ad9d13f8
AT
63992019-04-22 Ali Tamur <tamur@google.com>
6400
6401 * MAINTAINERS (Write After Approval): Add self.
6402
d70cc3ba
SM
64032019-04-22 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6406 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6407 (open_symbol_file_object): Likewise.
6408 (svr4_default_sos): Add info parameter.
6409 (svr4_read_so_list): Likewise.
6410 (svr4_current_sos_direct): Adjust functions calls to pass down
6411 info.
6412 (svr4_current_sos_1): Add info parameter.
6413 (svr4_current_sos): Call get_svr4_info, pass info down to
6414 svr4_current_sos_1.
6415 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6416 get_svr4_info.
6417 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6418 get_svr4_info.
6419 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6420 to get_svr4_info.
6421 (probes_table_remove_objfile_probes): Likewise.
6422 (register_solib_event_probe): Add info parameter.
6423 (solist_update_incremental): Pass info parameter down to
6424 svr4_read_so_list.
6425 (disable_probes_interface): Add info parameter.
6426 (svr4_handle_solib_event): Pass current_program_space to
6427 get_svr4_info. Adjust disable_probes_interface cleanup.
6428 (svr4_create_probe_breakpoints): Add info parameter, pass it
6429 down to register_solib_event_probe.
6430 (svr4_create_solib_event_breakpoints): Add info parameter,
6431 pass it down to svr4_create_probe_breakpoints.
6432 (enable_break): Pass info down to
6433 svr4_create_solib_event_breakpoints.
6434 (svr4_solib_create_inferior_hook): Pass current_program_space to
6435 get_svr4_info.
6436 (svr4_clear_solib): Likewise.
6437
7905fc35
PA
64382019-04-22 Pedro Alves <palves@redhat.com>
6439
6440 * solib-svr4.c (svr4_free_objfile_observer): New.
6441 (probe_and_action::objfile): New field.
6442 (probes_table_htab_remove_objfile_probes)
6443 (probes_table_remove_objfile_probes): New functions.
6444 (register_solib_event_probe): Add 'objfile' parameter. Store it
6445 in the new probe_and_action. Don't store the probe in 'lookup'.
6446 (svr4_create_probe_breakpoints): Pass objfile to
6447 register_solib_event_probe.
6448 (_initialize_svr4_solib): Register a free_objfile observer.
6449
fb881986
TT
64502019-04-19 Tom Tromey <tom@tromey.com>
6451
6452 * common/queue.h: Remove.
6453
8732db6c
TT
64542019-04-19 Tom Tromey <tom@tromey.com>
6455
6456 * event-loop.c: Don't include "common/queue.h".
6457
97dfbadd
TT
64582019-04-19 Tom Tromey <tom@tromey.com>
6459
6460 * remote.c (remote_target): Use delete.
6461 * remote-notif.h: Include <list>, not "common/queue.h".
6462 (notif_client_p): Remove typedef.
6463 (remote_notif_state): Add constructor, destructor, initializer.
6464 <notif_queue>: Now a std::list.
6465 (remote_notif_state_xfree): Don't declare.
6466 * remote-notif.c (remote_notif_process, handle_notification)
6467 (remote_notif_state_allocate): Update.
6468 (~remote_notif_state): Rename from remote_notif_state_xfree.
6469
cf250e36
TT
64702019-04-19 Tom Tromey <tom@tromey.com>
6471
6472 * symfile.c (reread_symbols): Update.
6473 * objfiles.c (objfile_register_static_link)
6474 (objfile_lookup_static_link): Update
6475 (~objfile) Don't delete static_links.
6476 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6477
61f4b350
TT
64782019-04-19 Tom Tromey <tom@tromey.com>
6479
6480 * type-stack.h (struct type_stack) <insert>: Constify string.
6481 * type-stack.c (type_stack::insert): Constify string.
6482 * gdbtypes.h (lookup_template_type): Update.
6483 (address_space_name_to_int): Update.
6484 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6485 const.
6486 (lookup_template_type): Make name const.
6487 * c-exp.y: Update rules.
6488 (lex_one_token, classify_name, classify_inner_name)
6489 (c_print_token): Update.
6490 * p-exp.y: Update rules.
6491 (yylex): Update.
6492 * f-exp.y: Update rules.
6493 (yylex): Update.
6494 * d-exp.y: Update rules.
6495 (lex_one_token, classify_name, classify_inner_name): Update.
6496 * parse.c (write_dollar_variable, copy_name): Return std::string.
6497 * parser-defs.h (copy_name): Change return type.
6498 * m2-exp.y: Update rules.
6499 (yylex): Update.
6500 * go-exp.y (lex_one_token): Update.
6501 Update rules.
6502 (classify_unsafe_function, classify_packaged_name)
6503 (classify_name, yylex): Update.
6504
189b8c2e
ST
65052019-04-19 Sergei Trofimovich <siarheit@google.com>
6506
6507 * configure.ac: add --enable-source-highlight switch.
6508 * configure: Regenerate.
6509 * top.c (print_gdb_version): plumb --enable-source-highlight
6510 status to "show configuration".
6511
8ecb59f8
TT
65122019-04-19 Tom Tromey <tromey@adacore.com>
6513
6514 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6515 Check ADA_TYPE_P.
6516 (empty_record, ada_template_to_fixed_record_type_1)
6517 (template_to_static_fixed_type)
6518 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6519 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6520 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6521 macros.
6522
62160ec9
TT
65232019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6524
6525 PR symtab/24423:
6526 * source.c (print_source_lines_base): Advance "iter" when a
6527 control character is seen.
6528
f2ae8bc8
PW
65292019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6530
6531 * inferior.h (struct infcall_suspend_state_deleter):
6532 Catch exception in destructor to avoid crash.
6533
d563b953
PW
65342019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6535
6536 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6537 close to the add_com "shell".
6538
dc34c897
TT
65392019-04-18 Tom Tromey <tromey@adacore.com>
6540
6541 * process-stratum-target.h (class process_stratum_target)
6542 <stratum>: Add "final".
6543
a12e5744
TT
65442019-04-17 Tom Tromey <tromey@adacore.com>
6545
6546 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6547 against nullptr before use.
6548
a7e559cc
AH
65492019-04-17 Alan Hayward <alan.hayward@arm.com>
6550
6551 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6552
c01660c6
AB
65532019-04-17 Jim Wilson <jimw@sifive.com>
6554 Andrew Burgess <andrew.burgess@embecosm.com>
6555
6556 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6557 code read might fail, assume 4-byte breakpoint in that case.
6558
4aa866af
LS
65592019-04-15 Leszek Swirski <leszeks@google.com>
6560
6561 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6562 rather than a hand-rolled POD check when checking for forced MEMORY
6563 classification.
6564
48574d91
AH
65652019-04-15 Alan Hayward <alan.hayward@arm.com>
6566
6567 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6568 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6569 function.
6570 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6571 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6572 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6573 declaration.
6574
4da037ef
AH
65752019-04-15 Alan Hayward <alan.hayward@arm.com>
6576
6577 * aarch64-linux-nat.c
6578 (aarch64_linux_nat_target::thread_architecture): Add override.
6579 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6580 each VQ.
6581
ccb8d7e8
AH
65822019-04-15 Alan Hayward <alan.hayward@arm.com>
6583
6584 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6585
35add35e
AB
65862019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6587
6588 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6589 target types of size 96-bits, add some additional comments, and
6590 check that the builtin type we found was the correct size.
6591
51196bbc
EZ
65922019-04-12 Eli Zaretskii <eliz@gnu.org>
6593
6594 * utils.c (prompt_for_continue): Don't restore the styling at the
6595 end, as applied_style has the wrong value. This fixes styling in
6596 long lists of file names that are interrupted by the "Continue?"
6597 prompt.
6598
62253a61
AB
65992019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6600
6601 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6602 * c-lang.c (c_language_defn): Likewise.
6603 (cplus_language_defn): Likewise.
6604 (asm_language_defn): Likewise.
6605 (minimal_language_defn): Likewise.
6606 * d-lang.c (d_language_defn): Likewise.
6607 * f-lang.c (f_language_defn): Likewise.
6608 * go-lang.c (go_language_defn): Likewise.
6609 * language.c (unknown_language_defn): Likewise.
6610 (auto_language_defn): Likewise.
6611 * language.h (struct language_defn): Remove la_magic field.
6612 (LANG_MAGIC): Delete.
6613 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6614 * objc-lang.c (objc_language_defn): Likewise.
6615 * opencl-lang.c (opencl_language_defn): Likewise.
6616 * p-lang.c (pascal_language_defn): Likewise.
6617 * rust-lang.c (rust_language_defn): Likewise.
6618
a9158a86
AB
66192019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6620
6621 * riscv-tdep.c (riscv_type_align): New function.
6622 (riscv_type_alignment): Delete.
6623 (riscv_arg_location): Use 'type_align'.
6624 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6625
41077b66
AB
66262019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6627
6628 * gdbtypes.c (type_align): A struct with no non-static fields also
6629 has alignment of 1.
6630
9f0272f8
AB
66312019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6632
6633 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6634 component to 0.
6635 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6636 member.
6637 (riscv_struct_info::analyse): New implementation using new
6638 analyse_inner member function.
6639 (riscv_struct_info::field_offset): New member function.
6640 (riscv_struct_info::m_offsets): New member variable.
6641 (riscv_struct_info::analyse_inner): New private member function,
6642 takes the old implementation of riscv_struct_info::analyse but
6643 extended to track field offsets.
6644 (riscv_call_arg_struct): Update the struct folding special cases
6645 to handle cases where empty C++ structs, which are non-zero
6646 length, are found.
6647 (riscv_arg_location): Initialise the length of each location, a
6648 non-zero length now indicates the location is in use.
6649 (riscv_push_dummy_call): Allow for the first location having a
6650 non-zero offset when setting up arguments.
6651 (riscv_return_value): Likewise, but for return values.
6652
02cf60c7
TT
66532019-04-11 Tom Tromey <tromey@adacore.com>
6654
6655 * utils.c (internal_vproblem): Make "msg" const.
6656
68811f8f
AH
66572019-04-11 Alan Hayward <alan.hayward@arm.com>
6658
6659 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6660 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6661 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6662 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6663
3f52fdbc
KB
66642019-04-10 Kevin Buettner <kevinb@redhat.com>
6665
6666 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6667 function.
6668 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6669 of amd64_collect_native_gregset.
6670 (amd64_linux_nat_target::store_registers): Likewise.
6671
e9ad22ee
TT
66722019-04-10 Tom Tromey <tom@tromey.com>
6673
6674 * symtab.c (lookup_global_symbol_from_objfile)
6675 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6676 * objfiles.h (class separate_debug_iterator): New.
6677 (class separate_debug_range): New.
6678 (struct objfile) <separate_debug_objfiles>: New method.
6679 (objfile_separate_debug_iterate): Don't declare.
6680 * objfiles.c (separate_debug_iterator::operator++): Rename from
6681 objfile_separate_debug_iterate.
6682 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6683 iterator.
6684 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6685 iterator.
6686
ee371134
TT
66872019-04-10 Tom Tromey <tom@tromey.com>
6688
6689 * symfile.c (reread_symbols): Remove old comment.
6690 * objfiles.c (free_all_objfiles): Fix a typo.
6691
bf227d61
TT
66922019-04-10 Tom Tromey <tom@tromey.com>
6693
6694 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6695 * minsyms.c (lookup_minimal_symbol): Use foreach.
6696 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6697 (lookup_minimal_symbol_solib_trampoline): Likewise.
6698 * symfile.c (reread_symbols): Use foreach.
6699
8dc433a0
TT
67002019-04-09 Ivan Begert <ivanbegert@gmail.com>
6701 Tom Tromey <tromey@adacore.com>
6702
6703 PR rust/24414:
6704 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6705 (rust_lex_int_test): Change "value" to be LONGEST.
6706 (rust_lex_tests): Add test for long integer literal.
6707
9ab8741a
TT
67082019-04-09 Tom Tromey <tromey@adacore.com>
6709
6710 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6711 to bool.
6712 (extended_remote_target::attach): Update.
6713 (remote_target::remote_notice_new_inferior): Update.
6714 (remote_target::add_current_inferior_and_thread): Update.
6715 * inferior.c (exit_inferior_1): Use "false".
6716 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6717
e242fd12
SM
67182019-04-09 Simon Marchi <simon.marchi@efficios.com>
6719
9ca1957f 6720 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
6721 the "start" command.
6722
2b0c8b01
KB
67232019-04-08 Kevin Buettner <kevinb@redhat.com>
6724
6725 * python/py-inferior.c (infpy_thread_from_thread_handle):
6726 Adjust comments to reflect renaming of thread_from_thread_handle
6727 to thread_from_handle. Adjust keywords. Fix type error message.
6728 (inferior_object_methods): Add thread_from_handle. Retain
6729 thread_from_thread_handle, but mark it as deprecated.
6730
50a82723
KB
67312019-04-08 Kevin Buettner <kevinb@redhat.com>
6732
6733 * gdbthread.h (find_thread_by_handle): Revise declaration.
6734 * thread.c (find_thread_by_handle): Likewise. Adjust
6735 implementation too.
6736 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6737 support for buffer objects as handles.
6738
cf63b016
KB
67392019-04-08 Kevin Buettner <kevinb@redhat.com>
6740
6741 * python/py-infthread.c (thpy_thread_handle): New function.
6742 (thread_object_methods): Register thpy_thread_handle.
6743
3d6c6204
KB
67442019-04-08 Kevin Buettner <kevinb@redhat.com>
6745
6746 * gdbthread.h (thread_to_thread_handle): Declare.
6747 * thread.c (gdbtypes.h): Include.
6748 (thread_to_thread_handle): New function.
6749
6750 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6751 (target_thread_info_to_thread_handle): Declare.
6752 * target.c (target_thread_info_to_thread_handle): New function.
6753 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6754 * target-delegates.c: Regenerate.
6755
6756 * linux-thread-db.c (class thread_db_target): Add method
6757 thread_info_to_thread_handle.
6758 (thread_db_target::thread_info_to_thread_handle): Define.
6759 * remote.c (class remote_target): Add new method
6760 thread_info_to_thread_handle.
6761 (remote_target::thread_info_to_thread_handle): Define.
6762
56be6ea8
PA
67632019-04-08 Pedro Alves <palves@redhat.com>
6764
6765 * common/common-exceptions.c (throw_exception): Don't create
6766 named object to throw; throw directly.
6767 (throw_it): Likewise. Don't initialize gdb_exception::message
6768 here, with new; pass FMT and AP to the ctor instead.
6769 * common/common-exceptions.h: Include <string>.
6770 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6771 const char *, va_list)): New ctor. Use std::make_shared.
6772 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6773 errors)): Delete.
6774 (gdb_exception_error::gdb_exception_error(enum errors, const char
6775 *, va_list)): New.
6776 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6777 Add assertion.
6778 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6779 errors)): Delete.
6780 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6781 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6782 Add assertion.
6783
eedc3f4f
TT
67842019-04-08 Tom Tromey <tom@tromey.com>
6785
6786 * valops.c (value_rtti_indirect_type): Replace throw_exception
6787 with throw.
6788 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6789 with throw.
6790 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6791 throw.
6792 * target.c (target_translate_tls_address): Replace throw_exception
6793 with throw.
6794 * stack.c (frame_apply_command_count): Replace throw_exception
6795 with throw.
6796 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6797 throw.
6798 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6799 with throw.
6800 * rs6000-tdep.c (rs6000_frame_cache)
6801 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6802 * remote.c: Replace throw_exception with throw.
6803 * record-full.c (record_full_message, record_full_wait_1)
6804 (record_full_restore): Replace throw_exception with throw.
6805 * record-btrace.c:
6806 (get_thread_current_frame_id, record_btrace_start_replaying)
6807 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6808 (cmd_record_btrace_start): Replace throw_exception with throw.
6809 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6810 throw.
6811 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6812 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6813 * linespec.c:
6814 (find_linespec_symbols): Replace throw_exception with throw.
6815 * infrun.c (displaced_step_prepare, resume): Replace
6816 throw_exception with throw.
6817 * infcmd.c (post_create_inferior): Replace throw_exception with
6818 throw.
6819 * inf-loop.c (inferior_event_handler): Replace throw_exception
6820 with throw.
6821 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6822 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6823 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6824 (get_prev_frame_always, get_frame_pc_if_available)
6825 (get_frame_address_in_block_if_available, get_frame_language):
6826 Replace throw_exception with throw.
6827 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6828 throw_exception with throw.
6829 * eval.c (fetch_subexp_value, evaluate_var_value)
6830 (evaluate_funcall, evaluate_subexp_standard): Replace
6831 throw_exception with throw.
6832 * dwarf2loc.c (call_site_find_chain)
6833 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6834 Replace throw_exception with throw.
6835 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6836 with throw.
6837 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6838 throw.
6839 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6840 * completer.c (complete_line_internal): Replace throw_exception
6841 with throw.
6842 * compile/compile-object-run.c (compile_object_run): Replace
6843 throw_exception with throw.
6844 * cli/cli-script.c (process_next_line): Replace throw_exception
6845 with throw.
6846 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6847 (btrace_enable, btrace_maint_update_pt_packets): Replace
6848 throw_exception with throw.
6849 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6850 throw_exception with throw.
6851 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6852 throw_exception with throw.
6853 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6854 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6855 * aarch64-tdep.c (aarch64_make_prologue_cache)
6856 (aarch64_make_stub_cache): Replace throw_exception with throw.
6857
26003a20
TT
68582019-04-08 Tom Tromey <tom@tromey.com>
6859
6860 * common/common-exceptions.c (throw_exception): Rename from
6861 throw_exception_cxx. Remove old copy. Make argument const.
6862 (throw_it): Create and throw exception objects directly.
6863 * common/common-exceptions.h (throw_exception): Make argument
6864 const.
6865 (struct gdb_exception_error): Add constructor.
6866 (struct gdb_exception_quit): Add constructor.
6867
d272eb37
TT
68682019-04-08 Tom Tromey <tom@tromey.com>
6869
6870 * common/common-exceptions.h (exception_rethrow): Don't declare.
6871 (TRY_SJLJ): Update comment.
6872 (TRY, CATCH, END_CATCH): Remove.
6873 * common/common-exceptions.c (exception_rethrow): Remove.
6874
230d2906
TT
68752019-04-08 Tom Tromey <tom@tromey.com>
6876
6877 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6878 Remove.
6879 (gdb_exception_error): Rename from
6880 gdb_exception_RETURN_MASK_ERROR.
6881 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6882 (gdb_quit_bad_alloc): Update.
6883 * aarch64-tdep.c: Update.
6884 * ada-lang.c: Update.
6885 * ada-typeprint.c: Update.
6886 * ada-valprint.c: Update.
6887 * amd64-tdep.c: Update.
6888 * arch-utils.c: Update.
6889 * break-catch-throw.c: Update.
6890 * breakpoint.c: Update.
6891 * btrace.c: Update.
6892 * c-varobj.c: Update.
6893 * cli/cli-cmds.c: Update.
6894 * cli/cli-interp.c: Update.
6895 * cli/cli-script.c: Update.
6896 * common/common-exceptions.c: Update.
6897 * common/new-op.c: Update.
6898 * common/selftest.c: Update.
6899 * compile/compile-c-symbols.c: Update.
6900 * compile/compile-cplus-symbols.c: Update.
6901 * compile/compile-object-load.c: Update.
6902 * compile/compile-object-run.c: Update.
6903 * completer.c: Update.
6904 * corelow.c: Update.
6905 * cp-abi.c: Update.
6906 * cp-support.c: Update.
6907 * cp-valprint.c: Update.
6908 * darwin-nat.c: Update.
6909 * disasm-selftests.c: Update.
6910 * dtrace-probe.c: Update.
6911 * dwarf-index-cache.c: Update.
6912 * dwarf-index-write.c: Update.
6913 * dwarf2-frame-tailcall.c: Update.
6914 * dwarf2-frame.c: Update.
6915 * dwarf2loc.c: Update.
6916 * dwarf2read.c: Update.
6917 * eval.c: Update.
6918 * event-loop.c: Update.
6919 * event-top.c: Update.
6920 * exec.c: Update.
6921 * f-valprint.c: Update.
6922 * fbsd-tdep.c: Update.
6923 * frame-unwind.c: Update.
6924 * frame.c: Update.
6925 * gdbtypes.c: Update.
6926 * gnu-v3-abi.c: Update.
6927 * guile/guile-internal.h: Update.
6928 * guile/scm-block.c: Update.
6929 * guile/scm-breakpoint.c: Update.
6930 * guile/scm-cmd.c: Update.
6931 * guile/scm-disasm.c: Update.
6932 * guile/scm-frame.c: Update.
6933 * guile/scm-lazy-string.c: Update.
6934 * guile/scm-math.c: Update.
6935 * guile/scm-param.c: Update.
6936 * guile/scm-ports.c: Update.
6937 * guile/scm-pretty-print.c: Update.
6938 * guile/scm-symbol.c: Update.
6939 * guile/scm-symtab.c: Update.
6940 * guile/scm-type.c: Update.
6941 * guile/scm-value.c: Update.
6942 * i386-linux-tdep.c: Update.
6943 * i386-tdep.c: Update.
6944 * inf-loop.c: Update.
6945 * infcall.c: Update.
6946 * infcmd.c: Update.
6947 * infrun.c: Update.
6948 * jit.c: Update.
6949 * language.c: Update.
6950 * linespec.c: Update.
6951 * linux-fork.c: Update.
6952 * linux-nat.c: Update.
6953 * linux-tdep.c: Update.
6954 * linux-thread-db.c: Update.
6955 * main.c: Update.
6956 * mi/mi-cmd-break.c: Update.
6957 * mi/mi-cmd-stack.c: Update.
6958 * mi/mi-interp.c: Update.
6959 * mi/mi-main.c: Update.
6960 * objc-lang.c: Update.
6961 * p-valprint.c: Update.
6962 * parse.c: Update.
6963 * ppc-linux-tdep.c: Update.
6964 * printcmd.c: Update.
6965 * python/py-arch.c: Update.
6966 * python/py-breakpoint.c: Update.
6967 * python/py-cmd.c: Update.
6968 * python/py-finishbreakpoint.c: Update.
6969 * python/py-frame.c: Update.
6970 * python/py-framefilter.c: Update.
6971 * python/py-gdb-readline.c: Update.
6972 * python/py-inferior.c: Update.
6973 * python/py-infthread.c: Update.
6974 * python/py-lazy-string.c: Update.
6975 * python/py-linetable.c: Update.
6976 * python/py-objfile.c: Update.
6977 * python/py-param.c: Update.
6978 * python/py-prettyprint.c: Update.
6979 * python/py-progspace.c: Update.
6980 * python/py-record-btrace.c: Update.
6981 * python/py-record.c: Update.
6982 * python/py-symbol.c: Update.
6983 * python/py-type.c: Update.
6984 * python/py-unwind.c: Update.
6985 * python/py-utils.c: Update.
6986 * python/py-value.c: Update.
6987 * python/python.c: Update.
6988 * record-btrace.c: Update.
6989 * record-full.c: Update.
6990 * remote-fileio.c: Update.
6991 * remote.c: Update.
6992 * riscv-tdep.c: Update.
6993 * rs6000-aix-tdep.c: Update.
6994 * rs6000-tdep.c: Update.
6995 * rust-exp.y: Update.
6996 * rust-lang.c: Update.
6997 * s390-tdep.c: Update.
6998 * selftest-arch.c: Update.
6999 * solib-dsbt.c: Update.
7000 * solib-frv.c: Update.
7001 * solib-spu.c: Update.
7002 * solib-svr4.c: Update.
7003 * solib.c: Update.
7004 * sparc64-linux-tdep.c: Update.
7005 * stack.c: Update.
7006 * symfile-mem.c: Update.
7007 * symmisc.c: Update.
7008 * target.c: Update.
7009 * thread.c: Update.
7010 * top.c: Update.
7011 * tracefile-tfile.c: Update.
7012 * tui/tui.c: Update.
7013 * typeprint.c: Update.
7014 * unittests/cli-utils-selftests.c: Update.
7015 * unittests/parse-connection-spec-selftests.c: Update.
7016 * valops.c: Update.
7017 * valprint.c: Update.
7018 * value.c: Update.
7019 * varobj.c: Update.
7020 * windows-nat.c: Update.
7021 * x86-linux-nat.c: Update.
7022 * xml-support.c: Update.
7023
a70b8144
TT
70242019-04-08 Tom Tromey <tom@tromey.com>
7025
7026 * xml-support.c: Use C++ exception handling.
7027 * x86-linux-nat.c: Use C++ exception handling.
7028 * windows-nat.c: Use C++ exception handling.
7029 * varobj.c: Use C++ exception handling.
7030 * value.c: Use C++ exception handling.
7031 * valprint.c: Use C++ exception handling.
7032 * valops.c: Use C++ exception handling.
7033 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7034 handling.
7035 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7036 * typeprint.c: Use C++ exception handling.
7037 * tui/tui.c: Use C++ exception handling.
7038 * tracefile-tfile.c: Use C++ exception handling.
7039 * top.c: Use C++ exception handling.
7040 * thread.c: Use C++ exception handling.
7041 * target.c: Use C++ exception handling.
7042 * symmisc.c: Use C++ exception handling.
7043 * symfile-mem.c: Use C++ exception handling.
7044 * stack.c: Use C++ exception handling.
7045 * sparc64-linux-tdep.c: Use C++ exception handling.
7046 * solib.c: Use C++ exception handling.
7047 * solib-svr4.c: Use C++ exception handling.
7048 * solib-spu.c: Use C++ exception handling.
7049 * solib-frv.c: Use C++ exception handling.
7050 * solib-dsbt.c: Use C++ exception handling.
7051 * selftest-arch.c: Use C++ exception handling.
7052 * s390-tdep.c: Use C++ exception handling.
7053 * rust-lang.c: Use C++ exception handling.
7054 * rust-exp.y: Use C++ exception handling.
7055 * rs6000-tdep.c: Use C++ exception handling.
7056 * rs6000-aix-tdep.c: Use C++ exception handling.
7057 * riscv-tdep.c: Use C++ exception handling.
7058 * remote.c: Use C++ exception handling.
7059 * remote-fileio.c: Use C++ exception handling.
7060 * record-full.c: Use C++ exception handling.
7061 * record-btrace.c: Use C++ exception handling.
7062 * python/python.c: Use C++ exception handling.
7063 * python/py-value.c: Use C++ exception handling.
7064 * python/py-utils.c: Use C++ exception handling.
7065 * python/py-unwind.c: Use C++ exception handling.
7066 * python/py-type.c: Use C++ exception handling.
7067 * python/py-symbol.c: Use C++ exception handling.
7068 * python/py-record.c: Use C++ exception handling.
7069 * python/py-record-btrace.c: Use C++ exception handling.
7070 * python/py-progspace.c: Use C++ exception handling.
7071 * python/py-prettyprint.c: Use C++ exception handling.
7072 * python/py-param.c: Use C++ exception handling.
7073 * python/py-objfile.c: Use C++ exception handling.
7074 * python/py-linetable.c: Use C++ exception handling.
7075 * python/py-lazy-string.c: Use C++ exception handling.
7076 * python/py-infthread.c: Use C++ exception handling.
7077 * python/py-inferior.c: Use C++ exception handling.
7078 * python/py-gdb-readline.c: Use C++ exception handling.
7079 * python/py-framefilter.c: Use C++ exception handling.
7080 * python/py-frame.c: Use C++ exception handling.
7081 * python/py-finishbreakpoint.c: Use C++ exception handling.
7082 * python/py-cmd.c: Use C++ exception handling.
7083 * python/py-breakpoint.c: Use C++ exception handling.
7084 * python/py-arch.c: Use C++ exception handling.
7085 * printcmd.c: Use C++ exception handling.
7086 * ppc-linux-tdep.c: Use C++ exception handling.
7087 * parse.c: Use C++ exception handling.
7088 * p-valprint.c: Use C++ exception handling.
7089 * objc-lang.c: Use C++ exception handling.
7090 * mi/mi-main.c: Use C++ exception handling.
7091 * mi/mi-interp.c: Use C++ exception handling.
7092 * mi/mi-cmd-stack.c: Use C++ exception handling.
7093 * mi/mi-cmd-break.c: Use C++ exception handling.
7094 * main.c: Use C++ exception handling.
7095 * linux-thread-db.c: Use C++ exception handling.
7096 * linux-tdep.c: Use C++ exception handling.
7097 * linux-nat.c: Use C++ exception handling.
7098 * linux-fork.c: Use C++ exception handling.
7099 * linespec.c: Use C++ exception handling.
7100 * language.c: Use C++ exception handling.
7101 * jit.c: Use C++ exception handling.
7102 * infrun.c: Use C++ exception handling.
7103 * infcmd.c: Use C++ exception handling.
7104 * infcall.c: Use C++ exception handling.
7105 * inf-loop.c: Use C++ exception handling.
7106 * i386-tdep.c: Use C++ exception handling.
7107 * i386-linux-tdep.c: Use C++ exception handling.
7108 * guile/scm-value.c: Use C++ exception handling.
7109 * guile/scm-type.c: Use C++ exception handling.
7110 * guile/scm-symtab.c: Use C++ exception handling.
7111 * guile/scm-symbol.c: Use C++ exception handling.
7112 * guile/scm-pretty-print.c: Use C++ exception handling.
7113 * guile/scm-ports.c: Use C++ exception handling.
7114 * guile/scm-param.c: Use C++ exception handling.
7115 * guile/scm-math.c: Use C++ exception handling.
7116 * guile/scm-lazy-string.c: Use C++ exception handling.
7117 * guile/scm-frame.c: Use C++ exception handling.
7118 * guile/scm-disasm.c: Use C++ exception handling.
7119 * guile/scm-cmd.c: Use C++ exception handling.
7120 * guile/scm-breakpoint.c: Use C++ exception handling.
7121 * guile/scm-block.c: Use C++ exception handling.
7122 * guile/guile-internal.h: Use C++ exception handling.
7123 * gnu-v3-abi.c: Use C++ exception handling.
7124 * gdbtypes.c: Use C++ exception handling.
7125 * frame.c: Use C++ exception handling.
7126 * frame-unwind.c: Use C++ exception handling.
7127 * fbsd-tdep.c: Use C++ exception handling.
7128 * f-valprint.c: Use C++ exception handling.
7129 * exec.c: Use C++ exception handling.
7130 * event-top.c: Use C++ exception handling.
7131 * event-loop.c: Use C++ exception handling.
7132 * eval.c: Use C++ exception handling.
7133 * dwarf2read.c: Use C++ exception handling.
7134 * dwarf2loc.c: Use C++ exception handling.
7135 * dwarf2-frame.c: Use C++ exception handling.
7136 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7137 * dwarf-index-write.c: Use C++ exception handling.
7138 * dwarf-index-cache.c: Use C++ exception handling.
7139 * dtrace-probe.c: Use C++ exception handling.
7140 * disasm-selftests.c: Use C++ exception handling.
7141 * darwin-nat.c: Use C++ exception handling.
7142 * cp-valprint.c: Use C++ exception handling.
7143 * cp-support.c: Use C++ exception handling.
7144 * cp-abi.c: Use C++ exception handling.
7145 * corelow.c: Use C++ exception handling.
7146 * completer.c: Use C++ exception handling.
7147 * compile/compile-object-run.c: Use C++ exception handling.
7148 * compile/compile-object-load.c: Use C++ exception handling.
7149 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7150 * compile/compile-c-symbols.c: Use C++ exception handling.
7151 * common/selftest.c: Use C++ exception handling.
7152 * common/new-op.c: Use C++ exception handling.
7153 * cli/cli-script.c: Use C++ exception handling.
7154 * cli/cli-interp.c: Use C++ exception handling.
7155 * cli/cli-cmds.c: Use C++ exception handling.
7156 * c-varobj.c: Use C++ exception handling.
7157 * btrace.c: Use C++ exception handling.
7158 * breakpoint.c: Use C++ exception handling.
7159 * break-catch-throw.c: Use C++ exception handling.
7160 * arch-utils.c: Use C++ exception handling.
7161 * amd64-tdep.c: Use C++ exception handling.
7162 * ada-valprint.c: Use C++ exception handling.
7163 * ada-typeprint.c: Use C++ exception handling.
7164 * ada-lang.c: Use C++ exception handling.
7165 * aarch64-tdep.c: Use C++ exception handling.
7166
3d6e9d23
TT
71672019-04-08 Tom Tromey <tom@tromey.com>
7168
7169 * xml-support.c (gdb_xml_parser::parse): Update.
7170 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7171 * value.c (show_convenience): Update.
7172 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7173 (test_parse_flags_qcs): Update.
7174 * thread.c (thr_try_catch_cmd): Update.
7175 * target.c (target_translate_tls_address): Update.
7176 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7177 (info_frame_command_core, frame_apply_command_count): Update.
7178 * rust-exp.y (rust_lex_exception_test): Update.
7179 * riscv-tdep.c (riscv_print_one_register_info): Update.
7180 * remote.c (remote_target::enable_btrace): Update.
7181 * record-btrace.c (record_btrace_enable_warn): Update.
7182 * python/py-utils.c (gdbpy_convert_exception): Update.
7183 * printcmd.c (do_one_display, print_variable_and_value): Update.
7184 * mi/mi-main.c (mi_print_exception): Update.
7185 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7186 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7187 * linux-nat.c (linux_nat_target::attach): Update.
7188 * linux-fork.c (class scoped_switch_fork_info): Update.
7189 * infrun.c (displaced_step_prepare): Update.
7190 * infcall.c (call_function_by_hand_dummy): Update.
7191 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7192 * gnu-v3-abi.c (print_one_vtable): Update.
7193 * frame.c (get_prev_frame_always): Update.
7194 * f-valprint.c (info_common_command_for_block): Update.
7195 * exec.c (try_open_exec_file): Update.
7196 * exceptions.c (print_exception, exception_print)
7197 (exception_fprintf, exception_print_same): Update.
7198 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7199 * dwarf-index-cache.c (index_cache::store)
7200 (index_cache::lookup_gdb_index): Update.
7201 * darwin-nat.c (maybe_cache_shell): Update.
7202 * cp-valprint.c (cp_print_value_fields): Update.
7203 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7204 (gcc_cplus_symbol_address): Update.
7205 * compile/compile-c-symbols.c (gcc_convert_symbol)
7206 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7207 * common/selftest.c: Update.
7208 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7209 a std::string.
7210 (exception_try_scope_entry, exception_try_scope_exit): Don't
7211 declare.
7212 (struct exception_try_scope): Remove.
7213 (TRY): Don't use exception_try_scope.
7214 (struct gdb_exception): Add constructor, operator=.
7215 <what>: New method.
7216 (struct gdb_exception_RETURN_MASK_ALL)
7217 (struct gdb_exception_RETURN_MASK_ERROR)
7218 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7219 (struct gdb_quit_bad_alloc): Update.
7220 * common/common-exceptions.c (exception_none): Change
7221 initializer.
7222 (struct catcher) <state, exception>: Initialize inline.
7223 <prev>: Remove member.
7224 (current_catcher): Remove.
7225 (catchers): New global.
7226 (exceptions_state_mc_init): Simplify.
7227 (catcher_pop): Remove.
7228 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7229 (try_scope_depth, exception_try_scope_entry)
7230 (exception_try_scope_exit): Remove.
7231 (throw_exception_sjlj): Update.
7232 (exception_messages, exception_messages_size): Remove.
7233 (throw_it): Simplify.
7234 (gdb_exception_sliced_copy): Remove.
7235 (throw_exception_cxx): Update.
7236 * cli/cli-script.c (script_from_file): Update.
7237 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7238 Update.
7239 * ada-valprint.c (ada_val_print): Update.
7240 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7241 (create_excep_cond_exprs): Update.
7242
c5c10118
TT
72432019-04-08 Tom Tromey <tom@tromey.com>
7244
7245 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7246 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7247 (TRY, CATCH, END_CATCH): Remove some definitions.
7248 * common/common-exceptions.c: Don't use GDB_XCPT.
7249 (catcher_list_size): Remove.
7250 (throw_exception, throw_it): Simplify.
7251
4de283e4
TT
72522019-04-05 Tom Tromey <tom@tromey.com>
7253
7254 Revert the header-sorting patch.
7255 * ft32-tdep.c: Revert.
7256 * frv-tdep.c: Revert.
7257 * frv-linux-tdep.c: Revert.
7258 * frame.c: Revert.
7259 * frame-unwind.c: Revert.
7260 * frame-base.c: Revert.
7261 * fork-child.c: Revert.
7262 * findvar.c: Revert.
7263 * findcmd.c: Revert.
7264 * filesystem.c: Revert.
7265 * filename-seen-cache.h: Revert.
7266 * filename-seen-cache.c: Revert.
7267 * fbsd-tdep.c: Revert.
7268 * fbsd-nat.h: Revert.
7269 * fbsd-nat.c: Revert.
7270 * f-valprint.c: Revert.
7271 * f-typeprint.c: Revert.
7272 * f-lang.c: Revert.
7273 * extension.h: Revert.
7274 * extension.c: Revert.
7275 * extension-priv.h: Revert.
7276 * expprint.c: Revert.
7277 * exec.h: Revert.
7278 * exec.c: Revert.
7279 * exceptions.c: Revert.
7280 * event-top.c: Revert.
7281 * event-loop.c: Revert.
7282 * eval.c: Revert.
7283 * elfread.c: Revert.
7284 * dwarf2read.h: Revert.
7285 * dwarf2read.c: Revert.
7286 * dwarf2loc.c: Revert.
7287 * dwarf2expr.h: Revert.
7288 * dwarf2expr.c: Revert.
7289 * dwarf2-frame.c: Revert.
7290 * dwarf2-frame-tailcall.c: Revert.
7291 * dwarf-index-write.h: Revert.
7292 * dwarf-index-write.c: Revert.
7293 * dwarf-index-common.c: Revert.
7294 * dwarf-index-cache.h: Revert.
7295 * dwarf-index-cache.c: Revert.
7296 * dummy-frame.c: Revert.
7297 * dtrace-probe.c: Revert.
7298 * disasm.h: Revert.
7299 * disasm.c: Revert.
7300 * disasm-selftests.c: Revert.
7301 * dictionary.c: Revert.
7302 * dicos-tdep.c: Revert.
7303 * demangle.c: Revert.
7304 * dcache.h: Revert.
7305 * dcache.c: Revert.
7306 * darwin-nat.h: Revert.
7307 * darwin-nat.c: Revert.
7308 * darwin-nat-info.c: Revert.
7309 * d-valprint.c: Revert.
7310 * d-namespace.c: Revert.
7311 * d-lang.c: Revert.
7312 * ctf.c: Revert.
7313 * csky-tdep.c: Revert.
7314 * csky-linux-tdep.c: Revert.
7315 * cris-tdep.c: Revert.
7316 * cris-linux-tdep.c: Revert.
7317 * cp-valprint.c: Revert.
7318 * cp-support.c: Revert.
7319 * cp-namespace.c: Revert.
7320 * cp-abi.c: Revert.
7321 * corelow.c: Revert.
7322 * corefile.c: Revert.
7323 * continuations.c: Revert.
7324 * completer.h: Revert.
7325 * completer.c: Revert.
7326 * complaints.c: Revert.
7327 * coffread.c: Revert.
7328 * coff-pe-read.c: Revert.
7329 * cli-out.h: Revert.
7330 * cli-out.c: Revert.
7331 * charset.c: Revert.
7332 * c-varobj.c: Revert.
7333 * c-valprint.c: Revert.
7334 * c-typeprint.c: Revert.
7335 * c-lang.c: Revert.
7336 * buildsym.c: Revert.
7337 * buildsym-legacy.c: Revert.
7338 * build-id.h: Revert.
7339 * build-id.c: Revert.
7340 * btrace.c: Revert.
7341 * bsd-uthread.c: Revert.
7342 * breakpoint.h: Revert.
7343 * breakpoint.c: Revert.
7344 * break-catch-throw.c: Revert.
7345 * break-catch-syscall.c: Revert.
7346 * break-catch-sig.c: Revert.
7347 * blockframe.c: Revert.
7348 * block.c: Revert.
7349 * bfin-tdep.c: Revert.
7350 * bfin-linux-tdep.c: Revert.
7351 * bfd-target.c: Revert.
7352 * bcache.c: Revert.
7353 * ax-general.c: Revert.
7354 * ax-gdb.h: Revert.
7355 * ax-gdb.c: Revert.
7356 * avr-tdep.c: Revert.
7357 * auxv.c: Revert.
7358 * auto-load.c: Revert.
7359 * arm-wince-tdep.c: Revert.
7360 * arm-tdep.c: Revert.
7361 * arm-symbian-tdep.c: Revert.
7362 * arm-pikeos-tdep.c: Revert.
7363 * arm-obsd-tdep.c: Revert.
7364 * arm-nbsd-tdep.c: Revert.
7365 * arm-nbsd-nat.c: Revert.
7366 * arm-linux-tdep.c: Revert.
7367 * arm-linux-nat.c: Revert.
7368 * arm-fbsd-tdep.c: Revert.
7369 * arm-fbsd-nat.c: Revert.
7370 * arm-bsd-tdep.c: Revert.
7371 * arch-utils.c: Revert.
7372 * arc-tdep.c: Revert.
7373 * arc-newlib-tdep.c: Revert.
7374 * annotate.h: Revert.
7375 * annotate.c: Revert.
7376 * amd64-windows-tdep.c: Revert.
7377 * amd64-windows-nat.c: Revert.
7378 * amd64-tdep.c: Revert.
7379 * amd64-sol2-tdep.c: Revert.
7380 * amd64-obsd-tdep.c: Revert.
7381 * amd64-obsd-nat.c: Revert.
7382 * amd64-nbsd-tdep.c: Revert.
7383 * amd64-nbsd-nat.c: Revert.
7384 * amd64-nat.c: Revert.
7385 * amd64-linux-tdep.c: Revert.
7386 * amd64-linux-nat.c: Revert.
7387 * amd64-fbsd-tdep.c: Revert.
7388 * amd64-fbsd-nat.c: Revert.
7389 * amd64-dicos-tdep.c: Revert.
7390 * amd64-darwin-tdep.c: Revert.
7391 * amd64-bsd-nat.c: Revert.
7392 * alpha-tdep.c: Revert.
7393 * alpha-obsd-tdep.c: Revert.
7394 * alpha-nbsd-tdep.c: Revert.
7395 * alpha-mdebug-tdep.c: Revert.
7396 * alpha-linux-tdep.c: Revert.
7397 * alpha-linux-nat.c: Revert.
7398 * alpha-bsd-tdep.c: Revert.
7399 * alpha-bsd-nat.c: Revert.
7400 * aix-thread.c: Revert.
7401 * agent.c: Revert.
7402 * addrmap.c: Revert.
7403 * ada-varobj.c: Revert.
7404 * ada-valprint.c: Revert.
7405 * ada-typeprint.c: Revert.
7406 * ada-tasks.c: Revert.
7407 * ada-lang.c: Revert.
7408 * aarch64-tdep.c: Revert.
7409 * aarch64-ravenscar-thread.c: Revert.
7410 * aarch64-newlib-tdep.c: Revert.
7411 * aarch64-linux-tdep.c: Revert.
7412 * aarch64-linux-nat.c: Revert.
7413 * aarch64-fbsd-tdep.c: Revert.
7414 * aarch64-fbsd-nat.c: Revert.
7415 * aarch32-linux-nat.c: Revert.
7416
d55e5aa6
TT
74172019-04-05 Tom Tromey <tom@tromey.com>
7418
7419 * ft32-tdep.c: Sort headers.
7420 * frv-tdep.c: Sort headers.
7421 * frv-linux-tdep.c: Sort headers.
7422 * frame.c: Sort headers.
7423 * frame-unwind.c: Sort headers.
7424 * frame-base.c: Sort headers.
7425 * fork-child.c: Sort headers.
7426 * findvar.c: Sort headers.
7427 * findcmd.c: Sort headers.
7428 * filesystem.c: Sort headers.
7429 * filename-seen-cache.h: Sort headers.
7430 * filename-seen-cache.c: Sort headers.
7431 * fbsd-tdep.c: Sort headers.
7432 * fbsd-nat.h: Sort headers.
7433 * fbsd-nat.c: Sort headers.
7434 * f-valprint.c: Sort headers.
7435 * f-typeprint.c: Sort headers.
7436 * f-lang.c: Sort headers.
7437 * extension.h: Sort headers.
7438 * extension.c: Sort headers.
7439 * extension-priv.h: Sort headers.
7440 * expprint.c: Sort headers.
7441 * exec.h: Sort headers.
7442 * exec.c: Sort headers.
7443 * exceptions.c: Sort headers.
7444 * event-top.c: Sort headers.
7445 * event-loop.c: Sort headers.
7446 * eval.c: Sort headers.
7447 * elfread.c: Sort headers.
7448 * dwarf2read.h: Sort headers.
7449 * dwarf2read.c: Sort headers.
7450 * dwarf2loc.c: Sort headers.
7451 * dwarf2expr.h: Sort headers.
7452 * dwarf2expr.c: Sort headers.
7453 * dwarf2-frame.c: Sort headers.
7454 * dwarf2-frame-tailcall.c: Sort headers.
7455 * dwarf-index-write.h: Sort headers.
7456 * dwarf-index-write.c: Sort headers.
7457 * dwarf-index-common.c: Sort headers.
7458 * dwarf-index-cache.h: Sort headers.
7459 * dwarf-index-cache.c: Sort headers.
7460 * dummy-frame.c: Sort headers.
7461 * dtrace-probe.c: Sort headers.
7462 * disasm.h: Sort headers.
7463 * disasm.c: Sort headers.
7464 * disasm-selftests.c: Sort headers.
7465 * dictionary.c: Sort headers.
7466 * dicos-tdep.c: Sort headers.
7467 * demangle.c: Sort headers.
7468 * dcache.h: Sort headers.
7469 * dcache.c: Sort headers.
7470 * darwin-nat.h: Sort headers.
7471 * darwin-nat.c: Sort headers.
7472 * darwin-nat-info.c: Sort headers.
7473 * d-valprint.c: Sort headers.
7474 * d-namespace.c: Sort headers.
7475 * d-lang.c: Sort headers.
7476 * ctf.c: Sort headers.
7477 * csky-tdep.c: Sort headers.
7478 * csky-linux-tdep.c: Sort headers.
7479 * cris-tdep.c: Sort headers.
7480 * cris-linux-tdep.c: Sort headers.
7481 * cp-valprint.c: Sort headers.
7482 * cp-support.c: Sort headers.
7483 * cp-namespace.c: Sort headers.
7484 * cp-abi.c: Sort headers.
7485 * corelow.c: Sort headers.
7486 * corefile.c: Sort headers.
7487 * continuations.c: Sort headers.
7488 * completer.h: Sort headers.
7489 * completer.c: Sort headers.
7490 * complaints.c: Sort headers.
7491 * coffread.c: Sort headers.
7492 * coff-pe-read.c: Sort headers.
7493 * cli-out.h: Sort headers.
7494 * cli-out.c: Sort headers.
7495 * charset.c: Sort headers.
7496 * c-varobj.c: Sort headers.
7497 * c-valprint.c: Sort headers.
7498 * c-typeprint.c: Sort headers.
7499 * c-lang.c: Sort headers.
7500 * buildsym.c: Sort headers.
7501 * buildsym-legacy.c: Sort headers.
7502 * build-id.h: Sort headers.
7503 * build-id.c: Sort headers.
7504 * btrace.c: Sort headers.
7505 * bsd-uthread.c: Sort headers.
7506 * breakpoint.h: Sort headers.
7507 * breakpoint.c: Sort headers.
7508 * break-catch-throw.c: Sort headers.
7509 * break-catch-syscall.c: Sort headers.
7510 * break-catch-sig.c: Sort headers.
7511 * blockframe.c: Sort headers.
7512 * block.c: Sort headers.
7513 * bfin-tdep.c: Sort headers.
7514 * bfin-linux-tdep.c: Sort headers.
7515 * bfd-target.c: Sort headers.
7516 * bcache.c: Sort headers.
7517 * ax-general.c: Sort headers.
7518 * ax-gdb.h: Sort headers.
7519 * ax-gdb.c: Sort headers.
7520 * avr-tdep.c: Sort headers.
7521 * auxv.c: Sort headers.
7522 * auto-load.c: Sort headers.
7523 * arm-wince-tdep.c: Sort headers.
7524 * arm-tdep.c: Sort headers.
7525 * arm-symbian-tdep.c: Sort headers.
7526 * arm-pikeos-tdep.c: Sort headers.
7527 * arm-obsd-tdep.c: Sort headers.
7528 * arm-nbsd-tdep.c: Sort headers.
7529 * arm-nbsd-nat.c: Sort headers.
7530 * arm-linux-tdep.c: Sort headers.
7531 * arm-linux-nat.c: Sort headers.
7532 * arm-fbsd-tdep.c: Sort headers.
7533 * arm-fbsd-nat.c: Sort headers.
7534 * arm-bsd-tdep.c: Sort headers.
7535 * arch-utils.c: Sort headers.
7536 * arc-tdep.c: Sort headers.
7537 * arc-newlib-tdep.c: Sort headers.
7538 * annotate.h: Sort headers.
7539 * annotate.c: Sort headers.
7540 * amd64-windows-tdep.c: Sort headers.
7541 * amd64-windows-nat.c: Sort headers.
7542 * amd64-tdep.c: Sort headers.
7543 * amd64-sol2-tdep.c: Sort headers.
7544 * amd64-obsd-tdep.c: Sort headers.
7545 * amd64-obsd-nat.c: Sort headers.
7546 * amd64-nbsd-tdep.c: Sort headers.
7547 * amd64-nbsd-nat.c: Sort headers.
7548 * amd64-nat.c: Sort headers.
7549 * amd64-linux-tdep.c: Sort headers.
7550 * amd64-linux-nat.c: Sort headers.
7551 * amd64-fbsd-tdep.c: Sort headers.
7552 * amd64-fbsd-nat.c: Sort headers.
7553 * amd64-dicos-tdep.c: Sort headers.
7554 * amd64-darwin-tdep.c: Sort headers.
7555 * amd64-bsd-nat.c: Sort headers.
7556 * alpha-tdep.c: Sort headers.
7557 * alpha-obsd-tdep.c: Sort headers.
7558 * alpha-nbsd-tdep.c: Sort headers.
7559 * alpha-mdebug-tdep.c: Sort headers.
7560 * alpha-linux-tdep.c: Sort headers.
7561 * alpha-linux-nat.c: Sort headers.
7562 * alpha-bsd-tdep.c: Sort headers.
7563 * alpha-bsd-nat.c: Sort headers.
7564 * aix-thread.c: Sort headers.
7565 * agent.c: Sort headers.
7566 * addrmap.c: Sort headers.
7567 * ada-varobj.c: Sort headers.
7568 * ada-valprint.c: Sort headers.
7569 * ada-typeprint.c: Sort headers.
7570 * ada-tasks.c: Sort headers.
7571 * ada-lang.c: Sort headers.
7572 * aarch64-tdep.c: Sort headers.
7573 * aarch64-ravenscar-thread.c: Sort headers.
7574 * aarch64-newlib-tdep.c: Sort headers.
7575 * aarch64-linux-tdep.c: Sort headers.
7576 * aarch64-linux-nat.c: Sort headers.
7577 * aarch64-fbsd-tdep.c: Sort headers.
7578 * aarch64-fbsd-nat.c: Sort headers.
7579 * aarch32-linux-nat.c: Sort headers.
7580
699bd4cf
TT
75812019-04-04 Tom Tromey <tom@tromey.com>
7582
7583 * varobj.c (varobj_create): Update.
7584 * rust-exp.y (struct rust_parser) <update_innermost_block,
7585 lookup_symbol>: New methods.
7586 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7587 Rename.
7588 (rust_parser::rust_lookup_type)
7589 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7590 * printcmd.c (display_command, do_one_display): Update.
7591 * parser-defs.h (struct parser_state) <parser_state>: Add
7592 "tracker" parameter.
7593 (block_tracker): New member.
7594 (class innermost_block_tracker) <innermost_block_tracker>: Add
7595 "types" parameter.
7596 <reset>: Remove method.
7597 (innermost_block): Don't declare.
7598 (null_post_parser): Update.
7599 * parse.c (innermost_block): Remove global.
7600 (write_dollar_variable): Update.
7601 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7602 Remove "tracker_types" parameter.
7603 (parse_expression): Add "tracker" parameter.
7604 (parse_expression_for_completion): Update.
7605 (null_post_parser): Add "tracker" parameter.
7606 * p-exp.y: Update rules.
7607 * m2-exp.y: Update rules.
7608 * language.h (struct language_defn) <la_post_parser>: Add
7609 "tracker" parameter.
7610 * go-exp.y: Update rules.
7611 * f-exp.y: Update rules.
7612 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7613 parameter.
7614 * d-exp.y: Update rules.
7615 * c-exp.y: Update rules.
7616 * breakpoint.c (set_breakpoint_condition): Create an
7617 innermost_block_tracker.
7618 (watch_command_1): Likewise.
7619 * ada-lang.c (resolve): Add "tracker" parameter.
7620 (resolve_subexp): Likewise.
7621 * ada-exp.y (write_var_from_sym): Update.
7622
dac43e32
TT
76232019-04-04 Tom Tromey <tom@tromey.com>
7624
7625 * type-stack.h: New file.
7626 * type-stack.c: New file.
7627 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7628 type-stack.h.
7629 (insert_into_type_stack, insert_type, push_type, push_type_int)
7630 (insert_type_address_space, pop_type, pop_type_int)
7631 (pop_typelist, pop_type_stack, append_type_stack)
7632 (push_type_stack, get_type_stack, push_typelist)
7633 (follow_type_instance_flags, follow_types): Don't declare.
7634 * parse.c (type_stack): Remove global.
7635 (parse_exp_in_context): Update.
7636 (insert_into_type_stack, insert_type, push_type, push_type_int)
7637 (insert_type_address_space, pop_type, pop_type_int)
7638 (pop_typelist, pop_type_stack, append_type_stack)
7639 (push_type_stack, get_type_stack, push_typelist)
7640 (follow_type_instance_flags, follow_types): Remove (moved to
7641 type-stack.c).
7642 * f-exp.y (type_stack): New global.
7643 Update rules.
7644 (push_kind_type, f_parse): Update.
7645 * d-exp.y (type_stack): New global.
7646 Update rules.
7647 (d_parse): Update.
7648 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7649 Update rules.
7650 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7651 (HFILES_NO_SRCDIR): Add type-stack.h.
7652
2a612529
TT
76532019-04-04 Tom Tromey <tom@tromey.com>
7654
7655 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7656 (rust_parser::convert_ast_to_expression, rust_parse)
7657 (rust_lex_test_completion, rust_lex_tests): Update.
7658 * parser-defs.h (struct expr_completion_state): New.
7659 (struct parser_state) <parser_state>: Add completion parameter.
7660 <mark_struct_expression, mark_completion_tag>: New methods.
7661 <parse_completion, m_completion_state>: New members.
7662 (prefixify_expression, null_post_parser): Update.
7663 (mark_struct_expression, mark_completion_tag): Don't declare.
7664 * parse.c (parse_completion, expout_last_struct)
7665 (expout_tag_completion_type, expout_completion_name): Remove
7666 globals.
7667 (parser_state::mark_struct_expression)
7668 (parser_state::mark_completion_tag): Now methods.
7669 (prefixify_expression): Add last_struct parameter.
7670 (prefixify_subexp): Likewise.
7671 (parse_exp_1): Update.
7672 (parse_exp_in_context): Add cstate parameter. Update.
7673 (parse_expression_for_completion): Create an
7674 expr_completion_state.
7675 (null_post_parser): Add "completion" parameter.
7676 * p-exp.y: Update rules.
7677 (yylex): Update.
7678 * language.h (struct language_defn) <la_post_parser>: Add
7679 "completing" parameter.
7680 * go-exp.y: Update rules.
7681 (lex_one_token): Update.
7682 * expression.h (parse_completion): Don't declare.
7683 * d-exp.y: Update rules.
7684 (lex_one_token): Update rules.
7685 * c-exp.y: Update rules.
7686 (lex_one_token): Update.
7687 * ada-lang.c (resolve): Add "parse_completion" parameter.
7688 (resolve_subexp): Likewise.
7689 (ada_resolve_function): Likewise.
7690
43476f0b
TT
76912019-04-04 Tom Tromey <tom@tromey.com>
7692
7693 * parser-defs.h (struct parser_state) <start_arglist,
7694 end_arglist>: New methods.
7695 <arglist_len, m_funcall_chain>: New members.
7696 (arglist_len, start_arglist, end_arglist): Don't declare.
7697 * parse.c (arglist_len, funcall_chain): Remove global.
7698 (start_arglist, end_arglist): Remove functions.
7699 (parse_exp_in_context): Update.
7700 * p-exp.y: Update rules.
7701 * m2-exp.y: Update rules.
7702 * go-exp.y: Update rules.
7703 * f-exp.y: Update rules.
7704 * d-exp.y: Update rules.
7705 * c-exp.y: Update rules.
7706
5776fca3
TT
77072019-04-04 Tom Tromey <tom@tromey.com>
7708
7709 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7710 lex_operator, push_back>: New methods.
7711 Update all rules.
7712 (rust_parser::lex_hex, lex_escape): Rename and update.
7713 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7714 (rust_parser::lex_operator): Rename and update.
7715 (rust_parser::lex_number, rustyylex, rustyyerror)
7716 (rust_lex_test_init, rust_lex_test_sequence)
7717 (rust_lex_test_push_back, rust_lex_tests): Update.
7718 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7719 parameter.
7720 <lexptr, prev_lexptr>: New members.
7721 (lexptr, prev_lexptr): Don't declare.
7722 * parse.c (lexptr, prev_lexptr): Remove globals.
7723 (parse_exp_in_context): Update.
7724 * p-exp.y (yylex, yyerror): Update.
7725 * m2-exp.y (parse_number, yylex, yyerror): Update.
7726 * go-exp.y (lex_one_token, yyerror): Update.
7727 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7728 * d-exp.y (lex_one_token, yyerror): Update.
7729 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7730 (lex_one_token, yyerror): Update.
7731 * ada-lex.l (YY_INPUT): Update.
7732 (rewind_to_char): Update.
7733 * ada-exp.y (yyerror): Update.
7734
8621b685
TT
77352019-04-04 Tom Tromey <tom@tromey.com>
7736
7737 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7738 * parser-defs.h (struct parser_state) <parser_state>: Add new
7739 parameter.
7740 <comma_terminates>: New member.
7741 (comma_terminates): Don't declare global.
7742 * parse.c (comma_terminates): Remove global.
7743 (parse_exp_in_context): Update.
7744 * p-exp.y (yylex): Update.
7745 * m2-exp.y (yylex): Update.
7746 * go-exp.y (lex_one_token): Update.
7747 * f-exp.y (yylex): Update.
7748 * d-exp.y (lex_one_token): Update.
7749 * c-exp.y (lex_one_token): Update.
7750 * ada-lex.l: Update.
7751
28aaf3fd
TT
77522019-04-04 Tom Tromey <tom@tromey.com>
7753
7754 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7755 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7756 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7757 * parser-defs.h (paren_depth): Don't declare.
7758 * parse.c (paren_depth): Remove global.
7759 (parse_exp_in_context): Update.
7760 * p-exp.y (paren_depth): New global.
7761 (pascal_parse): Initialize it.
7762 * m2-exp.y (paren_depth): New global.
7763 (m2_parse): Initialize it.
7764 * go-exp.y (paren_depth): New global.
7765 (go_parse): Initialize it.
7766 * f-exp.y (paren_depth): New global.
7767 (f_parse): Initialize it.
7768 * d-exp.y (paren_depth): New global.
7769 (d_parse): Initialize it.
7770 * c-exp.y (paren_depth): New global.
7771 (c_parse): Initialize it.
7772 * ada-lex.l (paren_depth): New global.
7773 (lexer_init): Initialize it.
7774
1e58a4a4
TT
77752019-04-04 Tom Tromey <tom@tromey.com>
7776
7777 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7778 (rust_parser::convert_ast_to_type)
7779 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7780 * parser-defs.h (struct parser_state) <parser_state>: Add
7781 parameters. Initialize new members.
7782 <expression_context_block, expression_context_pc>: New members.
7783 * parse.c (expression_context_block, expression_context_pc):
7784 Remove globals.
7785 (parse_exp_in_context): Update.
7786 * p-exp.y: Update all rules.
7787 (yylex): Update.
7788 * m2-exp.y: Update all rules.
7789 (yylex): Update.
7790 * go-exp.y (yylex): Update.
7791 * f-exp.y (yylex): Update.
7792 * d-exp.y: Update all rules.
7793 (yylex): Update.
7794 * c-exp.y: Update all rules.
7795 (lex_one_token, classify_name, yylex, c_parse): Update.
7796 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7797
37eedb39
TT
77982019-04-04 Tom Tromey <tom@tromey.com>
7799
7800 * gdbarch.h, gdbarch.c: Rebuild.
7801 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7802 * stap-probe.h:
7803 (struct stap_parse_info): Replace "parser_state" with
7804 "expr_builder".
7805 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7806 (parser_state): New class.
7807 * parse.c (expr_builder): Rename.
7808 (expr_builder::release): Rename.
7809 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7810 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7811 (write_exp_elt_longcst, write_exp_elt_floatcst)
7812 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7813 (write_exp_string_vector, write_exp_bitstring)
7814 (write_exp_msymbol, mark_struct_expression)
7815 (write_dollar_variable)
7816 (insert_type_address_space, increase_expout_size): Replace
7817 "parser_state" with "expr_builder".
7818 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7819 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7820 "parser_state" with "expr_builder".
7821
73923d7e
TT
78222019-04-04 Tom Tromey <tom@tromey.com>
7823
7824 * rust-exp.y: Replace "parse_language" with method call.
7825 * p-exp.y:
7826 (yylex): Replace "parse_language" with method call.
7827 * m2-exp.y:
7828 (yylex): Replace "parse_language" with method call.
7829 * go-exp.y (classify_name): Replace "parse_language" with method
7830 call.
7831 * f-exp.y (yylex): Replace "parse_language" with method call.
7832 * d-exp.y (lex_one_token): Replace "parse_language" with method
7833 call.
7834 * c-exp.y:
7835 (lex_one_token, classify_name, yylex): Replace "parse_language"
7836 with method call.
7837 * ada-exp.y (find_primitive_type, type_char)
7838 (type_system_address): Replace "parse_language" with method call.
7839
fa9f5be6
TT
78402019-04-04 Tom Tromey <tom@tromey.com>
7841
7842 * rust-exp.y: Replace "parse_gdbarch" with method call.
7843 * parse.c (write_dollar_variable, insert_type_address_space):
7844 Replace "parse_gdbarch" with method call.
7845 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7846 call.
7847 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7848 call.
7849 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7850 "parse_gdbarch" with method call.
7851 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7852 with method call.
7853 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7854 "parse_gdbarch" with method call.
7855 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7856 "parse_gdbarch" with method call.
7857 * c-exp.y (parse_type, parse_number, classify_name): Replace
7858 "parse_gdbarch" with method call.
7859 * ada-lex.l: Replace "parse_gdbarch" with method call.
7860 * ada-exp.y (parse_type, find_primitive_type, type_char)
7861 (type_system_address): Replace "parse_gdbarch" with method call.
7862
1201a264
TT
78632019-04-04 Tom Tromey <tom@tromey.com>
7864
7865 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7866 * stap-probe.c (stap_parse_argument): Update.
7867 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7868 initial_size parameter.
7869 * rust-exp.y (rust_lex_tests): Update.
7870 * parse.c (parser_state): Update.
7871 (parse_exp_in_context): Update.
7872 * parser-defs.h (struct parser_state) <parser_state>: Remove
7873 "initial_size" parameter.
7874
e3980ce2
TT
78752019-04-04 Tom Tromey <tom@tromey.com>
7876
7877 * parser-defs.h (increase_expout_size): Don't declare.
7878 * parse.c (increase_expout_size): Now static.
7879
e9f8e3f1
TS
78802019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7881
7882 * gnu-nat.c (gnu_nat_target::wait): Fix
7883 target_waitstatus_to_string call.
7884
d7df6549
AB
78852019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7886
7887 * eval.c (evaluate_subexp_standard): Handle internal functions
7888 during Fortran function call handling.
7889
8bdc1658
AB
78902019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7891
7892 * NEWS: Mention new internal functions.
7893 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7894 (read_base_type): Use dwarf2_init_complex_target_type.
7895 * value.c (creal_internal_fn): New function.
7896 (cimag_internal_fn): New function.
7897 (_initialize_values): Register new internal functions.
7898
c29705b7
PW
78992019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7900
7901 * infrun.c (stop_all_threads): If debug_infrun, always
7902 trace the wait status after wait_one, using
7903 target_waitstatus_to_string and target_pid_to_str.
7904 (handle_inferior_event): Replace various trace of
7905 wait status kind by a single trace.
7906 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7907 wait status kind image by target_waitstatus_to_string.
7908 * target/waitstatus.c (target_waitstatus_to_string): Fix
7909 obsolete comment.
7910
05caa1d2
TT
79112019-04-01 Tom Tromey <tromey@adacore.com>
7912
7913 PR symtab/23331:
7914 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7915
9d1447e0
SDJ
79162019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7917 Pedro Alves <palves@redhat.com>
7918
7919 * top.c (quit_force): Call 'finalize_values'.
7920 * value.c (finalize_values): New function.
7921 * value.h (finalize_values): Declare.
7922
7734102d
EZ
79232019-03-30 Eli Zaretskii <eliz@gnu.org>
7924
7925 * NEWS: Announce $_gdb_major and $_gdb_minor.
7926
7927 * top.c (init_gdb_version_vars): New function.
7928 (gdb_init): Call init_gdb_version_vars.
7929
188e1fa9
TT
79302019-03-29 Tom Tromey <tromey@adacore.com>
7931
7932 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7933 help text. Remove dead code.
7934
2880242d
KS
79352019-03-29 Keith Seitz <keiths@redhat.com>
7936
7937 From Siddhesh Poyarekar:
7938 * f-lang.h (f77_get_upperbound): Return LONGEST.
7939 (f77_get_lowerbound): Likewise.
7940 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7941 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7942 print them.
7943 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7944 plongest to format print it.
7945 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7946 (f77_get_upperbound): Likewise.
7947 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7948 LOWER_BOUND to LONGEST.
7949 (f77_create_arrayprint_offset_tbl): Likewise.
7950
cc1defb1
KS
79512019-03-29 Keith Seitz <keiths@redhat.com>
7952
7953 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7954 %s/pulongest for TYPE_LENGTH instead of %d in format
7955 strings.
7956 * ada-typerint.c (ada_print_type): Likewise.
7957 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7958 * compile/compile-c-support.c (generate_register_struct): Likewise.
7959 * gdbtypes.c (recursive_dump_type): Likewise.
7960 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7961 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7962 instead of %d in format strings.
7963 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7964 to std::min to ULONGEST.
7965 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7966 instead of %d in format strings.
7967 * tracepoint.c (info_scope_command): Likewise.
7968 * typeprint.c (print_offset_data::update)
7969 (print_offset_data::finish): Likewise.
7970 * xtensa-tdep.c (xtensa_store_return_value)
7971 (xtensa_push_dummy_call): Likewise.
7972
e432ccf1
JT
79732019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7974
7975 * windows-nat.c (display_selector): Fixed format specifications
7976 for 64-bit Cygwin.
7977
65d2b333
PW
79782019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7979
7980 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7981
f489207e
SL
79822019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7983
7984 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7985 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7986 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7987 (nios2_linux_init_abi): Install it.
7988
bffa1015
AH
79892019-03-28 Alan Hayward <alan.hayward@arm.com>
7990
7991 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7992
fc96163a
AH
79932019-03-28 Alan Hayward <alan.hayward@arm.com>
7994
7995 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7996
20dc7e9b
PW
79972019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7998 Tom Tromey <tromey@adacore.com>
7999
8000 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8001
7f5331a8
JB
80022019-03-26 Joel Brobecker <brobecker@adacore.com>
8003
8004 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8005 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8006 method to compute the bounds of range types. Also print "[evaluated]"
8007 if the bounds' values come from a dynamic evaluation.
8008
18c77628
AB
80092019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8010
8011 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8012 whitespace when pretty printing is on.
8013
53c973f2
AH
80142019-03-26 Alan Hayward <alan.hayward@arm.com>
8015
e79be6e5 8016 * ppc-linux-nat.c: Add include.
53c973f2 8017
d851aa71
AH
80182019-03-26 Alan Hayward <alan.hayward@arm.com>
8019
e79be6e5 8020 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 8021
2fe7bab7
AH
80222019-03-26 Alan Hayward <alan.hayward@arm.com>
8023
e79be6e5 8024 * arm-linux-nat.c: Add include.
2fe7bab7 8025
068ef30e
SM
80262019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8027
8028 * source-cache.c (source_cache::get_source_lines): Re-read
8029 fullname after calling open_source_file.
8030
81a24d04
JB
80312019-03-25 John Baldwin <jhb@FreeBSD.org>
8032
8033 * NEWS: Mention TLS support for FreeBSD.
8034
79e7ae11
TT
80352019-03-25 Tom Tromey <tromey@adacore.com>
8036
8037 * minsyms.c (BUNCH_SIZE): Update comment.
8038 (~minimal_symbol_reader): Remove old comment.
8039 (compact_minimal_symbols): Update comment.
8040 (minimal_symbol_reader::install): Remove old comment. Update
8041 other comments.
8042
d45963c2
AH
80432019-03-25 Alan Hayward <alan.hayward@arm.com>
8044
8045 * s390-linux-nat.c: Add include.
8046
0f83012e
AH
80472019-03-25 Alan Hayward <alan.hayward@arm.com>
8048
8049 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8050 Call linux_get_hwcap.
8051 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8052 Likewise.
8053 (aarch64_linux_get_hwcap): Remove function.
8054 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8055 declaration.
8056 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8057 linux_get_hwcap.
8058 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8059 * linux-tdep.c (linux_get_hwcap): Add function.
8060 (linux_get_hwcap2): Likewise.
8061 * linux-tdep.h (linux_get_hwcap): Add declaration.
8062 (linux_get_hwcap2): Likewise.
8063 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8064 (ppc_linux_get_hwcap2): Likewise.
8065 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8066 linux_get_hwcap.
8067 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8068 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8069 (ppc_linux_nat_target::read_description): Likewise.
8070 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8071 * s390-linux-nat.c: Likewise.
8072 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8073
6640a367
TT
80742019-03-24 Tom Tromey <tom@tromey.com>
8075
8076 * ada-lang.c (standard_lookup): Simplify initialization.
8077 (ada_lookup_symbol_nonlocal): Simplify return.
8078 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8079 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8080 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8081 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8082 initialization.
8083 * solib.c (solib_global_lookup): Simplify.
8084 * symtab.c (null_block_symbol): Remove.
8085 (symbol_cache_lookup): Simplify returns.
8086 (lookup_language_this): Simplify returns.
8087 (lookup_symbol_aux): Simplify return.
8088 (lookup_local_symbol): Simplify returns.
8089 (lookup_global_symbol_from_objfile): Simplify return.
8090 (lookup_symbol_in_objfile_symtabs)
8091 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8092 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8093 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8094 * cp-namespace.c (cp_lookup_bare_symbol)
8095 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8096 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8097 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8098 (cp_lookup_symbol_via_imports): Simplify initialization.
8099 (find_symbol_in_baseclass): Likewise.
8100 * symtab.h (null_block_symbol): Remove.
8101 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8102 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8103 (d_lookup_symbol_module): Likewise.
8104 (find_symbol_in_baseclass): Simplify initialization.
8105
a930ebcd
TT
81062019-03-24 Tom Tromey <tom@tromey.com>
8107
8108 * expression.h: Don't include symtab.h.
8109 (struct block): Forward declare.
8110
582942f4
TT
81112019-03-24 Tom Tromey <tom@tromey.com>
8112
8113 * c-exp.y (typebase): Remove casts.
8114 * gdbtypes.c (lookup_unsigned_typename, )
8115 (lookup_signed_typename): Remove cast.
8116 * eval.c (parse_to_comma_and_eval): Remove cast.
8117 * parse.c (write_dollar_variable): Remove cast.
8118 * block.h (struct block) <superblock>: Now const.
8119 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8120 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8121 (map_block): Make "block" const.
8122 * symfile.h (struct quick_symbol_functions)
8123 <map_matching_symbols>: Constify block argument to "callback".
8124 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8125 const.
8126 (find_pc_sect_compunit_symtab): Make "b" const.
8127 (find_symbol_at_address): Likewise.
8128 (search_symbols): Likewise.
8129 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8130 (dw2_debug_names_lookup_symbol): Likewise.
8131 (dw2_map_matching_symbols): Update.
8132 * p-valprint.c (pascal_val_print): Remove "block".
8133 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8134 (aux_add_nonlocal_symbols): Make "block" const.
8135 (resolve_subexp): Remove cast.
8136 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8137 const.
8138 (iterate_over_file_blocks): Likewise.
8139 * f-exp.y (%union) <bval>: Remove.
8140 * coffread.c (patch_opaque_types): Make "b" const.
8141 * spu-tdep.c (spu_catch_start): Make "block" const.
8142 * c-valprint.c (print_unpacked_pointer): Remove "block".
8143 * symmisc.c (dump_symtab_1): Make "b" const.
8144 (block_depth): Make "block" const.
8145 * d-exp.y (%union) <bval>: Remove.
8146 * cp-support.h (cp_lookup_rtti_type): Update.
8147 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8148 * psymtab.c (psym_lookup_symbol): Make "block" const.
8149 (maintenance_check_psymtabs): Make "b" const.
8150 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8151 (enumerate_locals, enumerate_args): Update.
8152 * python/py-symtab.c (stpy_global_block): Make "block" const.
8153 (stpy_static_block): Likewise.
8154 * inline-frame.c (block_starting_point_at): Make "new_block"
8155 const.
8156 * block.c (find_block_in_blockvector): Make return type const.
8157 (blockvector_for_pc_sect): Make "b" const.
8158 (find_block_in_blockvector): Make "b" const.
8159
7ad417dd
TT
81602019-03-23 Tom Tromey <tom@tromey.com>
8161
8162 * varobj.c (varobj_create): Update.
8163 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8164 * printcmd.c (display_command, do_one_display): Don't reset
8165 innermost_block.
8166 * parser-defs.h (enum innermost_block_tracker_type): Move to
8167 expression.h.
8168 (innermost_block): Update comment.
8169 * parse.c (parse_exp_1): Add tracker_types parameter.
8170 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8171 tracker_types parameter. Reset innermost_block.
8172 (parse_exp_in_context): Remove.
8173 (parse_expression_for_completion): Update.
8174 * objfiles.c (~objfile): Don't reset expression_context_block or
8175 innermost_block.
8176 * expression.h (enum innermost_block_tracker_type): Move from
8177 parser-defs.h.
8178 (parse_exp_1): Add tracker_types parameter.
8179 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8180 reset innermost_block.
8181
b366c208
TT
81822019-03-23 Tom Tromey <tom@tromey.com>
8183
8184 * objfiles.h: Include bcache.h.
8185
9bb9b2f9
TT
81862019-03-23 Tom Tromey <tom@tromey.com>
8187
8188 * linespec.c (get_current_search_block): Use
8189 scoped_restore_current_language.
8190 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8191
59c28372
AH
81922019-03-22 Alan Hayward <alan.hayward@arm.com>
8193 Jiong Wang <jiong.wang@arm.com>
8194
8195 * aarch64-linux-tdep.c
8196 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8197 section.
8198 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8199
17e116a7
AH
82002019-03-22 Alan Hayward <alan.hayward@arm.com>
8201 Jiong Wang <jiong.wang@arm.com>
8202
8203 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8204 instructions.
8205 (aarch64_analyze_prologue_test): Add PACIASP test.
8206 (aarch64_prologue_prev_register): Unmask PC value.
8207
11e1b75f
AH
82082019-03-22 Alan Hayward <alan.hayward@arm.com>
8209 Jiong Wang <jiong.wang@arm.com>
8210
8211 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8212 (aarch64_dwarf2_prev_register): Unmask PC value.
8213 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8214 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8215 DW_CFA_AARCH64_negate_ra_state.
8216 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8217
34dcc7cf
AH
82182019-03-22 Alan Hayward <alan.hayward@arm.com>
8219 Jiong Wang <jiong.wang@arm.com>
8220
8221 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8222 registers.
8223 (aarch64_pseudo_register_name): Likewise.
8224 (aarch64_pseudo_register_type): Likewise.
8225 (aarch64_pseudo_register_reggroup_p): Likewise.
8226 (aarch64_gdbarch_init): Add pauth registers.
8227 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8228 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8229 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8230 (struct gdbarch_tdep): Add regnum for ra_state.
8231
1ef53e6b
AH
82322019-03-22 Alan Hayward <alan.hayward@arm.com>
8233 Jiong Wang <jiong.wang@arm.com>
8234
8235 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8236
76bed0fd
AH
82372019-03-22 Alan Hayward <alan.hayward@arm.com>
8238 Jiong Wang <jiong.wang@arm.com>
8239
8240 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8241 function.
8242 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8243 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8244 (aarch64_gdbarch_init): Add puth registers.
8245 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8246 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8247 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8248
ee4fbcfa
AH
82492019-03-22 Alan Hayward <alan.hayward@arm.com>
8250 Jiong Wang <jiong.wang@arm.com>
8251
8252 * aarch64-linux-nat.c
8253 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8254 * aarch64-linux-tdep.c
8255 (aarch64_linux_core_read_description): Likewise.
8256 (aarch64_linux_get_hwcap): New function.
8257 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8258 (aarch64_linux_get_hwcap): New declaration.
8259
6dc0ebde
AH
82602019-03-22 Alan Hayward <alan.hayward@arm.com>
8261 Jiong Wang <jiong.wang@arm.com>
8262
8263 * aarch64-linux-nat.c
8264 (aarch64_linux_nat_target::read_description): Add pauth param.
8265 * aarch64-linux-tdep.c
8266 (aarch64_linux_core_read_description): Likewise.
8267 * aarch64-tdep.c (struct target_desc): Add in pauth.
8268 (aarch64_read_description): Add pauth param.
8269 (aarch64_gdbarch_init): Likewise.
8270 * aarch64-tdep.h (aarch64_read_description): Likewise.
8271 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8272 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8273 * features/Makefile: Add new files.
8274 * features/aarch64-pauth.c: New file.
8275 * features/aarch64-pauth.xml: New file.
8276
595915c1
TT
82772019-03-20 Tom Tromey <tromey@adacore.com>
8278
8279 * infrun.c (handle_inferior_event): Rename from
8280 handle_inferior_event_1. Create a scoped_value_mark.
8281 (handle_inferior_event): Remove.
8282
4c7d57e7
TT
82832019-03-19 Tom Tromey <tromey@adacore.com>
8284
8285 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8286 * infrun.h (print_stop_event): Add "displays" parameter.
8287 * infrun.c (print_stop_event): Add "displays" parameter.
8288
cb246234
PA
82892019-03-19 Pedro Alves <palves@redhat.com>
8290
8291 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8292 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8293 to -1. Fix TABs vs spaces.
8294 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8295 * tui/tui-out.h (tui_ui_out) Add intro comments.
8296 <m_line, m_start_of_line>: In-class initialize, and add describing
8297 comment.
8298
3a0e45b2
AH
82992019-03-18 Alan Hayward <alan.hayward@arm.com>
8300
8301 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8302 variable names.
8303 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8304
5371b850
PA
83052019-03-18 Pedro Alves <palves@redhat.com>
8306 Eli Zaretskii <eliz@gnu.org>
8307
8308 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8309 m_line and m_start_of_line.
8310
b17c4cd0
EZ
83112019-03-18 Eli Zaretskii <eliz@gnu.org>
8312
8313 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8314 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8315 it returns a newline. This fixes a regression in TU mode, whereby
8316 the next line is output on the same screen line as the user input.
8317
4bd56d18
TT
83182019-03-18 Tom Tromey <tromey@adacore.com>
8319
8320 * minsyms.c (minimal_symbol_reader::install): Remove call to
8321 obstack_blank.
8322
55c10aca
PA
83232019-03-18 Pedro Alves <palves@redhat.com>
8324
8325 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8326 New globals.
8327 (apply_style): New, factored out from ...
8328 (apply_ansi_escape): ... this. Handle reverse video mode.
8329 (tui_set_reverse_mode): New function.
8330 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8331 * tui/tui-winsource.c (tui_show_source_line): Use
8332 tui_set_reverse_mode instead of setting A_STANDOUT.
8333 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8334 New setter methods.
8335
647bb750
HD
83362019-03-18 Hannes Domani <ssbssa@yahoo.de>
8337
8338 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8339 Handle tabs.
8340
bff8c71f
TT
83412019-03-18 Tom Tromey <tromey@adacore.com>
8342
8343 * ada-lang.c (empty_array): Add "high" parameter.
8344 (ada_evaluate_subexp): Update.
8345
58785d98
ST
83462019-03-17 Sergei Trofimovich <siarheit@google.com>
8347
8348 * unittests/string_view-selftests.c: Define
8349 _initialize_string_view_selftests unconditionally.
8350
d4cbef22
ВМ
83512019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8352
8353 PR gdb/24350
8354 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8355
fce4c071
ВМ
83562019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8357
8358 PR gdb/24351
8359 * windows-nat.c (display_selector): Fix format specifiers.
8360
f7f0a123
EZ
83612019-03-17 Eli Zaretskii <eliz@gnu.org>
8362
8363 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8364 tui_refill_source_window instead of tui_refresh_win, to update the
8365 current execution line. This fixes redisplay of the current line
8366 when stepping through the code with "next" or "step".
8367
ab42892f
EZ
83682019-03-16 Eli Zaretskii <eliz@gnu.org>
8369
8370 * source-cache.c (source_cache::get_source_lines): Call
8371 find_source_lines to initialize s->nlines. This fixes vertical
8372 scrolling of TUI source window when the DOWN arrow is pressed.
8373
8d8c087f
PW
83742019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8375
8376 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8377 linux-thread-db.c (_initialize_thread_db): Likewise.
8378
798e1c30
EZ
83792019-03-16 Eli Zaretskii <eliz@gnu.org>
8380
8381 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8382 wclrtoeol in tui_show_source_line". This reverts changes made in
8383 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8384
eefba3da
TT
83852019-03-15 Tom Tromey <tom@tromey.com>
8386
8387 * symtab.h (struct minimal_symbol): Derive from
8388 general_symbol_info.
8389 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8390 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8391 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8392 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8393 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8394 (MSYMBOL_SEARCH_NAME): Update.
8395 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8396 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8397 * minsyms.c (minimal_symbol_reader::record_full): Update.
8398
0de2420c
TT
83992019-03-15 Tom Tromey <tom@tromey.com>
8400
8401 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8402
042d75e4
TT
84032019-03-15 Tom Tromey <tom@tromey.com>
8404
8405 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8406 unique_xmalloc_ptr.
8407 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8408 Update.
8409 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8410 (build_minimal_symbol_hash_tables)
8411 (minimal_symbol_reader::install): Update.
8412
db92718b
TT
84132019-03-15 Tom Tromey <tom@tromey.com>
8414
8415 * symtab.c (create_demangled_names_hash): Update.
8416 (symbol_set_names): Update.
8417 * objfiles.h (struct objfile_per_bfd_storage)
8418 <demangled_names_hash>: Now an htab_up.
8419 * objfiles.c (objfile_per_bfd_storage): Simplify.
8420
d6797f46
TT
84212019-03-15 Tom Tromey <tom@tromey.com>
8422
8423 * objfiles.h (struct objfile_per_bfd_storage): Declare
8424 destructor.
8425 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8426 New.
8427 (get_objfile_bfd_data): Use new. Don't initialize
8428 language_of_main.
8429 (free_objfile_per_bfd_storage): Remove.
8430 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8431
741d7538
TT
84322019-03-15 Tom Tromey <tom@tromey.com>
8433
8434 * symfile.c (reread_symbols): Update.
8435 * objfiles.c (objfile::objfile): Update.
8436 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8437 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8438 comment.
8439 (minimal_symbol_reader::install): Update.
8440 (terminate_minimal_symbol_table): Remove.
8441 * jit.c (jit_object_close_impl): Update.
8442
788c80d1
TT
84432019-03-15 Tom Tromey <tom@tromey.com>
8444
8445 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8446 initializations.
8447
1b7a07cb
TT
84482019-03-15 Tom Tromey <tom@tromey.com>
8449
8450 * objfiles.h (struct objfile_per_bfd_storage)
8451 <demangled_hash_languages>: Now a bitset.
8452 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8453 (lookup_minimal_symbol): Update.
8454
3db066bc
TT
84552019-03-15 Tom Tromey <tom@tromey.com>
8456
8457 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8458 Don't return the symbol.
8459 * coffread.c (record_minimal_symbol): Use record_full.
8460
3fff2c37
EZ
84612019-03-14 Eli Zaretskii <eliz@gnu.org>
8462
8463 The MS-Windows port of ncurses fails to switch to a color pair if
8464 one or both of the colors are the implicit default colors. This
8465 change records the default colors when TUI is initialized, and
8466 then specifies them explicitly when a color pair uses the default
8467 colors. This allows color styling in TUI mode on MS-Windows.
8468
8469 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8470 ncurses_norm_attr.
8471 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8472 colors in ncurses_norm_attr.
8473 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8474 "none", replace it with the default color recorded in
8475 ncurses_norm_attr.
8476
3b336828
TT
84772019-03-14 Tom Tromey <tromey@adacore.com>
8478
8479 * source-cache.h (class source_cache) <get_source_lines>: Return
8480 std::string.
8481 * source-cache.c (source_cache::extract_lines): Handle case where
8482 first_pos==npos. Return std::string.
8483 (source_cache::get_source_lines): Update.
8484
d085f989
TT
84852019-03-14 Tom Tromey <tromey@adacore.com>
8486
8487 * NEWS: Add item for "style sources" commands.
8488 * source-cache.c (source_cache::get_source_lines): Check
8489 source_styling.
8490 * cli/cli-style.c (source_styling): New global.
8491 (_initialize_cli_style): Add "style sources" commands.
8492 (show_style_sources): New function.
8493 * cli/cli-style.h (source_styling): Declare.
8494
6f11e682
TT
84952019-03-14 Pedro Alves <palves@redhat.com>
8496 Tom Tromey <tromey@adacore.com>
8497
8498 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8499 * tui/tui-winsource.c (tui_refill_source_window): New function,
8500 from...
8501 (tui_horizontal_source_scroll): ... here. Move some logic.
8502 * cli/cli-style.c (set_style_enabled): Notify new observable.
8503 * tui/tui-hooks.c (tui_redisplay_source): New function.
8504 (tui_attach_detach_observers): Attach or detach
8505 tui_redisplay_source.
8506 * observable.h (source_styling_changed): New observable.
8507 * observable.c: Define source_styling_changed observable.
8508
a068643d
TT
85092019-03-13 Tom Tromey <tromey@adacore.com>
8510
8511 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8512 (i386_gnu_nat_target::store_registers): Update.
8513 * target-debug.h (target_debug_print_std_string): New macro.
8514 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8515 * windows-tdep.c (display_one_tib): Update.
8516 * tui/tui-stack.c (tui_make_status_line): Update.
8517 * top.c (print_inferior_quit_action): Update.
8518 * thread.c (thr_try_catch_cmd): Update.
8519 (add_thread_with_info): Update.
8520 (thread_target_id_str): Update.
8521 (thr_try_catch_cmd): Update.
8522 (thread_command): Update.
8523 (thread_find_command): Update.
8524 * record-btrace.c (record_btrace_target::info_record)
8525 (record_btrace_resume_thread, record_btrace_target::resume)
8526 (record_btrace_cancel_resume, record_btrace_step_thread)
8527 (record_btrace_target::wait, record_btrace_target::wait)
8528 (record_btrace_target::wait, record_btrace_target::stop): Update.
8529 * progspace.c (print_program_space): Update.
8530 * process-stratum-target.c
8531 (process_stratum_target::thread_address_space): Update.
8532 * linux-fork.c (linux_fork_mourn_inferior)
8533 (detach_checkpoint_command, info_checkpoints_command)
8534 (linux_fork_context): Update.
8535 (linux_fork_detach): Update.
8536 (class scoped_switch_fork_info): Update.
8537 (delete_checkpoint_command): Update.
8538 * infrun.c (follow_fork_inferior): Update.
8539 (follow_fork_inferior): Update.
8540 (proceed_after_vfork_done): Update.
8541 (handle_vfork_child_exec_or_exit): Update.
8542 (follow_exec): Update.
8543 (displaced_step_prepare_throw): Update.
8544 (displaced_step_restore): Update.
8545 (start_step_over): Update.
8546 (resume_1): Update.
8547 (clear_proceed_status_thread): Update.
8548 (proceed): Update.
8549 (print_target_wait_results): Update.
8550 (do_target_wait): Update.
8551 (context_switch): Update.
8552 (stop_all_threads): Update.
8553 (restart_threads): Update.
8554 (finish_step_over): Update.
8555 (handle_signal_stop): Update.
8556 (switch_back_to_stepped_thread): Update.
8557 (keep_going_pass_signal): Update.
8558 (print_exited_reason): Update.
8559 (normal_stop): Update.
8560 * inferior.c (inferior_pid_to_str): Change return type.
8561 (print_selected_inferior): Update.
8562 (add_inferior): Update.
8563 (detach_inferior): Update.
8564 * dummy-frame.c (fprint_dummy_frames): Update.
8565 * dcache.c (dcache_info_1): Update.
8566 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8567 (btrace_fetch, btrace_clear): Update.
8568 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8569 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8570 type.
8571 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8572 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8573 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8574 * gdbarch.c, gdbarch.h: Rebuild.
8575 * gdbarch.sh (core_pid_to_str): Change return type.
8576 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8577 return type.
8578 (windows_nat_target::pid_to_str): Change return type.
8579 (windows_delete_thread): Update.
8580 (windows_nat_target::attach): Update.
8581 (windows_nat_target::files_info): Update.
8582 * target-delegates.c: Rebuild.
8583 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8584 return type.
8585 (sol_thread_target::pid_to_str): Change return type.
8586 * remote.c (class remote_target) <pid_to_str>: Change return
8587 type.
8588 (remote_target::pid_to_str): Change return type.
8589 (extended_remote_target::attach, remote_target::remote_stop_ns)
8590 (remote_target::remote_notif_remove_queued_reply)
8591 (remote_target::push_stop_reply, remote_target::disable_btrace):
8592 Update.
8593 (extended_remote_target::attach): Update.
8594 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8595 type.
8596 (gdbsim_target::pid_to_str): Change return type.
8597 * ravenscar-thread.c (struct ravenscar_thread_target)
8598 <pid_to_str>: Change return type.
8599 (ravenscar_thread_target::pid_to_str): Change return type.
8600 * procfs.c (class procfs_target) <pid_to_str>: Change return
8601 type.
8602 (procfs_target::pid_to_str): Change return type.
8603 (procfs_target::attach): Update.
8604 (procfs_target::detach): Update.
8605 (procfs_target::fetch_registers): Update.
8606 (procfs_target::store_registers): Update.
8607 (procfs_target::wait): Update.
8608 (procfs_target::files_info): Update.
8609 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8610 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8611 return type.
8612 (nto_procfs_target::pid_to_str): Change return type.
8613 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8614 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8615 return type.
8616 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8617 (exit_lwp): Update.
8618 (attach_proc_task_lwp_callback, get_detach_signal)
8619 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8620 (linux_nat_target::resume, wait_lwp, stop_callback)
8621 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8622 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8623 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8624 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8625 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8626 type.
8627 (inf_ptrace_target::attach): Update.
8628 (inf_ptrace_target::files_info): Update.
8629 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8630 type.
8631 (go32_nat_target::pid_to_str): Change return type.
8632 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8633 (gnu_nat_target::wait): Update.
8634 (gnu_nat_target::wait): Update.
8635 (gnu_nat_target::resume): Update.
8636 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8637 (fbsd_nat_target::wait): Update.
8638 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8639 type.
8640 (darwin_nat_target::attach): Update.
8641 * corelow.c (class core_target) <pid_to_str>: Change return type.
8642 (core_target::pid_to_str): Change return type.
8643 * target.c (normal_pid_to_str): Change return type.
8644 (default_pid_to_str): Likewise.
8645 (target_pid_to_str): Change return type.
8646 (target_translate_tls_address): Update.
8647 (target_announce_detach): Update.
8648 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8649 return type.
8650 (bsd_uthread_target::pid_to_str): Change return type.
8651 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8652 type.
8653 (bsd_kvm_target::pid_to_str): Change return type.
8654 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8655 return type.
8656 (aix_thread_target::pid_to_str): Change return type.
8657 * target.h (struct target_ops) <pid_to_str>: Change return type.
8658 (target_pid_to_str, normal_pid_to_str): Likewise.
8659 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8660 type.
8661 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8662 type.
8663 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8664 return type.
8665 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8666 type.
8667 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8668 type.
8669 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8670 return type.
8671
b4be1b06
SM
86722019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8673
8674 * NEWS: Mention that the new default MI version is 3. Mention
8675 changes to the output of commands and events that deal with
8676 multi-location breakpoints.
8677 * breakpoint.c: Include "mi/mi-out.h".
8678 (print_one_breakpoint): Change output syntax if using MI version
8679 >= 3.
8680 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8681 New.
8682 (mi_multi_location_breakpoint_output_fixed): New.
8683 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8684 (mi_cmd_fix_multi_location_breakpoint_output): New.
8685 (mi_multi_location_breakpoint_output_fixed): New.
8686 * mi/mi-cmds.c (mi_cmds): Register command
8687 -fix-multi-location-breakpoint-output.
8688 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8689 interpreter "mi".
8690
8e5e5494
SM
86912019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8692
8693 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8694 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8695 instantiate mi_ui_out based on interpreter name.
8696 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8697 * mi/mi-main.c (mi_load_progress): Likewise.
8698
197df35e
JB
86992019-03-12 John Baldwin <jhb@FreeBSD.org>
8700
8701 * NEWS: Combine separate "New targets" sections for 8.3.
8702
8399425f
JB
87032019-03-12 John Baldwin <jhb@FreeBSD.org>
8704
8705 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8706 (ppcfbsd_init_abi): Install gdbarch
8707 "fetch_tls_load_module_address" and "get_thread_local_address"
8708 methods.
8709
b0f87ed0
JB
87102019-03-12 John Baldwin <jhb@FreeBSD.org>
8711
8712 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8713 (riscv_fbsd_init_abi): Install gdbarch
8714 "fetch_tls_load_module_address" and "get_thread_local_address"
8715 methods.
8716
ce25aa57
JB
87172019-03-12 John Baldwin <jhb@FreeBSD.org>
8718
8719 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8720 (i386fbsd_init_abi): Install gdbarch
8721 "fetch_tls_load_module_address" and "get_thread_local_address"
8722 methods.
8723
f5424cfa
JB
87242019-03-12 John Baldwin <jhb@FreeBSD.org>
8725
8726 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8727 (amd64fbsd_init_abi): Install gdbarch
8728 "fetch_tls_load_module_address" and "get_thread_local_address"
8729 methods.
8730
945f3901
JB
87312019-03-12 John Baldwin <jhb@FreeBSD.org>
8732
8733 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8734 (struct fbsd_pspace_data): New type.
8735 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8736 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8737 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8738 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8739 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8740
ef0bd204
JB
87412019-03-12 John Baldwin <jhb@FreeBSD.org>
8742
8743 * gdbtypes.c (lookup_struct_elt): New function.
8744 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8745 * gdbtypes.h (struct struct_elt): New type.
8746 (lookup_struct_elt): New prototype.
8747
36c53a02
JB
87482019-03-12 John Baldwin <jhb@FreeBSD.org>
8749
8750 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8751 remove disabled code block.
8752
6e056c81
JB
87532019-03-12 John Baldwin <jhb@FreeBSD.org>
8754
8755 * gdbarch.sh (get_thread_local_address): New method.
8756 * gdbarch.h, gdbarch.c: Regenerate.
8757 * target.c (target_translate_tls_address): Use
8758 gdbarch_get_thread_local_address if present instead of
8759 target::get_thread_local_address.
8760
cd250a18
JB
87612019-03-12 John Baldwin <jhb@FreeBSD.org>
8762
8763 * target.h (target::get_thread_local_address): Update comment.
8764
df22c1e5
JB
87652019-03-12 John Baldwin <jhb@FreeBSD.org>
8766
8767 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8768 objfile->separate_debug_objfile_backlink if not NULL.
8769
dd6876c9
JB
87702019-03-12 John Baldwin <jhb@FreeBSD.org>
8771
8772 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8773 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8774 (amd64bsd_store_inferior_registers): Likewise.
8775 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8776 Enable segment base registers.
8777 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8778 PT_GETFSBASE and PT_GETGSBASE.
8779 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8780 PT_SETGSBASE.
8781 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8782 segment base registers.
8783 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8784
1163a4b7
JB
87852019-03-12 John Baldwin <jhb@FreeBSD.org>
8786
8787 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8788 Update calls to i386_target_description to add 'segments'
8789 parameter.
8790 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8791 add segment base registers.
8792 * arch/i386.c (i386_create_target_description): Add 'segments'
8793 parameter to enable segment base registers.
8794 * arch/i386.h (i386_create_target_description): Likewise.
8795 * features/i386/32bit-segments.xml: New file.
8796 * features/i386/32bit-segments.c: Generate.
8797 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8798 call to i386_target_description to add 'segments' parameter.
8799 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8800 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8801 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8802 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8803 if feature is present.
8804 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8805 Add 'segments' parameter to call to i386_target_description.
8806 (i386_target_description): Add 'segments' parameter to enable
8807 segment base registers.
8808 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8809 to call to i386_target_description.
8810 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8811 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8812 Define I386_NUM_REGS.
8813 (i386_target_description): Add 'segments' parameter to enable
8814 segment base registers.
8815
3a350822
EZ
88162019-03-12 Eli Zaretskii <eliz@gnu.org>
8817
8818 PR/24325
8819 * source-cache.c: #undef open and close, to avoid unresolved
8820 externals during linking.
8821
ffdd69cf
TT
88222019-03-12 Tom Tromey <tromey@adacore.com>
8823
8824 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8825 const. Add initializers.
8826 (_initialize_remote): Don't initialize ptid globals.
8827
ec148c57
PA
88282019-03-12 Pedro Alves <palves@redhat.com>
8829
8830 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8831
32764270
PA
88322019-03-12 Pedro Alves <palves@redhat.com>
8833
8834 * cp-name-parser.y (main): Remove unused 'len' variable.
8835
17547186
TT
88362019-03-12 Tom Tromey <tromey@adacore.com>
8837
8838 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8839 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8840
d3a70e03
TT
88412019-03-12 Tom Tromey <tromey@adacore.com>
8842
8843 * linux-nat.c (iterate_over_lwps): Update.
8844 (stop_callback): Remove parameter.
8845 (stop_wait_callback, detach_callback, resume_set_callback)
8846 (select_singlestep_lwp_callback, set_ignore_sigint)
8847 (status_callback, resumed_callback, resume_clear_callback)
8848 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8849 data parameter.
8850 (linux_nat_target::detach, linux_nat_target::resume)
8851 (linux_stop_and_wait_all_lwps, select_event_lwp)
8852 (linux_nat_filter_event, linux_nat_wait_1)
8853 (linux_nat_target::kill, linux_nat_target::stop)
8854 (linux_nat_target::stop): Update.
8855 (linux_nat_resume_callback): Change type.
8856 (resume_stopped_resumed_lwps, count_events_callback)
8857 (select_event_lwp_callback): Likewise.
8858 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8859 * arm-linux-nat.c (struct update_registers_data): Remove.
8860 (update_registers_callback): Change type.
8861 (arm_linux_insert_hw_breakpoint1): Update.
8862 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8863 parameter.
8864 (x86_linux_dr_set_addr): Update.
8865 (x86_linux_dr_set_control): Update.
8866 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8867 (iterate_over_lwps): Use gdb::function_view.
8868 * nat/aarch64-linux-hw-point.c (struct
8869 aarch64_dr_update_callback_param): Remove.
8870 (debug_reg_change_callback): Change type.
8871 (aarch64_notify_debug_reg_change): Update.
8872 * s390-linux-nat.c (s390_refresh_per_info): Update.
8873
82cb27ff
TT
88742019-03-11 Tom Tromey <tromey@adacore.com>
8875
8876 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8877 redundant assignment to "this_cu".
8878
568c0683
SM
88792019-03-08 Simon Marchi <simon.marchi@efficios.com>
8880
8881 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8882
f09ce22d
SM
88832019-03-08 Simon Marchi <simon.marchi@efficios.com>
8884
8885 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8886 from...
8887 (rank_one_type): ... this.
8888
595f96a9
SM
88892019-03-08 Simon Marchi <simon.marchi@efficios.com>
8890
8891 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8892 from...
8893 (rank_one_type): ... this.
8894
2598a94b
SM
88952019-03-08 Simon Marchi <simon.marchi@efficios.com>
8896
8897 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8898 from...
8899 (rank_one_type): ... this.
8900
7f17b20d
SM
89012019-03-08 Simon Marchi <simon.marchi@efficios.com>
8902
8903 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8904 from...
8905 (rank_one_type): ... this.
8906
2c509035
SM
89072019-03-08 Simon Marchi <simon.marchi@efficios.com>
8908
8909 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8910 from...
8911 (rank_one_type): ... this.
8912
0dd322dc
SM
89132019-03-08 Simon Marchi <simon.marchi@efficios.com>
8914
8915 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8916 from...
8917 (rank_one_type): ... this.
8918
41ea4728
SM
89192019-03-08 Simon Marchi <simon.marchi@efficios.com>
8920
8921 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8922 from...
8923 (rank_one_type): ... this.
8924
793cd1d2
SM
89252019-03-08 Simon Marchi <simon.marchi@efficios.com>
8926
8927 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8928 from...
8929 (rank_one_type): ... this.
8930
34910087
SM
89312019-03-08 Simon Marchi <simon.marchi@efficios.com>
8932
8933 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8934 from...
8935 (rank_one_type): ... this.
8936
f1f832d6
SM
89372019-03-08 Simon Marchi <simon.marchi@efficios.com>
8938
8939 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8940 from...
8941 (rank_one_type): ... this.
8942
b9f4512f
SM
89432019-03-08 Simon Marchi <simon.marchi@efficios.com>
8944
8945 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8946 from...
8947 (rank_one_type): ... this.
8948
9293fc63
SM
89492019-03-08 Simon Marchi <simon.marchi@efficios.com>
8950
8951 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8952 from...
8953 (rank_one_type): ... this.
8954
e3abbe7e
PW
89552019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8956
8957 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8958 inferior-events' shows the example events.
8959
e4adb939
EZ
89602019-03-08 Eli Zaretskii <eliz@gnu.org>
8961
8962 Support styling on native MS-Windows console
8963
8964 PR/24315
8965 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8966 on MS-Windows if $TERM is not defined.
8967
8968 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8969
8970 * posix-hdep.c (gdb_console_fputs):
8971 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8972 functions.
8973 * ui-file.h (gdb_console_fputs): Add prototype.
8974
8975 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8976 back to fputs only if the former returns zero.
8977
25629dfd
TT
89782019-03-07 Tom Tromey <tom@tromey.com>
8979
8980 * symmisc.c (print_symbol_bcache_statistics): Update.
8981 (print_objfile_statistics): Update.
8982 * symfile.c (allocate_symtab): Update.
8983 * stabsread.c: Don't include bcache.h.
8984 * psymtab.h (struct psymbol_bcache): Don't declare.
8985 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8986 (psymbol_bcache_init, psymbol_bcache_free)
8987 (psymbol_bcache_get_bcache): Don't declare.
8988 * psymtab.c (struct psymbol_bcache): Remove.
8989 (psymtab_storage::psymtab_storage): Update.
8990 (psymtab_storage::~psymtab_storage): Update.
8991 (psymbol_bcache_init, psymbol_bcache_free)
8992 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8993 (add_psymbol_to_bcache): Update.
8994 (allocate_psymtab): Update.
8995 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8996 macro_cache>: No longer pointers.
8997 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8998 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8999 * macrotab.c (macro_bcache): Update.
9000 * macroexp.c: Don't include bcache.h.
9001 * gdbtypes.c (check_types_worklist): Update.
9002 (types_deeply_equal): Remove TRY/CATCH. Update.
9003 * elfread.c (elf_symtab_read): Update.
9004 * dwarf2read.c: Don't include bcache.h.
9005 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9006 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9007 (print_bcache_statistics, bcache_memory_used): Don't declare.
9008 (struct bcache): Move from bcache.c. Add constructor, destructor,
9009 methods. Rename all data members.
9010 * bcache.c (struct bcache): Move to bcache.h.
9011 (bcache::expand_hash_table): Rename from expand_hash_table.
9012 (bcache): Remove.
9013 (bcache::insert): Rename from bcache_full.
9014 (bcache::compare): Rename from bcache_compare.
9015 (bcache_xmalloc): Remove.
9016 (bcache::~bcache): Rename from bcache_xfree.
9017 (bcache::print_statistics): Rename from print_bcache_statistics.
9018 (bcache::memory_used): Rename from bcache_memory_used.
9019
fe726667
PA
90202019-03-07 Pedro Alves <palves@redhat.com>
9021
9022 * infrun.c (normal_stop): Also check for
9023 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9024
7584bb30
AB
90252019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9026
9027 * f-lang.c (value_from_host_double): Moved to...
9028 * value.c (value_from_host_double): ...here.
9029 * value.h (value_from_host_double): Declare.
9030 * guile/scm-math.c (vlscm_convert_typed_number): Use
9031 value_from_host_double.
9032 (vlscm_convert_number): Likewise.
9033 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9034 * python/py-value.c (convert_value_from_python): Likewise.
9035
a7b1986e
TT
90362019-03-06 Tom Tromey <tom@tromey.com>
9037
9038 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9039
0ccf4211
TT
90402019-03-06 Tom Tromey <tom@tromey.com>
9041
9042 * utils.h (free_current_contents): Don't declare.
9043 * utils.c (free_current_contents): Remove.
9044
fe7b42e5
TT
90452019-03-06 Tom Tromey <tom@tromey.com>
9046
9047 * top.c (quit_force): Update.
9048 * main.c (captured_command_loop): Update.
9049 * common/new-op.c (operator new): Update.
9050 * common/common-exceptions.c (struct catcher)
9051 <save_cleanup_chain>: Remove member.
9052 (exceptions_state_mc_init): Update.
9053 (exception_try_scope_entry): Return nullptr.
9054 (exception_try_scope_exit, exception_rethrow)
9055 (throw_exception_sjlj, throw_exception_cxx): Update.
9056 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9057 (all_cleanups, do_cleanups, discard_cleanups)
9058 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9059 (restore_cleanups, restore_final_cleanups): Don't declare.
9060 (do_final_cleanups): Remove parameter.
9061 * common/cleanups.c (cleanup_chain, make_cleanup)
9062 (make_cleanup_dtor, all_cleanups, do_cleanups)
9063 (discard_my_cleanups, discard_cleanups)
9064 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9065 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9066 (null_cleanup): Remove.
9067 (do_final_cleanups): Remove parameter.
9068
c6321f19
TT
90692019-03-06 Tom Tromey <tom@tromey.com>
9070
9071 * remote.c (remote_target::remote_parse_stop_reply): Use
9072 unique_xmalloc_ptr.
9073
61b30099
TT
90742019-03-06 Tom Tromey <tom@tromey.com>
9075
9076 * stabsread.c (struct stabs_field_info): Rename from field_info.
9077 <list, fnlist>: Add initializers.
9078 <obstack>: New member.
9079 (read_member_functions, read_struct_fields, read_baseclasses):
9080 Allocate on obstack. Don't use cleanups.
9081 (read_one_struct_field, read_member_functions, read_struct_fields)
9082 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9083 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9084 (read_struct_type): Update.
9085
6cceac94
TT
90862019-03-06 Tom Tromey <tom@tromey.com>
9087
9088 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9089 * common/filestuff.h (make_cleanup_close): Don't declare.
9090 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9091 Remove.
9092
72412762
TT
90932019-03-06 Tom Tromey <tom@tromey.com>
9094
9095 * solib-aix.c: Use make_scope_exit.
9096
2b6ff1c0
TT
90972019-03-06 Tom Tromey <tom@tromey.com>
9098
9099 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9100 Use make_scope_exit.
9101
d01c5877
TT
91022019-03-06 Tom Tromey <tom@tromey.com>
9103
9104 * solib-svr4.c (disable_probes_interface): Remove parameter.
9105 (svr4_handle_solib_event): Use make_scope_exit.
9106
32603266
TT
91072019-03-06 Tom Tromey <tom@tromey.com>
9108
9109 * remote.c (struct stop_reply_deleter): Remove.
9110 (stop_reply_up): Update.
9111 (struct stop_reply): Derive from notif_event. Don't typedef.
9112 <regcache>: Now a std::vector.
9113 (stop_reply_xfree): Remove.
9114 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9115 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9116 (remote_target::discard_pending_stop_replies): Use delete.
9117 (remote_target::remote_parse_stop_reply): Update.
9118 (remote_target::process_stop_reply): Update.
9119 * remote-notif.h (struct notif_event): Add virtual destructor.
9120 Remove "dtr" member.
9121 (struct notif_client) <alloc_event>: Return a unique_ptr.
9122 (notif_event_xfree): Don't declare.
9123 (notif_event_up): New typedef.
9124 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9125 (notif_event_xfree, do_notif_event_xfree): Remove.
9126 (remote_notif_state_xfree): Update.
9127
9799571e
TT
91282019-03-06 Tom Tromey <tom@tromey.com>
9129
9130 * infrun.c (displaced_step_clear_cleanup): Now a
9131 forward_scope_exit type.
9132 (displaced_step_prepare_throw): Update.
9133 (displaced_step_fixup): Update.
9134
09e3c4ca
TT
91352019-03-06 Tom Tromey <tom@tromey.com>
9136
9137 * inferior.h (class inferior): Update comment.
9138 * gdbthread.h (class thread_info): Update comment.
9139
e2a03548
TT
91402019-03-06 Joel Brobecker <brobecker@adacore.com>
9141 Tom Tromey <tom@tromey.com>
9142
9143 * stabsread.h (struct stab_section_list): Remove.
9144 (coffstab_build_psymtabs): Update.
9145 * dbxread.c (symbuf_sections): Now a std::vector.
9146 (sect_idx): New global.
9147 (fill_symbuf): Update.
9148 (coffstab_build_psymtabs): Change type of stabsects parameter.
9149 Update.
9150 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9151 std::vector.
9152 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9153 (coff_locate_sections): Update.
9154 (coff_symfile_read): Remove cleanups. Update.
9155 (init_stringtab): Add storage parameter.
9156 (free_stringtab, free_stringtab_cleanup): Remove.
9157 (init_lineno): Add storage parameter.
9158 (free_linetab, free_linetab_cleanup): Remove.
9159
b7e60d85
PA
91602019-03-06 Pedro Alves <palves@redhat.com>
9161
9162 * linux-fork.c (fork_info::clobber_regs): Delete.
9163 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9164 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9165 comment. Adjust.
9166 (scoped_switch_fork_info::scoped_switch_fork_info)
9167 (checkpoint_command, linux_fork_context): Adjust
9168 fork_save_infrun_state calls.
9169
e52c971f
PA
91702019-03-06 Pedro Alves <palves@redhat.com>
9171
9172 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9173 (inf_has_multiple_threads): Return 'bool' and rewrite using
9174 inferior_info::threads().
9175
06974e6c
PA
91762019-03-06 Pedro Alves <palves@redhat.com>
9177
9178 * linux-fork.c: Include <list>.
9179 (fork_list): Now a std::list instance.
9180 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9181 (forks_exist_p, find_last_fork): Adjust.
9182 (new_fork): Delete.
9183 (one_fork_p): New.
9184 (add_fork): Adjust.
9185 (free_fork): Delete, folded into fork_info::~fork_info().
9186 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9187 Adjust.
9188 (init_fork_list): Delete.
9189 (linux_fork_killall, linux_fork_mourn_inferior)
9190 (linux_fork_detach, info_checkpoints_command): Adjust.
9191 (_initialize_linux_fork): No longer call init_fork_list.
9192
72f31aea
PA
91932019-03-06 Pedro Alves <palves@redhat.com>
9194
9195 * linux-fork.c (new_fork): New, split out of ...
9196 (add_fork): ... this. Return void. Move "first fork" special
9197 case from here, to ...
9198 (checkpoint_command): ... here.
9199 * linux-linux.h (add_fork): Return void.
9200
efbecbc1
AB
92012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9202
9203 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9204
0841c79a
AB
92052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9206 Chris January <chris.january@arm.com>
9207 David Lecomber <david.lecomber@arm.com>
9208
9209 * f-exp.y: New token, UNOP_INTRINSIC.
9210 (exp): New pattern using UNOP_INTRINSIC token.
9211 (f77_keywords): Add 'abs' keyword.
9212 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9213 (value_from_host_double): New function.
9214 (evaluate_subexp_f): Support UNOP_ABS.
9215
4a270568
AB
92162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9217
9218 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9219 types.
9220
067630bd
AB
92212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9222
9223 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9224 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9225 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9226
3be47f7a
AB
92272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9228
9229 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9230
4d00f5d8
AB
92312019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9232 Chris January <chris.january@arm.com>
9233
9234 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9235 * f-exp.y: Define 'KIND' token.
9236 (exp): New pattern for KIND expressions.
9237 (ptype): Handle types with a kind extension.
9238 (direct_abs_decl): Extend to spot kind extensions.
9239 (f77_keywords): Add 'kind' to the list.
9240 (push_kind_type): New function.
9241 (convert_to_kind_type): New function.
9242 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9243 * parse.c (operator_length_standard): Likewise.
9244 * parser-defs.h (enum type_pieces): Add tp_kind.
9245 * std-operator.def: Add UNOP_KIND.
9246
e454224f
AB
92472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9248
9249 * f-exp.y (f_parse): Set yydebug.
9250
9dad4a58
AB
92512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9252
9253 * f-lang.c (evaluate_subexp_f): New function.
9254 (exp_descriptor_f): New global.
9255 (f_language_defn): Use exp_descriptor_f instead of
9256 exp_descriptor_standard.
9257
c8f91604
AB
92582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9259
9260 * f-exp.y (struct token): Add comments.
9261 (dot_ops): Remove uppercase versions and the end marker.
9262 (f77_keywords): Likewise.
9263 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9264 entries in the dot_ops array are case insensitive, and use
9265 strncasecmp to compare strings. Also some whitespace cleanup in
9266 this area. Similar for the f77_keywords array, except entries in
9267 this list might be case sensitive.
9268
dd9f2c76
AB
92692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9270
9271 * f-exp.y (struct f77_boolean_val): Add comments.
9272 (boolean_values): Remove uppercase versions, and end marker.
9273 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9274 and use strncasecmp to achieve case insensitivity. Additionally,
9275 perform whitespace cleanup around this code.
9276
67a3048c
TT
92772019-03-06 Tom Tromey <tromey@adacore.com>
9278
9279 * remote-sim.c (gdbsim_target_open): Use result of
9280 gdb_argv::release.
9281
aa3cfbda
RB
92822019-03-06 Richard Bunt <richard.bunt@arm.com>
9283 Dirk Schubert <dirk.schubert@arm.com>
9284 Chris January <chris.january@arm.com>
9285
9286 * eval.c (evaluate_subexp_standard): Call Fortran argument
9287 wrapping logic.
9288 * f-lang.c (struct value): A value which can be passed into a
9289 Fortran function call.
9290 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9291 where appropriate.
9292 (struct type): Value ready for a Fortran function call.
9293 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9294 is needed.
9295 * f-lang.h (fortran_argument_convert): Declaration.
9296 (fortran_preserve_arg_pointer): Declaration.
9297 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9298
ea38e5df
TT
92992019-03-05 Tom Tromey <tromey@adacore.com>
9300
9301 * python/py-prettyprint.c (print_string_repr): Remove #if.
9302 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9303
06b5b831
TT
93042019-03-05 Tom Tromey <tromey@adacore.com>
9305
9306 * target.c (the_dummy_target): Move later. Change type to
9307 "dummy_target".
9308 (initialize_targets): Don't initialize the_dummy_target.
9309
edbd9e45
TT
93102019-03-05 Tom Tromey <tromey@adacore.com>
9311
9312 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9313 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9314
c119e040
TT
93152019-03-05 Tom Tromey <tromey@adacore.com>
9316
9317 * windows-nat.c (windows_nat_target::attach)
9318 (windows_nat_target::detach): Don't call gdb_flush.
9319 * valprint.c (generic_val_print, val_print, val_print_string):
9320 Don't call gdb_flush.
9321 * utils.c (defaulted_query): Don't call gdb_flush.
9322 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9323 * target.c (target_announce_detach): Don't call gdb_flush.
9324 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9325 * remote.c (extended_remote_target::attach): Don't call
9326 gdb_flush.
9327 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9328 * printcmd.c (do_examine): Don't call gdb_flush.
9329 (info_display_command): Don't call gdb_flush.
9330 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9331 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9332 * memattr.c (info_mem_command): Don't call gdb_flush.
9333 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9334 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9335 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9336 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9337 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9338 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9339 (gnu_nat_target::detach): Don't call gdb_flush.
9340 * f-valprint.c (f_val_print): Don't call gdb_flush.
9341 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9342 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9343 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9344 gdb_flush.
9345 * c-valprint.c (c_val_print): Don't call gdb_flush.
9346 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9347
895dafa6
TT
93482019-03-05 Tom Tromey <tromey@adacore.com>
9349
9350 * varobj.c (update_dynamic_varobj_children): Update.
9351 (install_default_visualizer): Use reset, not release.
9352 * value.c (set_internalvar): Update.
9353 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9354 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9355 ATTRIBUTE_UNUSED_RESULT.
9356
88a774b9
TT
93572019-03-05 Tom Tromey <tromey@adacore.com>
9358
9359 * remote.c (class scoped_remote_fd) <release>: Add
9360 ATTRIBUTE_UNUSED_RESULT.
9361
4e4a8b93
TT
93622019-03-05 Tom Tromey <tromey@adacore.com>
9363
9364 * macroexp.c (struct macro_buffer) <release>: Add
9365 ATTRIBUTE_UNUSED_RESULT.
9366
083eef1f
TT
93672019-03-05 Tom Tromey <tromey@adacore.com>
9368
9369 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9370 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9371 ATTRIBUTE_UNUSED_RESULT.
9372
3cabd438
TT
93732019-03-05 Tom Tromey <tromey@adacore.com>
9374
9375 * common/scoped_fd.h (class scoped_fd) <release>: Add
9376 ATTRIBUTE_UNUSED_RESULT.
9377
41e3300a
TT
93782019-03-05 Tom Tromey <tromey@adacore.com>
9379
9380 * parser-defs.h (struct parser_state) <release>: Add
9381 ATTRIBUTE_UNUSED_RESULT.
9382
18cb7c9f
TT
93832019-03-05 Tom Tromey <tromey@adacore.com>
9384
9385 * utils.h (class gdb_argv) <release>: Add
9386 ATTRIBUTE_UNUSED_RESULT.
9387 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9388
41fa577f
EZ
93892019-03-02 Eli Zaretskii <eliz@gnu.org>
9390
a6a4b2c6
EZ
9391 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9392 for-loop range, to avoid compiler warnings.
9393
9394 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9395 avoid compiler warnings about unused variables.
9396
742a7df5
EZ
9397 * NEWS: Mention end of support for native debugging on MS-Windows
9398 before XP.
9399
41fa577f
EZ
9400 PR gdb/24292
9401 * common/netstuff.c:
9402 * gdbserver/gdbreplay.c
9403 * gdbserver/remote-utils.c:
9404 * ser-tcp.c:
9405 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9406 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9407 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9408 'getaddrinfo' and 'freeaddrinfo' were not available before
9409 Windows XP, and mingw.org's MinGW headers by default define
9410 _WIN32_WINNT to 0x500.
9411
827f438f
GB
94122019-03-01 Gary Benson <gbenson@redhat.com>
9413
9414 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9415
92137da0
RO
94162019-02-28 Brian Vandenberg <phantall@gmail.com>
9417 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9418
9419 PR gdb/8527
9420 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9421 set_sigint_trap, clear_sigint_trap.
9422
799efbe8
PW
94232019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9424
9425 * target.c (target_detach): Clear the regcache and the
9426 frame cache.
9427
8ed25214
PA
94282019-02-27 Pedro Alves <palves@redhat.com>
9429
9430 * utils.c (set_screen_size): When we cap the height/width sizes,
9431 tweak the corresponding command variable to show "unlimited":
9432
23031e31
SJ
94332019-02-27 Saagar Jha <saagar@saagarjha.com>
9434 Pedro Alves <palves@redhat.com>
9435
9436 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9437 before calling rl_set_screen_size.
9438
6c28e44a
TT
94392019-02-27 Tom Tromey <tromey@adacore.com>
9440
9441 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9442 define.
9443 * python/py-value.c: Remove Python 2.4 workaround.
9444 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9445 workaround.
9446 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9447 Python 2.4 workaround.
9448 * python/python-internal.h: Remove Python 2.4 comment.
9449 (Py_ssize_t): Don't define.
9450 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9451 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9452 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9453 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9454 * python/python.c (do_start_initialization): Remove Python 2.4
9455 workaround.
9456 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9457 (print_children): Remove Python 2.4 workaround.
9458 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9459 workaround.
9460 (CHARBUFFERPROC_NAME): Remove.
9461 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9462 Python 2.4 workaround.
9463
2c3fc25d 94642019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 9465
2c3fc25d
KB
9466 * NEWS: Note minimum Python version.
9467
6ca62222
KB
94682019-02-27 Kevin Buettner <kevinb@redhat.com>
9469
9470 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9471 code from these functions. Remove corresponding ifdefs. Use
9472 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9473 Remove gotos and target of gotos.
9474 (infpy_search_memory): Likewise.
9475
f4bc7d2c
AB
94762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9477
9478 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9479 (hppa_gdbarch_init): Don't register deleted functions with
9480 gdbarch.
9481
9734a586
AB
94822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9483
9484 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9485 (h8300_unwind_sp): Delete.
9486 (h8300_dummy_id): Delete.
9487 (h8300_gdbarch_init): Don't register deleted functions with
9488 gdbarch.
9489
68b867f3
AB
94902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9491
9492 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9493 (ft32_unwind_pc): Delete.
9494 (ft32_unwind_sp): Delete.
9495 (ft32_gdbarch_init): Don't register deleted functions with
9496 gdbarch.
9497
2fbe7ad0
AB
94982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9499
9500 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9501 (frv_unwind_pc): Delete.
9502 (frv_unwind_sp): Delete.
9503 (frv_gdbarch_init): Don't register deleted functions with
9504 gdbarch.
9505
76055cbe
AB
95062019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9507
9508 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9509 (riscv_unwind_pc): Delete.
9510 (riscv_unwind_sp): Delete.
9511 (riscv_gdbarch_init): Don't register deleted functions with
9512 gdbarch.
9513
4133e5a1
AB
95142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9515
9516 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9517 (csky_unwind_pc): Delete.
9518 (csky_unwind_sp): Delete.
9519 (csky_gdbarch_init): Don't register deleted functions with
9520 gdbarch.
9521
8010f576
AB
95222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9523
9524 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9525 (cris_unwind_pc): Delete.
9526 (cris_unwind_sp): Delete.
9527 (cris_gdbarch_init): Don't register deleted functions with
9528 gdbarch.
9529
b56bf084
AB
95302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9531
9532 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9533 (bfin_unwind_pc): Delete.
9534 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9535
a19a650f
AB
95362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9537
9538 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9539 (arm_unwind_pc): Delete.
9540 (arm_unwind_sp): Delete.
9541 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9542
f8278c3c
AB
95432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9544
9545 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9546 (arc_unwind_pc): Delete.
9547 (arc_unwind_sp): Delete.
9548 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9549
480e46cf
AB
95502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9551
9552 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9553 (alpha_unwind_pc): Delete.
9554 (alpha_gdbarch_init): Don't register deleted functions with
9555 gdbarch.
9556
7a995095
AB
95572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9558
9559 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9560 (aarch64_unwind_pc): Delete.
9561 (aarch64_unwind_sp): Delete.
9562 (aarch64_gdbarch_init): Don't register deleted functions with
9563 gdbarch.
9564
bf9a735e
AB
95652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9566
9567 * gdbtypes.c (type_align): Don't consider static members when
9568 computing structure alignment.
9569
5561fc30
AB
95702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9571
9572 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9573 return 0 for other types.
9574 * arch-utils.c (default_type_align): Always return 0.
9575 * gdbarch.h: Regenerate.
9576 * gdbarch.sh (type_align): Extend comment.
9577 * gdbtypes.c (type_align): Add additional comments, always call
9578 gdbarch_type_align before applying the default rules.
9579 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9580 generic code will then apply a suitable default.
9581 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9582 types, return 0 for other types.
9583
9335e75a
JB
95842019-02-27 Joel Brobecker <brobecker@adacore.com>
9585
9586 * NEWS: Create a new section for the next release branch.
9587 Rename the section of the current branch, now that it has
9588 been cut.
9589
3d34d8de
JB
95902019-02-27 Joel Brobecker <brobecker@adacore.com>
9591
9592 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9593 * version.in: Bump version to 8.3.50.DATE-git.
9594
143420fb
SM
95952019-02-26 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * aix-thread.c (ptid_cmp): Remove unused variable.
9598 (get_signaled_thread): Likewise.
9599 (store_regs_user_thread): Likewise.
9600 (store_regs_kernel_thread): Likewise.
9601 (fetch_regs_kernel_thread): Remove shadowed variable.
9602
172fb711
AB
96032019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9604
9605 * features/riscv/32bit-cpu.xml: Add register numbers.
9606 * features/riscv/32bit-fpu.c: Regenerate.
9607 * features/riscv/32bit-fpu.xml: Add register numbers.
9608 * features/riscv/64bit-cpu.xml: Add register numbers.
9609 * features/riscv/64bit-fpu.c: Regenerate.
9610 * features/riscv/64bit-fpu.xml: Add register numbers.
9611
26c89782
KB
96122019-02-26 Kevin Buettner <kevinb@redhat.com>
9613
af54ade9 9614 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
9615 * python/py-value.c (convert_buffer_and_type_to_value): New
9616 function.
9617 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9618 Add support for handling an optional second argument. Call
9619 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
9620 * python/python-internal.h (Py_buffer_deleter): New struct.
9621 (Py_buffer_up): New typedef.
9622
0f58c9e8
JB
96232019-02-25 John Baldwin <jhb@FreeBSD.org>
9624
9625 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9626 instead of releasing ownership.
9627
0a0f4c01
JR
96282019-02-25 Jordan Rupprecht <rupprecht@google.com>
9629
9630 * dwarf2read.c (open_and_init_dwp_file): Call
9631 elf_numsections instead of bfd_count_sections to initialize
9632 dwp_file->num_sections.
9633
cd5a152c
TT
96342019-02-25 Tom Tromey <tromey@adacore.com>
9635
9636 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9637
8a6a8513
SDJ
96382019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9639
9640 * gcore.in: Add '--readnever' option when invoking GDB.
9641
04dcda9c
SM
96422019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9643
9644 * MAINTAINERS: Update my email address.
9645
07bc701d
SM
96462019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9647
9648 * build-id.c (build_id_to_debug_bfd_1): New function.
9649 (build_id_to_debug_bfd): Look for separate debug file in
9650 sysroot.
9651
c6f4a5d0
AB
96522019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9653
9654 * gdbarch.sh: Update the copyright year range that is placed into
9655 generated files.
9656
9600246d
KS
96572019-02-22 Keith Seitz <keiths@redhat.com>
9658
9659 PR symtab/23853
9660 * linespec.c (create_sals_line_offset): Search for the default
9661 symtab's filename instead of its fullname.
9662
7557a514
AH
96632019-02-21 Alan Hayward <alan.hayward@arm.com>
9664
9665 * NEWS: Update style defaults.
9666
ee2bcb0c
AH
96672019-02-21 Alan Hayward <alan.hayward@arm.com>
9668
9669 * main.c (captured_main_1): Disable styling in batch mode.
9670
0c95f9ed
TT
96712019-02-20 Tom Tromey <tom@tromey.com>
9672
9673 * symtab.c (symtab_symbol_info): Fix typos.
9674
c763b894
TT
96752019-02-20 Tom Tromey <tromey@adacore.com>
9676
9677 * findcmd.c (_initialize_mem_search): Use upper case for
9678 metasyntactic variables.
9679
0ef8a082
AH
96802019-02-20 Alan Hayward <alan.hayward@arm.com>
9681
9682 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9683 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9684
6caa91b6
SM
96852019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9686
9687 * top.h (source_file_name): Change to std::string.
9688 * top.c (source_file_name): Likewise.
9689 (command_line_input): Adjust.
9690 * cli/cli-script.c (script_from_file): Adjust.
9691
98814c6c
TT
96922019-02-19 Tom Tromey <tromey@adacore.com>
9693
9694 * ravenscar-thread.c
9695 (ravenscar_thread_target::update_thread_list): Don't call
9696 ada_build_task_list.
9697 * ada-lang.h (ada_build_task_list): Don't declare.
9698 * ada-tasks.c (struct ada_tasks_inferior_data)
9699 <task_list_valid_p>: Now bool.
9700 (read_known_tasks, ada_task_list_changed)
9701 (ada_tasks_invalidate_inferior_data): Update.
9702 (read_known_tasks_array): Return bool.
9703 (read_known_tasks_list): Likewise.
9704 (read_known_tasks): Return void.
9705 (ada_build_task_list): Now static.
9706
70cd633e
AB
97072019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9708
9709 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9710 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9711
040b3e95
PW
97122019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9713
9714 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9715 variant for ada_tasks_pspace_data_handle and
9716 ada_tasks_inferior_data_handle.
9717 (ada_tasks_pspace_data_cleanup): New function.
9718 (ada_tasks_inferior_data_cleanup): New function.
9719
9409233b
TT
97202019-02-17 Tom Tromey <tom@tromey.com>
9721
9722 * macrotab.h (macro_source_fullname): Return a std::string.
9723 * macrotab.c (macro_include, check_for_redefinition)
9724 (macro_undef, macro_lookup_definition, foreach_macro)
9725 (foreach_macro_in_scope): Update.
9726 (macro_source_fullname): Return a std::string.
9727 * macrocmd.c (show_pp_source_pos): Update.
9728
6506371f
TT
97292019-02-17 Tom Tromey <tom@tromey.com>
9730
9731 * macrocmd.c (show_pp_source_pos): Style the file names.
9732
0c820d67
TT
97332019-02-17 Tom Tromey <tom@tromey.com>
9734
9735 PR tui/24197:
9736 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9737
a0087920
TT
97382019-02-17 Tom Tromey <tom@tromey.com>
9739
9740 * ada-lang.c (user_select_syms): Use filtered printing.
9741 * utils.c (wrap_style): New global.
9742 (desired_style): Remove.
9743 (emit_style_escape): Add stream parameter.
9744 (set_output_style, reset_terminal_style, prompt_for_continue):
9745 Update.
9746 (flush_wrap_buffer): Only flush gdb_stdout.
9747 (wrap_here): Set wrap_style.
9748 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9749 treat escape sequences as a character. Change when wrap buffer is
9750 flushed.
9751 (fputs_styled): Do not set the output style when the default is
9752 requested.
9753 * ui-style.h (struct ui_file_style) <is_default>: New method.
9754 * source.c (print_source_lines_base): Emit escape sequences in one
9755 piece.
9756
75ba10dc
JB
97572019-02-17 Joel Brobecker <brobecker@adacore.com>
9758
9759 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9760 integers and enumeration types.
9761
a2cd4f14
JB
97622019-02-17 Joel Brobecker <brobecker@adacore.com>
9763
9764 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9765 instead of lookup_symbol_in_language
9766 (do_exact_match): New function.
9767 (ada_get_symbol_name_matcher): Return do_exact_match when
9768 doing a verbatim match.
9769
485b851b
TT
97702019-02-15 Tom Tromey <tromey@adacore.com>
9771
9772 * ravenscar-thread.c (ravenscar_thread_target::resume)
9773 (ravenscar_thread_target::wait): Special case wildcard requests.
9774
0b790b1e
TT
97752019-02-15 Tom Tromey <tromey@adacore.com>
9776
9777 * ravenscar-thread.c (base_ptid): Remove.
9778 (struct ravenscar_thread_target) <close>: New method.
9779 <m_base_ptid>: New member.
9780 <update_inferior_ptid, active_task, task_is_currently_active,
9781 runtime_initialized>: Declare methods.
9782 <ravenscar_thread_target>: Add constructor.
9783 (ravenscar_thread_target::task_is_currently_active)
9784 (ravenscar_thread_target::update_inferior_ptid)
9785 (ravenscar_runtime_initialized): Rename. Now methods.
9786 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9787 (ravenscar_thread_target::update_thread_list): Update.
9788 (ravenscar_thread_target::active_task): Now method.
9789 (ravenscar_thread_target::store_registers)
9790 (ravenscar_thread_target::prepare_to_store)
9791 (ravenscar_thread_target::prepare_to_store)
9792 (ravenscar_thread_target::mourn_inferior): Update.
9793 (ravenscar_inferior_created): Use "new" to create target.
9794 (ravenscar_thread_target::get_ada_task_ptid): Update.
9795 (_initialize_ravenscar): Don't initialize base_ptid.
9796 (ravenscar_ops): Remove global.
9797
dea57a62
TT
97982019-02-15 Tom Tromey <tromey@adacore.com>
9799
9800 * target.h (push_target): Declare new overload.
9801 * target.c (push_target): New overload, taking an rvalue reference.
9802 * remote.c (remote_target::open_1): Use push_target overload.
9803 * corelow.c (core_target_open): Use push_target overload.
9804
989f3c58
TT
98052019-02-15 Tom Tromey <tromey@adacore.com>
9806
9807 * ravenscar-thread.c (is_ravenscar_task)
9808 (ravenscar_task_is_currently_active): Return bool.
9809 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9810 (_initialize_ravenscar): Remove "(void)".
9811 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9812 Return bool.
9813
6cbcc006
TT
98142019-02-15 Tom Tromey <tromey@adacore.com>
9815
9816 * ravenscar-thread.c (ravenscar_runtime_initializer)
9817 (has_ravenscar_runtime, get_running_thread_id)
9818 (ravenscar_thread_target::resume): Fix indentation.
9819
7657f14d
TT
98202019-02-15 Tom Tromey <tromey@adacore.com>
9821
9822 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9823 from ravenscar_arch_ops.
9824 (sparc_ravenscar_ops::fetch_registers)
9825 (sparc_ravenscar_ops::store_registers): Now methods.
9826 (sparc_ravenscar_prepare_to_store): Remove.
9827 (sparc_ravenscar_ops): Redefine.
9828 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9829 methods and destructor. Remove members.
9830 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9831 (ravenscar_thread_target::store_registers)
9832 (ravenscar_thread_target::prepare_to_store): Update.
9833 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9834 Remove.
9835 (struct ppc_ravenscar_powerpc_ops): Derive from
9836 ravenscar_arch_ops.
9837 (ppc_ravenscar_powerpc_ops::fetch_registers)
9838 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9839 (ppc_ravenscar_powerpc_ops): Redefine.
9840 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9841 (ppc_ravenscar_e500_ops::fetch_registers)
9842 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9843 (ppc_ravenscar_e500_ops): Redefine.
9844 * aarch64-ravenscar-thread.c
9845 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9846 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9847 (aarch64_ravenscar_fetch_registers)
9848 (aarch64_ravenscar_store_registers): Now methods.
9849 (aarch64_ravenscar_ops): Redefine.
9850
5b6ea500
TT
98512019-02-15 Tom Tromey <tromey@adacore.com>
9852
9853 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9854 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9855 (ravenscar_thread_target::stopped_by_watchpoint)
9856 (ravenscar_thread_target::stopped_data_address)
9857 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9858
e397fd39
TT
98592019-02-15 Tom Tromey <tromey@adacore.com>
9860
9861 * ravenscar-thread.c: Fix some typos.
9862
cc12f4a8
TT
98632019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9864 Tom Tromey <tromey@adacore.com>
9865
9866 * ada-lang.c (ada_exception_sal): Change addr_string to a
9867 std::string.
9868 (create_ada_exception_catchpoint): Update.
9869
5f486660
TT
98702019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9871 Tom Tromey <tromey@adacore.com>
9872
9873 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9874 (bp_location_ops): Remove.
9875 (base_breakpoint_allocate_location): Update.
9876 (free_bp_location): Update.
9877 * ada-lang.c (class ada_catchpoint_location)
9878 <ada_catchpoint_location>: Remove ops parameter.
9879 (ada_catchpoint_location_dtor): Remove.
9880 (ada_catchpoint_location_ops): Remove.
9881 (allocate_location_exception): Update.
9882 * breakpoint.h (struct bp_location_ops): Remove.
9883 (class bp_location) <bp_location>: Remove bp_location_ops
9884 parameter.
9885 <~bp_location>: Add destructor.
9886 <ops>: Remove.
9887
b671c7fb
TS
98882019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9889 Pedro Alves <palves@redhat.com>
9890
9891 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9892 'PATH_MAX'.
9893
8071c5ce
DM
98942019-02-14 David Michael <fedora.dm0@gmail.com>
9895 Samuel Thibault <samuel.thibault@gnu.org>
9896 Thomas Schwinge <thomas@codesourcery.com>
9897
9898 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9899 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9900
b1041ae0
TS
99012019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9902
924514e1
TS
9903 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9904 (check_empty): Use "const char *".
9905
c29ee8d4
TS
9906 * gnu-nat.c (gnu_nat_target::detach): Instead of
9907 'detach_inferior (pid)' call
9908 'detach_inferior (find_inferior_pid (pid))'.
9909
6c6ef69f
TS
9910 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9911 'nat/fork-inferior.o'.
9912 * gnu-nat.c: #include "nat/fork-inferior.h".
9913
2d0a338c
TS
9914 * gnu-nat.c (gnu_nat_target::detach): Instead of
9915 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9916 * gnu-nat.h: #include "inf-child.h".
9917 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9918 'i386_gnu_nat_target::fetch_registers'.
9919 (gnu_store_registers): Rename/move to
9920 'i386_gnu_nat_target::store_registers'.
9921
cabb5f06
TS
9922 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9923 * gnu-nat.h (mach_thread_info): New function.
9924 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9925
b1041ae0
TS
9926 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9927
2988d01e
KF
99282019-02-14 Frederic Konrad <konrad@adacore.com>
9929
9930 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9931
c559d709
JB
99322019-02-14 Joel Brobecker <brobecker@adacore.com>
9933
9934 * windows-nat.c (windows_add_thread): Add new parameter
9935 "main_thread_p" with default value set to false. Update
9936 function documentation as well as all callers.
9937 (windows_delete_thread): Likewise.
9938 (fake_create_process): Update call to windows_add_thread.
9939 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9940 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9941 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9942 call to windows_delete_thread.
9943
007024cc
SM
99442019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9945
9946 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9947
f62318e9
JB
99482019-02-12 John Baldwin <jhb@FreeBSD.org>
9949
9950 * symfile.c (find_separate_debug_file): Use canonical path of
9951 sysroot with child_path instead of gdb_sysroot if it is valid.
9952
cd4b7848
JB
99532019-02-12 John Baldwin <jhb@FreeBSD.org>
9954
9955 * symfile.c (find_separate_debug_file): Use child_path to
9956 determine if an object file is under a sysroot.
9957
efac4bfe
JB
99582019-02-12 John Baldwin <jhb@FreeBSD.org>
9959
9960 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9961 unittests/child-path-selftests.c.
9962 * common/pathstuff.c (child_path): New function.
9963 * common/pathstuff.h (child_path): New prototype.
9964 * unittests/child-path-selftests.c: New file.
9965
402d2bfe
JB
99662019-02-12 John Baldwin <jhb@FreeBSD.org>
9967
9968 * symfile.c (find_separate_debug_file): Look for separate debug
9969 files in debug directories under the sysroot.
9970
1ed9f74e
PW
99712019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9972
9973 * symtab.h (struct minimal_symbol data_p): New const method.
9974 (struct minimal_symbol text_p): Likewise.
9975 * symtab.c (output_source_filename): Use file name style
9976 to print file name.
9977 (print_symbol_info): Likewise.
9978 (print_msymbol_info): Use address style to print addresses.
9979 Use function name style to print executable text symbols.
9980 (expand_symtab_containing_pc): Use data_p.
9981 (find_pc_sect_compunit_symtab): Likewise.
9982
2636d81d
PW
99832019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9984
9985 * breakpoint.c (describe_other_breakpoints): Use address style
9986 to print addresses.
9987 (say_where): Likewise.
9988
ac8c53cc
PW
99892019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9990
9991 * ada-typeprint.c (print_func_type): Print function name
9992 style to print function name.
9993 * c-typeprint.c (c_print_type_1): Likewise.
9994
ea638c43
AH
99952019-02-11 Alan Hayward <alan.hayward@arm.com>
9996
9997 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9998 for execve.
9999
ab759ca8
PW
100002019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10001
10002 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10003 type_stack.
10004
aff29d1c
JB
100052019-02-10 Joel Brobecker <brobecker@adacore.com>
10006
10007 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10008 TYPE_CODE_REF types.
10009
617126bc
JW
100102019-02-08 Jim Wilson <jimw@sifive.com>
10011
10012 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10013 (riscv_linux_fregset): New.
10014 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10015
46e3ed7f
TT
100162019-02-07 Tom Tromey <tom@tromey.com>
10017
10018 * thread.c (thread_cancel_execution_command): Update.
10019 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10020 methods.
10021 (struct thread_fsm_ops): Remove.
10022 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10023 (thread_fsm_should_stop, thread_fsm_return_value)
10024 (thread_fsm_set_finished, thread_fsm_finished_p)
10025 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10026 Don't declare.
10027 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10028 * infrun.c (clear_proceed_status_thread)
10029 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10030 (print_stop_event): Update.
10031 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10032 Add constructor.
10033 (step_command_fsm_ops): Remove.
10034 (new_step_command_fsm): Remove.
10035 (step_1): Update.
10036 (step_command_fsm::should_stop): Rename from
10037 step_command_fsm_should_stop.
10038 (step_command_fsm::clean_up): Rename from
10039 step_command_fsm_clean_up.
10040 (step_command_fsm::do_async_reply_reason): Rename from
10041 step_command_fsm_async_reply_reason.
10042 (struct until_next_fsm): Inherit from thread_fsm. Add
10043 constructor.
10044 (until_next_fsm_ops): Remove.
10045 (new_until_next_fsm): Remove.
10046 (until_next_fsm::should_stop): Rename from
10047 until_next_fsm_should_stop.
10048 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10049 (until_next_fsm::do_async_reply_reason): Rename from
10050 until_next_fsm_async_reply_reason.
10051 (struct finish_command_fsm): Inherit from thread_fsm. Add
10052 constructor. Change type of breakpoint.
10053 (finish_command_fsm_ops): Remove.
10054 (new_finish_command_fsm): Remove.
10055 (finish_command_fsm::should_stop): Rename from
10056 finish_command_fsm_should_stop.
10057 (finish_command_fsm::clean_up): Rename from
10058 finish_command_fsm_clean_up.
10059 (finish_command_fsm::return_value): Rename from
10060 finish_command_fsm_return_value.
10061 (finish_command_fsm::do_async_reply_reason): Rename from
10062 finish_command_fsm_async_reply_reason.
10063 (finish_command): Update.
10064 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10065 Add constructor.
10066 (call_thread_fsm_ops): Remove.
10067 (call_thread_fsm::call_thread_fsm): Rename from
10068 new_call_thread_fsm.
10069 (call_thread_fsm::should_stop): Rename from
10070 call_thread_fsm_should_stop.
10071 (call_thread_fsm::should_notify_stop): Rename from
10072 call_thread_fsm_should_notify_stop.
10073 (run_inferior_call, call_function_by_hand_dummy): Update.
10074 * cli/cli-interp.c (should_print_stop_to_console): Update.
10075 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10076 Add constructor. Change type of location_breakpoint,
10077 caller_breakpoint.
10078 (until_break_fsm_ops): Remove.
10079 (new_until_break_fsm): Remove.
10080 (until_break_fsm::should_stop): Rename from
10081 until_break_fsm_should_stop.
10082 (until_break_fsm::clean_up): Rename from
10083 until_break_fsm_clean_up.
10084 (until_break_fsm::do_async_reply_reason): Rename from
10085 until_break_fsm_async_reply_reason.
10086 (until_break_command): Update.
10087 * thread-fsm.c: Remove.
10088 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10089
1a5c2598
TT
100902019-02-07 Tom Tromey <tom@tromey.com>
10091
10092 * yy-remap.h: Add include guard.
10093 * xtensa-tdep.h: Add include guard.
10094 * xcoffread.h: Rename include guard.
10095 * varobj-iter.h: Add include guard.
10096 * tui/tui.h: Rename include guard.
10097 * tui/tui-winsource.h: Rename include guard.
10098 * tui/tui-wingeneral.h: Rename include guard.
10099 * tui/tui-windata.h: Rename include guard.
10100 * tui/tui-win.h: Rename include guard.
10101 * tui/tui-stack.h: Rename include guard.
10102 * tui/tui-source.h: Rename include guard.
10103 * tui/tui-regs.h: Rename include guard.
10104 * tui/tui-out.h: Rename include guard.
10105 * tui/tui-layout.h: Rename include guard.
10106 * tui/tui-io.h: Rename include guard.
10107 * tui/tui-hooks.h: Rename include guard.
10108 * tui/tui-file.h: Rename include guard.
10109 * tui/tui-disasm.h: Rename include guard.
10110 * tui/tui-data.h: Rename include guard.
10111 * tui/tui-command.h: Rename include guard.
10112 * tic6x-tdep.h: Add include guard.
10113 * target/waitstatus.h: Rename include guard.
10114 * target/wait.h: Rename include guard.
10115 * target/target.h: Rename include guard.
10116 * target/resume.h: Rename include guard.
10117 * target-float.h: Rename include guard.
10118 * stabsread.h: Add include guard.
10119 * rs6000-tdep.h: Add include guard.
10120 * riscv-fbsd-tdep.h: Add include guard.
10121 * regformats/regdef.h: Rename include guard.
10122 * record.h: Rename include guard.
10123 * python/python.h: Rename include guard.
10124 * python/python-internal.h: Rename include guard.
10125 * python/py-stopevent.h: Rename include guard.
10126 * python/py-ref.h: Rename include guard.
10127 * python/py-record.h: Rename include guard.
10128 * python/py-record-full.h: Rename include guard.
10129 * python/py-record-btrace.h: Rename include guard.
10130 * python/py-instruction.h: Rename include guard.
10131 * python/py-events.h: Rename include guard.
10132 * python/py-event.h: Rename include guard.
10133 * procfs.h: Add include guard.
10134 * proc-utils.h: Add include guard.
10135 * p-lang.h: Add include guard.
10136 * or1k-tdep.h: Rename include guard.
10137 * observable.h: Rename include guard.
10138 * nto-tdep.h: Rename include guard.
10139 * nat/x86-linux.h: Rename include guard.
10140 * nat/x86-linux-dregs.h: Rename include guard.
10141 * nat/x86-gcc-cpuid.h: Add include guard.
10142 * nat/x86-dregs.h: Rename include guard.
10143 * nat/x86-cpuid.h: Rename include guard.
10144 * nat/ppc-linux.h: Rename include guard.
10145 * nat/mips-linux-watch.h: Rename include guard.
10146 * nat/linux-waitpid.h: Rename include guard.
10147 * nat/linux-ptrace.h: Rename include guard.
10148 * nat/linux-procfs.h: Rename include guard.
10149 * nat/linux-osdata.h: Rename include guard.
10150 * nat/linux-nat.h: Rename include guard.
10151 * nat/linux-namespaces.h: Rename include guard.
10152 * nat/linux-btrace.h: Rename include guard.
10153 * nat/glibc_thread_db.h: Rename include guard.
10154 * nat/gdb_thread_db.h: Rename include guard.
10155 * nat/gdb_ptrace.h: Rename include guard.
10156 * nat/fork-inferior.h: Rename include guard.
10157 * nat/amd64-linux-siginfo.h: Rename include guard.
10158 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10159 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10160 * nat/aarch64-linux.h: Rename include guard.
10161 * nat/aarch64-linux-hw-point.h: Rename include guard.
10162 * mn10300-tdep.h: Add include guard.
10163 * mips-linux-tdep.h: Add include guard.
10164 * mi/mi-parse.h: Rename include guard.
10165 * mi/mi-out.h: Rename include guard.
10166 * mi/mi-main.h: Rename include guard.
10167 * mi/mi-interp.h: Rename include guard.
10168 * mi/mi-getopt.h: Rename include guard.
10169 * mi/mi-console.h: Rename include guard.
10170 * mi/mi-common.h: Rename include guard.
10171 * mi/mi-cmds.h: Rename include guard.
10172 * mi/mi-cmd-break.h: Rename include guard.
10173 * m2-lang.h: Add include guard.
10174 * location.h: Rename include guard.
10175 * linux-record.h: Rename include guard.
10176 * linux-nat.h: Add include guard.
10177 * linux-fork.h: Add include guard.
10178 * i386-darwin-tdep.h: Rename include guard.
10179 * hppa-linux-offsets.h: Add include guard.
10180 * guile/guile.h: Rename include guard.
10181 * guile/guile-internal.h: Rename include guard.
10182 * gnu-nat.h: Rename include guard.
10183 * gdb-stabs.h: Rename include guard.
10184 * frv-tdep.h: Add include guard.
10185 * f-lang.h: Add include guard.
10186 * event-loop.h: Add include guard.
10187 * darwin-nat.h: Rename include guard.
10188 * cp-abi.h: Rename include guard.
10189 * config/sparc/nm-sol2.h: Rename include guard.
10190 * config/nm-nto.h: Rename include guard.
10191 * config/nm-linux.h: Add include guard.
10192 * config/i386/nm-i386gnu.h: Rename include guard.
10193 * config/djgpp/nl_types.h: Rename include guard.
10194 * config/djgpp/langinfo.h: Rename include guard.
10195 * compile/gcc-cp-plugin.h: Add include guard.
10196 * compile/gcc-c-plugin.h: Add include guard.
10197 * compile/compile.h: Rename include guard.
10198 * compile/compile-object-run.h: Rename include guard.
10199 * compile/compile-object-load.h: Rename include guard.
10200 * compile/compile-internal.h: Rename include guard.
10201 * compile/compile-cplus.h: Rename include guard.
10202 * compile/compile-c.h: Rename include guard.
10203 * common/xml-utils.h: Rename include guard.
10204 * common/x86-xstate.h: Rename include guard.
10205 * common/version.h: Rename include guard.
10206 * common/vec.h: Rename include guard.
10207 * common/tdesc.h: Rename include guard.
10208 * common/selftest.h: Rename include guard.
10209 * common/scoped_restore.h: Rename include guard.
10210 * common/scoped_mmap.h: Rename include guard.
10211 * common/scoped_fd.h: Rename include guard.
10212 * common/safe-iterator.h: Rename include guard.
10213 * common/run-time-clock.h: Rename include guard.
10214 * common/refcounted-object.h: Rename include guard.
10215 * common/queue.h: Rename include guard.
10216 * common/ptid.h: Rename include guard.
10217 * common/print-utils.h: Rename include guard.
10218 * common/preprocessor.h: Rename include guard.
10219 * common/pathstuff.h: Rename include guard.
10220 * common/observable.h: Rename include guard.
10221 * common/netstuff.h: Rename include guard.
10222 * common/job-control.h: Rename include guard.
10223 * common/host-defs.h: Rename include guard.
10224 * common/gdb_wait.h: Rename include guard.
10225 * common/gdb_vecs.h: Rename include guard.
10226 * common/gdb_unlinker.h: Rename include guard.
10227 * common/gdb_unique_ptr.h: Rename include guard.
10228 * common/gdb_tilde_expand.h: Rename include guard.
10229 * common/gdb_sys_time.h: Rename include guard.
10230 * common/gdb_string_view.h: Rename include guard.
10231 * common/gdb_splay_tree.h: Rename include guard.
10232 * common/gdb_setjmp.h: Rename include guard.
10233 * common/gdb_ref_ptr.h: Rename include guard.
10234 * common/gdb_optional.h: Rename include guard.
10235 * common/gdb_locale.h: Rename include guard.
10236 * common/gdb_assert.h: Rename include guard.
10237 * common/filtered-iterator.h: Rename include guard.
10238 * common/filestuff.h: Rename include guard.
10239 * common/fileio.h: Rename include guard.
10240 * common/environ.h: Rename include guard.
10241 * common/common-utils.h: Rename include guard.
10242 * common/common-types.h: Rename include guard.
10243 * common/common-regcache.h: Rename include guard.
10244 * common/common-inferior.h: Rename include guard.
10245 * common/common-gdbthread.h: Rename include guard.
10246 * common/common-exceptions.h: Rename include guard.
10247 * common/common-defs.h: Rename include guard.
10248 * common/common-debug.h: Rename include guard.
10249 * common/cleanups.h: Rename include guard.
10250 * common/buffer.h: Rename include guard.
10251 * common/btrace-common.h: Rename include guard.
10252 * common/break-common.h: Rename include guard.
10253 * cli/cli-utils.h: Rename include guard.
10254 * cli/cli-style.h: Rename include guard.
10255 * cli/cli-setshow.h: Rename include guard.
10256 * cli/cli-script.h: Rename include guard.
10257 * cli/cli-interp.h: Rename include guard.
10258 * cli/cli-decode.h: Rename include guard.
10259 * cli/cli-cmds.h: Rename include guard.
10260 * charset-list.h: Add include guard.
10261 * buildsym-legacy.h: Rename include guard.
10262 * bfin-tdep.h: Add include guard.
10263 * ax.h: Rename include guard.
10264 * arm-linux-tdep.h: Add include guard.
10265 * arm-fbsd-tdep.h: Add include guard.
10266 * arch/xtensa.h: Rename include guard.
10267 * arch/tic6x.h: Add include guard.
10268 * arch/i386.h: Add include guard.
10269 * arch/arm.h: Rename include guard.
10270 * arch/arm-linux.h: Rename include guard.
10271 * arch/arm-get-next-pcs.h: Rename include guard.
10272 * arch/amd64.h: Add include guard.
10273 * arch/aarch64-insn.h: Rename include guard.
10274 * arch-utils.h: Rename include guard.
10275 * annotate.h: Add include guard.
10276 * amd64-darwin-tdep.h: Rename include guard.
10277 * aarch64-linux-tdep.h: Add include guard.
10278 * aarch64-fbsd-tdep.h: Add include guard.
10279 * aarch32-linux-nat.h: Add include guard.
10280
ab9268d2
PW
102812019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10282
10283 * macrotab.c (macro_define_internal): New function that
10284 factorizes macro_define_object_internal and macro_define_function
10285 code.
10286 (macro_define_object_internal): Use macro_define_internal.
10287 (macro_define_function): Likewise.
10288
bb0da2b4
PW
102892019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10290
10291 * macrocmd.c (extract_identifier): Return
10292 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10293 callers.
10294
424eb552
JB
102952019-02-06 John Baldwin <jhb@FreeBSD.org>
10296
10297 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10298
1688cb29
TT
102992019-02-05 Tom Tromey <tom@tromey.com>
10300
10301 * target.c (target_stack::unpush): Move assertion earlier.
10302
b5eba2d8
TT
103032019-01-30 Tom Tromey <tom@tromey.com>
10304
10305 PR python/23615:
10306 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10307 (gdbpy_parse_and_eval): Likewise.
10308 * python/python-internal.h (gdbpy_allow_threads): New class.
10309
7054e2ff
JB
103102019-01-28 John Baldwin <jhb@FreeBSD.org>
10311
10312 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10313 (aarch64_fbsd_fpregmap): Move earlier.
10314 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10315 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10316 instead of individual calls to trad_frame_set_reg_addr.
10317 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10318 earlier.
10319 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10320 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10321 instead of individual calls to trad_frame_set_reg_addr.
10322
36c25ffa
AH
103232019-01-28 Alan Hayward <alan.hayward@arm.com>
10324
10325 * CONTRIBUTE: Replace contribution list with wiki link.
10326
a0707f3c
TT
103272019-01-25 Tom Tromey <tom@tromey.com>
10328
10329 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10330
0747795c
TT
103312019-01-25 Tom Tromey <tom@tromey.com>
10332
10333 * xtensa-linux-nat.c: Fix common/ includes.
10334 * xml-support.h: Fix common/ includes.
10335 * xml-support.c: Fix common/ includes.
10336 * x86-linux-nat.c: Fix common/ includes.
10337 * windows-nat.c: Fix common/ includes.
10338 * varobj.h: Fix common/ includes.
10339 * varobj.c: Fix common/ includes.
10340 * value.c: Fix common/ includes.
10341 * valops.c: Fix common/ includes.
10342 * utils.c: Fix common/ includes.
10343 * unittests/xml-utils-selftests.c: Fix common/ includes.
10344 * unittests/utils-selftests.c: Fix common/ includes.
10345 * unittests/unpack-selftests.c: Fix common/ includes.
10346 * unittests/tracepoint-selftests.c: Fix common/ includes.
10347 * unittests/style-selftests.c: Fix common/ includes.
10348 * unittests/string_view-selftests.c: Fix common/ includes.
10349 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10350 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10351 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10352 * unittests/rsp-low-selftests.c: Fix common/ includes.
10353 * unittests/parse-connection-spec-selftests.c: Fix common/
10354 includes.
10355 * unittests/optional-selftests.c: Fix common/ includes.
10356 * unittests/offset-type-selftests.c: Fix common/ includes.
10357 * unittests/observable-selftests.c: Fix common/ includes.
10358 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10359 * unittests/memrange-selftests.c: Fix common/ includes.
10360 * unittests/memory-map-selftests.c: Fix common/ includes.
10361 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10362 * unittests/function-view-selftests.c: Fix common/ includes.
10363 * unittests/environ-selftests.c: Fix common/ includes.
10364 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10365 * unittests/common-utils-selftests.c: Fix common/ includes.
10366 * unittests/cli-utils-selftests.c: Fix common/ includes.
10367 * unittests/array-view-selftests.c: Fix common/ includes.
10368 * ui-file.c: Fix common/ includes.
10369 * tui/tui-io.c: Fix common/ includes.
10370 * tracepoint.h: Fix common/ includes.
10371 * tracepoint.c: Fix common/ includes.
10372 * tracefile-tfile.c: Fix common/ includes.
10373 * top.h: Fix common/ includes.
10374 * top.c: Fix common/ includes.
10375 * thread.c: Fix common/ includes.
10376 * target/waitstatus.h: Fix common/ includes.
10377 * target/waitstatus.c: Fix common/ includes.
10378 * target.h: Fix common/ includes.
10379 * target.c: Fix common/ includes.
10380 * target-memory.c: Fix common/ includes.
10381 * target-descriptions.c: Fix common/ includes.
10382 * symtab.h: Fix common/ includes.
10383 * symfile.c: Fix common/ includes.
10384 * stap-probe.c: Fix common/ includes.
10385 * spu-linux-nat.c: Fix common/ includes.
10386 * sparc-nat.c: Fix common/ includes.
10387 * source.c: Fix common/ includes.
10388 * solib.c: Fix common/ includes.
10389 * solib-target.c: Fix common/ includes.
10390 * ser-unix.c: Fix common/ includes.
10391 * ser-tcp.c: Fix common/ includes.
10392 * ser-pipe.c: Fix common/ includes.
10393 * ser-base.c: Fix common/ includes.
10394 * selftest-arch.c: Fix common/ includes.
10395 * s12z-tdep.c: Fix common/ includes.
10396 * rust-exp.y: Fix common/ includes.
10397 * rs6000-aix-tdep.c: Fix common/ includes.
10398 * riscv-tdep.c: Fix common/ includes.
10399 * remote.c: Fix common/ includes.
10400 * remote-notif.h: Fix common/ includes.
10401 * remote-fileio.h: Fix common/ includes.
10402 * remote-fileio.c: Fix common/ includes.
10403 * regcache.h: Fix common/ includes.
10404 * regcache.c: Fix common/ includes.
10405 * record-btrace.c: Fix common/ includes.
10406 * python/python.c: Fix common/ includes.
10407 * python/py-type.c: Fix common/ includes.
10408 * python/py-inferior.c: Fix common/ includes.
10409 * progspace.h: Fix common/ includes.
10410 * producer.c: Fix common/ includes.
10411 * procfs.c: Fix common/ includes.
10412 * proc-api.c: Fix common/ includes.
10413 * printcmd.c: Fix common/ includes.
10414 * ppc-linux-nat.c: Fix common/ includes.
10415 * parser-defs.h: Fix common/ includes.
10416 * osdata.c: Fix common/ includes.
10417 * obsd-nat.c: Fix common/ includes.
10418 * nat/x86-linux.c: Fix common/ includes.
10419 * nat/x86-linux-dregs.c: Fix common/ includes.
10420 * nat/x86-dregs.h: Fix common/ includes.
10421 * nat/x86-dregs.c: Fix common/ includes.
10422 * nat/ppc-linux.c: Fix common/ includes.
10423 * nat/mips-linux-watch.h: Fix common/ includes.
10424 * nat/mips-linux-watch.c: Fix common/ includes.
10425 * nat/linux-waitpid.c: Fix common/ includes.
10426 * nat/linux-ptrace.h: Fix common/ includes.
10427 * nat/linux-ptrace.c: Fix common/ includes.
10428 * nat/linux-procfs.c: Fix common/ includes.
10429 * nat/linux-personality.c: Fix common/ includes.
10430 * nat/linux-osdata.c: Fix common/ includes.
10431 * nat/linux-namespaces.c: Fix common/ includes.
10432 * nat/linux-btrace.h: Fix common/ includes.
10433 * nat/linux-btrace.c: Fix common/ includes.
10434 * nat/fork-inferior.c: Fix common/ includes.
10435 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10436 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10437 * nat/aarch64-linux.c: Fix common/ includes.
10438 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10439 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10440 * namespace.h: Fix common/ includes.
10441 * mips-linux-tdep.c: Fix common/ includes.
10442 * minsyms.c: Fix common/ includes.
10443 * mi/mi-parse.h: Fix common/ includes.
10444 * mi/mi-main.c: Fix common/ includes.
10445 * mi/mi-cmd-env.c: Fix common/ includes.
10446 * memrange.h: Fix common/ includes.
10447 * memattr.c: Fix common/ includes.
10448 * maint.h: Fix common/ includes.
10449 * maint.c: Fix common/ includes.
10450 * main.c: Fix common/ includes.
10451 * machoread.c: Fix common/ includes.
10452 * location.c: Fix common/ includes.
10453 * linux-thread-db.c: Fix common/ includes.
10454 * linux-nat.c: Fix common/ includes.
10455 * linux-fork.c: Fix common/ includes.
10456 * inline-frame.c: Fix common/ includes.
10457 * infrun.c: Fix common/ includes.
10458 * inflow.c: Fix common/ includes.
10459 * inferior.h: Fix common/ includes.
10460 * inferior.c: Fix common/ includes.
10461 * infcmd.c: Fix common/ includes.
10462 * inf-ptrace.c: Fix common/ includes.
10463 * inf-child.c: Fix common/ includes.
10464 * ia64-linux-nat.c: Fix common/ includes.
10465 * i387-tdep.c: Fix common/ includes.
10466 * i386-tdep.c: Fix common/ includes.
10467 * i386-linux-tdep.c: Fix common/ includes.
10468 * i386-linux-nat.c: Fix common/ includes.
10469 * i386-go32-tdep.c: Fix common/ includes.
10470 * i386-fbsd-tdep.c: Fix common/ includes.
10471 * i386-fbsd-nat.c: Fix common/ includes.
10472 * guile/scm-type.c: Fix common/ includes.
10473 * guile/guile.c: Fix common/ includes.
10474 * go32-nat.c: Fix common/ includes.
10475 * gnu-nat.c: Fix common/ includes.
10476 * gdbthread.h: Fix common/ includes.
10477 * gdbarch-selftests.c: Fix common/ includes.
10478 * gdb_usleep.c: Fix common/ includes.
10479 * gdb_select.h: Fix common/ includes.
10480 * gdb_bfd.c: Fix common/ includes.
10481 * gcore.c: Fix common/ includes.
10482 * fork-child.c: Fix common/ includes.
10483 * findvar.c: Fix common/ includes.
10484 * fbsd-nat.c: Fix common/ includes.
10485 * event-top.c: Fix common/ includes.
10486 * event-loop.c: Fix common/ includes.
10487 * dwarf2read.c: Fix common/ includes.
10488 * dwarf2loc.c: Fix common/ includes.
10489 * dwarf2-frame.c: Fix common/ includes.
10490 * dwarf-index-cache.c: Fix common/ includes.
10491 * dtrace-probe.c: Fix common/ includes.
10492 * disasm-selftests.c: Fix common/ includes.
10493 * defs.h: Fix common/ includes.
10494 * csky-tdep.c: Fix common/ includes.
10495 * cp-valprint.c: Fix common/ includes.
10496 * cp-support.h: Fix common/ includes.
10497 * cp-support.c: Fix common/ includes.
10498 * corelow.c: Fix common/ includes.
10499 * completer.h: Fix common/ includes.
10500 * completer.c: Fix common/ includes.
10501 * compile/compile.c: Fix common/ includes.
10502 * compile/compile-loc2c.c: Fix common/ includes.
10503 * compile/compile-cplus-types.c: Fix common/ includes.
10504 * compile/compile-cplus-symbols.c: Fix common/ includes.
10505 * command.h: Fix common/ includes.
10506 * cli/cli-dump.c: Fix common/ includes.
10507 * cli/cli-cmds.c: Fix common/ includes.
10508 * charset.c: Fix common/ includes.
10509 * build-id.c: Fix common/ includes.
10510 * btrace.h: Fix common/ includes.
10511 * btrace.c: Fix common/ includes.
10512 * breakpoint.h: Fix common/ includes.
10513 * breakpoint.c: Fix common/ includes.
10514 * ax.h:
10515 (enum agent_op): Fix common/ includes.
10516 * ax-general.c (struct aop_map): Fix common/ includes.
10517 * ax-gdb.c: Fix common/ includes.
10518 * auxv.c: Fix common/ includes.
10519 * auto-load.c: Fix common/ includes.
10520 * arm-tdep.c: Fix common/ includes.
10521 * arch/riscv.c: Fix common/ includes.
10522 * arch/ppc-linux-common.c: Fix common/ includes.
10523 * arch/i386.c: Fix common/ includes.
10524 * arch/arm.c: Fix common/ includes.
10525 * arch/arm-linux.c: Fix common/ includes.
10526 * arch/arm-get-next-pcs.c: Fix common/ includes.
10527 * arch/amd64.c: Fix common/ includes.
10528 * arch/aarch64.c: Fix common/ includes.
10529 * arch/aarch64-insn.c: Fix common/ includes.
10530 * arch-utils.c: Fix common/ includes.
10531 * amd64-windows-tdep.c: Fix common/ includes.
10532 * amd64-tdep.c: Fix common/ includes.
10533 * amd64-sol2-tdep.c: Fix common/ includes.
10534 * amd64-obsd-tdep.c: Fix common/ includes.
10535 * amd64-nbsd-tdep.c: Fix common/ includes.
10536 * amd64-linux-tdep.c: Fix common/ includes.
10537 * amd64-linux-nat.c: Fix common/ includes.
10538 * amd64-fbsd-tdep.c: Fix common/ includes.
10539 * amd64-fbsd-nat.c: Fix common/ includes.
10540 * amd64-dicos-tdep.c: Fix common/ includes.
10541 * amd64-darwin-tdep.c: Fix common/ includes.
10542 * agent.c: Fix common/ includes.
10543 * ada-lang.h: Fix common/ includes.
10544 * ada-lang.c: Fix common/ includes.
10545 * aarch64-tdep.c: Fix common/ includes.
10546
2f5c153e
TT
105472019-01-25 Tom Tromey <tom@tromey.com>
10548
10549 * common/create-version.sh: Use common/version.h.
10550
adc6a863
PA
105512019-01-24 Pedro Alves <palves@redhat.com>
10552
10553 * infrun.c (signal_stop, signal_print, signal_program)
10554 (signal_catch, signal_pass): Now arrays instead of pointers.
10555 (update_signals_program_target, do_target_resume)
10556 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10557 * linux-nat.c (linux_nat_target::pass_signals)
10558 (linux_nat_target::create_inferior, linux_nat_target::attach):
10559 Adjust.
10560 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10561 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10562 * procfs.c (procfs_target::pass_signals): Adjust.
10563 * record-full.c (record_full_target::resume): Adjust.
10564 * remote.c (remote_target::pass_signals)
10565 (remote_target::program_signals): Adjust.
10566 * target-debug.h (target_debug_print_signals): Now takes a
10567 gdb::array_view as parameter. Adjust.
10568 * target.h (target_ops) <pass_signals, program_signals>: Replace
10569 pointer and length parameters with gdb::array_view.
10570 (target_pass_signals, target_program_signals): Likewise.
10571 * target-delegates.c: Regenerate.
10572
3046d67a
PA
105732019-01-24 Pedro Alves <palves@redhat.com>
10574
10575 * common/forward-scope-exit.h
10576 (forward_scope_exit::forward_scope_exit): Pass arguments to
10577 m_bind_function directly, instead of creating a std::bind and
10578 copying that.
10579
353229bf
AH
105802019-01-24 Alan Hayward <alan.hayward@arm.com>
10581
10582 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10583 for static members.
10584 (pass_in_v_vfp_candidate): Likewise.
10585
311dc83a
TT
105862019-01-23 Tom Tromey <tom@tromey.com>
10587 Pedro Alves <palves@redhat.com>
10588
10589 * regcache.c (class regcache_invalidator): Remove.
10590 (regcache::raw_write): Use make_scope_exit.
10591
296bd123
TT
105922019-01-23 Tom Tromey <tom@tromey.com>
10593
10594 * ui-out.h (class ui_out_emit_type): Update comment.
10595
979a0d13
TT
105962019-01-23 Tom Tromey <tom@tromey.com>
10597
10598 * infrun.c (fetch_inferior_event): Update comment.
10599
d238133d
TT
106002019-01-23 Tom Tromey <tom@tromey.com>
10601 Pedro Alves <palves@redhat.com>
10602
10603 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10604 parameter.
10605 (fetch_inferior_event): Use SCOPE_EXIT.
10606
10607
9885e6bb
TT
106082019-01-23 Tom Tromey <tom@tromey.com>
10609 Pedro Alves <palves@redhat.com>
10610
10611 * infrun.c (disable_thread_events): Delete.
10612 (stop_all_threads): Use SCOPE_EXIT.
10613
286526c1
TT
106142019-01-23 Tom Tromey <tom@tromey.com>
10615 Pedro Alves <palves@redhat.com>
10616
10617 * symfile.c: Include forward-scope-exit.h.
10618 (clear_symtab_users_cleanup): Replace forward declaration with
10619 a FORWARD_SCOPE_EXIT.
10620 (syms_from_objfile_1): Use the forward_scope_exit and
10621 gdb::optional instead of cleanup_function.
10622 (reread_symbols): Use the forward_scope_exit instead of
10623 cleanup_function.
10624 (clear_symtab_users_cleanup): Remove function.
10625
1db93f14
TT
106262019-01-23 Tom Tromey <tom@tromey.com>
10627 Pedro Alves <palves@redhat.com>
10628
10629 * linux-nat.c: Include scope-exit.h.
10630 (cleanup_target_stop): Remove.
10631 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10632 SCOPE_EXIT.
10633
2cc83d1e
TT
106342019-01-23 Tom Tromey <tom@tromey.com>
10635 Pedro Alves <palves@redhat.com>
10636
10637 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10638 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10639
694c6bf5
TT
106402019-01-23 Tom Tromey <tom@tromey.com>
10641 Andrew Burgess <andrew.burgess@embecosm.com>
10642 Pedro Alves <palves@redhat.com>
10643
10644 * infrun.c (fetch_inferior_event): Use scope_exit.
10645 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10646 * top.c (execute_command): Use scope_exit.
10647 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10648 * utils.c (do_bpstat_clear_actions_cleanup)
10649 (make_bpstat_clear_actions_cleanup): Remove.
10650
4c41382a
TT
106512019-01-23 Tom Tromey <tom@tromey.com>
10652 Pedro Alves <palves@redhat.com>
10653
10654 * infrun.c: Include "common/scope-exit.h"
10655 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10656 (wait_for_inferior): Use SCOPE_EXIT.
10657 (fetch_inferior_event): Use scope_exit.
10658
89f8fb50
TT
106592019-01-23 Tom Tromey <tom@tromey.com>
10660 Pedro Alves <palves@redhat.com>
10661
10662 * breakpoint.c (create_breakpoint): Remove cleanup.
10663
5419bdae
TT
106642019-01-23 Tom Tromey <tom@tromey.com>
10665 Andrew Burgess <andrew.burgess@embecosm.com>
10666 Pedro Alves <palves@redhat.com>
10667
e587ef42
PA
106682019-01-23 Pedro Alves <palves@redhat.com>
10669
10670 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10671
77f0e74c
PA
106722019-01-23 Pedro Alves <palves@redhat.com>
10673 Andrew Burgess <andrew.burgess@embecosm.com>
10674
10675 * gdbthread.h: Include "common/forward-scope-exit.h".
10676 (scoped_finish_thread_state): Redefine custom class in terms of
10677 forward_scope_exit.
10678
5b9b3e53
PA
106792019-01-23 Pedro Alves <palves@redhat.com>
10680 Andrew Burgess <andrew.burgess@embecosm.com>
10681
10682 * common/forward-scope-exit.h: New file.
10683
54b65c9b
PA
106842019-01-23 Pedro Alves <palves@redhat.com>
10685 Andrew Burgess <andrew.burgess@embecosm.com>
10686 Tom Tromey <tom@tromey.com>
10687
10688 * common/scope-exit.h: New file.
10689
cf08fb29
PA
106902019-01-23 Pedro Alves <palves@redhat.com>
10691
10692 * common/preprocessor.h (ESC): Rename to ...
10693 (ESC_PARENS): ... this.
10694 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10695 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10696
ae73e2e2
TT
106972019-01-23 Tom Tromey <tom@tromey.com>
10698
10699 * language.h (class scoped_switch_to_sym_language_if_auto):
10700 Initialize m_lang in both cases.
10701
6594e122
AH
107022019-01-23 Alan Hayward <alan.hayward@arm.com>
10703
10704 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10705 with XCNEW.
10706
a7c9855d
TT
107072019-01-22 Tom Tromey <tom@tromey.com>
10708
10709 * corelow.c: Do not include sys/file.h.
10710
93cc1d53
TT
107112019-01-22 Tom Tromey <tom@tromey.com>
10712
10713 * tui/tui-wingeneral.h: Include gdb_curses.h.
10714
38561778
TT
107152019-01-22 Tom Tromey <tom@tromey.com>
10716
10717 * source-cache.h (class source_cache) <get_source_lines,
10718 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10719
37b3ab5b
TT
107202019-01-22 Tom Tromey <tom@tromey.com>
10721
10722 * remote-fileio.h (struct remote_target): Declare.
10723
3fabc016
TT
107242019-01-22 Tom Tromey <tom@tromey.com>
10725
10726 * python/py-arch.c: Do not include py-ref.h.
10727 * python/py-bpevent.c: Do not include py-ref.h.
10728 * python/py-cmd.c: Do not include py-ref.h.
10729 * python/py-continueevent.c: Do not include py-ref.h.
10730 * python/py-event.h: Do not include py-ref.h.
10731 * python/py-evtregistry.c: Do not include py-ref.h.
10732 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10733 * python/py-frame.c: Do not include py-ref.h.
10734 * python/py-framefilter.c: Do not include py-ref.h.
10735 * python/py-function.c: Do not include py-ref.h.
10736 * python/py-infevents.c: Do not include py-ref.h.
10737 * python/py-linetable.c: Do not include py-ref.h.
10738 * python/py-objfile.c: Do not include py-ref.h.
10739 * python/py-param.c: Do not include py-ref.h.
10740 * python/py-prettyprint.c: Do not include py-ref.h.
10741 * python/py-progspace.c: Do not include py-ref.h.
10742 * python/py-symbol.c: Do not include py-ref.h.
10743 * python/py-symtab.c: Do not include py-ref.h.
10744 * python/py-type.c: Do not include py-ref.h.
10745 * python/py-unwind.c: Do not include py-ref.h.
10746 * python/py-utils.c: Do not include py-ref.h.
10747 * python/py-value.c: Do not include py-ref.h.
10748 * python/py-varobj.c: Do not include py-ref.h.
10749 * python/py-xmethods.c: Do not include py-ref.h.
10750 * python/python.c: Do not include py-ref.h.
10751 * varobj.c: Do not include py-ref.h.
10752
6b4d7774
TT
107532019-01-22 Tom Tromey <tom@tromey.com>
10754
10755 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10756 keyword for bcache.
10757
7af7e9b5
TT
107582019-01-22 Tom Tromey <tom@tromey.com>
10759
10760 * compile/compile-cplus-types.c: Remove a comment by #include.
10761
951d1049
TT
107622019-01-22 Tom Tromey <tom@tromey.com>
10763
10764 * compile/gcc-c-plugin.h: Include compile-internal.h.
10765
d65d5705
TT
107662019-01-22 Tom Tromey <tom@tromey.com>
10767
10768 * stabsread.c (EXTERN): Do not define.
10769 (symnum, next_symbol_text_func, processing_gcc_compilation)
10770 (within_function, global_sym_chain, global_stabs)
10771 (previous_stab_code, this_object_header_files)
10772 (n_this_object_header_files)
10773 (n_allocated_this_object_header_files): Define.
10774 * stabsread.h (EXTERN): Never define. Use "extern".
10775
b6fb1ee5
PW
107762019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10777
10778 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10779 history_value.
10780
be6d4f74
TT
107812019-01-21 Tom Tromey <tom@tromey.com>
10782
10783 * ui-out.c: Fix includes.
10784 * tui/tui-source.c: Fix includes.
10785 * target.c: Fix includes.
10786 * remote.c: Fix includes.
10787 * regcache.c: Fix includes.
10788 * python/py-block.c: Fix includes.
10789 * printcmd.c: Fix includes.
10790 * or1k-tdep.c: Fix includes.
10791 * mi/mi-main.c: Fix includes.
10792 * m32r-tdep.c: Fix includes.
10793 * csky-tdep.c: Fix includes.
10794 * compile/compile-cplus-types.c: Fix includes.
10795 * cli/cli-interp.c: Fix includes.
10796
73021deb
AH
107972019-01-21 Alan Hayward <alan.hayward@arm.com>
10798
10799 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10800 for padding.
10801
7932255d
TT
108022019-01-16 Tom Tromey <tom@tromey.com>
10803
10804 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10805 earlier.
10806 (struct objfile) <msymbols_range>: Move from top level.
10807 <msymbols>: New method.
10808 (class objfile_msymbols): Remove.
10809 * symtab.c (default_collect_symbol_completion_matches_break_on):
10810 Update.
10811 * symmisc.c (dump_msymbols): Update.
10812 * stabsread.c (scan_file_globals): Update.
10813 * objc-lang.c (info_selectors_command, info_classes_command)
10814 (find_methods): Update.
10815 * minsyms.c (find_solib_trampoline_target): Update.
10816 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10817 * coffread.c (coff_symfile_read): Update.
10818 * ada-lang.c (ada_lookup_simple_minsym)
10819 (ada_collect_symbol_completion_matches): Update.
10820
604b1bfb
TT
108212019-01-16 Tom Tromey <tom@tromey.com>
10822
10823 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10824 type. Remove no-argument constructor.
10825 <iterator::operator++>: Simplify.
10826 <begin>: Update.
10827 <end>: Use minimal_symbol_count.
10828
f252c6d5
TT
108292019-01-16 Tom Tromey <tom@tromey.com>
10830
10831 * objfiles.h (struct objfile) <psymtabs>: New method.
10832 (class objfile_psymtabs): Remove.
10833 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10834 typedef.
10835 <range>: New method.
10836 (require_partial_symbols): Change return type.
10837 * psymtab.c (require_partial_symbols)
10838 (psym_expand_symtabs_matching): Update.
10839 * mdebugread.c (parse_partial_symbols): Update.
10840 * dbxread.c (dbx_end_psymtab): Update.
10841
b669c953
TT
108422019-01-15 Tom Tromey <tom@tromey.com>
10843
10844 * symtab.c (lookup_objfile_from_block)
10845 (lookup_symbol_in_objfile_symtabs)
10846 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10847 (find_line_symtab, info_sources_command)
10848 (default_collect_symbol_completion_matches_break_on)
10849 (make_source_files_completion_list): Update.
10850 * symmisc.c (print_objfile_statistics, dump_objfile)
10851 (maintenance_print_symbols, maintenance_info_symtabs)
10852 (maintenance_check_symtabs, maintenance_info_line_tables):
10853 Update.
10854 * source.c (select_source_symtab)
10855 (forget_cached_source_info_for_objfile): Update.
10856 * objfiles.h (class objfile_compunits): Remove.
10857 (struct objfile) <compunits_range>: New typedef.
10858 (compunits): New method.
10859 * objfiles.c (objfile_relocate1): Update.
10860 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10861 * maint.c (count_symtabs_and_blocks): Update.
10862 * linespec.c (iterate_over_all_matching_symtabs): Update.
10863 * cp-support.c (add_symbol_overload_list_qualified): Update.
10864 * coffread.c (coff_symtab_read): Update.
10865 * ada-lang.c (add_nonlocal_symbols)
10866 (ada_collect_symbol_completion_matches)
10867 (ada_add_global_exceptions): Update.
10868
7e955d83
TT
108692019-01-15 Tom Tromey <tom@tromey.com>
10870
10871 * progspace.h (program_space) <objfiles_safe_range>: New
10872 typedef.
10873 <objfiles_safe>: New method.
10874 * objfiles.h (class all_objfiles_safe): Remove.
10875 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10876 * jit.c (jit_inferior_exit_hook): Update.
10877
2030c079
TT
108782019-01-17 Tom Tromey <tom@tromey.com>
10879
10880 * progspace.h (program_space) <objfiles_range>: New typedef.
10881 <objfiles>: New method.
10882 <objfiles_head>: Rename from objfiles.
10883 (object_files): Update.
10884 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10885 * guile/scm-pretty-print.c
10886 (ppscm_find_pretty_printer_from_objfiles): Update.
10887 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10888 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10889 Update.
10890 * python/py-progspace.c (pspy_get_objfiles): Update.
10891 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10892 Update.
10893 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10894 (objfpy_lookup_objfile_by_build_id): Update.
10895 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10896 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10897 Update.
10898 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10899 (expand_symtab_containing_pc, lookup_objfile_from_block)
10900 (lookup_static_symbol, basic_lookup_transparent_type)
10901 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10902 (find_line_symtab, info_sources_command)
10903 (default_collect_symbol_completion_matches_break_on)
10904 (make_source_files_completion_list, find_main_name): Update.
10905 * symmisc.c (print_symbol_bcache_statistics)
10906 (print_objfile_statistics, maintenance_print_symbols)
10907 (maintenance_print_msymbols, maintenance_print_objfiles)
10908 (maintenance_info_symtabs, maintenance_check_symtabs)
10909 (maintenance_expand_symtabs, maintenance_info_line_tables):
10910 Update.
10911 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10912 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10913 (map_overlay_command, unmap_overlay_command)
10914 (simple_overlay_update, expand_symtabs_matching)
10915 (map_symbol_filenames): Update.
10916 * symfile-debug.c (set_debug_symfile): Update.
10917 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10918 Update.
10919 * source.c (select_source_symtab, forget_cached_source_info):
10920 Update.
10921 * solib.c (solib_read_symbols): Update.
10922 * solib-spu.c (append_ocl_sos): Update.
10923 * psymtab.c (maintenance_print_psymbols)
10924 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10925 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10926 * printcmd.c (info_symbol_command): Update.
10927 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10928 Update.
10929 * objfiles.h (class all_objfiles): Remove.
10930 * objfiles.c (have_partial_symbols, have_full_symbols)
10931 (have_minimal_symbols, qsort_cmp, update_section_map)
10932 (shared_objfile_contains_address_p)
10933 (default_iterate_over_objfiles_in_search_order): Update.
10934 * objc-lang.c (info_selectors_command, info_classes_command)
10935 (find_methods): Update.
10936 * minsyms.c (find_solib_trampoline_target): Update.
10937 * maint.c (maintenance_info_sections)
10938 (maintenance_translate_address, count_symtabs_and_blocks):
10939 Update.
10940 * main.c (captured_main_1): Update.
10941 * linux-thread-db.c (try_thread_db_load_from_pdir)
10942 (has_libpthread): Update.
10943 * linespec.c (iterate_over_all_matching_symtabs)
10944 (search_minsyms_for_name): Update.
10945 * jit.c (jit_find_objf_with_entry_addr): Update.
10946 * hppa-tdep.c (find_unwind_entry)
10947 (hppa_lookup_stub_minimal_symbol): Update.
10948 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10949 Update.
10950 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10951 (elf_gnu_ifunc_resolve_by_got): Update.
10952 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10953 * dwarf-index-write.c (save_gdb_index_command): Update.
10954 * cp-support.c (add_symbol_overload_list_qualified): Update.
10955 * breakpoint.c (create_overlay_event_breakpoint)
10956 (create_longjmp_master_breakpoint)
10957 (create_std_terminate_master_breakpoint)
10958 (create_exception_master_breakpoint): Update.
10959 * blockframe.c (find_pc_partial_function): Update.
10960 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10961 (ada_collect_symbol_completion_matches)
10962 (ada_add_global_exceptions): Update.
10963
776489e0
TT
109642019-01-17 Tom Tromey <tom@tromey.com>
10965
10966 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10967 declare VEC.
10968 (solib_target_parse_libraries): Change return type.
10969 (library_list_start_segment, library_list_start_section)
10970 (library_list_end_library, library_list_start_library); Update.
10971 (solib_target_free_library_list): Remove.
10972 (solib_target_parse_libraries): Remove cleanup. Change return
10973 type.
10974 (solib_target_current_sos): Update.
10975
6471e7d2
TT
109762019-01-17 Tom Tromey <tromey@bapiya>
10977
10978 * valprint.c: Replace "the the" with "the".
10979 * symtab.c: Replace "the the" with "the".
10980 * solib.c: Replace "the the" with "the".
10981 * solib-dsbt.c: Replace "the the" with "the".
10982 * linespec.c: Replace "the the" with "the".
10983 * dwarf2loc.h: Replace "the the" with "the".
10984 * amd64-windows-tdep.c: Replace "the the" with "the".
10985 * aarch64-tdep.c: Replace "the the" with "the".
10986
c24bdb02
KS
109872019-01-16 Keith Seitz <keiths@redhat.com>
10988
10989 PR gdb/23773
10990 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10991 <builder>: Rename to ..
10992 <m_builder>: ... this and make private.
10993 (dwarf2_cu::get_builder): New method. Change all users of
10994 `builder' to use this method.
10995 (dwarf2_start_symtab): Move to ...
10996 (dwarf2_cu::start_symtab): ... here. Update all callers
10997 (setup_type_unit_groups): Move to ...
10998 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10999 callers.
11000 (dwarf2_cu::reset_builder): New method.
11001 (process_full_compunit, process_full_type_unit): Use
11002 dwarf2_cu::reset_builder.
11003 (follow_die_offset): Record the ancestor CU if it is different
11004 from the followed DIE's CU.
11005 (follow_die_sig_1): Likewise.
11006
8d64371b
TT
110072019-01-15 Tom Tromey <tom@tromey.com>
11008
11009 * remote.c (class remote_state) <buf>: Now a char_vector.
11010 <buf_size>: Remove.
11011 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11012 parameter.
11013 (remote_target::getpkt_or_notif_sane_1)
11014 (remote_target::getpkt_sane)
11015 (remote_target::getpkt_or_notif_sane): Likewise.
11016 (class remote_target) <putpkt>: New overload.
11017 (remote_target::read_frame): Change type of "buf_p". Remove
11018 sizeof_p parameter.
11019 (packet_ok): New overload.
11020 (packet_check_result): New overload.
11021 Update all uses.
11022
bb277751
TT
110232019-01-14 Tom Tromey <tom@tromey.com>
11024
11025 * remote-notif.c (handle_notification, remote_notif_ack)
11026 (remote_notif_parse): Make "buf" const.
11027 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11028 const.
11029 (remote_notif_parse, remote_notif_ack, handle_notification):
11030 Likewise.
11031 * remote.c (remote_notif_stop_parse): Make "buf" const.
11032 (remote_target::remote_parse_stop_reply): Make "buf" const.
11033 (remote_notif_stop_ack): Make "buf" const.
11034
05be00a8
TT
110352019-01-14 Tom Tromey <tom@tromey.com>
11036
11037 * remote.c (remote_console_output): Make parameter const.
11038
491adeca
TT
110392019-01-14 Tom Tromey <tom@tromey.com>
11040
11041 * target-debug.h (target_debug_print_signals): Constify.
11042 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11043 * procfs.c (procfs_target::pass_signals): Update.
11044 * linux-nat.c (linux_nat_target::pass_signals): Update.
11045 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11046 * target-delegates.c: Rebuild.
11047 * remote.c (remote_target::program_signals): Update.
11048 (remote_target::pass_signals): Update.
11049 * target.c (target_pass_signals): Constify argument.
11050 (target_program_signals): Likewise.
11051 * target.h (struct target_ops) <pass_signals, program_signals>:
11052 Constify argument.
11053 (target_pass_signals, target_program_signals): Constify argument.
11054
bbd94648
TT
110552019-01-14 Tom Tromey <tom@tromey.com>
11056
11057 PR tui/28819:
11058 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11059
6f072a10
PFC
110602019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11061
11062 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11063 field.
11064 * rs6000-tdep.c: Include reggroups.h.
11065 (IS_V_ALIAS_PSEUDOREG): Define.
11066 (rs6000_register_name): Return names for the "vX" aliases.
11067 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11068 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11069 aliases. Call default_register_reggroup_p for all other
11070 pseudo-registers.
11071 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11072 New functions.
11073 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11074 Handle "vX" aliases.
11075 (v_alias_pseudo_register_collect): New function.
11076 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11077 (rs6000_gdbarch_init): Initialize "vX" aliases as
11078 pseudo-registers. Restore registration of
11079 rs6000_pseudo_register_reggroup_p with
11080 set_tdesc_pseudo_register_reggroup_p.
11081
1a782351
MF
110822019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11083
11084 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11085 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11086 set_gdbarch_num_pseudo_regs.
11087
d73cff18
PW
110882019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11089
11090 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11091 Remove arg prefixname, add do_set and do_show.
11092 Add member functions set_list and show_list.
11093 * cli/cli-style.c (class cli_style_option): Update accordingly.
11094 (style_set_list): Move to file scope.
11095 (style_show_list): Likewise.
11096 (set_style): Call help_list.
11097 (show_style): Call cmd_show_list.
11098 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11099 Update to use the new macro.
11100
60a90376
JB
111012019-10-12 Joel Brobecker <brobecker@adacore.com>
11102
11103 * ada-lang.c (_initialize_ada_language): Expand the help text
11104 for the "catch exception" command.
11105
9d7c67bf
PW
111062019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11107
11108 * symtab.c (matching_obj_sections): Initialize obj,
11109 declare it closer to its usage.
11110
7cf47dc4
TT
111112019-01-10 Tom Tromey <tom@tromey.com>
11112
11113 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11114 (basic_inf_threads_range): Remove.
11115 (inf_threads_range, inf_non_exited_threads_range)
11116 (safe_inf_threads_range): Use next_adapter.
11117
d3cb6808
KS
111182019-01-10 Keith Seitz <keiths@redhat.com>
11119
11120 PR gdb/23712
11121 PR symtab/23010
11122 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11123 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11124
63a20375
KS
111252019-01-10 Keith Seitz <keiths@redhat.com>
11126
11127 PR gdb/23712
11128 PR symtab/23010
11129 * dictionary.c (pending_to_vector): Remove.
11130 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11131 Remove _1 suffix, replacing functions of the same name. Update
11132 all callers.
11133 (dict_create_hashed, dict_create_hashed_expandable)
11134 (dict_create_linear, dict_create_linear_expandable, dict_free)
11135 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11136 Make functions static.
11137
b026f593
KS
111382019-01-10 Keith Seitz <keiths@redhat.com>
11139
11140 PR gdb/23712
11141 PR symtab/23010
11142 * dictionary.h (struct dictionary): Replace declaration with
11143 multidictionary.
11144 (dict_create_hashed, dict_create_hashed_expandable)
11145 (dict_create_linear, dict_create_linear_expandable)
11146 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11147 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11148 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11149 taking multidictionary argument.
11150 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11151 * block.h (struct block) <dict>: Change to multidictionary
11152 and rename `multidict'.
11153 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11154 symmisc.c: Update all dictionary references to multidictionary.
11155
c7748ee9
KS
111562019-01-10 Keith Seitz <keiths@redhat.com>
11157
11158 PR gdb/23712
11159 PR symtab/23010
11160 * dictionary.c: Include unordered_map.
11161 (pending_to_vector): New function.
11162 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11163 Rewrite the non-"_1" functions to take vector instead
11164 of linked list.
11165 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11166 "new" _1 versions of the same name.
11167 (multidictionary): Define.
11168 (std::hash<enum language): New definition.
11169 (collate_pending_symbols_by_language, mdict_create_hashed)
11170 (mdict_create_hashed_expandable, mdict_create_linear)
11171 (mdict_create_linear_expandable, mdict_free)
11172 (find_language_dictionary, create_new_language_dictionary)
11173 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11174 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11175 (mdict_size, mdict_empty): New functions.
11176 * dictionary.h (mdict_iterator): Define.
11177
67aa1f3c
PA
111782019-01-10 Pedro Alves <palves@redhat.com>
11179
11180 * breakpoint.c (read_uploaded_action)
11181 (create_tracepoint_from_upload): Adjust to use
11182 gdb::unique_xmalloc_ptr.
11183 * ctf.c (ctf_write_uploaded_tp):
11184 (SET_ARRAY_FIELD): Use emplace_back.
11185 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11186 * tracefile-tfile.c (tfile_write_uploaded_tp):
11187 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11188 gdb::unique_xmalloc_ptr.
11189 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11190 at_string, cond_string, cmd_strings>: Replace char pointers
11191 with gdb::unique_xmalloc_ptr.
11192
2f667667
PA
111932019-01-10 Pedro Alves <palves@redhat.com>
11194
11195 * solib-target.c (library_list_start_library): Don't xstrdup name.
11196
36cb7237
PA
111972019-01-10 Pedro Alves <palves@redhat.com>
11198
11199 * mdebugread.c (parse_partial_symbols): Use
11200 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11201
da584958
AB
112022019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11203
11204 * linux-fork.c (scoped_switch_fork_info)
11205 <~scoped_switch_fork_info>: Fix incorrect variable name.
11206
1ef8573c
AB
112072019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11208
11209 * linux-fork.c (scoped_switch_fork_info)
11210 <scoped_switch_fork_info>: Make explicit.
11211 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11212
8d7bcccb
TT
112132019-01-10 Tom Tromey <tom@tromey.com>
11214
11215 * objfiles.h (objfile::reset_psymtabs): Update.
11216 * objfiles.c (objfile::objfile): Update.
11217 * psymtab.h (psymtab_storage::obstack): Update.
11218 (psymtab_storage::m_obstack): Use gdb::optional.
11219 (class psymtab_storage): Update comment. Remove objfile
11220 parameter.
11221 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11222
b596a3c7
TT
112232019-01-10 Tom Tromey <tom@tromey.com>
11224
11225 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11226 <free_psymtabs>: Now private.
11227 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11228 (allocate_psymtab): Use new method.
11229
a9342b62
TT
112302019-01-10 Tom Tromey <tom@tromey.com>
11231
11232 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11233 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11234 * mdebugread.c (parse_partial_symbols): Use
11235 allocate_dependencies.
11236 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11237 allocate_dependencies.
11238 (process_psymtab_comp_unit_reader)
11239 (build_type_psymtab_dependencies): Likewise.
11240 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11241
5af70966
TT
112422019-01-10 Tom Tromey <tom@tromey.com>
11243
11244 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11245 PSYMBOL_SET_LANGUAGE.
11246 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11247
5923a04c
TT
112482019-01-10 Tom Tromey <tom@tromey.com>
11249
11250 * psymtab.h (psymtab_storage::obstack): New method.
11251 <m_obstack>: Rename from obstack; now private.
11252 * psymtab.c (psymtab_storage): Update.
11253 * dwarf2read.c (create_addrmap_from_index)
11254 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11255 Update.
11256
6d6a12bf
TT
112572019-01-10 Tom Tromey <tom@tromey.com>
11258
11259 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11260 * objfiles.h (objfile::reset_psymtabs): New method.
11261
d320c2b5
TT
112622019-01-10 Tom Tromey <tom@tromey.com>
11263
11264 * symmisc.c (print_symbol_bcache_statistics): Update.
11265 (print_objfile_statistics): Update.
11266 * symfile.c (reread_symbols): Update.
11267 * psymtab.h (class psymtab_storage): New.
11268 * psymtab.c (psymtab_storage): New constructor.
11269 (~psymtab_storage): New destructor.
11270 (require_partial_symbols): Update.
11271 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11272 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11273 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11274 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11275 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11276 (start_psymtab_common, end_psymtab_common)
11277 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11278 (allocate_psymtab): Update.
11279 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11280 Update.
11281 (dump_psymtab_addrmap, maintenance_print_psymbols)
11282 (maintenance_check_psymtabs): Update.
11283 (class objfile_psymtabs): Move to objfiles.h.
11284 * psympriv.h (discard_psymtab): Now inline.
11285 (psymtab_discarder::psymtab_discarder): Update.
11286 (psymtab_discarder::~psymtab_discarder): Update.
11287 (ALL_OBJFILE_PSYMTABS): Rewrite.
11288 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11289 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11290 Remove fields.
11291 <partial_symtabs>: New field.
11292 (class objfile_psymtabs): Move from psymtab.h. Update.
11293 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11294 psymbol_cache.
11295 (objfile::~objfile): Don't destroy psymbol_cache.
11296 * mdebugread.c (parse_partial_symbols): Update.
11297 * dwarf2read.c (create_addrmap_from_index)
11298 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11299 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11300 (add_partial_subprogram, dwarf2_ranges_read): Update.
11301 * dwarf-index-write.c (write_address_map)
11302 (write_one_signatured_type, recursively_write_psymbols)
11303 (class debug_names, class debug_names, write_psymtabs_to_index):
11304 Update.
11305
1d94a5a3
TT
113062019-01-10 Tom Tromey <tom@tromey.com>
11307
11308 * symtab.h (SYMBOL_SET_NAMES): Update.
11309 (symbol_set_names): Update.
11310 (MSYMBOL_SET_NAMES): Update.
11311 * symtab.c (symbol_set_names): Change argument to be an
11312 objfile_per_bfd_storage.
11313 * psymtab.c (add_psymbol_to_bcache): Update.
11314 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11315
0f14768a
TT
113162019-01-10 Tom Tromey <tom@tromey.com>
11317
11318 * symtab.c (create_demangled_names_hash): Change argument to be an
11319 objfile_per_bfd_storage.
11320 (symbol_set_names): Update.
11321
6eee24ce
TT
113222019-01-10 Tom Tromey <tom@tromey.com>
11323
11324 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11325 init_psymbol_list.
11326 * psymtab.c (init_psymbol_list): Do nothing if already called.
11327 * psympriv.h (init_psymbol_list): Add comment.
11328 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11329 init_psymbol_list.
11330 * dbxread.c (dbx_symfile_read): Unconditionally call
11331 init_psymbol_list.
11332
75aedd27
TT
113332019-01-10 Tom Tromey <tom@tromey.com>
11334
11335 * xcoffread.c (scan_xcoff_symtab): Update.
11336 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11337 "where".
11338 * mdebugread.c (parse_partial_symbols)
11339 (handle_psymbol_enumerators): Update.
11340 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11341 * dbxread.c (read_dbx_symtab): Update.
11342 * psympriv.h (psymbol_placement): New enum.
11343 (add_psymbol_to_list): Update.
11344
939652a5
TT
113452019-01-10 Tom Tromey <tom@tromey.com>
11346
11347 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11348 static_psymbols parameters.
11349 (scan_xcoff_symtab): Update.
11350 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11351 static_psymbols parameters.
11352 * psympriv.h (start_psymtab_common): Update.
11353 * mdebugread.c (parse_partial_symbols): Update.
11354 * dwarf2read.c (create_partial_symtab): Update.
11355 * dbxread.c (read_dbx_symtab): Update.
11356 (start_psymtab): Remove global_psymbols and static_psymbols
11357 parameters.
11358
baa62830
TT
113592019-01-10 Tom Tromey <tom@tromey.com>
11360
11361 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11362 * psymtab.c (allocate_psymtab): Add comment.
11363 * psympriv.h (allocate_psymtab): Add comment.
11364 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11365 initializations.
11366 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11367
0e8f53ba
TT
113682019-01-10 Tom Tromey <tom@tromey.com>
11369
11370 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11371 Don't declare.
11372 * mipsread.c: Include mdebugread.h.
11373 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11374 Declare.
11375 * elfread.c: Include mdebugread.h.
11376
b22a7c6a
TT
113772019-01-09 Tom Tromey <tom@tromey.com>
11378
11379 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11380 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11381 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11382 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11383 (psym_lookup_symbol, psym_find_last_source_symtab)
11384 (psym_forget_cached_source_info, psym_print_stats)
11385 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11386 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11387 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11388 (psym_find_compunit_symtab_by_address)
11389 (maintenance_print_psymbols, maintenance_info_psymtabs)
11390 (maintenance_check_psymtabs): Use ranged for.
11391 * psymtab.h (class objfile_psymtabs): New.
11392 (require_partial_symbols): Return objfile_psymtabs.
11393 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11394
3b9d3ac2
TT
113952019-01-09 Tom Tromey <tom@tromey.com>
11396
11397 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11398 (find_pc_mapped_section, list_overlays_command)
11399 (map_overlay_command, unmap_overlay_command)
11400 (simple_overlay_update): Use all_objfiles.
11401 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11402 * printcmd.c (info_symbol_command): Use all_objfiles.
11403 * objfiles.h (ALL_OBJSECTIONS): Remove.
11404 * maint.c (maintenance_translate_address): Use all_objfiles.
11405 * gcore.c (gcore_create_callback): Use all_objfiles.
11406 (objfile_find_memory_regions): Likewise.
11407
8b31193a
TT
114082019-01-09 Tom Tromey <tom@tromey.com>
11409
11410 * symtab.c (find_line_symtab, info_sources_command)
11411 (make_source_files_completion_list): Use objfile_compunits.
11412 * source.c (select_source_symtab): Use objfile_compunits.
11413 * objfiles.h (struct objfile): Update comment.
11414 (ALL_OBJFILES): Remove.
11415 (ALL_FILETABS): Remove.
11416 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11417 objfile_compunits.
11418
d5da8b3c
TT
114192019-01-09 Tom Tromey <tom@tromey.com>
11420
11421 * symmisc.c (print_objfile_statistics, dump_objfile)
11422 (maintenance_print_symbols): Use compunit_filetabs.
11423 * source.c (forget_cached_source_info_for_objfile): Use
11424 compunit_filetabs.
11425 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11426 (ALL_FILETABS): Use compunit_filetabs.
11427 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11428 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11429
5accd1a0
TT
114302019-01-09 Tom Tromey <tom@tromey.com>
11431
11432 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11433 (compunit_filetabs): New.
11434 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11435 compunit_filetabs.
11436 (info_sources_command, make_source_files_completion_list): Remove
11437 declaration.
11438 * symmisc.c (print_objfile_statistics, dump_objfile)
11439 (maintenance_print_symbols): Remove declaration.
11440 (maintenance_info_symtabs): Use compunit_filetabs.
11441 (maintenance_info_line_tables): Likewise.
11442 * source.c (select_source_symtab): Change local variable name.
11443 (forget_cached_source_info_for_objfile): Remove declaration.
11444 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11445 * objfiles.c (objfile_relocate1): Remove declaration.
11446 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11447 declaration.
11448 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11449 * coffread.c (coff_symtab_read): Remove declaration.
11450 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11451 compunit_filetabs.
11452
d8aeb77f
TT
114532019-01-09 Tom Tromey <tom@tromey.com>
11454
11455 * symtab.c (lookup_objfile_from_block)
11456 (find_pc_sect_compunit_symtab, search_symbols)
11457 (default_collect_symbol_completion_matches_break_on): Use
11458 objfile_compunits.
11459 * objfiles.h (ALL_COMPUNITS): Remove.
11460 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11461 * cp-support.c (add_symbol_overload_list_qualified): Use
11462 objfile_compunits.
11463 * ada-lang.c (ada_collect_symbol_completion_matches)
11464 (ada_add_global_exceptions): Use objfile_compunits.
11465
592553c4
TT
114662019-01-09 Tom Tromey <tom@tromey.com>
11467
11468 * source.c (select_source_symtab)
11469 (forget_cached_source_info_for_objfile): Remove declaration.
11470 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11471 declaration.
11472 * maint.c (count_symtabs_and_blocks): Remove declaration.
11473 * cp-support.c (add_symbol_overload_list_qualified): Remove
11474 declaration.
11475 * coffread.c (coff_symtab_read): Remove declaration.
11476 * symtab.c (lookup_symbol_in_objfile_symtabs)
11477 (basic_lookup_transparent_type_1): Use objfile_compunits.
11478 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11479 (info_sources_command, search_symbols)
11480 (default_collect_symbol_completion_matches_break_on)
11481 (make_source_files_completion_list): Remove declaration.
11482 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11483 (ada_collect_symbol_completion_matches)
11484 (ada_add_global_exceptions): Remove declaration.
11485 * linespec.c (iterate_over_all_matching_symtabs): Use
11486 objfile_compunits.
11487 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11488 (class objfile_compunits): New.
11489 (ALL_COMPUNITS): Use objfile_compunits.
11490 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11491 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11492 objfile_compunits.
11493 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11494
5325b9bf
TT
114952019-01-09 Tom Tromey <tom@tromey.com>
11496
11497 * symtab.c (search_symbols)
11498 (default_collect_symbol_completion_matches_break_on): Use
11499 objfile_msymbols.
11500 * ada-lang.c (ada_lookup_simple_minsym)
11501 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11502 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11503 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11504 objfile_msymbols.
11505 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11506 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11507 * objc-lang.c (find_methods): Use objfile_msymbols.
11508 (info_selectors_command, info_classes_command): Likewise.
11509 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11510 * objfiles.h (class objfile_msymbols): New.
11511 (ALL_OBJFILE_MSYMBOLS): Remove.
11512 (ALL_MSYMBOLS): Remove.
11513
cac85af2
TT
115142019-01-09 Tom Tromey <tom@tromey.com>
11515
11516 * common/next-iterator.h (next_adapter): Add Iterator template
11517 parameter.
11518 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11519 (class all_objfiles_safe): New.
11520 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11521 * objfiles.c (put_objfile_before): Update comment.
11522 (add_separate_debug_objfile): Likewise.
11523 (free_all_objfiles): Use all_objfiles_safe.
11524 (objfile_purge_solibs): Likewise.
11525
aed57c53
TT
115262019-01-09 Tom Tromey <tom@tromey.com>
11527
11528 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11529 (expand_symtab_containing_pc, lookup_static_symbol)
11530 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11531 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11532 all_objfiles.
11533 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11534 * breakpoint.c (create_overlay_event_breakpoint)
11535 (create_longjmp_master_breakpoint)
11536 (create_std_terminate_master_breakpoint)
11537 (create_exception_master_breakpoint): Use all_objfiles.
11538 * linux-thread-db.c (try_thread_db_load_from_pdir)
11539 (has_libpthread): Use all_objfiles.
11540 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11541 * linespec.c (iterate_over_all_matching_symtabs)
11542 (search_minsyms_for_name): Use all_objfiles.
11543 * maint.c (maintenance_info_sections): Use all_objfiles.
11544 * main.c (captured_main_1): Use all_objfiles.
11545 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11546 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11547 * guile/scm-pretty-print.c
11548 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11549 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11550 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11551 (maintenance_print_msymbols): Use all_objfiles.
11552 * source.c (select_source_symtab): Use all_objfiles.
11553 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11554 * symfile.c (remove_symbol_file_command)
11555 (expand_symtabs_matching, map_symbol_filenames): Use
11556 all_objfiles.
11557 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11558 all_objfiles.
11559 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11560 * objc-lang.c (find_methods): Use all_objfiles.
11561 * objfiles.c (have_partial_symbols, have_full_symbols)
11562 (have_minimal_symbols, qsort_cmp)
11563 (default_iterate_over_objfiles_in_search_order): Use
11564 all_objfiles.
11565 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11566 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11567 (maintenance_check_psymtabs): Use all_objfiles.
11568 (ALL_PSYMTABS): Remove.
11569 * compile/compile-object-run.c (do_module_cleanup): Use
11570 all_objfiles.
11571 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11572 * cp-support.c (add_symbol_overload_list_qualified): Use
11573 all_objfiles.
11574 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11575 Use all_objfiles.
11576 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11577 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11578 all_objfiles.
11579 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11580 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11581 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11582 Uses all_objfiles.
11583 * solib.c (solib_read_symbols): Use all_objfiles
11584
99d89cde
TT
115852019-01-09 Tom Tromey <tom@tromey.com>
11586
11587 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11588 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11589 all_objfiles.
11590 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11591 * symmisc.c (print_symbol_bcache_statistics)
11592 (print_objfile_statistics, maintenance_print_objfiles)
11593 (maintenance_info_symtabs, maintenance_check_symtabs)
11594 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11595 all_objfiles.
11596 * source.c (forget_cached_source_info): Use all_objfiles.
11597 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11598 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11599 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11600 * objfiles.c (update_section_map): Use all_objfiles.
11601 (shared_objfile_contains_address_p): Likewise.
11602 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11603 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11604
21708325
TT
116052019-01-09 Tom Tromey <tom@tromey.com>
11606
11607 * common/next-iterator.h: New file.
11608 * objfiles.h (class all_objfiles): New.
11609 (struct objfile_iterator): New.
11610
669e09f6
PW
116112019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11612
11613 * NEWS: Move the description of the changed "frame", "select-frame",
11614 and "info frame" commands to the Changed commands section.
11615
041be526
SM
116162019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11617
11618 * gdbtypes.c (check_stub_method_group): Remove handling of old
11619 mangling schemes.
11620 * linespec.c (find_methods): Likewise.
11621 * stabsread.c (read_member_functions): Likewise.
11622 * valops.c (search_struct_method): Likewise.
11623 (value_struct_elt_for_reference): Likewise.
11624 * NEWS: Mention this change.
11625
0e2a2133
AB
116262019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11627
11628 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11629 print_source_lines.
11630 * source.c (print_source_lines_base): Update line number check.
11631 (print_source_lines): New function.
11632 (source_lines_range::source_lines_range): New function.
11633 * source.h (class source_lines_range): New class.
11634 (print_source_lines): New declaration.
11635
1055a3b4
PW
116362019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11637
11638 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11639
cfeadda5
TT
116402019-01-08 Tom Tromey <tom@tromey.com>
11641 Simon Marchi <simon.marchi@ericsson.com>
11642
11643 PR gdb/24060
11644 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11645 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11646 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11647 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11648 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11649 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11650
583068ca
AB
116512019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11652
11653 * source.c (select_source_symtab): Move header comment to
11654 declaration in source.h.
11655 (forget_cached_source_info_for_objfile): Likewise.
11656 (forget_cached_source_info): Likewise.
11657 (identify_source_line): Likewise.
11658 * source.h (identify_source_line): Move declaration from symtab.h
11659 and add comment from source.c
11660 (print_source_lines): Likewise.
11661 (forget_cached_source_info_for_objfile): Likewise.
11662 (forget_cached_source_info): Likewise.
11663 (select_source_symtab): Likewise.
11664 (enum print_source_lines_flag): Move definition from symtab.h.
11665 * symtab.h (identify_source_line): Move declaration to source.h.
11666 (print_source_lines): Likewise.
11667 (forget_cached_source_info_for_objfile): Likewise.
11668 (forget_cached_source_info): Likewise.
11669 (select_source_symtab): Likewise.
11670 (enum print_source_lines_flag): Move definition to source.h.
11671 * tui/tui-hooks.c: Add 'source.h' include.
11672
ec98a4ad
AB
116732019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11674
11675 * source.c (print_source_lines_base): Handle requests to print
11676 reverse line number sequences, and guard against empty lines
11677 string.
11678
62ea19c1
AB
116792019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11680
11681 * source.c (print_source_lines_base): Fix skip of '\r' if next
11682 character is '\n'.
11683
9d30e1fd
TT
116842019-01-06 Tom Tromey <tom@tromey.com>
11685
11686 * c-exp.y (struct c_parse_state) <macro_original_text,
11687 expansion_obstack>: New member.
11688 (macro_original_text, expansion_obstack): Remove globals.
11689 (scan_macro_expansion, scanning_macro_expansion)
11690 (finished_macro_expansion): Update.
11691 (scan_macro_cleanup): Remove.
11692 (yylex, c_parse): Update.
11693
c65bac38
TT
116942019-01-06 Tom Tromey <tom@tromey.com>
11695
11696 * c-exp.y (struct c_parse_state) <strings>: New member.
11697 (operator_stoken): Update.
11698
02e12e38
TT
116992019-01-06 Tom Tromey <tom@tromey.com>
11700
11701 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11702 (union type_stack_elt) <typelist_val>: Now a pointer to
11703 std::vector.
11704 (type_stack_cleanup): Don't declare.
11705 (push_typelist): Update.
11706 * parse.c (pop_typelist): Return a std::vector.
11707 (push_typelist): Take a std::vector.
11708 (follow_types): Update. Do not free args.
11709 (type_stack_cleanup): Remove.
11710 * c-exp.y (struct c_parse_state): New.
11711 (cpstate): New global.
11712 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11713 (nonempty_typelist): Update.
11714 (func_mod): Create a new vector.
11715 (c_parse): Create a c_parse_state.
11716 (check_parameter_typelist): Do not delete params.
11717 (function_method): Update. Do not delete type_list.
11718
f097f5ad
TT
117192019-01-06 Tom Tromey <tom@tromey.com>
11720
11721 PR gdb/28155:
11722 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11723 check_typedef.
11724 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11725 (print_return_value): Likewise.
11726
d2adf9f1
TT
117272019-01-05 Tom Tromey <tom@tromey.com>
11728
11729 * contrib/cleanup_check.py: Remove.
11730 * contrib/gcc-with-excheck: Remove.
11731 * contrib/exsummary.py: Remove.
11732 * contrib/excheck.py: Remove.
11733
2eab46b1
JB
117342019-01-05 Joel Brobecker <brobecker@adacore.com>
11735
11736 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11737 NULL. Initialize tpprev to NULL instead of assigning it
11738 to NULL on the next statement.
11739 * windows-nat.c (windows_delete_thread): Remove check for
11740 main_thread_id before printing thread exit notifications.
11741 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11742 Remove thread ID check against main_thread_id.
11743 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11744 windows_delete_thread.
11745 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11746
48c5e7e2
TT
117472019-01-04 Tom Tromey <tom@tromey.com>
11748
11749 * compile/compile.c (_initialize_compile): Use upper case for
11750 metasyntactic variables.
11751 * symmisc.c (_initialize_symmisc): Use upper case for
11752 metasyntactic variables.
11753 * psymtab.c (_initialize_psymtab): Use upper case for
11754 metasyntactic variables.
11755 * demangle.c (demangle_command): Use upper case for metasyntactic
11756 variables.
11757 (_initialize_demangler): Likewise.
11758 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11759 variables.
11760
986041cd
TT
117612019-01-03 Tom Tromey <tom@tromey.com>
11762
11763 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11764
7c711119
TT
117652019-01-03 Tom Tromey <tom@tromey.com>
11766
11767 * python/py-symtab.c (salpy_str): Update.
11768 (struct salpy_sal_object) <symtab>: Now a PyObject.
11769 (salpy_dealloc): Update.
11770 (del_objfile_sal): Use gdbpy_ref.
11771
1b20edf0
TT
117722019-01-03 Tom Tromey <tom@tromey.com>
11773
11774 * python/py-type.c (convert_field): Use new_reference. Return
11775 gdbpy_ref.
11776 (make_fielditem): Return gdbpy_ref.
11777 (typy_fields): Update.
11778 (typy_getitem): Update.
11779 (field_name): Return gdbpy_ref. Use new_reference.
11780 (typy_iterator_iternext): Update.
11781
ea41325b
TT
117822019-01-03 Tom Tromey <tom@tromey.com>
11783
11784 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11785
2a3c71d6
TT
117862019-01-03 Tom Tromey <tom@tromey.com>
11787
11788 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11789 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11790 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11791 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11792 (pspy_set_type_printers): Likewise.
11793 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11794 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11795 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11796 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11797 (objfpy_set_type_printers): Likewise.
11798
5c329e6a
TT
117992019-01-03 Tom Tromey <tom@tromey.com>
11800
11801 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11802 (gdbpy_print_stack): Use gdbpy_err_fetch.
11803 * python/python-internal.h (class gdbpy_err_fetch): New class.
11804 (class gdbpy_enter) <m_error_type, m_error_value,
11805 m_error_traceback>: Remove.
11806 <m_error>: New member.
11807 (gdbpy_exception_to_string): Don't declare.
11808 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11809 * python/py-value.c (convert_value_from_python): Use
11810 gdbpy_err_fetch.
11811 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11812 gdbpy_exception_to_string.
11813 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11814 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11815 gdbpy_err_fetch.
11816
169bb27b
AB
118172019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11818
11819 * linux-nat.c (delete_lwp_cleanup): Delete.
11820 (struct lwp_deleter): New struct.
11821 (lwp_info_up): New typedef.
11822 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11823 lwp_info_up.
11824
a07c8880
AB
118252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11826
11827 * linux-fork.c (class scoped_switch_fork_info): New class.
11828 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11829
26089c49
AB
118302019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11831
11832 * valops.c (find_overload_match): Remove use of null_cleanup, and
11833 calls to do_cleanups.
11834
06d3e5b0
AB
118352019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11836
11837 * compile/compile-cplus-types.c
11838 (compile_cplus_instance::decl_name): Handle changes to
11839 cp_func_name.
11840 * cp-support.c (cp_func_name): Update header comment, update
11841 return type.
11842 * cp-support.h (cp_func_name): Update return type in declaration.
11843 * valops.c (find_overload_match): Move temp_func local to top
11844 level of function and change its type. Use temp_func to hold and
11845 delete temporary string obtained from cp_func_name.
11846
66644cd3
AB
118472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11848
11849 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11850 gdb::char_vector, remove cleanup, and update uses of `msg`.
11851
592d8c0a
JW
118522019-01-03 Jim Wilson <jimw@sifive.com>
11853
11854 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11855
c55d06ec
TT
118562019-01-02 Tom Tromey <tom@tromey.com>
11857
11858 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11859 (tdesc_parse_xml): Remove cleanups.
11860 * target-descriptions.h (make_cleanup_free_target_description):
11861 Don't declare.
11862 (target_desc_deleter): New struct.
11863 (target_desc_up): New typedef.
11864 * target-descriptions.c (target_desc_deleter::operator()): Rename
11865 from free_target_description.
11866 (make_cleanup_free_target_description): Remove.
11867
3a6ae42d
TT
118682019-01-02 Tom Tromey <tom@tromey.com>
11869
11870 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11871 constructor, destructor.
11872 (linespec_parser): Remove typedef.
11873 (~linespec_parser): Rename from linespec_parser_delete.
11874 (linespec_lex_to_end, linespec_complete_label)
11875 (linespec_complete): Update.
11876 (decode_line_full): Remove cleanups.
11877 (decode_line_1): Update.
11878
61fd3e73
TT
118792019-01-02 Tom Tromey <tom@tromey.com>
11880
11881 * python/python-internal.h (inferior_to_inferior_object): Change
11882 return type.
11883 * python/py-exitedevent.c (create_exited_event_object): Update.
11884 * python/py-inferior.c (inferior_to_inferior_object): Return
11885 gdbpy_ref.
11886 (python_new_inferior, python_inferior_deleted)
11887 (thread_to_thread_object, delete_thread_object)
11888 (build_inferior_list, gdbpy_selected_inferior): Update.
11889 * python/py-infthread.c (create_thread_object): Update. Also fail
11890 if inferior_to_inferior_object fails.
11891
d20172fc
SM
118922019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11893
11894 * inferior.h (class inferior) <displaced_step_state>: New field.
11895 * infrun.h (struct displaced_step_state): Move here from
11896 infrun.c. Initialize fields, add constructor.
11897 <inf>: Remove field.
11898 <reset>: New method.
11899 * infrun.c (struct displaced_step_inferior_state): Move to
11900 infrun.h.
11901 (displaced_step_inferior_states): Remove.
11902 (get_displaced_stepping_state): Adust.
11903 (displaced_step_in_progress_any_inferior): Adjust.
11904 (displaced_step_in_progress_thread): Adjust.
11905 (displaced_step_in_progress): Adjust.
11906 (add_displaced_stepping_state): Remove.
11907 (get_displaced_step_closure_by_addr): Adjust.
11908 (remove_displaced_stepping_state): Remove.
11909 (infrun_inferior_exit): Call displaced_step_state.reset.
11910 (use_displaced_stepping): Don't check for NULL.
11911 (displaced_step_prepare_throw): Call
11912 get_displaced_stepping_state.
11913 (displaced_step_fixup): Don't check for NULL.
11914 (prepare_for_detach): Don't check for NULL.
11915
e3319240
PW
119162019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11917
11918 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11919 in case of call that did not complete.
11920
5d36dfb9
AU
119212019-01-02 Andrey Utkin <autkin@undo.io>
11922
11923 * symfile.c (find_separate_debug_file): Fix search of debug files for
11924 remote debuggee.
11925
8833fbf0
TT
119262019-01-02 Tom Tromey <tom@tromey.com>
11927
11928 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11929 indentation.
11930 * python/py-frame.c (frapy_older): Remove cast.
11931 (frapy_newer): Likewise.
11932 * python/py-breakpoint.c (local_setattro): Remove cast.
11933 * python/py-arch.c (archpy_name): Remove local variable.
11934 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11935
4ada3dfd
JB
119362019-01-02 Joel Brobecker <brobecker@adacore.com>
11937
11938 * unittests/basic_string_view/element_access/char/empty.cc:
11939 Fix year range in copyright header.
11940
113b7b81
AB
119412019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11942
11943 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11944 Delete.
11945 <operator==>: Update with for removed field.
11946 <hash>: Likewise.
11947 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11948 <isa_features>: ...this.
11949 <abi_features>: New field.
11950 (riscv_isa_flen): Update comment.
11951 (riscv_abi_xlen): New declaration.
11952 (riscv_abi_flen): New declaration.
11953 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11954 isa_features.
11955 (riscv_abi_xlen): New function.
11956 (riscv_isa_flen): Update to get answer from isa_features.
11957 (riscv_abi_flen): New function.
11958 (riscv_has_fp_abi): Update to get answer from abi_features.
11959 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11960 xlen and flen.
11961 (riscv_call_info) <xlen, flen>: Update comment.
11962 (riscv_call_arg_struct): Remove invalid assertions
11963 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11964 is removed.
11965 (riscv_gdbarch_init): Gather isa features and abi features
11966 separately, ensure both match on the gdbarch when reusing an old
11967 gdbarch. Relax an error check to allow 32-bit abi float to run on
11968 a target with 64-bit float hardware.
11969
b18ca514
PW
119702019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11971
11972 * source.c (search_command_helper): Stop reverse search
11973 when line 1 has been searched.
11974
ec70d8db
PW
119752019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11976
11977 * record-full.c (record_full_base_target::close): Rewrite
11978 record_full_core_buf_list free logic.
11979
5b38f9c1
PW
119802019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11981
11982 * break-catch-syscall.c (print_one_catch_syscall): xfree
11983 the last text.
11984
66d91b39
JB
119852019-01-01 Joel Brobecker <brobecker@adacore.com>
11986
11987 * top.c (print_gdb_version): Update Copyright year in version
11988 message.
11989
42a4f53d
JB
119902019-01-01 Joel Brobecker <brobecker@adacore.com>
11991
11992 Update copyright year range in all GDB files.
11993
7e955d83 119942019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11995
5bbd631d 11996 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11997
5bbd631d 11998For older changes see ChangeLog-2018.
c906108c
SS
11999\f
12000Local Variables:
12001mode: change-log
12002left-margin: 8
12003fill-column: 74
12004version-control: never
57da7796 12005coding: utf-8
c906108c 12006End:
5bbd631d 12007
This page took 3.163092 seconds and 4 git commands to generate.