Remove "noerror" parameter from some TUI functions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
20149b6b
TT
12019-08-16 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.h (tui_update_source_window)
4 (tui_update_source_window_as_is): Remove "noerror" parameter.
5 * tui/tui-winsource.c (tui_update_source_window)
6 (tui_update_source_window_as_is): Remove "noerror" parameter.
7 (tui_update_source_windows_with_addr)
8 (tui_update_source_windows_with_line)
9 (tui_source_window_base::rerender)
10 (tui_source_window_base::refill): Update.
11 * tui/tui-source.h (tui_set_source_content)
12 (tui_show_symtab_source): Remove "noerror" parameter.
13 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
14 parameter.
15 (tui_show_symtab_source): Likewise.
16 (tui_source_window::maybe_update): Update.
17 * tui/tui-disasm.c (tui_show_disassem)
18 (tui_show_disassem_and_update_source)
19 (tui_disasm_window::do_scroll_vertical)
20 (tui_disasm_window::maybe_update): Update.
21
2d83e710
TT
222019-08-16 Tom Tromey <tom@tromey.com>
23
24 * tui/tui.c (tui_is_window_visible): Update.
25 * tui/tui-wingeneral.c (tui_make_window)
26 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
27 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
28 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
29 (tui_set_win_height_command, parse_scrolling_args): Update.
30 * tui/tui-source.c (tui_source_window::style_changed): Update.
31 * tui/tui-regs.c (tui_show_registers)
32 (tui_data_window::first_data_item_displayed)
33 (tui_data_window::delete_data_content_windows)
34 (tui_check_register_values, tui_reg_command): Update.
35 * tui/tui-disasm.c (tui_show_disassem): Update.
36 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
37 method.
38 <is_visible>: Remove field.
39 * tui/tui-data.c (tui_next_win, tui_prev_win)
40 (tui_delete_invisible_windows): Update.
41
d4ab829a
TT
422019-08-16 Tom Tromey <tom@tromey.com>
43
44 * tui/tui-winsource.h (struct tui_source_window_base)
45 <m_has_locator>: Remove.
46 * tui/tui-layout.c (show_source_disasm_command, show_data)
47 (show_source_or_disasm_and_command): Update.
48
aa7ca1bb
AH
492019-08-16 Alan Hayward <alan.hayward@arm.com>
50
51 * NEWS (Other MI changes): New subsection.
52 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
53 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
54 * arch-utils.c (default_get_pc_address_flags): New function.
55 * arch-utils.h (default_get_pc_address_flags): New declaration.
56 * gdbarch.sh: Add get_pc_address_flags.
57 * gdbarch.c: Regenerate.
58 * gdbarch.h: Likewise.
59 * stack.c (print_pc): New function.
60 (print_frame_info) (print_frame): Call print_pc.
61
6eac171f
TV
622019-08-16 Tom de Vries <tdevries@suse.de>
63
64 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
65 print_objfile_section_info.
66
3df505f6
TT
672019-08-15 Tom Tromey <tom@tromey.com>
68
69 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
70 calling update_cmdwin_start_line.
71 * tui/tui-winsource.h (struct tui_source_window_base)
72 <do_make_visible_with_new_height, set_new_height>: Don't declare.
73 <rerender>: Declare.
74 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
75 Call rerender.
76 (tui_source_window_base::set_new_height): Remove.
77 (tui_source_window_base::rerender): Rename from
78 do_make_visible_with_new_height.
79 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
80 resize method.
81 (tui_win_info::make_invisible_and_set_new_height)
82 (tui_win_info::make_visible_with_new_height): Remove.
83 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
84 Declare.
85 * tui/tui-stack.c (tui_locator_window::rerender): New method.
86 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
87 do_make_visible_with_new_height>: Don't declare.
88 <rerender>: Declare.
89 * tui/tui-regs.c (tui_data_window::rerender): Rename from
90 set_new_height.
91 (tui_data_window::do_make_visible_with_new_height): Remove.
92 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
93 call tui_show_locator_content.
94 (tui_gen_win_info::resize): Call rerender.
95 (show_source_or_disasm_and_command): Don't call
96 tui_show_locator_content.
97 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
98 method.
99 (struct tui_win_info) <rerender>: Declare.
100 <set_new_height, make_invisible_and_set_new_height,
101 make_visible_with_new_height>: Don't declare.
102 * tui/tui-data.c (tui_win_list::rerender): New method.
103 * tui/tui-command.h (struct tui_cmd_window)
104 <do_make_visible_with_new_height>: Don't declare.
105 * tui/tui-command.c
106 (tui_cmd_window::do_make_visible_with_new_height): Remove.
107
272560b5
TT
1082019-08-15 Tom Tromey <tromey@adacore.com>
109
110 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
111 * ada-lang.c (ada_enum_name): Likewise.
112
08235187
CB
1132019-08-15 Christian Biesinger <cbiesinger@google.com>
114
115 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
116 leading underscore.
117 (GdbOutputErrorFile): Likewise.
118 (global scope): Adjust constructor calls to GdbOutput{,Error}File
119 accordingly.
120 (execute_unwinders): Rename to have a leading underscore.
121 (auto_load_packages): Likewise.
122 (global scope): Adjust call to auto_load_packages accordingly.
123 (GdbSetPythonDirectory): Likewise.
124 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
125 instead of execute_unwinders.
126
db502012
TT
1272019-08-15 Tom Tromey <tom@tromey.com>
128
129 * tui/tui-layout.c (show_layout, show_source_disasm_command)
130 (show_data): Don't change window visibility.
131 (tui_gen_win_info::resize): Remove special case for command
132 window. Use wresize, when available.
133 (show_source_or_disasm_and_command): Don't change window
134 visibility.
135 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
136 <make_visible>: New method.
137 * tui/tui-command.c (tui_cmd_window::resize): New method.
138
3891b65e
TT
1392019-08-15 Tom Tromey <tom@tromey.com>
140
141 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
142 (struct tui_source_windows): New.
143 * tui/tui-winsource.c (tui_display_main): Update.
144 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
145 (new_height_ok, parse_scrolling_args): Update.
146 * tui/tui-layout.c (show_layout, show_data): Update.
147 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
148 (tui_add_to_source_windows): Don't declare.
149 * tui/tui-data.c (source_windows, tui_source_windows)
150 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
151
ee556432
TT
1522019-08-15 Tom Tromey <tom@tromey.com>
153
154 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
155 Rename from reset.
156 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
157 * tui/tui-layout.c (show_source_disasm_command, show_data):
158 Update.
159 (tui_gen_win_info::resize): Rename.
160 (show_source_or_disasm_and_command): Update.
161 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
162 reset.
163
46f438e3
TT
1642019-08-15 Tom Tromey <tom@tromey.com>
165
166 * tui/tui-stack.c (tui_initialize_static_data): Remove.
167 * tui/tui-interp.c (tui_interp::init): Don't call
168 tui_initialize_static_data.
169 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
170
f4ce562c
TT
1712019-08-15 Tom Tromey <tom@tromey.com>
172
173 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
174 examine tui_win_list.
175
c398c3d0
TT
1762019-08-15 Tom Tromey <tom@tromey.com>
177
178 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
179 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
180 tui_clear_source_content.
181 (tui_clear_source_content): Remove.
182 (tui_source_window_base::do_erase_source_content): Hoist call to
183 content.clear().
184 * tui/tui-stack.c (tui_show_frame_info): Don't call
185 tui_clear_source_content.
186
e25d2004
TT
1872019-08-15 Tom Tromey <tom@tromey.com>
188
189 * tui/tui-winsource.h (struct tui_source_window_base)
190 <do_erase_source_content>: New method.
191 <erase_source_content>: New method.
192 (tui_erase_source_content): Don't declare.
193 * tui/tui-winsource.c (tui_clear_source_content): Update.
194 (tui_source_window_base::do_erase_source_content): Rename from
195 tui_erase_source_content.
196 (tui_source_window_base::show_source_content): Update.
197 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
198 * tui/tui-source.h (struct tui_source_window)
199 <erase_source_content>: New method.
200 * tui/tui-disasm.h (struct tui_disasm_window)
201 <erase_source_content>: New method.
202
002f15c2
TT
2032019-08-15 Tom Tromey <tom@tromey.com>
204
205 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
206 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
207 constructor.
208 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
209 * tui/tui-source.c (tui_set_source_content): Update.
210 * tui/tui-disasm.c (tui_set_disassem_content): Update.
211
c9033fe8
TT
2122019-08-15 Tom Tromey <tom@tromey.com>
213
214 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
215 * tui/tui-winsource.c (tui_line_is_displayed): Move to
216 tui-source.c.
217 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
218 Declare.
219 * tui/tui-source.c (tui_source_window::line_is_displayed): New
220 method.
221 (tui_source_window::maybe_update): Update.
222
088f37dd
TT
2232019-08-15 Tom Tromey <tom@tromey.com>
224
225 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
226 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
227 tui-disasm.c.
228 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
229 Declare.
230 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
231 method.
232 (tui_disasm_window::maybe_update): Update.
233
a54700c6
TT
2342019-08-15 Tom Tromey <tom@tromey.com>
235
236 * tui/tui-winsource.h (struct tui_source_window_base)
237 <maybe_update>: Declare.
238 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
239 method.
240 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
241 Declare.
242 * tui/tui-source.c (tui_source_window::maybe_update): New method.
243 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
244 Declare.
245 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
246
e2a678a5
TT
2472019-08-15 Tom Tromey <tom@tromey.com>
248
249 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
250
f2dda477
TT
2512019-08-15 Tom Tromey <tom@tromey.com>
252
253 * tui/tui-wingeneral.c: Include tui-stack.h.
254 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
255 (struct tui_locator_window): Move from tui-data.h.
256 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
257 (tui_initialize_static_data): Move from tui-data.c.
258 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
259 (struct tui_locator_window): Move to tui-stack.c.
260 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
261 (tui_initialize_static_data): Move to tui-stack.c.
262
ed4a1084
TT
2632019-08-15 Tom Tromey <tom@tromey.com>
264
265 * tui/tui-layout.c (show_source_disasm_command)
266 (show_source_or_disasm_and_command): Use make_visible method, not
267 tui_make_window.
268 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
269 Remove.
270
65962b20
TT
2712019-08-15 Tom Tromey <tom@tromey.com>
272
273 * tui/tui-wingeneral.h (tui_make_window): Update.
274 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
275 parameter.
276 (tui_gen_win_info::make_visible): Update.
277 * tui/tui-regs.c (tui_data_window::display_registers_from):
278 Update.
279 * tui/tui-layout.c (show_source_disasm_command)
280 (show_source_or_disasm_and_command): Update.
281 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
282 (enum tui_box): Remove.
283 (struct tui_win_info) <can_box>: New method.
284 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
285 method.
286
2208ee91
TV
2872019-08-15 Tom de Vries <tdevries@suse.de>
288
289 * linux-nat-trad.c: Include gdbarch.h.
290
75faf5c4
AH
2912019-08-14 Alan Hayward <alan.hayward@arm.com>
292
293 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
294 register sizes.
295
b1c896b3
TT
2962019-08-14 Tom Tromey <tromey@adacore.com>
297
298 * darwin-nat.c: Include gdbarch.h.
299 * darwin-nat-info.c: Include gdbarch.h.
300
6405cd73
TT
3012019-08-13 Tom Tromey <tom@tromey.com>
302
303 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
304 Remove.
305 * tui/tui-data.c (tui_initialize_static_data): Update.
306
5216580d
TT
3072019-08-13 Tom Tromey <tom@tromey.com>
308
309 * tui/tui-winsource.h (struct tui_exec_info_window)
310 <~tui_exec_info_window, maybe_allocate_content, get_content,
311 m_content>: Remove.
312 (struct tui_source_window_base) <set_exec_info_content,
313 show_exec_info_content>: Don't declare.
314 * tui/tui-winsource.c
315 (tui_exec_info_window::maybe_allocate_content): Remove.
316 (tui_source_window_base::update_exec_info): Rename from
317 set_exec_info_content.
318 (tui_source_window_base::show_exec_info_content)
319 (tui_source_window_base::update_exec_info): Remove.
320
93858ad3
TT
3212019-08-13 Tom Tromey <tom@tromey.com>
322
323 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
324 declare.
325 * tui/tui-winsource.c (tui_update_source_window_as_is)
326 (tui_update_source_windows_with_addr, tui_erase_source_content):
327 Update.
328 (tui_clear_exec_info_content): Remove.
329
e321e7ce
TT
3302019-08-13 Tom Tromey <tom@tromey.com>
331
332 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
333 declare.
334 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
335 call tui_erase_exec_info_content.
336 (tui_clear_exec_info_content): Rename from
337 tui_erase_exec_info_content.
338 (tui_clear_exec_info_content): Delete.
339
8270ac62
TT
3402019-08-13 Tom Tromey <tom@tromey.com>
341
342 * tui/tui-winsource.h (struct tui_source_window_base)
343 <show_exec_info_content>: Declare.
344 (tui_show_exec_info_content): Don't declare.
345 * tui/tui-winsource.c
346 (tui_source_window_base::show_exec_info_content): Rename from
347 tui_show_exec_info_content.
348 (tui_source_window_base::update_exec_info): Update.
349
7b56485d
TT
3502019-08-13 Tom Tromey <tom@tromey.com>
351
352 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
353 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
354 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
355 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
356 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
357 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
358 ... here.
359
7ba913dc
TT
3602019-08-13 Tom Tromey <tom@tromey.com>
361
362 * tui/tui-winsource.h (struct tui_source_window_base)
363 <update_exec_info>: Declare.
364 (tui_update_exec_info): Don't declare.
365 * tui/tui-winsource.c (tui_update_source_window_as_is)
366 (tui_source_window_base::refresh_all)
367 (tui_update_all_breakpoint_info): Update.
368 (tui_source_window_base::update_exec_info): Rename from
369 tui_update_exec_info.
370 * tui/tui-stack.c (tui_show_frame_info): Update.
371
37a4a131
TT
3722019-08-13 Tom Tromey <tom@tromey.com>
373
374 * tui/tui-winsource.h (struct tui_source_window_base)
375 <set_exec_info_content>: Declare.
376 (tui_set_exec_info_content): Don't declare.
377 * tui/tui-winsource.c
378 (tui_source_window_base::set_exec_info_content): Rename from
379 tui_set_exec_info_content.
380 (tui_update_exec_info): Update.
381
0bd27e07
TT
3822019-08-13 Tom Tromey <tom@tromey.com>
383
384 * tui/tui-winsource.h (struct tui_source_window_base)
385 <show_source_content>: Declare.
386 (tui_show_source_content): Don't declare.
387 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
388 (tui_source_window_base::show_source_content): Rename from
389 tui_show_source_content.
390 (tui_source_window_base::refresh_all): Update.
391 * tui/tui-layout.c (show_source_disasm_command)
392 (show_source_or_disasm_and_command): Update.
393
b4ef5aeb
TT
3942019-08-13 Tom Tromey <tom@tromey.com>
395
396 * tui/tui-winsource.c (tui_erase_source_content)
397 (tui_show_source_content, tui_source_window_base::refresh_all):
398 Update.
399 * tui/tui-wingeneral.h
400 (tui_check_and_display_highlight_if_needed): Don't declare.
401 * tui/tui-wingeneral.c
402 (tui_win_info::check_and_display_highlight_if_needed): Rename from
403 check_and_display_highlight_if_needed.
404 * tui/tui-win.c (tui_rehighlight_all)
405 (tui_win_info::make_visible_with_new_height): Update.
406 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
407 (tui_data_window::erase_data_content)
408 (tui_data_window::display_all_data): Update.
409 * tui/tui-data.h (struct tui_win_info)
410 <check_and_display_highlight_if_needed>: Declare.
411
fede5273
TT
4122019-08-13 Tom Tromey <tom@tromey.com>
413
414 * tui/tui-win.c (tui_resize_all): Call
415 tui_delete_invisible_windows.
416 * tui/tui-layout.c (show_layout): Call
417 tui_delete_invisible_windows.
418 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
419 * tui/tui-data.c (tui_delete_invisible_windows): New function.
420
22c3f490
TT
4212019-08-13 Tom Tromey <tom@tromey.com>
422
423 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
424 tui_add_win_to_layout.
425
16cb7910
TT
4262019-08-13 Tom Tromey <tom@tromey.com>
427
428 * tui/tui-layout.h (tui_default_win_height): Don't declare.
429 * tui/tui-layout.c (tui_default_win_height): Now static.
430
cc0c3ffb
TT
4312019-08-13 Tom Tromey <tom@tromey.com>
432
433 * tui/tui-layout.c (show_layout): Unify all layout cases into a
434 single switch.
435 (show_source_disasm_command, show_source_or_disasm_and_command):
436 Don't check current layout.
437
3f3ffe54
TT
4382019-08-13 Tom Tromey <tom@tromey.com>
439
440 * tui/tui-wingeneral.c (make_all_visible): Remove.
441 (tui_make_all_invisible): Simplify.
442 * tui/tui-layout.c (tui_make_all_invisible): Move from
443 tui-wingeneral.c; simplify.
444 (show_layout): Hoist call to tui_make_all_invisible.
445 (show_data): Don't call tui_make_all_invisible.
446
69258091
TT
4472019-08-13 Tom Tromey <tom@tromey.com>
448
449 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
450 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
451
62cf57fe
TT
4522019-08-13 Tom Tromey <tom@tromey.com>
453
454 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
455 tui-data.c.
456 (show_source_disasm_command, show_data)
457 (show_source_or_disasm_and_command): Don't use
458 tui_set_current_layout_to.
459 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
460 * tui/tui-data.c (current_layout, tui_current_layout): Move to
461 tui-layout.c.
462 (tui_set_current_layout_to): Remove.
463
2afade5d
TT
4642019-08-13 Tom Tromey <tom@tromey.com>
465
466 * tui/tui-layout.c (tui_set_layout): Update.
467 * tui/tui-data.h (struct tui_layout_def): Remove.
468 (tui_layout_def): Don't declare.
469 * tui/tui-data.c (layout_def): Remove.
470 (tui_layout_def): Remove.
471
a3504e96
TT
4722019-08-13 Tom Tromey <tom@tromey.com>
473
474 * tui/tui-winsource.h (struct tui_source_window_base)
475 <clear_detail>: No longer "override".
476 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
477 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
478 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
479 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
480 Remove.
481 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
482
29c92911
TT
4832019-08-13 Tom Tromey <tromey@adacore.com>
484
485 * tracepoint.c: Don't include readline.h or history.h.
486
86c6b807
TT
4872019-08-12 Tom Tromey <tom@tromey.com>
488
489 * configure: Rebuild.
490 * configure.ac: Check for readline 7.
491 * NEWS: Mention readline 7 requirement.
492 * README: Update.
493
5db2718c
TT
4942019-08-12 Tom Tromey <tom@tromey.com>
495
496 * mingw-hdep.c (gdb_select): Remove readline hack.
497
dac36daf
PFC
4982019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
499
500 * blockframe.c (find_pc_partial_function): Set *block to nullptr
501 when the function fails.
502
1022c627
AA
5032019-08-09 Andreas Arnez <arnez@linux.ibm.com>
504
505 * s390-tdep.c (s390_type_align): New function.
506 (s390_gdbarch_init): Set it as type_align gdbarch method.
507
eba4caf2
TV
5082019-08-09 Tom de Vries <tdevries@suse.de>
509
510 PR gdb/24591
511 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
512 pc_low with relocation offset.
513
123cd851
TT
5142019-08-07 Tom Tromey <tromey@adacore.com>
515
516 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
517 (print_frame_args): Update.
518 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
519 Update.
520 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
521 * frame.h (struct frame_arg): Add initializers.
522 <error>: Now a unique_xmalloc_ptr.
523
3d31bc39
AH
5242019-08-07 Alan Hayward <alan.hayward@arm.com>
525
526 * NEWS: Expand the Pointer Authentication entry.
527 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
528 (aarch64_frame_unmask_lr): ... to this.
529 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
530 Call aarch64_frame_unmask_lr.
531 * frame.c (struct frame_info): Add "masked" variable.
532 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
533 (fprint_frame): Check for masked pc.
534 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
535 declarations.
536 * python/py-framefilter.c (py_print_frame): Check for masked pc.
537 * stack.c (print_frame): Check for masked pc.
538
0cf9feb9
TT
5392019-08-06 Tom Tromey <tom@tromey.com>
540
541 * stabsread.c (patch_block_stabs, read_one_struct_field)
542 (read_enum_type): Use obstack_strndup.
543 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
544 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
545 * dwarf2read.c (guess_full_die_structure_name)
546 (anonymous_struct_prefix): Use obstack_strndup.
547 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
548 * c-exp.y (yylex): Use obstack_strndup.
549 * ada-exp.y (write_object_renaming, write_ambiguous_var)
550 (write_var_or_type): Use obstack_strndup.
551
efba19b0
TT
5522019-08-06 Tom Tromey <tom@tromey.com>
553
554 * symfile.c (reread_symbols): Use obstack_strdup.
555 * stabsread.c (read_type): Use obstack_strdup.
556 * gdb_obstack.h (obstack_strdup): New overload.
557 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
558 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
559 (dwarf2_canonicalize_name): Use obstack_strdup.
560 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
561 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
562 Use obstack_strdup.
563
f25102f7
TT
5642019-08-06 Tom Tromey <tom@tromey.com>
565
566 * gdb_obstack.h (obstack_strdup): Define.
567 * gdb_obstack.c (obstack_strdup): Don't define.
568
021887d8
TT
5692019-08-06 Tom Tromey <tom@tromey.com>
570
571 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
572 obstack_strdup.
573 * typeprint.c (typedef_hash_table::find_global_typedef): Use
574 obstack_strdup.
575 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
576 * stabsread.c (common_block_start): Use obstack_strdup.
577 * objfiles.c (set_objfile_main_name, objfile): Use
578 obstack_strdup.
579 * namespace.c (add_using_directive): Use obstack_strdup.
580 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
581 * jit.c (finalize_symtab): Use obstack_strdup.
582 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
583 (guess_partial_die_structure_name, partial_die_info::fixup)
584 (dwarf2_name): Use obstack_strdup.
585 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
586 obstack_strdup.
587 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
588 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
589 obstack_strdup.
590 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
591
d2834edc
PW
5922019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
593
594 * unittests/help-doc-selftests.c: New file.
595 * Makefile.in: Add the new file.
596
590042fc
PW
5972019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
598
599 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
600 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
601 the full first line, except when FOR_VALUE_PREFIX. In this case,
602 the trailing '.' is not output, and the first character is uppercased.
603 (print_help_for_command): Update call to print_doc_line.
604 (print_doc_of_command): Likewise.
605 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
606 * cli/cli-option.c (append_indented_doc): Do not append newline.
607 (build_help_option): Append newline after first appended_indented_doc
608 only if a second call is done.
609 (build_help): Append 2 new lines before each option, except the first
610 one.
611 * compile/compile.c (_initialize_compile): Add new lines after
612 %OPTIONS%, when not at the end of the help.
613 Change help doc or code
614 producing the help doc to respect the invariants.
615 * maint-test-options.c (_initialize_maint_test_options): Likewise.
616 Also removed the new line after 'Options:', as all other commands
617 do not put an empty line between 'Options:' and the first option.
618 * printcmd.c (_initialize_printcmd): Likewise.
619 * stack.c (_initialize_stack): Likewise.
620 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
621 incorrectly telling COMMAND is optional.
622 * ada-lang.c (_initialize_ada_language): Change help doc or code
623 producing the help doc to respect the invariants.
624 * ada-tasks.c (_initialize_ada_tasks): Likewise.
625 * breakpoint.c (_initialize_breakpoint): Likewise.
626 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
627 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
628 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
629 * cli/cli-style.c (cli_style_option::add_setshow_commands,
630 _initialize_cli_style): Likewise.
631 * corelow.c (core_target_info): Likewise.
632 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
633 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
634 * filesystem.c (_initialize_filesystem): Likewise.
635 * frame.c (_initialize_frame): Likewise.
636 * gnu-nat.c (add_task_commands): Likewise.
637 * infcall.c (_initialize_infcall): Likewise.
638 * infcmd.c (_initialize_infcmd): Likewise.
639 * interps.c (_initialize_interpreter): Likewise.
640 * language.c (_initialize_language): Likewise.
641 * linux-fork.c (_initialize_linux_fork): Likewise.
642 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
643 * maint.c (_initialize_maint_cmds): Likewise.
644 * memattr.c (_initialize_mem): Likewise.
645 * printcmd.c (_initialize_printcmd): Likewise.
646 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
647 _RegEx): Likewise.
648 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
649 * record-btrace.c (_initialize_record_btrace): Likewise.
650 * record-full.c (_initialize_record_full): Likewise.
651 * record.c (_initialize_record): Likewise.
652 * regcache-dump.c (_initialize_regcache_dump): Likewise.
653 * regcache.c (_initialize_regcache): Likewise.
654 * remote.c (add_packet_config_cmd, init_remote_threadtests,
655 _initialize_remote): Likewise.
656 * ser-tcp.c (_initialize_ser_tcp): Likewise.
657 * serial.c (_initialize_serial): Likewise.
658 * skip.c (_initialize_step_skip): Likewise.
659 * source.c (_initialize_source): Likewise.
660 * stack.c (_initialize_stack): Likewise.
661 * symfile.c (_initialize_symfile): Likewise.
662 * symtab.c (_initialize_symtab): Likewise.
663 * target-descriptions.c (_initialize_target_descriptions): Likewise.
664 * top.c (init_main): Likewise.
665 * tracefile-tfile.c (tfile_target_info): Likewise.
666 * tracepoint.c (_initialize_tracepoint): Likewise.
667 * tui/tui-win.c (_initialize_tui_win): Likewise.
668 * utils.c (add_internal_problem_command): Likewise.
669 * valprint.c (value_print_option_defs): Likewise.
670
404f2902
FCE
6712019-08-06 Frank Ch. Eigler <fche@redhat.com>
672
673 PR build/24886
674 * configure.ac: Drop enable-libmcheck support.
675 * configure, config.in: Rebuild.
676 * libmcheck.m4: Remove.
677 * acinclude.m4: Don't include it.
678 * Makefile.in: Don't distribute it.
679 * top.c (print_gdb_configuration): Don't mention it.
680
046bebe1
TT
6812019-08-06 Tom Tromey <tom@tromey.com>
682
683 * utils.c (set_output_style): Sometimes pass stream to
684 emit_style_escape.
685 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
686 * record-btrace.c (btrace_insn_history): Update.
687 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
688 method.
689 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
690 Update initializers.
691 <m_uiout>: New field.
692 <m_di>: Move lower.
693 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
694 Remove "uiout" parameter.
695 (dump_insns): Update.
696 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
697 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
698
ddbcedf5
CB
6992019-08-06 Christian Biesinger <cbiesinger@google.com>
700
701 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
702 (error_in_psymtab_expansion): Likewise.
703 (lookup_symbol_via_quick_fns): Likewise.
704 (basic_lookup_transparent_type_quick): Likewise.
705 (basic_lookup_transparent_type_1): Likewise.
706
b08b16c8
TT
7072019-08-06 Tom Tromey <tromey@adacore.com>
708
709 * source.c (last_source_error): Now bool.
710 (print_source_lines_base): Make "noprint" bool. Only open
711 source file when last_source_visited changes.
712
cb44333d
TT
7132019-08-06 Tom Tromey <tromey@adacore.com>
714
715 * annotate.c (annotate_source_line): Use g_source_cache.
716 * source-cache.c (source_cache::get_plain_source_lines): Change
717 parameters. Populate m_offset_cache.
718 (source_cache::ensure): New method.
719 (source_cache::get_line_charpos): New method.
720 (extract_lines): Move lower. Change parameters.
721 (source_cache::get_source_lines): Move lower.
722 * source-cache.h (class source_cache): Update comment.
723 <get_line_charpos>: New method.
724 <get_source_lines>: Update comment.
725 <clear>: Clear m_offset_cache.
726 <get_plain_source_lines>: Change parameters.
727 <ensure>: New method
728 <m_offset_cache>: New member.
729 * source.c (forget_cached_source_info_for_objfile): Update.
730 (info_source_command): Use g_source_cache.
731 (find_source_lines, open_source_file_with_line_charpos): Remove.
732 (print_source_lines_base, search_command_helper): Use g_source_cache.
733 * source.h (open_source_file_with_line_charpos): Don't declare.
734 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
735 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
736 Use g_source_cache.
737
872dceaa
TT
7382019-08-06 Tom Tromey <tromey@adacore.com>
739
740 * source-cache.c (source_cache::get_plain_source_lines):
741 Remove "first_line" and "last_line" parameters.
742 (source_cache::get_source_lines): Cache plain text.
743 * source-cache.h (class source_cache)
744 <get_plain_source_lines>: Update.
745
269249d9
TT
7462019-08-06 Tom Tromey <tromey@adacore.com>
747
748 * source-cache.c (extract_lines): No longer a method.
749 Changed type of parameter. Include final newline.
750 (selftests::extract_lines_test): New function.
751 (_initialize_source_cache): Likewise.
752 * source-cache.h (class source_cache)
753 <extract_lines>: Don't declare.
754
c0e8dcd8
TT
7552019-08-06 Tom Tromey <tromey@adacore.com>
756
757 * breakpoint.c (init_breakpoint_sal): Update.
758 (breakpoint): Update.
759 * breakpoint.h (struct breakpoint) <filter>: Now a
760 unique_xmalloc_ptr.
761
0b27c27d
CB
7622019-08-05 Christian Biesinger <cbiesinger@google.com>
763
764 * NEWS: Mention dictionary access on blocks.
765 * python/py-block.c (blpy_getitem): New function.
766 (block_object_as_mapping): New struct.
767 (block_object_type): Use new struct for tp_as_mapping field.
768
4ee94178
CB
7692019-08-05 Christian Biesinger <cbiesinger@google.com>
770
771 * objfiles.h (objfile): Add a comment describing partial symbols.
772
8abfcabc
TT
7732019-08-05 Tom Tromey <tromey@adacore.com>
774
775 * compile/compile.c (_initialize_compile): Use _(), not N_().
776 * thread.c (_initialize_thread): Use _(), not N_().
777 * stack.c (_initialize_stack): Use _(), not N_().
778 * printcmd.c (_initialize_printcmd): Use _(), not N_().
779
2b79f376
SM
7802019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
781
782 * dwarf2read.c (struct dw2_symtab_iterator):
783 <want_specific_block>: Remove.
784 <block_index>: Change type to gdb::optional.
785 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
786 change type of BLOCK_INDEX parameter to gdb::optional.
787 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
788 (dw2_lookup_symbol): Don't pass argument for
789 WANT_SPECIFIC_BLOCK.
790 (dw2_expand_symtabs_for_function): Don't pass argument for
791 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
792 (class dw2_debug_names_iterator)
793 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
794 parameter, change BLOCK_INDEX type to gdb::optional.
795 <m_want_specific_block>: Remove.
796 <m_block_index>: Change type to gdb::optional.
797 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
798 gdb::optional. Re-write in function of gdb::optional.
799 (dw2_debug_names_lookup_symbol): Don't pass argument for
800 WANT_SPECIFIC_BLOCK.
801 (dw2_debug_names_expand_symtabs_for_function): Don't pass
802 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
803 BLOCK_INDEX.
804
ae60f04e
PW
8052019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
806
807 * NEWS: Mention changes to "info sources" command.
808
28cd9371
PW
8092019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
810
811 * symtab.c (filename_partial_match_opts): New struct type.
812 (struct output_source_filename_data): New members
813 regexp, c_regexp, partial_match.
814 (output_source_filename): Use new members to decide to print file.
815 (info_sources_option_defs): New variable.
816 (make_info_sources_options_def_group, print_info_sources_header,
817 info_sources_command_completer):
818 New functions.
819 (info_sources_command): Read new optional arguments.
820 (_initialize_symtab): Update info sources help.
821
ca683e3a
AO
8222019-08-02 Alexandre Oliva <oliva@adacore.com>
823
824 * ada-lang.c (exception_support_info_v0): Renamed from...
825 (default_exception_support_info): ... this. Create new
826 definition for v1.
827 (ada_has_this_exception_support): Look up catch_handlers_sym.
828 (ada_exception_support_info_sniffer): Try v0 after default.
829
f1264162
TT
8302019-08-01 Tom Tromey <tromey@adacore.com>
831
832 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
833 gdbarch.h.
834
0a7b2485
CB
8352019-08-01 Christian Biesinger <cbiesinger@google.com>
836
837 * s12z-tdep.c: Fix include path for s12z-opc.h.
838
c6bdbeb7
AH
8392019-08-01 Alan Hayward <alan.hayward@arm.com>
840
841 * NEWS: Require GNU make 3.82.
842
a2bd7b82
TT
8432019-07-16 Tom Tromey <tom@tromey.com>
844
845 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
846 declare.
847
aa3b6533
TT
8482019-07-30 Tom Tromey <tromey@adacore.com>
849
850 * block.c (contained_in): Remove BLOCK_FUNCTION check.
851
a1530dc7
KB
8522019-07-30 Kevin Buettner <kevinb@redhat.com>
853
854 * printcmd.c (print_address_symbolic): Print negative offsets.
855 (build_address_symbolic): Force signed arithmetic when computing
856 offset.
857
2906593f
CB
8582019-07-30 Christian Biesinger <cbiesinger@google.com>
859
860 PR/24474: Add a function to lookup static variables.
861 * NEWS: Mention this new function.
862 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
863 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
864 * python/python.c (python_GdbMethods): Add new function.
865
c620ed88
CB
8662019-07-29 Christian Biesinger <cbiesinger@google.com>
867
868 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
869 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
870 (objfpy_lookup_static_symbol): New function.
871 (objfile_object_methods): Add new functions.
872
bc4268a5
PW
8732019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
874
875 * NEWS: Mention 'set|show print frame-info'. Mention new
876 'presence' value for 'frame-arguments'. Mention new '-frame-info'
877 backtrace argument. Mention that python frame filtering code
878 is now consistent with what 'backtrace' command prints.
879
4b5e8d19
PW
8802019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
881
882 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
883 comments.
884 (print_frame_info_auto, print_frame_info_source_line,
885 print_frame_info_location, print_frame_info_source_and_location,
886 print_frame_info_location_and_address, print_frame_info_short_location):
887 New declarations.
888 (struct frame_print_options): New member print_frame_info.
889 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
890 * stack.h (get_user_print_what_frame_info): New declaration.
891 (frame_show_address): New declaration.
892 * stack.c (print_frame_arguments_choices): New value 'presence'.
893 (print_frame_info_auto, print_frame_info_source_line,
894 print_frame_info_location, print_frame_info_source_and_location,
895 print_frame_info_location_and_address, print_frame_info_short_location,
896 print_frame_info_choices, print_frame_info_print_what): New definitions.
897 (print_frame_args): Only print dots for args if print frame-arguments
898 is 'presence'.
899 (frame_print_option_defs): New element for "frame-info".
900 (get_user_print_what_frame_info): New function.
901 (frame_show_address): Make non static. Move comment to stack.h.
902 (print_frame_info_to_print_what): New function.
903 (print_frame_info): Update comment. Use fp_opts.print_frame_info
904 to decide what to print.
905 (backtrace_command_1): Handle the new print_frame_arguments_presence
906 value.
907 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
908 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
909 (py_print_frame): In non-mi mode, use LOCATION as default for
910 print_what, similarly to frame information printed directly by
911 backtrace command. Handle frame-info user option in non MI mode.
912
6bdfee81
KB
9132019-07-27 Kevin Buettner <kevinb@redhat.com>
914
915 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
916 Add case for debugging 32-bit target on 64-bit host. Revise
917 comment.
918
98a617f8
KB
9192019-07-27 Kevin Buettner <kevinb@redhat.com>
920
921 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
922 instead of find_function_entry_range_from_pc.
923
567238c9
KB
9242019-07-27 Kevin Buettner <kevinb@redhat.com>
925
926 * stack.c (find_frame_funname): Remove code which preferred
927 minsym over symtab sym in "certain pathological cases".
928
2dc80cf8
KB
929 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
930 parameter. Change type of "do_demangle" to bool.
931 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
932 Pass suitable "prefer_sym_over_minsym" flag to
933 build_address_symbolic(). Don't output "+" for negative offsets.
934 * printcmd.c (print_address_symbolic): Update invocation of
935 build_address_symbolic to include a "prefer_sym_over_minsym"
936 flag.
937 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
938 Restrict cases in which use of minimal symbol is preferred to that
939 of a found symbol. Update comments.
940
1aff7173
KB
941 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
942 for entry pc when entry pc is out of range for that FDE.
943
89b085ac
BC
9442019-07-26 Brian Callahan <bcallah@openbsd.org>
945
946 PR gdb/24839:
947 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
948 type.
949
f32feb4a
CB
9502019-07-25 Christian Biesinger <cbiesinger@google.com>
951
952 * python/py-objfile.c (add_separate_debug_file): Fix comment about
953 this function's Python signature.
954
955
9562019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
957
958 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
959 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
960 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
961 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
962 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
963
964
c54e4253
YS
9652019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
966
967 * h8300-tdep.c (h8300_register_name_common): New.
968 h8300_register_name): Use h8300_register_name_common.
969 (h8300s_register_name): Likewise.
970 (h8300sx_register_name): Likewise.
971 (h8300h_register_nam): New.
972 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
973
974
40eadf04
SP
9752019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
976
977 * arm-tdep.c (arm_skip_cmse_entry): New function.
978 (arm_is_sgstubs_section): New function.
979 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
980
bfa2a36d
TT
9812019-07-22 Tom Tromey <tom@tromey.com>
982
983 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
984 Don't self-assign.
985
a8e9d247
AB
9862019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
987
988 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
989 type_print.
990
eb86c5e2
AB
9912019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
992
993 * symtab.c (search_symbols): Adjust msymbol matching type arrays
994 so that GDB doesn't match any msymbols when searching in the
995 TYPES_DOMAIN.
996 (print_symbol_info): Print using typedef_print or type_print based
997 on the type of the symbol. Add updated FIXME comment moved from...
998 (_initialize_symtab): ... move and update FIXME comment to above.
999
a8eab7c6
AB
10002019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * NEWS: Mention adding -q option to "info types".
1003 * symtab.c (struct info_types_options): New struct.
1004 (info_types_options_defs): New variable.
1005 (make_info_types_options_def_group): New function.
1006 (info_types_command): Use gdb::option framework to parse options.
1007 (info_types_command_completer): New function.
1008 (_initialize_symtab): Extend the help text on "info types" and
1009 register command completer.
1010
b4603c34
CB
10112019-07-21 Christian Biesinger <cbiesinger@google.com>
1012
1013 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1014 (lookup_symbol_in_objfile): Change int to block_enum and add a
1015 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1016
c8cdc1e0
CB
10172019-07-20 Christian Biesinger <cbiesinger@google.com>
1018
1019 * MAINTAINERS (Write After Approval): Add self.
1020
01e175fe
AB
10212019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1022
1023 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1024 instruction to the dummy code region.
1025
56f79b63
TT
10262019-07-19 Tom Tromey <tromey@adacore.com>
1027
1028 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1029 (ARGSUSED, PARAMS, __func__): Remove rules.
1030
4c5aa8e0
AH
10312019-07-19 Alan Hayward <alan.hayward@arm.com>
1032
1033 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1034 * features/arm/arm-with-iwmmxt.c: Remove.
1035 * features/arm/arm-with-iwmmxt.xml: Remove.
1036 * features/arm/arm-with-m-fpa-layout.c: Remove.
1037 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1038 * features/arm/arm-with-m-vfp-d16.c: Remove.
1039 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1040 * features/arm/arm-with-m.c: Remove.
1041 * features/arm/arm-with-m.xml: Remove.
1042 * features/arm/arm-with-neon.c: Remove.
1043 * features/arm/arm-with-neon.xml: Remove.
1044 * features/arm/arm-with-vfpv2.c: Remove.
1045 * features/arm/arm-with-vfpv2.xml: Remove.
1046 * features/arm/arm-with-vfpv3.c: Remove.
1047 * features/arm/arm-with-vfpv3.xml: Remove.
1048
f42b2617
AH
10492019-07-19 Alan Hayward <alan.hayward@arm.com>
1050
1051 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1052
f29ec966
AH
10532019-07-19 Alan Hayward <alan.hayward@arm.com>
1054
1055 * arch/aarch32.c (aarch32_create_target_description): Create
1056 target descriptions using features.
1057 * arch/arm.c (arm_create_target_description)
1058 (arm_create_mprofile_target_description): Likewise.
1059 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1060
d105cce5
AH
10612019-07-19 Alan Hayward <alan.hayward@arm.com>
1062
1063 * Makefile.in: Add new files.
1064 * aarch32-tdep.c: New file.
1065 * aarch32-tdep.h: New file.
1066 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1067 Call aarch32_read_description.
1068 * arch/aarch32.c: New file.
1069 * arch/aarch32.h: New file.
1070 * arch/arm.c (arm_create_target_description)
1071 (arm_create_mprofile_target_description): New function.
1072 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1073 (arm_create_target_description)
1074 (arm_create_mprofile_target_description): New declaration.
1075 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1076 read_description functions.
1077 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1078 Likewise.
1079 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1080 * arm-tdep.c (tdesc_arm_list): New variable.
1081 (arm_register_g_packet_guesses): Call create description functions.
1082 (arm_read_description) (arm_read_mprofile_description): New
1083 function.
1084 * arm-tdep.h (arm_read_description)
1085 (arm_read_mprofile_description): Add declaration.
1086 * configure.tgt: Add new files.
1087
afe09f0b
GL
10882019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1089
1090 * top.c (new_ui_command): Open specified terminal just once.
1091
cd215b2e
TT
10922019-07-18 Tom Tromey <tromey@adacore.com>
1093
1094 * symtab.c (main_name): Constify return type.
1095 * symfile.c (set_initial_language): Update.
1096 * symtab.h (main_name): Constify return type.
1097
d8f68fcb
TT
10982019-07-17 Tom Tromey <tom@tromey.com>
1099
1100 * tui/tui-winsource.c (tui_update_source_window)
1101 (tui_update_source_window_as_is)
1102 (tui_update_source_windows_with_line): Remove return.
1103 * tui/tui-disasm.c (tui_show_disassem)
1104 (tui_show_disassem_and_update_source): Remove return.
1105 * tui/tui.c (tui_reset): Remove return.
1106 * tui/tui-wingeneral.c
1107 (tui_check_and_display_highlight_if_needed): Remove return.
1108
ca5af91e
TT
11092019-07-17 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1112
5104fe36
TT
11132019-07-17 Tom Tromey <tom@tromey.com>
1114
1115 * tui/tui-winsource.h (struct tui_exec_info_window)
1116 (struct tui_source_window_base): Move from tui-data.h.
1117 * tui/tui-winsource.c: Move many method definitions from
1118 elsewhere. Remove "structuring" comments.
1119 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1120 (tui_source_window_base::refresh_window): Move to
1121 tui-winsource.c.
1122 * tui/tui-win.c (tui_source_window_base::refresh_all)
1123 (tui_source_window_base::update_tab_width)
1124 (tui_source_window_base::set_new_height)
1125 (tui_source_window_base::do_make_visible_with_new_height): Move to
1126 tui-winsource.c.
1127 * tui/tui-source.h: Update.
1128 * tui/tui-source.c (tui_source_window_base::reset): Move to
1129 tui-winsource.c.
1130 * tui/tui-disasm.h: Update.
1131 * tui/tui-data.h (struct tui_exec_info_window): Move to
1132 tui-winsource.h.
1133 (struct tui_source_window_base): Likewise.
1134 * tui/tui-data.c (tui_source_window_base::clear_detail)
1135 (tui_source_window_base, ~tui_source_window_base): Move to
1136 tui-winsource.c.
1137
daa15dde
TT
11382019-07-17 Tom Tromey <tom@tromey.com>
1139
1140 * tui/tui-win.c (tui_resize_all)
1141 (tui_source_window_base::update_tab_width)
1142 (tui_adjust_win_heights): Update.
1143 (tui_win_info::make_invisible_and_set_new_height): Rename from
1144 make_invisible_and_set_new_height.
1145 * tui/tui-data.h (struct tui_win_info)
1146 <make_invisible_and_set_new_height>: New method.
1147
bfad4537
TT
11482019-07-17 Tom Tromey <tom@tromey.com>
1149
1150 * tui/tui.c: Update.
1151 * tui/tui-source.h (struct tui_source_window): Move from
1152 tui-data.h.
1153 * tui/tui-layout.c: Update.
1154 * tui/tui-disasm.c: Update.
1155 * tui/tui-data.h (struct tui_source_window): Move to
1156 tui-source.h.
1157
88f7e873
TT
11582019-07-17 Tom Tromey <tom@tromey.com>
1159
1160 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1161 tui-data.h.
1162 * tui/tui-data.h (struct tui_disasm_window): Move to
1163 tui-disasm.h.
1164
96bd6233
TT
11652019-07-17 Tom Tromey <tom@tromey.com>
1166
1167 * tui/tui-regs.h (struct tui_data_item_window): Move from
1168 tui-data.h.
1169 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1170 * tui/tui-data.h (struct tui_data_item_window): Move to
1171 tui-regs.h.
1172 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1173
ce38393b
TT
11742019-07-17 Tom Tromey <tom@tromey.com>
1175
1176 * tui/tui.c: Update.
1177 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1178 (tui_cmd_window::max_height): Move to tui-command.c.
1179 * tui/tui-layout.c: Update.
1180 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1181 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1182 tui-command.c.
1183 * tui/tui-command.h (struct tui_cmd_window): Move from
1184 tui-data.h.
1185 * tui/tui-command.c: Remove "structuring" comments.
1186 (tui_cmd_window::clear_detail)
1187 (tui_cmd_window::do_make_visible_with_new_height)
1188 (tui_cmd_window::max_height): Move from elsewhere.
1189
2d8b51cb
TT
11902019-07-17 Tom Tromey <tom@tromey.com>
1191
1192 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1193 Now static.
1194 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1195 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1196
18ab23af
TT
11972019-07-17 Tom Tromey <tom@tromey.com>
1198
1199 * tui/tui.c: Update.
1200 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1201 tui-regs.c.
1202 * tui/tui-windata.h: Remove file.
1203 * tui/tui-windata.c: Remove file.
1204 * tui/tui-win.c (tui_data_window::set_new_height)
1205 (tui_data_window::do_make_visible_with_new_height): Move to
1206 tui-regs.c.
1207 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1208 * tui/tui-regs.c: Remove "structuring" comments.
1209 (tui_data_window::first_data_item_displayed)
1210 (tui_data_window::delete_data_content_windows)
1211 (tui_data_window::erase_data_content)
1212 (tui_data_window::display_all_data)
1213 (tui_data_window::refresh_all)
1214 (tui_data_window::do_scroll_vertical)
1215 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1216 (tui_data_window::do_make_visible_with_new_height)
1217 (tui_data_window::refresh_window): Move from elsewhere.
1218 (_initialize_tui_regs): Move to end of file.
1219 * tui/tui-layout.c: Update.
1220 * tui/tui-hooks.c: Update.
1221 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1222 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1223 tui-regs.c.
1224 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1225
88b7e7cc
TT
12262019-07-17 Tom Tromey <tom@tromey.com>
1227
1228 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1229 seen.
1230
0fcd3711
TT
12312019-07-17 Tom Tromey <tom@tromey.com>
1232
1233 * tui/tui-win.c (tui_source_window_base::set_new_height)
1234 (tui_source_window_base::do_make_visible_with_new_height): Use
1235 m_has_locator field directly.
1236 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1237 method.
1238 (struct tui_source_window_base) <has_locator>: Likewise.
1239
4a38112d
TT
12402019-07-17 Tom Tromey <tom@tromey.com>
1241
1242 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1243 Don't declare.
1244 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1245 Remove.
1246 * tui/tui-win.c (tui_source_window_base::set_new_height)
1247 (tui_source_window_base::set_new_height)
1248 (make_invisible_and_set_new_height)
1249 (tui_source_window_base::do_make_visible_with_new_height)
1250 (tui_source_window_base::do_make_visible_with_new_height):
1251 Update.
1252 * tui/tui-layout.c (show_source_disasm_command, show_data)
1253 (show_source_or_disasm_and_command): Update.
1254 * tui/tui-layout.c (show_layout): Update.
1255
09129226
TT
12562019-07-17 Tom Tromey <tom@tromey.com>
1257
1258 * tui/tui-layout.c (make_data_window): Remove.
1259 (show_data): Unify creation and re-initialization cases.
1260
4a8a5e84
TT
12612019-07-17 Tom Tromey <tom@tromey.com>
1262
1263 * tui/tui-layout.c (make_source_window, make_disasm_window):
1264 Remove.
1265 (show_data): Unify creation and re-initialization cases.
1266
76d2be8e
TT
12672019-07-17 Tom Tromey <tom@tromey.com>
1268
1269 * tui/tui-layout.c (make_command_window): Remove.
1270 (show_source_disasm_command, show_source_or_disasm_and_command):
1271 Unify creation and re-initialization cases.
1272
890b8bde
TT
12732019-07-17 Tom Tromey <tom@tromey.com>
1274
1275 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1276 creation and re-initialization cases.
1277
2cdfa113
TT
12782019-07-17 Tom Tromey <tom@tromey.com>
1279
1280 * tui/tui-regs.c (tui_get_register): Return void.
1281
8e3cfd09
TT
12822019-07-17 Tom Tromey <tom@tromey.com>
1283
1284 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1285 Simplify.
1286
f4e04977
TT
12872019-07-17 Tom Tromey <tom@tromey.com>
1288
1289 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1290 resetting.
1291
0379b883
TT
12922019-07-17 Tom Tromey <tom@tromey.com>
1293
1294 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1295 * tui/tui-regs.c (tui_reg_layout): New function.
1296 (tui_show_registers, tui_reg_command): Use it.
1297 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1298 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1299 parameters.
1300 (tui_layout_command): Remove.
1301
b7fbad91
TT
13022019-07-17 Tom Tromey <tom@tromey.com>
1303
1304 * tui/tui-layout.h (tui/tui-layout): Return void.
1305 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1306
4e1e56b9
TT
13072019-07-17 Tom Tromey <tom@tromey.com>
1308
1309 * tui/tui-layout.c (show_source_disasm_command, show_data):
1310 Update.
1311 (reset_locator): Remove.
1312 (show_source_or_disasm_and_command): Update.
1313
1e0c09ba
TT
13142019-07-17 Tom Tromey <tom@tromey.com>
1315
1316 * tui/tui-source.c (tui_source_window_base::reset): Remove
1317 win_type parameter.
1318 * tui/tui-layout.c (make_command_window, make_source_window)
1319 (make_disasm_window, make_data_window)
1320 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1321 (reset_locator, show_source_or_disasm_and_command): Update.
1322 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1323 win_type parameter.
1324 (struct tui_source_window_base) <reset>: Likewise.
1325
1bf605de
TT
13262019-07-17 Tom Tromey <tom@tromey.com>
1327
1328 * tui/tui-layout.c (show_source_disasm_command): Use
1329 reset_locator.
1330 (reset_locator): New function.
1331 (init_and_make_win): Remove.
1332 (show_source_or_disasm_and_command): Use reset_locator.
1333
098f9ed4
TT
13342019-07-17 Tom Tromey <tom@tromey.com>
1335
1336 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1337 condition.
1338 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1339 Remove condition.
1340 * tui/tui-source.c (tui_source_window_base::reset): New method.
1341 * tui/tui-layout.c (make_command_window): Don't call
1342 init_and_make_win.
1343 (make_source_window, make_disasm_window): Don't call
1344 make_source_or_disasm_window.
1345 (make_data_window): Don't call init_and_make_win. Change calling
1346 convention.
1347 (show_source_disasm_command, show_data): Simplify.
1348 (make_source_or_disasm_window): Remove.
1349 (show_source_or_disasm_and_command): Simplify.
1350 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1351 (struct tui_source_window_base) <reset>: Likewise.
1352 <execution_info>: Remove initializer.
1353 * tui/tui-data.c (tui_source_window_base): Initialize
1354 execution_info.
1355
80110957
TT
13562019-07-17 Tom Tromey <tom@tromey.com>
1357
1358 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1359 variable.
1360
cf82af05
TT
13612019-07-17 Tom Tromey <tom@tromey.com>
1362
1363 * tui/tui.c (tui_rl_other_window): Update.
1364 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1365 superclass method first. Always iterate over regs_content.
1366 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1367 method.
1368 * tui/tui-win.c (tui_set_focus_command): Update.
1369
01aeb396
TT
13702019-07-17 Tom Tromey <tom@tromey.com>
1371
1372 * tui/tui-win.c (tui_set_focus_command): Rename from
1373 tui_set_focus. Call tui_enable.
1374 (tui_set_focus_command): Remove.
1375
fd6c75ee
TT
13762019-07-17 Tom Tromey <tom@tromey.com>
1377
1378 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1379 refresh_window.
1380 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1381 touchwin.
1382 (tui_data_window::refresh_window): Call refresh_window on data
1383 items. Always call superclass refresh_window.
1384 (tui_win_info::refresh): Remove.
1385 (tui_source_window_base::refresh_window): Update.
1386 (tui_refresh_all): Update.
1387 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1388 refresh_window.
1389 (show_source_or_disasm_and_command): Likewise.
1390 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1391 (struct tui_source_window_base) <refresh>: Likewise.
1392
f6cc34a9
TT
13932019-07-17 Tom Tromey <tom@tromey.com>
1394
1395 * tui/tui-winsource.c (tui_clear_source_content)
1396 (tui_show_source_content): Update.
1397 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1398 whether content is empty.
1399 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1400 Remove.
1401
f31ec9af
TT
14022019-07-17 Tom Tromey <tom@tromey.com>
1403
1404 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1405 window's contents.
1406 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1407 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1408
d1b6f1e5
TT
14092019-07-17 Tom Tromey <tom@tromey.com>
1410
1411 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1412 (struct tui_data_item_window): Update.
1413
d9743a13
TT
14142019-07-17 Tom Tromey <tom@tromey.com>
1415
1416 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1417 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1418 defines.
1419
caf0bc4e
TT
14202019-07-17 Tom Tromey <tom@tromey.com>
1421
1422 * tui/tui-winsource.h (tui_erase_source_content)
1423 (tui_clear_source_content): Remove "display_prompt" parameter.
1424 * tui/tui-winsource.c (tui_update_source_window_as_is)
1425 (tui_update_source_windows_with_addr): Update.
1426 (tui_clear_source_content): Remove "display_prompt" parameter.
1427 (tui_erase_source_content): Likewise. Simplify.
1428 (tui_show_source_content): Update.
1429 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1430 * tui/tui-stack.c (tui_show_frame_info): Update.
1431 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1432 Remove defines.
1433
9d391078
TT
14342019-07-17 Tom Tromey <tom@tromey.com>
1435
1436 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1437 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1438 parameter.
1439 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1440 parameter.
1441
a38da35d
TT
14422019-07-17 Tom Tromey <tom@tromey.com>
1443
1444 * tui/tui-winsource.c (tui_clear_source_content)
1445 (tui_show_source_content, tui_show_exec_info_content)
1446 (tui_clear_exec_info_content): Update.
1447 * tui/tui-stack.c (tui_show_locator_content): Update.
1448 (tui_show_frame_info): Update.
1449 * tui/tui-source.h (tui_source_window): Don't declare.
1450 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1451 from tui_source_is_displayed.
1452 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1453 Remove field.
1454 (struct tui_source_window_base) <content_in_use>: New field. Now
1455 bool.
1456 (struct tui_source_window) <showing_source_p>: New method.
1457 (TUI_SRC_WIN): Change cast.
1458 * tui/tui-data.c (tui_initialize_static_data): Update.
1459
c2cd8994
TT
14602019-07-17 Tom Tromey <tom@tromey.com>
1461
1462 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1463 location_matches_p.
1464 * tui/tui-source.c (tui_source_window::location_matches_p): New
1465 method.
1466 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1467 method.
1468 * tui/tui-data.h (struct tui_source_window_base)
1469 <location_matches_p>: New method.
1470 (struct tui_source_window, struct tui_disasm_window)
1471 <location_matches_p>: Likewise.
1472
4dde7b34
TT
14732019-07-17 Tom Tromey <tom@tromey.com>
1474
1475 * tui/tui-win.c (tui_set_win_height_command): Rename from
1476 tui_set_win_height.
1477 (tui_set_win_height_command): Remove.
1478
b73dd877
TT
14792019-07-17 Tom Tromey <tom@tromey.com>
1480
1481 * tui/tui-source.c (tui_source_window): New constructor. Add
1482 observer.
1483 (~tui_source_window): New destructor.
1484 (tui_source_window::style_changed): New method.
1485 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1486 (tui_attach_detach_observers): Update.
1487 * tui/tui-data.h (struct tui_source_window): Make constructor not
1488 inline. Add destructor.
1489 (struct tui_source_window) <style_changed>: New method.
1490 <m_observable>: New member.
1491
ae2b5380
TT
14922019-07-17 Tom Tromey <tom@tromey.com>
1493
1494 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1495 * tui/tui-win.c (tui_resize_all): Fix typo.
1496
1ce3e844
TT
14972019-07-17 Tom Tromey <tom@tromey.com>
1498
1499 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1500 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1501 (tui_refresh_all): Remove "list" parameter. Use foreach.
1502 * tui/tui-win.c (window_name_completer): Use foreach.
1503 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1504 (update_tab_width): Likewise.
1505 * tui/tui-layout.c (show_layout): Update.
1506 * tui/tui-data.h (class tui_window_iterator): New.
1507 (struct all_tui_windows): New.
1508 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1509
fe3eaf1c
TT
15102019-07-17 Tom Tromey <tom@tromey.com>
1511
1512 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1513 parameter. Don't reference globals.
1514 (tui_reg_command): Update.
1515
368c1354
TT
15162019-07-17 Tom Tromey <tom@tromey.com>
1517
1518 * tui/tui-regs.c (tui_show_registers): Simplify.
1519
e80cd204
TT
15202019-07-17 Tom Tromey <tom@tromey.com>
1521
1522 * tui/tui-regs.c (tui_show_registers): Update.
1523 (tui_show_register_group): Add win_info parameter.
1524
aca2dd16
TT
15252019-07-17 Tom Tromey <tom@tromey.com>
1526
1527 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1528 Rename from tui_display_reg_element_at_line.
1529 (tui_data_window::display_registers_from_line): Update.
1530 * tui/tui-data.h (struct tui_data_window)
1531 <display_reg_element_at_line>: New method.
1532
517e9505
TT
15332019-07-17 Tom Tromey <tom@tromey.com>
1534
1535 * tui/tui-regs.h (tui_display_registers_from)
1536 (tui_display_registers_from_line): Don't declare.
1537 * tui/tui-windata.c (tui_data_window::display_all_data)
1538 (tui_data_window::refresh_all)
1539 (tui_data_window::do_scroll_vertical): Update.
1540 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1541 from tui_display_registers_from.
1542 (tui_display_reg_element_at_line): Update.
1543 (tui_data_window::display_registers_from_line): Rename from
1544 tui_display_registers_from_line.
1545 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1546 display_registers_from_line>: New methods.
1547
f76d8b19
TT
15482019-07-17 Tom Tromey <tom@tromey.com>
1549
1550 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1551 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1552 from tui_erase_data_content.
1553 (tui_data_window::display_all_data)
1554 (tui_data_window::refresh_all)
1555 (tui_data_window::do_scroll_vertical): Update.
1556 * tui/tui-regs.c (tui_show_registers): Update.
1557 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1558 New method.
1559
b4094625
TT
15602019-07-17 Tom Tromey <tom@tromey.com>
1561
1562 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1563 declare.
1564 * tui/tui-windata.c
1565 (tui_data_window::delete_data_content_windows): Rename from
1566 tui_delete_data_content_windows.
1567 (tui_data_window::display_all_data)
1568 (tui_data_window::do_scroll_vertical): Update.
1569 * tui/tui-data.h (struct tui_data_window)
1570 <delete_data_content_windows>: New method.
1571
c223a729
TT
15722019-07-17 Tom Tromey <tom@tromey.com>
1573
1574 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1575 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1576
50daf268
TT
15772019-07-17 Tom Tromey <tom@tromey.com>
1578
1579 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1580 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1581 from tui_display_all_data.
1582 * tui/tui-win.c
1583 (tui_data_window::do_make_visible_with_new_height): Update.
1584 * tui/tui-regs.c (tui_show_registers): Update.
1585 * tui/tui-layout.c (tui_set_layout): Update.
1586 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1587 method.
1588
df5f8cab
TT
15892019-07-17 Tom Tromey <tom@tromey.com>
1590
1591 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1592 * tui/tui-windata.c (tui_display_data_from): Remove.
1593 (tui_data_window::refresh_all): Update.
1594
80cb6c27
TT
15952019-07-17 Tom Tromey <tom@tromey.com>
1596
1597 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1598 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1599 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1600 tui_display_registers_from_line.
1601 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1602 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1603 "force_display" parameter.
1604
baff0c28
TT
16052019-07-17 Tom Tromey <tom@tromey.com>
1606
1607 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1608 declare.
1609 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1610 Rename from tui_first_reg_element_no_inline.
1611 (tui_display_reg_element_at_line)
1612 (tui_display_registers_from_line): Update.
1613 * tui/tui-data.h (struct tui_data_window)
1614 <first_reg_element_no_inline>: New method.
1615
3b23c5f2
TT
16162019-07-17 Tom Tromey <tom@tromey.com>
1617
1618 * tui/tui-windata.c (tui_display_data_from)
1619 (tui_data_window::do_scroll_vertical): Update.
1620 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1621 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1622 Rename from tui_line_from_reg_element_no.
1623 (tui_display_registers_from_line): Update.
1624 * tui/tui-data.h (struct tui_data_window)
1625 <line_from_reg_element_no>: New method.
1626
0b5ec218
TT
16272019-07-17 Tom Tromey <tom@tromey.com>
1628
1629 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1630 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1631 tui_last_regs_line_no.
1632 (tui_display_reg_element_at_line)
1633 (tui_display_registers_from_line): Update.
1634 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1635 method.
1636
0807ab7b
TT
16372019-07-17 Tom Tromey <tom@tromey.com>
1638
1639 PR tui/24722:
1640 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1641 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1642 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1643 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1644 (tui_update_breakpoint_info): Likewise.
1645 * tui/tui-hooks.c (tui_event_create_breakpoint)
1646 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1647 Update.
1648
9ad7fdef
TT
16492019-07-17 Tom Tromey <tom@tromey.com>
1650
1651 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1652
5813316f
TT
16532019-07-17 Tom Tromey <tom@tromey.com>
1654
1655 * tui/tui-winsource.c (tui_update_source_window_as_is)
1656 (tui_update_source_windows_with_addr): Update.
1657 * tui/tui-source.h (tui_set_source_content)
1658 (tui_show_symtab_source): Add "win_info" parameter.
1659 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1660 parameter.
1661 (tui_show_symtab_source): Likewise.
1662
00e264e7
TT
16632019-07-17 Tom Tromey <tom@tromey.com>
1664
1665 * tui/tui-wingeneral.c
1666 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1667
06210ce4
TT
16682019-07-17 Tom Tromey <tom@tromey.com>
1669
1670 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1671 (struct tui_cmd_window) <can_scroll>: New method.
1672 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1673 method.
1674
381befee
TT
16752019-07-17 Tom Tromey <tromey@adacore.com>
1676
1677 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1678 do_field_signed>: Rename. Change type of "value".
1679 * ui-out.c (ui_out::field_signed): Rename from field_int.
1680 Change type of "value".
1681 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1682 type of "value".
1683 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1684 do_field_int. Change type of "value".
1685 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1686 do_field_int. Change type of "value".
1687 * tracepoint.c (trace_status_mi, tfind_1)
1688 (print_one_static_tracepoint_marker): Update.
1689 * thread.c (print_thread_info_1, print_selected_thread_frame):
1690 Update.
1691 * stack.c (print_frame, print_frame_info): Update.
1692 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1693 Update.
1694 * source.c (print_source_lines_base): Update.
1695 * skip.c (info_skip_command): Update.
1696 * record-btrace.c (btrace_ui_out_decode_error)
1697 (btrace_call_history_src_line): Update.
1698 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1699 Update.
1700 * progspace.c (print_program_space): Update.
1701 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1702 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1703 do_field_int. Change type of "value".
1704 * mi/mi-out.c (mi_ui_out::do_table_begin)
1705 (mi_ui_out::do_table_header): Update.
1706 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1707 type of "value".
1708 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1709 (mi_cmd_data_list_changed_registers, output_register)
1710 (mi_cmd_data_read_memory, mi_load_progress)
1711 (mi_cmd_trace_frame_collected): Update.
1712 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1713 Update.
1714 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1715 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1716 (mi_cmd_var_list_children, varobj_update_one): Update.
1717 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1718 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1719 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1720 * inferior.c (print_inferior): Update.
1721 * gdb_bfd.c (print_one_bfd): Update.
1722 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1723 Update.
1724 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1725 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1726 do_field_int. Change type of "value".
1727 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1728 do_field_int. Change type of "value".
1729 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1730 (print_one_breakpoint_location, print_it_catch_fork)
1731 (print_one_catch_fork, print_it_catch_vfork)
1732 (print_one_catch_vfork, print_it_catch_solib)
1733 (print_it_catch_exec, print_it_ranged_breakpoint)
1734 (print_mention_watchpoint, print_mention_masked_watchpoint)
1735 (bkpt_print_it, update_static_tracepoint): Update.
1736 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1737 * break-catch-syscall.c (print_it_catch_syscall): Update.
1738 * ada-tasks.c (print_ada_task_info): Update.
1739 * ada-lang.c (print_it_exception, print_mention_exception):
1740 Update.
1741
6b78c3f8
AB
17422019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1743
1744 PR breakpoints/24541
1745 * gdbarch.c: Regenerate.
1746 * gdbarch.h: Regenerate.
1747 * gdbarch.sh: Adjust return type and parameter types for
1748 'stap_adjust_register'.
1749 (i386_stap_adjust_register): Adjust signature and return new
1750 register name.
1751 * stap-probe.c (stap_parse_register_operand): Adjust use of
1752 'gdbarch_stap_adjust_register'.
1753
d72a9b85
TT
17542019-07-17 Tom Tromey <tromey@adacore.com>
1755
1756 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1757 declare VEC.
1758 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1759 std::vector.
1760 (struct s390_process_info): Add initializers.
1761 (s390_add_process): Use new.
1762 (s390_linux_nat_target::low_forget_process): Use delete.
1763 (s390_linux_nat_target::low_new_fork)
1764 (s390_linux_nat_target::stopped_by_watchpoint)
1765 (s390_linux_nat_target::low_prepare_to_resume)
1766 (s390_linux_nat_target::insert_watchpoint)
1767 (s390_linux_nat_target::insert_hw_breakpoint)
1768 (s390_linux_nat_target::remove_watchpoint)
1769 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1770
206e6c58
JB
17712019-07-16 John Baldwin <jhb@FreeBSD.org>
1772
1773 * aarch64-fbsd-nat.c: Include regcache.h.
1774 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1775 argument.
1776 (aarch64_fbsd_nat_target::fetch_registers)
1777 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1778 variable.
1779 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1780
cbde90f2
JB
17812019-07-16 John Baldwin <jhb@FreeBSD.org>
1782
1783 * fbsd-nat.c: Include gdbarch.h.
1784
07128006
TT
17852019-07-15 Tom Tromey <tromey@adacore.com>
1786
1787 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1788
1f77b012
TT
17892019-07-15 Tom Tromey <tromey@adacore.com>
1790
1791 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1792 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1793 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1794 * cli-out.c (cli_ui_out::do_field_int): New method.
1795 * ui-out.c (ui_out::field_unsigned): New method.
1796 * symfile.c (generic_load): Use field_unsigned.
1797 (print_transfer_performance): Likewise.
1798 * record-btrace.c (ui_out_field_uint): Remove.
1799 (btrace_call_history_insn_range, btrace_call_history): Use
1800 field_unsigned.
1801 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1802 field_unsigned.
1803 * ui-out.h (class ui_out) <field_unsigned>: New method.
1804 <do_field_unsigned>: Likewise.
1805
33eca680
TT
18062019-07-15 Tom Tromey <tromey@adacore.com>
1807
1808 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1809 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1810 * target.c (flash_erase_command): Use field_string.
1811 * infrun.c (print_signal_received_reason): Use field_string.
1812 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1813 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1814 field_string.
1815 * ada-tasks.c (print_ada_task_info): Use field_string.
1816
ca8d69be
TT
18172019-07-15 Tom Tromey <tromey@adacore.com>
1818
1819 * target.c (flash_erase_command): Use field_core_addr.
1820 * symfile.c (generic_load): Use field_core_addr.
1821 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1822 Use field_core_addr.
1823 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1824 field_core_addr.
1825
0d4e84ed
AB
18262019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1827
1828 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1829 value if its desired type is smaller than a CORE_ADDR and signed.
1830
9a49df9d
AB
18312019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1832
1833 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1834 of changes to field names, and use new is_reference field to
1835 decide if a property is a reference or not.
1836 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1837 field.
1838 (struct dwarf2_property_baton): Update header comment, rename
1839 'referenced_type' to 'property_type' and update comments.
1840 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1841 default property type, store in property baton, update to take
1842 accound of renamed field.
1843 (read_func_scope): Update call to attr_to_dynamic_prop.
1844 (read_array_type): Likewise.
1845 (dwarf2_per_cu_addr_sized_int_type): New function.
1846 (read_subrange_index_type): Move type finding code to
1847 dwarf2_per_cu_addr_sized_int_type.
1848 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1849 (dwarf2_per_cu_addr_type): New function.
1850 (set_die_type): Update calls to attr_to_dynamic_prop.
1851
b86352cf
AB
18522019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1853
1854 * dwarf2read.c (read_subrange_index_type): New function.
1855 (read_subrange_type): Move code into new function and call it.
1856 * gdbtypes.c (create_range_type): Add some asserts.
1857
603490bf
AB
18582019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1861 update return statements.
1862 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1863 declaration, and update comment to match.
1864 * gdbtypes.c (resolve_dynamic_array): Update call to
1865 dwarf2_evaluate_property to match new return type.
1866
592f9d27
AB
18672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1868
1869 * valarith.c (value_subscripted_rvalue): Change lowerbound
1870 parameter type from int to LONGEST.
1871 * value.h (value_subscripted_rvalue): Likewise in declaration.
1872
60cfcb20
AB
18732019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1874
1875 * cli/cli-utils.c (info_print_command_completer): New function.
1876 * cli/cli-utils.h: Add 'completer.h' include, and forward
1877 declaration for 'struct cmd_list_element'.
1878 (info_print_command_completer): Declare.
1879 * stack.c (_initialize_stack): Add completer for 'info locals' and
1880 'info args'.
1881 * symtab.c (_initialize_symtab): Add completer for 'info
1882 variables' and 'info functions'.
1883 * NEWS: Mention completion for additional info commands.
1884
b16507e0
AB
18852019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * cli/cli-utils.c (extract_info_print_args): Delete.
1888 (extract_arg_maybe_quoted): Delete.
1889 (info_print_options_defs): New variable.
1890 (make_info_print_options_def_group): New function.
1891 (extract_info_print_options): Define new function.
1892 * cli/cli-utils.h (extract_info_print_args): Delete.
1893 (struct info_print_options): New structure.
1894 (extract_info_print_options): Declare new function.
1895 * stack.c (info_locals_command): Update to use new
1896 extract_info_print_options, also add a header comment.
1897 (info_args_command): Likewise.
1898 * symtab.c (info_variables_command): Likewise.
1899 (info_functions_command): Likewise.
1900
021d8588
AB
19012019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1904 to extract string arguments.
1905 * common/common-utils.c (extract_string_maybe_quoted): New function.
1906 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1907
b777eb6d
TT
19082019-07-11 Tom Tromey <tromey@adacore.com>
1909
1910 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1911 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1912 * top.h (gdbinit): Don't declare.
1913 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1914 into...
1915 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1916 * top.c (gdb_init): Don't call init_cli_cmds.
1917 (gdbinit): Remove.
1918 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1919
72ee03ff
TT
19202019-07-11 Tom Tromey <tromey@adacore.com>
1921
1922 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1923 after it has been moved.
1924
00db9531
SM
19252019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * valops.c (value_must_coerce_to_target): Change return type to
1928 bool.
1929 * value.h (value_must_coerce_to_target): Likewise.
1930
f2478a7e
SM
19312019-07-10 Simon Marchi <simon.marchi@efficios.com>
1932
1933 * breakpoint.c (is_hardware_watchpoint): Remove
1934 forward-declaration.
1935 (is_masked_watchpoint): Change return type to bool.
1936 (is_tracepoint): Likewise.
1937 (is_breakpoint): Likewise.
1938 (is_hardware_watchpoint): Likewise.
1939 (is_watchpoint): Likewise.
1940 (is_no_memory_software_watchpoint): Likewise.
1941 (is_catchpoint): Likewise.
1942 (breakpoint_1): Make FILTER parameter's return type bool.
1943 is_masked_watchpoint): Change return type to bool.
1944 (save_breakpoints): Make FILTER parameter's return type bool.
1945 * breakpoint.h (is_breakpoint): Change return type to bool.
1946 (is_watchpoint): Likewise.
1947 (is_catchpoint): Likewise.
1948 (is_tracepoint): Likewise.
1949
0d12e84c
TT
19502019-07-10 Tom Tromey <tom@tromey.com>
1951
1952 * defs.h: Don't include gdbarch.h.
1953 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1954 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1955 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1956 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1957 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1958 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1959 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1960 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1961 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1962 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1963 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1964 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1965 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1966 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1967 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1968 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1969 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1970 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1971 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1972 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1973 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1974 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1975 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1976 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1977 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1978 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1979 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1980
f06f1252
TT
19812019-07-10 Tom Tromey <tromey@adacore.com>
1982
1983 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1984 * breakpoint.c (init_ada_exception_breakpoint): Register as
1985 bp_catchpoint.
1986 (print_one_breakpoint_location, print_one_breakpoint): Use
1987 is_ada_exception_catchpoint.
1988 * ada-lang.c (class ada_catchpoint_location): Pass
1989 bp_loc_software_breakpoint to bp_location constructor.
1990 (is_ada_exception_catchpoint): New function.
1991
7a5d944b
TT
19922019-07-10 Tom Tromey <tromey@adacore.com>
1993
1994 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1995 VEC.
1996 (struct arm_exidx_entry): New method operator<.
1997 (struct arm_exidx_data) <section_maps>: Change type.
1998 (arm_exidx_data_free): Remove.
1999 (arm_exidx_data_key): Change type. Move lower.
2000 (arm_exidx_new_objfile): Update.
2001 (arm_compare_exidx_entries): Remove.
2002 (arm_find_exidx_entry, _initialize_arm_tdep)
2003
48c66e1d
TT
20042019-07-10 Tom Tromey <tromey@adacore.com>
2005
2006 * solib-spu.c (ocl_program_data_key): Change type.
2007 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2008 Update.
2009
a269fbf1
TT
20102019-07-10 Tom Tromey <tromey@adacore.com>
2011
2012 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2013 (struct solib_aix_inferior_data) <library_list>: Change type.
2014 (solib_aix_inferior_data_handle): Change type.
2015 (get_solib_aix_inferior_data): Update.
2016 (solib_aix_free_library_list): Remove.
2017 (library_list_start_library): Update.
2018 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2019 return type.
2020 (solib_aix_get_library_list)
2021 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2022 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2023
c294730c
TT
20242019-07-10 Tom Tromey <tromey@adacore.com>
2025
2026 * solib-dsbt.c (struct dsbt_info): Add initializers.
2027 (solib_dsbt_pspace_data): Change type.
2028 (dsbt_pspace_data_cleanup): Remove.
2029 (get_dsbt_info, _initialize_dsbt_solib): Update.
2030
9d52077d
TT
20312019-07-10 Tom Tromey <tromey@adacore.com>
2032
2033 * spu-tdep.c (spu_overlay_data): Change type.
2034 (spu_get_overlay_table, spu_overlay_new_objfile)
2035 (_initialize_spu_tdep): Update.
2036
22a20dca
TT
20372019-07-10 Tom Tromey <tromey@adacore.com>
2038
2039 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2040 destructor.
2041 (dbx_objfile_data_key): Change type and declare later.
2042 (DBX_SYMFILE_INFO): Rewrite.
2043 * dbxread.c (dbx_objfile_data_key): Change type.
2044 (dbx_symfile_init): Update.
2045 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2046 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2047 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2048
cb60f420
TT
20492019-07-10 Tom Tromey <tromey@adacore.com>
2050
2051 * jit.c (jit_program_space_key): Change type. Move lower.
2052 (get_jit_program_space_data): Update.
2053 (jit_program_space_data_cleanup): Remove.
2054 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2055 Update.
2056 (struct jit_program_space_data): Add initializers.
2057
51df2ae3
TT
20582019-07-10 Tom Tromey <tromey@adacore.com>
2059
2060 * solib-darwin.c (struct darwin_info): Add initializers.
2061 (solib_darwin_pspace_data): Change type.
2062 (darwin_pspace_data_cleanup): Remove.
2063 (get_darwin_info, _initialize_darwin_solib): Update.
2064
18101a35
TT
20652019-07-10 Tom Tromey <tromey@adacore.com>
2066
2067 * remote-sim.c (struct sim_inferior_data): Add initializers,
2068 constructor, and destructor.
2069 (sim_inferior_data_key): Change type. Move lower.
2070 (check_for_duplicate_sim_descriptor): Update.
2071 (get_sim_inferior_data): Use new. Update.
2072 (~sim_inferior_data_cleanup): Rename from
2073 sim_inferior_data_cleanup. Simplify.
2074 (gdbsim_close_inferior, simulator_command)
2075 (sim_command_completer, _initialize_remote_sim): Update.
2076 (next_pid, INITIAL_PID): Move earlier.
2077
05b08ac1
TT
20782019-07-10 Tom Tromey <tromey@adacore.com>
2079
2080 * python/python-internal.h (create_thread_object): Return
2081 gdbpy_ref.
2082 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2083 * python/py-inferior.c (struct threadlist_entry): Add
2084 constructor.
2085 <thread_obj>: Now a gdbpy_ref.
2086 (thread_to_thread_object): Update.
2087 (add_thread_object): Use new.
2088 (delete_thread_object): Use delete.
2089 (infpy_threads): Update.
2090 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2091 GIL.
2092
32372d80
TT
20932019-07-10 Tom Tromey <tromey@adacore.com>
2094
2095 * valops.c (value_cast): Specialize error message for Ada.
2096
5c458ae8
SM
20972019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2098
2099 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2100
4c462cb0
SM
21012019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2102
2103 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2104 bpstat_should_step): Return bool, adjust comments.
2105 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2106 bpstat_should_step): Likewise.
2107
89abbcc2
AH
21082019-07-10 Alan Hayward <alan.hayward@arm.com>
2109
2110 * features/Makefile: Use feature target descriptions for Arm.
2111 * features/arm/arm-core.c: Generate new file.
2112 * features/arm/arm-fpa.c: Likewise.
2113 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2114 * features/arm/arm-m-profile.c: Likewise.
2115 * features/arm/arm-vfpv2.c: Likewise.
2116 * features/arm/arm-vfpv3.c: Likewise.
2117 * features/arm/xscale-iwmmxt.c: Likewise.
2118 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2119
166a82be
AH
21202019-07-10 Alan Hayward <alan.hayward@arm.com>
2121
2122 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2123 ptrace earlier.
2124
9fb4c7e9
AH
21252019-07-10 Alan Hayward <alan.hayward@arm.com>
2126
2127 * features/aarch64-pauth.c: Regenerate.
2128
e2d0f980
SM
21292019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2130
2131 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2132 bool.
2133 (bpstat_what): Use false instead of 0.
2134
a38118e5
PA
21352019-07-09 Pedro Alves <palves@redhat.com>
2136
2137 * break-catch-throw.c (is_exception_catchpoint): New.
2138 * breakpoint.c (print_one_breakpoint_location): New parameter
2139 'raw_loc'. Handle it. Use
2140 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2141 looking at the breakpoint's type.
2142 (print_one_breakpoint): If handling "maint info breakpoints", also
2143 print locations of exception catchpoints.
2144 * breakpoint.h (is_exception_catchpoint): Declare.
2145
cb1e4e32
PA
21462019-07-09 Pedro Alves <palves@redhat.com>
2147
2148 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2149 "addr" field.
2150 (allocate_location_exception_catchpoint): New.
2151 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2152 (initialize_throw_catchpoint_ops): Install
2153 allocate_location_exception_catchpoint as allocate_location
2154 method.
2155 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2156 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2157 bp_loc_other.
2158 (breakpoint_address_is_meaningful): Delete.
2159 (bl_address_is_meaningful): New.
2160 (breakpoint_locations_match): Adjust comment.
2161 (bp_location_from_bp_type): New, factored out of...
2162 (bp_location::bp_location(breakpoint *)): ... this.
2163 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2164 factored out of...
2165 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2166 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2167 breakpoint_address_is_meaningful.
2168 (bp_locations_compare): Adjust comment.
2169 (update_global_location_list): Use bl_address_is_meaningful
2170 instead of breakpoint_address_is_meaningful.
2171 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2172 explicit.
2173 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2174 * python/py-breakpoint.c (bppy_get_location): No longer check
2175 whether location is null.
2176
b58a68fe
PA
21772019-07-09 Pedro Alves <palves@redhat.com>
2178
2179 PR c++/15468
2180 * breakpoint.c (print_one_breakpoint_location): Remove
2181 single-location assert.
2182
268a13a5
TT
21832019-07-09 Tom Tromey <tom@tromey.com>
2184
2185 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2186 * configure: Rebuild.
2187 * configure.ac: Change common to gdbsupport.
2188 * gdbsupport: Rename from common.
2189 * acinclude.m4: Change common to gdbsupport.
2190 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2191 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2192 gdbsupport.
2193 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2194 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2195 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2196 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2197 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2198 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2199 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2200 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2201 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2202 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2203 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2204 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2205 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2206 coff-pe-read.c, command.h, compile/compile-c-support.c,
2207 compile/compile-c.h, compile/compile-cplus-symbols.c,
2208 compile/compile-cplus-types.c, compile/compile-cplus.h,
2209 compile/compile-loc2c.c, compile/compile.c, completer.c,
2210 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2211 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2212 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2213 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2214 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2215 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2216 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2217 features/aarch64-core.c, features/aarch64-fpu.c,
2218 features/aarch64-pauth.c, features/aarch64-sve.c,
2219 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2220 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2221 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2222 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2223 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2224 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2225 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2226 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2227 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2228 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2229 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2230 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2231 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2232 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2233 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2234 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2235 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2236 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2237 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2238 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2239 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2240 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2241 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2242 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2243 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2244 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2245 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2246 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2247 minsyms.c, mips-linux-tdep.c, namespace.h,
2248 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2249 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2250 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2251 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2252 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2253 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2254 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2255 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2256 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2257 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2258 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2259 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2260 procfs.c, producer.c, progspace.h, psymtab.h,
2261 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2262 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2263 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2264 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2265 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2266 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2267 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2268 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2269 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2270 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2271 target-memory.c, target.c, target.h, target/waitstatus.c,
2272 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2273 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2274 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2275 unittests/array-view-selftests.c,
2276 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2277 unittests/common-utils-selftests.c,
2278 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2279 unittests/format_pieces-selftests.c,
2280 unittests/function-view-selftests.c,
2281 unittests/lookup_name_info-selftests.c,
2282 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2283 unittests/mkdir-recursive-selftests.c,
2284 unittests/observable-selftests.c,
2285 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2286 unittests/parse-connection-spec-selftests.c,
2287 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2288 unittests/scoped_fd-selftests.c,
2289 unittests/scoped_mmap-selftests.c,
2290 unittests/scoped_restore-selftests.c,
2291 unittests/string_view-selftests.c, unittests/style-selftests.c,
2292 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2293 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2294 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2295 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2296 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2297 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2298
5b0e2db4
AB
22992019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2300
2301 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2302 bool value.
2303 (decode_digits_ordinary): Set explicit_line field in sal.
2304 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2305 symtab_and_line that was set on an explicit line number in
2306 assembler code. Do always update the recorded symtab and line if
2307 we do skip the prologue.
2308
0ba852ab
AB
23092019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2310
2311 * breakpoint.c (set_breakpoint_location_function): Remove
2312 explicit_loc parameter.
2313 (momentary_breakpoint_from_master): Update call to
2314 set_breakpoint_location_function.
2315 (add_location_to_breakpoint): Likewise.
2316
b3a7d171
AB
23172019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2320 required features based on default bfd type when no specific bfd
2321 is present.
2322
1f6f6e21
PW
23232019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2324
2325 * NEWS: Mention that GDB printf and eval commands can now print
2326 C-style and Ada-style convenience var strings without
2327 calling the inferior.
2328 * printcmd.c (printf_c_string): Locally print GDB internal var
2329 instead of transiting via the inferior.
2330 (printf_wide_c_string): Likewise.
2331
23322019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2333
2334 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2335
0598af48
TT
23362019-07-04 Tom Tromey <tom@tromey.com>
2337
2338 PR tui/24724:
2339 * tui/tui-winsource.c (tui_clear_source_content): Update.
2340 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2341 (tui_update_breakpoint_info): Update.
2342 (tui_set_exec_info_content): Update.
2343 * tui/tui-source.c (tui_set_source_content_nil): Update.
2344 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2345 has_break.
2346 * tui/tui-data.h (enum tui_bp_flag): New.
2347 (tui_bp_flags): New enum flags type.
2348 (struct tui_source_element) <break_mode>: Change type. Rename
2349 from has_break.
2350 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2351 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2352 constants.
2353 * tui/tui-winsource.h: Fix comment.
2354
350fab54
AH
23552019-07-04 Alan Hayward <alan.hayward@arm.com>
2356
2357 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2358 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2359 (store_fpregs_to_thread)
2360 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2361 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2362 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2363 (IWMMXT_REGS_SIZE): Add define.
2364 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2365 (fetch_vfp_regs, store_vfp_regs)
2366 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2367 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2368
f0452268
AH
23692019-07-04 Alan Hayward <alan.hayward@arm.com>
2370
2371 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2372 defines.
2373 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2374 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2375 (ARM_INT_REGISTER_SIZE): ...to this.
2376 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2377 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2378 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2379 (arm_linux_collect_gregset, supply_nwfpe_register)
2380 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2381 defines.
2382 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2383 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2384 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2385 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2386 (arm_return_in_memory, arm_store_return_value)
2387 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2388 (arm_record_ld_st_multiple): Likewise.
2389 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2390 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2391
e935475c
AH
23922019-07-04 Alan Hayward <alan.hayward@arm.com>
2393
2394 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2395 AARCH64_DISPLACED_MODIFIED_INSNS.
2396 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2397 (aarch64_displaced_step_copy_insn): Likewise.
2398 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2399 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2400 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2401 ARM_DISPLACED_MODIFIED_INSNS.
2402 * arm-tdep.c (arm_gdbarch_init): Likewise.
2403 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2404 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2405 (struct arm_displaced_step_closure): Use
2406 ARM_DISPLACED_MODIFIED_INSNS.
2407
df0bb381
AH
24082019-07-04 Alan Hayward <alan.hayward@arm.com>
2409
2410 * features/Makefile: Remove unused xml files.
2411 * features/aarch64.xml: Remove.
2412 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2413 * features/i386/amd64-avx-avx512.xml: Remove.
2414 * features/i386/amd64-avx-linux.xml: Remove.
2415 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2416 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2417 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2418 * features/i386/amd64-avx-mpx.xml: Remove.
2419 * features/i386/amd64-avx.xml: Remove.
2420 * features/i386/amd64-linux.xml: Remove.
2421 * features/i386/amd64-mpx-linux.xml: Remove.
2422 * features/i386/amd64-mpx.xml: Remove.
2423 * features/i386/amd64.xml: Remove.
2424 * features/i386/i386-avx-avx512-linux.xml: Remove.
2425 * features/i386/i386-avx-avx512.xml: Remove.
2426 * features/i386/i386-avx-linux.xml: Remove.
2427 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2428 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2429 * features/i386/i386-avx-mpx-linux.xml: Remove.
2430 * features/i386/i386-avx-mpx.xml: Remove.
2431 * features/i386/i386-avx.xml: Remove.
2432 * features/i386/i386-linux.xml: Remove.
2433 * features/i386/i386-mmx-linux.xml: Remove.
2434 * features/i386/i386-mmx.xml: Remove.
2435 * features/i386/i386-mpx-linux.xml: Remove.
2436 * features/i386/i386-mpx.xml: Remove.
2437 * features/i386/i386.xml: Remove.
2438 * features/i386/x32-avx-avx512-linux.xml: Remove.
2439 * features/i386/x32-avx-linux.xml: Remove.
2440 * features/i386/x32-linux.xml: Remove.
2441
edd6266a
AH
24422019-07-04 Alan Hayward <alan.hayward@arm.com>
2443
2444 * regformats/aarch64.dat: Remove.
2445 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2446 * regformats/i386/amd64-avx-linux.dat: Remove.
2447 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2448 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2449 * regformats/i386/amd64-linux.dat: Remove.
2450 * regformats/i386/amd64-mpx-linux.dat: Remove.
2451 * regformats/i386/amd64.dat: Remove.
2452 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2453 * regformats/i386/i386-avx-linux.dat: Remove.
2454 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2455 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2456 * regformats/i386/i386-linux.dat: Remove.
2457 * regformats/i386/i386-mmx-linux.dat: Remove.
2458 * regformats/i386/i386-mpx-linux.dat: Remove.
2459 * regformats/i386/i386.dat: Remove.
2460 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2461 * regformats/i386/x32-avx-linux.dat: Remove.
2462 * regformats/i386/x32-linux.dat: Remove.
2463
2b40fda7
AH
24642019-07-04 Alan Hayward <alan.hayward@arm.com>
2465
2466 * aarch64-tdep.c: Remove xml self tests.
2467 * amd64-linux-tdep.c: Likewise.
2468 * amd64-tdep.c: Likewise.
2469 * i386-linux-tdep.c: Likewise.
2470 * i386-tdep.c: Likewise.
2471
5f4ba3e7
PA
24722019-07-03 Pedro Alves <palves@redhat.com>
2473
2474 PR cli/24732
2475 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2476 (pipe_cmd_option_defs): New.
2477 (make_pipe_cmd_options_def_group): New.
2478 (pipe_command): Use gdb::option::process_options.
2479 (pipe_command_completer): New function.
2480 (_initialize_cli_cmds): Install completer for "pipe" command.
2481
3d9be6f5
PA
24822019-07-03 Pedro Alves <palves@redhat.com>
2483
2484 * cli/cli-option.c (union option_value) <string>: New field.
2485 (struct option_def_and_value): Add ctor, move ctor, dtor and
2486 use DISABLE_COPY_AND_ASSIGN.
2487 (option_def_and_value::clear_value): New.
2488 (parse_option, save_option_value_in_ctx, get_val_type_str)
2489 (add_setshow_cmds_for_options): Handle var_string.
2490 * cli-option.h (union option_def::var_address) <string>: New
2491 field.
2492 (struct string_option_def): New.
2493 * maint-test-options.c (struct test_options_opts): Add default
2494 ctor and use DISABLE_COPY_AND_ASSIGN.
2495 <string_opt>: New field.
2496 (test_options_opts::~test_options_opts): New.
2497 (test_options_opts::dump): Also dump "-string".
2498 (test_options_option_defs): Install "string.
2499
41fc454c
PA
25002019-07-03 Pedro Alves <palves@redhat.com>
2501
2502 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2503 option_value with a null enumeration.
2504 (complete_options): Save the option values in the context.
2505 (save_option_value_in_ctx): New, factored out from ...
2506 (process_options): ... here.
2507 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2508 of the function.
2509 * maint-test-options.c (test_options_opts::dump): New, factored
2510 out from ...
2511 (maintenance_test_options_command_mode): ... here.
2512 (maintenance_test_options_command_completion_result): Delete.
2513 (maintenance_test_options_command_completion_text): Update
2514 comment.
2515 (maintenance_show_test_options_completion_result): Change
2516 prototype. Just print
2517 maintenance_test_options_command_completion_text.
2518 (save_completion_result): New.
2519 (maintenance_test_options_completer_mode): Pass options context to
2520 complete_options, and then save a dump.
2521 (_initialize_maint_test_options): Use add_cmd to install "maint
2522 show test-options-completion-result".
2523
fdbc9870
PA
25242019-07-03 Pedro Alves <palves@redhat.com>
2525
2526 * NEWS (New commands): Mention "with" and "maint with".
2527 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2528 (with_command, with_command_completer): New.
2529 (pipe_command): Adjust to new repeat_previous
2530 interface.
2531 (_initialize_cli_cmds): Install the "with" command and its "w"
2532 alias.
2533 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2534 declarations.
2535 * cli/cli-setshow.c (parse_cli_var_uinteger)
2536 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2537 argument strings for all var_types.
2538 (get_setshow_command_value_string): New, factored out from ...
2539 (do_show_command): ... this.
2540 * cli/cli-setshow.h: Include <string>.
2541 (get_setshow_command_value_string): Declare.
2542 * command.h (repeat_previous): Now returns const char *. Adjust
2543 comment.
2544 * maint.c: Include "cli/cli-cmds.h".
2545 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2546 (_initialize_maint_cmds): Register the "maintenance with" command.
2547 * top.c (repeat_previous): Move bits from pipe_command here:
2548 Return the saved command line, if any; error out if there's no
2549 command to relaunch.
2550
c6ac8931
PA
25512019-07-03 Pedro Alves <palves@redhat.com>
2552
2553 * NEWS (New commands): Mention "maint set/show test-settings"
2554 instead of "maint test-settings".
2555 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2556 (maintenance_test_settings_set_list): Rename to ...
2557 (maintenance_set_test_settings_list): ... this.
2558 (maintenance_test_settings_show_list): Rename to ...
2559 (maintenance_show_test_settings_list): ... this.
2560 (maintenance_test_settings_cmd): Delete.
2561 (maintenance_test_settings_set_cmd): ...
2562 (maintenance_set_test_settings_cmd): ... this.
2563 (maintenance_test_settings_show_cmd): ...
2564 (maintenance_show_test_settings_cmd): ... this.
2565 (maintenance_test_settings_show_value_cmd):
2566 (maintenance_show_test_settings_value_cmd): ... this.
2567 (_initialize_maint_test_settings): No longer install the "maint
2568 test-settings" prefix command. Rename "maint test-settings set"
2569 to "maint set test-settings", and "maint test-settings show" to
2570 "maint show test-settings". Adjust all subcommands.
2571
d1fcf2fd
PA
25722019-07-03 Pedro Alves <palves@redhat.com>
2573
2574 * maint-test-settings.c: Fix file's intro comment. Replace all
2575 references to "test-options" with references to "test-settings",
2576 in comments.
2577
970f9d09
PA
25782019-07-03 Pedro Alves <palves@redhat.com>
2579
2580 * maint-test-settings.c (maintenance_test_settings_xxx)
2581 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2582 New.
2583 (maintenance_test_settings_enums): Use them.
2584 (maintenance_test_settings_enum): Default to
2585 maintenance_test_settings_xxx.
2586 (_initialize_maint_test_settings): Initialize
2587 MAINTENANCE_TEST_SETTINGS_FILENAME.
2588
f3869b1a
SM
25892019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2590
2591 * breakpoint.h (remove_breakpoints_inf): Change return type to
2592 void, move function documentation here.
2593 * breakpoint.c (remove_breakpoints_inf): Change return type to
2594 void, move function documentation to header.
2595
54d66006
PA
25962019-07-02 Pedro Alves <palves@redhat.com>
2597
2598 * NEWS (Completion improvements): Mention "info threads".
2599 * thread.c (struct info_threads_opts, info_threads_option_defs)
2600 (make_info_threads_options_def_group): New.
2601 (info_threads_command): Use gdb::option::process_options.
2602 (info_threads_command_completer): New.
2603 (_initialize_thread): Use gdb::option::build_help to build the
2604 help text for "info threads".
2605
854f6088
SM
26062019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2607
2608 * defs.h (generic_load): Move from here...
2609 * symfile.h (generic_load): ... to here. Rename name parameter
2610 to args.
2611 * symfile.c (generic_load): Add comment.
2612
54ee4252
TT
26132019-07-01 Tom Tromey <tromey@adacore.com>
2614
2615 * dwarf2read.c
2616 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2617 declaration of without_params. Fix formatting.
2618
65392b3e
TT
26192019-07-01 Tom Tromey <tromey@adacore.com>
2620
2621 * ada-exp.y (find_primitive_type): Update.
2622 * ada-lang.h (ada_lookup_symbol): Update.
2623 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2624 parameter.
2625 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2626
7d7571f0
SDJ
26272019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2628
2629 PR breakpoints/24541
2630 * gdbarch.c: Regenerate.
2631 * gdbarch.h: Regenerate.
2632 * gdbarch.sh: Add 'stap_adjust_register'.
2633 * i386-tdep.c: Include '<unordered_set>'.
2634 (i386_stap_adjust_register): New function.
2635 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2636 * stap-probe.c (stap_parse_register_operand): Call
2637 'gdbarch_stap_adjust_register'.
2638
5af5392a
SDJ
26392019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2640
2641 PR python/24742
2642 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2643 * python/python.c (do_start_initialization): Use 'xmalloc'
2644 instead of 'PyMem_Malloc'.
2645
10d06d82
TT
26462019-06-28 Tom Tromey <tromey@adacore.com>
2647
2648 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2649 for Ada.
2650
1b7f24cd
TT
26512019-06-27 Tom Tromey <tromey@adacore.com>
2652
2653 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2654 objfile_key.
2655 (arm_find_mapping_symbol, arm_record_special_symbol)
2656 (_initialize_arm_tdep): Update.
2657 (arm_objfile_data_free): Remove.
2658
3d507ff2
TT
26592019-06-27 Tom Tromey <tromey@adacore.com>
2660
2661 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2662 to cp_print_static_field.
2663
762c164d
TT
26642019-06-26 Tom Tromey <tromey@adacore.com>
2665
2666 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2667 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2668 declare.
2669
aa2f9bcf
AH
26702019-06-26 Alan Hayward <alan.hayward@arm.com>
2671
2672 * features/aarch64-core.c (create_feature_aarch64_core):
2673 Regenerate.
2674 * features/aarch64-core.xml: Add cpsr flags.
2675
3426ae57
AH
26762019-06-26 Alan Hayward <alan.hayward@arm.com>
2677
2678 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2679 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2680
4838e44c
SM
26812019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2682
2683 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2684 field.
2685 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2686 use.
2687 (arm_record_special_symbol): Don't insert new symbol in sorted
2688 position, push it at the end.
2689
54cc7474
SM
26902019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2691
2692 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2693 (arm_mapping_symbol_s): Remove.
2694 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2695 (arm_mapping_symbol_vec): New typedef.
2696 (struct arm_per_objfile): Add constructor.
2697 <section_maps>: Change type to
2698 std::unique_ptr<arm_mapping_symbol_vec[]>.
2699 (arm_compare_mapping_symbols): Remove.
2700 (arm_find_mapping_symbol): Adjust to section_maps type change.
2701 (arm_objfile_data_free): Call delete on arm_per_objfile.
2702 (arm_record_special_symbol): Adjust to section_maps type change.
2703 Allocate arm_per_objfile with new.
2704
b65b566c
PW
27052019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2706
2707 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2708 with the command prefix.
2709
c2fc64f5
TT
27102019-06-25 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2713 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2714
fb54fa76
TT
27152019-06-25 Tom Tromey <tom@tromey.com>
2716
2717 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2718 type.
2719 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2720 protected.
2721
f7952c57
TT
27222019-06-25 Tom Tromey <tom@tromey.com>
2723
2724 * tui/tui-winsource.c
2725 (tui_source_window_base::set_is_exec_point_at): Add check against
2726 LOA_ADDRESS.
2727
17568d78
TT
27282019-06-25 Tom Tromey <tom@tromey.com>
2729
2730 * tui/tui-source.c (tui_set_source_content): Don't check before
2731 xfree.
2732 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2733
53e7cdba
TT
27342019-06-25 Tom Tromey <tom@tromey.com>
2735
2736 * tui/tui-winsource.h (tui_update_source_window_as_is)
2737 (tui_alloc_source_buffer, tui_line_is_displayed)
2738 (tui_addr_is_displayed): Change type of win_info.
2739 * tui/tui-winsource.c (tui_update_source_window_as_is)
2740 (tui_clear_source_content, tui_show_source_line)
2741 (tui_show_source_content, tui_source_window_base::refill)
2742 (tui_source_window_base::set_is_exec_point_at)
2743 (tui_source_window_base::set_is_exec_point_at)
2744 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2745 (tui_alloc_source_buffer, tui_line_is_displayed)
2746 (tui_addr_is_displayed): Change type of win_info. Update.
2747 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2748 (tui_source_window_base::do_make_visible_with_new_height):
2749 Update.
2750 * tui/tui-source.c (tui_set_source_content)
2751 (tui_set_source_content_nil)
2752 (tui_source_window::do_scroll_vertical): Update.
2753 * tui/tui-layout.c (show_layout): Update.
2754 * tui/tui-disasm.c (tui_set_disassem_content)
2755 (tui_disasm_window::do_scroll_vertical): Update.
2756 * tui/tui-data.h (tui_win_content): Remove.
2757 (struct tui_gen_win_info) <content, content_size>: Remove.
2758 (struct tui_source_element): Add initializers and destructor.
2759 (union tui_which_element, struct tui_win_element): Remove.
2760 (struct tui_source_window_base) <content>: New field.
2761 (struct tui_data_window): Remove destructor.
2762 (tui_alloc_content, tui_free_win_content)
2763 (tui_free_all_source_wins_content): Don't declare.
2764 * tui/tui-data.c (tui_initialize_static_data): Update.
2765 (init_content_element, tui_alloc_content): Remove.
2766 (~tui_gen_win_info): Update.
2767 (~tui_data_window, tui_free_all_source_wins_content)
2768 (tui_free_win_content, free_content, free_content_elements):
2769 Remove.
2770
7908abbf
TT
27712019-06-25 Tom Tromey <tom@tromey.com>
2772
2773 * tui/tui-winsource.h (tui_clear_source_content)
2774 (tui_erase_source_content, tui_show_source_content): Change type
2775 of win_info.
2776 * tui/tui-winsource.c (tui_clear_source_content)
2777 (tui_erase_source_content, tui_show_source_content): Change type
2778 of win_info.
2779 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2780 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2781 win_info.
2782 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2783 win_info.
2784 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2785
02c28df0
TT
27862019-06-25 Tom Tromey <tom@tromey.com>
2787
2788 * tui/tui-winsource.c (tui_clear_source_content)
2789 (tui_source_window_base::set_is_exec_point_at): Update.
2790 * tui/tui-source.c (tui_set_source_content_nil): Update.
2791 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2792 a bool.
2793 * tui/tui-data.c (init_content_element): Update.
2794
6658b1bf
TT
27952019-06-25 Tom Tromey <tom@tromey.com>
2796
2797 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2798 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2799 * tui/tui-layout.c (init_and_make_win): Update.
2800 * tui/tui.h (enum tui_win_type): Update.
2801 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2802 tui_win_is_auxillary.
2803 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2804 tui_win_is_auxillary.
2805
21e1c91e
TT
28062019-06-25 Tom Tromey <tom@tromey.com>
2807
2808 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2809 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2810 (tui_delete_data_content_windows, tui_display_all_data)
2811 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2812 Update.
2813 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2814 * tui/tui-regs.c (tui_last_regs_line_no)
2815 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2816 (tui_show_registers): Update.
2817 (tui_show_register_group): Return void. Update.
2818 (tui_display_registers_from, tui_display_reg_element_at_line)
2819 (tui_display_registers_from_line, tui_check_register_values):
2820 Update.
2821 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2822 member.
2823 (struct tui_data_window) <regs_content>: Now a std::vector.
2824 <regs_content_count>: Remove.
2825 (tui_add_content_elements, tui_free_data_content): Don't declare.
2826 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2827 (init_content_element): Remove DATA_WIN case. Add assert.
2828 (tui_add_content_elements): Remove.
2829 (tui_data_window): Update.
2830 (tui_free_data_content): Remove.
2831 (free_content_elements): Remove DATA_WIN case.
2832
115ac53b
TT
28332019-06-25 Tom Tromey <tom@tromey.com>
2834
2835 * tui/tui-data.c (tui_data_item_window): Update.
2836 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2837 * tui/tui-windata.c (tui_display_all_data)
2838 (tui_display_data_from_line): Update.
2839 (tui_check_data_values): Remove.
2840 * tui/tui-regs.c (tui_show_register_group)
2841 (tui_display_reg_element_at_line): Update.
2842 * tui/tui-hooks.c (tui_register_changed)
2843 (tui_refresh_frame_and_register_information): Call
2844 tui_check_register_values.
2845 * tui/tui-data.h (struct tui_data_window) <data_content,
2846 data_content_count, data_type>: Remove.
2847 (enum tui_data_type): Remove.
2848
2849 * tui/tui-data.c (tui_data_window::clear_detail)
2850 (~tui_data_window): Update.
2851
eaf9738b
TT
28522019-06-25 Tom Tromey <tom@tromey.com>
2853
2854 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2855 declare.
2856 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2857 Rename from tui_first_data_item_displayed. Update.
2858 (tui_data_window::refresh_all)
2859 (tui_data_window::do_scroll_vertical): Update.
2860 * tui/tui-data.h (struct tui_data_window)
2861 <first_data_item_displayed>: Declare new method.
2862
31ca4723
TT
28632019-06-25 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2866 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2867 contents...
2868 (tui_initialize_static_data): ...here.
2869
41bcff7f
TT
28702019-06-25 Tom Tromey <tom@tromey.com>
2871
2872 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2873 (tui_display_registers_from, tui_check_register_values): Update.
2874 (tui_display_register): Remove win_info parameter; update.
2875 (tui_get_register): Change type of parameters.
2876 * tui/tui-data.h (struct tui_data_element): Remove.
2877 (union tui_which_element) <data>: Remove.
2878 <data_window>: Change type.
2879 (struct tui_data_item_window): New.
2880 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2881 case. Add assert.
2882 (~tui_data_item_window): New destructor.
2883 (free_content_elements): Remove DATA_ITEM_WIN case.
2884
d2802c33
TT
28852019-06-25 Tom Tromey <tom@tromey.com>
2886
2887 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2888 Remove.
2889
dd835f8b
TT
28902019-06-25 Tom Tromey <tom@tromey.com>
2891
2892 * tui/tui-data.h (struct tui_command_element): Remove.
2893 (union tui_which_element) <command>: Remove.
2894 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2895 assert.
2896 (free_content_elements): Remove CMD_WIN case.
2897
bd7db367
TT
28982019-06-25 Tom Tromey <tom@tromey.com>
2899
2900 * tui/tui-layout.c (tui_set_layout): Update.
2901 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2902 * tui/tui-data.c (layout_def): Update.
2903
3add462f
TT
29042019-06-25 Tom Tromey <tom@tromey.com>
2905
2906 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2907 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2908 (tui_source_window_base::set_new_height): Update.
2909 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2910 Update.
2911 (tui_set_locator_fullname, tui_set_locator_info)
2912 (tui_show_frame_info): Update.
2913 * tui/tui-source.c (tui_set_source_content)
2914 (tui_source_is_displayed): Update.
2915 * tui/tui-layout.c (show_source_disasm_command, show_data)
2916 (show_source_or_disasm_and_command): Update.
2917 * tui/tui-disasm.c (tui_set_disassem_content)
2918 (tui_get_begin_asm_address): Update.
2919 * tui/tui-data.h (struct tui_locator_element): Remove.
2920 (union tui_which_element) <locator>: Remove.
2921 (struct tui_locator_window): New.
2922 (tui_locator_win_info_ptr): Change return type.
2923 * tui/tui-data.c (_locator): Change type.
2924 (tui_locator_win_info_ptr): Change return type.
2925 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2926 (tui_alloc_content): Add assert.
2927
489e9d8b
TT
29282019-06-25 Tom Tromey <tom@tromey.com>
2929
2930 * tui/tui-winsource.c
2931 (tui_exec_info_window::maybe_allocate_content): New method.
2932 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2933 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2934 (make_source_or_disasm_window): Add cast.
2935 * tui/tui-data.h (union tui_which_element) <simple_string>:
2936 Remove.
2937 (struct tui_source_info): New.
2938 (struct tui_source_window_base) <execution_info>: Change type.
2939 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2940 case, and add assert.
2941 (tui_alloc_content): Add assert.
2942
c3fabb7d
TT
29432019-06-25 Tom Tromey <tom@tromey.com>
2944
2945 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2946 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2947 * tui/tui-data.c (tui_alloc_win_info): Remove.
2948
bbc228ee
TT
29492019-06-25 Tom Tromey <tom@tromey.com>
2950
2951 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2952 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2953 can_highlight.
2954
5fcee43a
TT
29552019-06-25 Tom Tromey <tom@tromey.com>
2956
2957 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2958 make_visible_with_new_height method.
2959 (tui_win_info::make_visible_with_new_height): New method.
2960 (tui_source_window_base::do_make_visible_with_new_height)
2961 (tui_data_window::do_make_visible_with_new_height)
2962 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2963 (make_visible_with_new_height): Remove.
2964 (tui_resize_all, tui_adjust_win_heights): Use
2965 make_visible_with_new_height method.
2966 * tui/tui-data.h (struct tui_win_info)
2967 <do_make_visible_with_new_height, make_visible_with_new_height>:
2968 New methods.
2969 (struct tui_source_window_base, struct tui_data_window)
2970 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2971 methods.
2972
d83f1fe6
TT
29732019-06-25 Tom Tromey <tom@tromey.com>
2974
2975 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2976 method.
2977 (update_tab_width): Call update_tab_width method.
2978 * tui/tui-data.h (struct tui_win_info)
2979 (struct tui_source_window_base) <update_tab_width>: New methods.
2980
17374de4
TT
29812019-06-25 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2984 parameter.
2985 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2986 parameter.
2987 (tui_gen_win_info::make_visible): Update.
2988 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2989 parameter.
2990 * tui/tui-data.h (enum tui_box): New enum.
2991 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2992
f936bca2
TT
29932019-06-25 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2996 init_and_make_win for EXEC_INFO_WIN.
2997 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2998 longer inline.
2999 (struct tui_win_info) <~tui_win_info>: Inline.
3000 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3001 Don't declare.
3002 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3003 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3004 Remove.
3005 (tui_initialize_static_data): Update.
3006 (~tui_gen_win_info): Handle more cleanup here.
3007 (~tui_source_window_base): Delete "execution_info".
3008 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3009
d6ba6a11
TT
30102019-06-25 Tom Tromey <tom@tromey.com>
3011
3012 * tui/tui-layout.c (make_command_window): Don't set
3013 can_highlight.
3014 (show_source_disasm_command): Call the reset method.
3015 (show_data): Don't set can_highlight. Call the reset method.
3016 (tui_gen_win_info::reset): Rename from init_gen_win_info
3017 (init_and_make_win): Simplify. Return tui_gen_win_info.
3018 (show_source_or_disasm_and_command): Call the reset method.
3019 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3020 (struct tui_cmd_window): Set can_highlight.
3021
48a3bd16
TT
30222019-06-25 Tom Tromey <tom@tromey.com>
3023
3024 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3025 from make_visible.
3026 (tui_make_visible, tui_make_invisible): Rewrite.
3027 (tui_win_info::make_visible): Remove.
3028 (tui_source_window_base::make_visible): Update.
3029 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3030 method. Moved from...
3031 (struct tui_win_info) <make_visible>: ...here.
3032
c3bd716f
TT
30332019-06-25 Tom Tromey <tom@tromey.com>
3034
3035 * tui/tui-winsource.c
3036 (tui_source_window_base::do_scroll_horizontal): Remove direction
3037 parameter.
3038 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3039 direction parameter.
3040 * tui/tui-win.c (tui_win_info::forward_scroll)
3041 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3042 (tui_win_info::right_scroll): Update.
3043 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3044 direction parameter.
3045 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3046 direction parameter.
3047 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3048 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3049 Remove direction parameter.
3050 (struct tui_source_window_base, struct tui_source_window)
3051 (struct tui_disasm_window, struct tui_data_window)
3052 (struct tui_cmd_window): Update.
3053
21c32dca
TT
30542019-06-25 Tom Tromey <tom@tromey.com>
3055
3056 * tui/tui-winsource.h (tui_set_exec_info_content)
3057 (tui_show_exec_info_content, tui_erase_exec_info_content)
3058 (tui_clear_exec_info_content, tui_update_exec_info): Change
3059 argument to tui_source_window_base.
3060 * tui/tui-winsource.c (tui_set_exec_info_content)
3061 (tui_show_exec_info_content, tui_erase_exec_info_content)
3062 (tui_clear_exec_info_content, tui_update_exec_info): Change
3063 argument to tui_source_window_base.
3064
73fbdc65
TT
30652019-06-25 Tom Tromey <tom@tromey.com>
3066
3067 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3068 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3069
33325343
TT
30702019-06-25 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3073 check.
3074
29d2c474
TT
30752019-06-25 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3078 type to void.
3079 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3080 type to void.
3081 * tui/tui-source.c (tui_set_source_content): Update.
3082 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3083
152f3f4b
TT
30842019-06-25 Tom Tromey <tom@tromey.com>
3085
3086 * tui/tui-win.c (window_name_completer, tui_set_focus)
3087 (tui_all_windows_info): Use name method.
3088 * tui/tui-data.h (struct tui_gen_win_info)
3089 (struct tui_source_window, struct tui_disasm_window)
3090 (struct tui_data_window, struct tui_cmd_window) <name>: New
3091 method.
3092 (tui_win_name): Don't declare.
3093 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3094 (tui_win_name): Remove.
3095
be4da588
TT
30962019-06-25 Tom Tromey <tom@tromey.com>
3097
3098 * tui/tui-winsource.h (tui_update_source_window)
3099 (tui_update_source_window_as_is): Change parameter type.
3100 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3101 to be a tui_source_window_base.
3102 (tui_update_source_window_as_is): Likewise.
3103 * tui/tui-win.c (make_visible_with_new_height): Update.
3104
5b81daba
TT
31052019-06-25 Tom Tromey <tom@tromey.com>
3106
3107 * tui/tui-winsource.c (tui_erase_source_content)
3108 (tui_show_source_content, tui_show_exec_info_content)
3109 (tui_erase_exec_info_content): Use refresh_window method.
3110 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3111 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3112 from tui_refresh_win.
3113 (tui_data_window::refresh_window): New method.
3114 (tui_win_info::refresh, tui_source_window_base::refresh)
3115 (tui_refresh_all): Use refresh_window method.
3116 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3117 method.
3118 * tui/tui-regs.c (tui_display_register): Call refresh_window
3119 method.
3120 * tui/tui-layout.c (show_source_disasm_command)
3121 (show_source_or_disasm_and_command): Call refresh_window method.
3122 * tui/tui-data.h (struct tui_gen_win_info)
3123 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3124 New method.
3125
cb2ce893
TT
31262019-06-25 Tom Tromey <tom@tromey.com>
3127
3128 * tui/tui.c (tui_rl_other_window, tui_enable)
3129 (tui_is_window_visible, tui_get_command_dimension): Update.
3130 * tui/tui-winsource.c (tui_update_source_window_as_is)
3131 (tui_clear_source_content, tui_erase_source_content)
3132 (tui_show_source_line, tui_source_window_base::refill)
3133 (tui_source_window_base::do_scroll_horizontal)
3134 (tui_source_window_base::set_is_exec_point_at)
3135 (tui_update_breakpoint_info, tui_set_exec_info_content)
3136 (tui_alloc_source_buffer, tui_line_is_displayed)
3137 (tui_addr_is_displayed): Update.
3138 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3139 (tui_check_and_display_highlight_if_needed)
3140 (tui_win_info::make_visible, tui_win_info::refresh)
3141 (tui_refresh_all): Update.
3142 * tui/tui-windata.c (tui_first_data_item_displayed)
3143 (tui_delete_data_content_windows, tui_erase_data_content)
3144 (tui_display_all_data, tui_data_window::refresh_all)
3145 (tui_check_data_values): Update.
3146 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3147 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3148 (tui_win_info::backward_scroll, tui_refresh_all_win)
3149 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3150 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3151 (tui_source_window_base::set_new_height)
3152 (tui_data_window::set_new_height)
3153 (make_invisible_and_set_new_height)
3154 (make_visible_with_new_height, new_height_ok)
3155 (parse_scrolling_args): Update.
3156 * tui/tui-stack.c (tui_show_frame_info): Update.
3157 * tui/tui-source.c (tui_set_source_content)
3158 (tui_set_source_content_nil, tui_source_is_displayed)
3159 (tui_source_window::do_scroll_vertical): Update.
3160 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3161 (tui_display_registers_from, tui_display_reg_element_at_line)
3162 (tui_check_register_values, tui_reg_command): Update.
3163 * tui/tui-layout.c (tui_default_win_height)
3164 (show_source_disasm_command, show_data, init_and_make_win)
3165 (show_source_or_disasm_and_command): Update.
3166 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3167 (tui_redisplay_readline, tui_mld_flush)
3168 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3169 (tui_getc): Update.
3170 * tui/tui-disasm.c (tui_set_disassem_content)
3171 (tui_disasm_window::do_scroll_vertical): Update.
3172 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3173 Now virtual.
3174 (struct tui_win_info): Derive from tui_gen_win_info.
3175 <~tui_win_info>: Mark as override.
3176 <generic>: Remove member.
3177 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3178 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3179 (~tui_data_window, ~tui_win_info)
3180 (tui_free_all_source_wins_content): Update.
3181 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3182
ab313b35
TT
31832019-06-25 Tom Tromey <tom@tromey.com>
3184
3185 * tui/tui-layout.c (init_and_make_win): Use new.
3186 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3187 destructor, initializers.
3188 (tui_alloc_generic_win_info): Don't declare.
3189 * tui/tui-data.c (_locator): Add argument to constructor.
3190 (source_win, disasm_win): New globals.
3191 (exec_info): Remove.
3192 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3193 Update.
3194 (tui_alloc_generic_win_info): Remove.
3195 (init_content_element): Use new.
3196 (tui_win_info::tui_win_info): Update.
3197 (free_content_elements) <case DATA_WIN>: Use delete.
3198
dc2c33e4
TT
31992019-06-25 Tom Tromey <tom@tromey.com>
3200
3201 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3202 * tui/tui-windata.c (tui_first_data_item_displayed)
3203 (tui_delete_data_content_windows): Update.
3204 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3205 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3206 (tui_display_registers_from, tui_check_register_values): Update.
3207 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3208 pointer.
3209 * tui/tui-data.c (init_content_element): Update. Allocate the new
3210 window.
3211 (tui_free_data_content): Update.
3212 (free_content_elements) <case DATA_WIN>: Free the window.
3213
214a5cbe
TT
32142019-06-25 Tom Tromey <tom@tromey.com>
3215
3216 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3217 Update.
3218 * tui/tui-layout.c (make_command_window)
3219 (show_source_disasm_command, show_data, init_and_make_win)
3220 (show_source_or_disasm_and_command): Update.
3221 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3222 method.
3223 <can_highight, is_highlighted>: Now bool.
3224 (tui_set_win_highlight): Don't declare.
3225 * tui/tui-data.c (tui_set_win_highlight): Remove.
3226
8e2daf15
TT
32272019-06-25 Tom Tromey <tom@tromey.com>
3228
3229 * tui/tui-wingeneral.c (make_visible): Remove check of window
3230 type.
3231
8903bd8a
TT
32322019-06-25 Tom Tromey <tom@tromey.com>
3233
3234 * tui/tui-win.c (tui_win_info::max_height)
3235 (tui_cmd_window::max_height): New methods.
3236 (new_height_ok): Call max_height.
3237 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3238 <max_height>: New method.
3239
3f02ce1e
TT
32402019-06-25 Tom Tromey <tom@tromey.com>
3241
3242 * tui/tui-win.c (tui_source_window_base::set_new_height)
3243 (tui_data_window::set_new_height): New methods.
3244 (make_invisible_and_set_new_height): Call set_new_height method.
3245 * tui/tui-data.h (struct tui_win_info)
3246 (struct tui_source_window_base, struct tui_data_window)
3247 <set_new_height>: New method.
3248
1825f487
TT
32492019-06-25 Tom Tromey <tom@tromey.com>
3250
3251 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3252 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3253 tui_refresh_data_win.
3254 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3255 method.
3256 (tui_refresh_all_win): Call the refresh_all method.
3257 (tui_set_focus): Likewise.
3258 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3259 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3260 Likewise.
3261
ad54d15b
TT
32622019-06-25 Tom Tromey <tom@tromey.com>
3263
3264 * tui/tui-winsource.h (tui_refill_source_window)
3265 (tui_set_is_exec_point_at): Don't declare.
3266 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3267 (tui_source_window_base::refill): Rename from
3268 tui_refill_source_window.
3269 (tui_source_window_base::do_scroll_horizontal): Update.
3270 (tui_source_window_base::set_is_exec_point_at): Rename from
3271 tui_set_is_exec_point_at.
3272 (tui_update_all_breakpoint_info): Update.
3273 * tui/tui-stack.c (tui_show_frame_info): Update.
3274 * tui/tui-layout.c (show_data): Add cast.
3275 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3276 * tui/tui-data.h (struct tui_source_window_base) <refill,
3277 set_is_exec_point_at>: New methods.
3278 (tui_source_windows, tui_add_to_source_windows): Update types.
3279 (tui_add_to_source_windows): Remove redundant declaration.
3280 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3281 (tui_source_windows): Change return type.
3282 (tui_clear_source_windows_detail): Update.
3283 (tui_add_to_source_windows): Change type of parameter.
3284 (tui_free_all_source_wins_content): Update.
3285
2042b506
TT
32862019-06-25 Tom Tromey <tom@tromey.com>
3287
3288 * tui/tui-wingeneral.c (tui_win_info::refresh)
3289 (tui_source_window_base::refresh): New methods.
3290 (tui_refresh_all): Call the refresh method.
3291 * tui/tui-data.h (struct tui_win_info)
3292 (struct tui_source_window_base) <refresh>: New method.
3293
56122977
TT
32942019-06-25 Tom Tromey <tom@tromey.com>
3295
3296 * tui/tui.h (tui_is_window_visible): Return bool.
3297 * tui/tui.c (tui_is_window_visible): Return bool.
3298 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3299 (tui_make_visible, tui_make_invisible)
3300 (tui_win_info::make_visible)
3301 (tui_source_window_base::make_visible, make_all_visible)
3302 (tui_make_all_visible, tui_make_all_invisible): Update.
3303 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3304 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3305 bool.
3306 (struct tui_win_info, struct tui_source_window_base)
3307 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3308 * tui/tui-data.c (tui_init_generic_part): Update.
3309
cda37efb
TT
33102019-06-25 Tom Tromey <tom@tromey.com>
3311
3312 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3313 (tui_source_window_base::make_visible): New methods.
3314 (make_all_visible): Make method call.
3315 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3316 (struct tui_source_window_base, struct tui_cmd_window): Override
3317 make_visible.
3318 (tui_win_is_source_type): Don't declare.
3319 * tui/tui-data.c (tui_win_is_source_type): Remove.
3320
6a0ee02c
TT
33212019-06-25 Tom Tromey <tom@tromey.com>
3322
3323 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3324 NULL check.
3325
63901aec
TT
33262019-06-25 Tom Tromey <tom@tromey.com>
3327
3328 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3329 Inline constructor. Add initializers for members.
3330 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3331 constructors; now inline in class.
3332
ceb13a13
TT
33332019-06-25 Tom Tromey <tom@tromey.com>
3334
3335 * tui/tui-regs.c (tui_show_registers): Update.
3336 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3337 bool.
3338 * tui/tui-data.c (tui_data_window::clear_detail)
3339 (tui_data_window): Update.
3340
238eb706
TT
33412019-06-25 Tom Tromey <tom@tromey.com>
3342
3343 * tui/tui-windata.c (tui_display_all_data)
3344 (tui_display_data_from_line, tui_display_data_from)
3345 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3346 Update.
3347 * tui/tui-regs.c (tui_last_regs_line_no)
3348 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3349 (tui_show_registers, tui_show_register_group)
3350 (tui_display_registers_from, tui_display_reg_element_at_line)
3351 (tui_display_registers_from_line, tui_check_register_values)
3352 (tui_reg_next, tui_reg_prev): Update.
3353 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3354 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3355 tui_data_window.
3356 (struct tui_win_info) <detail>: Remove. Add new fields from
3357 tui_data_info.
3358 (TUI_DATA_WIN): Add cast.
3359 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3360 (~tui_data_window): Simplify.
3361
81491aa0
TT
33622019-06-25 Tom Tromey <tom@tromey.com>
3363
3364 * tui/tui-layout.c (show_source_disasm_command)
3365 (show_source_or_disasm_and_command): Update.
3366 * tui/tui-io.c (update_cmdwin_start_line)
3367 (tui_redisplay_readline): Update.
3368 * tui/tui-data.h (struct tui_command_info): Remove.
3369 (struct tui_win_info) <detail>: Remove command_info member.
3370 (struct tui_data_window) <start_line>: New member, from
3371 tui_command_info.
3372 (TUI_CMD_WIN): Add casts.
3373
e6e41501
TT
33742019-06-25 Tom Tromey <tom@tromey.com>
3375
3376 * tui/tui-winsource.c (tui_update_source_window)
3377 (tui_refill_source_window)
3378 (tui_source_window_base::do_scroll_horizontal)
3379 (tui_update_breakpoint_info, tui_set_exec_info_content)
3380 (tui_show_exec_info_content, tui_erase_exec_info_content)
3381 (tui_clear_exec_info_content): Update.
3382 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3383 Update.
3384 * tui/tui-win.c (make_invisible_and_set_new_height)
3385 (make_visible_with_new_height): Update.
3386 * tui/tui-source.c (tui_set_source_content)
3387 (tui_show_symtab_source): Update.
3388 * tui/tui-layout.c (extract_display_start_addr)
3389 (show_source_disasm_command, show_data)
3390 (make_source_or_disasm_window)
3391 (show_source_or_disasm_and_command): Update.
3392 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3393 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3394 "gdbarch".
3395 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3396 to tui_source_window_base.
3397 (struct tui_win_info) <detail>: Remove source_info member.
3398 (struct tui_source_window_base) <has_locator>: Inline.
3399 Move contents from tui_source_info; rename has_locator member to
3400 m_has_locator.
3401 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3402 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3403 header file.
3404 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3405 Simplify.
3406 (tui_free_all_source_wins_content): Cast to
3407 tui_source_window_base.
3408
44f0e208
TT
34092019-06-25 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-win.c (make_invisible_and_set_new_height)
3412 (make_visible_with_new_height): Call has_locator method.
3413 * tui/tui-layout.c (show_source_disasm_command, show_data)
3414 (show_source_or_disasm_and_command): Update for bool change.
3415 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3416 (tui_win_info) <has_locator>: New method.
3417 (struct tui_source_window_base) <has_locator>: New method.
3418 (tui_win_has_locator): Don't declare.
3419 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3420 from tui_win_has_locator.
3421 (tui_source_window_base): Use false, not FALSE.
3422
7778b912
TT
34232019-06-25 Tom Tromey <tom@tromey.com>
3424
3425 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3426 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3427 clear_detail method directly.
3428 (tui_clear_win_detail): Remove.
3429
f83d391c
TT
34302019-06-25 Tom Tromey <tom@tromey.com>
3431
3432 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3433 "this", not TUI_DISASM_WIN.
3434
13446e05
TT
34352019-06-25 Tom Tromey <tom@tromey.com>
3436
3437 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3438 declare.
3439 * tui/tui-winsource.c
3440 (tui_source_window_base::do_scroll_horizontal): Rename from
3441 tui_horizontal_source_scroll.
3442 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3443 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3444 from tui_vertical_data_scroll.
3445 * tui/tui-win.h (tui_scroll): Don't declare.
3446 * tui/tui-win.c (tui_win_info::forward_scroll)
3447 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3448 (tui_win_info::right_scroll): Rename and update.
3449 (tui_scroll_forward_command, tui_scroll_backward_command)
3450 (tui_scroll_left_command, tui_scroll_right_command): Update.
3451 (tui_scroll): Remove.
3452 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3453 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3454 from tui_vertical_source_scroll.
3455 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3456 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3457 from tui_vertical_disassem_scroll.
3458 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3459 do_scroll_horizontal>: New methods.
3460 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3461 Likewise.
3462 (struct tui_source_window_base): Add do_scroll_horizontal.
3463 (struct tui_source_window, struct tui_disasm_window): Add
3464 do_scroll_vertical.
3465 (struct tui_data_window, struct tui_cmd_window): Add
3466 do_scroll_horizontal and do_scroll_vertical.
3467 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3468
5cf82909
TT
34692019-06-25 Tom Tromey <tom@tromey.com>
3470
3471 * tui/tui-data.h (struct tui_source_window_base): New struct.
3472 (struct tui_source_window): Derive from tui_source_window_base.
3473 (struct tui_disasm_window): New struct.
3474 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3475 from tui_source_window::clear_detail.
3476 (tui_source_window_base): Rename from tui_source_window.
3477 (~tui_source_window_base): Rename from ~tui_source_window.
3478 (tui_alloc_win_info): Create a tui_disasm_window.
3479
ee1d42d6
TT
34802019-06-25 Tom Tromey <tom@tromey.com>
3481
3482 * tui/tui-data.h (struct tui_source_window)
3483 (struct tui_data_window): Declare destructors.
3484 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3485 destructors.
3486 (tui_win_info): Simplify.
3487
b4eb2452
TT
34882019-06-25 Tom Tromey <tom@tromey.com>
3489
3490 * tui/tui-winsource.c (tui_display_main)
3491 (tui_update_source_windows_with_addr)
3492 (tui_update_all_breakpoint_info): Update.
3493 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3494 (new_height_ok, parse_scrolling_args): Update.
3495 * tui/tui-stack.c (tui_show_frame_info): Update.
3496 * tui/tui-data.h (struct tui_list): Remove.
3497 (tui_source_windows): Return a reference to a std::vector.
3498 * tui/tui-data.c (source_windows): Now a std::vector.
3499 (tui_source_windows): Change return type.
3500 (tui_clear_source_windows): Rewrite.
3501 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3502 (tui_free_all_source_wins_content): Rewrite.
3503
8761a91b
TT
35042019-06-25 Tom Tromey <tom@tromey.com>
3505
3506 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3507 (struct tui_data_window, struct tui_cmd_window): Declare
3508 clear_detail method.
3509 * tui/tui-data.c (tui_source_window::clear_detail)
3510 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3511 methods.
3512 (tui_clear_win_detail): Simplify.
3513
0ed69eda
TT
35142019-06-25 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui-layout.c (make_source_window, make_disasm_window)
3517 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3518 Return the new window.
3519 (show_source_disasm_command, show_data)
3520 (show_source_or_disasm_and_command): Update.
3521
82432e10
TT
35222019-06-25 Tom Tromey <tom@tromey.com>
3523
3524 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3525 parameter. Return the new window.
3526 (show_source_disasm_command): Update and remove NULL check.
3527 (show_source_or_disasm_and_command): Update.
3528
ec328aa5
TT
35292019-06-25 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3532
33b906ab
TT
35332019-06-25 Tom Tromey <tom@tromey.com>
3534
3535 * tui/tui-data.h (struct tui_win_info): Make constructor
3536 protected. Make destructor virtual. Add initializers.
3537 (tui_source_window, tui_data_window, tui_cmd_window): New
3538 classes.
3539 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3540 constructor. Add "type" parameter.
3541 (tui_source_window, tui_data_window, tui_cmd_window): New
3542 constructors.
3543 (tui_alloc_win_info): Instantiate the appropriate subclass.
3544
e7e11af4
TT
35452019-06-25 Tom Tromey <tom@tromey.com>
3546
3547 * tui/tui-win.c (tui_resize_all): Use delete.
3548 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3549 destructor.
3550 (tui_free_window): Don't declare.
3551 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3552 Update.
3553
6792b55e
TT
35542019-06-25 Tom Tromey <tom@tromey.com>
3555
3556 * tui/tui-data.h (struct tui_win_info): Add constructor.
3557 * tui/tui-data.c (tui_alloc_win_info): Use new.
3558 (tui_free_window): Use delete.
3559
f95675e1
TT
35602019-06-22 Tom Tromey <tom@tromey.com>
3561
3562 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3563 declare.
3564 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3565
5bff081c
TT
35662019-06-22 Tom Tromey <tom@tromey.com>
3567
3568 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3569 declare.
3570 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3571
47e3f474
TV
35722019-06-22 Tom de Vries <tdevries@suse.de>
3573
3574 * dwarf2read.c (create_addrmap_from_aranges)
3575 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3576 instead of '%zu'.
3577
fd5866f6
SM
35782019-06-21 Simon Marchi <simon.marchi@efficios.com>
3579
3580 * dwarf2read.h (dwarf2_section_info_def): Remove.
3581 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3582 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3583 std::vector<dwarf2_section_info>.
3584 (struct dwo_file) <~dwo_file>: Remove.
3585 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3586 types field.
3587 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3588 (dwarf2_read_debug_names): Likewise.
3589 (create_debug_types_hash_table): Change parameter type to
3590 array_view, adjust code accordingly.
3591 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3592 (partial_die_info::fixup): Likewise.
3593 (determine_prefix): Likewise.
3594 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3595
fb1eb2f9
SM
35962019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3597
3598 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3599 gdb_bfd_ref_ptr.
3600 <~dwo_file>: Remove call to gdb_bfd_unref.
3601 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3602 gdb_bfd_ref_ptr::get.
3603
51ac9db5
SM
36042019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3605
3606 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3607 type to htab_up.
3608 * dwarf2read.c (struct dwo_file): Initialize fields.
3609 <~dwo_file>: New.
3610 (free_dwo_file): Remove, move content to ~dwo_file.
3611 (struct dwo_file_deleter): Remove.
3612 (dwo_file_up>: Remove custom deleter.
3613 (free_dwo_files): Remove.
3614 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3615 dwo_files.
3616 (process_skeletonless_type_units): Call unique_ptr::get.
3617 (allocate_dwo_file_hash_table): Add deleter to created hash
3618 table. Change return type to htab_up.
3619 (lookup_dwo_file_slot): Don't memset dwo_file, call
3620 unique_ptr::get.
3621 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3622 (create_dwo_unit_in_dwp_v2): Likewise.
3623 (open_and_init_dwo_file): Likewise.
3624 (free_dwo_file_from_slot): Remove.
3625
dc4ccb6f
SM
36262019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3627
3628 * dwarf2read.h (struct dwarf2_section_info) <readin,
3629 is_virtual>: Change type to bool.
3630 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3631 true instead of 1.
3632
e6a1c5cb
TT
36332019-06-19 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-data.h (tui_init_content_element): Don't declare.
3636
6f6ffbeb
TT
36372019-06-19 Tom Tromey <tom@tromey.com>
3638
3639 * tui/tui-data.h (tui_init_win_info): Don't declare.
3640
f23f598e
TV
36412019-06-19 Tom de Vries <tdevries@suse.de>
3642
3643 * dwarf2read.h (abstract_to_concrete): Change type to
3644 std::unordered_map<sect_offset, std::vector<sect_offset>,
3645 gdb::hash_enum<sect_offset>>.
3646
680e1bee
TT
36472019-06-19 Tom Tromey <tromey@adacore.com>
3648
3649 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3650 EVAL_AVOID_SIDE_EFFECTS specially.
3651
dcf37923
TT
36522019-06-19 Tom Tromey <tromey@adacore.com>
3653
3654 * source-cache.c (highlighter): New global.
3655 (source_cache::get_source_lines): Create a highlighter on demand.
3656
494986d5
AB
36572019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3658
3659 * defs.h (deprecated_interactive_hook): Delete declaration.
3660 * interps.c (clear_interpreter_hooks): Remove use of
3661 deprecated_interactive_hook.
3662 * top.c (deprecated_interactive_hook): Delete definition.
3663 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3664
3360b6e7
TV
36652019-06-18 Tom de Vries <tdevries@suse.de>
3666
3667 PR gdb/24515
3668 * dwarf2read.h (abstract_to_concrete): Change type from
3669 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3670 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3671 * dwarf2read.c (read_variable): Update.
3672 (dwarf2_fetch_die_loc_sect_off): Update.
3673
310b3441
TV
36742019-06-17 Tom de Vries <tdevries@suse.de>
3675
3676 PR gdb/24617
3677 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3678 accessing parent[parent_len - 1].
3679
ba9777be
PP
36802019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3681
3682 PR gdb/24364
3683 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3684 call dtrace_process_dof with NULL dof.
3685
2b9f6e89
TV
36862019-06-16 Tom de Vries <tdevries@suse.de>
3687
3688 PR gdb/24445
3689 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3690
431b3ead
TT
36912019-06-16 Tom Tromey <tom@tromey.com>
3692
3693 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3694 (make_all_visible): Use address of member.
3695
d04b44a1
TT
36962019-06-16 Tom Tromey <tom@tromey.com>
3697
3698 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3699 (tui_free_window, free_content, free_content_elements): Remove
3700 unnecessary cast.
3701 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3702 cast.
3703 * tui/tui-regs.c (tui_show_register_group)
3704 (tui_display_registers_from, tui_display_reg_element_at_line):
3705 Remove unnecessary cast.
3706
bf5142e7
AB
37072019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3708
3709 * linux-nat.c (normal_mask): Delete.
3710 (_initialize_linux_nat): Don't initialise normal_mask.
3711
c4973306
SM
37122019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3713
3714 PR gdb/24445
3715 * dwarf-index-write.h (write_psymtabs_to_index): Add
3716 dwz_basename parameter.
3717 * dwarf-index-write.c (write_gdbindex): Move file writing to
3718 write_gdbindex_1. Change return type void.
3719 (assert_file_size): Move up, remove filename parameter.
3720 (write_gdbindex_1): New function.
3721 (write_debug_names): Change return type to void, call
3722 assert_file_size.
3723 (struct index_wip_file): New struct.
3724 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3725 file logic to index_wip_file. Write index for dwz file if
3726 needed.
3727 (save_gdb_index_command): Pass basename of dwz file, if present.
3728 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3729 build-id of dwz file, if present.
3730 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3731 (dwarf2_get_dwz_file): Likewise.
3732 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3733 (dwarf2_get_dwz_file): Likewise.
3734
395f9c91
TT
37352019-06-16 Tom Tromey <tom@tromey.com>
3736
3737 * coffread.c (process_coff_symbol): Use xstrdup.
3738 * value.c (create_internalvar): Use xstrdup.
3739
cafb3438
TT
37402019-06-16 Tom Tromey <tom@tromey.com>
3741
3742 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3743 * breakpoint.c (stopin_command, stopat_command)
3744 (until_break_command, decode_location_default): Remove unnecessary
3745 cast.
3746 * utils.c (subset_compare): Remove unnecessary cast.
3747 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3748 cast.
3749 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3750 cast.
3751 * infcmd.c (path_command): Remove unnecessary cast.
3752 * coffread.c (decode_type): Remove unnecessary cast.
3753 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3754 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3755 * tui/tui-stack.c (tui_show_locator_content)
3756 (tui_show_frame_info): Remove unnecessary cast.
3757 * tui/tui-win.c (tui_scroll_forward_command)
3758 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3759 (parse_scrolling_args): Remove unnecessary cast.
3760 * tui/tui-data.c (init_win_info, tui_del_window)
3761 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3762 (free_content_elements): Remove unnecessary cast.
3763 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3764 unnecessary cast.
3765 * tui/tui-source.c (tui_set_source_content)
3766 (tui_vertical_source_scroll): Remove unnecessary cast.
3767 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3768 cast.
3769 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3770 * tui/tui-regs.c (tui_display_registers_from)
3771 (tui_display_register): Remove unnecessary cast.
3772 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3773 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3774 (make_visible): Remove unnecessary cast.
3775 * tui/tui-winsource.c (tui_erase_source_content)
3776 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3777 unnecessary cast.
3778 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3779 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3780 * stabsread.c (read_type, read_array_type, read_range_type):
3781 Remove unnecessary cast.
3782 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3783 (parse_symbol, parse_type, upgrade_type, parse_external)
3784 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3785 unnecessary cast.
3786 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3787
730ead81
TT
37882019-06-16 Tom Tromey <tom@tromey.com>
3789
3790 * tui/tui-data.c (tui_alloc_generic_win_info)
3791 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3792 checks.
3793
584a927c
AB
37942019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3795 Andrew Burgess <andrew.burgess@embecosm.com>
3796
3797 * f-typeprint.c (f_print_type): Don't return early for not
3798 associated or not allocated types.
3799 (f_type_print_varspec_suffix): Add print_rank parameter and print
3800 ranks of array types in case they dangling.
3801 (f_type_print_base): Add print_rank parameter.
3802
30056ea0
AB
38032019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3804
3805 * NEWS: Mention new MI commands.
3806 * break-catch-throw.c (enum exception_event_kind): Move to
3807 breakpoint.h.
3808 (print_mention_exception_catchpoint): Output text as a single
3809 message.
3810 (catch_exception_command_1): Rename to...
3811 (catch_exception_event): ...this, make non-static, update header
3812 command, and change some parameter types.
3813 (catch_catch_command): Update for changes to
3814 catch_exception_command_1.
3815 (catch_throw_command): Likewise.
3816 (catch_rethrow_command): Likewise.
3817 * breakpoint.c (enum exception_event_kind): Delete.
3818 * breakpoint.h (enum exception_event_kind): Moved here from
3819 break-catch-throw.c.
3820 (catch_exception_event): Declare.
3821 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3822 (mi_cmd_catch_throw): New function.
3823 (mi_cmd_catch_rethrow): New function.
3824 (mi_cmd_catch_catch): New function.
3825 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3826 'catch-catch' entries.
3827 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3828 (mi_cmd_catch_rethrow): Declare.
3829 (mi_cmd_catch_catch): Declare.
3830
ec8e2b6d
AB
38312019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3832
3833 * annotate.c (annotate_source_line): Change return type to void,
3834 update implementation to match.
3835 * annotate.h (annotate_source_line): Change return type to void,
3836 update header comment.
3837 * stack.c (print_frame_info): Don't change what frame information
3838 is printed based on whether annotations are on or not.
3839
0d3abd8c
AB
38402019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3841
3842 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3843 (annotate_source): Make static.
3844 (annotate_source_line): Moved from source.c and renamed from
3845 identify_source_line. Update the return type.
3846 * annotate.h (annotate_source): Delete declaration.
3847 (annotate_source_line): Declaration moved from source.h, and
3848 renamed from identify_source_line. Return type updated.
3849 * source.c (identify_source_line): Moved to annotate.c and renamed
3850 to annotate_source_line.
3851 (info_line_command): Remove check of annotation_level.
3852 * source.h (identify_source_line): Move declaration to annotate.h
3853 and rename to annotate_source_line.
3854 * stack.c: Add 'annotate.h' include.
3855 (print_frame_info): Remove check of annotation_level before
3856 calling annotate_source_line.
3857
00df30ae
AB
38582019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3859
3860 * source-cache.c (source_cache::get_plain_source_lines): Use
3861 open_source_file_with_line_charpos instead of just
3862 open_source_file, remove call to find_source_lines.
3863 (source_cache::get_source_lines): Likewise.
3864 * source.c (find_source_lines): Make static.
3865 (get_filename_and_charpos): Renamed into...
3866 (open_source_file_with_line_charpos): ..this along with changes to
3867 return a scoped_fd, and some other minor clean ups.
3868 (identify_source_line): Use open_source_file_with_line_charpos.
3869 (search_command_helper): Use open_source_file_with_line_charpos
3870 instead of just open_source_file, remove call to
3871 find_source_lines.
3872 * source.h (open_source_file_with_line_charpos): Declare new
3873 function.
3874 (find_source_lines): Delete declaration.
3875
afda45a2
AB
38762019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3877
3878 * source.c (get_filename_and_charpos): Remove fullname
3879 parameter.
3880 (identify_source_line): Update call to get_filename_and_charpos.
3881
0735b091
TT
38822019-06-14 Tom Tromey <tromey@adacore.com>
3883
3884 PR gdb/24502:
3885 * ui-style.h (skip_ansi_escape): Update comment.
3886 * ui-file.h (class no_terminal_escape_file): New class.
3887 * ui-file.c (no_terminal_escape_file::write)
3888 (no_terminal_escape_file::puts): New methods.
3889 * cli/cli-logging.c (handle_redirections): Use
3890 no_terminal_escape_file.
3891
52ce35e2
TT
38922019-06-14 Tom Tromey <tromey@adacore.com>
3893
3894 * NEWS: Move convenience variable news above Python news.
3895
73cc7272
TT
38962019-06-14 Tom Tromey <tom@tromey.com>
3897
3898 * gnulib: Move directory to top-level.
3899 * configure.ac: Don't configure gnulib.
3900 * configure: Rebuild.
3901 * common/common-defs.h: Use new path to gnulib.
3902 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3903 (GNULIB_H): Remove.
3904 (INCGNU): Look in new gnulib location.
3905 (HFILES_NO_SRCDIR): Remove gnulib files.
3906 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3907 (generated_files): Remove GNULIB_H.
3908 ($(LIBGNU), all-lib): Remove targets.
3909 (distclean): Don't mention GNULIB_BUILDDIR.
3910 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3911
f5686554
TT
39122019-06-14 Tom Tromey <tromey@adacore.com>
3913
3914 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3915 Warn if symbol file does not provide any symbols.
3916
a0c1ffed
TT
39172019-06-14 Tom Tromey <tromey@adacore.com>
3918
3919 * source.c (find_and_open_source): Respect basenames_may_differ.
3920
7c39e397
AB
39212019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3922
3923 * annotate.c (annotate_breakpoints_invalid): Make use of
3924 scoped_restore_terminal_state.
3925 (annotate_frames_invalid): Likewise.
3926
f411722c
TT
39272019-06-14 Tom Tromey <tromey@adacore.com>
3928
3929 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3930 allow assignment to an internalvar.
3931
4268ec18
TT
39322019-06-14 Tom Tromey <tromey@adacore.com>
3933
3934 * ada-lex.l: Allow "_" in attribute names.
3935
abdb711e
TT
39362019-06-14 Tom Tromey <tromey@adacore.com>
3937
3938 PR gdb/24653:
3939 * regcache.c (registers_changed): Don't call alloca.
3940 * top.c (execute_command): Don't call alloca.
3941
4c048731
PA
39422019-06-13 Pedro Alves <palves@redhat.com>
3943
3944 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3945 'expression'. When parsing an expression, error out if there's
3946 junk after "unlimited".
3947 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3948 (do_set_command): Adjust calls to is_unlimited_literal.
3949
66eb1ed3
PA
39502019-06-13 Pedro Alves <palves@redhat.com>
3951
3952 * compile/compile.c (make_compile_options_def_group): Add braces
3953 around array_view initializer.
3954 * thread.c (make_thread_apply_all_options_def_group)
3955 (make_thread_apply_all_options_def_group): Likewise.
3956
3345721a
PA
39572019-06-13 Pedro Alves <palves@redhat.com>
3958
3959 * NEWS (New commands): Mention "maint test-options
3960 require-delimiter", "maint test-options unknown-is-error", "maint
3961 test-options unknown-is-operand" and "maint show
3962 test-options-completion-result".
3963 (New command options, command completion): New section.
3964 (Completion improvements): New section.
3965 Mention that you can abbreviate "unlimited".
3966
6206060d
PA
39672019-06-13 Pedro Alves <palves@redhat.com>
3968
3969 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3970 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3971 * unittests/cli-utils-selftests.c (test_parse_flags)
3972 (test_parse_flags_qcs): Delete.
3973 (test_cli_utils): Don't call deleted functions.
3974
6665660a
PA
39752019-06-13 Pedro Alves <palves@redhat.com>
3976
3977 * thread.c: Include "cli/cli-option.h".
3978 (tp_array_compar_ascending): Global.
3979 (tp_array_compar): Delete function.
3980 (tp_array_compar_ascending, tp_array_compar_descending): New
3981 functions.
3982 (ascending_option_def, qcs_flag_option_def)
3983 (thr_qcs_flags_option_defs)
3984 (make_thread_apply_all_options_def_group)
3985 (make_thread_apply_options_def_group): New.
3986 (thread_apply_all_command): Use gdb::option::process_options.
3987 (thread_apply_command_completer)
3988 (thread_apply_all_command_completer): New.
3989 (thread_apply_command): Use gdb::option::process_options.
3990 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3991 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3992 to generate help text of "thread apply". Adjust "taas"'s help.
3993 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3994 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3995
f7e13587
PA
39962019-06-13 Pedro Alves <palves@redhat.com>
3997
3998 * thread.c (thread_apply_command): Check for invalid TID with
3999 isdigit instead of !isalpha.
4000
5d707134
PA
40012019-06-13 Pedro Alves <palves@redhat.com>
4002
4003 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4004 (validate_flags_qcs): New.
4005 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4006 (validate_flags_qcs): Declare.
4007 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4008 (make_frame_apply_options_def_group): New.
4009 (frame_apply_command_count): Process options with
4010 gdb::option::process_options.
4011 (frame_apply_completer): New.
4012 (frame_apply_level_completer, frame_apply_all_completer)
4013 (frame_apply_completer): New.
4014 (_initialize_stack): Update help of "frame apply", "frame apply
4015 level", "frame apply all" and "faas" to mention supported options
4016 and install command completers.
4017 * stack.h (frame_apply_all_completer): Declare.
4018 * thread.c: Include "stack.h".
4019 (tfaas_command): Add "--".
4020 (_initialize_thread): Update help "tfaas" to mention supported
4021 options and install command completer.
4022
272d4594
PA
40232019-06-13 Pedro Alves <palves@redhat.com>
4024
4025 * completer.c (complete_nested_command_line): New.
4026 (gdb_completion_word_break_characters_throw): Add assertion.
4027 * completer.h (complete_nested_command_line): Declare.
4028
90a1ef87
PA
40292019-06-13 Pedro Alves <palves@redhat.com>
4030
4031 * stack.c (parse_backtrace_qualifiers): New.
4032 (backtrace_command): Use it.
4033 (backtrace_command_completer): Complete on qualifiers.
4034
d4c16835
PA
40352019-06-13 Pedro Alves <palves@redhat.com>
4036
4037 * frame.c: Include "cli/cli-option.h.
4038 (user_set_backtrace_options): New.
4039 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4040 Delete.
4041 (get_prev_frame): Adjust.
4042 (boolean_option_def, uinteger_option_def)
4043 (set_backtrace_option_defs): New.
4044 (_initialize_frame): Adjust and use
4045 gdb::option::add_setshow_cmds_for_options to install "set
4046 backtrace past-main" and "set backtrace past-entry".
4047 * frame.h: Include "cli/cli-option.h".
4048 (struct frame_print_options): Forward declare.
4049 (print_frame_arguments_all, print_frame_arguments_scalars)
4050 (print_frame_arguments_none): Declare.
4051 (print_entry_values): Delete declaration.
4052 (struct frame_print_options, user_frame_print_options): New.
4053 (struct set_backtrace_options): New.
4054 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4055 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4056 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4057 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4058 (list_args_or_locals): Add frame_print_options parameter.
4059 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4060 * python/py-framefilter.c (enumerate_args): Pass down
4061 USER_FRAME_PRINT_OPTIONS.
4062 * stack.c: Include "cli/cli-option.h".
4063 (print_frame_arguments_all, print_frame_arguments_scalars)
4064 (print_frame_arguments_none): Declare.
4065 (print_raw_frame_arguments, print_entry_values): Delete.
4066 (user_frame_print_options): New.
4067 (boolean_option_def, enum_option_def, frame_print_option_defs):
4068 New.
4069 (struct backtrace_cmd_options): New.
4070 (bt_flag_option_def): New.
4071 (backtrace_command_option_defs): New.
4072 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4073 (print_frame_arg, read_frame_arg, print_frame_args)
4074 (print_frame_info, print_frame): Add frame_print_options parameter
4075 and use it.
4076 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4077 (backtrace_command_1): Add frame_print_options and
4078 backtrace_cmd_options parameters and use them.
4079 (make_backtrace_options_def_group): New.
4080 (backtrace_command): Process command options with
4081 gdb::option::process_options.
4082 (backtrace_command_completer): New.
4083 (_initialize_stack): Extend "backtrace"'s help to mention
4084 supported options. Install completer for "backtrace".
4085 Install some settings commands with add_setshow_cmds_for_options.
4086
2daf894e
PA
40872019-06-13 Pedro Alves <palves@redhat.com>
4088
4089 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4090 and that "set/show print raw frame-arguments" are now deprecated.
4091
4092 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4093 command.
4094 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4095 * stack.c (_initialize_stack): Install "set/show print
4096 raw-frame-arguments", and deprecate "set/show print raw
4097 frame-arguments".
4098 * valprint.c (_initialize_valprint): Deprecate "set/show print
4099 raw".
4100
e6ed716c
PA
41012019-06-13 Pedro Alves <palves@redhat.com>
4102
4103 * compile/compile.c (struct compile_options): New.
4104 (compile_flag_option_def, compile_command_option_defs)
4105 (make_compile_options_def_group): New.
4106 (compile_file_command): Handle options with
4107 gdb::option::process_options.
4108 (compile_file_command_completer): New function.
4109 (compile_code_command): Handle options with
4110 gdb::option::process_options.
4111 (compile_code_command_completer): New function.
4112 (_initialize_compiler): Install completers for "compile code" and
4113 "compile file". Mention available options in "compile code" and
4114 "compile code"'s help.
4115 * completer.c (advance_to_completion_word): New, factored out from
4116 ...
4117 (advance_to_expression_complete_word_point): ... this.
4118 (advance_to_filename_complete_word_point): New.
4119 * completer.h (advance_to_filename_complete_word_point): New
4120 declaration.
4121
7d8062de
PA
41222019-06-13 Pedro Alves <palves@redhat.com>
4123
4124 * compile/compile.c: Include "cli/cli-option.h".
4125 (compile_print_value): Scope data pointer is now a
4126 value_print_options pointer; adjust.
4127 (compile_print_command): Process options. Scope data pointer is
4128 now a value_print_options pointer; adjust.
4129 (_initialize_compile): Update "compile print"'s help to include
4130 supported options. Install a completer for "compile print".
4131 * cp-valprint.c (show_vtblprint, show_objectprint)
4132 (show_static_field_print): Delete.
4133 (_initialize_cp_valprint): Don't install "set print
4134 static-members", "set print vtbl", "set print object" here.
4135 * printcmd.c: Include "cli/cli-option.h" and
4136 "common/gdb_optional.h".
4137 (print_command_parse_format): Rework to fill in a
4138 value_print_options instead of a format_data.
4139 (print_value): Change parameter type from format_data pointer to
4140 value_print_options reference. Adjust.
4141 (print_command_1): Process options. Adjust to pass down a
4142 value_print_options.
4143 (print_command_completer): New.
4144 (_initialize_printcmd): Install print_command_completer as
4145 handle_brkchars completer for the "print" command. Update
4146 "print"'s help to include supported options.
4147 * valprint.c: Include "cli/cli-option.h".
4148 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4149 here from cp-valprint.c.
4150 (boolean_option_def, uinteger_option_def)
4151 (value_print_option_defs, make_value_print_options_def_group):
4152 New. Use gdb::option::add_setshow_cmds_for_options to install
4153 "set print elements", "set print null-stop", "set print repeats",
4154 "set print pretty", "set print union", "set print array", "set
4155 print address", "set print symbol", "set print array-indexes".
4156 * valprint.h: Include <string> and "cli/cli-option.h".
4157 (make_value_print_options_def_group): Declare.
4158 (print_value): Change parameter type from format_data pointer to
4159 value_print_options reference.
4160 (print_command_completer): Declare.
4161
9d0faba9
PA
41622019-06-13 Pedro Alves <palves@redhat.com>
4163
4164 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4165 (COMMON_SFILES): Add maint-test-settings.c.
4166 * cli/cli-decode.c (boolean_enums): New global, factored out from
4167 ...
4168 (add_setshow_boolean_cmd): ... here.
4169 * cli/cli-decode.h (boolean_enums): Declare.
4170 * cli/cli-option.c: New file.
4171 * cli/cli-option.h: New file.
4172 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4173 factored out from ...
4174 (parse_cli_boolean_value(const char *)): ... this.
4175 (is_unlimited_literal): Change parameter type to pointer to
4176 pointer. Adjust and advance ARG pointer.
4177 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4178 (parse_cli_var_enum): New, factored out from ...
4179 (do_set_command): ... this. Adjust.
4180 * cli/cli-setshow.h (parse_cli_boolean_value)
4181 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4182 (parse_cli_var_enum): Declare.
4183 * cli/cli-utils.c: Include "cli/cli-option.h".
4184 (get_ulongest): New.
4185 * cli/cli-utils.h (get_ulongest): Declare.
4186 (check_for_argument): New overloads.
4187 * maint-test-options.c: New file.
4188
2c722807
PA
41892019-06-13 Pedro Alves <palves@redhat.com>
4190
4191 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4192 parse a range if "-" is at the end of the string.
4193
dee7b4c8
PA
41942019-06-13 Pedro Alves <palves@redhat.com>
4195
4196 * cli/cli-setshow.c (parse_auto_binary_operation)
4197 (parse_cli_boolean_value): Don't allow "o".
4198
dca0f6c0
PA
41992019-06-13 Pedro Alves <palves@redhat.com>
4200
4201 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4202 * NEWS: Mention maint test-settings KIND.
4203 * maint-test-settings.c: New file.
4204
597bf39d
PA
42052019-06-13 Pedro Alves <palves@redhat.com>
4206
4207 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4208 completer.
4209 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4210 "set" completers.
4211
48c410fb
PA
42122019-06-13 Pedro Alves <palves@redhat.com>
4213
4214 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4215 after item.
4216
93bcb043
PA
42172019-06-13 Pedro Alves <palves@redhat.com>
4218
4219 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4220
cbba3ecd
PA
42212019-06-13 Pedro Alves <palves@redhat.com>
4222
4223 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4224 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4225 call.
4226 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4227 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4228 calls.
4229 (check_for_argument): Skip spaces after argument.
4230
b9a3f842
PA
42312019-06-13 Pedro Alves <palves@redhat.com>
4232
4233 * thread.c (thread_apply_command): Adjust TID parsing.
4234 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4235 detected before end of string.
4236 (tid_is_in_list): Error out if LIST is invalid.
4237
3844e605
PA
42382019-06-13 Pedro Alves <palves@redhat.com>
4239
4240 * completer.c (complete_line_internal_1): Rewind completion word
4241 point.
4242 (completion_tracker::advance_custom_word_point_by): Change
4243 parameter type to int.
4244 * completer.h (completion_tracker::advance_custom_word_point_by):
4245 Likewise.
4246
00b56dbe
PA
42472019-06-13 Pedro Alves <palves@redhat.com>
4248
4249 * completer.c (advance_to_completion_word): Handle delimiters.
4250
d106773e
PA
42512019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4252
4253 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4254
08f10e02
TT
42552019-06-11 Tom Tromey <tom@tromey.com>
4256
4257 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4258 (xmalloc_failed): Move to alloc.c.
4259 * alloc.c: New file.
4260 * Makefile.in (COMMON_SFILES): Add alloc.c.
4261
1c7fe951
TT
42622019-06-11 Tom Tromey <tom@tromey.com>
4263
4264 * nat/linux-waitpid.c: Don't include server.h.
4265 (linux_debug): Remove.
4266 (my_waitpid): Update.
4267
89549d7f
TT
42682019-06-11 Tom Tromey <tromey@adacore.com>
4269
4270 * infcall.c (_initialize_infcall): Remove trailing newline from
4271 help.
4272 * user-regs.c (_initialize_user_regs): Remove trailing newline
4273 from help.
4274 * typeprint.c (_initialize_typeprint): Remove trailing newline
4275 from help.
4276 * reverse.c (_initialize_reverse): Remove trailing newlines from
4277 help.
4278 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4279 from help.
4280 * language.c (add_set_language_command): Remove trailing newline
4281 from help.
4282 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4283 help.
4284 * disasm.c (_initialize_disasm): Remove trailing newline from
4285 help.
4286 * top.c (init_main): Remove trailing newline from help.
4287 * interps.c (_initialize_interpreter): Remove trailing newline
4288 from help.
4289 * btrace.c (_initialize_btrace): Remove trailing newlines from
4290 help.
4291 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4292 from help.
4293 * python/python.c (_initialize_python): Remove trailing newline
4294 from help.
4295 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4296 help.
4297 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4298 from help. Reformat some text.
4299 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4300 from help.
4301 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4302 newline from help.
4303
86108c13
TT
43042019-06-11 Tom Tromey <tromey@adacore.com>
4305
4306 * darwin-nat.c (darwin_decode_exception_message)
4307 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4308
a7067863
AB
43092019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4310
4311 * valops.c (value_slice): Check for not allocated or not
4312 associated values.
4313
9ab08412
TV
43142019-06-10 Tom de Vries <tdevries@suse.de>
4315
4316 PR gdb/24618
4317 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4318 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4319 invalid.
4320
f19e22e9
TV
43212019-06-10 Tom de Vries <tdevries@suse.de>
4322
4323 PR gdb/24611
4324 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4325 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4326
e99f9db0
TV
43272019-06-10 Tom de Vries <tdevries@suse.de>
4328
4329 PR symtab/24545
4330 * symtab.c (struct demangled_name_entry): Add language field.
4331 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4332 static minimal symbol". Set and use language field.
4333
9bf7038b
TT
43342019-06-10 Tom Tromey <tromey@adacore.com>
4335
4336 * ada-lang.c (_initialize_ada_language): Update help text.
4337
422186a9
TT
43382019-06-10 Tom Tromey <tromey@adacore.com>
4339
4340 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4341 with a newline.
4342 * guile/guile.c (handle_boot_error): Don't end warning with a
4343 newline.
4344 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4345 warning with a newline.
4346 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4347 newline.
4348 (s12z_frame_cache): Likewise.
4349 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4350 a newline.
4351 * solib-svr4.c (disable_probes_interface): Don't end warning with
4352 a newline.
4353 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4354 newline.
4355 * python/python.c (do_finish_initialization): Don't end warning
4356 with a newline.
4357
25ce02ee
TT
43582019-06-10 Tom Tromey <tom@tromey.com>
4359
4360 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4361 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4362 gdbpy_enter.
4363
caa429d8
TT
43642019-06-10 Tom Tromey <tromey@adacore.com>
4365
4366 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4367 data.
4368 (elf_new_init): Don't call stabsread_new_init.
4369 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4370 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4371 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4372
81873cc8
TV
43732019-06-10 Tom de Vries <tdevries@suse.de>
4374
4375 PR symtab/16264
4376 PR symtab/24517
4377 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4378
4fa0265e
РИ
43792019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4380
4381 * source.c (find_and_open_source): Also rewrite relative file
4382 names.
4383
1a3da2cd
AB
43842019-04-26 Amos Bird <amosbird@gmail.com>
4385
4386 * annotate.c (annotate_thread_exited): Add "thread-exited"
4387 annotation.
4388
3847a7bf
TT
43892019-06-06 Tom Tromey <tromey@adacore.com>
4390
4391 * maint.h (class scoped_command_stats): Use
4392 DISABLE_COPY_AND_ASSIGN.
4393 <print_time>: New method.
4394 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4395 print_time.
4396 (scoped_command_stats::print_time): New method.
4397
312617a3
AB
43982019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4399
4400 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4401 instructions of lengths 6 or 8 bytes.
4402
b02f78f9
PA
44032019-06-04 Pedro Alves <palves@redhat.com>
4404
4405 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4406
4407 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4408 * breakpoint.c (condition_completer): Likewise.
4409 * cli/cli-dump.c (scan_expression): Likewise.
4410 * common/filestuff.c (mkdir_recursive): Likewise.
4411 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4412 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4413 (gdb_abspath): Likewise.
4414 * compile/compile-cplus-types.c
4415 (compile_cplus_instance::decl_name): Likewise.
4416 * completer.c (complete_explicit_location):
4417 (signal_completer, reg_or_group_completer_1): Likewise.
4418 * cp-support.c (cp_remove_params_if_any): Likewise.
4419 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4420 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4421 * infcmd.c (strip_bg_char): Likewise.
4422 * linespec.c (copy_token_string): Likewise.
4423 * mi/mi-main.c (output_cores): Likewise.
4424 * psymtab.c (psymtab_search_name):
4425 * symfile.c (test_set_ext_lang_command): Likewise.
4426 * target.c (target_fileio_read_stralloc): Likewise.
4427 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4428 * value.c (complete_internalvar): Likewise.
4429
e1f2e1a2
CB
44302019-06-04 Christian Biesinger <cbiesinger@google.com>
4431
4432 Add objfile property to gdb.Type.
d3238f7d
PA
4433 * NEWS: Mention Python API addition.
4434 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4435
e664d728
PW
44362019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4437
4438 * NEWS: Mention the new set|show style [title|highlight].
4439 Mention changes to "show style", "help" and "apropos".
4440
66d8c862
PW
44412019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4442
4443 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4444 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4445 instead of print_help_for_command.
4446 (print_doc_of_command): New function.
4447 (help_list): Add 'apropos -v word' suggestion.
4448 (print_help_for_command): Style the command name using title style.
4449 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4450 (_initialize_cli_cmds): Describe -v in apropos_command help.
4451
9303eb2f
PW
44522019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4453
4454 * cli/cli-style.h (cli_style_option): Add name in constructor,
4455 add m_name class member, add constructor with intensity,
4456 add name class function.
4457 (cli_style_option::add_setshow_commands): Remove name argument.
4458 (highlight_style, title_style): New styles.
4459 * cli/cli-style.c (do_show): New function that shows a style
4460 characteristic styling the style name with itself.
4461 (set_style_name): New function.
4462 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4463 Update all callers according to the changes in cli/cli-style.h.
4464 * utils.h (fputs_highlighted): New function.
4465 * utils.c (fputs_highlighted): Likewise.
4466
e2c52041
PW
44672019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4468
4469 * NEWS: Mention new pipe command and new convenience variables.
4470
947d3946
PW
44712019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4472
4473 * cli/cli-cmds.c (pipe_command): New function.
4474 (_initialize_cli_cmds): Call add_com for pipe_command.
4475 Define | as an alias for pipe.
4476 (exit_status_set_internal_vars): New function.
4477 (shell_escape): Call exit_status_set_internal_vars.
4478 cli/cli-decode.c (find_command_name_length): Recognize | as
4479 a single character command.
4480
b8fd0918
PW
44812019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4482
4483 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4484 top.c (execute_command_to_ui_file): New function, mostly a copy
4485 of execute_command_to_string.
4486 (execute_command_to_string): Implement by calling
4487 execute_command_to_ui_file.
4488
68bb5386
PW
44892019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4490
4491 * top.h (saved_command_line): Remove declaration.
4492 * top.c (previous_saved_command_line, previous_repeat_arguments):
4493 New variables.
4494 (saved_command_line): Make static, define together with other
4495 'repeat variables'.
4496 (dont_repeat): Clear repeat_arguments.
4497 (repeat_previous, get_saved_command_line, save_command_line):
4498 New functions.
4499 (gdb_init): Initialize saved_command_line
4500 and previous_saved_command_line.
4501 * main.c (captured_main_1): Remove saved_command_line initialization.
4502 * event-top.c (handle_line_of_input): Update to use
4503 the new 'repeat' related functions instead of direct access to
4504 saved_command_line.
4505 * command.h (repeat_previous, get_saved_command_line,
4506 save_command_line): New declarations.
4507 (dont_repeat): Add comment.
4508
bfcdb852
TT
45092019-05-30 Tom Tromey <tromey@adacore.com>
4510
4511 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4512 Fix comment.
4513 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4514
0ef209f2
JV
45152019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4516
4517 PR cli/24587
4518 * completer.c (complete): Initialize variable word.
4519
955b06fa
SDJ
45202019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4521
4522 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4523 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4524 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4525 'body' is NULL to the outter 'if', protecting the '!is_define'
4526 situation as well.
4527
fa9c3fa0
TT
45282019-05-29 Tom Tromey <tromey@adacore.com>
4529
4530 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4531 (dwarf_unknown): New function.
4532 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4533 (dwarf_type_encoding_name): Use dwarf_unknown.
4534
4330d61d
TT
45352019-05-29 Tom Tromey <tromey@adacore.com>
4536
4537 PR c++/20020:
4538 * cp-valprint.c (cp_print_value_fields): Call
4539 cp_print_static_field inside "try".
4540
33a6bc35
TT
45412019-05-29 Tom Tromey <tromey@adacore.com>
4542
4543 * inflow.c (struct terminal_info): Add default operator=.
4544 * configure: Rebuild.
4545 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4546 -Wdeprecated-copy-dtor, -Wredundant-move.
4547
000439d5
TT
45482019-05-29 Tom Tromey <tromey@adacore.com>
4549
4550 * NEWS: Add entry.
4551 * infcmd.c (print_return_value_1): Handle finish_print
4552 option.
4553 (show_print_finish): New function.
4554 (_initialize_infcmd): Add "set/show print finish" commands.
4555 * valprint.c (user_print_options): Initialize new member.
4556 * valprint.h (struct value_print_options) <finish_print>: New
4557 member.
4558
c0e70c62
TT
45592019-05-28 Tom Tromey <tromey@adacore.com>
4560
4561 * ada-lang.c (ada_remove_Xbn_suffix)
4562 (find_old_style_renaming_symbol)
4563 (parse_old_style_renaming): Remove.
4564 (ada_find_renaming_symbol): Don't call
4565 find_old_style_renaming_symbol.
4566 (ada_is_renaming_symbol): Rename from
4567 ada_find_renaming_symbol. Remove "block" parameter. Return
4568 bool. Now static.
4569 (ada_read_var_value): Update and simplify.
4570 * ada-exp.y (write_var_or_type): Remove old code.
4571
766f8836
AH
45722019-05-28 Alan Hayward <alan.hayward@arm.com>
4573
4574 * event-top.c: Remove include comment.
4575 * inflow.c (class scoped_ignore_sigttou): Move from here...
4576 * inflow.h (class scoped_ignore_sigttou): ...to here.
4577 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4578 * top.c: Remove include comment.
4579
eb41253a
TT
45802019-05-27 Tom Tromey <tom@tromey.com>
4581
4582 * NEWS: Fix typo.
4583
4ca51187
TT
45842019-05-22 Tom Tromey <tromey@adacore.com>
4585
4586 * target.c (target_follow_exec): Constify parameter.
4587 * target-delegates.c: Rebuild.
4588 * remote.c (remote_target::follow_exec): Constify parameter.
4589 * infrun.c (follow_exec): Constify parameter.
4590 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4591 (target_follow_exec): Likewise.
4592
8fca4da0
AH
45932019-05-22 Alan Hayward <alan.hayward@arm.com>
4594
4595 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4596 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4597
b7060614
AH
45982019-05-22 Alan Hayward <alan.hayward@arm.com>
4599
4600 * NEWS: Add debugredirect and testsuite sections.
4601
0a5954bd
SC
46022019-05-22 Simon Cook <simon.cook@embecosm.com>
4603
4604 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4605 target descriptions using exclusively floating point register name
4606 aliases.
4607
dc42e902
AB
46082019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4609
4610 PR gdb/18644:
4611 * f-lang.c (build_fortran_types): Handle the case where
4612 gdbarch_floatformat_for_type returns a nullptr.
4613
fb7806c7
TV
46142019-05-21 Tom de Vries <tdevries@suse.de>
4615
4616 PR cli/24587
4617 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4618
34d11c68
AB
46192019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4620
4621 PR gdb/18644:
4622 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4623 16-byte floats.
4624 * i386-tdep.c (i386_floatformat_for_type): Use
4625 floatformats_ia64_quad for the 16-byte floating point component
4626 within a fortran 32-byte complex number.
4627
122cf0f2
AB
46282019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4629
4630 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4631 delete default constructor.
4632 (find_partial_die): Update to return const struct.
4633 (partial_die_parent_scope): Move variable declaration into scope
4634 of its use and change its type to auto.
4635 (guess_partial_die_structure_name): Likewise.
4636 (partial_die_info::fixup): Likewise.
4637
33d0e35a
TT
46382019-05-17 Tom Tromey <tromey@adacore.com>
4639
4640 * source.c (find_and_open_source): Remove cast.
4641
a45575b0
TT
46422019-05-17 Tom Tromey <tromey@adacore.com>
4643
4644 * annotate.c (annotate_source): Make "filename" const.
4645 * annotate.h (annotate_source): Use const.
4646
81f47ac2
AH
46472019-05-17 Alan Hayward <alan.hayward@arm.com>
4648
4649 * disasm.c (set_disassembler_options): Send errors to stderr.
4650
ca1285d1
AH
46512019-05-17 Alan Hayward <alan.hayward@arm.com>
4652
4653 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4654 (cli_interp_base::set_logging): Check debug_redirect.
4655 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4656 * cli/cli-logging.c (debug_redirect): Add static variable.
4657 (pop_output_files): Add default param.
4658 (handle_redirections): Print debug setting.
4659 (show_logging_command): Likewise.
4660 (_initialize_cli_logging): Add debugredirect command.
4661 * interps.c (current_interp_set_logging): Add debug_redirect
4662 parameter.
4663 * interps.h (set_logging): Add debug_redirect parameter.
4664 (current_interp_set_logging): Likewise.
4665 * mi/mi-common.h: Likewise.
4666 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4667
46682019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4669 Tom Tromey <tromey@adacore.com>
4670
4671 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4672 directly.
4673 * cli/cli-interp.h (make_logging_output): Remove declaration.
4674 * cli/cli-logging.c (make_logging_output): Remove function.
4675 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4676 directly.
4677 * ui-file.c (tee_file::tee_file): Remove bools.
4678 (tee_file::~tee_file): Remove deletes.
4679 * ui-file.h (tee_file): Remove bools.
4680
26648588
JV
46812019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4682
4683 * mi/mi-cmds.h (mi_cmd_complete): New function.
4684 * mi/mi-main.c (mi_cmd_complete): Likewise.
4685 * mi/mi-cmds.c: Define new MI command -complete.
4686 * NEWS: Mention new -complete command.
4687
6e035501
JV
46882019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4689
4690 * completer.h (complete): New function.
4691 * completer.c (complete): Likewise.
4692 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4693 function defined in completer.h.
4694
7d0e2ece
JV
46952019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4696
e79be6e5 4697 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4698
fb816e8b
TV
46992019-05-17 Tom de Vries <tdevries@suse.de>
4700
4701 PR gdb/24094
4702 * dwarf2read.c (struct cu_partial_die_info): New struct.
4703 (find_partial_die): Return cu_partial_die_info.
4704 (partial_die_parent_scope, guess_partial_die_structure_name)
4705 (partial_die_info::fixup): Handle new return type of find_partial_die.
4706
677052f2
SDJ
47072019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4708
4709 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4710 "std::string", simplifying the algorithm.
4711
f3da9116
SDJ
47122019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4713
4714 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4715 (stap_static_probe_ops::get_probes): Likewise.
4716
f1bb75ab
SDJ
47172019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4718
4719 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4720 '-')" and "else if".
4721 (stap_parse_single_operand): Join checks for
4722 "gdbarch_stap_parse_special_token_p" and
4723 "gdbarch_stap_parse_special_token" in the same "if" statement.
4724 Invert check when verifying for operation on register
4725 displacement.
4726
3ca58cde
SDJ
47272019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4728
4729 * stap-probe.c (stap_get_opcode): Update comment.
4730 (stap_get_expected_argument_type): Likewise.
4731 (handle_stap_probe): Likewise.
4732
af2d9bee
SDJ
47332019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4734
4735 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4736 return type to 'bool'. Adjust comment. Use 'bool' when
4737 appropriate.
4738 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4739 * stap-probe.c (stap_parse_argument_1): Likewise.
4740 (stap_is_operator): Likewise.
4741 (stap_is_generic_prefix): Likewise.
4742 (stap_is_register_prefix): Likewise.
4743 (stap_is_register_indirection_prefix): Likewise.
4744 (stap_is_integer_prefix): Likewise.
4745 (stap_generic_check_suffix): Likewise.
4746 (stap_check_integer_suffix): Likewise.
4747 (stap_check_register_suffix): Likewise.
4748 (stap_check_register_indirection_suffix): Likewise.
4749 (stap_parse_register_operand): Likewise.
4750 (stap_parse_single_operand): Likewise.
4751 (stap_parse_argument_1): Likewise.
4752 (stap_probe::get_argument_count): Likewise.
4753 (stap_is_operator): Likewise.
4754
61c9c421
TT
47552019-05-16 Tom Tromey <tromey@adacore.com>
4756
4757 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4758 keyword to foreach.
4759
9ddc1af1
SM
47602019-05-15 Simon Marchi <simon.marchi@efficios.com>
4761
4762 * linux-thread-db.c (try_thread_db_load_1): Change return type
4763 to bool.
4764 (try_thread_db_load): Likewise.
4765 (try_thread_db_load_from_pdir_1): Likewise.
4766 (try_thread_db_load_from_pdir): Likewise.
4767 (try_thread_db_load_from_sdir): Likewise.
4768 (try_thread_db_load_from_dir): Likewise.
4769 (thread_db_load_search): Likewise.
4770 (has_libpthread): Likewise.
4771 (thread_db_load): Likewise.
4772
7bede828
SDJ
47732019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4774
4775 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4776 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4777 NULL, and complain/return if that's the case.
4778
c5358db4
JD
47792019-05-15 John Darrington <john@darrington.wattle.id.au>
4780
4781 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4782 (advance, posn, abstract_read_memory): New functions.
4783 [struct mem_read_abstraction]: New struct.
4784 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4785
c408a94f
TT
47862019-05-14 Tom Tromey <tromey@adacore.com>
4787
4788 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4789 value is not lval_memory.
4790
e7bd7fba
TT
47912019-05-14 Tom Tromey <tromey@adacore.com>
4792
4793 * solib.c (info_sharedlibrary_command): Style the file name.
4794
a6d0f249
AH
47952019-05-14 Alan Hayward <alan.hayward@arm.com>
4796
4797 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4798 (aarch64_vnv_type): Likewise.
4799 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4800 * common/tdesc.c: Likewise.
4801 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4802 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4803 * features/aarch64-fpu.xml: Add ieee half view.
4804 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4805 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4806 * gdbtypes.h (struct builtin_type): Likewise.
4807 (struct objfile_type): Likewise.
4808
66b8bb74
SM
48092019-05-12 Paul Naert <paul.naert@polymtl.ca>
4810
4811 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4812 typo.
4813 * location.h (string_to_event_location): Likewise.
4814
21c219fd
JB
48152019-05-11 Joel Brobecker <brobecker@adacore.com>
4816
4817 GDB 8.3 released.
4818
13674803
SM
48192019-05-10 Simon Marchi <simon.marchi@efficios.com>
4820
4821 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4822 New variable declaration.
4823 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4824 New variable.
4825 (print_one_breakpoint): Use ui_out::test_flags and new global
4826 variable to compute use_fixed_output.
4827 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4828 Remove.
4829 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4830 (mi_multi_location_breakpoint_output_fixed): Remove.
4831 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4832 new variable.
4833 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4834 fix_multi_location_breakpoint_output flag if version >= 3.
4835 * ui-out.h (enum ui_out_flag)
4836 <fix_multi_location_breakpoint_output>: New enumerator.
4837
a9eac7f9
SM
48382019-05-10 Simon Marchi <simon.marchi@efficios.com>
4839
4840 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4841
71bed2db
TT
48422019-05-10 Tom Tromey <tromey@adacore.com>
4843
4844 * ada-lang.c (catch_ada_completer): New function.
4845 (_initialize_ada_language): Use it.
4846
24c54127
TT
48472019-05-10 Tom Tromey <tromey@adacore.com>
4848
4849 * thread.c (print_thread_info): Make "requested_threads" const.
4850 * gdbthread.h (print_thread_info): Make "requested_threads"
4851 const.
4852 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4853 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4854
7a102139
TT
48552019-05-08 Tom Tromey <tom@tromey.com>
4856
4857 * gdbtypes.c (objfile_type_data): Change type.
4858 (objfile_type, _initialize_gdbtypes): Update.
4859
924d79e2
TT
48602019-05-08 Tom Tromey <tom@tromey.com>
4861
4862 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4863 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4864 (_initialize_dwarf2_frame): Update.
4865
4c58e337
TT
48662019-05-08 Tom Tromey <tom@tromey.com>
4867
4868 * objc-lang.c (objc_objfile_data): Change type.
4869 (find_methods): Update.
4870 (_initialize_objc_lang): Remove.
4871
d772d2ab
TT
48722019-05-08 Tom Tromey <tom@tromey.com>
4873
4874 * stabsread.c (rs6000_builtin_type_data): Change type.
4875 (rs6000_builtin_type, _initialize_stabsread): Update.
4876
d11d83f4
TT
48772019-05-08 Tom Tromey <tom@tromey.com>
4878
4879 * mips-tdep.c (mips_pdr_data): Remove.
4880 (_initialize_mips_tdep): Update.
4881
9a73f0ad
TT
48822019-05-08 Tom Tromey <tom@tromey.com>
4883
4884 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4885 (hppa_init_objfile_priv_data, read_unwind_info)
4886 (find_unwind_entry, _initialize_hppa_tdep): Update.
4887
8127a2fa
TT
48882019-05-08 Tom Tromey <tom@tromey.com>
4889
4890 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4891 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4892 on obstack.
4893 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4894
91d3055d
TT
48952019-05-08 Tom Tromey <tom@tromey.com>
4896
4897 * mdebugread.c (basic_type_data): Change type.
4898 (basic_type, _initialize_mdebugread): Update.
4899
31930bd3
TT
49002019-05-08 Tom Tromey <tom@tromey.com>
4901
4902 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4903
bdb3ed9e
TT
49042019-05-08 Tom Tromey <tom@tromey.com>
4905
4906 * nto-tdep.c (nto_inferior_data_reg): Change type.
4907 (nto_inferior_data): Update.
4908 (nto_inferior_data_cleanup, nto_new_inferior_data)
4909 (_initialize_nto_tdep): Remove.
4910 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4911
f37b313d
TT
49122019-05-08 Tom Tromey <tom@tromey.com>
4913
4914 * ada-lang.c (struct ada_inferior_data): Add initializers.
4915 (ada_inferior_data): Change type.
4916 (ada_inferior_data_cleanup): Remove.
4917 (get_ada_inferior_data, ada_inferior_exit)
4918 (struct ada_pspace_data): Add initializers, destructor.
4919 (ada_pspace_data_handle): Change type.
4920 (get_ada_pspace_data): Update.
4921 (ada_pspace_data_cleanup): Remove.
4922
24699405
TT
49232019-05-08 Tom Tromey <tom@tromey.com>
4924
4925 * coffread.c (struct coff_symfile_info): Add initializers.
4926 (coff_objfile_data_key): Move lower. Change type.
4927 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4928 Update.
4929 (coff_free_info): Remove.
4930
d4e05d2f
TT
49312019-05-08 Tom Tromey <tom@tromey.com>
4932
4933 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4934 (fbsd_pspace_data_handle): Move lower. Change type.
4935 (get_fbsd_pspace_data): Update.
4936 (fbsd_pspace_data_cleanup): Remove.
4937 (_initialize_fbsd_tdep): Update.
4938
14ef6690
TT
49392019-05-08 Tom Tromey <tom@tromey.com>
4940
4941 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4942 (get_ada_tasks_pspace_data): Update.
4943 (ada_tasks_pspace_data_cleanup): Remove.
4944 (_initialize_tasks): Update.
4945 (ada_tasks_inferior_data_handle): Change type.
4946 (get_ada_tasks_inferior_data): Update.
4947 (ada_tasks_inferior_data_cleanup): Remove.
4948 (struct ada_tasks_pspace_data): Add initializers.
4949
814cf43a
TT
49502019-05-08 Tom Tromey <tom@tromey.com>
4951
4952 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4953 * symfile-debug.c (debug_sym_get_probes): Change type.
4954 * stap-probe.c (handle_stap_probe):
4955 (stap_static_probe_ops::get_probes): Change type.
4956 * probe.h (class static_probe_ops) <get_probes>: Change type.
4957 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4958 (parse_probes_in_pspace): Update.
4959 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4960 Update.
4961 (any_static_probe_ops::get_probes): Change type.
4962 * elfread.c (elfread_data): New typedef.
4963 (probe_key): Change type.
4964 (elf_get_probes): Likewise. Update.
4965 (probe_key_free): Remove.
4966 (_initialize_elfread): Update.
4967 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4968 Change type.
4969 (dtrace_process_dof_probe, dtrace_process_dof)
4970 (dtrace_static_probe_ops::get_probe): Change type.
4971
02dc647e
TT
49722019-05-08 Tom Tromey <tom@tromey.com>
4973
4974 * xcoffread.c (struct xcoff_symfile_info): Rename from
4975 coff_symfile_info. Add initializers.
4976 (xcoff_objfile_data_key): Move lower. Change type.
4977 (XCOFF_DATA): Rewrite.
4978 (xcoff_free_info): Remove.
4979 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4980 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4981 (xcoff_initial_scan): Update.
4982
09232438
TT
49832019-05-08 Tom Tromey <tom@tromey.com>
4984
4985 * solib-svr4.c (struct svr4_info): Add initializers and
4986 destructor.
4987 <probes_table>: Now an htab_up.
4988 (solib_svr4_pspace_data): Change type.
4989 (free_probes_table): Simplify.
4990 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4991 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4992 (probes_table_remove_objfile_probes, register_solib_event_probe)
4993 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4994 (_initialize_svr4_solib): Update.
4995
7b4a314f
TT
49962019-05-08 Tom Tromey <tom@tromey.com>
4997
4998 * remote.c (remote_pspace_data): Change type.
4999 (remote_pspace_data_cleanup): Remove.
5000 (get_remote_exec_file, set_pspace_remote_exec_file)
5001 (_initialize_remote): Update.
5002
51d3063a
TT
50032019-05-08 Tom Tromey <tom@tromey.com>
5004
5005 * breakpoint.c (breakpoint_objfile_key): Change type.
5006 (get_breakpoint_objfile_data): Update.
5007 (free_breakpoint_objfile_data): Remove.
5008 (_initialize_breakpoint): Update.
5009
89fb8848
TT
50102019-05-08 Tom Tromey <tom@tromey.com>
5011
5012 * linux-tdep.c (struct linux_info): Add initializers.
5013 (linux_inferior_data): Move. Change type.
5014 (invalidate_linux_cache_inf): Update.
5015 (linux_inferior_data_cleanup): Remove.
5016 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5017
e9b89e2d
TT
50182019-05-08 Tom Tromey <tom@tromey.com>
5019
5020 * auxv.c (auxv_inferior_data): Move. Change type.
5021 (auxv_inferior_data_cleanup): Remove.
5022 (invalidate_auxv_cache_inf): Rewrite.
5023 (get_auxv_inferior_data, _initialize_auxv): Update.
5024
8c42777c
TT
50252019-05-08 Tom Tromey <tom@tromey.com>
5026
5027 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5028 (symfile_debug_objfile_data_key): Change type.
5029 (symfile_debug_installed, debug_qf_has_symbols)
5030 (debug_qf_find_last_source_symtab)
5031 (debug_qf_forget_cached_source_info)
5032 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5033 (debug_qf_print_stats, debug_qf_dump)
5034 (debug_qf_expand_symtabs_for_function)
5035 (debug_qf_expand_all_symtabs)
5036 (debug_qf_expand_symtabs_with_fullname)
5037 (debug_qf_map_matching_symbols)
5038 (debug_qf_expand_symtabs_matching)
5039 (debug_qf_find_pc_sect_compunit_symtab)
5040 (debug_qf_map_symbol_filenames)
5041 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5042 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5043 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5044 (debug_sym_read_linetable, debug_sym_relocate): Update.
5045 (symfile_debug_free_objfile): Remove.
5046 (install_symfile_debug_logging, _initialize_symfile_debug):
5047 Update.
5048
5bfd760d
TT
50492019-05-08 Tom Tromey <tom@tromey.com>
5050
5051 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5052 allocate_on_obstack.
5053 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5054 (get_dwarf2_per_objfile): Update.
5055 (set_dwarf2_per_objfile): Remove.
5056 (dwarf2_has_info, dwarf2_get_section_info): Update.
5057 (dwarf2_free_objfile): Remove.
5058 (_initialize_dwarf2_read): Update.
5059
e85e19b4
TT
50602019-05-08 Tom Tromey <tom@tromey.com>
5061
5062 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5063 initializers.
5064 <unsupported_script_warning_printed,
5065 script_not_found_warning_printed>: Now bool.
5066 (auto_load_pspace_data): Change type.
5067 (~auto_load_pspace_info): Rename from
5068 auto_load_pspace_data_cleanup.
5069 (get_auto_load_pspace_data, init_loaded_scripts_info)
5070 (clear_section_scripts, maybe_print_unsupported_script_warning)
5071 (maybe_print_script_not_found_warning, _initialize_auto_load):
5072 Update.
5073
f6aa7436
TT
50742019-05-08 Tom Tromey <tom@tromey.com>
5075
5076 * objfiles.c (objfile_pspace_info): Add destructor and
5077 initializers.
5078 (objfiles_pspace_data): Change type.
5079 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5080 (get_objfile_pspace_data): Update.
5081 (objfiles_bfd_data): Change type.
5082 (get_objfile_bfd_data): Update.
5083 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5084
6ae614f6
TT
50852019-05-08 Tom Tromey <tom@tromey.com>
5086
5087 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5088 Change type.
5089 (get_catch_syscall_inferior_data): Update.
5090 (catch_syscall_inferior_data_cleanup): Remove.
5091 (_initialize_break_catch_syscall): Update.
5092
6509b8eb
TT
50932019-05-08 Tom Tromey <tom@tromey.com>
5094
5095 * inflow.c (struct terminal_info): Add destructor and
5096 initializers.
5097 (inflow_inferior_data): Change type.
5098 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5099 (get_inflow_inferior_data, inflow_inferior_exit)
5100 (swap_terminal_info, _initialize_inflow): Update.
5101
35632941
TT
51022019-05-08 Tom Tromey <tom@tromey.com>
5103
5104 * target-dcache.c (target_dcache_cleanup): Remove.
5105 (target_dcache_aspace_key): Change type.
5106 (target_dcache_init_p, target_dcache_invalidate)
5107 (target_dcache_get, target_dcache_get_or_init)
5108 (_initialize_target_dcache): Update.
5109 * dcache.h (struct dcache_deleter): New.
5110
3017b94d
TT
51112019-05-08 Tom Tromey <tom@tromey.com>
5112
5113 * symtab.c (struct symbol_cache): Add destructor and
5114 initializers.
5115 (symbol_cache_key): Move. Change type.
5116 (make_symbol_cache, free_symbol_cache): Remove.
5117 (get_symbol_cache): Update.
5118 (symbol_cache_cleanup): Remove.
5119 (ALL_PSPACES, symbol_cache_flush)
5120 (maintenance_print_symbol_cache)
5121 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5122 Update.
5123
a32ad8c5
TT
51242019-05-08 Tom Tromey <tom@tromey.com>
5125
5126 * symtab.c (struct main_info): Add destructor and initializers.
5127 (main_progspace_key): Move. Change type.
5128 (get_main_info): Update.
5129 (main_info_cleanup): Remove.
5130 (_initialize_symtab): Update.
5131
5f6e90a0
TT
51322019-05-08 Tom Tromey <tom@tromey.com>
5133
5134 * registry.h (DECLARE_REGISTRY): Define the _key class.
5135
1bd0c6e4
AB
51362019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5137
5138 * NEWS: Merge two 'New commands' sections.
5139
2228ef77
XR
51402019-05-08 Joel Brobecker <brobecker@adacore.com>
5141
5142 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5143 parameter and use Ada language definition instead.
5144 (ada_val_print_ptr): Remove unused language parameter.
5145 (ada_val_print_num): Remove language parameter and use Ada language
5146 definition instead.
5147 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5148 parameter.
5149 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5150 parameter and use Ada language definition instead.
5151 (ada_val_print_1): Update all ada_val_print_xxx calls.
5152 Remove language parameter.
5153 (ada_val_print): Update ada_val_print_1 call.
5154
60fcc1c3
TT
51552019-05-08 Tom Tromey <tromey@adacore.com>
5156
5157 * remote.c (remote_hw_watchpoint_limit)
5158 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5159 Now static.
5160
ed2b7c17
TT
51612019-05-08 Tom Tromey <tromey@adacore.com>
5162
5163 * maint.c (_initialize_maint_cmds): Move initialization code to
5164 remote.c.
5165 (watchdog, show_watchdog): Move to remote.c.
5166 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5167 "watchdog" static.
5168 (_initialize_remote): Move initialization code from maint.c.
5169 * defs.h (watchdog): Don't declare.
5170
b0be6c91
TT
51712019-05-08 Tom Tromey <tromey@adacore.com>
5172
5173 * tui/tui-interp.c: Include main.h.
5174 * interps.c: Include main.h.
5175 * main.h (interpreter_p): Declare.
5176 * defs.h (interpreter_p): Don't declare.
5177
587ee17b
TT
51782019-05-08 Tom Tromey <tromey@adacore.com>
5179
5180 * dwarf2loc.c: Include dwarf2read.h.
5181 * defs.h (read_unsigned_leb128): Don't declare.
5182 * dwarf2read.h (read_unsigned_leb128): Declare.
5183
ca1df239
TT
51842019-05-08 Tom Tromey <tromey@adacore.com>
5185
5186 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5187 method.
5188
99f20f08
TT
51892019-05-08 Tom Tromey <tromey@adacore.com>
5190
5191 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5192 when no wrap column is set.
5193
80e55b13
TT
51942019-05-08 Tom Tromey <tromey@adacore.com>
5195
5196 * c-lang.c (c_get_string): Handle non-C-style arrays.
5197
9d3421af
TT
51982019-05-08 Tom Tromey <tromey@adacore.com>
5199
5200 * typeprint.c (print_offset_data::update): Print the bit offset,
5201 not the number of bits remaining.
5202
844333e2
TT
52032019-05-08 Tom Tromey <tromey@adacore.com>
5204
5205 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5206 padding at end of comment.
5207
988915ee
TT
52082019-05-08 Tom Tromey <tromey@adacore.com>
5209
5210 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5211 Compare main types.
5212
26bfd823
TT
52132019-05-06 Tom Tromey <tom@tromey.com>
5214
5215 * common/scoped_mmap.c: Include common-defs.h.
5216 * common/scoped_mmap.h: Don't include config.h.
5217
89055eaa
TT
52182019-05-04 Tom Tromey <tom@tromey.com>
5219
5220 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5221 (struct aarch64_call_info): Add initializers.
5222 <si>: Now a std::vector.
5223 (pass_on_stack, aarch64_push_dummy_call): Update.
5224
5da01df5
TT
52252019-05-04 Simon Marchi <simon.marchi@efficios.com>
5226 Tom Tromey <tom@tromey.com>
5227
5228 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5229 (ppc_threads): Now a std::vector. Now static.
5230 (hwdebug_find_thread_points_by_tid)
5231 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5232 Update.
5233
fbdf05a1
TT
52342019-05-04 Tom Tromey <tom@tromey.com>
5235
5236 * arc-tdep.c (arc_tdesc_init): Return bool.
5237
06d16ec9
TT
52382019-05-04 Tom Tromey <tom@tromey.com>
5239
5240 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5241 Use gdb_assert_not_reached.
5242
9c056022
TT
52432019-05-04 Tom Tromey <tom@tromey.com>
5244
5245 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5246 "false".
5247
fa9c2a59
TT
52482019-05-04 Tom Tromey <tom@tromey.com>
5249
5250 * arc-tdep.c (arc_tdesc_init): Use bool.
5251
e2eb806a
TT
52522019-05-04 Tom Tromey <tom@tromey.com>
5253
5254 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5255
6fe87677
TT
52562019-05-04 Tom Tromey <tom@tromey.com>
5257
5258 * cli/cli-cmds.c (valid_command_p): Return bool.
5259
7f008c9e
TT
52602019-05-04 Tom Tromey <tom@tromey.com>
5261
5262 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5263 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5264
b6484282
RT
52652019-05-04 Raul Tambre <raul@tambre.ee>
5266
5267 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5268 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5269 operator for comparison.
5270
af97b416
TT
52712019-05-04 Tom Tromey <tom@tromey.com>
5272
5273 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5274 (lookup_partial_symbol, print_partial_symbols)
5275 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5276 (psymbol_compare): Update.
5277 (add_psymbol_to_bcache): Clear the entire psymbol.
5278 (maintenance_check_psymtabs): Update.
5279 * psympriv.h (struct partial_symbol): Don't derive from
5280 general_symbol_info.
5281 <obj_section, unrelocated_address, address,
5282 set_unrelocated_address>: Update.
5283 <ginfo>: New member.
5284 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5285 (debug_names::write_psymbols): Update.
5286
9d6d4be8
TV
52872019-05-04 Tom de Vries <tdevries@suse.de>
5288
5289 * contrib/cc-with-tweaks.sh: Support -n arg.
5290
66452beb
PW
52912019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5292
5293 * corelow.c (core_target::detach): Ensure frame cache and
5294 register caches are cleared.
5295 inferior.c (exit_inferior_1): Likewise.
5296
bde09ab7
TT
52972019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5298 Tom Tromey <tom@tromey.com>
5299
5300 * dictionary.c (collate_pending_symbols_by_language): Remove
5301 "struct" from foreach.
5302 * symtab.c (lookup_global_symbol_from_objfile)
5303 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5304 foreach.
5305 * ser-tcp.c (net_open): Remove "struct" from foreach.
5306 * objfiles.c (objfile_relocate, objfile_rebase)
5307 (objfile_has_symbols): Remove "struct" from foreach.
5308 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5309 from foreach.
5310 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5311 foreach.
5312 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5313 "struct" from foreach.
5314 * ada-lang.c (create_excep_cond_exprs)
5315 (ada_exception_catchpoint_cond_string): Remove "struct" from
5316 foreach.
5317
222a8d25
TT
53182019-05-03 Tom Tromey <tromey@adacore.com>
5319
5320 * ada-exp.y (convert_char_literal): Check suffix of each
5321 enumerator.
5322
fcd60b84
DP
53232019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5324
5325 PR ada/21406:
5326 * ada-exp.y (yywrap): Don't define.
5327 * ada-lex.l (%option): Add noyywrap
5328 (yywrap): Remove.
5329
5f2459c2
EZ
53302019-05-03 Eli Zaretskii <eliz@gnu.org>
5331
353ea2d1
EZ
5332 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5333 _WIN32_WINNT to the XP level, unless already defined to a higher
5334 level.
5335
5336 * unittests/parse-connection-spec-selftests.c:
5337 * ser-tcp.c:
5338 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5339 override.
5340
5f2459c2
EZ
5341 * symfile.c (find_separate_debug_file): Remove colon from the
5342 drive spec of DOS/Windows file names of the target, so that the
5343 file name produced from DEBUGDIR and the target's directory will
5344 be valid on DOS/Windows systems.
5345
80062eb9
AB
53462019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5347
5348 * rust-lang.c (val_print_struct): Handle printing structures
5349 containing strings.
5350
b8c05e85
TT
53512019-05-02 Tom Tromey <tromey@adacore.com>
5352
5353 * valarith.c (_initialize_valarith): Remove.
5354
4504bbde
TT
53552019-05-01 Tom Tromey <tromey@adacore.com>
5356
5357 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5358 bitfields.
5359
d48e62f4
TT
53602019-05-01 Tom Tromey <tromey@adacore.com>
5361
5362 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5363 for big-endian copies.
5364
15f18d14
AT
53652019-04-30 Ali Tamur <tamur@google.com>
5366 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5367 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5368 (read_3_bytes): New function.
5369
ab4ee614
JB
53702019-04-30 Joel Brobecker <brobecker@adacore.com>
5371
5372 * windows-nat.c (main_thread_id): Delete.
5373 (handle_output_debug_string): Replace main_thread_id by
5374 current_event.dwThreadId.
5375 (fake_create_process): Likewise.
5376 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5377 Do not set main_thread_id.
5378 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5379 current_event.dwThreadId.
5380 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5381
8ed5b76e
JB
53822019-04-30 Joel Brobecker <brobecker@adacore.com>
5383
5384 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5385 Use current_event.dwThreadId instead of main_thread_id.
5386
2ff0a947
TT
53872019-04-30 Tom Tromey <tromey@adacore.com>
5388
5389 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5390 (create_excep_cond_exprs): Iterate over program spaces.
5391 (ada_exception_catchpoint_cond_string): Examine all minimal
5392 symbols for exception types.
5393
a776957c
TT
53942019-04-30 Tom Tromey <tromey@adacore.com>
5395
5396 PR c++/24470:
5397 * dwarf2read.c (process_structure_scope): Handle case where type
5398 has template parameters but no symbol was created.
5399
bc68014d
AB
54002019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5401 Chris January <chris.january@arm.com>
5402
5403 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5404 qualifier.
5405 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5406
f1fdc960
AB
54072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5408
5409 * f-typeprint.c (f_print_type): Update rules for printing
5410 whitespace.
5411 (f_type_print_varspec_suffix): Likewise.
5412
bf7a4de1
AB
54132019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5414 Chris January <chris.january@arm.com>
5415
5416 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5417 function arguments.
5418
bbe75b9d
AB
54192019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5420
5421 * f-lang.c (build_fortran_types): Change name of void type to
5422 lower case.
5423 * f-typeprint.c (f_type_print_base): Print the name of the void
5424 type, rather than a fixed string.
5425 * f-valprint.c (f_decorations): Use lower case void string.
5426
1db455a7
AB
54272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5428 Chris January <chris.january@arm.com>
5429
5430 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5431 types for Fortran.
5432
b6d03bb2
AB
54332019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5434 Chris January <chris.january@arm.com>
5435 David Lecomber <david.lecomber@arm.com>
5436
5437 * f-exp.y (BINOP_INTRINSIC): New token.
5438 (exp): New parser rule handling BINOP_INTRINSIC.
5439 (f77_keywords): Add new builtin procedures.
5440 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5441 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5442 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5443 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5444 (print_unop_subexp_f): New function.
5445 (print_binop_subexp_f): New function.
5446 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5447 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5448 (dump_subexp_body_f): Likewise.
5449 (operator_check_f): Likewise.
5450 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5451 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5452
83228e93
AB
54532019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5454
5455 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5456 UNOP_KIND.
5457 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5458 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5459 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5460 (operator_length_f): New fuction.
5461 (print_subexp_f): New function.
5462 (op_name_f): New function.
5463 (dump_subexp_body_f): New function.
5464 (operator_check_f): New function.
5465 (exp_descriptor_f): Replace standard expression handling functions
5466 with new functions.
5467 * gdb/fortran-operator.def: New file.
5468 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5469 * gdb/std-operator.def: Remove UNOP_KIND.
5470
6fdcd7cc
AB
54712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5472
5473 * std-operator.def: Remove unbalanced, stray double quote
5474 character.
5475
2e62ab40
AB
54762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5477 Chris January <chris.january@arm.com>
5478 Daniel Everett <daniel.everett@arm.com>
5479 Nick Forrington <nick.forrington@arm.com>
5480 Richard Bunt <richard.bunt@arm.com>
5481
5482 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5483 of depth when printing anonymous structs or unions.
5484 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5485 Don't print either the top-level value, or the children if the
5486 max-depth is exceeded.
5487 (ppscm_print_children): When printing the key of a map, allow one
5488 extra level of depth.
5489 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5490 print either the top-level value, or the children if the max-depth
5491 is exceeded.
5492 (print_children): When printing the key of a map, allow one extra
5493 level of depth.
5494 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5495 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5496 (user_print_options): Initialise max_depth field.
5497 (val_print_scalar_or_string_type_p): New function.
5498 (val_print): Check to see if the max depth has been reached.
5499 (val_print_check_max_depth): Define new function.
5500 (show_print_max_depth): New function.
5501 (_initialize_valprint): Add 'print max-depth' option.
5502 * valprint.h (struct value_print_options) <max_depth>: New field.
5503 (val_print_check_max_depth): Declare new function.
5504 * NEWS: Document new feature.
5505
4be290b2
AB
55062019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5507
5508 * ada-lang.c (ada_language_defn): Initialise new field.
5509 * c-lang.c (c_is_string_type_p): New function.
5510 (c_language_defn): Initialise new field.
5511 (cplus_language_defn): Initialise new field.
5512 (asm_language_defn): Initialise new field.
5513 (minimal_language_defn): Initialise new field.
5514 * c-lang.h (c_is_string_type_p): Declare new function.
5515 * d-lang.c (d_language_defn): Initialise new field.
5516 * f-lang.c (f_is_string_type_p): New function.
5517 (f_language_defn): Initialise new field.
5518 * go-lang.c (go_is_string_type_p): New function.
5519 (go_language_defn): Initialise new field.
5520 * language.c (default_is_string_type_p): New function.
5521 (unknown_language_defn): Initialise new field.
5522 (auto_language_defn): Initialise new field.
5523 * language.h (struct language_defn) <la_is_string_type_p>: New
5524 member variable.
5525 (default_is_string_type_p): Declare new function.
5526 * m2-lang.c (m2_language_defn): Initialise new field.
5527 * objc-lang.c (objc_language_defn): Initialise new field.
5528 * opencl-lang.c (opencl_language_defn): Initialise new field.
5529 * p-lang.c (pascal_is_string_type_p): New function.
5530 (pascal_language_defn): Initialise new field.
5531 * rust-lang.c (rust_is_string_type_p): New function.
5532 (rust_language_defn): Initialise new field.
5533
721b08c6
AB
55342019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5535
5536 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5537 New field.
5538 * ada-lang.c (ada_language_defn): Initialise new field.
5539 * c-lang.c (c_language_defn): Likewise.
5540 (cplus_language_defn): Likewise.
5541 (asm_language_defn): Likewise.
5542 (minimal_language_defn): Likewise.
5543 * d-lang.c (d_language_defn): Likewise.
5544 * f-lang.c (f_language_defn): Likewise.
5545 * go-lang.c (go_language_defn): Likewise.
5546 * language.c (unknown_language_defn): Likewise.
5547 (auto_language_defn): Likewise.
5548 * m2-lang.c (m2_language_defn): Likewise.
5549 * objc-lang.c (objc_language_defn): Likewise.
5550 * opencl-lang.c (opencl_language_defn): Likewise.
5551 * p-lang.c (pascal_language_defn): Likewise.
5552 * rust-lang.c (rust_language_defn): Likewise.
5553
fc913e53
AB
55542019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5555
5556 * ada-lang.c (ada_is_character_type): Change return type to bool.
5557 (ada_is_string_type): Likewise.
5558 * ada-lang.h (ada_is_character_type): Update declaration
5559 (ada_is_string_type): Likewise.
5560
fa731fa0
PW
55612019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5562
5563 Support style in 'frame|thread apply'
5564
5565 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5566 * record.c (record_start, record_stop): Update callers of
5567 execute_command_to_string with false.
5568 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5569 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5570 methods.
5571 (class string_file): New constructor with term_out parameter.
5572 Override methods term_out and can_emit_style_escape. New member
5573 term_out.
5574 (class stdio_file): Override can_emit_style_escape.
5575 (class tee_file): Override term_out and can_emit_style_escape.
5576 * utils.h (can_emit_style_escape): Remove.
5577 * utils.c (can_emit_style_escape): Likewise.
5578 Update all callers of can_emit_style_escape (SOMESTREAM) to
5579 SOMESTREAM->can_emit_style_escape.
5580 * source-cache.c (source_cache::get_source_lines): Likewise.
5581 * stack.c (frame_apply_command_count): Call execute_command_to_string
5582 passing the term_out characteristic of the current gdb_stdout.
5583 * thread.c (thr_try_catch_cmd): Likewise.
5584 * top.c (execute_command_to_string): pass term_out parameter
5585 to construct the string_file for the command output.
5586 * ui-file.c (term_cli_styling): New function (most code moved
5587 from utils.c can_emit_style_escape).
5588 (string_file::string_file, string_file::can_emit_style_escape,
5589 stdio_file::can_emit_style_escape, tee_file::term_out,
5590 tee_file::can_emit_style_escape): New functions.
5591
136afab8
PW
55922019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5593
5594 * NEWS: Mention the new set|show may-call-functions.
5595 * infcall.c (may_call_functions_p): New variable.
5596 (show_may_call_functions_p): New function.
5597 (call_function_by_hand_dummy): Throws an error if not
5598 may-call-functions.
5599 (_initialize_infcall): Call add_setshow_boolean_cmd for
5600 may-call-functions.
5601
725cbb63
KS
56022019-04-25 Keith Seitz <keiths@redhat.com>
5603
5604 PR c++/24367
5605 * cp-support.c (inspect_type): Don't attempt substitutions
5606 of symbol with the same name.
5607
3d1cbb78
TT
56082019-04-25 Tom Tromey <tromey@adacore.com>
5609
5610 PR gdb/24475:
5611 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5612 static.
5613
94aeb44b
TT
56142019-04-25 Tom Tromey <tromey@adacore.com>
5615
5616 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5617 rvalue reference.
5618 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5619 (gdb_xml_parser::parse): Use std::move.
5620 * python/python-internal.h (gdbpy_convert_exception): Take a const
5621 reference.
5622 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5623 std::move.
5624 * python/py-utils.c (gdbpy_convert_exception): Take a const
5625 reference.
5626 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5627 Use std::move.
5628 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5629 Use std::move.
5630 * mi/mi-main.c (mi_print_exception): Take a const reference.
5631 * main.c (handle_command_errors): Take a const reference.
5632 * linespec.c (parse_linespec): Use std::move.
5633 * infcall.c (run_inferior_call): Use std::move.
5634 (call_function_by_hand_dummy): Use std::move.
5635 * exec.c (try_open_exec_file): Use std::move.
5636 * exceptions.h (exception_print, exception_fprintf)
5637 (exception_print_same): Update.
5638 * exceptions.c (print_exception, exception_print)
5639 (exception_fprintf, exception_print_same): Change parameters to
5640 const reference.
5641 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5642 * common/new-op.c: Use std::move.
5643 * common/common-exceptions.h (struct gdb_exception): Add move
5644 constructor.
5645 (struct gdb_exception_error, struct gdb_exception_quit, struct
5646 gdb_quit_bad_alloc): Change constructor to move constructor.
5647 (throw_exception): Change parameter to rvalue reference.
5648 * common/common-exceptions.c (throw_exception): Take rvalue
5649 reference.
5650 * cli/cli-interp.c (safe_execute_command): Use std::move.
5651 * breakpoint.c (insert_bp_location, location_to_sals): Use
5652 std::move.
5653
680d7fd5
TT
56542019-04-25 Tom Tromey <tromey@adacore.com>
5655
5656 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5657 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5658 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5659 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5660 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5661 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5662 guile/scm-value.c: Use unpack.
5663 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5664 gdbscm_gdb_exception.
5665 (gdbscm_throw_gdb_exception): Likewise.
5666 (struct gdbscm_gdb_exception): New.
5667 (unpack): New function.
5668 (gdbscm_wrap): Use unpack.
5669
c6fdd8b2
TT
56702019-04-25 Tom Tromey <tromey@adacore.com>
5671
5672 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5673 (gdb_rl_callback_handler): Use std::move.
5674 * common/common-exceptions.h (struct gdb_exception): Add move
5675 assignment operator.
5676 (throw_exception_sjlj): Change "exception" to const reference.
5677 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5678 (throw_exception_sjlj): Change "exception" to const reference.
5679
cc06b668
TT
56802019-04-25 Tom Tromey <tromey@adacore.com>
5681
5682 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5683 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5684 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5685 Update.
5686 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5687 Update.
5688 * mi/mi-interp.c (mi_interp::exec): Update.
5689 * linespec.c (parse_linespec): Update.
5690 * infcall.c (run_inferior_call): Update.
5691 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5692 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5693 (gdbscm_lookup_global_symbol): Update.
5694 * guile/scm-param.c (gdbscm_parameter_value): Update.
5695 * guile/scm-frame.c (gdbscm_frame_read_register)
5696 (gdbscm_frame_read_var): Update.
5697 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5698 * exec.c (try_open_exec_file): Update.
5699 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5700 (gdb_rl_callback_handler): Update.
5701 * common/common-exceptions.h (exception_none): Don't declare.
5702 * common/common-exceptions.c (exception_none): Don't define.
5703 (struct catcher) <exception>: Update.
5704 * cli/cli-interp.c (safe_execute_command): Update.
5705 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5706
cf532bd1
AT
57072019-04-25 Ali Tamur <tamur@google.com>
5708
5709 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5710 (read_attribute_value): Likewise.
5711 (dwarf2_read_addr_index): Update comment.
5712 (read_str_index): Add DW_FORM_strx.
5713 (dwarf2_string_attr): Likewise.
5714 (dwarf2_const_value_attr): Likewise.
5715 (dump_die_shallow): Likewise.
5716 (dwarf2_fetch_constant_bytes): Likewise.
5717 (skip_form_bytes): Likewise.
5718 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5719
82433e3e
SDJ
57202019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5721
5722 PR corefiles/11608
5723 PR corefiles/18187
5724 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5725 OFFSET. Verify if current mapping contains an ELF header.
5726 (linux_find_memory_regions_full): Adjust call to
5727 dump_mapping_p.
5728
723adb65
SL
57292019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5730 Kang Li <kanglictf@gmail.com>
5731
5732 PR gdb/21600
5733
5734 * dwarf2-frame.c (read_initial_length): Be consistent about using
5735 unsigned representation of length.
5736 (decode_frame_entry_1): Likewise. Check for wraparound of
5737 end pointer as well as buffer overflow.
5738
596179f7
SDJ
57392019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5740
5741 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5742 "vq".
5743
a59240a4
TT
57442019-04-24 Tom Tromey <tromey@adacore.com>
5745
5746 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5747
f872fdbb
AB
57482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5749
5750 * s12z-tdep.c (s12z_unwind_pc): Delete.
5751 (s12z_unwind_sp): Delete.
5752 (s12z_gdbarch_init): Don't register deleted functions with
5753 gdbarch.
5754
b614e6f3
AB
57552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5756
5757 * rl78-tdep.c (rl78_unwind_sp): Delete.
5758 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5759
14faed38
AB
57602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5761
5762 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5763 (xstormy16_unwind_pc): Delete.
5764 (xstormy16_dummy_id): Delete.
5765 (xstormy16_gdbarch_init): Don't register deleted functions with
5766 gdbarch.
5767
541aad8a
AB
57682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5769
5770 * vax-tdep.c (vax_unwind_pc): Delete.
5771 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5772
29222070
AB
57732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5774
5775 * v850-tdep.c (v850_unwind_sp): Delete.
5776 (v850_unwind_pc): Delete.
5777 (v850_dummy_id): Delete.
5778 (v850_gdbarch_init): Don't register deleted functions with
5779 gdbarch.
5780
0f534d76
AB
57812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5782
5783 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5784 (tilegx_unwind_pc): Delete.
5785 (tilegx_unwind_dummy_id): Delete.
5786 (tilegx_gdbarch_init): Don't register deleted functions with
5787 gdbarch.
5788
1ba7b7f9
AB
57892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5790
5791 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5792 (tic6x_dummy_id): Delete.
5793 (tic6x_gdbarch_init): Don't register deleted functions with
5794 gdbarch.
5795
d31f262c
AB
57962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5797
5798 * sparc-tdep.c (sparc_unwind_pc): Delete.
5799 (sparc32_gdbarch_init): Don't register deleted function with
5800 gdbarch.
5801
6d14d64d
AB
58022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5803
5804 * sh-tdep.c (sh_unwind_sp): Delete.
5805 (sh_unwind_pc): Delete.
5806 (sh_dummy_id): Delete.
5807 (sh_gdbarch_init): Don't register deleted functions with
5808 gdbarch.
5809
a40dde9d
AB
58102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5811
5812 * score-tdep.c (score_unwind_sp): Delete.
5813 (score_unwind_pc): Delete.
5814 (score_dummy_id): Delete.
5815 (score_gdbarch_init): Don't register deleted functions with
5816 gdbarch.
5817
47c47d69
AB
58182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5819
5820 * rx-tdep.c (rx_unwind_pc): Delete.
5821 (rx_unwind_sp): Delete.
5822 (rx_dummy_id): Delete.
5823 (rx_gdbarch_init): Don't register deleted functions with
5824 gdbarch. Update comment.
5825
833a4480
AB
58262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5827
5828 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5829 (rs6000_dummy_id): Delete.
5830 (rs6000_gdbarch_init): Don't register deleted functions with
5831 gdbarch.
5832
3f2cef49
AB
58332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5834
5835 * or1k-tdep.c (or1k_dummy_id): Delete.
5836 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5837
96acf884
AB
58382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5839
5840 * nios2-tdep.c (nios2_dummy_id): Delete.
5841 (nios2_unwind_sp): Delete.
5842 (nios2_gdbarch_init): Don't register deleted functions with
5843 gdbarch.
5844
ca0ab0aa
AB
58452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5846
5847 * nds32-tdep.c (nds32_dummy_id): Delete.
5848 (nds32_unwind_pc): Delete.
5849 (nds32_unwind_sp): Delete.
5850 (nds32_gdbarch_init): Don't register deleted functions with
5851 gdbarch.
5852
c8259044
AB
58532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5854
5855 * msp430-tdep.c (msp430_unwind_pc): Delete.
5856 (msp430_unwind_sp): Delete.
5857 (msp430_dummy_id): Delete.
5858 (msp430_gdbarch_init): Don't register deleted functions with
5859 gdbarch.
5860
27f113c8
AB
58612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5862
5863 * moxie-tdep.c (moxie_unwind_sp): Delete.
5864 (moxie_unwind_pc): Delete.
5865 (moxie_dummy_id): Delete.
5866 (moxie_gdbarch_init): Don't register deleted functions with
5867 gdbarch.
5868
aee6c3cd
AB
58692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5870
5871 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5872 (mn10300_unwind_pc): Delete.
5873 (mn10300_unwind_sp): Delete.
5874 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5875 mn10300_unwind_sp.
5876 (mn10300_frame_unwind_init): Don't register deleted functions with
5877 gdbarch.
5878
8e2b5aea
AB
58792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5880
5881 * mep-tdep.c (mep_unwind_pc): Delete.
5882 (mep_unwind_sp): Delete.
5883 (mep_dummy_id): Delete.
5884 (mep_gdbarch_init): Don't register deleted functions with
5885 gdbarch.
5886
43cf3ede
AB
58872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5888
5889 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5890 (m68hc11_unwind_sp): Delete.
5891 (m68hc11_gdbarch_init): Don't register deleted functions with
5892 gdbarch.
5893
5e79b7bb
AB
58942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5895
5896 * m32r-tdep.c (m32r_unwind_sp): Delete.
5897 (m32r_unwind_pc): Delete.
5898 (m32r_dummy_id): Delete.
5899 (m32r_gdbarch_init): Don't register deleted functions with
5900 gdbarch.
5901
89b268d8
AB
59022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5903
5904 * m32c-tdep.c (m32c_unwind_pc): Delete.
5905 (m32c_unwind_sp): Delete.
5906 (m32c_dummy_id): Delete.
5907 (m32c_gdbarch_init): Don't register deleted functions with
5908 gdbarch.
5909
946c28d2
AB
59102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5911
5912 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5913 (lm32_unwind_pc): Delete.
5914 (lm32_dummy_id): Delete.
5915 (lm32_gdbarch_init): Don't register deleted functions with
5916 gdbarch.
5917
bf12844a
AB
59182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5919
5920 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5921 (iq2000_unwind_pc): Delete.
5922 (iq2000_dummy_id): Delete.
5923 (iq2000_gdbarch_init): Don't register deleted functions with
5924 gdbarch.
5925
ecbc06d2
AB
59262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 * nds32-tdep.c (nds32_type_align): Delete.
5929 (nds32_push_dummy_call): Use type_align instead.
5930
030197b4
AB
59312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5932
5933 * arm-tdep.c (arm_type_align): Only handle vector override case.
5934 (arm_push_dummy_call): Use type_align.
5935 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5936
b907456c
AB
59372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5938
5939 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5940 case.
5941 (pass_on_stack): Use type_align.
5942 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5943 function.
5944
9e97ba43
TT
59452019-04-23 Tom Tromey <tromey@adacore.com>
5946
5947 * dwarf2read.c (line_header::file_name_at): Remove unused
5948 overload.
5949
6892f601
TV
59502019-04-23 Tom de Vries <tdevries@suse.de>
5951
5952 PR gdb/24438
5953 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5954 invocation.
5955
336d760d
AT
5956
59572019-03-27 Ali Tamur <tamur@google.com>
5958
5959 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5960 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5961 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5962 (dwarf_expr_context::get_addr_index): Likewise
5963 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5964 (symbol_needs_eval_context::get_addr_index): Likewise
5965 (disassemble_dwarf_expression): Add DW_OP_addrx
5966 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5967 (read_cutu_die_from_dwo): Update comment
5968 (skip_one_die): Add DW_FORM_addrx
5969 (read_attribute_value): Likewise
5970 (var_decode_location): Add DW_OP_addrx
5971 (dwarf2_const_value_attr): Add DW_FORM_addrx
5972 (dump_die_shallow): Likewise
5973 (dwarf2_fetch_constant_bytes): Likewise
5974 (decode_locdesc): Add DW_OP_addrx
5975 (skip_form_bytes): Add DW_FORM_addrx
5976
ad9d13f8
AT
59772019-04-22 Ali Tamur <tamur@google.com>
5978
5979 * MAINTAINERS (Write After Approval): Add self.
5980
d70cc3ba
SM
59812019-04-22 Simon Marchi <simon.marchi@efficios.com>
5982
5983 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5984 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5985 (open_symbol_file_object): Likewise.
5986 (svr4_default_sos): Add info parameter.
5987 (svr4_read_so_list): Likewise.
5988 (svr4_current_sos_direct): Adjust functions calls to pass down
5989 info.
5990 (svr4_current_sos_1): Add info parameter.
5991 (svr4_current_sos): Call get_svr4_info, pass info down to
5992 svr4_current_sos_1.
5993 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5994 get_svr4_info.
5995 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5996 get_svr4_info.
5997 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5998 to get_svr4_info.
5999 (probes_table_remove_objfile_probes): Likewise.
6000 (register_solib_event_probe): Add info parameter.
6001 (solist_update_incremental): Pass info parameter down to
6002 svr4_read_so_list.
6003 (disable_probes_interface): Add info parameter.
6004 (svr4_handle_solib_event): Pass current_program_space to
6005 get_svr4_info. Adjust disable_probes_interface cleanup.
6006 (svr4_create_probe_breakpoints): Add info parameter, pass it
6007 down to register_solib_event_probe.
6008 (svr4_create_solib_event_breakpoints): Add info parameter,
6009 pass it down to svr4_create_probe_breakpoints.
6010 (enable_break): Pass info down to
6011 svr4_create_solib_event_breakpoints.
6012 (svr4_solib_create_inferior_hook): Pass current_program_space to
6013 get_svr4_info.
6014 (svr4_clear_solib): Likewise.
6015
7905fc35
PA
60162019-04-22 Pedro Alves <palves@redhat.com>
6017
6018 * solib-svr4.c (svr4_free_objfile_observer): New.
6019 (probe_and_action::objfile): New field.
6020 (probes_table_htab_remove_objfile_probes)
6021 (probes_table_remove_objfile_probes): New functions.
6022 (register_solib_event_probe): Add 'objfile' parameter. Store it
6023 in the new probe_and_action. Don't store the probe in 'lookup'.
6024 (svr4_create_probe_breakpoints): Pass objfile to
6025 register_solib_event_probe.
6026 (_initialize_svr4_solib): Register a free_objfile observer.
6027
fb881986
TT
60282019-04-19 Tom Tromey <tom@tromey.com>
6029
6030 * common/queue.h: Remove.
6031
8732db6c
TT
60322019-04-19 Tom Tromey <tom@tromey.com>
6033
6034 * event-loop.c: Don't include "common/queue.h".
6035
97dfbadd
TT
60362019-04-19 Tom Tromey <tom@tromey.com>
6037
6038 * remote.c (remote_target): Use delete.
6039 * remote-notif.h: Include <list>, not "common/queue.h".
6040 (notif_client_p): Remove typedef.
6041 (remote_notif_state): Add constructor, destructor, initializer.
6042 <notif_queue>: Now a std::list.
6043 (remote_notif_state_xfree): Don't declare.
6044 * remote-notif.c (remote_notif_process, handle_notification)
6045 (remote_notif_state_allocate): Update.
6046 (~remote_notif_state): Rename from remote_notif_state_xfree.
6047
cf250e36
TT
60482019-04-19 Tom Tromey <tom@tromey.com>
6049
6050 * symfile.c (reread_symbols): Update.
6051 * objfiles.c (objfile_register_static_link)
6052 (objfile_lookup_static_link): Update
6053 (~objfile) Don't delete static_links.
6054 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6055
61f4b350
TT
60562019-04-19 Tom Tromey <tom@tromey.com>
6057
6058 * type-stack.h (struct type_stack) <insert>: Constify string.
6059 * type-stack.c (type_stack::insert): Constify string.
6060 * gdbtypes.h (lookup_template_type): Update.
6061 (address_space_name_to_int): Update.
6062 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6063 const.
6064 (lookup_template_type): Make name const.
6065 * c-exp.y: Update rules.
6066 (lex_one_token, classify_name, classify_inner_name)
6067 (c_print_token): Update.
6068 * p-exp.y: Update rules.
6069 (yylex): Update.
6070 * f-exp.y: Update rules.
6071 (yylex): Update.
6072 * d-exp.y: Update rules.
6073 (lex_one_token, classify_name, classify_inner_name): Update.
6074 * parse.c (write_dollar_variable, copy_name): Return std::string.
6075 * parser-defs.h (copy_name): Change return type.
6076 * m2-exp.y: Update rules.
6077 (yylex): Update.
6078 * go-exp.y (lex_one_token): Update.
6079 Update rules.
6080 (classify_unsafe_function, classify_packaged_name)
6081 (classify_name, yylex): Update.
6082
189b8c2e
ST
60832019-04-19 Sergei Trofimovich <siarheit@google.com>
6084
6085 * configure.ac: add --enable-source-highlight switch.
6086 * configure: Regenerate.
6087 * top.c (print_gdb_version): plumb --enable-source-highlight
6088 status to "show configuration".
6089
8ecb59f8
TT
60902019-04-19 Tom Tromey <tromey@adacore.com>
6091
6092 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6093 Check ADA_TYPE_P.
6094 (empty_record, ada_template_to_fixed_record_type_1)
6095 (template_to_static_fixed_type)
6096 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6097 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6098 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6099 macros.
6100
62160ec9
TT
61012019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6102
6103 PR symtab/24423:
6104 * source.c (print_source_lines_base): Advance "iter" when a
6105 control character is seen.
6106
f2ae8bc8
PW
61072019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6108
6109 * inferior.h (struct infcall_suspend_state_deleter):
6110 Catch exception in destructor to avoid crash.
6111
d563b953
PW
61122019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6113
6114 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6115 close to the add_com "shell".
6116
dc34c897
TT
61172019-04-18 Tom Tromey <tromey@adacore.com>
6118
6119 * process-stratum-target.h (class process_stratum_target)
6120 <stratum>: Add "final".
6121
a12e5744
TT
61222019-04-17 Tom Tromey <tromey@adacore.com>
6123
6124 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6125 against nullptr before use.
6126
a7e559cc
AH
61272019-04-17 Alan Hayward <alan.hayward@arm.com>
6128
6129 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6130
c01660c6
AB
61312019-04-17 Jim Wilson <jimw@sifive.com>
6132 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6135 code read might fail, assume 4-byte breakpoint in that case.
6136
4aa866af
LS
61372019-04-15 Leszek Swirski <leszeks@google.com>
6138
6139 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6140 rather than a hand-rolled POD check when checking for forced MEMORY
6141 classification.
6142
48574d91
AH
61432019-04-15 Alan Hayward <alan.hayward@arm.com>
6144
6145 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6146 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6147 function.
6148 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6149 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6150 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6151 declaration.
6152
4da037ef
AH
61532019-04-15 Alan Hayward <alan.hayward@arm.com>
6154
6155 * aarch64-linux-nat.c
6156 (aarch64_linux_nat_target::thread_architecture): Add override.
6157 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6158 each VQ.
6159
ccb8d7e8
AH
61602019-04-15 Alan Hayward <alan.hayward@arm.com>
6161
6162 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6163
35add35e
AB
61642019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6165
6166 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6167 target types of size 96-bits, add some additional comments, and
6168 check that the builtin type we found was the correct size.
6169
51196bbc
EZ
61702019-04-12 Eli Zaretskii <eliz@gnu.org>
6171
6172 * utils.c (prompt_for_continue): Don't restore the styling at the
6173 end, as applied_style has the wrong value. This fixes styling in
6174 long lists of file names that are interrupted by the "Continue?"
6175 prompt.
6176
62253a61
AB
61772019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6178
6179 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6180 * c-lang.c (c_language_defn): Likewise.
6181 (cplus_language_defn): Likewise.
6182 (asm_language_defn): Likewise.
6183 (minimal_language_defn): Likewise.
6184 * d-lang.c (d_language_defn): Likewise.
6185 * f-lang.c (f_language_defn): Likewise.
6186 * go-lang.c (go_language_defn): Likewise.
6187 * language.c (unknown_language_defn): Likewise.
6188 (auto_language_defn): Likewise.
6189 * language.h (struct language_defn): Remove la_magic field.
6190 (LANG_MAGIC): Delete.
6191 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6192 * objc-lang.c (objc_language_defn): Likewise.
6193 * opencl-lang.c (opencl_language_defn): Likewise.
6194 * p-lang.c (pascal_language_defn): Likewise.
6195 * rust-lang.c (rust_language_defn): Likewise.
6196
a9158a86
AB
61972019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6198
6199 * riscv-tdep.c (riscv_type_align): New function.
6200 (riscv_type_alignment): Delete.
6201 (riscv_arg_location): Use 'type_align'.
6202 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6203
41077b66
AB
62042019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6205
6206 * gdbtypes.c (type_align): A struct with no non-static fields also
6207 has alignment of 1.
6208
9f0272f8
AB
62092019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6210
6211 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6212 component to 0.
6213 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6214 member.
6215 (riscv_struct_info::analyse): New implementation using new
6216 analyse_inner member function.
6217 (riscv_struct_info::field_offset): New member function.
6218 (riscv_struct_info::m_offsets): New member variable.
6219 (riscv_struct_info::analyse_inner): New private member function,
6220 takes the old implementation of riscv_struct_info::analyse but
6221 extended to track field offsets.
6222 (riscv_call_arg_struct): Update the struct folding special cases
6223 to handle cases where empty C++ structs, which are non-zero
6224 length, are found.
6225 (riscv_arg_location): Initialise the length of each location, a
6226 non-zero length now indicates the location is in use.
6227 (riscv_push_dummy_call): Allow for the first location having a
6228 non-zero offset when setting up arguments.
6229 (riscv_return_value): Likewise, but for return values.
6230
02cf60c7
TT
62312019-04-11 Tom Tromey <tromey@adacore.com>
6232
6233 * utils.c (internal_vproblem): Make "msg" const.
6234
68811f8f
AH
62352019-04-11 Alan Hayward <alan.hayward@arm.com>
6236
6237 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6238 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6239 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6240 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6241
3f52fdbc
KB
62422019-04-10 Kevin Buettner <kevinb@redhat.com>
6243
6244 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6245 function.
6246 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6247 of amd64_collect_native_gregset.
6248 (amd64_linux_nat_target::store_registers): Likewise.
6249
e9ad22ee
TT
62502019-04-10 Tom Tromey <tom@tromey.com>
6251
6252 * symtab.c (lookup_global_symbol_from_objfile)
6253 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6254 * objfiles.h (class separate_debug_iterator): New.
6255 (class separate_debug_range): New.
6256 (struct objfile) <separate_debug_objfiles>: New method.
6257 (objfile_separate_debug_iterate): Don't declare.
6258 * objfiles.c (separate_debug_iterator::operator++): Rename from
6259 objfile_separate_debug_iterate.
6260 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6261 iterator.
6262 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6263 iterator.
6264
ee371134
TT
62652019-04-10 Tom Tromey <tom@tromey.com>
6266
6267 * symfile.c (reread_symbols): Remove old comment.
6268 * objfiles.c (free_all_objfiles): Fix a typo.
6269
bf227d61
TT
62702019-04-10 Tom Tromey <tom@tromey.com>
6271
6272 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6273 * minsyms.c (lookup_minimal_symbol): Use foreach.
6274 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6275 (lookup_minimal_symbol_solib_trampoline): Likewise.
6276 * symfile.c (reread_symbols): Use foreach.
6277
8dc433a0
TT
62782019-04-09 Ivan Begert <ivanbegert@gmail.com>
6279 Tom Tromey <tromey@adacore.com>
6280
6281 PR rust/24414:
6282 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6283 (rust_lex_int_test): Change "value" to be LONGEST.
6284 (rust_lex_tests): Add test for long integer literal.
6285
9ab8741a
TT
62862019-04-09 Tom Tromey <tromey@adacore.com>
6287
6288 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6289 to bool.
6290 (extended_remote_target::attach): Update.
6291 (remote_target::remote_notice_new_inferior): Update.
6292 (remote_target::add_current_inferior_and_thread): Update.
6293 * inferior.c (exit_inferior_1): Use "false".
6294 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6295
e242fd12
SM
62962019-04-09 Simon Marchi <simon.marchi@efficios.com>
6297
9ca1957f 6298 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
6299 the "start" command.
6300
2b0c8b01
KB
63012019-04-08 Kevin Buettner <kevinb@redhat.com>
6302
6303 * python/py-inferior.c (infpy_thread_from_thread_handle):
6304 Adjust comments to reflect renaming of thread_from_thread_handle
6305 to thread_from_handle. Adjust keywords. Fix type error message.
6306 (inferior_object_methods): Add thread_from_handle. Retain
6307 thread_from_thread_handle, but mark it as deprecated.
6308
50a82723
KB
63092019-04-08 Kevin Buettner <kevinb@redhat.com>
6310
6311 * gdbthread.h (find_thread_by_handle): Revise declaration.
6312 * thread.c (find_thread_by_handle): Likewise. Adjust
6313 implementation too.
6314 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6315 support for buffer objects as handles.
6316
cf63b016
KB
63172019-04-08 Kevin Buettner <kevinb@redhat.com>
6318
6319 * python/py-infthread.c (thpy_thread_handle): New function.
6320 (thread_object_methods): Register thpy_thread_handle.
6321
3d6c6204
KB
63222019-04-08 Kevin Buettner <kevinb@redhat.com>
6323
6324 * gdbthread.h (thread_to_thread_handle): Declare.
6325 * thread.c (gdbtypes.h): Include.
6326 (thread_to_thread_handle): New function.
6327
6328 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6329 (target_thread_info_to_thread_handle): Declare.
6330 * target.c (target_thread_info_to_thread_handle): New function.
6331 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6332 * target-delegates.c: Regenerate.
6333
6334 * linux-thread-db.c (class thread_db_target): Add method
6335 thread_info_to_thread_handle.
6336 (thread_db_target::thread_info_to_thread_handle): Define.
6337 * remote.c (class remote_target): Add new method
6338 thread_info_to_thread_handle.
6339 (remote_target::thread_info_to_thread_handle): Define.
6340
56be6ea8
PA
63412019-04-08 Pedro Alves <palves@redhat.com>
6342
6343 * common/common-exceptions.c (throw_exception): Don't create
6344 named object to throw; throw directly.
6345 (throw_it): Likewise. Don't initialize gdb_exception::message
6346 here, with new; pass FMT and AP to the ctor instead.
6347 * common/common-exceptions.h: Include <string>.
6348 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6349 const char *, va_list)): New ctor. Use std::make_shared.
6350 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6351 errors)): Delete.
6352 (gdb_exception_error::gdb_exception_error(enum errors, const char
6353 *, va_list)): New.
6354 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6355 Add assertion.
6356 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6357 errors)): Delete.
6358 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6359 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6360 Add assertion.
6361
eedc3f4f
TT
63622019-04-08 Tom Tromey <tom@tromey.com>
6363
6364 * valops.c (value_rtti_indirect_type): Replace throw_exception
6365 with throw.
6366 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6367 with throw.
6368 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6369 throw.
6370 * target.c (target_translate_tls_address): Replace throw_exception
6371 with throw.
6372 * stack.c (frame_apply_command_count): Replace throw_exception
6373 with throw.
6374 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6375 throw.
6376 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6377 with throw.
6378 * rs6000-tdep.c (rs6000_frame_cache)
6379 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6380 * remote.c: Replace throw_exception with throw.
6381 * record-full.c (record_full_message, record_full_wait_1)
6382 (record_full_restore): Replace throw_exception with throw.
6383 * record-btrace.c:
6384 (get_thread_current_frame_id, record_btrace_start_replaying)
6385 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6386 (cmd_record_btrace_start): Replace throw_exception with throw.
6387 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6388 throw.
6389 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6390 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6391 * linespec.c:
6392 (find_linespec_symbols): Replace throw_exception with throw.
6393 * infrun.c (displaced_step_prepare, resume): Replace
6394 throw_exception with throw.
6395 * infcmd.c (post_create_inferior): Replace throw_exception with
6396 throw.
6397 * inf-loop.c (inferior_event_handler): Replace throw_exception
6398 with throw.
6399 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6400 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6401 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6402 (get_prev_frame_always, get_frame_pc_if_available)
6403 (get_frame_address_in_block_if_available, get_frame_language):
6404 Replace throw_exception with throw.
6405 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6406 throw_exception with throw.
6407 * eval.c (fetch_subexp_value, evaluate_var_value)
6408 (evaluate_funcall, evaluate_subexp_standard): Replace
6409 throw_exception with throw.
6410 * dwarf2loc.c (call_site_find_chain)
6411 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6412 Replace throw_exception with throw.
6413 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6414 with throw.
6415 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6416 throw.
6417 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6418 * completer.c (complete_line_internal): Replace throw_exception
6419 with throw.
6420 * compile/compile-object-run.c (compile_object_run): Replace
6421 throw_exception with throw.
6422 * cli/cli-script.c (process_next_line): Replace throw_exception
6423 with throw.
6424 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6425 (btrace_enable, btrace_maint_update_pt_packets): Replace
6426 throw_exception with throw.
6427 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6428 throw_exception with throw.
6429 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6430 throw_exception with throw.
6431 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6432 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6433 * aarch64-tdep.c (aarch64_make_prologue_cache)
6434 (aarch64_make_stub_cache): Replace throw_exception with throw.
6435
26003a20
TT
64362019-04-08 Tom Tromey <tom@tromey.com>
6437
6438 * common/common-exceptions.c (throw_exception): Rename from
6439 throw_exception_cxx. Remove old copy. Make argument const.
6440 (throw_it): Create and throw exception objects directly.
6441 * common/common-exceptions.h (throw_exception): Make argument
6442 const.
6443 (struct gdb_exception_error): Add constructor.
6444 (struct gdb_exception_quit): Add constructor.
6445
d272eb37
TT
64462019-04-08 Tom Tromey <tom@tromey.com>
6447
6448 * common/common-exceptions.h (exception_rethrow): Don't declare.
6449 (TRY_SJLJ): Update comment.
6450 (TRY, CATCH, END_CATCH): Remove.
6451 * common/common-exceptions.c (exception_rethrow): Remove.
6452
230d2906
TT
64532019-04-08 Tom Tromey <tom@tromey.com>
6454
6455 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6456 Remove.
6457 (gdb_exception_error): Rename from
6458 gdb_exception_RETURN_MASK_ERROR.
6459 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6460 (gdb_quit_bad_alloc): Update.
6461 * aarch64-tdep.c: Update.
6462 * ada-lang.c: Update.
6463 * ada-typeprint.c: Update.
6464 * ada-valprint.c: Update.
6465 * amd64-tdep.c: Update.
6466 * arch-utils.c: Update.
6467 * break-catch-throw.c: Update.
6468 * breakpoint.c: Update.
6469 * btrace.c: Update.
6470 * c-varobj.c: Update.
6471 * cli/cli-cmds.c: Update.
6472 * cli/cli-interp.c: Update.
6473 * cli/cli-script.c: Update.
6474 * common/common-exceptions.c: Update.
6475 * common/new-op.c: Update.
6476 * common/selftest.c: Update.
6477 * compile/compile-c-symbols.c: Update.
6478 * compile/compile-cplus-symbols.c: Update.
6479 * compile/compile-object-load.c: Update.
6480 * compile/compile-object-run.c: Update.
6481 * completer.c: Update.
6482 * corelow.c: Update.
6483 * cp-abi.c: Update.
6484 * cp-support.c: Update.
6485 * cp-valprint.c: Update.
6486 * darwin-nat.c: Update.
6487 * disasm-selftests.c: Update.
6488 * dtrace-probe.c: Update.
6489 * dwarf-index-cache.c: Update.
6490 * dwarf-index-write.c: Update.
6491 * dwarf2-frame-tailcall.c: Update.
6492 * dwarf2-frame.c: Update.
6493 * dwarf2loc.c: Update.
6494 * dwarf2read.c: Update.
6495 * eval.c: Update.
6496 * event-loop.c: Update.
6497 * event-top.c: Update.
6498 * exec.c: Update.
6499 * f-valprint.c: Update.
6500 * fbsd-tdep.c: Update.
6501 * frame-unwind.c: Update.
6502 * frame.c: Update.
6503 * gdbtypes.c: Update.
6504 * gnu-v3-abi.c: Update.
6505 * guile/guile-internal.h: Update.
6506 * guile/scm-block.c: Update.
6507 * guile/scm-breakpoint.c: Update.
6508 * guile/scm-cmd.c: Update.
6509 * guile/scm-disasm.c: Update.
6510 * guile/scm-frame.c: Update.
6511 * guile/scm-lazy-string.c: Update.
6512 * guile/scm-math.c: Update.
6513 * guile/scm-param.c: Update.
6514 * guile/scm-ports.c: Update.
6515 * guile/scm-pretty-print.c: Update.
6516 * guile/scm-symbol.c: Update.
6517 * guile/scm-symtab.c: Update.
6518 * guile/scm-type.c: Update.
6519 * guile/scm-value.c: Update.
6520 * i386-linux-tdep.c: Update.
6521 * i386-tdep.c: Update.
6522 * inf-loop.c: Update.
6523 * infcall.c: Update.
6524 * infcmd.c: Update.
6525 * infrun.c: Update.
6526 * jit.c: Update.
6527 * language.c: Update.
6528 * linespec.c: Update.
6529 * linux-fork.c: Update.
6530 * linux-nat.c: Update.
6531 * linux-tdep.c: Update.
6532 * linux-thread-db.c: Update.
6533 * main.c: Update.
6534 * mi/mi-cmd-break.c: Update.
6535 * mi/mi-cmd-stack.c: Update.
6536 * mi/mi-interp.c: Update.
6537 * mi/mi-main.c: Update.
6538 * objc-lang.c: Update.
6539 * p-valprint.c: Update.
6540 * parse.c: Update.
6541 * ppc-linux-tdep.c: Update.
6542 * printcmd.c: Update.
6543 * python/py-arch.c: Update.
6544 * python/py-breakpoint.c: Update.
6545 * python/py-cmd.c: Update.
6546 * python/py-finishbreakpoint.c: Update.
6547 * python/py-frame.c: Update.
6548 * python/py-framefilter.c: Update.
6549 * python/py-gdb-readline.c: Update.
6550 * python/py-inferior.c: Update.
6551 * python/py-infthread.c: Update.
6552 * python/py-lazy-string.c: Update.
6553 * python/py-linetable.c: Update.
6554 * python/py-objfile.c: Update.
6555 * python/py-param.c: Update.
6556 * python/py-prettyprint.c: Update.
6557 * python/py-progspace.c: Update.
6558 * python/py-record-btrace.c: Update.
6559 * python/py-record.c: Update.
6560 * python/py-symbol.c: Update.
6561 * python/py-type.c: Update.
6562 * python/py-unwind.c: Update.
6563 * python/py-utils.c: Update.
6564 * python/py-value.c: Update.
6565 * python/python.c: Update.
6566 * record-btrace.c: Update.
6567 * record-full.c: Update.
6568 * remote-fileio.c: Update.
6569 * remote.c: Update.
6570 * riscv-tdep.c: Update.
6571 * rs6000-aix-tdep.c: Update.
6572 * rs6000-tdep.c: Update.
6573 * rust-exp.y: Update.
6574 * rust-lang.c: Update.
6575 * s390-tdep.c: Update.
6576 * selftest-arch.c: Update.
6577 * solib-dsbt.c: Update.
6578 * solib-frv.c: Update.
6579 * solib-spu.c: Update.
6580 * solib-svr4.c: Update.
6581 * solib.c: Update.
6582 * sparc64-linux-tdep.c: Update.
6583 * stack.c: Update.
6584 * symfile-mem.c: Update.
6585 * symmisc.c: Update.
6586 * target.c: Update.
6587 * thread.c: Update.
6588 * top.c: Update.
6589 * tracefile-tfile.c: Update.
6590 * tui/tui.c: Update.
6591 * typeprint.c: Update.
6592 * unittests/cli-utils-selftests.c: Update.
6593 * unittests/parse-connection-spec-selftests.c: Update.
6594 * valops.c: Update.
6595 * valprint.c: Update.
6596 * value.c: Update.
6597 * varobj.c: Update.
6598 * windows-nat.c: Update.
6599 * x86-linux-nat.c: Update.
6600 * xml-support.c: Update.
6601
a70b8144
TT
66022019-04-08 Tom Tromey <tom@tromey.com>
6603
6604 * xml-support.c: Use C++ exception handling.
6605 * x86-linux-nat.c: Use C++ exception handling.
6606 * windows-nat.c: Use C++ exception handling.
6607 * varobj.c: Use C++ exception handling.
6608 * value.c: Use C++ exception handling.
6609 * valprint.c: Use C++ exception handling.
6610 * valops.c: Use C++ exception handling.
6611 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6612 handling.
6613 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6614 * typeprint.c: Use C++ exception handling.
6615 * tui/tui.c: Use C++ exception handling.
6616 * tracefile-tfile.c: Use C++ exception handling.
6617 * top.c: Use C++ exception handling.
6618 * thread.c: Use C++ exception handling.
6619 * target.c: Use C++ exception handling.
6620 * symmisc.c: Use C++ exception handling.
6621 * symfile-mem.c: Use C++ exception handling.
6622 * stack.c: Use C++ exception handling.
6623 * sparc64-linux-tdep.c: Use C++ exception handling.
6624 * solib.c: Use C++ exception handling.
6625 * solib-svr4.c: Use C++ exception handling.
6626 * solib-spu.c: Use C++ exception handling.
6627 * solib-frv.c: Use C++ exception handling.
6628 * solib-dsbt.c: Use C++ exception handling.
6629 * selftest-arch.c: Use C++ exception handling.
6630 * s390-tdep.c: Use C++ exception handling.
6631 * rust-lang.c: Use C++ exception handling.
6632 * rust-exp.y: Use C++ exception handling.
6633 * rs6000-tdep.c: Use C++ exception handling.
6634 * rs6000-aix-tdep.c: Use C++ exception handling.
6635 * riscv-tdep.c: Use C++ exception handling.
6636 * remote.c: Use C++ exception handling.
6637 * remote-fileio.c: Use C++ exception handling.
6638 * record-full.c: Use C++ exception handling.
6639 * record-btrace.c: Use C++ exception handling.
6640 * python/python.c: Use C++ exception handling.
6641 * python/py-value.c: Use C++ exception handling.
6642 * python/py-utils.c: Use C++ exception handling.
6643 * python/py-unwind.c: Use C++ exception handling.
6644 * python/py-type.c: Use C++ exception handling.
6645 * python/py-symbol.c: Use C++ exception handling.
6646 * python/py-record.c: Use C++ exception handling.
6647 * python/py-record-btrace.c: Use C++ exception handling.
6648 * python/py-progspace.c: Use C++ exception handling.
6649 * python/py-prettyprint.c: Use C++ exception handling.
6650 * python/py-param.c: Use C++ exception handling.
6651 * python/py-objfile.c: Use C++ exception handling.
6652 * python/py-linetable.c: Use C++ exception handling.
6653 * python/py-lazy-string.c: Use C++ exception handling.
6654 * python/py-infthread.c: Use C++ exception handling.
6655 * python/py-inferior.c: Use C++ exception handling.
6656 * python/py-gdb-readline.c: Use C++ exception handling.
6657 * python/py-framefilter.c: Use C++ exception handling.
6658 * python/py-frame.c: Use C++ exception handling.
6659 * python/py-finishbreakpoint.c: Use C++ exception handling.
6660 * python/py-cmd.c: Use C++ exception handling.
6661 * python/py-breakpoint.c: Use C++ exception handling.
6662 * python/py-arch.c: Use C++ exception handling.
6663 * printcmd.c: Use C++ exception handling.
6664 * ppc-linux-tdep.c: Use C++ exception handling.
6665 * parse.c: Use C++ exception handling.
6666 * p-valprint.c: Use C++ exception handling.
6667 * objc-lang.c: Use C++ exception handling.
6668 * mi/mi-main.c: Use C++ exception handling.
6669 * mi/mi-interp.c: Use C++ exception handling.
6670 * mi/mi-cmd-stack.c: Use C++ exception handling.
6671 * mi/mi-cmd-break.c: Use C++ exception handling.
6672 * main.c: Use C++ exception handling.
6673 * linux-thread-db.c: Use C++ exception handling.
6674 * linux-tdep.c: Use C++ exception handling.
6675 * linux-nat.c: Use C++ exception handling.
6676 * linux-fork.c: Use C++ exception handling.
6677 * linespec.c: Use C++ exception handling.
6678 * language.c: Use C++ exception handling.
6679 * jit.c: Use C++ exception handling.
6680 * infrun.c: Use C++ exception handling.
6681 * infcmd.c: Use C++ exception handling.
6682 * infcall.c: Use C++ exception handling.
6683 * inf-loop.c: Use C++ exception handling.
6684 * i386-tdep.c: Use C++ exception handling.
6685 * i386-linux-tdep.c: Use C++ exception handling.
6686 * guile/scm-value.c: Use C++ exception handling.
6687 * guile/scm-type.c: Use C++ exception handling.
6688 * guile/scm-symtab.c: Use C++ exception handling.
6689 * guile/scm-symbol.c: Use C++ exception handling.
6690 * guile/scm-pretty-print.c: Use C++ exception handling.
6691 * guile/scm-ports.c: Use C++ exception handling.
6692 * guile/scm-param.c: Use C++ exception handling.
6693 * guile/scm-math.c: Use C++ exception handling.
6694 * guile/scm-lazy-string.c: Use C++ exception handling.
6695 * guile/scm-frame.c: Use C++ exception handling.
6696 * guile/scm-disasm.c: Use C++ exception handling.
6697 * guile/scm-cmd.c: Use C++ exception handling.
6698 * guile/scm-breakpoint.c: Use C++ exception handling.
6699 * guile/scm-block.c: Use C++ exception handling.
6700 * guile/guile-internal.h: Use C++ exception handling.
6701 * gnu-v3-abi.c: Use C++ exception handling.
6702 * gdbtypes.c: Use C++ exception handling.
6703 * frame.c: Use C++ exception handling.
6704 * frame-unwind.c: Use C++ exception handling.
6705 * fbsd-tdep.c: Use C++ exception handling.
6706 * f-valprint.c: Use C++ exception handling.
6707 * exec.c: Use C++ exception handling.
6708 * event-top.c: Use C++ exception handling.
6709 * event-loop.c: Use C++ exception handling.
6710 * eval.c: Use C++ exception handling.
6711 * dwarf2read.c: Use C++ exception handling.
6712 * dwarf2loc.c: Use C++ exception handling.
6713 * dwarf2-frame.c: Use C++ exception handling.
6714 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6715 * dwarf-index-write.c: Use C++ exception handling.
6716 * dwarf-index-cache.c: Use C++ exception handling.
6717 * dtrace-probe.c: Use C++ exception handling.
6718 * disasm-selftests.c: Use C++ exception handling.
6719 * darwin-nat.c: Use C++ exception handling.
6720 * cp-valprint.c: Use C++ exception handling.
6721 * cp-support.c: Use C++ exception handling.
6722 * cp-abi.c: Use C++ exception handling.
6723 * corelow.c: Use C++ exception handling.
6724 * completer.c: Use C++ exception handling.
6725 * compile/compile-object-run.c: Use C++ exception handling.
6726 * compile/compile-object-load.c: Use C++ exception handling.
6727 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6728 * compile/compile-c-symbols.c: Use C++ exception handling.
6729 * common/selftest.c: Use C++ exception handling.
6730 * common/new-op.c: Use C++ exception handling.
6731 * cli/cli-script.c: Use C++ exception handling.
6732 * cli/cli-interp.c: Use C++ exception handling.
6733 * cli/cli-cmds.c: Use C++ exception handling.
6734 * c-varobj.c: Use C++ exception handling.
6735 * btrace.c: Use C++ exception handling.
6736 * breakpoint.c: Use C++ exception handling.
6737 * break-catch-throw.c: Use C++ exception handling.
6738 * arch-utils.c: Use C++ exception handling.
6739 * amd64-tdep.c: Use C++ exception handling.
6740 * ada-valprint.c: Use C++ exception handling.
6741 * ada-typeprint.c: Use C++ exception handling.
6742 * ada-lang.c: Use C++ exception handling.
6743 * aarch64-tdep.c: Use C++ exception handling.
6744
3d6e9d23
TT
67452019-04-08 Tom Tromey <tom@tromey.com>
6746
6747 * xml-support.c (gdb_xml_parser::parse): Update.
6748 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6749 * value.c (show_convenience): Update.
6750 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6751 (test_parse_flags_qcs): Update.
6752 * thread.c (thr_try_catch_cmd): Update.
6753 * target.c (target_translate_tls_address): Update.
6754 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6755 (info_frame_command_core, frame_apply_command_count): Update.
6756 * rust-exp.y (rust_lex_exception_test): Update.
6757 * riscv-tdep.c (riscv_print_one_register_info): Update.
6758 * remote.c (remote_target::enable_btrace): Update.
6759 * record-btrace.c (record_btrace_enable_warn): Update.
6760 * python/py-utils.c (gdbpy_convert_exception): Update.
6761 * printcmd.c (do_one_display, print_variable_and_value): Update.
6762 * mi/mi-main.c (mi_print_exception): Update.
6763 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6764 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6765 * linux-nat.c (linux_nat_target::attach): Update.
6766 * linux-fork.c (class scoped_switch_fork_info): Update.
6767 * infrun.c (displaced_step_prepare): Update.
6768 * infcall.c (call_function_by_hand_dummy): Update.
6769 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6770 * gnu-v3-abi.c (print_one_vtable): Update.
6771 * frame.c (get_prev_frame_always): Update.
6772 * f-valprint.c (info_common_command_for_block): Update.
6773 * exec.c (try_open_exec_file): Update.
6774 * exceptions.c (print_exception, exception_print)
6775 (exception_fprintf, exception_print_same): Update.
6776 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6777 * dwarf-index-cache.c (index_cache::store)
6778 (index_cache::lookup_gdb_index): Update.
6779 * darwin-nat.c (maybe_cache_shell): Update.
6780 * cp-valprint.c (cp_print_value_fields): Update.
6781 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6782 (gcc_cplus_symbol_address): Update.
6783 * compile/compile-c-symbols.c (gcc_convert_symbol)
6784 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6785 * common/selftest.c: Update.
6786 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6787 a std::string.
6788 (exception_try_scope_entry, exception_try_scope_exit): Don't
6789 declare.
6790 (struct exception_try_scope): Remove.
6791 (TRY): Don't use exception_try_scope.
6792 (struct gdb_exception): Add constructor, operator=.
6793 <what>: New method.
6794 (struct gdb_exception_RETURN_MASK_ALL)
6795 (struct gdb_exception_RETURN_MASK_ERROR)
6796 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6797 (struct gdb_quit_bad_alloc): Update.
6798 * common/common-exceptions.c (exception_none): Change
6799 initializer.
6800 (struct catcher) <state, exception>: Initialize inline.
6801 <prev>: Remove member.
6802 (current_catcher): Remove.
6803 (catchers): New global.
6804 (exceptions_state_mc_init): Simplify.
6805 (catcher_pop): Remove.
6806 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6807 (try_scope_depth, exception_try_scope_entry)
6808 (exception_try_scope_exit): Remove.
6809 (throw_exception_sjlj): Update.
6810 (exception_messages, exception_messages_size): Remove.
6811 (throw_it): Simplify.
6812 (gdb_exception_sliced_copy): Remove.
6813 (throw_exception_cxx): Update.
6814 * cli/cli-script.c (script_from_file): Update.
6815 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6816 Update.
6817 * ada-valprint.c (ada_val_print): Update.
6818 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6819 (create_excep_cond_exprs): Update.
6820
c5c10118
TT
68212019-04-08 Tom Tromey <tom@tromey.com>
6822
6823 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6824 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6825 (TRY, CATCH, END_CATCH): Remove some definitions.
6826 * common/common-exceptions.c: Don't use GDB_XCPT.
6827 (catcher_list_size): Remove.
6828 (throw_exception, throw_it): Simplify.
6829
4de283e4
TT
68302019-04-05 Tom Tromey <tom@tromey.com>
6831
6832 Revert the header-sorting patch.
6833 * ft32-tdep.c: Revert.
6834 * frv-tdep.c: Revert.
6835 * frv-linux-tdep.c: Revert.
6836 * frame.c: Revert.
6837 * frame-unwind.c: Revert.
6838 * frame-base.c: Revert.
6839 * fork-child.c: Revert.
6840 * findvar.c: Revert.
6841 * findcmd.c: Revert.
6842 * filesystem.c: Revert.
6843 * filename-seen-cache.h: Revert.
6844 * filename-seen-cache.c: Revert.
6845 * fbsd-tdep.c: Revert.
6846 * fbsd-nat.h: Revert.
6847 * fbsd-nat.c: Revert.
6848 * f-valprint.c: Revert.
6849 * f-typeprint.c: Revert.
6850 * f-lang.c: Revert.
6851 * extension.h: Revert.
6852 * extension.c: Revert.
6853 * extension-priv.h: Revert.
6854 * expprint.c: Revert.
6855 * exec.h: Revert.
6856 * exec.c: Revert.
6857 * exceptions.c: Revert.
6858 * event-top.c: Revert.
6859 * event-loop.c: Revert.
6860 * eval.c: Revert.
6861 * elfread.c: Revert.
6862 * dwarf2read.h: Revert.
6863 * dwarf2read.c: Revert.
6864 * dwarf2loc.c: Revert.
6865 * dwarf2expr.h: Revert.
6866 * dwarf2expr.c: Revert.
6867 * dwarf2-frame.c: Revert.
6868 * dwarf2-frame-tailcall.c: Revert.
6869 * dwarf-index-write.h: Revert.
6870 * dwarf-index-write.c: Revert.
6871 * dwarf-index-common.c: Revert.
6872 * dwarf-index-cache.h: Revert.
6873 * dwarf-index-cache.c: Revert.
6874 * dummy-frame.c: Revert.
6875 * dtrace-probe.c: Revert.
6876 * disasm.h: Revert.
6877 * disasm.c: Revert.
6878 * disasm-selftests.c: Revert.
6879 * dictionary.c: Revert.
6880 * dicos-tdep.c: Revert.
6881 * demangle.c: Revert.
6882 * dcache.h: Revert.
6883 * dcache.c: Revert.
6884 * darwin-nat.h: Revert.
6885 * darwin-nat.c: Revert.
6886 * darwin-nat-info.c: Revert.
6887 * d-valprint.c: Revert.
6888 * d-namespace.c: Revert.
6889 * d-lang.c: Revert.
6890 * ctf.c: Revert.
6891 * csky-tdep.c: Revert.
6892 * csky-linux-tdep.c: Revert.
6893 * cris-tdep.c: Revert.
6894 * cris-linux-tdep.c: Revert.
6895 * cp-valprint.c: Revert.
6896 * cp-support.c: Revert.
6897 * cp-namespace.c: Revert.
6898 * cp-abi.c: Revert.
6899 * corelow.c: Revert.
6900 * corefile.c: Revert.
6901 * continuations.c: Revert.
6902 * completer.h: Revert.
6903 * completer.c: Revert.
6904 * complaints.c: Revert.
6905 * coffread.c: Revert.
6906 * coff-pe-read.c: Revert.
6907 * cli-out.h: Revert.
6908 * cli-out.c: Revert.
6909 * charset.c: Revert.
6910 * c-varobj.c: Revert.
6911 * c-valprint.c: Revert.
6912 * c-typeprint.c: Revert.
6913 * c-lang.c: Revert.
6914 * buildsym.c: Revert.
6915 * buildsym-legacy.c: Revert.
6916 * build-id.h: Revert.
6917 * build-id.c: Revert.
6918 * btrace.c: Revert.
6919 * bsd-uthread.c: Revert.
6920 * breakpoint.h: Revert.
6921 * breakpoint.c: Revert.
6922 * break-catch-throw.c: Revert.
6923 * break-catch-syscall.c: Revert.
6924 * break-catch-sig.c: Revert.
6925 * blockframe.c: Revert.
6926 * block.c: Revert.
6927 * bfin-tdep.c: Revert.
6928 * bfin-linux-tdep.c: Revert.
6929 * bfd-target.c: Revert.
6930 * bcache.c: Revert.
6931 * ax-general.c: Revert.
6932 * ax-gdb.h: Revert.
6933 * ax-gdb.c: Revert.
6934 * avr-tdep.c: Revert.
6935 * auxv.c: Revert.
6936 * auto-load.c: Revert.
6937 * arm-wince-tdep.c: Revert.
6938 * arm-tdep.c: Revert.
6939 * arm-symbian-tdep.c: Revert.
6940 * arm-pikeos-tdep.c: Revert.
6941 * arm-obsd-tdep.c: Revert.
6942 * arm-nbsd-tdep.c: Revert.
6943 * arm-nbsd-nat.c: Revert.
6944 * arm-linux-tdep.c: Revert.
6945 * arm-linux-nat.c: Revert.
6946 * arm-fbsd-tdep.c: Revert.
6947 * arm-fbsd-nat.c: Revert.
6948 * arm-bsd-tdep.c: Revert.
6949 * arch-utils.c: Revert.
6950 * arc-tdep.c: Revert.
6951 * arc-newlib-tdep.c: Revert.
6952 * annotate.h: Revert.
6953 * annotate.c: Revert.
6954 * amd64-windows-tdep.c: Revert.
6955 * amd64-windows-nat.c: Revert.
6956 * amd64-tdep.c: Revert.
6957 * amd64-sol2-tdep.c: Revert.
6958 * amd64-obsd-tdep.c: Revert.
6959 * amd64-obsd-nat.c: Revert.
6960 * amd64-nbsd-tdep.c: Revert.
6961 * amd64-nbsd-nat.c: Revert.
6962 * amd64-nat.c: Revert.
6963 * amd64-linux-tdep.c: Revert.
6964 * amd64-linux-nat.c: Revert.
6965 * amd64-fbsd-tdep.c: Revert.
6966 * amd64-fbsd-nat.c: Revert.
6967 * amd64-dicos-tdep.c: Revert.
6968 * amd64-darwin-tdep.c: Revert.
6969 * amd64-bsd-nat.c: Revert.
6970 * alpha-tdep.c: Revert.
6971 * alpha-obsd-tdep.c: Revert.
6972 * alpha-nbsd-tdep.c: Revert.
6973 * alpha-mdebug-tdep.c: Revert.
6974 * alpha-linux-tdep.c: Revert.
6975 * alpha-linux-nat.c: Revert.
6976 * alpha-bsd-tdep.c: Revert.
6977 * alpha-bsd-nat.c: Revert.
6978 * aix-thread.c: Revert.
6979 * agent.c: Revert.
6980 * addrmap.c: Revert.
6981 * ada-varobj.c: Revert.
6982 * ada-valprint.c: Revert.
6983 * ada-typeprint.c: Revert.
6984 * ada-tasks.c: Revert.
6985 * ada-lang.c: Revert.
6986 * aarch64-tdep.c: Revert.
6987 * aarch64-ravenscar-thread.c: Revert.
6988 * aarch64-newlib-tdep.c: Revert.
6989 * aarch64-linux-tdep.c: Revert.
6990 * aarch64-linux-nat.c: Revert.
6991 * aarch64-fbsd-tdep.c: Revert.
6992 * aarch64-fbsd-nat.c: Revert.
6993 * aarch32-linux-nat.c: Revert.
6994
d55e5aa6
TT
69952019-04-05 Tom Tromey <tom@tromey.com>
6996
6997 * ft32-tdep.c: Sort headers.
6998 * frv-tdep.c: Sort headers.
6999 * frv-linux-tdep.c: Sort headers.
7000 * frame.c: Sort headers.
7001 * frame-unwind.c: Sort headers.
7002 * frame-base.c: Sort headers.
7003 * fork-child.c: Sort headers.
7004 * findvar.c: Sort headers.
7005 * findcmd.c: Sort headers.
7006 * filesystem.c: Sort headers.
7007 * filename-seen-cache.h: Sort headers.
7008 * filename-seen-cache.c: Sort headers.
7009 * fbsd-tdep.c: Sort headers.
7010 * fbsd-nat.h: Sort headers.
7011 * fbsd-nat.c: Sort headers.
7012 * f-valprint.c: Sort headers.
7013 * f-typeprint.c: Sort headers.
7014 * f-lang.c: Sort headers.
7015 * extension.h: Sort headers.
7016 * extension.c: Sort headers.
7017 * extension-priv.h: Sort headers.
7018 * expprint.c: Sort headers.
7019 * exec.h: Sort headers.
7020 * exec.c: Sort headers.
7021 * exceptions.c: Sort headers.
7022 * event-top.c: Sort headers.
7023 * event-loop.c: Sort headers.
7024 * eval.c: Sort headers.
7025 * elfread.c: Sort headers.
7026 * dwarf2read.h: Sort headers.
7027 * dwarf2read.c: Sort headers.
7028 * dwarf2loc.c: Sort headers.
7029 * dwarf2expr.h: Sort headers.
7030 * dwarf2expr.c: Sort headers.
7031 * dwarf2-frame.c: Sort headers.
7032 * dwarf2-frame-tailcall.c: Sort headers.
7033 * dwarf-index-write.h: Sort headers.
7034 * dwarf-index-write.c: Sort headers.
7035 * dwarf-index-common.c: Sort headers.
7036 * dwarf-index-cache.h: Sort headers.
7037 * dwarf-index-cache.c: Sort headers.
7038 * dummy-frame.c: Sort headers.
7039 * dtrace-probe.c: Sort headers.
7040 * disasm.h: Sort headers.
7041 * disasm.c: Sort headers.
7042 * disasm-selftests.c: Sort headers.
7043 * dictionary.c: Sort headers.
7044 * dicos-tdep.c: Sort headers.
7045 * demangle.c: Sort headers.
7046 * dcache.h: Sort headers.
7047 * dcache.c: Sort headers.
7048 * darwin-nat.h: Sort headers.
7049 * darwin-nat.c: Sort headers.
7050 * darwin-nat-info.c: Sort headers.
7051 * d-valprint.c: Sort headers.
7052 * d-namespace.c: Sort headers.
7053 * d-lang.c: Sort headers.
7054 * ctf.c: Sort headers.
7055 * csky-tdep.c: Sort headers.
7056 * csky-linux-tdep.c: Sort headers.
7057 * cris-tdep.c: Sort headers.
7058 * cris-linux-tdep.c: Sort headers.
7059 * cp-valprint.c: Sort headers.
7060 * cp-support.c: Sort headers.
7061 * cp-namespace.c: Sort headers.
7062 * cp-abi.c: Sort headers.
7063 * corelow.c: Sort headers.
7064 * corefile.c: Sort headers.
7065 * continuations.c: Sort headers.
7066 * completer.h: Sort headers.
7067 * completer.c: Sort headers.
7068 * complaints.c: Sort headers.
7069 * coffread.c: Sort headers.
7070 * coff-pe-read.c: Sort headers.
7071 * cli-out.h: Sort headers.
7072 * cli-out.c: Sort headers.
7073 * charset.c: Sort headers.
7074 * c-varobj.c: Sort headers.
7075 * c-valprint.c: Sort headers.
7076 * c-typeprint.c: Sort headers.
7077 * c-lang.c: Sort headers.
7078 * buildsym.c: Sort headers.
7079 * buildsym-legacy.c: Sort headers.
7080 * build-id.h: Sort headers.
7081 * build-id.c: Sort headers.
7082 * btrace.c: Sort headers.
7083 * bsd-uthread.c: Sort headers.
7084 * breakpoint.h: Sort headers.
7085 * breakpoint.c: Sort headers.
7086 * break-catch-throw.c: Sort headers.
7087 * break-catch-syscall.c: Sort headers.
7088 * break-catch-sig.c: Sort headers.
7089 * blockframe.c: Sort headers.
7090 * block.c: Sort headers.
7091 * bfin-tdep.c: Sort headers.
7092 * bfin-linux-tdep.c: Sort headers.
7093 * bfd-target.c: Sort headers.
7094 * bcache.c: Sort headers.
7095 * ax-general.c: Sort headers.
7096 * ax-gdb.h: Sort headers.
7097 * ax-gdb.c: Sort headers.
7098 * avr-tdep.c: Sort headers.
7099 * auxv.c: Sort headers.
7100 * auto-load.c: Sort headers.
7101 * arm-wince-tdep.c: Sort headers.
7102 * arm-tdep.c: Sort headers.
7103 * arm-symbian-tdep.c: Sort headers.
7104 * arm-pikeos-tdep.c: Sort headers.
7105 * arm-obsd-tdep.c: Sort headers.
7106 * arm-nbsd-tdep.c: Sort headers.
7107 * arm-nbsd-nat.c: Sort headers.
7108 * arm-linux-tdep.c: Sort headers.
7109 * arm-linux-nat.c: Sort headers.
7110 * arm-fbsd-tdep.c: Sort headers.
7111 * arm-fbsd-nat.c: Sort headers.
7112 * arm-bsd-tdep.c: Sort headers.
7113 * arch-utils.c: Sort headers.
7114 * arc-tdep.c: Sort headers.
7115 * arc-newlib-tdep.c: Sort headers.
7116 * annotate.h: Sort headers.
7117 * annotate.c: Sort headers.
7118 * amd64-windows-tdep.c: Sort headers.
7119 * amd64-windows-nat.c: Sort headers.
7120 * amd64-tdep.c: Sort headers.
7121 * amd64-sol2-tdep.c: Sort headers.
7122 * amd64-obsd-tdep.c: Sort headers.
7123 * amd64-obsd-nat.c: Sort headers.
7124 * amd64-nbsd-tdep.c: Sort headers.
7125 * amd64-nbsd-nat.c: Sort headers.
7126 * amd64-nat.c: Sort headers.
7127 * amd64-linux-tdep.c: Sort headers.
7128 * amd64-linux-nat.c: Sort headers.
7129 * amd64-fbsd-tdep.c: Sort headers.
7130 * amd64-fbsd-nat.c: Sort headers.
7131 * amd64-dicos-tdep.c: Sort headers.
7132 * amd64-darwin-tdep.c: Sort headers.
7133 * amd64-bsd-nat.c: Sort headers.
7134 * alpha-tdep.c: Sort headers.
7135 * alpha-obsd-tdep.c: Sort headers.
7136 * alpha-nbsd-tdep.c: Sort headers.
7137 * alpha-mdebug-tdep.c: Sort headers.
7138 * alpha-linux-tdep.c: Sort headers.
7139 * alpha-linux-nat.c: Sort headers.
7140 * alpha-bsd-tdep.c: Sort headers.
7141 * alpha-bsd-nat.c: Sort headers.
7142 * aix-thread.c: Sort headers.
7143 * agent.c: Sort headers.
7144 * addrmap.c: Sort headers.
7145 * ada-varobj.c: Sort headers.
7146 * ada-valprint.c: Sort headers.
7147 * ada-typeprint.c: Sort headers.
7148 * ada-tasks.c: Sort headers.
7149 * ada-lang.c: Sort headers.
7150 * aarch64-tdep.c: Sort headers.
7151 * aarch64-ravenscar-thread.c: Sort headers.
7152 * aarch64-newlib-tdep.c: Sort headers.
7153 * aarch64-linux-tdep.c: Sort headers.
7154 * aarch64-linux-nat.c: Sort headers.
7155 * aarch64-fbsd-tdep.c: Sort headers.
7156 * aarch64-fbsd-nat.c: Sort headers.
7157 * aarch32-linux-nat.c: Sort headers.
7158
699bd4cf
TT
71592019-04-04 Tom Tromey <tom@tromey.com>
7160
7161 * varobj.c (varobj_create): Update.
7162 * rust-exp.y (struct rust_parser) <update_innermost_block,
7163 lookup_symbol>: New methods.
7164 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7165 Rename.
7166 (rust_parser::rust_lookup_type)
7167 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7168 * printcmd.c (display_command, do_one_display): Update.
7169 * parser-defs.h (struct parser_state) <parser_state>: Add
7170 "tracker" parameter.
7171 (block_tracker): New member.
7172 (class innermost_block_tracker) <innermost_block_tracker>: Add
7173 "types" parameter.
7174 <reset>: Remove method.
7175 (innermost_block): Don't declare.
7176 (null_post_parser): Update.
7177 * parse.c (innermost_block): Remove global.
7178 (write_dollar_variable): Update.
7179 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7180 Remove "tracker_types" parameter.
7181 (parse_expression): Add "tracker" parameter.
7182 (parse_expression_for_completion): Update.
7183 (null_post_parser): Add "tracker" parameter.
7184 * p-exp.y: Update rules.
7185 * m2-exp.y: Update rules.
7186 * language.h (struct language_defn) <la_post_parser>: Add
7187 "tracker" parameter.
7188 * go-exp.y: Update rules.
7189 * f-exp.y: Update rules.
7190 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7191 parameter.
7192 * d-exp.y: Update rules.
7193 * c-exp.y: Update rules.
7194 * breakpoint.c (set_breakpoint_condition): Create an
7195 innermost_block_tracker.
7196 (watch_command_1): Likewise.
7197 * ada-lang.c (resolve): Add "tracker" parameter.
7198 (resolve_subexp): Likewise.
7199 * ada-exp.y (write_var_from_sym): Update.
7200
dac43e32
TT
72012019-04-04 Tom Tromey <tom@tromey.com>
7202
7203 * type-stack.h: New file.
7204 * type-stack.c: New file.
7205 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7206 type-stack.h.
7207 (insert_into_type_stack, insert_type, push_type, push_type_int)
7208 (insert_type_address_space, pop_type, pop_type_int)
7209 (pop_typelist, pop_type_stack, append_type_stack)
7210 (push_type_stack, get_type_stack, push_typelist)
7211 (follow_type_instance_flags, follow_types): Don't declare.
7212 * parse.c (type_stack): Remove global.
7213 (parse_exp_in_context): Update.
7214 (insert_into_type_stack, insert_type, push_type, push_type_int)
7215 (insert_type_address_space, pop_type, pop_type_int)
7216 (pop_typelist, pop_type_stack, append_type_stack)
7217 (push_type_stack, get_type_stack, push_typelist)
7218 (follow_type_instance_flags, follow_types): Remove (moved to
7219 type-stack.c).
7220 * f-exp.y (type_stack): New global.
7221 Update rules.
7222 (push_kind_type, f_parse): Update.
7223 * d-exp.y (type_stack): New global.
7224 Update rules.
7225 (d_parse): Update.
7226 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7227 Update rules.
7228 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7229 (HFILES_NO_SRCDIR): Add type-stack.h.
7230
2a612529
TT
72312019-04-04 Tom Tromey <tom@tromey.com>
7232
7233 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7234 (rust_parser::convert_ast_to_expression, rust_parse)
7235 (rust_lex_test_completion, rust_lex_tests): Update.
7236 * parser-defs.h (struct expr_completion_state): New.
7237 (struct parser_state) <parser_state>: Add completion parameter.
7238 <mark_struct_expression, mark_completion_tag>: New methods.
7239 <parse_completion, m_completion_state>: New members.
7240 (prefixify_expression, null_post_parser): Update.
7241 (mark_struct_expression, mark_completion_tag): Don't declare.
7242 * parse.c (parse_completion, expout_last_struct)
7243 (expout_tag_completion_type, expout_completion_name): Remove
7244 globals.
7245 (parser_state::mark_struct_expression)
7246 (parser_state::mark_completion_tag): Now methods.
7247 (prefixify_expression): Add last_struct parameter.
7248 (prefixify_subexp): Likewise.
7249 (parse_exp_1): Update.
7250 (parse_exp_in_context): Add cstate parameter. Update.
7251 (parse_expression_for_completion): Create an
7252 expr_completion_state.
7253 (null_post_parser): Add "completion" parameter.
7254 * p-exp.y: Update rules.
7255 (yylex): Update.
7256 * language.h (struct language_defn) <la_post_parser>: Add
7257 "completing" parameter.
7258 * go-exp.y: Update rules.
7259 (lex_one_token): Update.
7260 * expression.h (parse_completion): Don't declare.
7261 * d-exp.y: Update rules.
7262 (lex_one_token): Update rules.
7263 * c-exp.y: Update rules.
7264 (lex_one_token): Update.
7265 * ada-lang.c (resolve): Add "parse_completion" parameter.
7266 (resolve_subexp): Likewise.
7267 (ada_resolve_function): Likewise.
7268
43476f0b
TT
72692019-04-04 Tom Tromey <tom@tromey.com>
7270
7271 * parser-defs.h (struct parser_state) <start_arglist,
7272 end_arglist>: New methods.
7273 <arglist_len, m_funcall_chain>: New members.
7274 (arglist_len, start_arglist, end_arglist): Don't declare.
7275 * parse.c (arglist_len, funcall_chain): Remove global.
7276 (start_arglist, end_arglist): Remove functions.
7277 (parse_exp_in_context): Update.
7278 * p-exp.y: Update rules.
7279 * m2-exp.y: Update rules.
7280 * go-exp.y: Update rules.
7281 * f-exp.y: Update rules.
7282 * d-exp.y: Update rules.
7283 * c-exp.y: Update rules.
7284
5776fca3
TT
72852019-04-04 Tom Tromey <tom@tromey.com>
7286
7287 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7288 lex_operator, push_back>: New methods.
7289 Update all rules.
7290 (rust_parser::lex_hex, lex_escape): Rename and update.
7291 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7292 (rust_parser::lex_operator): Rename and update.
7293 (rust_parser::lex_number, rustyylex, rustyyerror)
7294 (rust_lex_test_init, rust_lex_test_sequence)
7295 (rust_lex_test_push_back, rust_lex_tests): Update.
7296 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7297 parameter.
7298 <lexptr, prev_lexptr>: New members.
7299 (lexptr, prev_lexptr): Don't declare.
7300 * parse.c (lexptr, prev_lexptr): Remove globals.
7301 (parse_exp_in_context): Update.
7302 * p-exp.y (yylex, yyerror): Update.
7303 * m2-exp.y (parse_number, yylex, yyerror): Update.
7304 * go-exp.y (lex_one_token, yyerror): Update.
7305 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7306 * d-exp.y (lex_one_token, yyerror): Update.
7307 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7308 (lex_one_token, yyerror): Update.
7309 * ada-lex.l (YY_INPUT): Update.
7310 (rewind_to_char): Update.
7311 * ada-exp.y (yyerror): Update.
7312
8621b685
TT
73132019-04-04 Tom Tromey <tom@tromey.com>
7314
7315 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7316 * parser-defs.h (struct parser_state) <parser_state>: Add new
7317 parameter.
7318 <comma_terminates>: New member.
7319 (comma_terminates): Don't declare global.
7320 * parse.c (comma_terminates): Remove global.
7321 (parse_exp_in_context): Update.
7322 * p-exp.y (yylex): Update.
7323 * m2-exp.y (yylex): Update.
7324 * go-exp.y (lex_one_token): Update.
7325 * f-exp.y (yylex): Update.
7326 * d-exp.y (lex_one_token): Update.
7327 * c-exp.y (lex_one_token): Update.
7328 * ada-lex.l: Update.
7329
28aaf3fd
TT
73302019-04-04 Tom Tromey <tom@tromey.com>
7331
7332 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7333 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7334 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7335 * parser-defs.h (paren_depth): Don't declare.
7336 * parse.c (paren_depth): Remove global.
7337 (parse_exp_in_context): Update.
7338 * p-exp.y (paren_depth): New global.
7339 (pascal_parse): Initialize it.
7340 * m2-exp.y (paren_depth): New global.
7341 (m2_parse): Initialize it.
7342 * go-exp.y (paren_depth): New global.
7343 (go_parse): Initialize it.
7344 * f-exp.y (paren_depth): New global.
7345 (f_parse): Initialize it.
7346 * d-exp.y (paren_depth): New global.
7347 (d_parse): Initialize it.
7348 * c-exp.y (paren_depth): New global.
7349 (c_parse): Initialize it.
7350 * ada-lex.l (paren_depth): New global.
7351 (lexer_init): Initialize it.
7352
1e58a4a4
TT
73532019-04-04 Tom Tromey <tom@tromey.com>
7354
7355 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7356 (rust_parser::convert_ast_to_type)
7357 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7358 * parser-defs.h (struct parser_state) <parser_state>: Add
7359 parameters. Initialize new members.
7360 <expression_context_block, expression_context_pc>: New members.
7361 * parse.c (expression_context_block, expression_context_pc):
7362 Remove globals.
7363 (parse_exp_in_context): Update.
7364 * p-exp.y: Update all rules.
7365 (yylex): Update.
7366 * m2-exp.y: Update all rules.
7367 (yylex): Update.
7368 * go-exp.y (yylex): Update.
7369 * f-exp.y (yylex): Update.
7370 * d-exp.y: Update all rules.
7371 (yylex): Update.
7372 * c-exp.y: Update all rules.
7373 (lex_one_token, classify_name, yylex, c_parse): Update.
7374 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7375
37eedb39
TT
73762019-04-04 Tom Tromey <tom@tromey.com>
7377
7378 * gdbarch.h, gdbarch.c: Rebuild.
7379 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7380 * stap-probe.h:
7381 (struct stap_parse_info): Replace "parser_state" with
7382 "expr_builder".
7383 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7384 (parser_state): New class.
7385 * parse.c (expr_builder): Rename.
7386 (expr_builder::release): Rename.
7387 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7388 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7389 (write_exp_elt_longcst, write_exp_elt_floatcst)
7390 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7391 (write_exp_string_vector, write_exp_bitstring)
7392 (write_exp_msymbol, mark_struct_expression)
7393 (write_dollar_variable)
7394 (insert_type_address_space, increase_expout_size): Replace
7395 "parser_state" with "expr_builder".
7396 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7397 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7398 "parser_state" with "expr_builder".
7399
73923d7e
TT
74002019-04-04 Tom Tromey <tom@tromey.com>
7401
7402 * rust-exp.y: Replace "parse_language" with method call.
7403 * p-exp.y:
7404 (yylex): Replace "parse_language" with method call.
7405 * m2-exp.y:
7406 (yylex): Replace "parse_language" with method call.
7407 * go-exp.y (classify_name): Replace "parse_language" with method
7408 call.
7409 * f-exp.y (yylex): Replace "parse_language" with method call.
7410 * d-exp.y (lex_one_token): Replace "parse_language" with method
7411 call.
7412 * c-exp.y:
7413 (lex_one_token, classify_name, yylex): Replace "parse_language"
7414 with method call.
7415 * ada-exp.y (find_primitive_type, type_char)
7416 (type_system_address): Replace "parse_language" with method call.
7417
fa9f5be6
TT
74182019-04-04 Tom Tromey <tom@tromey.com>
7419
7420 * rust-exp.y: Replace "parse_gdbarch" with method call.
7421 * parse.c (write_dollar_variable, insert_type_address_space):
7422 Replace "parse_gdbarch" with method call.
7423 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7424 call.
7425 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7426 call.
7427 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7428 "parse_gdbarch" with method call.
7429 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7430 with method call.
7431 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7432 "parse_gdbarch" with method call.
7433 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7434 "parse_gdbarch" with method call.
7435 * c-exp.y (parse_type, parse_number, classify_name): Replace
7436 "parse_gdbarch" with method call.
7437 * ada-lex.l: Replace "parse_gdbarch" with method call.
7438 * ada-exp.y (parse_type, find_primitive_type, type_char)
7439 (type_system_address): Replace "parse_gdbarch" with method call.
7440
1201a264
TT
74412019-04-04 Tom Tromey <tom@tromey.com>
7442
7443 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7444 * stap-probe.c (stap_parse_argument): Update.
7445 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7446 initial_size parameter.
7447 * rust-exp.y (rust_lex_tests): Update.
7448 * parse.c (parser_state): Update.
7449 (parse_exp_in_context): Update.
7450 * parser-defs.h (struct parser_state) <parser_state>: Remove
7451 "initial_size" parameter.
7452
e3980ce2
TT
74532019-04-04 Tom Tromey <tom@tromey.com>
7454
7455 * parser-defs.h (increase_expout_size): Don't declare.
7456 * parse.c (increase_expout_size): Now static.
7457
e9f8e3f1
TS
74582019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7459
7460 * gnu-nat.c (gnu_nat_target::wait): Fix
7461 target_waitstatus_to_string call.
7462
d7df6549
AB
74632019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7464
7465 * eval.c (evaluate_subexp_standard): Handle internal functions
7466 during Fortran function call handling.
7467
8bdc1658
AB
74682019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7469
7470 * NEWS: Mention new internal functions.
7471 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7472 (read_base_type): Use dwarf2_init_complex_target_type.
7473 * value.c (creal_internal_fn): New function.
7474 (cimag_internal_fn): New function.
7475 (_initialize_values): Register new internal functions.
7476
c29705b7
PW
74772019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7478
7479 * infrun.c (stop_all_threads): If debug_infrun, always
7480 trace the wait status after wait_one, using
7481 target_waitstatus_to_string and target_pid_to_str.
7482 (handle_inferior_event): Replace various trace of
7483 wait status kind by a single trace.
7484 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7485 wait status kind image by target_waitstatus_to_string.
7486 * target/waitstatus.c (target_waitstatus_to_string): Fix
7487 obsolete comment.
7488
05caa1d2
TT
74892019-04-01 Tom Tromey <tromey@adacore.com>
7490
7491 PR symtab/23331:
7492 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7493
9d1447e0
SDJ
74942019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7495 Pedro Alves <palves@redhat.com>
7496
7497 * top.c (quit_force): Call 'finalize_values'.
7498 * value.c (finalize_values): New function.
7499 * value.h (finalize_values): Declare.
7500
7734102d
EZ
75012019-03-30 Eli Zaretskii <eliz@gnu.org>
7502
7503 * NEWS: Announce $_gdb_major and $_gdb_minor.
7504
7505 * top.c (init_gdb_version_vars): New function.
7506 (gdb_init): Call init_gdb_version_vars.
7507
188e1fa9
TT
75082019-03-29 Tom Tromey <tromey@adacore.com>
7509
7510 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7511 help text. Remove dead code.
7512
2880242d
KS
75132019-03-29 Keith Seitz <keiths@redhat.com>
7514
7515 From Siddhesh Poyarekar:
7516 * f-lang.h (f77_get_upperbound): Return LONGEST.
7517 (f77_get_lowerbound): Likewise.
7518 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7519 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7520 print them.
7521 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7522 plongest to format print it.
7523 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7524 (f77_get_upperbound): Likewise.
7525 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7526 LOWER_BOUND to LONGEST.
7527 (f77_create_arrayprint_offset_tbl): Likewise.
7528
cc1defb1
KS
75292019-03-29 Keith Seitz <keiths@redhat.com>
7530
7531 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7532 %s/pulongest for TYPE_LENGTH instead of %d in format
7533 strings.
7534 * ada-typerint.c (ada_print_type): Likewise.
7535 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7536 * compile/compile-c-support.c (generate_register_struct): Likewise.
7537 * gdbtypes.c (recursive_dump_type): Likewise.
7538 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7539 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7540 instead of %d in format strings.
7541 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7542 to std::min to ULONGEST.
7543 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7544 instead of %d in format strings.
7545 * tracepoint.c (info_scope_command): Likewise.
7546 * typeprint.c (print_offset_data::update)
7547 (print_offset_data::finish): Likewise.
7548 * xtensa-tdep.c (xtensa_store_return_value)
7549 (xtensa_push_dummy_call): Likewise.
7550
e432ccf1
JT
75512019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7552
7553 * windows-nat.c (display_selector): Fixed format specifications
7554 for 64-bit Cygwin.
7555
65d2b333
PW
75562019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7557
7558 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7559
f489207e
SL
75602019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7561
7562 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7563 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7564 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7565 (nios2_linux_init_abi): Install it.
7566
bffa1015
AH
75672019-03-28 Alan Hayward <alan.hayward@arm.com>
7568
7569 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7570
fc96163a
AH
75712019-03-28 Alan Hayward <alan.hayward@arm.com>
7572
7573 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7574
20dc7e9b
PW
75752019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7576 Tom Tromey <tromey@adacore.com>
7577
7578 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7579
7f5331a8
JB
75802019-03-26 Joel Brobecker <brobecker@adacore.com>
7581
7582 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7583 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7584 method to compute the bounds of range types. Also print "[evaluated]"
7585 if the bounds' values come from a dynamic evaluation.
7586
18c77628
AB
75872019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7588
7589 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7590 whitespace when pretty printing is on.
7591
53c973f2
AH
75922019-03-26 Alan Hayward <alan.hayward@arm.com>
7593
e79be6e5 7594 * ppc-linux-nat.c: Add include.
53c973f2 7595
d851aa71
AH
75962019-03-26 Alan Hayward <alan.hayward@arm.com>
7597
e79be6e5 7598 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7599
2fe7bab7
AH
76002019-03-26 Alan Hayward <alan.hayward@arm.com>
7601
e79be6e5 7602 * arm-linux-nat.c: Add include.
2fe7bab7 7603
068ef30e
SM
76042019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7605
7606 * source-cache.c (source_cache::get_source_lines): Re-read
7607 fullname after calling open_source_file.
7608
81a24d04
JB
76092019-03-25 John Baldwin <jhb@FreeBSD.org>
7610
7611 * NEWS: Mention TLS support for FreeBSD.
7612
79e7ae11
TT
76132019-03-25 Tom Tromey <tromey@adacore.com>
7614
7615 * minsyms.c (BUNCH_SIZE): Update comment.
7616 (~minimal_symbol_reader): Remove old comment.
7617 (compact_minimal_symbols): Update comment.
7618 (minimal_symbol_reader::install): Remove old comment. Update
7619 other comments.
7620
d45963c2
AH
76212019-03-25 Alan Hayward <alan.hayward@arm.com>
7622
7623 * s390-linux-nat.c: Add include.
7624
0f83012e
AH
76252019-03-25 Alan Hayward <alan.hayward@arm.com>
7626
7627 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7628 Call linux_get_hwcap.
7629 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7630 Likewise.
7631 (aarch64_linux_get_hwcap): Remove function.
7632 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7633 declaration.
7634 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7635 linux_get_hwcap.
7636 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7637 * linux-tdep.c (linux_get_hwcap): Add function.
7638 (linux_get_hwcap2): Likewise.
7639 * linux-tdep.h (linux_get_hwcap): Add declaration.
7640 (linux_get_hwcap2): Likewise.
7641 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7642 (ppc_linux_get_hwcap2): Likewise.
7643 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7644 linux_get_hwcap.
7645 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7646 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7647 (ppc_linux_nat_target::read_description): Likewise.
7648 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7649 * s390-linux-nat.c: Likewise.
7650 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7651
6640a367
TT
76522019-03-24 Tom Tromey <tom@tromey.com>
7653
7654 * ada-lang.c (standard_lookup): Simplify initialization.
7655 (ada_lookup_symbol_nonlocal): Simplify return.
7656 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7657 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7658 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7659 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7660 initialization.
7661 * solib.c (solib_global_lookup): Simplify.
7662 * symtab.c (null_block_symbol): Remove.
7663 (symbol_cache_lookup): Simplify returns.
7664 (lookup_language_this): Simplify returns.
7665 (lookup_symbol_aux): Simplify return.
7666 (lookup_local_symbol): Simplify returns.
7667 (lookup_global_symbol_from_objfile): Simplify return.
7668 (lookup_symbol_in_objfile_symtabs)
7669 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7670 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7671 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7672 * cp-namespace.c (cp_lookup_bare_symbol)
7673 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7674 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7675 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7676 (cp_lookup_symbol_via_imports): Simplify initialization.
7677 (find_symbol_in_baseclass): Likewise.
7678 * symtab.h (null_block_symbol): Remove.
7679 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7680 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7681 (d_lookup_symbol_module): Likewise.
7682 (find_symbol_in_baseclass): Simplify initialization.
7683
a930ebcd
TT
76842019-03-24 Tom Tromey <tom@tromey.com>
7685
7686 * expression.h: Don't include symtab.h.
7687 (struct block): Forward declare.
7688
582942f4
TT
76892019-03-24 Tom Tromey <tom@tromey.com>
7690
7691 * c-exp.y (typebase): Remove casts.
7692 * gdbtypes.c (lookup_unsigned_typename, )
7693 (lookup_signed_typename): Remove cast.
7694 * eval.c (parse_to_comma_and_eval): Remove cast.
7695 * parse.c (write_dollar_variable): Remove cast.
7696 * block.h (struct block) <superblock>: Now const.
7697 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7698 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7699 (map_block): Make "block" const.
7700 * symfile.h (struct quick_symbol_functions)
7701 <map_matching_symbols>: Constify block argument to "callback".
7702 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7703 const.
7704 (find_pc_sect_compunit_symtab): Make "b" const.
7705 (find_symbol_at_address): Likewise.
7706 (search_symbols): Likewise.
7707 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7708 (dw2_debug_names_lookup_symbol): Likewise.
7709 (dw2_map_matching_symbols): Update.
7710 * p-valprint.c (pascal_val_print): Remove "block".
7711 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7712 (aux_add_nonlocal_symbols): Make "block" const.
7713 (resolve_subexp): Remove cast.
7714 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7715 const.
7716 (iterate_over_file_blocks): Likewise.
7717 * f-exp.y (%union) <bval>: Remove.
7718 * coffread.c (patch_opaque_types): Make "b" const.
7719 * spu-tdep.c (spu_catch_start): Make "block" const.
7720 * c-valprint.c (print_unpacked_pointer): Remove "block".
7721 * symmisc.c (dump_symtab_1): Make "b" const.
7722 (block_depth): Make "block" const.
7723 * d-exp.y (%union) <bval>: Remove.
7724 * cp-support.h (cp_lookup_rtti_type): Update.
7725 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7726 * psymtab.c (psym_lookup_symbol): Make "block" const.
7727 (maintenance_check_psymtabs): Make "b" const.
7728 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7729 (enumerate_locals, enumerate_args): Update.
7730 * python/py-symtab.c (stpy_global_block): Make "block" const.
7731 (stpy_static_block): Likewise.
7732 * inline-frame.c (block_starting_point_at): Make "new_block"
7733 const.
7734 * block.c (find_block_in_blockvector): Make return type const.
7735 (blockvector_for_pc_sect): Make "b" const.
7736 (find_block_in_blockvector): Make "b" const.
7737
7ad417dd
TT
77382019-03-23 Tom Tromey <tom@tromey.com>
7739
7740 * varobj.c (varobj_create): Update.
7741 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7742 * printcmd.c (display_command, do_one_display): Don't reset
7743 innermost_block.
7744 * parser-defs.h (enum innermost_block_tracker_type): Move to
7745 expression.h.
7746 (innermost_block): Update comment.
7747 * parse.c (parse_exp_1): Add tracker_types parameter.
7748 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7749 tracker_types parameter. Reset innermost_block.
7750 (parse_exp_in_context): Remove.
7751 (parse_expression_for_completion): Update.
7752 * objfiles.c (~objfile): Don't reset expression_context_block or
7753 innermost_block.
7754 * expression.h (enum innermost_block_tracker_type): Move from
7755 parser-defs.h.
7756 (parse_exp_1): Add tracker_types parameter.
7757 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7758 reset innermost_block.
7759
b366c208
TT
77602019-03-23 Tom Tromey <tom@tromey.com>
7761
7762 * objfiles.h: Include bcache.h.
7763
9bb9b2f9
TT
77642019-03-23 Tom Tromey <tom@tromey.com>
7765
7766 * linespec.c (get_current_search_block): Use
7767 scoped_restore_current_language.
7768 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7769
59c28372
AH
77702019-03-22 Alan Hayward <alan.hayward@arm.com>
7771 Jiong Wang <jiong.wang@arm.com>
7772
7773 * aarch64-linux-tdep.c
7774 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7775 section.
7776 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7777
17e116a7
AH
77782019-03-22 Alan Hayward <alan.hayward@arm.com>
7779 Jiong Wang <jiong.wang@arm.com>
7780
7781 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7782 instructions.
7783 (aarch64_analyze_prologue_test): Add PACIASP test.
7784 (aarch64_prologue_prev_register): Unmask PC value.
7785
11e1b75f
AH
77862019-03-22 Alan Hayward <alan.hayward@arm.com>
7787 Jiong Wang <jiong.wang@arm.com>
7788
7789 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7790 (aarch64_dwarf2_prev_register): Unmask PC value.
7791 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7792 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7793 DW_CFA_AARCH64_negate_ra_state.
7794 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7795
34dcc7cf
AH
77962019-03-22 Alan Hayward <alan.hayward@arm.com>
7797 Jiong Wang <jiong.wang@arm.com>
7798
7799 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7800 registers.
7801 (aarch64_pseudo_register_name): Likewise.
7802 (aarch64_pseudo_register_type): Likewise.
7803 (aarch64_pseudo_register_reggroup_p): Likewise.
7804 (aarch64_gdbarch_init): Add pauth registers.
7805 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7806 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7807 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7808 (struct gdbarch_tdep): Add regnum for ra_state.
7809
1ef53e6b
AH
78102019-03-22 Alan Hayward <alan.hayward@arm.com>
7811 Jiong Wang <jiong.wang@arm.com>
7812
7813 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7814
76bed0fd
AH
78152019-03-22 Alan Hayward <alan.hayward@arm.com>
7816 Jiong Wang <jiong.wang@arm.com>
7817
7818 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7819 function.
7820 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7821 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7822 (aarch64_gdbarch_init): Add puth registers.
7823 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7824 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7825 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7826
ee4fbcfa
AH
78272019-03-22 Alan Hayward <alan.hayward@arm.com>
7828 Jiong Wang <jiong.wang@arm.com>
7829
7830 * aarch64-linux-nat.c
7831 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7832 * aarch64-linux-tdep.c
7833 (aarch64_linux_core_read_description): Likewise.
7834 (aarch64_linux_get_hwcap): New function.
7835 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7836 (aarch64_linux_get_hwcap): New declaration.
7837
6dc0ebde
AH
78382019-03-22 Alan Hayward <alan.hayward@arm.com>
7839 Jiong Wang <jiong.wang@arm.com>
7840
7841 * aarch64-linux-nat.c
7842 (aarch64_linux_nat_target::read_description): Add pauth param.
7843 * aarch64-linux-tdep.c
7844 (aarch64_linux_core_read_description): Likewise.
7845 * aarch64-tdep.c (struct target_desc): Add in pauth.
7846 (aarch64_read_description): Add pauth param.
7847 (aarch64_gdbarch_init): Likewise.
7848 * aarch64-tdep.h (aarch64_read_description): Likewise.
7849 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7850 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7851 * features/Makefile: Add new files.
7852 * features/aarch64-pauth.c: New file.
7853 * features/aarch64-pauth.xml: New file.
7854
595915c1
TT
78552019-03-20 Tom Tromey <tromey@adacore.com>
7856
7857 * infrun.c (handle_inferior_event): Rename from
7858 handle_inferior_event_1. Create a scoped_value_mark.
7859 (handle_inferior_event): Remove.
7860
4c7d57e7
TT
78612019-03-19 Tom Tromey <tromey@adacore.com>
7862
7863 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7864 * infrun.h (print_stop_event): Add "displays" parameter.
7865 * infrun.c (print_stop_event): Add "displays" parameter.
7866
cb246234
PA
78672019-03-19 Pedro Alves <palves@redhat.com>
7868
7869 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7870 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7871 to -1. Fix TABs vs spaces.
7872 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7873 * tui/tui-out.h (tui_ui_out) Add intro comments.
7874 <m_line, m_start_of_line>: In-class initialize, and add describing
7875 comment.
7876
3a0e45b2
AH
78772019-03-18 Alan Hayward <alan.hayward@arm.com>
7878
7879 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7880 variable names.
7881 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7882
5371b850
PA
78832019-03-18 Pedro Alves <palves@redhat.com>
7884 Eli Zaretskii <eliz@gnu.org>
7885
7886 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7887 m_line and m_start_of_line.
7888
b17c4cd0
EZ
78892019-03-18 Eli Zaretskii <eliz@gnu.org>
7890
7891 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7892 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7893 it returns a newline. This fixes a regression in TU mode, whereby
7894 the next line is output on the same screen line as the user input.
7895
4bd56d18
TT
78962019-03-18 Tom Tromey <tromey@adacore.com>
7897
7898 * minsyms.c (minimal_symbol_reader::install): Remove call to
7899 obstack_blank.
7900
55c10aca
PA
79012019-03-18 Pedro Alves <palves@redhat.com>
7902
7903 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7904 New globals.
7905 (apply_style): New, factored out from ...
7906 (apply_ansi_escape): ... this. Handle reverse video mode.
7907 (tui_set_reverse_mode): New function.
7908 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7909 * tui/tui-winsource.c (tui_show_source_line): Use
7910 tui_set_reverse_mode instead of setting A_STANDOUT.
7911 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7912 New setter methods.
7913
647bb750
HD
79142019-03-18 Hannes Domani <ssbssa@yahoo.de>
7915
7916 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7917 Handle tabs.
7918
bff8c71f
TT
79192019-03-18 Tom Tromey <tromey@adacore.com>
7920
7921 * ada-lang.c (empty_array): Add "high" parameter.
7922 (ada_evaluate_subexp): Update.
7923
58785d98
ST
79242019-03-17 Sergei Trofimovich <siarheit@google.com>
7925
7926 * unittests/string_view-selftests.c: Define
7927 _initialize_string_view_selftests unconditionally.
7928
d4cbef22
ВМ
79292019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7930
7931 PR gdb/24350
7932 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7933
fce4c071
ВМ
79342019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7935
7936 PR gdb/24351
7937 * windows-nat.c (display_selector): Fix format specifiers.
7938
f7f0a123
EZ
79392019-03-17 Eli Zaretskii <eliz@gnu.org>
7940
7941 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7942 tui_refill_source_window instead of tui_refresh_win, to update the
7943 current execution line. This fixes redisplay of the current line
7944 when stepping through the code with "next" or "step".
7945
ab42892f
EZ
79462019-03-16 Eli Zaretskii <eliz@gnu.org>
7947
7948 * source-cache.c (source_cache::get_source_lines): Call
7949 find_source_lines to initialize s->nlines. This fixes vertical
7950 scrolling of TUI source window when the DOWN arrow is pressed.
7951
8d8c087f
PW
79522019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7953
7954 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7955 linux-thread-db.c (_initialize_thread_db): Likewise.
7956
798e1c30
EZ
79572019-03-16 Eli Zaretskii <eliz@gnu.org>
7958
7959 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7960 wclrtoeol in tui_show_source_line". This reverts changes made in
7961 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7962
eefba3da
TT
79632019-03-15 Tom Tromey <tom@tromey.com>
7964
7965 * symtab.h (struct minimal_symbol): Derive from
7966 general_symbol_info.
7967 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7968 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7969 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7970 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7971 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7972 (MSYMBOL_SEARCH_NAME): Update.
7973 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7974 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7975 * minsyms.c (minimal_symbol_reader::record_full): Update.
7976
0de2420c
TT
79772019-03-15 Tom Tromey <tom@tromey.com>
7978
7979 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7980
042d75e4
TT
79812019-03-15 Tom Tromey <tom@tromey.com>
7982
7983 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7984 unique_xmalloc_ptr.
7985 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7986 Update.
7987 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7988 (build_minimal_symbol_hash_tables)
7989 (minimal_symbol_reader::install): Update.
7990
db92718b
TT
79912019-03-15 Tom Tromey <tom@tromey.com>
7992
7993 * symtab.c (create_demangled_names_hash): Update.
7994 (symbol_set_names): Update.
7995 * objfiles.h (struct objfile_per_bfd_storage)
7996 <demangled_names_hash>: Now an htab_up.
7997 * objfiles.c (objfile_per_bfd_storage): Simplify.
7998
d6797f46
TT
79992019-03-15 Tom Tromey <tom@tromey.com>
8000
8001 * objfiles.h (struct objfile_per_bfd_storage): Declare
8002 destructor.
8003 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8004 New.
8005 (get_objfile_bfd_data): Use new. Don't initialize
8006 language_of_main.
8007 (free_objfile_per_bfd_storage): Remove.
8008 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8009
741d7538
TT
80102019-03-15 Tom Tromey <tom@tromey.com>
8011
8012 * symfile.c (reread_symbols): Update.
8013 * objfiles.c (objfile::objfile): Update.
8014 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8015 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8016 comment.
8017 (minimal_symbol_reader::install): Update.
8018 (terminate_minimal_symbol_table): Remove.
8019 * jit.c (jit_object_close_impl): Update.
8020
788c80d1
TT
80212019-03-15 Tom Tromey <tom@tromey.com>
8022
8023 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8024 initializations.
8025
1b7a07cb
TT
80262019-03-15 Tom Tromey <tom@tromey.com>
8027
8028 * objfiles.h (struct objfile_per_bfd_storage)
8029 <demangled_hash_languages>: Now a bitset.
8030 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8031 (lookup_minimal_symbol): Update.
8032
3db066bc
TT
80332019-03-15 Tom Tromey <tom@tromey.com>
8034
8035 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8036 Don't return the symbol.
8037 * coffread.c (record_minimal_symbol): Use record_full.
8038
3fff2c37
EZ
80392019-03-14 Eli Zaretskii <eliz@gnu.org>
8040
8041 The MS-Windows port of ncurses fails to switch to a color pair if
8042 one or both of the colors are the implicit default colors. This
8043 change records the default colors when TUI is initialized, and
8044 then specifies them explicitly when a color pair uses the default
8045 colors. This allows color styling in TUI mode on MS-Windows.
8046
8047 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8048 ncurses_norm_attr.
8049 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8050 colors in ncurses_norm_attr.
8051 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8052 "none", replace it with the default color recorded in
8053 ncurses_norm_attr.
8054
3b336828
TT
80552019-03-14 Tom Tromey <tromey@adacore.com>
8056
8057 * source-cache.h (class source_cache) <get_source_lines>: Return
8058 std::string.
8059 * source-cache.c (source_cache::extract_lines): Handle case where
8060 first_pos==npos. Return std::string.
8061 (source_cache::get_source_lines): Update.
8062
d085f989
TT
80632019-03-14 Tom Tromey <tromey@adacore.com>
8064
8065 * NEWS: Add item for "style sources" commands.
8066 * source-cache.c (source_cache::get_source_lines): Check
8067 source_styling.
8068 * cli/cli-style.c (source_styling): New global.
8069 (_initialize_cli_style): Add "style sources" commands.
8070 (show_style_sources): New function.
8071 * cli/cli-style.h (source_styling): Declare.
8072
6f11e682
TT
80732019-03-14 Pedro Alves <palves@redhat.com>
8074 Tom Tromey <tromey@adacore.com>
8075
8076 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8077 * tui/tui-winsource.c (tui_refill_source_window): New function,
8078 from...
8079 (tui_horizontal_source_scroll): ... here. Move some logic.
8080 * cli/cli-style.c (set_style_enabled): Notify new observable.
8081 * tui/tui-hooks.c (tui_redisplay_source): New function.
8082 (tui_attach_detach_observers): Attach or detach
8083 tui_redisplay_source.
8084 * observable.h (source_styling_changed): New observable.
8085 * observable.c: Define source_styling_changed observable.
8086
a068643d
TT
80872019-03-13 Tom Tromey <tromey@adacore.com>
8088
8089 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8090 (i386_gnu_nat_target::store_registers): Update.
8091 * target-debug.h (target_debug_print_std_string): New macro.
8092 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8093 * windows-tdep.c (display_one_tib): Update.
8094 * tui/tui-stack.c (tui_make_status_line): Update.
8095 * top.c (print_inferior_quit_action): Update.
8096 * thread.c (thr_try_catch_cmd): Update.
8097 (add_thread_with_info): Update.
8098 (thread_target_id_str): Update.
8099 (thr_try_catch_cmd): Update.
8100 (thread_command): Update.
8101 (thread_find_command): Update.
8102 * record-btrace.c (record_btrace_target::info_record)
8103 (record_btrace_resume_thread, record_btrace_target::resume)
8104 (record_btrace_cancel_resume, record_btrace_step_thread)
8105 (record_btrace_target::wait, record_btrace_target::wait)
8106 (record_btrace_target::wait, record_btrace_target::stop): Update.
8107 * progspace.c (print_program_space): Update.
8108 * process-stratum-target.c
8109 (process_stratum_target::thread_address_space): Update.
8110 * linux-fork.c (linux_fork_mourn_inferior)
8111 (detach_checkpoint_command, info_checkpoints_command)
8112 (linux_fork_context): Update.
8113 (linux_fork_detach): Update.
8114 (class scoped_switch_fork_info): Update.
8115 (delete_checkpoint_command): Update.
8116 * infrun.c (follow_fork_inferior): Update.
8117 (follow_fork_inferior): Update.
8118 (proceed_after_vfork_done): Update.
8119 (handle_vfork_child_exec_or_exit): Update.
8120 (follow_exec): Update.
8121 (displaced_step_prepare_throw): Update.
8122 (displaced_step_restore): Update.
8123 (start_step_over): Update.
8124 (resume_1): Update.
8125 (clear_proceed_status_thread): Update.
8126 (proceed): Update.
8127 (print_target_wait_results): Update.
8128 (do_target_wait): Update.
8129 (context_switch): Update.
8130 (stop_all_threads): Update.
8131 (restart_threads): Update.
8132 (finish_step_over): Update.
8133 (handle_signal_stop): Update.
8134 (switch_back_to_stepped_thread): Update.
8135 (keep_going_pass_signal): Update.
8136 (print_exited_reason): Update.
8137 (normal_stop): Update.
8138 * inferior.c (inferior_pid_to_str): Change return type.
8139 (print_selected_inferior): Update.
8140 (add_inferior): Update.
8141 (detach_inferior): Update.
8142 * dummy-frame.c (fprint_dummy_frames): Update.
8143 * dcache.c (dcache_info_1): Update.
8144 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8145 (btrace_fetch, btrace_clear): Update.
8146 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8147 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8148 type.
8149 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8150 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8151 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8152 * gdbarch.c, gdbarch.h: Rebuild.
8153 * gdbarch.sh (core_pid_to_str): Change return type.
8154 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8155 return type.
8156 (windows_nat_target::pid_to_str): Change return type.
8157 (windows_delete_thread): Update.
8158 (windows_nat_target::attach): Update.
8159 (windows_nat_target::files_info): Update.
8160 * target-delegates.c: Rebuild.
8161 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8162 return type.
8163 (sol_thread_target::pid_to_str): Change return type.
8164 * remote.c (class remote_target) <pid_to_str>: Change return
8165 type.
8166 (remote_target::pid_to_str): Change return type.
8167 (extended_remote_target::attach, remote_target::remote_stop_ns)
8168 (remote_target::remote_notif_remove_queued_reply)
8169 (remote_target::push_stop_reply, remote_target::disable_btrace):
8170 Update.
8171 (extended_remote_target::attach): Update.
8172 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8173 type.
8174 (gdbsim_target::pid_to_str): Change return type.
8175 * ravenscar-thread.c (struct ravenscar_thread_target)
8176 <pid_to_str>: Change return type.
8177 (ravenscar_thread_target::pid_to_str): Change return type.
8178 * procfs.c (class procfs_target) <pid_to_str>: Change return
8179 type.
8180 (procfs_target::pid_to_str): Change return type.
8181 (procfs_target::attach): Update.
8182 (procfs_target::detach): Update.
8183 (procfs_target::fetch_registers): Update.
8184 (procfs_target::store_registers): Update.
8185 (procfs_target::wait): Update.
8186 (procfs_target::files_info): Update.
8187 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8188 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8189 return type.
8190 (nto_procfs_target::pid_to_str): Change return type.
8191 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8192 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8193 return type.
8194 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8195 (exit_lwp): Update.
8196 (attach_proc_task_lwp_callback, get_detach_signal)
8197 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8198 (linux_nat_target::resume, wait_lwp, stop_callback)
8199 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8200 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8201 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8202 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8203 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8204 type.
8205 (inf_ptrace_target::attach): Update.
8206 (inf_ptrace_target::files_info): Update.
8207 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8208 type.
8209 (go32_nat_target::pid_to_str): Change return type.
8210 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8211 (gnu_nat_target::wait): Update.
8212 (gnu_nat_target::wait): Update.
8213 (gnu_nat_target::resume): Update.
8214 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8215 (fbsd_nat_target::wait): Update.
8216 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8217 type.
8218 (darwin_nat_target::attach): Update.
8219 * corelow.c (class core_target) <pid_to_str>: Change return type.
8220 (core_target::pid_to_str): Change return type.
8221 * target.c (normal_pid_to_str): Change return type.
8222 (default_pid_to_str): Likewise.
8223 (target_pid_to_str): Change return type.
8224 (target_translate_tls_address): Update.
8225 (target_announce_detach): Update.
8226 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8227 return type.
8228 (bsd_uthread_target::pid_to_str): Change return type.
8229 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8230 type.
8231 (bsd_kvm_target::pid_to_str): Change return type.
8232 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8233 return type.
8234 (aix_thread_target::pid_to_str): Change return type.
8235 * target.h (struct target_ops) <pid_to_str>: Change return type.
8236 (target_pid_to_str, normal_pid_to_str): Likewise.
8237 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8238 type.
8239 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8240 type.
8241 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8242 return type.
8243 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8244 type.
8245 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8246 type.
8247 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8248 return type.
8249
b4be1b06
SM
82502019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8251
8252 * NEWS: Mention that the new default MI version is 3. Mention
8253 changes to the output of commands and events that deal with
8254 multi-location breakpoints.
8255 * breakpoint.c: Include "mi/mi-out.h".
8256 (print_one_breakpoint): Change output syntax if using MI version
8257 >= 3.
8258 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8259 New.
8260 (mi_multi_location_breakpoint_output_fixed): New.
8261 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8262 (mi_cmd_fix_multi_location_breakpoint_output): New.
8263 (mi_multi_location_breakpoint_output_fixed): New.
8264 * mi/mi-cmds.c (mi_cmds): Register command
8265 -fix-multi-location-breakpoint-output.
8266 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8267 interpreter "mi".
8268
8e5e5494
SM
82692019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8270
8271 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8272 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8273 instantiate mi_ui_out based on interpreter name.
8274 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8275 * mi/mi-main.c (mi_load_progress): Likewise.
8276
197df35e
JB
82772019-03-12 John Baldwin <jhb@FreeBSD.org>
8278
8279 * NEWS: Combine separate "New targets" sections for 8.3.
8280
8399425f
JB
82812019-03-12 John Baldwin <jhb@FreeBSD.org>
8282
8283 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8284 (ppcfbsd_init_abi): Install gdbarch
8285 "fetch_tls_load_module_address" and "get_thread_local_address"
8286 methods.
8287
b0f87ed0
JB
82882019-03-12 John Baldwin <jhb@FreeBSD.org>
8289
8290 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8291 (riscv_fbsd_init_abi): Install gdbarch
8292 "fetch_tls_load_module_address" and "get_thread_local_address"
8293 methods.
8294
ce25aa57
JB
82952019-03-12 John Baldwin <jhb@FreeBSD.org>
8296
8297 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8298 (i386fbsd_init_abi): Install gdbarch
8299 "fetch_tls_load_module_address" and "get_thread_local_address"
8300 methods.
8301
f5424cfa
JB
83022019-03-12 John Baldwin <jhb@FreeBSD.org>
8303
8304 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8305 (amd64fbsd_init_abi): Install gdbarch
8306 "fetch_tls_load_module_address" and "get_thread_local_address"
8307 methods.
8308
945f3901
JB
83092019-03-12 John Baldwin <jhb@FreeBSD.org>
8310
8311 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8312 (struct fbsd_pspace_data): New type.
8313 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8314 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8315 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8316 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8317 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8318
ef0bd204
JB
83192019-03-12 John Baldwin <jhb@FreeBSD.org>
8320
8321 * gdbtypes.c (lookup_struct_elt): New function.
8322 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8323 * gdbtypes.h (struct struct_elt): New type.
8324 (lookup_struct_elt): New prototype.
8325
36c53a02
JB
83262019-03-12 John Baldwin <jhb@FreeBSD.org>
8327
8328 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8329 remove disabled code block.
8330
6e056c81
JB
83312019-03-12 John Baldwin <jhb@FreeBSD.org>
8332
8333 * gdbarch.sh (get_thread_local_address): New method.
8334 * gdbarch.h, gdbarch.c: Regenerate.
8335 * target.c (target_translate_tls_address): Use
8336 gdbarch_get_thread_local_address if present instead of
8337 target::get_thread_local_address.
8338
cd250a18
JB
83392019-03-12 John Baldwin <jhb@FreeBSD.org>
8340
8341 * target.h (target::get_thread_local_address): Update comment.
8342
df22c1e5
JB
83432019-03-12 John Baldwin <jhb@FreeBSD.org>
8344
8345 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8346 objfile->separate_debug_objfile_backlink if not NULL.
8347
dd6876c9
JB
83482019-03-12 John Baldwin <jhb@FreeBSD.org>
8349
8350 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8351 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8352 (amd64bsd_store_inferior_registers): Likewise.
8353 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8354 Enable segment base registers.
8355 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8356 PT_GETFSBASE and PT_GETGSBASE.
8357 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8358 PT_SETGSBASE.
8359 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8360 segment base registers.
8361 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8362
1163a4b7
JB
83632019-03-12 John Baldwin <jhb@FreeBSD.org>
8364
8365 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8366 Update calls to i386_target_description to add 'segments'
8367 parameter.
8368 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8369 add segment base registers.
8370 * arch/i386.c (i386_create_target_description): Add 'segments'
8371 parameter to enable segment base registers.
8372 * arch/i386.h (i386_create_target_description): Likewise.
8373 * features/i386/32bit-segments.xml: New file.
8374 * features/i386/32bit-segments.c: Generate.
8375 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8376 call to i386_target_description to add 'segments' parameter.
8377 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8378 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8379 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8380 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8381 if feature is present.
8382 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8383 Add 'segments' parameter to call to i386_target_description.
8384 (i386_target_description): Add 'segments' parameter to enable
8385 segment base registers.
8386 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8387 to call to i386_target_description.
8388 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8389 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8390 Define I386_NUM_REGS.
8391 (i386_target_description): Add 'segments' parameter to enable
8392 segment base registers.
8393
3a350822
EZ
83942019-03-12 Eli Zaretskii <eliz@gnu.org>
8395
8396 PR/24325
8397 * source-cache.c: #undef open and close, to avoid unresolved
8398 externals during linking.
8399
ffdd69cf
TT
84002019-03-12 Tom Tromey <tromey@adacore.com>
8401
8402 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8403 const. Add initializers.
8404 (_initialize_remote): Don't initialize ptid globals.
8405
ec148c57
PA
84062019-03-12 Pedro Alves <palves@redhat.com>
8407
8408 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8409
32764270
PA
84102019-03-12 Pedro Alves <palves@redhat.com>
8411
8412 * cp-name-parser.y (main): Remove unused 'len' variable.
8413
17547186
TT
84142019-03-12 Tom Tromey <tromey@adacore.com>
8415
8416 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8417 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8418
d3a70e03
TT
84192019-03-12 Tom Tromey <tromey@adacore.com>
8420
8421 * linux-nat.c (iterate_over_lwps): Update.
8422 (stop_callback): Remove parameter.
8423 (stop_wait_callback, detach_callback, resume_set_callback)
8424 (select_singlestep_lwp_callback, set_ignore_sigint)
8425 (status_callback, resumed_callback, resume_clear_callback)
8426 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8427 data parameter.
8428 (linux_nat_target::detach, linux_nat_target::resume)
8429 (linux_stop_and_wait_all_lwps, select_event_lwp)
8430 (linux_nat_filter_event, linux_nat_wait_1)
8431 (linux_nat_target::kill, linux_nat_target::stop)
8432 (linux_nat_target::stop): Update.
8433 (linux_nat_resume_callback): Change type.
8434 (resume_stopped_resumed_lwps, count_events_callback)
8435 (select_event_lwp_callback): Likewise.
8436 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8437 * arm-linux-nat.c (struct update_registers_data): Remove.
8438 (update_registers_callback): Change type.
8439 (arm_linux_insert_hw_breakpoint1): Update.
8440 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8441 parameter.
8442 (x86_linux_dr_set_addr): Update.
8443 (x86_linux_dr_set_control): Update.
8444 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8445 (iterate_over_lwps): Use gdb::function_view.
8446 * nat/aarch64-linux-hw-point.c (struct
8447 aarch64_dr_update_callback_param): Remove.
8448 (debug_reg_change_callback): Change type.
8449 (aarch64_notify_debug_reg_change): Update.
8450 * s390-linux-nat.c (s390_refresh_per_info): Update.
8451
82cb27ff
TT
84522019-03-11 Tom Tromey <tromey@adacore.com>
8453
8454 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8455 redundant assignment to "this_cu".
8456
568c0683
SM
84572019-03-08 Simon Marchi <simon.marchi@efficios.com>
8458
8459 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8460
f09ce22d
SM
84612019-03-08 Simon Marchi <simon.marchi@efficios.com>
8462
8463 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8464 from...
8465 (rank_one_type): ... this.
8466
595f96a9
SM
84672019-03-08 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8470 from...
8471 (rank_one_type): ... this.
8472
2598a94b
SM
84732019-03-08 Simon Marchi <simon.marchi@efficios.com>
8474
8475 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8476 from...
8477 (rank_one_type): ... this.
8478
7f17b20d
SM
84792019-03-08 Simon Marchi <simon.marchi@efficios.com>
8480
8481 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8482 from...
8483 (rank_one_type): ... this.
8484
2c509035
SM
84852019-03-08 Simon Marchi <simon.marchi@efficios.com>
8486
8487 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8488 from...
8489 (rank_one_type): ... this.
8490
0dd322dc
SM
84912019-03-08 Simon Marchi <simon.marchi@efficios.com>
8492
8493 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8494 from...
8495 (rank_one_type): ... this.
8496
41ea4728
SM
84972019-03-08 Simon Marchi <simon.marchi@efficios.com>
8498
8499 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8500 from...
8501 (rank_one_type): ... this.
8502
793cd1d2
SM
85032019-03-08 Simon Marchi <simon.marchi@efficios.com>
8504
8505 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8506 from...
8507 (rank_one_type): ... this.
8508
34910087
SM
85092019-03-08 Simon Marchi <simon.marchi@efficios.com>
8510
8511 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8512 from...
8513 (rank_one_type): ... this.
8514
f1f832d6
SM
85152019-03-08 Simon Marchi <simon.marchi@efficios.com>
8516
8517 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8518 from...
8519 (rank_one_type): ... this.
8520
b9f4512f
SM
85212019-03-08 Simon Marchi <simon.marchi@efficios.com>
8522
8523 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8524 from...
8525 (rank_one_type): ... this.
8526
9293fc63
SM
85272019-03-08 Simon Marchi <simon.marchi@efficios.com>
8528
8529 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8530 from...
8531 (rank_one_type): ... this.
8532
e3abbe7e
PW
85332019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8534
8535 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8536 inferior-events' shows the example events.
8537
e4adb939
EZ
85382019-03-08 Eli Zaretskii <eliz@gnu.org>
8539
8540 Support styling on native MS-Windows console
8541
8542 PR/24315
8543 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8544 on MS-Windows if $TERM is not defined.
8545
8546 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8547
8548 * posix-hdep.c (gdb_console_fputs):
8549 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8550 functions.
8551 * ui-file.h (gdb_console_fputs): Add prototype.
8552
8553 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8554 back to fputs only if the former returns zero.
8555
25629dfd
TT
85562019-03-07 Tom Tromey <tom@tromey.com>
8557
8558 * symmisc.c (print_symbol_bcache_statistics): Update.
8559 (print_objfile_statistics): Update.
8560 * symfile.c (allocate_symtab): Update.
8561 * stabsread.c: Don't include bcache.h.
8562 * psymtab.h (struct psymbol_bcache): Don't declare.
8563 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8564 (psymbol_bcache_init, psymbol_bcache_free)
8565 (psymbol_bcache_get_bcache): Don't declare.
8566 * psymtab.c (struct psymbol_bcache): Remove.
8567 (psymtab_storage::psymtab_storage): Update.
8568 (psymtab_storage::~psymtab_storage): Update.
8569 (psymbol_bcache_init, psymbol_bcache_free)
8570 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8571 (add_psymbol_to_bcache): Update.
8572 (allocate_psymtab): Update.
8573 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8574 macro_cache>: No longer pointers.
8575 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8576 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8577 * macrotab.c (macro_bcache): Update.
8578 * macroexp.c: Don't include bcache.h.
8579 * gdbtypes.c (check_types_worklist): Update.
8580 (types_deeply_equal): Remove TRY/CATCH. Update.
8581 * elfread.c (elf_symtab_read): Update.
8582 * dwarf2read.c: Don't include bcache.h.
8583 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8584 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8585 (print_bcache_statistics, bcache_memory_used): Don't declare.
8586 (struct bcache): Move from bcache.c. Add constructor, destructor,
8587 methods. Rename all data members.
8588 * bcache.c (struct bcache): Move to bcache.h.
8589 (bcache::expand_hash_table): Rename from expand_hash_table.
8590 (bcache): Remove.
8591 (bcache::insert): Rename from bcache_full.
8592 (bcache::compare): Rename from bcache_compare.
8593 (bcache_xmalloc): Remove.
8594 (bcache::~bcache): Rename from bcache_xfree.
8595 (bcache::print_statistics): Rename from print_bcache_statistics.
8596 (bcache::memory_used): Rename from bcache_memory_used.
8597
fe726667
PA
85982019-03-07 Pedro Alves <palves@redhat.com>
8599
8600 * infrun.c (normal_stop): Also check for
8601 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8602
7584bb30
AB
86032019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8604
8605 * f-lang.c (value_from_host_double): Moved to...
8606 * value.c (value_from_host_double): ...here.
8607 * value.h (value_from_host_double): Declare.
8608 * guile/scm-math.c (vlscm_convert_typed_number): Use
8609 value_from_host_double.
8610 (vlscm_convert_number): Likewise.
8611 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8612 * python/py-value.c (convert_value_from_python): Likewise.
8613
a7b1986e
TT
86142019-03-06 Tom Tromey <tom@tromey.com>
8615
8616 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8617
0ccf4211
TT
86182019-03-06 Tom Tromey <tom@tromey.com>
8619
8620 * utils.h (free_current_contents): Don't declare.
8621 * utils.c (free_current_contents): Remove.
8622
fe7b42e5
TT
86232019-03-06 Tom Tromey <tom@tromey.com>
8624
8625 * top.c (quit_force): Update.
8626 * main.c (captured_command_loop): Update.
8627 * common/new-op.c (operator new): Update.
8628 * common/common-exceptions.c (struct catcher)
8629 <save_cleanup_chain>: Remove member.
8630 (exceptions_state_mc_init): Update.
8631 (exception_try_scope_entry): Return nullptr.
8632 (exception_try_scope_exit, exception_rethrow)
8633 (throw_exception_sjlj, throw_exception_cxx): Update.
8634 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8635 (all_cleanups, do_cleanups, discard_cleanups)
8636 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8637 (restore_cleanups, restore_final_cleanups): Don't declare.
8638 (do_final_cleanups): Remove parameter.
8639 * common/cleanups.c (cleanup_chain, make_cleanup)
8640 (make_cleanup_dtor, all_cleanups, do_cleanups)
8641 (discard_my_cleanups, discard_cleanups)
8642 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8643 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8644 (null_cleanup): Remove.
8645 (do_final_cleanups): Remove parameter.
8646
c6321f19
TT
86472019-03-06 Tom Tromey <tom@tromey.com>
8648
8649 * remote.c (remote_target::remote_parse_stop_reply): Use
8650 unique_xmalloc_ptr.
8651
61b30099
TT
86522019-03-06 Tom Tromey <tom@tromey.com>
8653
8654 * stabsread.c (struct stabs_field_info): Rename from field_info.
8655 <list, fnlist>: Add initializers.
8656 <obstack>: New member.
8657 (read_member_functions, read_struct_fields, read_baseclasses):
8658 Allocate on obstack. Don't use cleanups.
8659 (read_one_struct_field, read_member_functions, read_struct_fields)
8660 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8661 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8662 (read_struct_type): Update.
8663
6cceac94
TT
86642019-03-06 Tom Tromey <tom@tromey.com>
8665
8666 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8667 * common/filestuff.h (make_cleanup_close): Don't declare.
8668 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8669 Remove.
8670
72412762
TT
86712019-03-06 Tom Tromey <tom@tromey.com>
8672
8673 * solib-aix.c: Use make_scope_exit.
8674
2b6ff1c0
TT
86752019-03-06 Tom Tromey <tom@tromey.com>
8676
8677 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8678 Use make_scope_exit.
8679
d01c5877
TT
86802019-03-06 Tom Tromey <tom@tromey.com>
8681
8682 * solib-svr4.c (disable_probes_interface): Remove parameter.
8683 (svr4_handle_solib_event): Use make_scope_exit.
8684
32603266
TT
86852019-03-06 Tom Tromey <tom@tromey.com>
8686
8687 * remote.c (struct stop_reply_deleter): Remove.
8688 (stop_reply_up): Update.
8689 (struct stop_reply): Derive from notif_event. Don't typedef.
8690 <regcache>: Now a std::vector.
8691 (stop_reply_xfree): Remove.
8692 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8693 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8694 (remote_target::discard_pending_stop_replies): Use delete.
8695 (remote_target::remote_parse_stop_reply): Update.
8696 (remote_target::process_stop_reply): Update.
8697 * remote-notif.h (struct notif_event): Add virtual destructor.
8698 Remove "dtr" member.
8699 (struct notif_client) <alloc_event>: Return a unique_ptr.
8700 (notif_event_xfree): Don't declare.
8701 (notif_event_up): New typedef.
8702 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8703 (notif_event_xfree, do_notif_event_xfree): Remove.
8704 (remote_notif_state_xfree): Update.
8705
9799571e
TT
87062019-03-06 Tom Tromey <tom@tromey.com>
8707
8708 * infrun.c (displaced_step_clear_cleanup): Now a
8709 forward_scope_exit type.
8710 (displaced_step_prepare_throw): Update.
8711 (displaced_step_fixup): Update.
8712
09e3c4ca
TT
87132019-03-06 Tom Tromey <tom@tromey.com>
8714
8715 * inferior.h (class inferior): Update comment.
8716 * gdbthread.h (class thread_info): Update comment.
8717
e2a03548
TT
87182019-03-06 Joel Brobecker <brobecker@adacore.com>
8719 Tom Tromey <tom@tromey.com>
8720
8721 * stabsread.h (struct stab_section_list): Remove.
8722 (coffstab_build_psymtabs): Update.
8723 * dbxread.c (symbuf_sections): Now a std::vector.
8724 (sect_idx): New global.
8725 (fill_symbuf): Update.
8726 (coffstab_build_psymtabs): Change type of stabsects parameter.
8727 Update.
8728 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8729 std::vector.
8730 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8731 (coff_locate_sections): Update.
8732 (coff_symfile_read): Remove cleanups. Update.
8733 (init_stringtab): Add storage parameter.
8734 (free_stringtab, free_stringtab_cleanup): Remove.
8735 (init_lineno): Add storage parameter.
8736 (free_linetab, free_linetab_cleanup): Remove.
8737
b7e60d85
PA
87382019-03-06 Pedro Alves <palves@redhat.com>
8739
8740 * linux-fork.c (fork_info::clobber_regs): Delete.
8741 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8742 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8743 comment. Adjust.
8744 (scoped_switch_fork_info::scoped_switch_fork_info)
8745 (checkpoint_command, linux_fork_context): Adjust
8746 fork_save_infrun_state calls.
8747
e52c971f
PA
87482019-03-06 Pedro Alves <palves@redhat.com>
8749
8750 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8751 (inf_has_multiple_threads): Return 'bool' and rewrite using
8752 inferior_info::threads().
8753
06974e6c
PA
87542019-03-06 Pedro Alves <palves@redhat.com>
8755
8756 * linux-fork.c: Include <list>.
8757 (fork_list): Now a std::list instance.
8758 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8759 (forks_exist_p, find_last_fork): Adjust.
8760 (new_fork): Delete.
8761 (one_fork_p): New.
8762 (add_fork): Adjust.
8763 (free_fork): Delete, folded into fork_info::~fork_info().
8764 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8765 Adjust.
8766 (init_fork_list): Delete.
8767 (linux_fork_killall, linux_fork_mourn_inferior)
8768 (linux_fork_detach, info_checkpoints_command): Adjust.
8769 (_initialize_linux_fork): No longer call init_fork_list.
8770
72f31aea
PA
87712019-03-06 Pedro Alves <palves@redhat.com>
8772
8773 * linux-fork.c (new_fork): New, split out of ...
8774 (add_fork): ... this. Return void. Move "first fork" special
8775 case from here, to ...
8776 (checkpoint_command): ... here.
8777 * linux-linux.h (add_fork): Return void.
8778
efbecbc1
AB
87792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8780
8781 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8782
0841c79a
AB
87832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8784 Chris January <chris.january@arm.com>
8785 David Lecomber <david.lecomber@arm.com>
8786
8787 * f-exp.y: New token, UNOP_INTRINSIC.
8788 (exp): New pattern using UNOP_INTRINSIC token.
8789 (f77_keywords): Add 'abs' keyword.
8790 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8791 (value_from_host_double): New function.
8792 (evaluate_subexp_f): Support UNOP_ABS.
8793
4a270568
AB
87942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8795
8796 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8797 types.
8798
067630bd
AB
87992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8800
8801 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8802 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8803 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8804
3be47f7a
AB
88052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8806
8807 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8808
4d00f5d8
AB
88092019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8810 Chris January <chris.january@arm.com>
8811
8812 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8813 * f-exp.y: Define 'KIND' token.
8814 (exp): New pattern for KIND expressions.
8815 (ptype): Handle types with a kind extension.
8816 (direct_abs_decl): Extend to spot kind extensions.
8817 (f77_keywords): Add 'kind' to the list.
8818 (push_kind_type): New function.
8819 (convert_to_kind_type): New function.
8820 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8821 * parse.c (operator_length_standard): Likewise.
8822 * parser-defs.h (enum type_pieces): Add tp_kind.
8823 * std-operator.def: Add UNOP_KIND.
8824
e454224f
AB
88252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8826
8827 * f-exp.y (f_parse): Set yydebug.
8828
9dad4a58
AB
88292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8830
8831 * f-lang.c (evaluate_subexp_f): New function.
8832 (exp_descriptor_f): New global.
8833 (f_language_defn): Use exp_descriptor_f instead of
8834 exp_descriptor_standard.
8835
c8f91604
AB
88362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8837
8838 * f-exp.y (struct token): Add comments.
8839 (dot_ops): Remove uppercase versions and the end marker.
8840 (f77_keywords): Likewise.
8841 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8842 entries in the dot_ops array are case insensitive, and use
8843 strncasecmp to compare strings. Also some whitespace cleanup in
8844 this area. Similar for the f77_keywords array, except entries in
8845 this list might be case sensitive.
8846
dd9f2c76
AB
88472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8848
8849 * f-exp.y (struct f77_boolean_val): Add comments.
8850 (boolean_values): Remove uppercase versions, and end marker.
8851 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8852 and use strncasecmp to achieve case insensitivity. Additionally,
8853 perform whitespace cleanup around this code.
8854
67a3048c
TT
88552019-03-06 Tom Tromey <tromey@adacore.com>
8856
8857 * remote-sim.c (gdbsim_target_open): Use result of
8858 gdb_argv::release.
8859
aa3cfbda
RB
88602019-03-06 Richard Bunt <richard.bunt@arm.com>
8861 Dirk Schubert <dirk.schubert@arm.com>
8862 Chris January <chris.january@arm.com>
8863
8864 * eval.c (evaluate_subexp_standard): Call Fortran argument
8865 wrapping logic.
8866 * f-lang.c (struct value): A value which can be passed into a
8867 Fortran function call.
8868 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8869 where appropriate.
8870 (struct type): Value ready for a Fortran function call.
8871 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8872 is needed.
8873 * f-lang.h (fortran_argument_convert): Declaration.
8874 (fortran_preserve_arg_pointer): Declaration.
8875 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8876
ea38e5df
TT
88772019-03-05 Tom Tromey <tromey@adacore.com>
8878
8879 * python/py-prettyprint.c (print_string_repr): Remove #if.
8880 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8881
06b5b831
TT
88822019-03-05 Tom Tromey <tromey@adacore.com>
8883
8884 * target.c (the_dummy_target): Move later. Change type to
8885 "dummy_target".
8886 (initialize_targets): Don't initialize the_dummy_target.
8887
edbd9e45
TT
88882019-03-05 Tom Tromey <tromey@adacore.com>
8889
8890 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8891 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8892
c119e040
TT
88932019-03-05 Tom Tromey <tromey@adacore.com>
8894
8895 * windows-nat.c (windows_nat_target::attach)
8896 (windows_nat_target::detach): Don't call gdb_flush.
8897 * valprint.c (generic_val_print, val_print, val_print_string):
8898 Don't call gdb_flush.
8899 * utils.c (defaulted_query): Don't call gdb_flush.
8900 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8901 * target.c (target_announce_detach): Don't call gdb_flush.
8902 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8903 * remote.c (extended_remote_target::attach): Don't call
8904 gdb_flush.
8905 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8906 * printcmd.c (do_examine): Don't call gdb_flush.
8907 (info_display_command): Don't call gdb_flush.
8908 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8909 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8910 * memattr.c (info_mem_command): Don't call gdb_flush.
8911 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8912 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8913 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8914 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8915 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8916 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8917 (gnu_nat_target::detach): Don't call gdb_flush.
8918 * f-valprint.c (f_val_print): Don't call gdb_flush.
8919 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8920 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8921 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8922 gdb_flush.
8923 * c-valprint.c (c_val_print): Don't call gdb_flush.
8924 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8925
895dafa6
TT
89262019-03-05 Tom Tromey <tromey@adacore.com>
8927
8928 * varobj.c (update_dynamic_varobj_children): Update.
8929 (install_default_visualizer): Use reset, not release.
8930 * value.c (set_internalvar): Update.
8931 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8932 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8933 ATTRIBUTE_UNUSED_RESULT.
8934
88a774b9
TT
89352019-03-05 Tom Tromey <tromey@adacore.com>
8936
8937 * remote.c (class scoped_remote_fd) <release>: Add
8938 ATTRIBUTE_UNUSED_RESULT.
8939
4e4a8b93
TT
89402019-03-05 Tom Tromey <tromey@adacore.com>
8941
8942 * macroexp.c (struct macro_buffer) <release>: Add
8943 ATTRIBUTE_UNUSED_RESULT.
8944
083eef1f
TT
89452019-03-05 Tom Tromey <tromey@adacore.com>
8946
8947 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8948 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8949 ATTRIBUTE_UNUSED_RESULT.
8950
3cabd438
TT
89512019-03-05 Tom Tromey <tromey@adacore.com>
8952
8953 * common/scoped_fd.h (class scoped_fd) <release>: Add
8954 ATTRIBUTE_UNUSED_RESULT.
8955
41e3300a
TT
89562019-03-05 Tom Tromey <tromey@adacore.com>
8957
8958 * parser-defs.h (struct parser_state) <release>: Add
8959 ATTRIBUTE_UNUSED_RESULT.
8960
18cb7c9f
TT
89612019-03-05 Tom Tromey <tromey@adacore.com>
8962
8963 * utils.h (class gdb_argv) <release>: Add
8964 ATTRIBUTE_UNUSED_RESULT.
8965 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8966
41fa577f
EZ
89672019-03-02 Eli Zaretskii <eliz@gnu.org>
8968
a6a4b2c6
EZ
8969 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8970 for-loop range, to avoid compiler warnings.
8971
8972 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8973 avoid compiler warnings about unused variables.
8974
742a7df5
EZ
8975 * NEWS: Mention end of support for native debugging on MS-Windows
8976 before XP.
8977
41fa577f
EZ
8978 PR gdb/24292
8979 * common/netstuff.c:
8980 * gdbserver/gdbreplay.c
8981 * gdbserver/remote-utils.c:
8982 * ser-tcp.c:
8983 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8984 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8985 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8986 'getaddrinfo' and 'freeaddrinfo' were not available before
8987 Windows XP, and mingw.org's MinGW headers by default define
8988 _WIN32_WINNT to 0x500.
8989
827f438f
GB
89902019-03-01 Gary Benson <gbenson@redhat.com>
8991
8992 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8993
92137da0
RO
89942019-02-28 Brian Vandenberg <phantall@gmail.com>
8995 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8996
8997 PR gdb/8527
8998 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8999 set_sigint_trap, clear_sigint_trap.
9000
799efbe8
PW
90012019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9002
9003 * target.c (target_detach): Clear the regcache and the
9004 frame cache.
9005
8ed25214
PA
90062019-02-27 Pedro Alves <palves@redhat.com>
9007
9008 * utils.c (set_screen_size): When we cap the height/width sizes,
9009 tweak the corresponding command variable to show "unlimited":
9010
23031e31
SJ
90112019-02-27 Saagar Jha <saagar@saagarjha.com>
9012 Pedro Alves <palves@redhat.com>
9013
9014 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9015 before calling rl_set_screen_size.
9016
6c28e44a
TT
90172019-02-27 Tom Tromey <tromey@adacore.com>
9018
9019 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9020 define.
9021 * python/py-value.c: Remove Python 2.4 workaround.
9022 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9023 workaround.
9024 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9025 Python 2.4 workaround.
9026 * python/python-internal.h: Remove Python 2.4 comment.
9027 (Py_ssize_t): Don't define.
9028 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9029 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9030 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9031 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9032 * python/python.c (do_start_initialization): Remove Python 2.4
9033 workaround.
9034 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9035 (print_children): Remove Python 2.4 workaround.
9036 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9037 workaround.
9038 (CHARBUFFERPROC_NAME): Remove.
9039 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9040 Python 2.4 workaround.
9041
2c3fc25d 90422019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 9043
2c3fc25d
KB
9044 * NEWS: Note minimum Python version.
9045
6ca62222
KB
90462019-02-27 Kevin Buettner <kevinb@redhat.com>
9047
9048 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9049 code from these functions. Remove corresponding ifdefs. Use
9050 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9051 Remove gotos and target of gotos.
9052 (infpy_search_memory): Likewise.
9053
f4bc7d2c
AB
90542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9055
9056 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9057 (hppa_gdbarch_init): Don't register deleted functions with
9058 gdbarch.
9059
9734a586
AB
90602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9061
9062 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9063 (h8300_unwind_sp): Delete.
9064 (h8300_dummy_id): Delete.
9065 (h8300_gdbarch_init): Don't register deleted functions with
9066 gdbarch.
9067
68b867f3
AB
90682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9069
9070 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9071 (ft32_unwind_pc): Delete.
9072 (ft32_unwind_sp): Delete.
9073 (ft32_gdbarch_init): Don't register deleted functions with
9074 gdbarch.
9075
2fbe7ad0
AB
90762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9077
9078 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9079 (frv_unwind_pc): Delete.
9080 (frv_unwind_sp): Delete.
9081 (frv_gdbarch_init): Don't register deleted functions with
9082 gdbarch.
9083
76055cbe
AB
90842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9085
9086 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9087 (riscv_unwind_pc): Delete.
9088 (riscv_unwind_sp): Delete.
9089 (riscv_gdbarch_init): Don't register deleted functions with
9090 gdbarch.
9091
4133e5a1
AB
90922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9095 (csky_unwind_pc): Delete.
9096 (csky_unwind_sp): Delete.
9097 (csky_gdbarch_init): Don't register deleted functions with
9098 gdbarch.
9099
8010f576
AB
91002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9101
9102 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9103 (cris_unwind_pc): Delete.
9104 (cris_unwind_sp): Delete.
9105 (cris_gdbarch_init): Don't register deleted functions with
9106 gdbarch.
9107
b56bf084
AB
91082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9109
9110 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9111 (bfin_unwind_pc): Delete.
9112 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9113
a19a650f
AB
91142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9117 (arm_unwind_pc): Delete.
9118 (arm_unwind_sp): Delete.
9119 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9120
f8278c3c
AB
91212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9122
9123 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9124 (arc_unwind_pc): Delete.
9125 (arc_unwind_sp): Delete.
9126 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9127
480e46cf
AB
91282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9129
9130 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9131 (alpha_unwind_pc): Delete.
9132 (alpha_gdbarch_init): Don't register deleted functions with
9133 gdbarch.
9134
7a995095
AB
91352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9136
9137 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9138 (aarch64_unwind_pc): Delete.
9139 (aarch64_unwind_sp): Delete.
9140 (aarch64_gdbarch_init): Don't register deleted functions with
9141 gdbarch.
9142
bf9a735e
AB
91432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9144
9145 * gdbtypes.c (type_align): Don't consider static members when
9146 computing structure alignment.
9147
5561fc30
AB
91482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9149
9150 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9151 return 0 for other types.
9152 * arch-utils.c (default_type_align): Always return 0.
9153 * gdbarch.h: Regenerate.
9154 * gdbarch.sh (type_align): Extend comment.
9155 * gdbtypes.c (type_align): Add additional comments, always call
9156 gdbarch_type_align before applying the default rules.
9157 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9158 generic code will then apply a suitable default.
9159 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9160 types, return 0 for other types.
9161
9335e75a
JB
91622019-02-27 Joel Brobecker <brobecker@adacore.com>
9163
9164 * NEWS: Create a new section for the next release branch.
9165 Rename the section of the current branch, now that it has
9166 been cut.
9167
3d34d8de
JB
91682019-02-27 Joel Brobecker <brobecker@adacore.com>
9169
9170 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9171 * version.in: Bump version to 8.3.50.DATE-git.
9172
143420fb
SM
91732019-02-26 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * aix-thread.c (ptid_cmp): Remove unused variable.
9176 (get_signaled_thread): Likewise.
9177 (store_regs_user_thread): Likewise.
9178 (store_regs_kernel_thread): Likewise.
9179 (fetch_regs_kernel_thread): Remove shadowed variable.
9180
172fb711
AB
91812019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9182
9183 * features/riscv/32bit-cpu.xml: Add register numbers.
9184 * features/riscv/32bit-fpu.c: Regenerate.
9185 * features/riscv/32bit-fpu.xml: Add register numbers.
9186 * features/riscv/64bit-cpu.xml: Add register numbers.
9187 * features/riscv/64bit-fpu.c: Regenerate.
9188 * features/riscv/64bit-fpu.xml: Add register numbers.
9189
26c89782
KB
91902019-02-26 Kevin Buettner <kevinb@redhat.com>
9191
af54ade9 9192 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
9193 * python/py-value.c (convert_buffer_and_type_to_value): New
9194 function.
9195 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9196 Add support for handling an optional second argument. Call
9197 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
9198 * python/python-internal.h (Py_buffer_deleter): New struct.
9199 (Py_buffer_up): New typedef.
9200
0f58c9e8
JB
92012019-02-25 John Baldwin <jhb@FreeBSD.org>
9202
9203 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9204 instead of releasing ownership.
9205
0a0f4c01
JR
92062019-02-25 Jordan Rupprecht <rupprecht@google.com>
9207
9208 * dwarf2read.c (open_and_init_dwp_file): Call
9209 elf_numsections instead of bfd_count_sections to initialize
9210 dwp_file->num_sections.
9211
cd5a152c
TT
92122019-02-25 Tom Tromey <tromey@adacore.com>
9213
9214 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9215
8a6a8513
SDJ
92162019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9217
9218 * gcore.in: Add '--readnever' option when invoking GDB.
9219
04dcda9c
SM
92202019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9221
9222 * MAINTAINERS: Update my email address.
9223
07bc701d
SM
92242019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9225
9226 * build-id.c (build_id_to_debug_bfd_1): New function.
9227 (build_id_to_debug_bfd): Look for separate debug file in
9228 sysroot.
9229
c6f4a5d0
AB
92302019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9231
9232 * gdbarch.sh: Update the copyright year range that is placed into
9233 generated files.
9234
9600246d
KS
92352019-02-22 Keith Seitz <keiths@redhat.com>
9236
9237 PR symtab/23853
9238 * linespec.c (create_sals_line_offset): Search for the default
9239 symtab's filename instead of its fullname.
9240
7557a514
AH
92412019-02-21 Alan Hayward <alan.hayward@arm.com>
9242
9243 * NEWS: Update style defaults.
9244
ee2bcb0c
AH
92452019-02-21 Alan Hayward <alan.hayward@arm.com>
9246
9247 * main.c (captured_main_1): Disable styling in batch mode.
9248
0c95f9ed
TT
92492019-02-20 Tom Tromey <tom@tromey.com>
9250
9251 * symtab.c (symtab_symbol_info): Fix typos.
9252
c763b894
TT
92532019-02-20 Tom Tromey <tromey@adacore.com>
9254
9255 * findcmd.c (_initialize_mem_search): Use upper case for
9256 metasyntactic variables.
9257
0ef8a082
AH
92582019-02-20 Alan Hayward <alan.hayward@arm.com>
9259
9260 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9261 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9262
6caa91b6
SM
92632019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9264
9265 * top.h (source_file_name): Change to std::string.
9266 * top.c (source_file_name): Likewise.
9267 (command_line_input): Adjust.
9268 * cli/cli-script.c (script_from_file): Adjust.
9269
98814c6c
TT
92702019-02-19 Tom Tromey <tromey@adacore.com>
9271
9272 * ravenscar-thread.c
9273 (ravenscar_thread_target::update_thread_list): Don't call
9274 ada_build_task_list.
9275 * ada-lang.h (ada_build_task_list): Don't declare.
9276 * ada-tasks.c (struct ada_tasks_inferior_data)
9277 <task_list_valid_p>: Now bool.
9278 (read_known_tasks, ada_task_list_changed)
9279 (ada_tasks_invalidate_inferior_data): Update.
9280 (read_known_tasks_array): Return bool.
9281 (read_known_tasks_list): Likewise.
9282 (read_known_tasks): Return void.
9283 (ada_build_task_list): Now static.
9284
70cd633e
AB
92852019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9286
9287 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9288 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9289
040b3e95
PW
92902019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9291
9292 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9293 variant for ada_tasks_pspace_data_handle and
9294 ada_tasks_inferior_data_handle.
9295 (ada_tasks_pspace_data_cleanup): New function.
9296 (ada_tasks_inferior_data_cleanup): New function.
9297
9409233b
TT
92982019-02-17 Tom Tromey <tom@tromey.com>
9299
9300 * macrotab.h (macro_source_fullname): Return a std::string.
9301 * macrotab.c (macro_include, check_for_redefinition)
9302 (macro_undef, macro_lookup_definition, foreach_macro)
9303 (foreach_macro_in_scope): Update.
9304 (macro_source_fullname): Return a std::string.
9305 * macrocmd.c (show_pp_source_pos): Update.
9306
6506371f
TT
93072019-02-17 Tom Tromey <tom@tromey.com>
9308
9309 * macrocmd.c (show_pp_source_pos): Style the file names.
9310
0c820d67
TT
93112019-02-17 Tom Tromey <tom@tromey.com>
9312
9313 PR tui/24197:
9314 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9315
a0087920
TT
93162019-02-17 Tom Tromey <tom@tromey.com>
9317
9318 * ada-lang.c (user_select_syms): Use filtered printing.
9319 * utils.c (wrap_style): New global.
9320 (desired_style): Remove.
9321 (emit_style_escape): Add stream parameter.
9322 (set_output_style, reset_terminal_style, prompt_for_continue):
9323 Update.
9324 (flush_wrap_buffer): Only flush gdb_stdout.
9325 (wrap_here): Set wrap_style.
9326 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9327 treat escape sequences as a character. Change when wrap buffer is
9328 flushed.
9329 (fputs_styled): Do not set the output style when the default is
9330 requested.
9331 * ui-style.h (struct ui_file_style) <is_default>: New method.
9332 * source.c (print_source_lines_base): Emit escape sequences in one
9333 piece.
9334
75ba10dc
JB
93352019-02-17 Joel Brobecker <brobecker@adacore.com>
9336
9337 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9338 integers and enumeration types.
9339
a2cd4f14
JB
93402019-02-17 Joel Brobecker <brobecker@adacore.com>
9341
9342 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9343 instead of lookup_symbol_in_language
9344 (do_exact_match): New function.
9345 (ada_get_symbol_name_matcher): Return do_exact_match when
9346 doing a verbatim match.
9347
485b851b
TT
93482019-02-15 Tom Tromey <tromey@adacore.com>
9349
9350 * ravenscar-thread.c (ravenscar_thread_target::resume)
9351 (ravenscar_thread_target::wait): Special case wildcard requests.
9352
0b790b1e
TT
93532019-02-15 Tom Tromey <tromey@adacore.com>
9354
9355 * ravenscar-thread.c (base_ptid): Remove.
9356 (struct ravenscar_thread_target) <close>: New method.
9357 <m_base_ptid>: New member.
9358 <update_inferior_ptid, active_task, task_is_currently_active,
9359 runtime_initialized>: Declare methods.
9360 <ravenscar_thread_target>: Add constructor.
9361 (ravenscar_thread_target::task_is_currently_active)
9362 (ravenscar_thread_target::update_inferior_ptid)
9363 (ravenscar_runtime_initialized): Rename. Now methods.
9364 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9365 (ravenscar_thread_target::update_thread_list): Update.
9366 (ravenscar_thread_target::active_task): Now method.
9367 (ravenscar_thread_target::store_registers)
9368 (ravenscar_thread_target::prepare_to_store)
9369 (ravenscar_thread_target::prepare_to_store)
9370 (ravenscar_thread_target::mourn_inferior): Update.
9371 (ravenscar_inferior_created): Use "new" to create target.
9372 (ravenscar_thread_target::get_ada_task_ptid): Update.
9373 (_initialize_ravenscar): Don't initialize base_ptid.
9374 (ravenscar_ops): Remove global.
9375
dea57a62
TT
93762019-02-15 Tom Tromey <tromey@adacore.com>
9377
9378 * target.h (push_target): Declare new overload.
9379 * target.c (push_target): New overload, taking an rvalue reference.
9380 * remote.c (remote_target::open_1): Use push_target overload.
9381 * corelow.c (core_target_open): Use push_target overload.
9382
989f3c58
TT
93832019-02-15 Tom Tromey <tromey@adacore.com>
9384
9385 * ravenscar-thread.c (is_ravenscar_task)
9386 (ravenscar_task_is_currently_active): Return bool.
9387 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9388 (_initialize_ravenscar): Remove "(void)".
9389 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9390 Return bool.
9391
6cbcc006
TT
93922019-02-15 Tom Tromey <tromey@adacore.com>
9393
9394 * ravenscar-thread.c (ravenscar_runtime_initializer)
9395 (has_ravenscar_runtime, get_running_thread_id)
9396 (ravenscar_thread_target::resume): Fix indentation.
9397
7657f14d
TT
93982019-02-15 Tom Tromey <tromey@adacore.com>
9399
9400 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9401 from ravenscar_arch_ops.
9402 (sparc_ravenscar_ops::fetch_registers)
9403 (sparc_ravenscar_ops::store_registers): Now methods.
9404 (sparc_ravenscar_prepare_to_store): Remove.
9405 (sparc_ravenscar_ops): Redefine.
9406 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9407 methods and destructor. Remove members.
9408 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9409 (ravenscar_thread_target::store_registers)
9410 (ravenscar_thread_target::prepare_to_store): Update.
9411 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9412 Remove.
9413 (struct ppc_ravenscar_powerpc_ops): Derive from
9414 ravenscar_arch_ops.
9415 (ppc_ravenscar_powerpc_ops::fetch_registers)
9416 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9417 (ppc_ravenscar_powerpc_ops): Redefine.
9418 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9419 (ppc_ravenscar_e500_ops::fetch_registers)
9420 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9421 (ppc_ravenscar_e500_ops): Redefine.
9422 * aarch64-ravenscar-thread.c
9423 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9424 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9425 (aarch64_ravenscar_fetch_registers)
9426 (aarch64_ravenscar_store_registers): Now methods.
9427 (aarch64_ravenscar_ops): Redefine.
9428
5b6ea500
TT
94292019-02-15 Tom Tromey <tromey@adacore.com>
9430
9431 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9432 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9433 (ravenscar_thread_target::stopped_by_watchpoint)
9434 (ravenscar_thread_target::stopped_data_address)
9435 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9436
e397fd39
TT
94372019-02-15 Tom Tromey <tromey@adacore.com>
9438
9439 * ravenscar-thread.c: Fix some typos.
9440
cc12f4a8
TT
94412019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9442 Tom Tromey <tromey@adacore.com>
9443
9444 * ada-lang.c (ada_exception_sal): Change addr_string to a
9445 std::string.
9446 (create_ada_exception_catchpoint): Update.
9447
5f486660
TT
94482019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9449 Tom Tromey <tromey@adacore.com>
9450
9451 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9452 (bp_location_ops): Remove.
9453 (base_breakpoint_allocate_location): Update.
9454 (free_bp_location): Update.
9455 * ada-lang.c (class ada_catchpoint_location)
9456 <ada_catchpoint_location>: Remove ops parameter.
9457 (ada_catchpoint_location_dtor): Remove.
9458 (ada_catchpoint_location_ops): Remove.
9459 (allocate_location_exception): Update.
9460 * breakpoint.h (struct bp_location_ops): Remove.
9461 (class bp_location) <bp_location>: Remove bp_location_ops
9462 parameter.
9463 <~bp_location>: Add destructor.
9464 <ops>: Remove.
9465
b671c7fb
TS
94662019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9467 Pedro Alves <palves@redhat.com>
9468
9469 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9470 'PATH_MAX'.
9471
8071c5ce
DM
94722019-02-14 David Michael <fedora.dm0@gmail.com>
9473 Samuel Thibault <samuel.thibault@gnu.org>
9474 Thomas Schwinge <thomas@codesourcery.com>
9475
9476 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9477 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9478
b1041ae0
TS
94792019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9480
924514e1
TS
9481 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9482 (check_empty): Use "const char *".
9483
c29ee8d4
TS
9484 * gnu-nat.c (gnu_nat_target::detach): Instead of
9485 'detach_inferior (pid)' call
9486 'detach_inferior (find_inferior_pid (pid))'.
9487
6c6ef69f
TS
9488 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9489 'nat/fork-inferior.o'.
9490 * gnu-nat.c: #include "nat/fork-inferior.h".
9491
2d0a338c
TS
9492 * gnu-nat.c (gnu_nat_target::detach): Instead of
9493 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9494 * gnu-nat.h: #include "inf-child.h".
9495 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9496 'i386_gnu_nat_target::fetch_registers'.
9497 (gnu_store_registers): Rename/move to
9498 'i386_gnu_nat_target::store_registers'.
9499
cabb5f06
TS
9500 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9501 * gnu-nat.h (mach_thread_info): New function.
9502 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9503
b1041ae0
TS
9504 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9505
2988d01e
KF
95062019-02-14 Frederic Konrad <konrad@adacore.com>
9507
9508 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9509
c559d709
JB
95102019-02-14 Joel Brobecker <brobecker@adacore.com>
9511
9512 * windows-nat.c (windows_add_thread): Add new parameter
9513 "main_thread_p" with default value set to false. Update
9514 function documentation as well as all callers.
9515 (windows_delete_thread): Likewise.
9516 (fake_create_process): Update call to windows_add_thread.
9517 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9518 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9519 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9520 call to windows_delete_thread.
9521
007024cc
SM
95222019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9523
9524 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9525
f62318e9
JB
95262019-02-12 John Baldwin <jhb@FreeBSD.org>
9527
9528 * symfile.c (find_separate_debug_file): Use canonical path of
9529 sysroot with child_path instead of gdb_sysroot if it is valid.
9530
cd4b7848
JB
95312019-02-12 John Baldwin <jhb@FreeBSD.org>
9532
9533 * symfile.c (find_separate_debug_file): Use child_path to
9534 determine if an object file is under a sysroot.
9535
efac4bfe
JB
95362019-02-12 John Baldwin <jhb@FreeBSD.org>
9537
9538 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9539 unittests/child-path-selftests.c.
9540 * common/pathstuff.c (child_path): New function.
9541 * common/pathstuff.h (child_path): New prototype.
9542 * unittests/child-path-selftests.c: New file.
9543
402d2bfe
JB
95442019-02-12 John Baldwin <jhb@FreeBSD.org>
9545
9546 * symfile.c (find_separate_debug_file): Look for separate debug
9547 files in debug directories under the sysroot.
9548
1ed9f74e
PW
95492019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9550
9551 * symtab.h (struct minimal_symbol data_p): New const method.
9552 (struct minimal_symbol text_p): Likewise.
9553 * symtab.c (output_source_filename): Use file name style
9554 to print file name.
9555 (print_symbol_info): Likewise.
9556 (print_msymbol_info): Use address style to print addresses.
9557 Use function name style to print executable text symbols.
9558 (expand_symtab_containing_pc): Use data_p.
9559 (find_pc_sect_compunit_symtab): Likewise.
9560
2636d81d
PW
95612019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9562
9563 * breakpoint.c (describe_other_breakpoints): Use address style
9564 to print addresses.
9565 (say_where): Likewise.
9566
ac8c53cc
PW
95672019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9568
9569 * ada-typeprint.c (print_func_type): Print function name
9570 style to print function name.
9571 * c-typeprint.c (c_print_type_1): Likewise.
9572
ea638c43
AH
95732019-02-11 Alan Hayward <alan.hayward@arm.com>
9574
9575 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9576 for execve.
9577
ab759ca8
PW
95782019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9579
9580 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9581 type_stack.
9582
aff29d1c
JB
95832019-02-10 Joel Brobecker <brobecker@adacore.com>
9584
9585 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9586 TYPE_CODE_REF types.
9587
617126bc
JW
95882019-02-08 Jim Wilson <jimw@sifive.com>
9589
9590 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9591 (riscv_linux_fregset): New.
9592 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9593
46e3ed7f
TT
95942019-02-07 Tom Tromey <tom@tromey.com>
9595
9596 * thread.c (thread_cancel_execution_command): Update.
9597 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9598 methods.
9599 (struct thread_fsm_ops): Remove.
9600 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9601 (thread_fsm_should_stop, thread_fsm_return_value)
9602 (thread_fsm_set_finished, thread_fsm_finished_p)
9603 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9604 Don't declare.
9605 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9606 * infrun.c (clear_proceed_status_thread)
9607 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9608 (print_stop_event): Update.
9609 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9610 Add constructor.
9611 (step_command_fsm_ops): Remove.
9612 (new_step_command_fsm): Remove.
9613 (step_1): Update.
9614 (step_command_fsm::should_stop): Rename from
9615 step_command_fsm_should_stop.
9616 (step_command_fsm::clean_up): Rename from
9617 step_command_fsm_clean_up.
9618 (step_command_fsm::do_async_reply_reason): Rename from
9619 step_command_fsm_async_reply_reason.
9620 (struct until_next_fsm): Inherit from thread_fsm. Add
9621 constructor.
9622 (until_next_fsm_ops): Remove.
9623 (new_until_next_fsm): Remove.
9624 (until_next_fsm::should_stop): Rename from
9625 until_next_fsm_should_stop.
9626 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9627 (until_next_fsm::do_async_reply_reason): Rename from
9628 until_next_fsm_async_reply_reason.
9629 (struct finish_command_fsm): Inherit from thread_fsm. Add
9630 constructor. Change type of breakpoint.
9631 (finish_command_fsm_ops): Remove.
9632 (new_finish_command_fsm): Remove.
9633 (finish_command_fsm::should_stop): Rename from
9634 finish_command_fsm_should_stop.
9635 (finish_command_fsm::clean_up): Rename from
9636 finish_command_fsm_clean_up.
9637 (finish_command_fsm::return_value): Rename from
9638 finish_command_fsm_return_value.
9639 (finish_command_fsm::do_async_reply_reason): Rename from
9640 finish_command_fsm_async_reply_reason.
9641 (finish_command): Update.
9642 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9643 Add constructor.
9644 (call_thread_fsm_ops): Remove.
9645 (call_thread_fsm::call_thread_fsm): Rename from
9646 new_call_thread_fsm.
9647 (call_thread_fsm::should_stop): Rename from
9648 call_thread_fsm_should_stop.
9649 (call_thread_fsm::should_notify_stop): Rename from
9650 call_thread_fsm_should_notify_stop.
9651 (run_inferior_call, call_function_by_hand_dummy): Update.
9652 * cli/cli-interp.c (should_print_stop_to_console): Update.
9653 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9654 Add constructor. Change type of location_breakpoint,
9655 caller_breakpoint.
9656 (until_break_fsm_ops): Remove.
9657 (new_until_break_fsm): Remove.
9658 (until_break_fsm::should_stop): Rename from
9659 until_break_fsm_should_stop.
9660 (until_break_fsm::clean_up): Rename from
9661 until_break_fsm_clean_up.
9662 (until_break_fsm::do_async_reply_reason): Rename from
9663 until_break_fsm_async_reply_reason.
9664 (until_break_command): Update.
9665 * thread-fsm.c: Remove.
9666 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9667
1a5c2598
TT
96682019-02-07 Tom Tromey <tom@tromey.com>
9669
9670 * yy-remap.h: Add include guard.
9671 * xtensa-tdep.h: Add include guard.
9672 * xcoffread.h: Rename include guard.
9673 * varobj-iter.h: Add include guard.
9674 * tui/tui.h: Rename include guard.
9675 * tui/tui-winsource.h: Rename include guard.
9676 * tui/tui-wingeneral.h: Rename include guard.
9677 * tui/tui-windata.h: Rename include guard.
9678 * tui/tui-win.h: Rename include guard.
9679 * tui/tui-stack.h: Rename include guard.
9680 * tui/tui-source.h: Rename include guard.
9681 * tui/tui-regs.h: Rename include guard.
9682 * tui/tui-out.h: Rename include guard.
9683 * tui/tui-layout.h: Rename include guard.
9684 * tui/tui-io.h: Rename include guard.
9685 * tui/tui-hooks.h: Rename include guard.
9686 * tui/tui-file.h: Rename include guard.
9687 * tui/tui-disasm.h: Rename include guard.
9688 * tui/tui-data.h: Rename include guard.
9689 * tui/tui-command.h: Rename include guard.
9690 * tic6x-tdep.h: Add include guard.
9691 * target/waitstatus.h: Rename include guard.
9692 * target/wait.h: Rename include guard.
9693 * target/target.h: Rename include guard.
9694 * target/resume.h: Rename include guard.
9695 * target-float.h: Rename include guard.
9696 * stabsread.h: Add include guard.
9697 * rs6000-tdep.h: Add include guard.
9698 * riscv-fbsd-tdep.h: Add include guard.
9699 * regformats/regdef.h: Rename include guard.
9700 * record.h: Rename include guard.
9701 * python/python.h: Rename include guard.
9702 * python/python-internal.h: Rename include guard.
9703 * python/py-stopevent.h: Rename include guard.
9704 * python/py-ref.h: Rename include guard.
9705 * python/py-record.h: Rename include guard.
9706 * python/py-record-full.h: Rename include guard.
9707 * python/py-record-btrace.h: Rename include guard.
9708 * python/py-instruction.h: Rename include guard.
9709 * python/py-events.h: Rename include guard.
9710 * python/py-event.h: Rename include guard.
9711 * procfs.h: Add include guard.
9712 * proc-utils.h: Add include guard.
9713 * p-lang.h: Add include guard.
9714 * or1k-tdep.h: Rename include guard.
9715 * observable.h: Rename include guard.
9716 * nto-tdep.h: Rename include guard.
9717 * nat/x86-linux.h: Rename include guard.
9718 * nat/x86-linux-dregs.h: Rename include guard.
9719 * nat/x86-gcc-cpuid.h: Add include guard.
9720 * nat/x86-dregs.h: Rename include guard.
9721 * nat/x86-cpuid.h: Rename include guard.
9722 * nat/ppc-linux.h: Rename include guard.
9723 * nat/mips-linux-watch.h: Rename include guard.
9724 * nat/linux-waitpid.h: Rename include guard.
9725 * nat/linux-ptrace.h: Rename include guard.
9726 * nat/linux-procfs.h: Rename include guard.
9727 * nat/linux-osdata.h: Rename include guard.
9728 * nat/linux-nat.h: Rename include guard.
9729 * nat/linux-namespaces.h: Rename include guard.
9730 * nat/linux-btrace.h: Rename include guard.
9731 * nat/glibc_thread_db.h: Rename include guard.
9732 * nat/gdb_thread_db.h: Rename include guard.
9733 * nat/gdb_ptrace.h: Rename include guard.
9734 * nat/fork-inferior.h: Rename include guard.
9735 * nat/amd64-linux-siginfo.h: Rename include guard.
9736 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9737 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9738 * nat/aarch64-linux.h: Rename include guard.
9739 * nat/aarch64-linux-hw-point.h: Rename include guard.
9740 * mn10300-tdep.h: Add include guard.
9741 * mips-linux-tdep.h: Add include guard.
9742 * mi/mi-parse.h: Rename include guard.
9743 * mi/mi-out.h: Rename include guard.
9744 * mi/mi-main.h: Rename include guard.
9745 * mi/mi-interp.h: Rename include guard.
9746 * mi/mi-getopt.h: Rename include guard.
9747 * mi/mi-console.h: Rename include guard.
9748 * mi/mi-common.h: Rename include guard.
9749 * mi/mi-cmds.h: Rename include guard.
9750 * mi/mi-cmd-break.h: Rename include guard.
9751 * m2-lang.h: Add include guard.
9752 * location.h: Rename include guard.
9753 * linux-record.h: Rename include guard.
9754 * linux-nat.h: Add include guard.
9755 * linux-fork.h: Add include guard.
9756 * i386-darwin-tdep.h: Rename include guard.
9757 * hppa-linux-offsets.h: Add include guard.
9758 * guile/guile.h: Rename include guard.
9759 * guile/guile-internal.h: Rename include guard.
9760 * gnu-nat.h: Rename include guard.
9761 * gdb-stabs.h: Rename include guard.
9762 * frv-tdep.h: Add include guard.
9763 * f-lang.h: Add include guard.
9764 * event-loop.h: Add include guard.
9765 * darwin-nat.h: Rename include guard.
9766 * cp-abi.h: Rename include guard.
9767 * config/sparc/nm-sol2.h: Rename include guard.
9768 * config/nm-nto.h: Rename include guard.
9769 * config/nm-linux.h: Add include guard.
9770 * config/i386/nm-i386gnu.h: Rename include guard.
9771 * config/djgpp/nl_types.h: Rename include guard.
9772 * config/djgpp/langinfo.h: Rename include guard.
9773 * compile/gcc-cp-plugin.h: Add include guard.
9774 * compile/gcc-c-plugin.h: Add include guard.
9775 * compile/compile.h: Rename include guard.
9776 * compile/compile-object-run.h: Rename include guard.
9777 * compile/compile-object-load.h: Rename include guard.
9778 * compile/compile-internal.h: Rename include guard.
9779 * compile/compile-cplus.h: Rename include guard.
9780 * compile/compile-c.h: Rename include guard.
9781 * common/xml-utils.h: Rename include guard.
9782 * common/x86-xstate.h: Rename include guard.
9783 * common/version.h: Rename include guard.
9784 * common/vec.h: Rename include guard.
9785 * common/tdesc.h: Rename include guard.
9786 * common/selftest.h: Rename include guard.
9787 * common/scoped_restore.h: Rename include guard.
9788 * common/scoped_mmap.h: Rename include guard.
9789 * common/scoped_fd.h: Rename include guard.
9790 * common/safe-iterator.h: Rename include guard.
9791 * common/run-time-clock.h: Rename include guard.
9792 * common/refcounted-object.h: Rename include guard.
9793 * common/queue.h: Rename include guard.
9794 * common/ptid.h: Rename include guard.
9795 * common/print-utils.h: Rename include guard.
9796 * common/preprocessor.h: Rename include guard.
9797 * common/pathstuff.h: Rename include guard.
9798 * common/observable.h: Rename include guard.
9799 * common/netstuff.h: Rename include guard.
9800 * common/job-control.h: Rename include guard.
9801 * common/host-defs.h: Rename include guard.
9802 * common/gdb_wait.h: Rename include guard.
9803 * common/gdb_vecs.h: Rename include guard.
9804 * common/gdb_unlinker.h: Rename include guard.
9805 * common/gdb_unique_ptr.h: Rename include guard.
9806 * common/gdb_tilde_expand.h: Rename include guard.
9807 * common/gdb_sys_time.h: Rename include guard.
9808 * common/gdb_string_view.h: Rename include guard.
9809 * common/gdb_splay_tree.h: Rename include guard.
9810 * common/gdb_setjmp.h: Rename include guard.
9811 * common/gdb_ref_ptr.h: Rename include guard.
9812 * common/gdb_optional.h: Rename include guard.
9813 * common/gdb_locale.h: Rename include guard.
9814 * common/gdb_assert.h: Rename include guard.
9815 * common/filtered-iterator.h: Rename include guard.
9816 * common/filestuff.h: Rename include guard.
9817 * common/fileio.h: Rename include guard.
9818 * common/environ.h: Rename include guard.
9819 * common/common-utils.h: Rename include guard.
9820 * common/common-types.h: Rename include guard.
9821 * common/common-regcache.h: Rename include guard.
9822 * common/common-inferior.h: Rename include guard.
9823 * common/common-gdbthread.h: Rename include guard.
9824 * common/common-exceptions.h: Rename include guard.
9825 * common/common-defs.h: Rename include guard.
9826 * common/common-debug.h: Rename include guard.
9827 * common/cleanups.h: Rename include guard.
9828 * common/buffer.h: Rename include guard.
9829 * common/btrace-common.h: Rename include guard.
9830 * common/break-common.h: Rename include guard.
9831 * cli/cli-utils.h: Rename include guard.
9832 * cli/cli-style.h: Rename include guard.
9833 * cli/cli-setshow.h: Rename include guard.
9834 * cli/cli-script.h: Rename include guard.
9835 * cli/cli-interp.h: Rename include guard.
9836 * cli/cli-decode.h: Rename include guard.
9837 * cli/cli-cmds.h: Rename include guard.
9838 * charset-list.h: Add include guard.
9839 * buildsym-legacy.h: Rename include guard.
9840 * bfin-tdep.h: Add include guard.
9841 * ax.h: Rename include guard.
9842 * arm-linux-tdep.h: Add include guard.
9843 * arm-fbsd-tdep.h: Add include guard.
9844 * arch/xtensa.h: Rename include guard.
9845 * arch/tic6x.h: Add include guard.
9846 * arch/i386.h: Add include guard.
9847 * arch/arm.h: Rename include guard.
9848 * arch/arm-linux.h: Rename include guard.
9849 * arch/arm-get-next-pcs.h: Rename include guard.
9850 * arch/amd64.h: Add include guard.
9851 * arch/aarch64-insn.h: Rename include guard.
9852 * arch-utils.h: Rename include guard.
9853 * annotate.h: Add include guard.
9854 * amd64-darwin-tdep.h: Rename include guard.
9855 * aarch64-linux-tdep.h: Add include guard.
9856 * aarch64-fbsd-tdep.h: Add include guard.
9857 * aarch32-linux-nat.h: Add include guard.
9858
ab9268d2
PW
98592019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9860
9861 * macrotab.c (macro_define_internal): New function that
9862 factorizes macro_define_object_internal and macro_define_function
9863 code.
9864 (macro_define_object_internal): Use macro_define_internal.
9865 (macro_define_function): Likewise.
9866
bb0da2b4
PW
98672019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9868
9869 * macrocmd.c (extract_identifier): Return
9870 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9871 callers.
9872
424eb552
JB
98732019-02-06 John Baldwin <jhb@FreeBSD.org>
9874
9875 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9876
1688cb29
TT
98772019-02-05 Tom Tromey <tom@tromey.com>
9878
9879 * target.c (target_stack::unpush): Move assertion earlier.
9880
b5eba2d8
TT
98812019-01-30 Tom Tromey <tom@tromey.com>
9882
9883 PR python/23615:
9884 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9885 (gdbpy_parse_and_eval): Likewise.
9886 * python/python-internal.h (gdbpy_allow_threads): New class.
9887
7054e2ff
JB
98882019-01-28 John Baldwin <jhb@FreeBSD.org>
9889
9890 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9891 (aarch64_fbsd_fpregmap): Move earlier.
9892 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9893 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9894 instead of individual calls to trad_frame_set_reg_addr.
9895 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9896 earlier.
9897 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9898 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9899 instead of individual calls to trad_frame_set_reg_addr.
9900
36c25ffa
AH
99012019-01-28 Alan Hayward <alan.hayward@arm.com>
9902
9903 * CONTRIBUTE: Replace contribution list with wiki link.
9904
a0707f3c
TT
99052019-01-25 Tom Tromey <tom@tromey.com>
9906
9907 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9908
0747795c
TT
99092019-01-25 Tom Tromey <tom@tromey.com>
9910
9911 * xtensa-linux-nat.c: Fix common/ includes.
9912 * xml-support.h: Fix common/ includes.
9913 * xml-support.c: Fix common/ includes.
9914 * x86-linux-nat.c: Fix common/ includes.
9915 * windows-nat.c: Fix common/ includes.
9916 * varobj.h: Fix common/ includes.
9917 * varobj.c: Fix common/ includes.
9918 * value.c: Fix common/ includes.
9919 * valops.c: Fix common/ includes.
9920 * utils.c: Fix common/ includes.
9921 * unittests/xml-utils-selftests.c: Fix common/ includes.
9922 * unittests/utils-selftests.c: Fix common/ includes.
9923 * unittests/unpack-selftests.c: Fix common/ includes.
9924 * unittests/tracepoint-selftests.c: Fix common/ includes.
9925 * unittests/style-selftests.c: Fix common/ includes.
9926 * unittests/string_view-selftests.c: Fix common/ includes.
9927 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9928 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9929 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9930 * unittests/rsp-low-selftests.c: Fix common/ includes.
9931 * unittests/parse-connection-spec-selftests.c: Fix common/
9932 includes.
9933 * unittests/optional-selftests.c: Fix common/ includes.
9934 * unittests/offset-type-selftests.c: Fix common/ includes.
9935 * unittests/observable-selftests.c: Fix common/ includes.
9936 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9937 * unittests/memrange-selftests.c: Fix common/ includes.
9938 * unittests/memory-map-selftests.c: Fix common/ includes.
9939 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9940 * unittests/function-view-selftests.c: Fix common/ includes.
9941 * unittests/environ-selftests.c: Fix common/ includes.
9942 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9943 * unittests/common-utils-selftests.c: Fix common/ includes.
9944 * unittests/cli-utils-selftests.c: Fix common/ includes.
9945 * unittests/array-view-selftests.c: Fix common/ includes.
9946 * ui-file.c: Fix common/ includes.
9947 * tui/tui-io.c: Fix common/ includes.
9948 * tracepoint.h: Fix common/ includes.
9949 * tracepoint.c: Fix common/ includes.
9950 * tracefile-tfile.c: Fix common/ includes.
9951 * top.h: Fix common/ includes.
9952 * top.c: Fix common/ includes.
9953 * thread.c: Fix common/ includes.
9954 * target/waitstatus.h: Fix common/ includes.
9955 * target/waitstatus.c: Fix common/ includes.
9956 * target.h: Fix common/ includes.
9957 * target.c: Fix common/ includes.
9958 * target-memory.c: Fix common/ includes.
9959 * target-descriptions.c: Fix common/ includes.
9960 * symtab.h: Fix common/ includes.
9961 * symfile.c: Fix common/ includes.
9962 * stap-probe.c: Fix common/ includes.
9963 * spu-linux-nat.c: Fix common/ includes.
9964 * sparc-nat.c: Fix common/ includes.
9965 * source.c: Fix common/ includes.
9966 * solib.c: Fix common/ includes.
9967 * solib-target.c: Fix common/ includes.
9968 * ser-unix.c: Fix common/ includes.
9969 * ser-tcp.c: Fix common/ includes.
9970 * ser-pipe.c: Fix common/ includes.
9971 * ser-base.c: Fix common/ includes.
9972 * selftest-arch.c: Fix common/ includes.
9973 * s12z-tdep.c: Fix common/ includes.
9974 * rust-exp.y: Fix common/ includes.
9975 * rs6000-aix-tdep.c: Fix common/ includes.
9976 * riscv-tdep.c: Fix common/ includes.
9977 * remote.c: Fix common/ includes.
9978 * remote-notif.h: Fix common/ includes.
9979 * remote-fileio.h: Fix common/ includes.
9980 * remote-fileio.c: Fix common/ includes.
9981 * regcache.h: Fix common/ includes.
9982 * regcache.c: Fix common/ includes.
9983 * record-btrace.c: Fix common/ includes.
9984 * python/python.c: Fix common/ includes.
9985 * python/py-type.c: Fix common/ includes.
9986 * python/py-inferior.c: Fix common/ includes.
9987 * progspace.h: Fix common/ includes.
9988 * producer.c: Fix common/ includes.
9989 * procfs.c: Fix common/ includes.
9990 * proc-api.c: Fix common/ includes.
9991 * printcmd.c: Fix common/ includes.
9992 * ppc-linux-nat.c: Fix common/ includes.
9993 * parser-defs.h: Fix common/ includes.
9994 * osdata.c: Fix common/ includes.
9995 * obsd-nat.c: Fix common/ includes.
9996 * nat/x86-linux.c: Fix common/ includes.
9997 * nat/x86-linux-dregs.c: Fix common/ includes.
9998 * nat/x86-dregs.h: Fix common/ includes.
9999 * nat/x86-dregs.c: Fix common/ includes.
10000 * nat/ppc-linux.c: Fix common/ includes.
10001 * nat/mips-linux-watch.h: Fix common/ includes.
10002 * nat/mips-linux-watch.c: Fix common/ includes.
10003 * nat/linux-waitpid.c: Fix common/ includes.
10004 * nat/linux-ptrace.h: Fix common/ includes.
10005 * nat/linux-ptrace.c: Fix common/ includes.
10006 * nat/linux-procfs.c: Fix common/ includes.
10007 * nat/linux-personality.c: Fix common/ includes.
10008 * nat/linux-osdata.c: Fix common/ includes.
10009 * nat/linux-namespaces.c: Fix common/ includes.
10010 * nat/linux-btrace.h: Fix common/ includes.
10011 * nat/linux-btrace.c: Fix common/ includes.
10012 * nat/fork-inferior.c: Fix common/ includes.
10013 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10014 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10015 * nat/aarch64-linux.c: Fix common/ includes.
10016 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10017 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10018 * namespace.h: Fix common/ includes.
10019 * mips-linux-tdep.c: Fix common/ includes.
10020 * minsyms.c: Fix common/ includes.
10021 * mi/mi-parse.h: Fix common/ includes.
10022 * mi/mi-main.c: Fix common/ includes.
10023 * mi/mi-cmd-env.c: Fix common/ includes.
10024 * memrange.h: Fix common/ includes.
10025 * memattr.c: Fix common/ includes.
10026 * maint.h: Fix common/ includes.
10027 * maint.c: Fix common/ includes.
10028 * main.c: Fix common/ includes.
10029 * machoread.c: Fix common/ includes.
10030 * location.c: Fix common/ includes.
10031 * linux-thread-db.c: Fix common/ includes.
10032 * linux-nat.c: Fix common/ includes.
10033 * linux-fork.c: Fix common/ includes.
10034 * inline-frame.c: Fix common/ includes.
10035 * infrun.c: Fix common/ includes.
10036 * inflow.c: Fix common/ includes.
10037 * inferior.h: Fix common/ includes.
10038 * inferior.c: Fix common/ includes.
10039 * infcmd.c: Fix common/ includes.
10040 * inf-ptrace.c: Fix common/ includes.
10041 * inf-child.c: Fix common/ includes.
10042 * ia64-linux-nat.c: Fix common/ includes.
10043 * i387-tdep.c: Fix common/ includes.
10044 * i386-tdep.c: Fix common/ includes.
10045 * i386-linux-tdep.c: Fix common/ includes.
10046 * i386-linux-nat.c: Fix common/ includes.
10047 * i386-go32-tdep.c: Fix common/ includes.
10048 * i386-fbsd-tdep.c: Fix common/ includes.
10049 * i386-fbsd-nat.c: Fix common/ includes.
10050 * guile/scm-type.c: Fix common/ includes.
10051 * guile/guile.c: Fix common/ includes.
10052 * go32-nat.c: Fix common/ includes.
10053 * gnu-nat.c: Fix common/ includes.
10054 * gdbthread.h: Fix common/ includes.
10055 * gdbarch-selftests.c: Fix common/ includes.
10056 * gdb_usleep.c: Fix common/ includes.
10057 * gdb_select.h: Fix common/ includes.
10058 * gdb_bfd.c: Fix common/ includes.
10059 * gcore.c: Fix common/ includes.
10060 * fork-child.c: Fix common/ includes.
10061 * findvar.c: Fix common/ includes.
10062 * fbsd-nat.c: Fix common/ includes.
10063 * event-top.c: Fix common/ includes.
10064 * event-loop.c: Fix common/ includes.
10065 * dwarf2read.c: Fix common/ includes.
10066 * dwarf2loc.c: Fix common/ includes.
10067 * dwarf2-frame.c: Fix common/ includes.
10068 * dwarf-index-cache.c: Fix common/ includes.
10069 * dtrace-probe.c: Fix common/ includes.
10070 * disasm-selftests.c: Fix common/ includes.
10071 * defs.h: Fix common/ includes.
10072 * csky-tdep.c: Fix common/ includes.
10073 * cp-valprint.c: Fix common/ includes.
10074 * cp-support.h: Fix common/ includes.
10075 * cp-support.c: Fix common/ includes.
10076 * corelow.c: Fix common/ includes.
10077 * completer.h: Fix common/ includes.
10078 * completer.c: Fix common/ includes.
10079 * compile/compile.c: Fix common/ includes.
10080 * compile/compile-loc2c.c: Fix common/ includes.
10081 * compile/compile-cplus-types.c: Fix common/ includes.
10082 * compile/compile-cplus-symbols.c: Fix common/ includes.
10083 * command.h: Fix common/ includes.
10084 * cli/cli-dump.c: Fix common/ includes.
10085 * cli/cli-cmds.c: Fix common/ includes.
10086 * charset.c: Fix common/ includes.
10087 * build-id.c: Fix common/ includes.
10088 * btrace.h: Fix common/ includes.
10089 * btrace.c: Fix common/ includes.
10090 * breakpoint.h: Fix common/ includes.
10091 * breakpoint.c: Fix common/ includes.
10092 * ax.h:
10093 (enum agent_op): Fix common/ includes.
10094 * ax-general.c (struct aop_map): Fix common/ includes.
10095 * ax-gdb.c: Fix common/ includes.
10096 * auxv.c: Fix common/ includes.
10097 * auto-load.c: Fix common/ includes.
10098 * arm-tdep.c: Fix common/ includes.
10099 * arch/riscv.c: Fix common/ includes.
10100 * arch/ppc-linux-common.c: Fix common/ includes.
10101 * arch/i386.c: Fix common/ includes.
10102 * arch/arm.c: Fix common/ includes.
10103 * arch/arm-linux.c: Fix common/ includes.
10104 * arch/arm-get-next-pcs.c: Fix common/ includes.
10105 * arch/amd64.c: Fix common/ includes.
10106 * arch/aarch64.c: Fix common/ includes.
10107 * arch/aarch64-insn.c: Fix common/ includes.
10108 * arch-utils.c: Fix common/ includes.
10109 * amd64-windows-tdep.c: Fix common/ includes.
10110 * amd64-tdep.c: Fix common/ includes.
10111 * amd64-sol2-tdep.c: Fix common/ includes.
10112 * amd64-obsd-tdep.c: Fix common/ includes.
10113 * amd64-nbsd-tdep.c: Fix common/ includes.
10114 * amd64-linux-tdep.c: Fix common/ includes.
10115 * amd64-linux-nat.c: Fix common/ includes.
10116 * amd64-fbsd-tdep.c: Fix common/ includes.
10117 * amd64-fbsd-nat.c: Fix common/ includes.
10118 * amd64-dicos-tdep.c: Fix common/ includes.
10119 * amd64-darwin-tdep.c: Fix common/ includes.
10120 * agent.c: Fix common/ includes.
10121 * ada-lang.h: Fix common/ includes.
10122 * ada-lang.c: Fix common/ includes.
10123 * aarch64-tdep.c: Fix common/ includes.
10124
2f5c153e
TT
101252019-01-25 Tom Tromey <tom@tromey.com>
10126
10127 * common/create-version.sh: Use common/version.h.
10128
adc6a863
PA
101292019-01-24 Pedro Alves <palves@redhat.com>
10130
10131 * infrun.c (signal_stop, signal_print, signal_program)
10132 (signal_catch, signal_pass): Now arrays instead of pointers.
10133 (update_signals_program_target, do_target_resume)
10134 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10135 * linux-nat.c (linux_nat_target::pass_signals)
10136 (linux_nat_target::create_inferior, linux_nat_target::attach):
10137 Adjust.
10138 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10139 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10140 * procfs.c (procfs_target::pass_signals): Adjust.
10141 * record-full.c (record_full_target::resume): Adjust.
10142 * remote.c (remote_target::pass_signals)
10143 (remote_target::program_signals): Adjust.
10144 * target-debug.h (target_debug_print_signals): Now takes a
10145 gdb::array_view as parameter. Adjust.
10146 * target.h (target_ops) <pass_signals, program_signals>: Replace
10147 pointer and length parameters with gdb::array_view.
10148 (target_pass_signals, target_program_signals): Likewise.
10149 * target-delegates.c: Regenerate.
10150
3046d67a
PA
101512019-01-24 Pedro Alves <palves@redhat.com>
10152
10153 * common/forward-scope-exit.h
10154 (forward_scope_exit::forward_scope_exit): Pass arguments to
10155 m_bind_function directly, instead of creating a std::bind and
10156 copying that.
10157
353229bf
AH
101582019-01-24 Alan Hayward <alan.hayward@arm.com>
10159
10160 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10161 for static members.
10162 (pass_in_v_vfp_candidate): Likewise.
10163
311dc83a
TT
101642019-01-23 Tom Tromey <tom@tromey.com>
10165 Pedro Alves <palves@redhat.com>
10166
10167 * regcache.c (class regcache_invalidator): Remove.
10168 (regcache::raw_write): Use make_scope_exit.
10169
296bd123
TT
101702019-01-23 Tom Tromey <tom@tromey.com>
10171
10172 * ui-out.h (class ui_out_emit_type): Update comment.
10173
979a0d13
TT
101742019-01-23 Tom Tromey <tom@tromey.com>
10175
10176 * infrun.c (fetch_inferior_event): Update comment.
10177
d238133d
TT
101782019-01-23 Tom Tromey <tom@tromey.com>
10179 Pedro Alves <palves@redhat.com>
10180
10181 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10182 parameter.
10183 (fetch_inferior_event): Use SCOPE_EXIT.
10184
10185
9885e6bb
TT
101862019-01-23 Tom Tromey <tom@tromey.com>
10187 Pedro Alves <palves@redhat.com>
10188
10189 * infrun.c (disable_thread_events): Delete.
10190 (stop_all_threads): Use SCOPE_EXIT.
10191
286526c1
TT
101922019-01-23 Tom Tromey <tom@tromey.com>
10193 Pedro Alves <palves@redhat.com>
10194
10195 * symfile.c: Include forward-scope-exit.h.
10196 (clear_symtab_users_cleanup): Replace forward declaration with
10197 a FORWARD_SCOPE_EXIT.
10198 (syms_from_objfile_1): Use the forward_scope_exit and
10199 gdb::optional instead of cleanup_function.
10200 (reread_symbols): Use the forward_scope_exit instead of
10201 cleanup_function.
10202 (clear_symtab_users_cleanup): Remove function.
10203
1db93f14
TT
102042019-01-23 Tom Tromey <tom@tromey.com>
10205 Pedro Alves <palves@redhat.com>
10206
10207 * linux-nat.c: Include scope-exit.h.
10208 (cleanup_target_stop): Remove.
10209 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10210 SCOPE_EXIT.
10211
2cc83d1e
TT
102122019-01-23 Tom Tromey <tom@tromey.com>
10213 Pedro Alves <palves@redhat.com>
10214
10215 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10216 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10217
694c6bf5
TT
102182019-01-23 Tom Tromey <tom@tromey.com>
10219 Andrew Burgess <andrew.burgess@embecosm.com>
10220 Pedro Alves <palves@redhat.com>
10221
10222 * infrun.c (fetch_inferior_event): Use scope_exit.
10223 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10224 * top.c (execute_command): Use scope_exit.
10225 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10226 * utils.c (do_bpstat_clear_actions_cleanup)
10227 (make_bpstat_clear_actions_cleanup): Remove.
10228
4c41382a
TT
102292019-01-23 Tom Tromey <tom@tromey.com>
10230 Pedro Alves <palves@redhat.com>
10231
10232 * infrun.c: Include "common/scope-exit.h"
10233 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10234 (wait_for_inferior): Use SCOPE_EXIT.
10235 (fetch_inferior_event): Use scope_exit.
10236
89f8fb50
TT
102372019-01-23 Tom Tromey <tom@tromey.com>
10238 Pedro Alves <palves@redhat.com>
10239
10240 * breakpoint.c (create_breakpoint): Remove cleanup.
10241
5419bdae
TT
102422019-01-23 Tom Tromey <tom@tromey.com>
10243 Andrew Burgess <andrew.burgess@embecosm.com>
10244 Pedro Alves <palves@redhat.com>
10245
e587ef42
PA
102462019-01-23 Pedro Alves <palves@redhat.com>
10247
10248 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10249
77f0e74c
PA
102502019-01-23 Pedro Alves <palves@redhat.com>
10251 Andrew Burgess <andrew.burgess@embecosm.com>
10252
10253 * gdbthread.h: Include "common/forward-scope-exit.h".
10254 (scoped_finish_thread_state): Redefine custom class in terms of
10255 forward_scope_exit.
10256
5b9b3e53
PA
102572019-01-23 Pedro Alves <palves@redhat.com>
10258 Andrew Burgess <andrew.burgess@embecosm.com>
10259
10260 * common/forward-scope-exit.h: New file.
10261
54b65c9b
PA
102622019-01-23 Pedro Alves <palves@redhat.com>
10263 Andrew Burgess <andrew.burgess@embecosm.com>
10264 Tom Tromey <tom@tromey.com>
10265
10266 * common/scope-exit.h: New file.
10267
cf08fb29
PA
102682019-01-23 Pedro Alves <palves@redhat.com>
10269
10270 * common/preprocessor.h (ESC): Rename to ...
10271 (ESC_PARENS): ... this.
10272 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10273 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10274
ae73e2e2
TT
102752019-01-23 Tom Tromey <tom@tromey.com>
10276
10277 * language.h (class scoped_switch_to_sym_language_if_auto):
10278 Initialize m_lang in both cases.
10279
6594e122
AH
102802019-01-23 Alan Hayward <alan.hayward@arm.com>
10281
10282 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10283 with XCNEW.
10284
a7c9855d
TT
102852019-01-22 Tom Tromey <tom@tromey.com>
10286
10287 * corelow.c: Do not include sys/file.h.
10288
93cc1d53
TT
102892019-01-22 Tom Tromey <tom@tromey.com>
10290
10291 * tui/tui-wingeneral.h: Include gdb_curses.h.
10292
38561778
TT
102932019-01-22 Tom Tromey <tom@tromey.com>
10294
10295 * source-cache.h (class source_cache) <get_source_lines,
10296 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10297
37b3ab5b
TT
102982019-01-22 Tom Tromey <tom@tromey.com>
10299
10300 * remote-fileio.h (struct remote_target): Declare.
10301
3fabc016
TT
103022019-01-22 Tom Tromey <tom@tromey.com>
10303
10304 * python/py-arch.c: Do not include py-ref.h.
10305 * python/py-bpevent.c: Do not include py-ref.h.
10306 * python/py-cmd.c: Do not include py-ref.h.
10307 * python/py-continueevent.c: Do not include py-ref.h.
10308 * python/py-event.h: Do not include py-ref.h.
10309 * python/py-evtregistry.c: Do not include py-ref.h.
10310 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10311 * python/py-frame.c: Do not include py-ref.h.
10312 * python/py-framefilter.c: Do not include py-ref.h.
10313 * python/py-function.c: Do not include py-ref.h.
10314 * python/py-infevents.c: Do not include py-ref.h.
10315 * python/py-linetable.c: Do not include py-ref.h.
10316 * python/py-objfile.c: Do not include py-ref.h.
10317 * python/py-param.c: Do not include py-ref.h.
10318 * python/py-prettyprint.c: Do not include py-ref.h.
10319 * python/py-progspace.c: Do not include py-ref.h.
10320 * python/py-symbol.c: Do not include py-ref.h.
10321 * python/py-symtab.c: Do not include py-ref.h.
10322 * python/py-type.c: Do not include py-ref.h.
10323 * python/py-unwind.c: Do not include py-ref.h.
10324 * python/py-utils.c: Do not include py-ref.h.
10325 * python/py-value.c: Do not include py-ref.h.
10326 * python/py-varobj.c: Do not include py-ref.h.
10327 * python/py-xmethods.c: Do not include py-ref.h.
10328 * python/python.c: Do not include py-ref.h.
10329 * varobj.c: Do not include py-ref.h.
10330
6b4d7774
TT
103312019-01-22 Tom Tromey <tom@tromey.com>
10332
10333 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10334 keyword for bcache.
10335
7af7e9b5
TT
103362019-01-22 Tom Tromey <tom@tromey.com>
10337
10338 * compile/compile-cplus-types.c: Remove a comment by #include.
10339
951d1049
TT
103402019-01-22 Tom Tromey <tom@tromey.com>
10341
10342 * compile/gcc-c-plugin.h: Include compile-internal.h.
10343
d65d5705
TT
103442019-01-22 Tom Tromey <tom@tromey.com>
10345
10346 * stabsread.c (EXTERN): Do not define.
10347 (symnum, next_symbol_text_func, processing_gcc_compilation)
10348 (within_function, global_sym_chain, global_stabs)
10349 (previous_stab_code, this_object_header_files)
10350 (n_this_object_header_files)
10351 (n_allocated_this_object_header_files): Define.
10352 * stabsread.h (EXTERN): Never define. Use "extern".
10353
b6fb1ee5
PW
103542019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10355
10356 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10357 history_value.
10358
be6d4f74
TT
103592019-01-21 Tom Tromey <tom@tromey.com>
10360
10361 * ui-out.c: Fix includes.
10362 * tui/tui-source.c: Fix includes.
10363 * target.c: Fix includes.
10364 * remote.c: Fix includes.
10365 * regcache.c: Fix includes.
10366 * python/py-block.c: Fix includes.
10367 * printcmd.c: Fix includes.
10368 * or1k-tdep.c: Fix includes.
10369 * mi/mi-main.c: Fix includes.
10370 * m32r-tdep.c: Fix includes.
10371 * csky-tdep.c: Fix includes.
10372 * compile/compile-cplus-types.c: Fix includes.
10373 * cli/cli-interp.c: Fix includes.
10374
73021deb
AH
103752019-01-21 Alan Hayward <alan.hayward@arm.com>
10376
10377 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10378 for padding.
10379
7932255d
TT
103802019-01-16 Tom Tromey <tom@tromey.com>
10381
10382 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10383 earlier.
10384 (struct objfile) <msymbols_range>: Move from top level.
10385 <msymbols>: New method.
10386 (class objfile_msymbols): Remove.
10387 * symtab.c (default_collect_symbol_completion_matches_break_on):
10388 Update.
10389 * symmisc.c (dump_msymbols): Update.
10390 * stabsread.c (scan_file_globals): Update.
10391 * objc-lang.c (info_selectors_command, info_classes_command)
10392 (find_methods): Update.
10393 * minsyms.c (find_solib_trampoline_target): Update.
10394 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10395 * coffread.c (coff_symfile_read): Update.
10396 * ada-lang.c (ada_lookup_simple_minsym)
10397 (ada_collect_symbol_completion_matches): Update.
10398
604b1bfb
TT
103992019-01-16 Tom Tromey <tom@tromey.com>
10400
10401 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10402 type. Remove no-argument constructor.
10403 <iterator::operator++>: Simplify.
10404 <begin>: Update.
10405 <end>: Use minimal_symbol_count.
10406
f252c6d5
TT
104072019-01-16 Tom Tromey <tom@tromey.com>
10408
10409 * objfiles.h (struct objfile) <psymtabs>: New method.
10410 (class objfile_psymtabs): Remove.
10411 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10412 typedef.
10413 <range>: New method.
10414 (require_partial_symbols): Change return type.
10415 * psymtab.c (require_partial_symbols)
10416 (psym_expand_symtabs_matching): Update.
10417 * mdebugread.c (parse_partial_symbols): Update.
10418 * dbxread.c (dbx_end_psymtab): Update.
10419
b669c953
TT
104202019-01-15 Tom Tromey <tom@tromey.com>
10421
10422 * symtab.c (lookup_objfile_from_block)
10423 (lookup_symbol_in_objfile_symtabs)
10424 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10425 (find_line_symtab, info_sources_command)
10426 (default_collect_symbol_completion_matches_break_on)
10427 (make_source_files_completion_list): Update.
10428 * symmisc.c (print_objfile_statistics, dump_objfile)
10429 (maintenance_print_symbols, maintenance_info_symtabs)
10430 (maintenance_check_symtabs, maintenance_info_line_tables):
10431 Update.
10432 * source.c (select_source_symtab)
10433 (forget_cached_source_info_for_objfile): Update.
10434 * objfiles.h (class objfile_compunits): Remove.
10435 (struct objfile) <compunits_range>: New typedef.
10436 (compunits): New method.
10437 * objfiles.c (objfile_relocate1): Update.
10438 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10439 * maint.c (count_symtabs_and_blocks): Update.
10440 * linespec.c (iterate_over_all_matching_symtabs): Update.
10441 * cp-support.c (add_symbol_overload_list_qualified): Update.
10442 * coffread.c (coff_symtab_read): Update.
10443 * ada-lang.c (add_nonlocal_symbols)
10444 (ada_collect_symbol_completion_matches)
10445 (ada_add_global_exceptions): Update.
10446
7e955d83
TT
104472019-01-15 Tom Tromey <tom@tromey.com>
10448
10449 * progspace.h (program_space) <objfiles_safe_range>: New
10450 typedef.
10451 <objfiles_safe>: New method.
10452 * objfiles.h (class all_objfiles_safe): Remove.
10453 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10454 * jit.c (jit_inferior_exit_hook): Update.
10455
2030c079
TT
104562019-01-17 Tom Tromey <tom@tromey.com>
10457
10458 * progspace.h (program_space) <objfiles_range>: New typedef.
10459 <objfiles>: New method.
10460 <objfiles_head>: Rename from objfiles.
10461 (object_files): Update.
10462 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10463 * guile/scm-pretty-print.c
10464 (ppscm_find_pretty_printer_from_objfiles): Update.
10465 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10466 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10467 Update.
10468 * python/py-progspace.c (pspy_get_objfiles): Update.
10469 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10470 Update.
10471 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10472 (objfpy_lookup_objfile_by_build_id): Update.
10473 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10474 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10475 Update.
10476 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10477 (expand_symtab_containing_pc, lookup_objfile_from_block)
10478 (lookup_static_symbol, basic_lookup_transparent_type)
10479 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10480 (find_line_symtab, info_sources_command)
10481 (default_collect_symbol_completion_matches_break_on)
10482 (make_source_files_completion_list, find_main_name): Update.
10483 * symmisc.c (print_symbol_bcache_statistics)
10484 (print_objfile_statistics, maintenance_print_symbols)
10485 (maintenance_print_msymbols, maintenance_print_objfiles)
10486 (maintenance_info_symtabs, maintenance_check_symtabs)
10487 (maintenance_expand_symtabs, maintenance_info_line_tables):
10488 Update.
10489 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10490 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10491 (map_overlay_command, unmap_overlay_command)
10492 (simple_overlay_update, expand_symtabs_matching)
10493 (map_symbol_filenames): Update.
10494 * symfile-debug.c (set_debug_symfile): Update.
10495 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10496 Update.
10497 * source.c (select_source_symtab, forget_cached_source_info):
10498 Update.
10499 * solib.c (solib_read_symbols): Update.
10500 * solib-spu.c (append_ocl_sos): Update.
10501 * psymtab.c (maintenance_print_psymbols)
10502 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10503 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10504 * printcmd.c (info_symbol_command): Update.
10505 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10506 Update.
10507 * objfiles.h (class all_objfiles): Remove.
10508 * objfiles.c (have_partial_symbols, have_full_symbols)
10509 (have_minimal_symbols, qsort_cmp, update_section_map)
10510 (shared_objfile_contains_address_p)
10511 (default_iterate_over_objfiles_in_search_order): Update.
10512 * objc-lang.c (info_selectors_command, info_classes_command)
10513 (find_methods): Update.
10514 * minsyms.c (find_solib_trampoline_target): Update.
10515 * maint.c (maintenance_info_sections)
10516 (maintenance_translate_address, count_symtabs_and_blocks):
10517 Update.
10518 * main.c (captured_main_1): Update.
10519 * linux-thread-db.c (try_thread_db_load_from_pdir)
10520 (has_libpthread): Update.
10521 * linespec.c (iterate_over_all_matching_symtabs)
10522 (search_minsyms_for_name): Update.
10523 * jit.c (jit_find_objf_with_entry_addr): Update.
10524 * hppa-tdep.c (find_unwind_entry)
10525 (hppa_lookup_stub_minimal_symbol): Update.
10526 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10527 Update.
10528 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10529 (elf_gnu_ifunc_resolve_by_got): Update.
10530 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10531 * dwarf-index-write.c (save_gdb_index_command): Update.
10532 * cp-support.c (add_symbol_overload_list_qualified): Update.
10533 * breakpoint.c (create_overlay_event_breakpoint)
10534 (create_longjmp_master_breakpoint)
10535 (create_std_terminate_master_breakpoint)
10536 (create_exception_master_breakpoint): Update.
10537 * blockframe.c (find_pc_partial_function): Update.
10538 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10539 (ada_collect_symbol_completion_matches)
10540 (ada_add_global_exceptions): Update.
10541
776489e0
TT
105422019-01-17 Tom Tromey <tom@tromey.com>
10543
10544 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10545 declare VEC.
10546 (solib_target_parse_libraries): Change return type.
10547 (library_list_start_segment, library_list_start_section)
10548 (library_list_end_library, library_list_start_library); Update.
10549 (solib_target_free_library_list): Remove.
10550 (solib_target_parse_libraries): Remove cleanup. Change return
10551 type.
10552 (solib_target_current_sos): Update.
10553
6471e7d2
TT
105542019-01-17 Tom Tromey <tromey@bapiya>
10555
10556 * valprint.c: Replace "the the" with "the".
10557 * symtab.c: Replace "the the" with "the".
10558 * solib.c: Replace "the the" with "the".
10559 * solib-dsbt.c: Replace "the the" with "the".
10560 * linespec.c: Replace "the the" with "the".
10561 * dwarf2loc.h: Replace "the the" with "the".
10562 * amd64-windows-tdep.c: Replace "the the" with "the".
10563 * aarch64-tdep.c: Replace "the the" with "the".
10564
c24bdb02
KS
105652019-01-16 Keith Seitz <keiths@redhat.com>
10566
10567 PR gdb/23773
10568 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10569 <builder>: Rename to ..
10570 <m_builder>: ... this and make private.
10571 (dwarf2_cu::get_builder): New method. Change all users of
10572 `builder' to use this method.
10573 (dwarf2_start_symtab): Move to ...
10574 (dwarf2_cu::start_symtab): ... here. Update all callers
10575 (setup_type_unit_groups): Move to ...
10576 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10577 callers.
10578 (dwarf2_cu::reset_builder): New method.
10579 (process_full_compunit, process_full_type_unit): Use
10580 dwarf2_cu::reset_builder.
10581 (follow_die_offset): Record the ancestor CU if it is different
10582 from the followed DIE's CU.
10583 (follow_die_sig_1): Likewise.
10584
8d64371b
TT
105852019-01-15 Tom Tromey <tom@tromey.com>
10586
10587 * remote.c (class remote_state) <buf>: Now a char_vector.
10588 <buf_size>: Remove.
10589 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10590 parameter.
10591 (remote_target::getpkt_or_notif_sane_1)
10592 (remote_target::getpkt_sane)
10593 (remote_target::getpkt_or_notif_sane): Likewise.
10594 (class remote_target) <putpkt>: New overload.
10595 (remote_target::read_frame): Change type of "buf_p". Remove
10596 sizeof_p parameter.
10597 (packet_ok): New overload.
10598 (packet_check_result): New overload.
10599 Update all uses.
10600
bb277751
TT
106012019-01-14 Tom Tromey <tom@tromey.com>
10602
10603 * remote-notif.c (handle_notification, remote_notif_ack)
10604 (remote_notif_parse): Make "buf" const.
10605 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10606 const.
10607 (remote_notif_parse, remote_notif_ack, handle_notification):
10608 Likewise.
10609 * remote.c (remote_notif_stop_parse): Make "buf" const.
10610 (remote_target::remote_parse_stop_reply): Make "buf" const.
10611 (remote_notif_stop_ack): Make "buf" const.
10612
05be00a8
TT
106132019-01-14 Tom Tromey <tom@tromey.com>
10614
10615 * remote.c (remote_console_output): Make parameter const.
10616
491adeca
TT
106172019-01-14 Tom Tromey <tom@tromey.com>
10618
10619 * target-debug.h (target_debug_print_signals): Constify.
10620 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10621 * procfs.c (procfs_target::pass_signals): Update.
10622 * linux-nat.c (linux_nat_target::pass_signals): Update.
10623 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10624 * target-delegates.c: Rebuild.
10625 * remote.c (remote_target::program_signals): Update.
10626 (remote_target::pass_signals): Update.
10627 * target.c (target_pass_signals): Constify argument.
10628 (target_program_signals): Likewise.
10629 * target.h (struct target_ops) <pass_signals, program_signals>:
10630 Constify argument.
10631 (target_pass_signals, target_program_signals): Constify argument.
10632
bbd94648
TT
106332019-01-14 Tom Tromey <tom@tromey.com>
10634
10635 PR tui/28819:
10636 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10637
6f072a10
PFC
106382019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10639
10640 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10641 field.
10642 * rs6000-tdep.c: Include reggroups.h.
10643 (IS_V_ALIAS_PSEUDOREG): Define.
10644 (rs6000_register_name): Return names for the "vX" aliases.
10645 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10646 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10647 aliases. Call default_register_reggroup_p for all other
10648 pseudo-registers.
10649 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10650 New functions.
10651 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10652 Handle "vX" aliases.
10653 (v_alias_pseudo_register_collect): New function.
10654 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10655 (rs6000_gdbarch_init): Initialize "vX" aliases as
10656 pseudo-registers. Restore registration of
10657 rs6000_pseudo_register_reggroup_p with
10658 set_tdesc_pseudo_register_reggroup_p.
10659
1a782351
MF
106602019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10661
10662 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10663 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10664 set_gdbarch_num_pseudo_regs.
10665
d73cff18
PW
106662019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10667
10668 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10669 Remove arg prefixname, add do_set and do_show.
10670 Add member functions set_list and show_list.
10671 * cli/cli-style.c (class cli_style_option): Update accordingly.
10672 (style_set_list): Move to file scope.
10673 (style_show_list): Likewise.
10674 (set_style): Call help_list.
10675 (show_style): Call cmd_show_list.
10676 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10677 Update to use the new macro.
10678
60a90376
JB
106792019-10-12 Joel Brobecker <brobecker@adacore.com>
10680
10681 * ada-lang.c (_initialize_ada_language): Expand the help text
10682 for the "catch exception" command.
10683
9d7c67bf
PW
106842019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10685
10686 * symtab.c (matching_obj_sections): Initialize obj,
10687 declare it closer to its usage.
10688
7cf47dc4
TT
106892019-01-10 Tom Tromey <tom@tromey.com>
10690
10691 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10692 (basic_inf_threads_range): Remove.
10693 (inf_threads_range, inf_non_exited_threads_range)
10694 (safe_inf_threads_range): Use next_adapter.
10695
d3cb6808
KS
106962019-01-10 Keith Seitz <keiths@redhat.com>
10697
10698 PR gdb/23712
10699 PR symtab/23010
10700 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10701 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10702
63a20375
KS
107032019-01-10 Keith Seitz <keiths@redhat.com>
10704
10705 PR gdb/23712
10706 PR symtab/23010
10707 * dictionary.c (pending_to_vector): Remove.
10708 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10709 Remove _1 suffix, replacing functions of the same name. Update
10710 all callers.
10711 (dict_create_hashed, dict_create_hashed_expandable)
10712 (dict_create_linear, dict_create_linear_expandable, dict_free)
10713 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10714 Make functions static.
10715
b026f593
KS
107162019-01-10 Keith Seitz <keiths@redhat.com>
10717
10718 PR gdb/23712
10719 PR symtab/23010
10720 * dictionary.h (struct dictionary): Replace declaration with
10721 multidictionary.
10722 (dict_create_hashed, dict_create_hashed_expandable)
10723 (dict_create_linear, dict_create_linear_expandable)
10724 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10725 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10726 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10727 taking multidictionary argument.
10728 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10729 * block.h (struct block) <dict>: Change to multidictionary
10730 and rename `multidict'.
10731 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10732 symmisc.c: Update all dictionary references to multidictionary.
10733
c7748ee9
KS
107342019-01-10 Keith Seitz <keiths@redhat.com>
10735
10736 PR gdb/23712
10737 PR symtab/23010
10738 * dictionary.c: Include unordered_map.
10739 (pending_to_vector): New function.
10740 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10741 Rewrite the non-"_1" functions to take vector instead
10742 of linked list.
10743 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10744 "new" _1 versions of the same name.
10745 (multidictionary): Define.
10746 (std::hash<enum language): New definition.
10747 (collate_pending_symbols_by_language, mdict_create_hashed)
10748 (mdict_create_hashed_expandable, mdict_create_linear)
10749 (mdict_create_linear_expandable, mdict_free)
10750 (find_language_dictionary, create_new_language_dictionary)
10751 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10752 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10753 (mdict_size, mdict_empty): New functions.
10754 * dictionary.h (mdict_iterator): Define.
10755
67aa1f3c
PA
107562019-01-10 Pedro Alves <palves@redhat.com>
10757
10758 * breakpoint.c (read_uploaded_action)
10759 (create_tracepoint_from_upload): Adjust to use
10760 gdb::unique_xmalloc_ptr.
10761 * ctf.c (ctf_write_uploaded_tp):
10762 (SET_ARRAY_FIELD): Use emplace_back.
10763 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10764 * tracefile-tfile.c (tfile_write_uploaded_tp):
10765 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10766 gdb::unique_xmalloc_ptr.
10767 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10768 at_string, cond_string, cmd_strings>: Replace char pointers
10769 with gdb::unique_xmalloc_ptr.
10770
2f667667
PA
107712019-01-10 Pedro Alves <palves@redhat.com>
10772
10773 * solib-target.c (library_list_start_library): Don't xstrdup name.
10774
36cb7237
PA
107752019-01-10 Pedro Alves <palves@redhat.com>
10776
10777 * mdebugread.c (parse_partial_symbols): Use
10778 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10779
da584958
AB
107802019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10781
10782 * linux-fork.c (scoped_switch_fork_info)
10783 <~scoped_switch_fork_info>: Fix incorrect variable name.
10784
1ef8573c
AB
107852019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10786
10787 * linux-fork.c (scoped_switch_fork_info)
10788 <scoped_switch_fork_info>: Make explicit.
10789 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10790
8d7bcccb
TT
107912019-01-10 Tom Tromey <tom@tromey.com>
10792
10793 * objfiles.h (objfile::reset_psymtabs): Update.
10794 * objfiles.c (objfile::objfile): Update.
10795 * psymtab.h (psymtab_storage::obstack): Update.
10796 (psymtab_storage::m_obstack): Use gdb::optional.
10797 (class psymtab_storage): Update comment. Remove objfile
10798 parameter.
10799 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10800
b596a3c7
TT
108012019-01-10 Tom Tromey <tom@tromey.com>
10802
10803 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10804 <free_psymtabs>: Now private.
10805 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10806 (allocate_psymtab): Use new method.
10807
a9342b62
TT
108082019-01-10 Tom Tromey <tom@tromey.com>
10809
10810 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10811 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10812 * mdebugread.c (parse_partial_symbols): Use
10813 allocate_dependencies.
10814 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10815 allocate_dependencies.
10816 (process_psymtab_comp_unit_reader)
10817 (build_type_psymtab_dependencies): Likewise.
10818 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10819
5af70966
TT
108202019-01-10 Tom Tromey <tom@tromey.com>
10821
10822 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10823 PSYMBOL_SET_LANGUAGE.
10824 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10825
5923a04c
TT
108262019-01-10 Tom Tromey <tom@tromey.com>
10827
10828 * psymtab.h (psymtab_storage::obstack): New method.
10829 <m_obstack>: Rename from obstack; now private.
10830 * psymtab.c (psymtab_storage): Update.
10831 * dwarf2read.c (create_addrmap_from_index)
10832 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10833 Update.
10834
6d6a12bf
TT
108352019-01-10 Tom Tromey <tom@tromey.com>
10836
10837 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10838 * objfiles.h (objfile::reset_psymtabs): New method.
10839
d320c2b5
TT
108402019-01-10 Tom Tromey <tom@tromey.com>
10841
10842 * symmisc.c (print_symbol_bcache_statistics): Update.
10843 (print_objfile_statistics): Update.
10844 * symfile.c (reread_symbols): Update.
10845 * psymtab.h (class psymtab_storage): New.
10846 * psymtab.c (psymtab_storage): New constructor.
10847 (~psymtab_storage): New destructor.
10848 (require_partial_symbols): Update.
10849 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10850 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10851 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10852 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10853 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10854 (start_psymtab_common, end_psymtab_common)
10855 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10856 (allocate_psymtab): Update.
10857 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10858 Update.
10859 (dump_psymtab_addrmap, maintenance_print_psymbols)
10860 (maintenance_check_psymtabs): Update.
10861 (class objfile_psymtabs): Move to objfiles.h.
10862 * psympriv.h (discard_psymtab): Now inline.
10863 (psymtab_discarder::psymtab_discarder): Update.
10864 (psymtab_discarder::~psymtab_discarder): Update.
10865 (ALL_OBJFILE_PSYMTABS): Rewrite.
10866 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10867 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10868 Remove fields.
10869 <partial_symtabs>: New field.
10870 (class objfile_psymtabs): Move from psymtab.h. Update.
10871 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10872 psymbol_cache.
10873 (objfile::~objfile): Don't destroy psymbol_cache.
10874 * mdebugread.c (parse_partial_symbols): Update.
10875 * dwarf2read.c (create_addrmap_from_index)
10876 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10877 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10878 (add_partial_subprogram, dwarf2_ranges_read): Update.
10879 * dwarf-index-write.c (write_address_map)
10880 (write_one_signatured_type, recursively_write_psymbols)
10881 (class debug_names, class debug_names, write_psymtabs_to_index):
10882 Update.
10883
1d94a5a3
TT
108842019-01-10 Tom Tromey <tom@tromey.com>
10885
10886 * symtab.h (SYMBOL_SET_NAMES): Update.
10887 (symbol_set_names): Update.
10888 (MSYMBOL_SET_NAMES): Update.
10889 * symtab.c (symbol_set_names): Change argument to be an
10890 objfile_per_bfd_storage.
10891 * psymtab.c (add_psymbol_to_bcache): Update.
10892 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10893
0f14768a
TT
108942019-01-10 Tom Tromey <tom@tromey.com>
10895
10896 * symtab.c (create_demangled_names_hash): Change argument to be an
10897 objfile_per_bfd_storage.
10898 (symbol_set_names): Update.
10899
6eee24ce
TT
109002019-01-10 Tom Tromey <tom@tromey.com>
10901
10902 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10903 init_psymbol_list.
10904 * psymtab.c (init_psymbol_list): Do nothing if already called.
10905 * psympriv.h (init_psymbol_list): Add comment.
10906 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10907 init_psymbol_list.
10908 * dbxread.c (dbx_symfile_read): Unconditionally call
10909 init_psymbol_list.
10910
75aedd27
TT
109112019-01-10 Tom Tromey <tom@tromey.com>
10912
10913 * xcoffread.c (scan_xcoff_symtab): Update.
10914 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10915 "where".
10916 * mdebugread.c (parse_partial_symbols)
10917 (handle_psymbol_enumerators): Update.
10918 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10919 * dbxread.c (read_dbx_symtab): Update.
10920 * psympriv.h (psymbol_placement): New enum.
10921 (add_psymbol_to_list): Update.
10922
939652a5
TT
109232019-01-10 Tom Tromey <tom@tromey.com>
10924
10925 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10926 static_psymbols parameters.
10927 (scan_xcoff_symtab): Update.
10928 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10929 static_psymbols parameters.
10930 * psympriv.h (start_psymtab_common): Update.
10931 * mdebugread.c (parse_partial_symbols): Update.
10932 * dwarf2read.c (create_partial_symtab): Update.
10933 * dbxread.c (read_dbx_symtab): Update.
10934 (start_psymtab): Remove global_psymbols and static_psymbols
10935 parameters.
10936
baa62830
TT
109372019-01-10 Tom Tromey <tom@tromey.com>
10938
10939 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10940 * psymtab.c (allocate_psymtab): Add comment.
10941 * psympriv.h (allocate_psymtab): Add comment.
10942 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10943 initializations.
10944 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10945
0e8f53ba
TT
109462019-01-10 Tom Tromey <tom@tromey.com>
10947
10948 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10949 Don't declare.
10950 * mipsread.c: Include mdebugread.h.
10951 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10952 Declare.
10953 * elfread.c: Include mdebugread.h.
10954
b22a7c6a
TT
109552019-01-09 Tom Tromey <tom@tromey.com>
10956
10957 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10958 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10959 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10960 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10961 (psym_lookup_symbol, psym_find_last_source_symtab)
10962 (psym_forget_cached_source_info, psym_print_stats)
10963 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10964 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10965 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10966 (psym_find_compunit_symtab_by_address)
10967 (maintenance_print_psymbols, maintenance_info_psymtabs)
10968 (maintenance_check_psymtabs): Use ranged for.
10969 * psymtab.h (class objfile_psymtabs): New.
10970 (require_partial_symbols): Return objfile_psymtabs.
10971 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10972
3b9d3ac2
TT
109732019-01-09 Tom Tromey <tom@tromey.com>
10974
10975 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10976 (find_pc_mapped_section, list_overlays_command)
10977 (map_overlay_command, unmap_overlay_command)
10978 (simple_overlay_update): Use all_objfiles.
10979 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10980 * printcmd.c (info_symbol_command): Use all_objfiles.
10981 * objfiles.h (ALL_OBJSECTIONS): Remove.
10982 * maint.c (maintenance_translate_address): Use all_objfiles.
10983 * gcore.c (gcore_create_callback): Use all_objfiles.
10984 (objfile_find_memory_regions): Likewise.
10985
8b31193a
TT
109862019-01-09 Tom Tromey <tom@tromey.com>
10987
10988 * symtab.c (find_line_symtab, info_sources_command)
10989 (make_source_files_completion_list): Use objfile_compunits.
10990 * source.c (select_source_symtab): Use objfile_compunits.
10991 * objfiles.h (struct objfile): Update comment.
10992 (ALL_OBJFILES): Remove.
10993 (ALL_FILETABS): Remove.
10994 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10995 objfile_compunits.
10996
d5da8b3c
TT
109972019-01-09 Tom Tromey <tom@tromey.com>
10998
10999 * symmisc.c (print_objfile_statistics, dump_objfile)
11000 (maintenance_print_symbols): Use compunit_filetabs.
11001 * source.c (forget_cached_source_info_for_objfile): Use
11002 compunit_filetabs.
11003 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11004 (ALL_FILETABS): Use compunit_filetabs.
11005 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11006 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11007
5accd1a0
TT
110082019-01-09 Tom Tromey <tom@tromey.com>
11009
11010 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11011 (compunit_filetabs): New.
11012 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11013 compunit_filetabs.
11014 (info_sources_command, make_source_files_completion_list): Remove
11015 declaration.
11016 * symmisc.c (print_objfile_statistics, dump_objfile)
11017 (maintenance_print_symbols): Remove declaration.
11018 (maintenance_info_symtabs): Use compunit_filetabs.
11019 (maintenance_info_line_tables): Likewise.
11020 * source.c (select_source_symtab): Change local variable name.
11021 (forget_cached_source_info_for_objfile): Remove declaration.
11022 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11023 * objfiles.c (objfile_relocate1): Remove declaration.
11024 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11025 declaration.
11026 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11027 * coffread.c (coff_symtab_read): Remove declaration.
11028 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11029 compunit_filetabs.
11030
d8aeb77f
TT
110312019-01-09 Tom Tromey <tom@tromey.com>
11032
11033 * symtab.c (lookup_objfile_from_block)
11034 (find_pc_sect_compunit_symtab, search_symbols)
11035 (default_collect_symbol_completion_matches_break_on): Use
11036 objfile_compunits.
11037 * objfiles.h (ALL_COMPUNITS): Remove.
11038 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11039 * cp-support.c (add_symbol_overload_list_qualified): Use
11040 objfile_compunits.
11041 * ada-lang.c (ada_collect_symbol_completion_matches)
11042 (ada_add_global_exceptions): Use objfile_compunits.
11043
592553c4
TT
110442019-01-09 Tom Tromey <tom@tromey.com>
11045
11046 * source.c (select_source_symtab)
11047 (forget_cached_source_info_for_objfile): Remove declaration.
11048 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11049 declaration.
11050 * maint.c (count_symtabs_and_blocks): Remove declaration.
11051 * cp-support.c (add_symbol_overload_list_qualified): Remove
11052 declaration.
11053 * coffread.c (coff_symtab_read): Remove declaration.
11054 * symtab.c (lookup_symbol_in_objfile_symtabs)
11055 (basic_lookup_transparent_type_1): Use objfile_compunits.
11056 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11057 (info_sources_command, search_symbols)
11058 (default_collect_symbol_completion_matches_break_on)
11059 (make_source_files_completion_list): Remove declaration.
11060 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11061 (ada_collect_symbol_completion_matches)
11062 (ada_add_global_exceptions): Remove declaration.
11063 * linespec.c (iterate_over_all_matching_symtabs): Use
11064 objfile_compunits.
11065 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11066 (class objfile_compunits): New.
11067 (ALL_COMPUNITS): Use objfile_compunits.
11068 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11069 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11070 objfile_compunits.
11071 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11072
5325b9bf
TT
110732019-01-09 Tom Tromey <tom@tromey.com>
11074
11075 * symtab.c (search_symbols)
11076 (default_collect_symbol_completion_matches_break_on): Use
11077 objfile_msymbols.
11078 * ada-lang.c (ada_lookup_simple_minsym)
11079 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11080 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11081 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11082 objfile_msymbols.
11083 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11084 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11085 * objc-lang.c (find_methods): Use objfile_msymbols.
11086 (info_selectors_command, info_classes_command): Likewise.
11087 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11088 * objfiles.h (class objfile_msymbols): New.
11089 (ALL_OBJFILE_MSYMBOLS): Remove.
11090 (ALL_MSYMBOLS): Remove.
11091
cac85af2
TT
110922019-01-09 Tom Tromey <tom@tromey.com>
11093
11094 * common/next-iterator.h (next_adapter): Add Iterator template
11095 parameter.
11096 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11097 (class all_objfiles_safe): New.
11098 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11099 * objfiles.c (put_objfile_before): Update comment.
11100 (add_separate_debug_objfile): Likewise.
11101 (free_all_objfiles): Use all_objfiles_safe.
11102 (objfile_purge_solibs): Likewise.
11103
aed57c53
TT
111042019-01-09 Tom Tromey <tom@tromey.com>
11105
11106 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11107 (expand_symtab_containing_pc, lookup_static_symbol)
11108 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11109 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11110 all_objfiles.
11111 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11112 * breakpoint.c (create_overlay_event_breakpoint)
11113 (create_longjmp_master_breakpoint)
11114 (create_std_terminate_master_breakpoint)
11115 (create_exception_master_breakpoint): Use all_objfiles.
11116 * linux-thread-db.c (try_thread_db_load_from_pdir)
11117 (has_libpthread): Use all_objfiles.
11118 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11119 * linespec.c (iterate_over_all_matching_symtabs)
11120 (search_minsyms_for_name): Use all_objfiles.
11121 * maint.c (maintenance_info_sections): Use all_objfiles.
11122 * main.c (captured_main_1): Use all_objfiles.
11123 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11124 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11125 * guile/scm-pretty-print.c
11126 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11127 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11128 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11129 (maintenance_print_msymbols): Use all_objfiles.
11130 * source.c (select_source_symtab): Use all_objfiles.
11131 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11132 * symfile.c (remove_symbol_file_command)
11133 (expand_symtabs_matching, map_symbol_filenames): Use
11134 all_objfiles.
11135 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11136 all_objfiles.
11137 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11138 * objc-lang.c (find_methods): Use all_objfiles.
11139 * objfiles.c (have_partial_symbols, have_full_symbols)
11140 (have_minimal_symbols, qsort_cmp)
11141 (default_iterate_over_objfiles_in_search_order): Use
11142 all_objfiles.
11143 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11144 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11145 (maintenance_check_psymtabs): Use all_objfiles.
11146 (ALL_PSYMTABS): Remove.
11147 * compile/compile-object-run.c (do_module_cleanup): Use
11148 all_objfiles.
11149 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11150 * cp-support.c (add_symbol_overload_list_qualified): Use
11151 all_objfiles.
11152 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11153 Use all_objfiles.
11154 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11155 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11156 all_objfiles.
11157 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11158 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11159 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11160 Uses all_objfiles.
11161 * solib.c (solib_read_symbols): Use all_objfiles
11162
99d89cde
TT
111632019-01-09 Tom Tromey <tom@tromey.com>
11164
11165 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11166 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11167 all_objfiles.
11168 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11169 * symmisc.c (print_symbol_bcache_statistics)
11170 (print_objfile_statistics, maintenance_print_objfiles)
11171 (maintenance_info_symtabs, maintenance_check_symtabs)
11172 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11173 all_objfiles.
11174 * source.c (forget_cached_source_info): Use all_objfiles.
11175 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11176 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11177 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11178 * objfiles.c (update_section_map): Use all_objfiles.
11179 (shared_objfile_contains_address_p): Likewise.
11180 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11181 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11182
21708325
TT
111832019-01-09 Tom Tromey <tom@tromey.com>
11184
11185 * common/next-iterator.h: New file.
11186 * objfiles.h (class all_objfiles): New.
11187 (struct objfile_iterator): New.
11188
669e09f6
PW
111892019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11190
11191 * NEWS: Move the description of the changed "frame", "select-frame",
11192 and "info frame" commands to the Changed commands section.
11193
041be526
SM
111942019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11195
11196 * gdbtypes.c (check_stub_method_group): Remove handling of old
11197 mangling schemes.
11198 * linespec.c (find_methods): Likewise.
11199 * stabsread.c (read_member_functions): Likewise.
11200 * valops.c (search_struct_method): Likewise.
11201 (value_struct_elt_for_reference): Likewise.
11202 * NEWS: Mention this change.
11203
0e2a2133
AB
112042019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11205
11206 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11207 print_source_lines.
11208 * source.c (print_source_lines_base): Update line number check.
11209 (print_source_lines): New function.
11210 (source_lines_range::source_lines_range): New function.
11211 * source.h (class source_lines_range): New class.
11212 (print_source_lines): New declaration.
11213
1055a3b4
PW
112142019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11215
11216 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11217
cfeadda5
TT
112182019-01-08 Tom Tromey <tom@tromey.com>
11219 Simon Marchi <simon.marchi@ericsson.com>
11220
11221 PR gdb/24060
11222 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11223 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11224 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11225 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11226 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11227 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11228
583068ca
AB
112292019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11230
11231 * source.c (select_source_symtab): Move header comment to
11232 declaration in source.h.
11233 (forget_cached_source_info_for_objfile): Likewise.
11234 (forget_cached_source_info): Likewise.
11235 (identify_source_line): Likewise.
11236 * source.h (identify_source_line): Move declaration from symtab.h
11237 and add comment from source.c
11238 (print_source_lines): Likewise.
11239 (forget_cached_source_info_for_objfile): Likewise.
11240 (forget_cached_source_info): Likewise.
11241 (select_source_symtab): Likewise.
11242 (enum print_source_lines_flag): Move definition from symtab.h.
11243 * symtab.h (identify_source_line): Move declaration to source.h.
11244 (print_source_lines): Likewise.
11245 (forget_cached_source_info_for_objfile): Likewise.
11246 (forget_cached_source_info): Likewise.
11247 (select_source_symtab): Likewise.
11248 (enum print_source_lines_flag): Move definition to source.h.
11249 * tui/tui-hooks.c: Add 'source.h' include.
11250
ec98a4ad
AB
112512019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11252
11253 * source.c (print_source_lines_base): Handle requests to print
11254 reverse line number sequences, and guard against empty lines
11255 string.
11256
62ea19c1
AB
112572019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11258
11259 * source.c (print_source_lines_base): Fix skip of '\r' if next
11260 character is '\n'.
11261
9d30e1fd
TT
112622019-01-06 Tom Tromey <tom@tromey.com>
11263
11264 * c-exp.y (struct c_parse_state) <macro_original_text,
11265 expansion_obstack>: New member.
11266 (macro_original_text, expansion_obstack): Remove globals.
11267 (scan_macro_expansion, scanning_macro_expansion)
11268 (finished_macro_expansion): Update.
11269 (scan_macro_cleanup): Remove.
11270 (yylex, c_parse): Update.
11271
c65bac38
TT
112722019-01-06 Tom Tromey <tom@tromey.com>
11273
11274 * c-exp.y (struct c_parse_state) <strings>: New member.
11275 (operator_stoken): Update.
11276
02e12e38
TT
112772019-01-06 Tom Tromey <tom@tromey.com>
11278
11279 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11280 (union type_stack_elt) <typelist_val>: Now a pointer to
11281 std::vector.
11282 (type_stack_cleanup): Don't declare.
11283 (push_typelist): Update.
11284 * parse.c (pop_typelist): Return a std::vector.
11285 (push_typelist): Take a std::vector.
11286 (follow_types): Update. Do not free args.
11287 (type_stack_cleanup): Remove.
11288 * c-exp.y (struct c_parse_state): New.
11289 (cpstate): New global.
11290 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11291 (nonempty_typelist): Update.
11292 (func_mod): Create a new vector.
11293 (c_parse): Create a c_parse_state.
11294 (check_parameter_typelist): Do not delete params.
11295 (function_method): Update. Do not delete type_list.
11296
f097f5ad
TT
112972019-01-06 Tom Tromey <tom@tromey.com>
11298
11299 PR gdb/28155:
11300 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11301 check_typedef.
11302 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11303 (print_return_value): Likewise.
11304
d2adf9f1
TT
113052019-01-05 Tom Tromey <tom@tromey.com>
11306
11307 * contrib/cleanup_check.py: Remove.
11308 * contrib/gcc-with-excheck: Remove.
11309 * contrib/exsummary.py: Remove.
11310 * contrib/excheck.py: Remove.
11311
2eab46b1
JB
113122019-01-05 Joel Brobecker <brobecker@adacore.com>
11313
11314 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11315 NULL. Initialize tpprev to NULL instead of assigning it
11316 to NULL on the next statement.
11317 * windows-nat.c (windows_delete_thread): Remove check for
11318 main_thread_id before printing thread exit notifications.
11319 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11320 Remove thread ID check against main_thread_id.
11321 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11322 windows_delete_thread.
11323 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11324
48c5e7e2
TT
113252019-01-04 Tom Tromey <tom@tromey.com>
11326
11327 * compile/compile.c (_initialize_compile): Use upper case for
11328 metasyntactic variables.
11329 * symmisc.c (_initialize_symmisc): Use upper case for
11330 metasyntactic variables.
11331 * psymtab.c (_initialize_psymtab): Use upper case for
11332 metasyntactic variables.
11333 * demangle.c (demangle_command): Use upper case for metasyntactic
11334 variables.
11335 (_initialize_demangler): Likewise.
11336 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11337 variables.
11338
986041cd
TT
113392019-01-03 Tom Tromey <tom@tromey.com>
11340
11341 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11342
7c711119
TT
113432019-01-03 Tom Tromey <tom@tromey.com>
11344
11345 * python/py-symtab.c (salpy_str): Update.
11346 (struct salpy_sal_object) <symtab>: Now a PyObject.
11347 (salpy_dealloc): Update.
11348 (del_objfile_sal): Use gdbpy_ref.
11349
1b20edf0
TT
113502019-01-03 Tom Tromey <tom@tromey.com>
11351
11352 * python/py-type.c (convert_field): Use new_reference. Return
11353 gdbpy_ref.
11354 (make_fielditem): Return gdbpy_ref.
11355 (typy_fields): Update.
11356 (typy_getitem): Update.
11357 (field_name): Return gdbpy_ref. Use new_reference.
11358 (typy_iterator_iternext): Update.
11359
ea41325b
TT
113602019-01-03 Tom Tromey <tom@tromey.com>
11361
11362 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11363
2a3c71d6
TT
113642019-01-03 Tom Tromey <tom@tromey.com>
11365
11366 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11367 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11368 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11369 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11370 (pspy_set_type_printers): Likewise.
11371 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11372 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11373 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11374 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11375 (objfpy_set_type_printers): Likewise.
11376
5c329e6a
TT
113772019-01-03 Tom Tromey <tom@tromey.com>
11378
11379 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11380 (gdbpy_print_stack): Use gdbpy_err_fetch.
11381 * python/python-internal.h (class gdbpy_err_fetch): New class.
11382 (class gdbpy_enter) <m_error_type, m_error_value,
11383 m_error_traceback>: Remove.
11384 <m_error>: New member.
11385 (gdbpy_exception_to_string): Don't declare.
11386 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11387 * python/py-value.c (convert_value_from_python): Use
11388 gdbpy_err_fetch.
11389 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11390 gdbpy_exception_to_string.
11391 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11392 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11393 gdbpy_err_fetch.
11394
169bb27b
AB
113952019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11396
11397 * linux-nat.c (delete_lwp_cleanup): Delete.
11398 (struct lwp_deleter): New struct.
11399 (lwp_info_up): New typedef.
11400 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11401 lwp_info_up.
11402
a07c8880
AB
114032019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11404
11405 * linux-fork.c (class scoped_switch_fork_info): New class.
11406 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11407
26089c49
AB
114082019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11409
11410 * valops.c (find_overload_match): Remove use of null_cleanup, and
11411 calls to do_cleanups.
11412
06d3e5b0
AB
114132019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11414
11415 * compile/compile-cplus-types.c
11416 (compile_cplus_instance::decl_name): Handle changes to
11417 cp_func_name.
11418 * cp-support.c (cp_func_name): Update header comment, update
11419 return type.
11420 * cp-support.h (cp_func_name): Update return type in declaration.
11421 * valops.c (find_overload_match): Move temp_func local to top
11422 level of function and change its type. Use temp_func to hold and
11423 delete temporary string obtained from cp_func_name.
11424
66644cd3
AB
114252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11426
11427 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11428 gdb::char_vector, remove cleanup, and update uses of `msg`.
11429
592d8c0a
JW
114302019-01-03 Jim Wilson <jimw@sifive.com>
11431
11432 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11433
c55d06ec
TT
114342019-01-02 Tom Tromey <tom@tromey.com>
11435
11436 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11437 (tdesc_parse_xml): Remove cleanups.
11438 * target-descriptions.h (make_cleanup_free_target_description):
11439 Don't declare.
11440 (target_desc_deleter): New struct.
11441 (target_desc_up): New typedef.
11442 * target-descriptions.c (target_desc_deleter::operator()): Rename
11443 from free_target_description.
11444 (make_cleanup_free_target_description): Remove.
11445
3a6ae42d
TT
114462019-01-02 Tom Tromey <tom@tromey.com>
11447
11448 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11449 constructor, destructor.
11450 (linespec_parser): Remove typedef.
11451 (~linespec_parser): Rename from linespec_parser_delete.
11452 (linespec_lex_to_end, linespec_complete_label)
11453 (linespec_complete): Update.
11454 (decode_line_full): Remove cleanups.
11455 (decode_line_1): Update.
11456
61fd3e73
TT
114572019-01-02 Tom Tromey <tom@tromey.com>
11458
11459 * python/python-internal.h (inferior_to_inferior_object): Change
11460 return type.
11461 * python/py-exitedevent.c (create_exited_event_object): Update.
11462 * python/py-inferior.c (inferior_to_inferior_object): Return
11463 gdbpy_ref.
11464 (python_new_inferior, python_inferior_deleted)
11465 (thread_to_thread_object, delete_thread_object)
11466 (build_inferior_list, gdbpy_selected_inferior): Update.
11467 * python/py-infthread.c (create_thread_object): Update. Also fail
11468 if inferior_to_inferior_object fails.
11469
d20172fc
SM
114702019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11471
11472 * inferior.h (class inferior) <displaced_step_state>: New field.
11473 * infrun.h (struct displaced_step_state): Move here from
11474 infrun.c. Initialize fields, add constructor.
11475 <inf>: Remove field.
11476 <reset>: New method.
11477 * infrun.c (struct displaced_step_inferior_state): Move to
11478 infrun.h.
11479 (displaced_step_inferior_states): Remove.
11480 (get_displaced_stepping_state): Adust.
11481 (displaced_step_in_progress_any_inferior): Adjust.
11482 (displaced_step_in_progress_thread): Adjust.
11483 (displaced_step_in_progress): Adjust.
11484 (add_displaced_stepping_state): Remove.
11485 (get_displaced_step_closure_by_addr): Adjust.
11486 (remove_displaced_stepping_state): Remove.
11487 (infrun_inferior_exit): Call displaced_step_state.reset.
11488 (use_displaced_stepping): Don't check for NULL.
11489 (displaced_step_prepare_throw): Call
11490 get_displaced_stepping_state.
11491 (displaced_step_fixup): Don't check for NULL.
11492 (prepare_for_detach): Don't check for NULL.
11493
e3319240
PW
114942019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11495
11496 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11497 in case of call that did not complete.
11498
5d36dfb9
AU
114992019-01-02 Andrey Utkin <autkin@undo.io>
11500
11501 * symfile.c (find_separate_debug_file): Fix search of debug files for
11502 remote debuggee.
11503
8833fbf0
TT
115042019-01-02 Tom Tromey <tom@tromey.com>
11505
11506 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11507 indentation.
11508 * python/py-frame.c (frapy_older): Remove cast.
11509 (frapy_newer): Likewise.
11510 * python/py-breakpoint.c (local_setattro): Remove cast.
11511 * python/py-arch.c (archpy_name): Remove local variable.
11512 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11513
4ada3dfd
JB
115142019-01-02 Joel Brobecker <brobecker@adacore.com>
11515
11516 * unittests/basic_string_view/element_access/char/empty.cc:
11517 Fix year range in copyright header.
11518
113b7b81
AB
115192019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11520
11521 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11522 Delete.
11523 <operator==>: Update with for removed field.
11524 <hash>: Likewise.
11525 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11526 <isa_features>: ...this.
11527 <abi_features>: New field.
11528 (riscv_isa_flen): Update comment.
11529 (riscv_abi_xlen): New declaration.
11530 (riscv_abi_flen): New declaration.
11531 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11532 isa_features.
11533 (riscv_abi_xlen): New function.
11534 (riscv_isa_flen): Update to get answer from isa_features.
11535 (riscv_abi_flen): New function.
11536 (riscv_has_fp_abi): Update to get answer from abi_features.
11537 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11538 xlen and flen.
11539 (riscv_call_info) <xlen, flen>: Update comment.
11540 (riscv_call_arg_struct): Remove invalid assertions
11541 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11542 is removed.
11543 (riscv_gdbarch_init): Gather isa features and abi features
11544 separately, ensure both match on the gdbarch when reusing an old
11545 gdbarch. Relax an error check to allow 32-bit abi float to run on
11546 a target with 64-bit float hardware.
11547
b18ca514
PW
115482019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11549
11550 * source.c (search_command_helper): Stop reverse search
11551 when line 1 has been searched.
11552
ec70d8db
PW
115532019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11554
11555 * record-full.c (record_full_base_target::close): Rewrite
11556 record_full_core_buf_list free logic.
11557
5b38f9c1
PW
115582019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11559
11560 * break-catch-syscall.c (print_one_catch_syscall): xfree
11561 the last text.
11562
66d91b39
JB
115632019-01-01 Joel Brobecker <brobecker@adacore.com>
11564
11565 * top.c (print_gdb_version): Update Copyright year in version
11566 message.
11567
42a4f53d
JB
115682019-01-01 Joel Brobecker <brobecker@adacore.com>
11569
11570 Update copyright year range in all GDB files.
11571
7e955d83 115722019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11573
5bbd631d 11574 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11575
5bbd631d 11576For older changes see ChangeLog-2018.
c906108c
SS
11577\f
11578Local Variables:
11579mode: change-log
11580left-margin: 8
11581fill-column: 74
11582version-control: never
57da7796 11583coding: utf-8
c906108c 11584End:
5bbd631d 11585
This page took 2.75993 seconds and 4 git commands to generate.