]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Minor rearrangement in tui-regs.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1a4f81dd
TT
12019-08-20 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4 earlier.
5
0f8d8876
TT
62019-08-20 Tom Tromey <tom@tromey.com>
7
8 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
9
605dc2c2
TT
102019-08-20 Tom Tromey <tom@tromey.com>
11
12 * tui/tui-source.h (struct tui_source_window): Update.
13 * tui/tui-regs.c (tui_show_registers): Update.
14 * tui/tui-disasm.h (struct tui_disasm_window): Update.
15 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
16 (NO_REGS_STRING): Remove defines.
17
aedbe3bb
CM
182019-08-20 Conrad Meyer <cem@FreeBSD.org>
19
20 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
21 unnecessary thread walk if remote doesn't support the packet.
22
7ce8f214
TT
232019-08-19 Tom Tromey <tromey@adacore.com>
24
25 * python/py-value.c (value_has_field): Fix indentation.
26
f21c2bd7
TT
272019-08-19 Tom Tromey <tromey@adacore.com>
28
29 * printcmd.c (do_one_display, info_display_command): Update.
30 * block.h (contained_in): Return bool. Add allow_nested
31 parameter.
32 * block.c (contained_in): Return bool. Add allow_nested
33 parameter.
34
d806ea2d
TT
352019-08-19 Tom Tromey <tom@tromey.com>
36
37 * configure: Rebuild.
38 * configure.ac: Disallow the combination of -static-libstdc++ and
39 source highlight.
40 * source-cache.c (get_language_name): Handle rust.
41 (source_cache::get_source_lines): Ignore highlighting exceptions.
42
398fdd60
TT
432019-08-16 Tom Tromey <tom@tromey.com>
44
45 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
46 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
47 (struct tui_source_window_base) <make_visible, refresh_window,
48 resize>: Remove methods.
49 <execution_info>: Remove field.
50 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
51 (tui_show_source_line, tui_source_window_base)
52 (~tui_source_window_base): Update.
53 (tui_source_window_base::resize)
54 (tui_source_window_base::make_visible)
55 (tui_source_window_base::refresh_window): Remove.
56 (tui_source_window_base::update_exec_info): Update.
57 * tui/tui-source.c (tui_source_window::set_contents): Update.
58 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
59
e699d331
TT
602019-08-16 Tom Tromey <tom@tromey.com>
61
62 * tui/tui-hooks.c (tui_remove_hooks): Don't set
63 deprecated_query_hook.
64
bb01dbfc
TT
652019-08-16 Tom Tromey <tom@tromey.com>
66
67 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
68 (tui_update_source_windows_with_line): Update.
69 * tui/tui-source.h (struct tui_source_window)
70 <show_symtab_source>: Declare.
71 (tui_show_symtab_source): Don't declare.
72 * tui/tui-source.c (tui_show_symtab_source): Rename from
73 tui_show_symtab_source.
74
81c82c4b
TT
752019-08-16 Tom Tromey <tom@tromey.com>
76
77 * tui/tui-winsource.h (struct tui_source_window_base)
78 <set_contents>: Declare.
79 * tui/tui-winsource.c
80 (tui_source_window_base::update_source_window_as_is): Update.
81 * tui/tui-source.h (struct tui_source_window) <set_contents>:
82 Declare.
83 (tui_set_source_content): Don't declare.
84 * tui/tui-source.c (tui_source_window::set_contents): Rename from
85 tui_set_source_content.
86 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
87 Declare.
88 (tui_set_disassem_content): Don't declare.
89 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
90 tui_set_disassem_content.
91
2ddaf614
TT
922019-08-16 Tom Tromey <tom@tromey.com>
93
94 * tui/tui-winsource.h (struct tui_source_window_base)
95 <update_breakpoint_info>: Declare.
96 (tui_update_breakpoint_info): Don't declare.
97 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
98 (tui_update_all_breakpoint_info): Update.
99 (tui_source_window_base::update_breakpoint_info): Rename from
100 tui_update_breakpoint_info.
101 (tui_source_window_base::update_exec_info): Update.
102
017f9828
TT
1032019-08-16 Tom Tromey <tom@tromey.com>
104
105 * tui/tui-winsource.h (struct tui_source_window_base)
106 <update_source_window>: Declare.
107 (tui_update_source_window): Don't declare.
108 * tui/tui-winsource.c
109 (tui_source_window_base::update_source_window): Rename from
110 tui_update_source_window.
111 (tui_source_window_base::rerender): Update.
112 * tui/tui-source.c (tui_source_window::maybe_update): Update.
113 * tui/tui-disasm.c (tui_show_disassem)
114 (tui_show_disassem_and_update_source)
115 (tui_disasm_window::maybe_update): Update.
116
ed8358e9
TT
1172019-08-16 Tom Tromey <tom@tromey.com>
118
119 * tui/tui-winsource.h (struct tui_source_window_base)
120 <update_source_window_as_is>: Declare.
121 (tui_update_source_window_as_is): Don't declare.
122 * tui/tui-winsource.c (tui_update_source_window): Update
123 (tui_source_window_base::update_source_window_as_is): Rename from
124 tui_update_source_window_as_is.
125 (tui_source_window_base::refill): Update.
126 * tui/tui-source.c (tui_show_symtab_source): Update.
127 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
128 Update.
129
20149b6b
TT
1302019-08-16 Tom Tromey <tom@tromey.com>
131
132 * tui/tui-winsource.h (tui_update_source_window)
133 (tui_update_source_window_as_is): Remove "noerror" parameter.
134 * tui/tui-winsource.c (tui_update_source_window)
135 (tui_update_source_window_as_is): Remove "noerror" parameter.
136 (tui_update_source_windows_with_addr)
137 (tui_update_source_windows_with_line)
138 (tui_source_window_base::rerender)
139 (tui_source_window_base::refill): Update.
140 * tui/tui-source.h (tui_set_source_content)
141 (tui_show_symtab_source): Remove "noerror" parameter.
142 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
143 parameter.
144 (tui_show_symtab_source): Likewise.
145 (tui_source_window::maybe_update): Update.
146 * tui/tui-disasm.c (tui_show_disassem)
147 (tui_show_disassem_and_update_source)
148 (tui_disasm_window::do_scroll_vertical)
149 (tui_disasm_window::maybe_update): Update.
150
2d83e710
TT
1512019-08-16 Tom Tromey <tom@tromey.com>
152
153 * tui/tui.c (tui_is_window_visible): Update.
154 * tui/tui-wingeneral.c (tui_make_window)
155 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
156 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
157 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
158 (tui_set_win_height_command, parse_scrolling_args): Update.
159 * tui/tui-source.c (tui_source_window::style_changed): Update.
160 * tui/tui-regs.c (tui_show_registers)
161 (tui_data_window::first_data_item_displayed)
162 (tui_data_window::delete_data_content_windows)
163 (tui_check_register_values, tui_reg_command): Update.
164 * tui/tui-disasm.c (tui_show_disassem): Update.
165 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
166 method.
167 <is_visible>: Remove field.
168 * tui/tui-data.c (tui_next_win, tui_prev_win)
169 (tui_delete_invisible_windows): Update.
170
d4ab829a
TT
1712019-08-16 Tom Tromey <tom@tromey.com>
172
173 * tui/tui-winsource.h (struct tui_source_window_base)
174 <m_has_locator>: Remove.
175 * tui/tui-layout.c (show_source_disasm_command, show_data)
176 (show_source_or_disasm_and_command): Update.
177
aa7ca1bb
AH
1782019-08-16 Alan Hayward <alan.hayward@arm.com>
179
180 * NEWS (Other MI changes): New subsection.
181 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
182 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
183 * arch-utils.c (default_get_pc_address_flags): New function.
184 * arch-utils.h (default_get_pc_address_flags): New declaration.
185 * gdbarch.sh: Add get_pc_address_flags.
186 * gdbarch.c: Regenerate.
187 * gdbarch.h: Likewise.
188 * stack.c (print_pc): New function.
189 (print_frame_info) (print_frame): Call print_pc.
190
6eac171f
TV
1912019-08-16 Tom de Vries <tdevries@suse.de>
192
193 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
194 print_objfile_section_info.
195
3df505f6
TT
1962019-08-15 Tom Tromey <tom@tromey.com>
197
198 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
199 calling update_cmdwin_start_line.
200 * tui/tui-winsource.h (struct tui_source_window_base)
201 <do_make_visible_with_new_height, set_new_height>: Don't declare.
202 <rerender>: Declare.
203 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
204 Call rerender.
205 (tui_source_window_base::set_new_height): Remove.
206 (tui_source_window_base::rerender): Rename from
207 do_make_visible_with_new_height.
208 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
209 resize method.
210 (tui_win_info::make_invisible_and_set_new_height)
211 (tui_win_info::make_visible_with_new_height): Remove.
212 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
213 Declare.
214 * tui/tui-stack.c (tui_locator_window::rerender): New method.
215 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
216 do_make_visible_with_new_height>: Don't declare.
217 <rerender>: Declare.
218 * tui/tui-regs.c (tui_data_window::rerender): Rename from
219 set_new_height.
220 (tui_data_window::do_make_visible_with_new_height): Remove.
221 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
222 call tui_show_locator_content.
223 (tui_gen_win_info::resize): Call rerender.
224 (show_source_or_disasm_and_command): Don't call
225 tui_show_locator_content.
226 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
227 method.
228 (struct tui_win_info) <rerender>: Declare.
229 <set_new_height, make_invisible_and_set_new_height,
230 make_visible_with_new_height>: Don't declare.
231 * tui/tui-data.c (tui_win_list::rerender): New method.
232 * tui/tui-command.h (struct tui_cmd_window)
233 <do_make_visible_with_new_height>: Don't declare.
234 * tui/tui-command.c
235 (tui_cmd_window::do_make_visible_with_new_height): Remove.
236
272560b5
TT
2372019-08-15 Tom Tromey <tromey@adacore.com>
238
239 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
240 * ada-lang.c (ada_enum_name): Likewise.
241
08235187
CB
2422019-08-15 Christian Biesinger <cbiesinger@google.com>
243
244 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
245 leading underscore.
246 (GdbOutputErrorFile): Likewise.
247 (global scope): Adjust constructor calls to GdbOutput{,Error}File
248 accordingly.
249 (execute_unwinders): Rename to have a leading underscore.
250 (auto_load_packages): Likewise.
251 (global scope): Adjust call to auto_load_packages accordingly.
252 (GdbSetPythonDirectory): Likewise.
253 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
254 instead of execute_unwinders.
255
db502012
TT
2562019-08-15 Tom Tromey <tom@tromey.com>
257
258 * tui/tui-layout.c (show_layout, show_source_disasm_command)
259 (show_data): Don't change window visibility.
260 (tui_gen_win_info::resize): Remove special case for command
261 window. Use wresize, when available.
262 (show_source_or_disasm_and_command): Don't change window
263 visibility.
264 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
265 <make_visible>: New method.
266 * tui/tui-command.c (tui_cmd_window::resize): New method.
267
3891b65e
TT
2682019-08-15 Tom Tromey <tom@tromey.com>
269
270 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
271 (struct tui_source_windows): New.
272 * tui/tui-winsource.c (tui_display_main): Update.
273 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
274 (new_height_ok, parse_scrolling_args): Update.
275 * tui/tui-layout.c (show_layout, show_data): Update.
276 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
277 (tui_add_to_source_windows): Don't declare.
278 * tui/tui-data.c (source_windows, tui_source_windows)
279 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
280
ee556432
TT
2812019-08-15 Tom Tromey <tom@tromey.com>
282
283 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
284 Rename from reset.
285 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
286 * tui/tui-layout.c (show_source_disasm_command, show_data):
287 Update.
288 (tui_gen_win_info::resize): Rename.
289 (show_source_or_disasm_and_command): Update.
290 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
291 reset.
292
46f438e3
TT
2932019-08-15 Tom Tromey <tom@tromey.com>
294
295 * tui/tui-stack.c (tui_initialize_static_data): Remove.
296 * tui/tui-interp.c (tui_interp::init): Don't call
297 tui_initialize_static_data.
298 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
299
f4ce562c
TT
3002019-08-15 Tom Tromey <tom@tromey.com>
301
302 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
303 examine tui_win_list.
304
c398c3d0
TT
3052019-08-15 Tom Tromey <tom@tromey.com>
306
307 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
308 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
309 tui_clear_source_content.
310 (tui_clear_source_content): Remove.
311 (tui_source_window_base::do_erase_source_content): Hoist call to
312 content.clear().
313 * tui/tui-stack.c (tui_show_frame_info): Don't call
314 tui_clear_source_content.
315
e25d2004
TT
3162019-08-15 Tom Tromey <tom@tromey.com>
317
318 * tui/tui-winsource.h (struct tui_source_window_base)
319 <do_erase_source_content>: New method.
320 <erase_source_content>: New method.
321 (tui_erase_source_content): Don't declare.
322 * tui/tui-winsource.c (tui_clear_source_content): Update.
323 (tui_source_window_base::do_erase_source_content): Rename from
324 tui_erase_source_content.
325 (tui_source_window_base::show_source_content): Update.
326 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
327 * tui/tui-source.h (struct tui_source_window)
328 <erase_source_content>: New method.
329 * tui/tui-disasm.h (struct tui_disasm_window)
330 <erase_source_content>: New method.
331
002f15c2
TT
3322019-08-15 Tom Tromey <tom@tromey.com>
333
334 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
335 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
336 constructor.
337 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
338 * tui/tui-source.c (tui_set_source_content): Update.
339 * tui/tui-disasm.c (tui_set_disassem_content): Update.
340
c9033fe8
TT
3412019-08-15 Tom Tromey <tom@tromey.com>
342
343 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
344 * tui/tui-winsource.c (tui_line_is_displayed): Move to
345 tui-source.c.
346 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
347 Declare.
348 * tui/tui-source.c (tui_source_window::line_is_displayed): New
349 method.
350 (tui_source_window::maybe_update): Update.
351
088f37dd
TT
3522019-08-15 Tom Tromey <tom@tromey.com>
353
354 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
355 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
356 tui-disasm.c.
357 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
358 Declare.
359 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
360 method.
361 (tui_disasm_window::maybe_update): Update.
362
a54700c6
TT
3632019-08-15 Tom Tromey <tom@tromey.com>
364
365 * tui/tui-winsource.h (struct tui_source_window_base)
366 <maybe_update>: Declare.
367 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
368 method.
369 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
370 Declare.
371 * tui/tui-source.c (tui_source_window::maybe_update): New method.
372 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
373 Declare.
374 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
375
e2a678a5
TT
3762019-08-15 Tom Tromey <tom@tromey.com>
377
378 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
379
f2dda477
TT
3802019-08-15 Tom Tromey <tom@tromey.com>
381
382 * tui/tui-wingeneral.c: Include tui-stack.h.
383 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
384 (struct tui_locator_window): Move from tui-data.h.
385 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
386 (tui_initialize_static_data): Move from tui-data.c.
387 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
388 (struct tui_locator_window): Move to tui-stack.c.
389 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
390 (tui_initialize_static_data): Move to tui-stack.c.
391
ed4a1084
TT
3922019-08-15 Tom Tromey <tom@tromey.com>
393
394 * tui/tui-layout.c (show_source_disasm_command)
395 (show_source_or_disasm_and_command): Use make_visible method, not
396 tui_make_window.
397 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
398 Remove.
399
65962b20
TT
4002019-08-15 Tom Tromey <tom@tromey.com>
401
402 * tui/tui-wingeneral.h (tui_make_window): Update.
403 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
404 parameter.
405 (tui_gen_win_info::make_visible): Update.
406 * tui/tui-regs.c (tui_data_window::display_registers_from):
407 Update.
408 * tui/tui-layout.c (show_source_disasm_command)
409 (show_source_or_disasm_and_command): Update.
410 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
411 (enum tui_box): Remove.
412 (struct tui_win_info) <can_box>: New method.
413 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
414 method.
415
2208ee91
TV
4162019-08-15 Tom de Vries <tdevries@suse.de>
417
418 * linux-nat-trad.c: Include gdbarch.h.
419
75faf5c4
AH
4202019-08-14 Alan Hayward <alan.hayward@arm.com>
421
422 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
423 register sizes.
424
b1c896b3
TT
4252019-08-14 Tom Tromey <tromey@adacore.com>
426
427 * darwin-nat.c: Include gdbarch.h.
428 * darwin-nat-info.c: Include gdbarch.h.
429
6405cd73
TT
4302019-08-13 Tom Tromey <tom@tromey.com>
431
432 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
433 Remove.
434 * tui/tui-data.c (tui_initialize_static_data): Update.
435
5216580d
TT
4362019-08-13 Tom Tromey <tom@tromey.com>
437
438 * tui/tui-winsource.h (struct tui_exec_info_window)
439 <~tui_exec_info_window, maybe_allocate_content, get_content,
440 m_content>: Remove.
441 (struct tui_source_window_base) <set_exec_info_content,
442 show_exec_info_content>: Don't declare.
443 * tui/tui-winsource.c
444 (tui_exec_info_window::maybe_allocate_content): Remove.
445 (tui_source_window_base::update_exec_info): Rename from
446 set_exec_info_content.
447 (tui_source_window_base::show_exec_info_content)
448 (tui_source_window_base::update_exec_info): Remove.
449
93858ad3
TT
4502019-08-13 Tom Tromey <tom@tromey.com>
451
452 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
453 declare.
454 * tui/tui-winsource.c (tui_update_source_window_as_is)
455 (tui_update_source_windows_with_addr, tui_erase_source_content):
456 Update.
457 (tui_clear_exec_info_content): Remove.
458
e321e7ce
TT
4592019-08-13 Tom Tromey <tom@tromey.com>
460
461 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
462 declare.
463 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
464 call tui_erase_exec_info_content.
465 (tui_clear_exec_info_content): Rename from
466 tui_erase_exec_info_content.
467 (tui_clear_exec_info_content): Delete.
468
8270ac62
TT
4692019-08-13 Tom Tromey <tom@tromey.com>
470
471 * tui/tui-winsource.h (struct tui_source_window_base)
472 <show_exec_info_content>: Declare.
473 (tui_show_exec_info_content): Don't declare.
474 * tui/tui-winsource.c
475 (tui_source_window_base::show_exec_info_content): Rename from
476 tui_show_exec_info_content.
477 (tui_source_window_base::update_exec_info): Update.
478
7b56485d
TT
4792019-08-13 Tom Tromey <tom@tromey.com>
480
481 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
482 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
483 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
484 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
485 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
486 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
487 ... here.
488
7ba913dc
TT
4892019-08-13 Tom Tromey <tom@tromey.com>
490
491 * tui/tui-winsource.h (struct tui_source_window_base)
492 <update_exec_info>: Declare.
493 (tui_update_exec_info): Don't declare.
494 * tui/tui-winsource.c (tui_update_source_window_as_is)
495 (tui_source_window_base::refresh_all)
496 (tui_update_all_breakpoint_info): Update.
497 (tui_source_window_base::update_exec_info): Rename from
498 tui_update_exec_info.
499 * tui/tui-stack.c (tui_show_frame_info): Update.
500
37a4a131
TT
5012019-08-13 Tom Tromey <tom@tromey.com>
502
503 * tui/tui-winsource.h (struct tui_source_window_base)
504 <set_exec_info_content>: Declare.
505 (tui_set_exec_info_content): Don't declare.
506 * tui/tui-winsource.c
507 (tui_source_window_base::set_exec_info_content): Rename from
508 tui_set_exec_info_content.
509 (tui_update_exec_info): Update.
510
0bd27e07
TT
5112019-08-13 Tom Tromey <tom@tromey.com>
512
513 * tui/tui-winsource.h (struct tui_source_window_base)
514 <show_source_content>: Declare.
515 (tui_show_source_content): Don't declare.
516 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
517 (tui_source_window_base::show_source_content): Rename from
518 tui_show_source_content.
519 (tui_source_window_base::refresh_all): Update.
520 * tui/tui-layout.c (show_source_disasm_command)
521 (show_source_or_disasm_and_command): Update.
522
b4ef5aeb
TT
5232019-08-13 Tom Tromey <tom@tromey.com>
524
525 * tui/tui-winsource.c (tui_erase_source_content)
526 (tui_show_source_content, tui_source_window_base::refresh_all):
527 Update.
528 * tui/tui-wingeneral.h
529 (tui_check_and_display_highlight_if_needed): Don't declare.
530 * tui/tui-wingeneral.c
531 (tui_win_info::check_and_display_highlight_if_needed): Rename from
532 check_and_display_highlight_if_needed.
533 * tui/tui-win.c (tui_rehighlight_all)
534 (tui_win_info::make_visible_with_new_height): Update.
535 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
536 (tui_data_window::erase_data_content)
537 (tui_data_window::display_all_data): Update.
538 * tui/tui-data.h (struct tui_win_info)
539 <check_and_display_highlight_if_needed>: Declare.
540
fede5273
TT
5412019-08-13 Tom Tromey <tom@tromey.com>
542
543 * tui/tui-win.c (tui_resize_all): Call
544 tui_delete_invisible_windows.
545 * tui/tui-layout.c (show_layout): Call
546 tui_delete_invisible_windows.
547 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
548 * tui/tui-data.c (tui_delete_invisible_windows): New function.
549
22c3f490
TT
5502019-08-13 Tom Tromey <tom@tromey.com>
551
552 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
553 tui_add_win_to_layout.
554
16cb7910
TT
5552019-08-13 Tom Tromey <tom@tromey.com>
556
557 * tui/tui-layout.h (tui_default_win_height): Don't declare.
558 * tui/tui-layout.c (tui_default_win_height): Now static.
559
cc0c3ffb
TT
5602019-08-13 Tom Tromey <tom@tromey.com>
561
562 * tui/tui-layout.c (show_layout): Unify all layout cases into a
563 single switch.
564 (show_source_disasm_command, show_source_or_disasm_and_command):
565 Don't check current layout.
566
3f3ffe54
TT
5672019-08-13 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-wingeneral.c (make_all_visible): Remove.
570 (tui_make_all_invisible): Simplify.
571 * tui/tui-layout.c (tui_make_all_invisible): Move from
572 tui-wingeneral.c; simplify.
573 (show_layout): Hoist call to tui_make_all_invisible.
574 (show_data): Don't call tui_make_all_invisible.
575
69258091
TT
5762019-08-13 Tom Tromey <tom@tromey.com>
577
578 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
579 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
580
62cf57fe
TT
5812019-08-13 Tom Tromey <tom@tromey.com>
582
583 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
584 tui-data.c.
585 (show_source_disasm_command, show_data)
586 (show_source_or_disasm_and_command): Don't use
587 tui_set_current_layout_to.
588 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
589 * tui/tui-data.c (current_layout, tui_current_layout): Move to
590 tui-layout.c.
591 (tui_set_current_layout_to): Remove.
592
2afade5d
TT
5932019-08-13 Tom Tromey <tom@tromey.com>
594
595 * tui/tui-layout.c (tui_set_layout): Update.
596 * tui/tui-data.h (struct tui_layout_def): Remove.
597 (tui_layout_def): Don't declare.
598 * tui/tui-data.c (layout_def): Remove.
599 (tui_layout_def): Remove.
600
a3504e96
TT
6012019-08-13 Tom Tromey <tom@tromey.com>
602
603 * tui/tui-winsource.h (struct tui_source_window_base)
604 <clear_detail>: No longer "override".
605 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
606 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
607 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
608 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
609 Remove.
610 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
611
29c92911
TT
6122019-08-13 Tom Tromey <tromey@adacore.com>
613
614 * tracepoint.c: Don't include readline.h or history.h.
615
86c6b807
TT
6162019-08-12 Tom Tromey <tom@tromey.com>
617
618 * configure: Rebuild.
619 * configure.ac: Check for readline 7.
620 * NEWS: Mention readline 7 requirement.
621 * README: Update.
622
5db2718c
TT
6232019-08-12 Tom Tromey <tom@tromey.com>
624
625 * mingw-hdep.c (gdb_select): Remove readline hack.
626
dac36daf
PFC
6272019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
628
629 * blockframe.c (find_pc_partial_function): Set *block to nullptr
630 when the function fails.
631
1022c627
AA
6322019-08-09 Andreas Arnez <arnez@linux.ibm.com>
633
634 * s390-tdep.c (s390_type_align): New function.
635 (s390_gdbarch_init): Set it as type_align gdbarch method.
636
eba4caf2
TV
6372019-08-09 Tom de Vries <tdevries@suse.de>
638
639 PR gdb/24591
640 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
641 pc_low with relocation offset.
642
123cd851
TT
6432019-08-07 Tom Tromey <tromey@adacore.com>
644
645 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
646 (print_frame_args): Update.
647 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
648 Update.
649 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
650 * frame.h (struct frame_arg): Add initializers.
651 <error>: Now a unique_xmalloc_ptr.
652
3d31bc39
AH
6532019-08-07 Alan Hayward <alan.hayward@arm.com>
654
655 * NEWS: Expand the Pointer Authentication entry.
656 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
657 (aarch64_frame_unmask_lr): ... to this.
658 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
659 Call aarch64_frame_unmask_lr.
660 * frame.c (struct frame_info): Add "masked" variable.
661 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
662 (fprint_frame): Check for masked pc.
663 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
664 declarations.
665 * python/py-framefilter.c (py_print_frame): Check for masked pc.
666 * stack.c (print_frame): Check for masked pc.
667
0cf9feb9
TT
6682019-08-06 Tom Tromey <tom@tromey.com>
669
670 * stabsread.c (patch_block_stabs, read_one_struct_field)
671 (read_enum_type): Use obstack_strndup.
672 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
673 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
674 * dwarf2read.c (guess_full_die_structure_name)
675 (anonymous_struct_prefix): Use obstack_strndup.
676 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
677 * c-exp.y (yylex): Use obstack_strndup.
678 * ada-exp.y (write_object_renaming, write_ambiguous_var)
679 (write_var_or_type): Use obstack_strndup.
680
efba19b0
TT
6812019-08-06 Tom Tromey <tom@tromey.com>
682
683 * symfile.c (reread_symbols): Use obstack_strdup.
684 * stabsread.c (read_type): Use obstack_strdup.
685 * gdb_obstack.h (obstack_strdup): New overload.
686 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
687 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
688 (dwarf2_canonicalize_name): Use obstack_strdup.
689 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
690 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
691 Use obstack_strdup.
692
f25102f7
TT
6932019-08-06 Tom Tromey <tom@tromey.com>
694
695 * gdb_obstack.h (obstack_strdup): Define.
696 * gdb_obstack.c (obstack_strdup): Don't define.
697
021887d8
TT
6982019-08-06 Tom Tromey <tom@tromey.com>
699
700 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
701 obstack_strdup.
702 * typeprint.c (typedef_hash_table::find_global_typedef): Use
703 obstack_strdup.
704 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
705 * stabsread.c (common_block_start): Use obstack_strdup.
706 * objfiles.c (set_objfile_main_name, objfile): Use
707 obstack_strdup.
708 * namespace.c (add_using_directive): Use obstack_strdup.
709 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
710 * jit.c (finalize_symtab): Use obstack_strdup.
711 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
712 (guess_partial_die_structure_name, partial_die_info::fixup)
713 (dwarf2_name): Use obstack_strdup.
714 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
715 obstack_strdup.
716 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
717 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
718 obstack_strdup.
719 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
720
d2834edc
PW
7212019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
722
723 * unittests/help-doc-selftests.c: New file.
724 * Makefile.in: Add the new file.
725
590042fc
PW
7262019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
727
728 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
729 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
730 the full first line, except when FOR_VALUE_PREFIX. In this case,
731 the trailing '.' is not output, and the first character is uppercased.
732 (print_help_for_command): Update call to print_doc_line.
733 (print_doc_of_command): Likewise.
734 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
735 * cli/cli-option.c (append_indented_doc): Do not append newline.
736 (build_help_option): Append newline after first appended_indented_doc
737 only if a second call is done.
738 (build_help): Append 2 new lines before each option, except the first
739 one.
740 * compile/compile.c (_initialize_compile): Add new lines after
741 %OPTIONS%, when not at the end of the help.
742 Change help doc or code
743 producing the help doc to respect the invariants.
744 * maint-test-options.c (_initialize_maint_test_options): Likewise.
745 Also removed the new line after 'Options:', as all other commands
746 do not put an empty line between 'Options:' and the first option.
747 * printcmd.c (_initialize_printcmd): Likewise.
748 * stack.c (_initialize_stack): Likewise.
749 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
750 incorrectly telling COMMAND is optional.
751 * ada-lang.c (_initialize_ada_language): Change help doc or code
752 producing the help doc to respect the invariants.
753 * ada-tasks.c (_initialize_ada_tasks): Likewise.
754 * breakpoint.c (_initialize_breakpoint): Likewise.
755 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
756 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
757 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
758 * cli/cli-style.c (cli_style_option::add_setshow_commands,
759 _initialize_cli_style): Likewise.
760 * corelow.c (core_target_info): Likewise.
761 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
762 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
763 * filesystem.c (_initialize_filesystem): Likewise.
764 * frame.c (_initialize_frame): Likewise.
765 * gnu-nat.c (add_task_commands): Likewise.
766 * infcall.c (_initialize_infcall): Likewise.
767 * infcmd.c (_initialize_infcmd): Likewise.
768 * interps.c (_initialize_interpreter): Likewise.
769 * language.c (_initialize_language): Likewise.
770 * linux-fork.c (_initialize_linux_fork): Likewise.
771 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
772 * maint.c (_initialize_maint_cmds): Likewise.
773 * memattr.c (_initialize_mem): Likewise.
774 * printcmd.c (_initialize_printcmd): Likewise.
775 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
776 _RegEx): Likewise.
777 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
778 * record-btrace.c (_initialize_record_btrace): Likewise.
779 * record-full.c (_initialize_record_full): Likewise.
780 * record.c (_initialize_record): Likewise.
781 * regcache-dump.c (_initialize_regcache_dump): Likewise.
782 * regcache.c (_initialize_regcache): Likewise.
783 * remote.c (add_packet_config_cmd, init_remote_threadtests,
784 _initialize_remote): Likewise.
785 * ser-tcp.c (_initialize_ser_tcp): Likewise.
786 * serial.c (_initialize_serial): Likewise.
787 * skip.c (_initialize_step_skip): Likewise.
788 * source.c (_initialize_source): Likewise.
789 * stack.c (_initialize_stack): Likewise.
790 * symfile.c (_initialize_symfile): Likewise.
791 * symtab.c (_initialize_symtab): Likewise.
792 * target-descriptions.c (_initialize_target_descriptions): Likewise.
793 * top.c (init_main): Likewise.
794 * tracefile-tfile.c (tfile_target_info): Likewise.
795 * tracepoint.c (_initialize_tracepoint): Likewise.
796 * tui/tui-win.c (_initialize_tui_win): Likewise.
797 * utils.c (add_internal_problem_command): Likewise.
798 * valprint.c (value_print_option_defs): Likewise.
799
404f2902
FCE
8002019-08-06 Frank Ch. Eigler <fche@redhat.com>
801
802 PR build/24886
803 * configure.ac: Drop enable-libmcheck support.
804 * configure, config.in: Rebuild.
805 * libmcheck.m4: Remove.
806 * acinclude.m4: Don't include it.
807 * Makefile.in: Don't distribute it.
808 * top.c (print_gdb_configuration): Don't mention it.
809
046bebe1
TT
8102019-08-06 Tom Tromey <tom@tromey.com>
811
812 * utils.c (set_output_style): Sometimes pass stream to
813 emit_style_escape.
814 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
815 * record-btrace.c (btrace_insn_history): Update.
816 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
817 method.
818 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
819 Update initializers.
820 <m_uiout>: New field.
821 <m_di>: Move lower.
822 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
823 Remove "uiout" parameter.
824 (dump_insns): Update.
825 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
826 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
827
ddbcedf5
CB
8282019-08-06 Christian Biesinger <cbiesinger@google.com>
829
830 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
831 (error_in_psymtab_expansion): Likewise.
832 (lookup_symbol_via_quick_fns): Likewise.
833 (basic_lookup_transparent_type_quick): Likewise.
834 (basic_lookup_transparent_type_1): Likewise.
835
b08b16c8
TT
8362019-08-06 Tom Tromey <tromey@adacore.com>
837
838 * source.c (last_source_error): Now bool.
839 (print_source_lines_base): Make "noprint" bool. Only open
840 source file when last_source_visited changes.
841
cb44333d
TT
8422019-08-06 Tom Tromey <tromey@adacore.com>
843
844 * annotate.c (annotate_source_line): Use g_source_cache.
845 * source-cache.c (source_cache::get_plain_source_lines): Change
846 parameters. Populate m_offset_cache.
847 (source_cache::ensure): New method.
848 (source_cache::get_line_charpos): New method.
849 (extract_lines): Move lower. Change parameters.
850 (source_cache::get_source_lines): Move lower.
851 * source-cache.h (class source_cache): Update comment.
852 <get_line_charpos>: New method.
853 <get_source_lines>: Update comment.
854 <clear>: Clear m_offset_cache.
855 <get_plain_source_lines>: Change parameters.
856 <ensure>: New method
857 <m_offset_cache>: New member.
858 * source.c (forget_cached_source_info_for_objfile): Update.
859 (info_source_command): Use g_source_cache.
860 (find_source_lines, open_source_file_with_line_charpos): Remove.
861 (print_source_lines_base, search_command_helper): Use g_source_cache.
862 * source.h (open_source_file_with_line_charpos): Don't declare.
863 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
864 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
865 Use g_source_cache.
866
872dceaa
TT
8672019-08-06 Tom Tromey <tromey@adacore.com>
868
869 * source-cache.c (source_cache::get_plain_source_lines):
870 Remove "first_line" and "last_line" parameters.
871 (source_cache::get_source_lines): Cache plain text.
872 * source-cache.h (class source_cache)
873 <get_plain_source_lines>: Update.
874
269249d9
TT
8752019-08-06 Tom Tromey <tromey@adacore.com>
876
877 * source-cache.c (extract_lines): No longer a method.
878 Changed type of parameter. Include final newline.
879 (selftests::extract_lines_test): New function.
880 (_initialize_source_cache): Likewise.
881 * source-cache.h (class source_cache)
882 <extract_lines>: Don't declare.
883
c0e8dcd8
TT
8842019-08-06 Tom Tromey <tromey@adacore.com>
885
886 * breakpoint.c (init_breakpoint_sal): Update.
887 (breakpoint): Update.
888 * breakpoint.h (struct breakpoint) <filter>: Now a
889 unique_xmalloc_ptr.
890
0b27c27d
CB
8912019-08-05 Christian Biesinger <cbiesinger@google.com>
892
893 * NEWS: Mention dictionary access on blocks.
894 * python/py-block.c (blpy_getitem): New function.
895 (block_object_as_mapping): New struct.
896 (block_object_type): Use new struct for tp_as_mapping field.
897
4ee94178
CB
8982019-08-05 Christian Biesinger <cbiesinger@google.com>
899
900 * objfiles.h (objfile): Add a comment describing partial symbols.
901
8abfcabc
TT
9022019-08-05 Tom Tromey <tromey@adacore.com>
903
904 * compile/compile.c (_initialize_compile): Use _(), not N_().
905 * thread.c (_initialize_thread): Use _(), not N_().
906 * stack.c (_initialize_stack): Use _(), not N_().
907 * printcmd.c (_initialize_printcmd): Use _(), not N_().
908
2b79f376
SM
9092019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
910
911 * dwarf2read.c (struct dw2_symtab_iterator):
912 <want_specific_block>: Remove.
913 <block_index>: Change type to gdb::optional.
914 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
915 change type of BLOCK_INDEX parameter to gdb::optional.
916 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
917 (dw2_lookup_symbol): Don't pass argument for
918 WANT_SPECIFIC_BLOCK.
919 (dw2_expand_symtabs_for_function): Don't pass argument for
920 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
921 (class dw2_debug_names_iterator)
922 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
923 parameter, change BLOCK_INDEX type to gdb::optional.
924 <m_want_specific_block>: Remove.
925 <m_block_index>: Change type to gdb::optional.
926 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
927 gdb::optional. Re-write in function of gdb::optional.
928 (dw2_debug_names_lookup_symbol): Don't pass argument for
929 WANT_SPECIFIC_BLOCK.
930 (dw2_debug_names_expand_symtabs_for_function): Don't pass
931 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
932 BLOCK_INDEX.
933
ae60f04e
PW
9342019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
935
936 * NEWS: Mention changes to "info sources" command.
937
28cd9371
PW
9382019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
939
940 * symtab.c (filename_partial_match_opts): New struct type.
941 (struct output_source_filename_data): New members
942 regexp, c_regexp, partial_match.
943 (output_source_filename): Use new members to decide to print file.
944 (info_sources_option_defs): New variable.
945 (make_info_sources_options_def_group, print_info_sources_header,
946 info_sources_command_completer):
947 New functions.
948 (info_sources_command): Read new optional arguments.
949 (_initialize_symtab): Update info sources help.
950
ca683e3a
AO
9512019-08-02 Alexandre Oliva <oliva@adacore.com>
952
953 * ada-lang.c (exception_support_info_v0): Renamed from...
954 (default_exception_support_info): ... this. Create new
955 definition for v1.
956 (ada_has_this_exception_support): Look up catch_handlers_sym.
957 (ada_exception_support_info_sniffer): Try v0 after default.
958
f1264162
TT
9592019-08-01 Tom Tromey <tromey@adacore.com>
960
961 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
962 gdbarch.h.
963
0a7b2485
CB
9642019-08-01 Christian Biesinger <cbiesinger@google.com>
965
966 * s12z-tdep.c: Fix include path for s12z-opc.h.
967
c6bdbeb7
AH
9682019-08-01 Alan Hayward <alan.hayward@arm.com>
969
970 * NEWS: Require GNU make 3.82.
971
a2bd7b82
TT
9722019-07-16 Tom Tromey <tom@tromey.com>
973
974 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
975 declare.
976
aa3b6533
TT
9772019-07-30 Tom Tromey <tromey@adacore.com>
978
979 * block.c (contained_in): Remove BLOCK_FUNCTION check.
980
a1530dc7
KB
9812019-07-30 Kevin Buettner <kevinb@redhat.com>
982
983 * printcmd.c (print_address_symbolic): Print negative offsets.
984 (build_address_symbolic): Force signed arithmetic when computing
985 offset.
986
2906593f
CB
9872019-07-30 Christian Biesinger <cbiesinger@google.com>
988
989 PR/24474: Add a function to lookup static variables.
990 * NEWS: Mention this new function.
991 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
992 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
993 * python/python.c (python_GdbMethods): Add new function.
994
c620ed88
CB
9952019-07-29 Christian Biesinger <cbiesinger@google.com>
996
997 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
998 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
999 (objfpy_lookup_static_symbol): New function.
1000 (objfile_object_methods): Add new functions.
1001
bc4268a5
PW
10022019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1003
1004 * NEWS: Mention 'set|show print frame-info'. Mention new
1005 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1006 backtrace argument. Mention that python frame filtering code
1007 is now consistent with what 'backtrace' command prints.
1008
4b5e8d19
PW
10092019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1010
1011 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1012 comments.
1013 (print_frame_info_auto, print_frame_info_source_line,
1014 print_frame_info_location, print_frame_info_source_and_location,
1015 print_frame_info_location_and_address, print_frame_info_short_location):
1016 New declarations.
1017 (struct frame_print_options): New member print_frame_info.
1018 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1019 * stack.h (get_user_print_what_frame_info): New declaration.
1020 (frame_show_address): New declaration.
1021 * stack.c (print_frame_arguments_choices): New value 'presence'.
1022 (print_frame_info_auto, print_frame_info_source_line,
1023 print_frame_info_location, print_frame_info_source_and_location,
1024 print_frame_info_location_and_address, print_frame_info_short_location,
1025 print_frame_info_choices, print_frame_info_print_what): New definitions.
1026 (print_frame_args): Only print dots for args if print frame-arguments
1027 is 'presence'.
1028 (frame_print_option_defs): New element for "frame-info".
1029 (get_user_print_what_frame_info): New function.
1030 (frame_show_address): Make non static. Move comment to stack.h.
1031 (print_frame_info_to_print_what): New function.
1032 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1033 to decide what to print.
1034 (backtrace_command_1): Handle the new print_frame_arguments_presence
1035 value.
1036 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1037 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1038 (py_print_frame): In non-mi mode, use LOCATION as default for
1039 print_what, similarly to frame information printed directly by
1040 backtrace command. Handle frame-info user option in non MI mode.
1041
6bdfee81
KB
10422019-07-27 Kevin Buettner <kevinb@redhat.com>
1043
1044 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1045 Add case for debugging 32-bit target on 64-bit host. Revise
1046 comment.
1047
98a617f8
KB
10482019-07-27 Kevin Buettner <kevinb@redhat.com>
1049
1050 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1051 instead of find_function_entry_range_from_pc.
1052
567238c9
KB
10532019-07-27 Kevin Buettner <kevinb@redhat.com>
1054
1055 * stack.c (find_frame_funname): Remove code which preferred
1056 minsym over symtab sym in "certain pathological cases".
1057
2dc80cf8
KB
1058 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1059 parameter. Change type of "do_demangle" to bool.
1060 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1061 Pass suitable "prefer_sym_over_minsym" flag to
1062 build_address_symbolic(). Don't output "+" for negative offsets.
1063 * printcmd.c (print_address_symbolic): Update invocation of
1064 build_address_symbolic to include a "prefer_sym_over_minsym"
1065 flag.
1066 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1067 Restrict cases in which use of minimal symbol is preferred to that
1068 of a found symbol. Update comments.
1069
1aff7173
KB
1070 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1071 for entry pc when entry pc is out of range for that FDE.
1072
89b085ac
BC
10732019-07-26 Brian Callahan <bcallah@openbsd.org>
1074
1075 PR gdb/24839:
1076 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1077 type.
1078
f32feb4a
CB
10792019-07-25 Christian Biesinger <cbiesinger@google.com>
1080
1081 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1082 this function's Python signature.
1083
1084
10852019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
1086
1087 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1088 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1089 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1090 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1091 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1092
1093
c54e4253
YS
10942019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1095
1096 * h8300-tdep.c (h8300_register_name_common): New.
1097 h8300_register_name): Use h8300_register_name_common.
1098 (h8300s_register_name): Likewise.
1099 (h8300sx_register_name): Likewise.
1100 (h8300h_register_nam): New.
1101 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1102
1103
40eadf04
SP
11042019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1105
1106 * arm-tdep.c (arm_skip_cmse_entry): New function.
1107 (arm_is_sgstubs_section): New function.
1108 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1109
bfa2a36d
TT
11102019-07-22 Tom Tromey <tom@tromey.com>
1111
1112 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1113 Don't self-assign.
1114
a8e9d247
AB
11152019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1118 type_print.
1119
eb86c5e2
AB
11202019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1123 so that GDB doesn't match any msymbols when searching in the
1124 TYPES_DOMAIN.
1125 (print_symbol_info): Print using typedef_print or type_print based
1126 on the type of the symbol. Add updated FIXME comment moved from...
1127 (_initialize_symtab): ... move and update FIXME comment to above.
1128
a8eab7c6
AB
11292019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * NEWS: Mention adding -q option to "info types".
1132 * symtab.c (struct info_types_options): New struct.
1133 (info_types_options_defs): New variable.
1134 (make_info_types_options_def_group): New function.
1135 (info_types_command): Use gdb::option framework to parse options.
1136 (info_types_command_completer): New function.
1137 (_initialize_symtab): Extend the help text on "info types" and
1138 register command completer.
1139
b4603c34
CB
11402019-07-21 Christian Biesinger <cbiesinger@google.com>
1141
1142 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1143 (lookup_symbol_in_objfile): Change int to block_enum and add a
1144 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1145
c8cdc1e0
CB
11462019-07-20 Christian Biesinger <cbiesinger@google.com>
1147
1148 * MAINTAINERS (Write After Approval): Add self.
1149
01e175fe
AB
11502019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1153 instruction to the dummy code region.
1154
56f79b63
TT
11552019-07-19 Tom Tromey <tromey@adacore.com>
1156
1157 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1158 (ARGSUSED, PARAMS, __func__): Remove rules.
1159
4c5aa8e0
AH
11602019-07-19 Alan Hayward <alan.hayward@arm.com>
1161
1162 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1163 * features/arm/arm-with-iwmmxt.c: Remove.
1164 * features/arm/arm-with-iwmmxt.xml: Remove.
1165 * features/arm/arm-with-m-fpa-layout.c: Remove.
1166 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1167 * features/arm/arm-with-m-vfp-d16.c: Remove.
1168 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1169 * features/arm/arm-with-m.c: Remove.
1170 * features/arm/arm-with-m.xml: Remove.
1171 * features/arm/arm-with-neon.c: Remove.
1172 * features/arm/arm-with-neon.xml: Remove.
1173 * features/arm/arm-with-vfpv2.c: Remove.
1174 * features/arm/arm-with-vfpv2.xml: Remove.
1175 * features/arm/arm-with-vfpv3.c: Remove.
1176 * features/arm/arm-with-vfpv3.xml: Remove.
1177
f42b2617
AH
11782019-07-19 Alan Hayward <alan.hayward@arm.com>
1179
1180 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1181
f29ec966
AH
11822019-07-19 Alan Hayward <alan.hayward@arm.com>
1183
1184 * arch/aarch32.c (aarch32_create_target_description): Create
1185 target descriptions using features.
1186 * arch/arm.c (arm_create_target_description)
1187 (arm_create_mprofile_target_description): Likewise.
1188 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1189
d105cce5
AH
11902019-07-19 Alan Hayward <alan.hayward@arm.com>
1191
1192 * Makefile.in: Add new files.
1193 * aarch32-tdep.c: New file.
1194 * aarch32-tdep.h: New file.
1195 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1196 Call aarch32_read_description.
1197 * arch/aarch32.c: New file.
1198 * arch/aarch32.h: New file.
1199 * arch/arm.c (arm_create_target_description)
1200 (arm_create_mprofile_target_description): New function.
1201 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1202 (arm_create_target_description)
1203 (arm_create_mprofile_target_description): New declaration.
1204 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1205 read_description functions.
1206 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1207 Likewise.
1208 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1209 * arm-tdep.c (tdesc_arm_list): New variable.
1210 (arm_register_g_packet_guesses): Call create description functions.
1211 (arm_read_description) (arm_read_mprofile_description): New
1212 function.
1213 * arm-tdep.h (arm_read_description)
1214 (arm_read_mprofile_description): Add declaration.
1215 * configure.tgt: Add new files.
1216
afe09f0b
GL
12172019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1218
1219 * top.c (new_ui_command): Open specified terminal just once.
1220
cd215b2e
TT
12212019-07-18 Tom Tromey <tromey@adacore.com>
1222
1223 * symtab.c (main_name): Constify return type.
1224 * symfile.c (set_initial_language): Update.
1225 * symtab.h (main_name): Constify return type.
1226
d8f68fcb
TT
12272019-07-17 Tom Tromey <tom@tromey.com>
1228
1229 * tui/tui-winsource.c (tui_update_source_window)
1230 (tui_update_source_window_as_is)
1231 (tui_update_source_windows_with_line): Remove return.
1232 * tui/tui-disasm.c (tui_show_disassem)
1233 (tui_show_disassem_and_update_source): Remove return.
1234 * tui/tui.c (tui_reset): Remove return.
1235 * tui/tui-wingeneral.c
1236 (tui_check_and_display_highlight_if_needed): Remove return.
1237
ca5af91e
TT
12382019-07-17 Tom Tromey <tom@tromey.com>
1239
1240 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1241
5104fe36
TT
12422019-07-17 Tom Tromey <tom@tromey.com>
1243
1244 * tui/tui-winsource.h (struct tui_exec_info_window)
1245 (struct tui_source_window_base): Move from tui-data.h.
1246 * tui/tui-winsource.c: Move many method definitions from
1247 elsewhere. Remove "structuring" comments.
1248 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1249 (tui_source_window_base::refresh_window): Move to
1250 tui-winsource.c.
1251 * tui/tui-win.c (tui_source_window_base::refresh_all)
1252 (tui_source_window_base::update_tab_width)
1253 (tui_source_window_base::set_new_height)
1254 (tui_source_window_base::do_make_visible_with_new_height): Move to
1255 tui-winsource.c.
1256 * tui/tui-source.h: Update.
1257 * tui/tui-source.c (tui_source_window_base::reset): Move to
1258 tui-winsource.c.
1259 * tui/tui-disasm.h: Update.
1260 * tui/tui-data.h (struct tui_exec_info_window): Move to
1261 tui-winsource.h.
1262 (struct tui_source_window_base): Likewise.
1263 * tui/tui-data.c (tui_source_window_base::clear_detail)
1264 (tui_source_window_base, ~tui_source_window_base): Move to
1265 tui-winsource.c.
1266
daa15dde
TT
12672019-07-17 Tom Tromey <tom@tromey.com>
1268
1269 * tui/tui-win.c (tui_resize_all)
1270 (tui_source_window_base::update_tab_width)
1271 (tui_adjust_win_heights): Update.
1272 (tui_win_info::make_invisible_and_set_new_height): Rename from
1273 make_invisible_and_set_new_height.
1274 * tui/tui-data.h (struct tui_win_info)
1275 <make_invisible_and_set_new_height>: New method.
1276
bfad4537
TT
12772019-07-17 Tom Tromey <tom@tromey.com>
1278
1279 * tui/tui.c: Update.
1280 * tui/tui-source.h (struct tui_source_window): Move from
1281 tui-data.h.
1282 * tui/tui-layout.c: Update.
1283 * tui/tui-disasm.c: Update.
1284 * tui/tui-data.h (struct tui_source_window): Move to
1285 tui-source.h.
1286
88f7e873
TT
12872019-07-17 Tom Tromey <tom@tromey.com>
1288
1289 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1290 tui-data.h.
1291 * tui/tui-data.h (struct tui_disasm_window): Move to
1292 tui-disasm.h.
1293
96bd6233
TT
12942019-07-17 Tom Tromey <tom@tromey.com>
1295
1296 * tui/tui-regs.h (struct tui_data_item_window): Move from
1297 tui-data.h.
1298 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1299 * tui/tui-data.h (struct tui_data_item_window): Move to
1300 tui-regs.h.
1301 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1302
ce38393b
TT
13032019-07-17 Tom Tromey <tom@tromey.com>
1304
1305 * tui/tui.c: Update.
1306 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1307 (tui_cmd_window::max_height): Move to tui-command.c.
1308 * tui/tui-layout.c: Update.
1309 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1310 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1311 tui-command.c.
1312 * tui/tui-command.h (struct tui_cmd_window): Move from
1313 tui-data.h.
1314 * tui/tui-command.c: Remove "structuring" comments.
1315 (tui_cmd_window::clear_detail)
1316 (tui_cmd_window::do_make_visible_with_new_height)
1317 (tui_cmd_window::max_height): Move from elsewhere.
1318
2d8b51cb
TT
13192019-07-17 Tom Tromey <tom@tromey.com>
1320
1321 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1322 Now static.
1323 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1324 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1325
18ab23af
TT
13262019-07-17 Tom Tromey <tom@tromey.com>
1327
1328 * tui/tui.c: Update.
1329 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1330 tui-regs.c.
1331 * tui/tui-windata.h: Remove file.
1332 * tui/tui-windata.c: Remove file.
1333 * tui/tui-win.c (tui_data_window::set_new_height)
1334 (tui_data_window::do_make_visible_with_new_height): Move to
1335 tui-regs.c.
1336 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1337 * tui/tui-regs.c: Remove "structuring" comments.
1338 (tui_data_window::first_data_item_displayed)
1339 (tui_data_window::delete_data_content_windows)
1340 (tui_data_window::erase_data_content)
1341 (tui_data_window::display_all_data)
1342 (tui_data_window::refresh_all)
1343 (tui_data_window::do_scroll_vertical)
1344 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1345 (tui_data_window::do_make_visible_with_new_height)
1346 (tui_data_window::refresh_window): Move from elsewhere.
1347 (_initialize_tui_regs): Move to end of file.
1348 * tui/tui-layout.c: Update.
1349 * tui/tui-hooks.c: Update.
1350 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1351 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1352 tui-regs.c.
1353 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1354
88b7e7cc
TT
13552019-07-17 Tom Tromey <tom@tromey.com>
1356
1357 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1358 seen.
1359
0fcd3711
TT
13602019-07-17 Tom Tromey <tom@tromey.com>
1361
1362 * tui/tui-win.c (tui_source_window_base::set_new_height)
1363 (tui_source_window_base::do_make_visible_with_new_height): Use
1364 m_has_locator field directly.
1365 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1366 method.
1367 (struct tui_source_window_base) <has_locator>: Likewise.
1368
4a38112d
TT
13692019-07-17 Tom Tromey <tom@tromey.com>
1370
1371 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1372 Don't declare.
1373 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1374 Remove.
1375 * tui/tui-win.c (tui_source_window_base::set_new_height)
1376 (tui_source_window_base::set_new_height)
1377 (make_invisible_and_set_new_height)
1378 (tui_source_window_base::do_make_visible_with_new_height)
1379 (tui_source_window_base::do_make_visible_with_new_height):
1380 Update.
1381 * tui/tui-layout.c (show_source_disasm_command, show_data)
1382 (show_source_or_disasm_and_command): Update.
1383 * tui/tui-layout.c (show_layout): Update.
1384
09129226
TT
13852019-07-17 Tom Tromey <tom@tromey.com>
1386
1387 * tui/tui-layout.c (make_data_window): Remove.
1388 (show_data): Unify creation and re-initialization cases.
1389
4a8a5e84
TT
13902019-07-17 Tom Tromey <tom@tromey.com>
1391
1392 * tui/tui-layout.c (make_source_window, make_disasm_window):
1393 Remove.
1394 (show_data): Unify creation and re-initialization cases.
1395
76d2be8e
TT
13962019-07-17 Tom Tromey <tom@tromey.com>
1397
1398 * tui/tui-layout.c (make_command_window): Remove.
1399 (show_source_disasm_command, show_source_or_disasm_and_command):
1400 Unify creation and re-initialization cases.
1401
890b8bde
TT
14022019-07-17 Tom Tromey <tom@tromey.com>
1403
1404 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1405 creation and re-initialization cases.
1406
2cdfa113
TT
14072019-07-17 Tom Tromey <tom@tromey.com>
1408
1409 * tui/tui-regs.c (tui_get_register): Return void.
1410
8e3cfd09
TT
14112019-07-17 Tom Tromey <tom@tromey.com>
1412
1413 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1414 Simplify.
1415
f4e04977
TT
14162019-07-17 Tom Tromey <tom@tromey.com>
1417
1418 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1419 resetting.
1420
0379b883
TT
14212019-07-17 Tom Tromey <tom@tromey.com>
1422
1423 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1424 * tui/tui-regs.c (tui_reg_layout): New function.
1425 (tui_show_registers, tui_reg_command): Use it.
1426 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1427 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1428 parameters.
1429 (tui_layout_command): Remove.
1430
b7fbad91
TT
14312019-07-17 Tom Tromey <tom@tromey.com>
1432
1433 * tui/tui-layout.h (tui/tui-layout): Return void.
1434 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1435
4e1e56b9
TT
14362019-07-17 Tom Tromey <tom@tromey.com>
1437
1438 * tui/tui-layout.c (show_source_disasm_command, show_data):
1439 Update.
1440 (reset_locator): Remove.
1441 (show_source_or_disasm_and_command): Update.
1442
1e0c09ba
TT
14432019-07-17 Tom Tromey <tom@tromey.com>
1444
1445 * tui/tui-source.c (tui_source_window_base::reset): Remove
1446 win_type parameter.
1447 * tui/tui-layout.c (make_command_window, make_source_window)
1448 (make_disasm_window, make_data_window)
1449 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1450 (reset_locator, show_source_or_disasm_and_command): Update.
1451 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1452 win_type parameter.
1453 (struct tui_source_window_base) <reset>: Likewise.
1454
1bf605de
TT
14552019-07-17 Tom Tromey <tom@tromey.com>
1456
1457 * tui/tui-layout.c (show_source_disasm_command): Use
1458 reset_locator.
1459 (reset_locator): New function.
1460 (init_and_make_win): Remove.
1461 (show_source_or_disasm_and_command): Use reset_locator.
1462
098f9ed4
TT
14632019-07-17 Tom Tromey <tom@tromey.com>
1464
1465 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1466 condition.
1467 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1468 Remove condition.
1469 * tui/tui-source.c (tui_source_window_base::reset): New method.
1470 * tui/tui-layout.c (make_command_window): Don't call
1471 init_and_make_win.
1472 (make_source_window, make_disasm_window): Don't call
1473 make_source_or_disasm_window.
1474 (make_data_window): Don't call init_and_make_win. Change calling
1475 convention.
1476 (show_source_disasm_command, show_data): Simplify.
1477 (make_source_or_disasm_window): Remove.
1478 (show_source_or_disasm_and_command): Simplify.
1479 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1480 (struct tui_source_window_base) <reset>: Likewise.
1481 <execution_info>: Remove initializer.
1482 * tui/tui-data.c (tui_source_window_base): Initialize
1483 execution_info.
1484
80110957
TT
14852019-07-17 Tom Tromey <tom@tromey.com>
1486
1487 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1488 variable.
1489
cf82af05
TT
14902019-07-17 Tom Tromey <tom@tromey.com>
1491
1492 * tui/tui.c (tui_rl_other_window): Update.
1493 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1494 superclass method first. Always iterate over regs_content.
1495 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1496 method.
1497 * tui/tui-win.c (tui_set_focus_command): Update.
1498
01aeb396
TT
14992019-07-17 Tom Tromey <tom@tromey.com>
1500
1501 * tui/tui-win.c (tui_set_focus_command): Rename from
1502 tui_set_focus. Call tui_enable.
1503 (tui_set_focus_command): Remove.
1504
fd6c75ee
TT
15052019-07-17 Tom Tromey <tom@tromey.com>
1506
1507 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1508 refresh_window.
1509 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1510 touchwin.
1511 (tui_data_window::refresh_window): Call refresh_window on data
1512 items. Always call superclass refresh_window.
1513 (tui_win_info::refresh): Remove.
1514 (tui_source_window_base::refresh_window): Update.
1515 (tui_refresh_all): Update.
1516 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1517 refresh_window.
1518 (show_source_or_disasm_and_command): Likewise.
1519 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1520 (struct tui_source_window_base) <refresh>: Likewise.
1521
f6cc34a9
TT
15222019-07-17 Tom Tromey <tom@tromey.com>
1523
1524 * tui/tui-winsource.c (tui_clear_source_content)
1525 (tui_show_source_content): Update.
1526 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1527 whether content is empty.
1528 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1529 Remove.
1530
f31ec9af
TT
15312019-07-17 Tom Tromey <tom@tromey.com>
1532
1533 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1534 window's contents.
1535 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1536 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1537
d1b6f1e5
TT
15382019-07-17 Tom Tromey <tom@tromey.com>
1539
1540 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1541 (struct tui_data_item_window): Update.
1542
d9743a13
TT
15432019-07-17 Tom Tromey <tom@tromey.com>
1544
1545 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1546 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1547 defines.
1548
caf0bc4e
TT
15492019-07-17 Tom Tromey <tom@tromey.com>
1550
1551 * tui/tui-winsource.h (tui_erase_source_content)
1552 (tui_clear_source_content): Remove "display_prompt" parameter.
1553 * tui/tui-winsource.c (tui_update_source_window_as_is)
1554 (tui_update_source_windows_with_addr): Update.
1555 (tui_clear_source_content): Remove "display_prompt" parameter.
1556 (tui_erase_source_content): Likewise. Simplify.
1557 (tui_show_source_content): Update.
1558 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1559 * tui/tui-stack.c (tui_show_frame_info): Update.
1560 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1561 Remove defines.
1562
9d391078
TT
15632019-07-17 Tom Tromey <tom@tromey.com>
1564
1565 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1566 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1567 parameter.
1568 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1569 parameter.
1570
a38da35d
TT
15712019-07-17 Tom Tromey <tom@tromey.com>
1572
1573 * tui/tui-winsource.c (tui_clear_source_content)
1574 (tui_show_source_content, tui_show_exec_info_content)
1575 (tui_clear_exec_info_content): Update.
1576 * tui/tui-stack.c (tui_show_locator_content): Update.
1577 (tui_show_frame_info): Update.
1578 * tui/tui-source.h (tui_source_window): Don't declare.
1579 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1580 from tui_source_is_displayed.
1581 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1582 Remove field.
1583 (struct tui_source_window_base) <content_in_use>: New field. Now
1584 bool.
1585 (struct tui_source_window) <showing_source_p>: New method.
1586 (TUI_SRC_WIN): Change cast.
1587 * tui/tui-data.c (tui_initialize_static_data): Update.
1588
c2cd8994
TT
15892019-07-17 Tom Tromey <tom@tromey.com>
1590
1591 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1592 location_matches_p.
1593 * tui/tui-source.c (tui_source_window::location_matches_p): New
1594 method.
1595 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1596 method.
1597 * tui/tui-data.h (struct tui_source_window_base)
1598 <location_matches_p>: New method.
1599 (struct tui_source_window, struct tui_disasm_window)
1600 <location_matches_p>: Likewise.
1601
4dde7b34
TT
16022019-07-17 Tom Tromey <tom@tromey.com>
1603
1604 * tui/tui-win.c (tui_set_win_height_command): Rename from
1605 tui_set_win_height.
1606 (tui_set_win_height_command): Remove.
1607
b73dd877
TT
16082019-07-17 Tom Tromey <tom@tromey.com>
1609
1610 * tui/tui-source.c (tui_source_window): New constructor. Add
1611 observer.
1612 (~tui_source_window): New destructor.
1613 (tui_source_window::style_changed): New method.
1614 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1615 (tui_attach_detach_observers): Update.
1616 * tui/tui-data.h (struct tui_source_window): Make constructor not
1617 inline. Add destructor.
1618 (struct tui_source_window) <style_changed>: New method.
1619 <m_observable>: New member.
1620
ae2b5380
TT
16212019-07-17 Tom Tromey <tom@tromey.com>
1622
1623 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1624 * tui/tui-win.c (tui_resize_all): Fix typo.
1625
1ce3e844
TT
16262019-07-17 Tom Tromey <tom@tromey.com>
1627
1628 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1629 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1630 (tui_refresh_all): Remove "list" parameter. Use foreach.
1631 * tui/tui-win.c (window_name_completer): Use foreach.
1632 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1633 (update_tab_width): Likewise.
1634 * tui/tui-layout.c (show_layout): Update.
1635 * tui/tui-data.h (class tui_window_iterator): New.
1636 (struct all_tui_windows): New.
1637 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1638
fe3eaf1c
TT
16392019-07-17 Tom Tromey <tom@tromey.com>
1640
1641 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1642 parameter. Don't reference globals.
1643 (tui_reg_command): Update.
1644
368c1354
TT
16452019-07-17 Tom Tromey <tom@tromey.com>
1646
1647 * tui/tui-regs.c (tui_show_registers): Simplify.
1648
e80cd204
TT
16492019-07-17 Tom Tromey <tom@tromey.com>
1650
1651 * tui/tui-regs.c (tui_show_registers): Update.
1652 (tui_show_register_group): Add win_info parameter.
1653
aca2dd16
TT
16542019-07-17 Tom Tromey <tom@tromey.com>
1655
1656 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1657 Rename from tui_display_reg_element_at_line.
1658 (tui_data_window::display_registers_from_line): Update.
1659 * tui/tui-data.h (struct tui_data_window)
1660 <display_reg_element_at_line>: New method.
1661
517e9505
TT
16622019-07-17 Tom Tromey <tom@tromey.com>
1663
1664 * tui/tui-regs.h (tui_display_registers_from)
1665 (tui_display_registers_from_line): Don't declare.
1666 * tui/tui-windata.c (tui_data_window::display_all_data)
1667 (tui_data_window::refresh_all)
1668 (tui_data_window::do_scroll_vertical): Update.
1669 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1670 from tui_display_registers_from.
1671 (tui_display_reg_element_at_line): Update.
1672 (tui_data_window::display_registers_from_line): Rename from
1673 tui_display_registers_from_line.
1674 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1675 display_registers_from_line>: New methods.
1676
f76d8b19
TT
16772019-07-17 Tom Tromey <tom@tromey.com>
1678
1679 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1680 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1681 from tui_erase_data_content.
1682 (tui_data_window::display_all_data)
1683 (tui_data_window::refresh_all)
1684 (tui_data_window::do_scroll_vertical): Update.
1685 * tui/tui-regs.c (tui_show_registers): Update.
1686 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1687 New method.
1688
b4094625
TT
16892019-07-17 Tom Tromey <tom@tromey.com>
1690
1691 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1692 declare.
1693 * tui/tui-windata.c
1694 (tui_data_window::delete_data_content_windows): Rename from
1695 tui_delete_data_content_windows.
1696 (tui_data_window::display_all_data)
1697 (tui_data_window::do_scroll_vertical): Update.
1698 * tui/tui-data.h (struct tui_data_window)
1699 <delete_data_content_windows>: New method.
1700
c223a729
TT
17012019-07-17 Tom Tromey <tom@tromey.com>
1702
1703 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1704 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1705
50daf268
TT
17062019-07-17 Tom Tromey <tom@tromey.com>
1707
1708 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1709 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1710 from tui_display_all_data.
1711 * tui/tui-win.c
1712 (tui_data_window::do_make_visible_with_new_height): Update.
1713 * tui/tui-regs.c (tui_show_registers): Update.
1714 * tui/tui-layout.c (tui_set_layout): Update.
1715 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1716 method.
1717
df5f8cab
TT
17182019-07-17 Tom Tromey <tom@tromey.com>
1719
1720 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1721 * tui/tui-windata.c (tui_display_data_from): Remove.
1722 (tui_data_window::refresh_all): Update.
1723
80cb6c27
TT
17242019-07-17 Tom Tromey <tom@tromey.com>
1725
1726 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1727 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1728 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1729 tui_display_registers_from_line.
1730 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1731 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1732 "force_display" parameter.
1733
baff0c28
TT
17342019-07-17 Tom Tromey <tom@tromey.com>
1735
1736 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1737 declare.
1738 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1739 Rename from tui_first_reg_element_no_inline.
1740 (tui_display_reg_element_at_line)
1741 (tui_display_registers_from_line): Update.
1742 * tui/tui-data.h (struct tui_data_window)
1743 <first_reg_element_no_inline>: New method.
1744
3b23c5f2
TT
17452019-07-17 Tom Tromey <tom@tromey.com>
1746
1747 * tui/tui-windata.c (tui_display_data_from)
1748 (tui_data_window::do_scroll_vertical): Update.
1749 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1750 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1751 Rename from tui_line_from_reg_element_no.
1752 (tui_display_registers_from_line): Update.
1753 * tui/tui-data.h (struct tui_data_window)
1754 <line_from_reg_element_no>: New method.
1755
0b5ec218
TT
17562019-07-17 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1759 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1760 tui_last_regs_line_no.
1761 (tui_display_reg_element_at_line)
1762 (tui_display_registers_from_line): Update.
1763 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1764 method.
1765
0807ab7b
TT
17662019-07-17 Tom Tromey <tom@tromey.com>
1767
1768 PR tui/24722:
1769 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1770 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1771 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1772 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1773 (tui_update_breakpoint_info): Likewise.
1774 * tui/tui-hooks.c (tui_event_create_breakpoint)
1775 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1776 Update.
1777
9ad7fdef
TT
17782019-07-17 Tom Tromey <tom@tromey.com>
1779
1780 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1781
5813316f
TT
17822019-07-17 Tom Tromey <tom@tromey.com>
1783
1784 * tui/tui-winsource.c (tui_update_source_window_as_is)
1785 (tui_update_source_windows_with_addr): Update.
1786 * tui/tui-source.h (tui_set_source_content)
1787 (tui_show_symtab_source): Add "win_info" parameter.
1788 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1789 parameter.
1790 (tui_show_symtab_source): Likewise.
1791
00e264e7
TT
17922019-07-17 Tom Tromey <tom@tromey.com>
1793
1794 * tui/tui-wingeneral.c
1795 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1796
06210ce4
TT
17972019-07-17 Tom Tromey <tom@tromey.com>
1798
1799 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1800 (struct tui_cmd_window) <can_scroll>: New method.
1801 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1802 method.
1803
381befee
TT
18042019-07-17 Tom Tromey <tromey@adacore.com>
1805
1806 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1807 do_field_signed>: Rename. Change type of "value".
1808 * ui-out.c (ui_out::field_signed): Rename from field_int.
1809 Change type of "value".
1810 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1811 type of "value".
1812 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1813 do_field_int. Change type of "value".
1814 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1815 do_field_int. Change type of "value".
1816 * tracepoint.c (trace_status_mi, tfind_1)
1817 (print_one_static_tracepoint_marker): Update.
1818 * thread.c (print_thread_info_1, print_selected_thread_frame):
1819 Update.
1820 * stack.c (print_frame, print_frame_info): Update.
1821 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1822 Update.
1823 * source.c (print_source_lines_base): Update.
1824 * skip.c (info_skip_command): Update.
1825 * record-btrace.c (btrace_ui_out_decode_error)
1826 (btrace_call_history_src_line): Update.
1827 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1828 Update.
1829 * progspace.c (print_program_space): Update.
1830 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1831 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1832 do_field_int. Change type of "value".
1833 * mi/mi-out.c (mi_ui_out::do_table_begin)
1834 (mi_ui_out::do_table_header): Update.
1835 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1836 type of "value".
1837 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1838 (mi_cmd_data_list_changed_registers, output_register)
1839 (mi_cmd_data_read_memory, mi_load_progress)
1840 (mi_cmd_trace_frame_collected): Update.
1841 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1842 Update.
1843 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1844 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1845 (mi_cmd_var_list_children, varobj_update_one): Update.
1846 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1847 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1848 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1849 * inferior.c (print_inferior): Update.
1850 * gdb_bfd.c (print_one_bfd): Update.
1851 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1852 Update.
1853 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1854 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1855 do_field_int. Change type of "value".
1856 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1857 do_field_int. Change type of "value".
1858 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1859 (print_one_breakpoint_location, print_it_catch_fork)
1860 (print_one_catch_fork, print_it_catch_vfork)
1861 (print_one_catch_vfork, print_it_catch_solib)
1862 (print_it_catch_exec, print_it_ranged_breakpoint)
1863 (print_mention_watchpoint, print_mention_masked_watchpoint)
1864 (bkpt_print_it, update_static_tracepoint): Update.
1865 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1866 * break-catch-syscall.c (print_it_catch_syscall): Update.
1867 * ada-tasks.c (print_ada_task_info): Update.
1868 * ada-lang.c (print_it_exception, print_mention_exception):
1869 Update.
1870
6b78c3f8
AB
18712019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1872
1873 PR breakpoints/24541
1874 * gdbarch.c: Regenerate.
1875 * gdbarch.h: Regenerate.
1876 * gdbarch.sh: Adjust return type and parameter types for
1877 'stap_adjust_register'.
1878 (i386_stap_adjust_register): Adjust signature and return new
1879 register name.
1880 * stap-probe.c (stap_parse_register_operand): Adjust use of
1881 'gdbarch_stap_adjust_register'.
1882
d72a9b85
TT
18832019-07-17 Tom Tromey <tromey@adacore.com>
1884
1885 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1886 declare VEC.
1887 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1888 std::vector.
1889 (struct s390_process_info): Add initializers.
1890 (s390_add_process): Use new.
1891 (s390_linux_nat_target::low_forget_process): Use delete.
1892 (s390_linux_nat_target::low_new_fork)
1893 (s390_linux_nat_target::stopped_by_watchpoint)
1894 (s390_linux_nat_target::low_prepare_to_resume)
1895 (s390_linux_nat_target::insert_watchpoint)
1896 (s390_linux_nat_target::insert_hw_breakpoint)
1897 (s390_linux_nat_target::remove_watchpoint)
1898 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1899
206e6c58
JB
19002019-07-16 John Baldwin <jhb@FreeBSD.org>
1901
1902 * aarch64-fbsd-nat.c: Include regcache.h.
1903 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1904 argument.
1905 (aarch64_fbsd_nat_target::fetch_registers)
1906 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1907 variable.
1908 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1909
cbde90f2
JB
19102019-07-16 John Baldwin <jhb@FreeBSD.org>
1911
1912 * fbsd-nat.c: Include gdbarch.h.
1913
07128006
TT
19142019-07-15 Tom Tromey <tromey@adacore.com>
1915
1916 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1917
1f77b012
TT
19182019-07-15 Tom Tromey <tromey@adacore.com>
1919
1920 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1921 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1922 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1923 * cli-out.c (cli_ui_out::do_field_int): New method.
1924 * ui-out.c (ui_out::field_unsigned): New method.
1925 * symfile.c (generic_load): Use field_unsigned.
1926 (print_transfer_performance): Likewise.
1927 * record-btrace.c (ui_out_field_uint): Remove.
1928 (btrace_call_history_insn_range, btrace_call_history): Use
1929 field_unsigned.
1930 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1931 field_unsigned.
1932 * ui-out.h (class ui_out) <field_unsigned>: New method.
1933 <do_field_unsigned>: Likewise.
1934
33eca680
TT
19352019-07-15 Tom Tromey <tromey@adacore.com>
1936
1937 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1938 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1939 * target.c (flash_erase_command): Use field_string.
1940 * infrun.c (print_signal_received_reason): Use field_string.
1941 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1942 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1943 field_string.
1944 * ada-tasks.c (print_ada_task_info): Use field_string.
1945
ca8d69be
TT
19462019-07-15 Tom Tromey <tromey@adacore.com>
1947
1948 * target.c (flash_erase_command): Use field_core_addr.
1949 * symfile.c (generic_load): Use field_core_addr.
1950 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1951 Use field_core_addr.
1952 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1953 field_core_addr.
1954
0d4e84ed
AB
19552019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1956
1957 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1958 value if its desired type is smaller than a CORE_ADDR and signed.
1959
9a49df9d
AB
19602019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1961
1962 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1963 of changes to field names, and use new is_reference field to
1964 decide if a property is a reference or not.
1965 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1966 field.
1967 (struct dwarf2_property_baton): Update header comment, rename
1968 'referenced_type' to 'property_type' and update comments.
1969 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1970 default property type, store in property baton, update to take
1971 accound of renamed field.
1972 (read_func_scope): Update call to attr_to_dynamic_prop.
1973 (read_array_type): Likewise.
1974 (dwarf2_per_cu_addr_sized_int_type): New function.
1975 (read_subrange_index_type): Move type finding code to
1976 dwarf2_per_cu_addr_sized_int_type.
1977 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1978 (dwarf2_per_cu_addr_type): New function.
1979 (set_die_type): Update calls to attr_to_dynamic_prop.
1980
b86352cf
AB
19812019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1982
1983 * dwarf2read.c (read_subrange_index_type): New function.
1984 (read_subrange_type): Move code into new function and call it.
1985 * gdbtypes.c (create_range_type): Add some asserts.
1986
603490bf
AB
19872019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1990 update return statements.
1991 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1992 declaration, and update comment to match.
1993 * gdbtypes.c (resolve_dynamic_array): Update call to
1994 dwarf2_evaluate_property to match new return type.
1995
592f9d27
AB
19962019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1997
1998 * valarith.c (value_subscripted_rvalue): Change lowerbound
1999 parameter type from int to LONGEST.
2000 * value.h (value_subscripted_rvalue): Likewise in declaration.
2001
60cfcb20
AB
20022019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2003
2004 * cli/cli-utils.c (info_print_command_completer): New function.
2005 * cli/cli-utils.h: Add 'completer.h' include, and forward
2006 declaration for 'struct cmd_list_element'.
2007 (info_print_command_completer): Declare.
2008 * stack.c (_initialize_stack): Add completer for 'info locals' and
2009 'info args'.
2010 * symtab.c (_initialize_symtab): Add completer for 'info
2011 variables' and 'info functions'.
2012 * NEWS: Mention completion for additional info commands.
2013
b16507e0
AB
20142019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * cli/cli-utils.c (extract_info_print_args): Delete.
2017 (extract_arg_maybe_quoted): Delete.
2018 (info_print_options_defs): New variable.
2019 (make_info_print_options_def_group): New function.
2020 (extract_info_print_options): Define new function.
2021 * cli/cli-utils.h (extract_info_print_args): Delete.
2022 (struct info_print_options): New structure.
2023 (extract_info_print_options): Declare new function.
2024 * stack.c (info_locals_command): Update to use new
2025 extract_info_print_options, also add a header comment.
2026 (info_args_command): Likewise.
2027 * symtab.c (info_variables_command): Likewise.
2028 (info_functions_command): Likewise.
2029
021d8588
AB
20302019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2033 to extract string arguments.
2034 * common/common-utils.c (extract_string_maybe_quoted): New function.
2035 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2036
b777eb6d
TT
20372019-07-11 Tom Tromey <tromey@adacore.com>
2038
2039 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2040 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2041 * top.h (gdbinit): Don't declare.
2042 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2043 into...
2044 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2045 * top.c (gdb_init): Don't call init_cli_cmds.
2046 (gdbinit): Remove.
2047 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2048
72ee03ff
TT
20492019-07-11 Tom Tromey <tromey@adacore.com>
2050
2051 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2052 after it has been moved.
2053
00db9531
SM
20542019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2055
2056 * valops.c (value_must_coerce_to_target): Change return type to
2057 bool.
2058 * value.h (value_must_coerce_to_target): Likewise.
2059
f2478a7e
SM
20602019-07-10 Simon Marchi <simon.marchi@efficios.com>
2061
2062 * breakpoint.c (is_hardware_watchpoint): Remove
2063 forward-declaration.
2064 (is_masked_watchpoint): Change return type to bool.
2065 (is_tracepoint): Likewise.
2066 (is_breakpoint): Likewise.
2067 (is_hardware_watchpoint): Likewise.
2068 (is_watchpoint): Likewise.
2069 (is_no_memory_software_watchpoint): Likewise.
2070 (is_catchpoint): Likewise.
2071 (breakpoint_1): Make FILTER parameter's return type bool.
2072 is_masked_watchpoint): Change return type to bool.
2073 (save_breakpoints): Make FILTER parameter's return type bool.
2074 * breakpoint.h (is_breakpoint): Change return type to bool.
2075 (is_watchpoint): Likewise.
2076 (is_catchpoint): Likewise.
2077 (is_tracepoint): Likewise.
2078
0d12e84c
TT
20792019-07-10 Tom Tromey <tom@tromey.com>
2080
2081 * defs.h: Don't include gdbarch.h.
2082 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2083 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2084 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2085 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2086 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2087 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2088 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2089 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2090 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2091 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2092 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2093 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2094 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2095 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2096 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2097 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2098 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2099 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2100 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2101 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2102 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2103 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2104 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2105 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2106 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2107 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2108 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2109
f06f1252
TT
21102019-07-10 Tom Tromey <tromey@adacore.com>
2111
2112 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2113 * breakpoint.c (init_ada_exception_breakpoint): Register as
2114 bp_catchpoint.
2115 (print_one_breakpoint_location, print_one_breakpoint): Use
2116 is_ada_exception_catchpoint.
2117 * ada-lang.c (class ada_catchpoint_location): Pass
2118 bp_loc_software_breakpoint to bp_location constructor.
2119 (is_ada_exception_catchpoint): New function.
2120
7a5d944b
TT
21212019-07-10 Tom Tromey <tromey@adacore.com>
2122
2123 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2124 VEC.
2125 (struct arm_exidx_entry): New method operator<.
2126 (struct arm_exidx_data) <section_maps>: Change type.
2127 (arm_exidx_data_free): Remove.
2128 (arm_exidx_data_key): Change type. Move lower.
2129 (arm_exidx_new_objfile): Update.
2130 (arm_compare_exidx_entries): Remove.
2131 (arm_find_exidx_entry, _initialize_arm_tdep)
2132
48c66e1d
TT
21332019-07-10 Tom Tromey <tromey@adacore.com>
2134
2135 * solib-spu.c (ocl_program_data_key): Change type.
2136 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2137 Update.
2138
a269fbf1
TT
21392019-07-10 Tom Tromey <tromey@adacore.com>
2140
2141 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2142 (struct solib_aix_inferior_data) <library_list>: Change type.
2143 (solib_aix_inferior_data_handle): Change type.
2144 (get_solib_aix_inferior_data): Update.
2145 (solib_aix_free_library_list): Remove.
2146 (library_list_start_library): Update.
2147 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2148 return type.
2149 (solib_aix_get_library_list)
2150 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2151 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2152
c294730c
TT
21532019-07-10 Tom Tromey <tromey@adacore.com>
2154
2155 * solib-dsbt.c (struct dsbt_info): Add initializers.
2156 (solib_dsbt_pspace_data): Change type.
2157 (dsbt_pspace_data_cleanup): Remove.
2158 (get_dsbt_info, _initialize_dsbt_solib): Update.
2159
9d52077d
TT
21602019-07-10 Tom Tromey <tromey@adacore.com>
2161
2162 * spu-tdep.c (spu_overlay_data): Change type.
2163 (spu_get_overlay_table, spu_overlay_new_objfile)
2164 (_initialize_spu_tdep): Update.
2165
22a20dca
TT
21662019-07-10 Tom Tromey <tromey@adacore.com>
2167
2168 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2169 destructor.
2170 (dbx_objfile_data_key): Change type and declare later.
2171 (DBX_SYMFILE_INFO): Rewrite.
2172 * dbxread.c (dbx_objfile_data_key): Change type.
2173 (dbx_symfile_init): Update.
2174 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2175 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2176 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2177
cb60f420
TT
21782019-07-10 Tom Tromey <tromey@adacore.com>
2179
2180 * jit.c (jit_program_space_key): Change type. Move lower.
2181 (get_jit_program_space_data): Update.
2182 (jit_program_space_data_cleanup): Remove.
2183 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2184 Update.
2185 (struct jit_program_space_data): Add initializers.
2186
51df2ae3
TT
21872019-07-10 Tom Tromey <tromey@adacore.com>
2188
2189 * solib-darwin.c (struct darwin_info): Add initializers.
2190 (solib_darwin_pspace_data): Change type.
2191 (darwin_pspace_data_cleanup): Remove.
2192 (get_darwin_info, _initialize_darwin_solib): Update.
2193
18101a35
TT
21942019-07-10 Tom Tromey <tromey@adacore.com>
2195
2196 * remote-sim.c (struct sim_inferior_data): Add initializers,
2197 constructor, and destructor.
2198 (sim_inferior_data_key): Change type. Move lower.
2199 (check_for_duplicate_sim_descriptor): Update.
2200 (get_sim_inferior_data): Use new. Update.
2201 (~sim_inferior_data_cleanup): Rename from
2202 sim_inferior_data_cleanup. Simplify.
2203 (gdbsim_close_inferior, simulator_command)
2204 (sim_command_completer, _initialize_remote_sim): Update.
2205 (next_pid, INITIAL_PID): Move earlier.
2206
05b08ac1
TT
22072019-07-10 Tom Tromey <tromey@adacore.com>
2208
2209 * python/python-internal.h (create_thread_object): Return
2210 gdbpy_ref.
2211 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2212 * python/py-inferior.c (struct threadlist_entry): Add
2213 constructor.
2214 <thread_obj>: Now a gdbpy_ref.
2215 (thread_to_thread_object): Update.
2216 (add_thread_object): Use new.
2217 (delete_thread_object): Use delete.
2218 (infpy_threads): Update.
2219 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2220 GIL.
2221
32372d80
TT
22222019-07-10 Tom Tromey <tromey@adacore.com>
2223
2224 * valops.c (value_cast): Specialize error message for Ada.
2225
5c458ae8
SM
22262019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2227
2228 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2229
4c462cb0
SM
22302019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2231
2232 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2233 bpstat_should_step): Return bool, adjust comments.
2234 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2235 bpstat_should_step): Likewise.
2236
89abbcc2
AH
22372019-07-10 Alan Hayward <alan.hayward@arm.com>
2238
2239 * features/Makefile: Use feature target descriptions for Arm.
2240 * features/arm/arm-core.c: Generate new file.
2241 * features/arm/arm-fpa.c: Likewise.
2242 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2243 * features/arm/arm-m-profile.c: Likewise.
2244 * features/arm/arm-vfpv2.c: Likewise.
2245 * features/arm/arm-vfpv3.c: Likewise.
2246 * features/arm/xscale-iwmmxt.c: Likewise.
2247 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2248
166a82be
AH
22492019-07-10 Alan Hayward <alan.hayward@arm.com>
2250
2251 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2252 ptrace earlier.
2253
9fb4c7e9
AH
22542019-07-10 Alan Hayward <alan.hayward@arm.com>
2255
2256 * features/aarch64-pauth.c: Regenerate.
2257
e2d0f980
SM
22582019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2259
2260 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2261 bool.
2262 (bpstat_what): Use false instead of 0.
2263
a38118e5
PA
22642019-07-09 Pedro Alves <palves@redhat.com>
2265
2266 * break-catch-throw.c (is_exception_catchpoint): New.
2267 * breakpoint.c (print_one_breakpoint_location): New parameter
2268 'raw_loc'. Handle it. Use
2269 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2270 looking at the breakpoint's type.
2271 (print_one_breakpoint): If handling "maint info breakpoints", also
2272 print locations of exception catchpoints.
2273 * breakpoint.h (is_exception_catchpoint): Declare.
2274
cb1e4e32
PA
22752019-07-09 Pedro Alves <palves@redhat.com>
2276
2277 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2278 "addr" field.
2279 (allocate_location_exception_catchpoint): New.
2280 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2281 (initialize_throw_catchpoint_ops): Install
2282 allocate_location_exception_catchpoint as allocate_location
2283 method.
2284 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2285 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2286 bp_loc_other.
2287 (breakpoint_address_is_meaningful): Delete.
2288 (bl_address_is_meaningful): New.
2289 (breakpoint_locations_match): Adjust comment.
2290 (bp_location_from_bp_type): New, factored out of...
2291 (bp_location::bp_location(breakpoint *)): ... this.
2292 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2293 factored out of...
2294 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2295 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2296 breakpoint_address_is_meaningful.
2297 (bp_locations_compare): Adjust comment.
2298 (update_global_location_list): Use bl_address_is_meaningful
2299 instead of breakpoint_address_is_meaningful.
2300 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2301 explicit.
2302 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2303 * python/py-breakpoint.c (bppy_get_location): No longer check
2304 whether location is null.
2305
b58a68fe
PA
23062019-07-09 Pedro Alves <palves@redhat.com>
2307
2308 PR c++/15468
2309 * breakpoint.c (print_one_breakpoint_location): Remove
2310 single-location assert.
2311
268a13a5
TT
23122019-07-09 Tom Tromey <tom@tromey.com>
2313
2314 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2315 * configure: Rebuild.
2316 * configure.ac: Change common to gdbsupport.
2317 * gdbsupport: Rename from common.
2318 * acinclude.m4: Change common to gdbsupport.
2319 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2320 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2321 gdbsupport.
2322 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2323 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2324 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2325 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2326 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2327 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2328 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2329 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2330 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2331 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2332 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2333 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2334 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2335 coff-pe-read.c, command.h, compile/compile-c-support.c,
2336 compile/compile-c.h, compile/compile-cplus-symbols.c,
2337 compile/compile-cplus-types.c, compile/compile-cplus.h,
2338 compile/compile-loc2c.c, compile/compile.c, completer.c,
2339 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2340 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2341 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2342 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2343 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2344 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2345 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2346 features/aarch64-core.c, features/aarch64-fpu.c,
2347 features/aarch64-pauth.c, features/aarch64-sve.c,
2348 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2349 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2350 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2351 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2352 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2353 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2354 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2355 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2356 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2357 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2358 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2359 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2360 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2361 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2362 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2363 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2364 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2365 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2366 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2367 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2368 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2369 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2370 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2371 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2372 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2373 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2374 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2375 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2376 minsyms.c, mips-linux-tdep.c, namespace.h,
2377 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2378 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2379 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2380 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2381 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2382 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2383 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2384 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2385 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2386 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2387 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2388 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2389 procfs.c, producer.c, progspace.h, psymtab.h,
2390 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2391 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2392 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2393 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2394 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2395 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2396 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2397 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2398 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2399 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2400 target-memory.c, target.c, target.h, target/waitstatus.c,
2401 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2402 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2403 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2404 unittests/array-view-selftests.c,
2405 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2406 unittests/common-utils-selftests.c,
2407 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2408 unittests/format_pieces-selftests.c,
2409 unittests/function-view-selftests.c,
2410 unittests/lookup_name_info-selftests.c,
2411 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2412 unittests/mkdir-recursive-selftests.c,
2413 unittests/observable-selftests.c,
2414 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2415 unittests/parse-connection-spec-selftests.c,
2416 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2417 unittests/scoped_fd-selftests.c,
2418 unittests/scoped_mmap-selftests.c,
2419 unittests/scoped_restore-selftests.c,
2420 unittests/string_view-selftests.c, unittests/style-selftests.c,
2421 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2422 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2423 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2424 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2425 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2426 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2427
5b0e2db4
AB
24282019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2431 bool value.
2432 (decode_digits_ordinary): Set explicit_line field in sal.
2433 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2434 symtab_and_line that was set on an explicit line number in
2435 assembler code. Do always update the recorded symtab and line if
2436 we do skip the prologue.
2437
0ba852ab
AB
24382019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 * breakpoint.c (set_breakpoint_location_function): Remove
2441 explicit_loc parameter.
2442 (momentary_breakpoint_from_master): Update call to
2443 set_breakpoint_location_function.
2444 (add_location_to_breakpoint): Likewise.
2445
b3a7d171
AB
24462019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2447
2448 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2449 required features based on default bfd type when no specific bfd
2450 is present.
2451
1f6f6e21
PW
24522019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2453
2454 * NEWS: Mention that GDB printf and eval commands can now print
2455 C-style and Ada-style convenience var strings without
2456 calling the inferior.
2457 * printcmd.c (printf_c_string): Locally print GDB internal var
2458 instead of transiting via the inferior.
2459 (printf_wide_c_string): Likewise.
2460
24612019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2462
2463 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2464
0598af48
TT
24652019-07-04 Tom Tromey <tom@tromey.com>
2466
2467 PR tui/24724:
2468 * tui/tui-winsource.c (tui_clear_source_content): Update.
2469 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2470 (tui_update_breakpoint_info): Update.
2471 (tui_set_exec_info_content): Update.
2472 * tui/tui-source.c (tui_set_source_content_nil): Update.
2473 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2474 has_break.
2475 * tui/tui-data.h (enum tui_bp_flag): New.
2476 (tui_bp_flags): New enum flags type.
2477 (struct tui_source_element) <break_mode>: Change type. Rename
2478 from has_break.
2479 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2480 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2481 constants.
2482 * tui/tui-winsource.h: Fix comment.
2483
350fab54
AH
24842019-07-04 Alan Hayward <alan.hayward@arm.com>
2485
2486 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2487 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2488 (store_fpregs_to_thread)
2489 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2490 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2491 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2492 (IWMMXT_REGS_SIZE): Add define.
2493 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2494 (fetch_vfp_regs, store_vfp_regs)
2495 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2496 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2497
f0452268
AH
24982019-07-04 Alan Hayward <alan.hayward@arm.com>
2499
2500 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2501 defines.
2502 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2503 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2504 (ARM_INT_REGISTER_SIZE): ...to this.
2505 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2506 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2507 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2508 (arm_linux_collect_gregset, supply_nwfpe_register)
2509 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2510 defines.
2511 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2512 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2513 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2514 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2515 (arm_return_in_memory, arm_store_return_value)
2516 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2517 (arm_record_ld_st_multiple): Likewise.
2518 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2519 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2520
e935475c
AH
25212019-07-04 Alan Hayward <alan.hayward@arm.com>
2522
2523 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2524 AARCH64_DISPLACED_MODIFIED_INSNS.
2525 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2526 (aarch64_displaced_step_copy_insn): Likewise.
2527 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2528 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2529 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2530 ARM_DISPLACED_MODIFIED_INSNS.
2531 * arm-tdep.c (arm_gdbarch_init): Likewise.
2532 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2533 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2534 (struct arm_displaced_step_closure): Use
2535 ARM_DISPLACED_MODIFIED_INSNS.
2536
df0bb381
AH
25372019-07-04 Alan Hayward <alan.hayward@arm.com>
2538
2539 * features/Makefile: Remove unused xml files.
2540 * features/aarch64.xml: Remove.
2541 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2542 * features/i386/amd64-avx-avx512.xml: Remove.
2543 * features/i386/amd64-avx-linux.xml: Remove.
2544 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2545 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2546 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2547 * features/i386/amd64-avx-mpx.xml: Remove.
2548 * features/i386/amd64-avx.xml: Remove.
2549 * features/i386/amd64-linux.xml: Remove.
2550 * features/i386/amd64-mpx-linux.xml: Remove.
2551 * features/i386/amd64-mpx.xml: Remove.
2552 * features/i386/amd64.xml: Remove.
2553 * features/i386/i386-avx-avx512-linux.xml: Remove.
2554 * features/i386/i386-avx-avx512.xml: Remove.
2555 * features/i386/i386-avx-linux.xml: Remove.
2556 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2557 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2558 * features/i386/i386-avx-mpx-linux.xml: Remove.
2559 * features/i386/i386-avx-mpx.xml: Remove.
2560 * features/i386/i386-avx.xml: Remove.
2561 * features/i386/i386-linux.xml: Remove.
2562 * features/i386/i386-mmx-linux.xml: Remove.
2563 * features/i386/i386-mmx.xml: Remove.
2564 * features/i386/i386-mpx-linux.xml: Remove.
2565 * features/i386/i386-mpx.xml: Remove.
2566 * features/i386/i386.xml: Remove.
2567 * features/i386/x32-avx-avx512-linux.xml: Remove.
2568 * features/i386/x32-avx-linux.xml: Remove.
2569 * features/i386/x32-linux.xml: Remove.
2570
edd6266a
AH
25712019-07-04 Alan Hayward <alan.hayward@arm.com>
2572
2573 * regformats/aarch64.dat: Remove.
2574 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2575 * regformats/i386/amd64-avx-linux.dat: Remove.
2576 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2577 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2578 * regformats/i386/amd64-linux.dat: Remove.
2579 * regformats/i386/amd64-mpx-linux.dat: Remove.
2580 * regformats/i386/amd64.dat: Remove.
2581 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2582 * regformats/i386/i386-avx-linux.dat: Remove.
2583 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2584 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2585 * regformats/i386/i386-linux.dat: Remove.
2586 * regformats/i386/i386-mmx-linux.dat: Remove.
2587 * regformats/i386/i386-mpx-linux.dat: Remove.
2588 * regformats/i386/i386.dat: Remove.
2589 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2590 * regformats/i386/x32-avx-linux.dat: Remove.
2591 * regformats/i386/x32-linux.dat: Remove.
2592
2b40fda7
AH
25932019-07-04 Alan Hayward <alan.hayward@arm.com>
2594
2595 * aarch64-tdep.c: Remove xml self tests.
2596 * amd64-linux-tdep.c: Likewise.
2597 * amd64-tdep.c: Likewise.
2598 * i386-linux-tdep.c: Likewise.
2599 * i386-tdep.c: Likewise.
2600
5f4ba3e7
PA
26012019-07-03 Pedro Alves <palves@redhat.com>
2602
2603 PR cli/24732
2604 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2605 (pipe_cmd_option_defs): New.
2606 (make_pipe_cmd_options_def_group): New.
2607 (pipe_command): Use gdb::option::process_options.
2608 (pipe_command_completer): New function.
2609 (_initialize_cli_cmds): Install completer for "pipe" command.
2610
3d9be6f5
PA
26112019-07-03 Pedro Alves <palves@redhat.com>
2612
2613 * cli/cli-option.c (union option_value) <string>: New field.
2614 (struct option_def_and_value): Add ctor, move ctor, dtor and
2615 use DISABLE_COPY_AND_ASSIGN.
2616 (option_def_and_value::clear_value): New.
2617 (parse_option, save_option_value_in_ctx, get_val_type_str)
2618 (add_setshow_cmds_for_options): Handle var_string.
2619 * cli-option.h (union option_def::var_address) <string>: New
2620 field.
2621 (struct string_option_def): New.
2622 * maint-test-options.c (struct test_options_opts): Add default
2623 ctor and use DISABLE_COPY_AND_ASSIGN.
2624 <string_opt>: New field.
2625 (test_options_opts::~test_options_opts): New.
2626 (test_options_opts::dump): Also dump "-string".
2627 (test_options_option_defs): Install "string.
2628
41fc454c
PA
26292019-07-03 Pedro Alves <palves@redhat.com>
2630
2631 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2632 option_value with a null enumeration.
2633 (complete_options): Save the option values in the context.
2634 (save_option_value_in_ctx): New, factored out from ...
2635 (process_options): ... here.
2636 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2637 of the function.
2638 * maint-test-options.c (test_options_opts::dump): New, factored
2639 out from ...
2640 (maintenance_test_options_command_mode): ... here.
2641 (maintenance_test_options_command_completion_result): Delete.
2642 (maintenance_test_options_command_completion_text): Update
2643 comment.
2644 (maintenance_show_test_options_completion_result): Change
2645 prototype. Just print
2646 maintenance_test_options_command_completion_text.
2647 (save_completion_result): New.
2648 (maintenance_test_options_completer_mode): Pass options context to
2649 complete_options, and then save a dump.
2650 (_initialize_maint_test_options): Use add_cmd to install "maint
2651 show test-options-completion-result".
2652
fdbc9870
PA
26532019-07-03 Pedro Alves <palves@redhat.com>
2654
2655 * NEWS (New commands): Mention "with" and "maint with".
2656 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2657 (with_command, with_command_completer): New.
2658 (pipe_command): Adjust to new repeat_previous
2659 interface.
2660 (_initialize_cli_cmds): Install the "with" command and its "w"
2661 alias.
2662 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2663 declarations.
2664 * cli/cli-setshow.c (parse_cli_var_uinteger)
2665 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2666 argument strings for all var_types.
2667 (get_setshow_command_value_string): New, factored out from ...
2668 (do_show_command): ... this.
2669 * cli/cli-setshow.h: Include <string>.
2670 (get_setshow_command_value_string): Declare.
2671 * command.h (repeat_previous): Now returns const char *. Adjust
2672 comment.
2673 * maint.c: Include "cli/cli-cmds.h".
2674 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2675 (_initialize_maint_cmds): Register the "maintenance with" command.
2676 * top.c (repeat_previous): Move bits from pipe_command here:
2677 Return the saved command line, if any; error out if there's no
2678 command to relaunch.
2679
c6ac8931
PA
26802019-07-03 Pedro Alves <palves@redhat.com>
2681
2682 * NEWS (New commands): Mention "maint set/show test-settings"
2683 instead of "maint test-settings".
2684 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2685 (maintenance_test_settings_set_list): Rename to ...
2686 (maintenance_set_test_settings_list): ... this.
2687 (maintenance_test_settings_show_list): Rename to ...
2688 (maintenance_show_test_settings_list): ... this.
2689 (maintenance_test_settings_cmd): Delete.
2690 (maintenance_test_settings_set_cmd): ...
2691 (maintenance_set_test_settings_cmd): ... this.
2692 (maintenance_test_settings_show_cmd): ...
2693 (maintenance_show_test_settings_cmd): ... this.
2694 (maintenance_test_settings_show_value_cmd):
2695 (maintenance_show_test_settings_value_cmd): ... this.
2696 (_initialize_maint_test_settings): No longer install the "maint
2697 test-settings" prefix command. Rename "maint test-settings set"
2698 to "maint set test-settings", and "maint test-settings show" to
2699 "maint show test-settings". Adjust all subcommands.
2700
d1fcf2fd
PA
27012019-07-03 Pedro Alves <palves@redhat.com>
2702
2703 * maint-test-settings.c: Fix file's intro comment. Replace all
2704 references to "test-options" with references to "test-settings",
2705 in comments.
2706
970f9d09
PA
27072019-07-03 Pedro Alves <palves@redhat.com>
2708
2709 * maint-test-settings.c (maintenance_test_settings_xxx)
2710 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2711 New.
2712 (maintenance_test_settings_enums): Use them.
2713 (maintenance_test_settings_enum): Default to
2714 maintenance_test_settings_xxx.
2715 (_initialize_maint_test_settings): Initialize
2716 MAINTENANCE_TEST_SETTINGS_FILENAME.
2717
f3869b1a
SM
27182019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2719
2720 * breakpoint.h (remove_breakpoints_inf): Change return type to
2721 void, move function documentation here.
2722 * breakpoint.c (remove_breakpoints_inf): Change return type to
2723 void, move function documentation to header.
2724
54d66006
PA
27252019-07-02 Pedro Alves <palves@redhat.com>
2726
2727 * NEWS (Completion improvements): Mention "info threads".
2728 * thread.c (struct info_threads_opts, info_threads_option_defs)
2729 (make_info_threads_options_def_group): New.
2730 (info_threads_command): Use gdb::option::process_options.
2731 (info_threads_command_completer): New.
2732 (_initialize_thread): Use gdb::option::build_help to build the
2733 help text for "info threads".
2734
854f6088
SM
27352019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * defs.h (generic_load): Move from here...
2738 * symfile.h (generic_load): ... to here. Rename name parameter
2739 to args.
2740 * symfile.c (generic_load): Add comment.
2741
54ee4252
TT
27422019-07-01 Tom Tromey <tromey@adacore.com>
2743
2744 * dwarf2read.c
2745 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2746 declaration of without_params. Fix formatting.
2747
65392b3e
TT
27482019-07-01 Tom Tromey <tromey@adacore.com>
2749
2750 * ada-exp.y (find_primitive_type): Update.
2751 * ada-lang.h (ada_lookup_symbol): Update.
2752 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2753 parameter.
2754 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2755
7d7571f0
SDJ
27562019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2757
2758 PR breakpoints/24541
2759 * gdbarch.c: Regenerate.
2760 * gdbarch.h: Regenerate.
2761 * gdbarch.sh: Add 'stap_adjust_register'.
2762 * i386-tdep.c: Include '<unordered_set>'.
2763 (i386_stap_adjust_register): New function.
2764 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2765 * stap-probe.c (stap_parse_register_operand): Call
2766 'gdbarch_stap_adjust_register'.
2767
5af5392a
SDJ
27682019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2769
2770 PR python/24742
2771 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2772 * python/python.c (do_start_initialization): Use 'xmalloc'
2773 instead of 'PyMem_Malloc'.
2774
10d06d82
TT
27752019-06-28 Tom Tromey <tromey@adacore.com>
2776
2777 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2778 for Ada.
2779
1b7f24cd
TT
27802019-06-27 Tom Tromey <tromey@adacore.com>
2781
2782 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2783 objfile_key.
2784 (arm_find_mapping_symbol, arm_record_special_symbol)
2785 (_initialize_arm_tdep): Update.
2786 (arm_objfile_data_free): Remove.
2787
3d507ff2
TT
27882019-06-27 Tom Tromey <tromey@adacore.com>
2789
2790 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2791 to cp_print_static_field.
2792
762c164d
TT
27932019-06-26 Tom Tromey <tromey@adacore.com>
2794
2795 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2796 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2797 declare.
2798
aa2f9bcf
AH
27992019-06-26 Alan Hayward <alan.hayward@arm.com>
2800
2801 * features/aarch64-core.c (create_feature_aarch64_core):
2802 Regenerate.
2803 * features/aarch64-core.xml: Add cpsr flags.
2804
3426ae57
AH
28052019-06-26 Alan Hayward <alan.hayward@arm.com>
2806
2807 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2808 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2809
4838e44c
SM
28102019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2811
2812 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2813 field.
2814 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2815 use.
2816 (arm_record_special_symbol): Don't insert new symbol in sorted
2817 position, push it at the end.
2818
54cc7474
SM
28192019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2820
2821 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2822 (arm_mapping_symbol_s): Remove.
2823 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2824 (arm_mapping_symbol_vec): New typedef.
2825 (struct arm_per_objfile): Add constructor.
2826 <section_maps>: Change type to
2827 std::unique_ptr<arm_mapping_symbol_vec[]>.
2828 (arm_compare_mapping_symbols): Remove.
2829 (arm_find_mapping_symbol): Adjust to section_maps type change.
2830 (arm_objfile_data_free): Call delete on arm_per_objfile.
2831 (arm_record_special_symbol): Adjust to section_maps type change.
2832 Allocate arm_per_objfile with new.
2833
b65b566c
PW
28342019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2835
2836 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2837 with the command prefix.
2838
c2fc64f5
TT
28392019-06-25 Tom Tromey <tom@tromey.com>
2840
2841 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2842 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2843
fb54fa76
TT
28442019-06-25 Tom Tromey <tom@tromey.com>
2845
2846 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2847 type.
2848 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2849 protected.
2850
f7952c57
TT
28512019-06-25 Tom Tromey <tom@tromey.com>
2852
2853 * tui/tui-winsource.c
2854 (tui_source_window_base::set_is_exec_point_at): Add check against
2855 LOA_ADDRESS.
2856
17568d78
TT
28572019-06-25 Tom Tromey <tom@tromey.com>
2858
2859 * tui/tui-source.c (tui_set_source_content): Don't check before
2860 xfree.
2861 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2862
53e7cdba
TT
28632019-06-25 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-winsource.h (tui_update_source_window_as_is)
2866 (tui_alloc_source_buffer, tui_line_is_displayed)
2867 (tui_addr_is_displayed): Change type of win_info.
2868 * tui/tui-winsource.c (tui_update_source_window_as_is)
2869 (tui_clear_source_content, tui_show_source_line)
2870 (tui_show_source_content, tui_source_window_base::refill)
2871 (tui_source_window_base::set_is_exec_point_at)
2872 (tui_source_window_base::set_is_exec_point_at)
2873 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2874 (tui_alloc_source_buffer, tui_line_is_displayed)
2875 (tui_addr_is_displayed): Change type of win_info. Update.
2876 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2877 (tui_source_window_base::do_make_visible_with_new_height):
2878 Update.
2879 * tui/tui-source.c (tui_set_source_content)
2880 (tui_set_source_content_nil)
2881 (tui_source_window::do_scroll_vertical): Update.
2882 * tui/tui-layout.c (show_layout): Update.
2883 * tui/tui-disasm.c (tui_set_disassem_content)
2884 (tui_disasm_window::do_scroll_vertical): Update.
2885 * tui/tui-data.h (tui_win_content): Remove.
2886 (struct tui_gen_win_info) <content, content_size>: Remove.
2887 (struct tui_source_element): Add initializers and destructor.
2888 (union tui_which_element, struct tui_win_element): Remove.
2889 (struct tui_source_window_base) <content>: New field.
2890 (struct tui_data_window): Remove destructor.
2891 (tui_alloc_content, tui_free_win_content)
2892 (tui_free_all_source_wins_content): Don't declare.
2893 * tui/tui-data.c (tui_initialize_static_data): Update.
2894 (init_content_element, tui_alloc_content): Remove.
2895 (~tui_gen_win_info): Update.
2896 (~tui_data_window, tui_free_all_source_wins_content)
2897 (tui_free_win_content, free_content, free_content_elements):
2898 Remove.
2899
7908abbf
TT
29002019-06-25 Tom Tromey <tom@tromey.com>
2901
2902 * tui/tui-winsource.h (tui_clear_source_content)
2903 (tui_erase_source_content, tui_show_source_content): Change type
2904 of win_info.
2905 * tui/tui-winsource.c (tui_clear_source_content)
2906 (tui_erase_source_content, tui_show_source_content): Change type
2907 of win_info.
2908 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2909 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2910 win_info.
2911 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2912 win_info.
2913 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2914
02c28df0
TT
29152019-06-25 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-winsource.c (tui_clear_source_content)
2918 (tui_source_window_base::set_is_exec_point_at): Update.
2919 * tui/tui-source.c (tui_set_source_content_nil): Update.
2920 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2921 a bool.
2922 * tui/tui-data.c (init_content_element): Update.
2923
6658b1bf
TT
29242019-06-25 Tom Tromey <tom@tromey.com>
2925
2926 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2927 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2928 * tui/tui-layout.c (init_and_make_win): Update.
2929 * tui/tui.h (enum tui_win_type): Update.
2930 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2931 tui_win_is_auxillary.
2932 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2933 tui_win_is_auxillary.
2934
21e1c91e
TT
29352019-06-25 Tom Tromey <tom@tromey.com>
2936
2937 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2938 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2939 (tui_delete_data_content_windows, tui_display_all_data)
2940 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2941 Update.
2942 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2943 * tui/tui-regs.c (tui_last_regs_line_no)
2944 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2945 (tui_show_registers): Update.
2946 (tui_show_register_group): Return void. Update.
2947 (tui_display_registers_from, tui_display_reg_element_at_line)
2948 (tui_display_registers_from_line, tui_check_register_values):
2949 Update.
2950 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2951 member.
2952 (struct tui_data_window) <regs_content>: Now a std::vector.
2953 <regs_content_count>: Remove.
2954 (tui_add_content_elements, tui_free_data_content): Don't declare.
2955 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2956 (init_content_element): Remove DATA_WIN case. Add assert.
2957 (tui_add_content_elements): Remove.
2958 (tui_data_window): Update.
2959 (tui_free_data_content): Remove.
2960 (free_content_elements): Remove DATA_WIN case.
2961
115ac53b
TT
29622019-06-25 Tom Tromey <tom@tromey.com>
2963
2964 * tui/tui-data.c (tui_data_item_window): Update.
2965 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2966 * tui/tui-windata.c (tui_display_all_data)
2967 (tui_display_data_from_line): Update.
2968 (tui_check_data_values): Remove.
2969 * tui/tui-regs.c (tui_show_register_group)
2970 (tui_display_reg_element_at_line): Update.
2971 * tui/tui-hooks.c (tui_register_changed)
2972 (tui_refresh_frame_and_register_information): Call
2973 tui_check_register_values.
2974 * tui/tui-data.h (struct tui_data_window) <data_content,
2975 data_content_count, data_type>: Remove.
2976 (enum tui_data_type): Remove.
2977
2978 * tui/tui-data.c (tui_data_window::clear_detail)
2979 (~tui_data_window): Update.
2980
eaf9738b
TT
29812019-06-25 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2984 declare.
2985 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2986 Rename from tui_first_data_item_displayed. Update.
2987 (tui_data_window::refresh_all)
2988 (tui_data_window::do_scroll_vertical): Update.
2989 * tui/tui-data.h (struct tui_data_window)
2990 <first_data_item_displayed>: Declare new method.
2991
31ca4723
TT
29922019-06-25 Tom Tromey <tom@tromey.com>
2993
2994 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2995 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2996 contents...
2997 (tui_initialize_static_data): ...here.
2998
41bcff7f
TT
29992019-06-25 Tom Tromey <tom@tromey.com>
3000
3001 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3002 (tui_display_registers_from, tui_check_register_values): Update.
3003 (tui_display_register): Remove win_info parameter; update.
3004 (tui_get_register): Change type of parameters.
3005 * tui/tui-data.h (struct tui_data_element): Remove.
3006 (union tui_which_element) <data>: Remove.
3007 <data_window>: Change type.
3008 (struct tui_data_item_window): New.
3009 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3010 case. Add assert.
3011 (~tui_data_item_window): New destructor.
3012 (free_content_elements): Remove DATA_ITEM_WIN case.
3013
d2802c33
TT
30142019-06-25 Tom Tromey <tom@tromey.com>
3015
3016 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3017 Remove.
3018
dd835f8b
TT
30192019-06-25 Tom Tromey <tom@tromey.com>
3020
3021 * tui/tui-data.h (struct tui_command_element): Remove.
3022 (union tui_which_element) <command>: Remove.
3023 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3024 assert.
3025 (free_content_elements): Remove CMD_WIN case.
3026
bd7db367
TT
30272019-06-25 Tom Tromey <tom@tromey.com>
3028
3029 * tui/tui-layout.c (tui_set_layout): Update.
3030 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3031 * tui/tui-data.c (layout_def): Update.
3032
3add462f
TT
30332019-06-25 Tom Tromey <tom@tromey.com>
3034
3035 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3036 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3037 (tui_source_window_base::set_new_height): Update.
3038 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3039 Update.
3040 (tui_set_locator_fullname, tui_set_locator_info)
3041 (tui_show_frame_info): Update.
3042 * tui/tui-source.c (tui_set_source_content)
3043 (tui_source_is_displayed): Update.
3044 * tui/tui-layout.c (show_source_disasm_command, show_data)
3045 (show_source_or_disasm_and_command): Update.
3046 * tui/tui-disasm.c (tui_set_disassem_content)
3047 (tui_get_begin_asm_address): Update.
3048 * tui/tui-data.h (struct tui_locator_element): Remove.
3049 (union tui_which_element) <locator>: Remove.
3050 (struct tui_locator_window): New.
3051 (tui_locator_win_info_ptr): Change return type.
3052 * tui/tui-data.c (_locator): Change type.
3053 (tui_locator_win_info_ptr): Change return type.
3054 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3055 (tui_alloc_content): Add assert.
3056
489e9d8b
TT
30572019-06-25 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-winsource.c
3060 (tui_exec_info_window::maybe_allocate_content): New method.
3061 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3062 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3063 (make_source_or_disasm_window): Add cast.
3064 * tui/tui-data.h (union tui_which_element) <simple_string>:
3065 Remove.
3066 (struct tui_source_info): New.
3067 (struct tui_source_window_base) <execution_info>: Change type.
3068 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3069 case, and add assert.
3070 (tui_alloc_content): Add assert.
3071
c3fabb7d
TT
30722019-06-25 Tom Tromey <tom@tromey.com>
3073
3074 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3075 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3076 * tui/tui-data.c (tui_alloc_win_info): Remove.
3077
bbc228ee
TT
30782019-06-25 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3081 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3082 can_highlight.
3083
5fcee43a
TT
30842019-06-25 Tom Tromey <tom@tromey.com>
3085
3086 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3087 make_visible_with_new_height method.
3088 (tui_win_info::make_visible_with_new_height): New method.
3089 (tui_source_window_base::do_make_visible_with_new_height)
3090 (tui_data_window::do_make_visible_with_new_height)
3091 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3092 (make_visible_with_new_height): Remove.
3093 (tui_resize_all, tui_adjust_win_heights): Use
3094 make_visible_with_new_height method.
3095 * tui/tui-data.h (struct tui_win_info)
3096 <do_make_visible_with_new_height, make_visible_with_new_height>:
3097 New methods.
3098 (struct tui_source_window_base, struct tui_data_window)
3099 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3100 methods.
3101
d83f1fe6
TT
31022019-06-25 Tom Tromey <tom@tromey.com>
3103
3104 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3105 method.
3106 (update_tab_width): Call update_tab_width method.
3107 * tui/tui-data.h (struct tui_win_info)
3108 (struct tui_source_window_base) <update_tab_width>: New methods.
3109
17374de4
TT
31102019-06-25 Tom Tromey <tom@tromey.com>
3111
3112 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3113 parameter.
3114 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3115 parameter.
3116 (tui_gen_win_info::make_visible): Update.
3117 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3118 parameter.
3119 * tui/tui-data.h (enum tui_box): New enum.
3120 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3121
f936bca2
TT
31222019-06-25 Tom Tromey <tom@tromey.com>
3123
3124 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3125 init_and_make_win for EXEC_INFO_WIN.
3126 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3127 longer inline.
3128 (struct tui_win_info) <~tui_win_info>: Inline.
3129 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3130 Don't declare.
3131 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3132 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3133 Remove.
3134 (tui_initialize_static_data): Update.
3135 (~tui_gen_win_info): Handle more cleanup here.
3136 (~tui_source_window_base): Delete "execution_info".
3137 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3138
d6ba6a11
TT
31392019-06-25 Tom Tromey <tom@tromey.com>
3140
3141 * tui/tui-layout.c (make_command_window): Don't set
3142 can_highlight.
3143 (show_source_disasm_command): Call the reset method.
3144 (show_data): Don't set can_highlight. Call the reset method.
3145 (tui_gen_win_info::reset): Rename from init_gen_win_info
3146 (init_and_make_win): Simplify. Return tui_gen_win_info.
3147 (show_source_or_disasm_and_command): Call the reset method.
3148 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3149 (struct tui_cmd_window): Set can_highlight.
3150
48a3bd16
TT
31512019-06-25 Tom Tromey <tom@tromey.com>
3152
3153 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3154 from make_visible.
3155 (tui_make_visible, tui_make_invisible): Rewrite.
3156 (tui_win_info::make_visible): Remove.
3157 (tui_source_window_base::make_visible): Update.
3158 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3159 method. Moved from...
3160 (struct tui_win_info) <make_visible>: ...here.
3161
c3bd716f
TT
31622019-06-25 Tom Tromey <tom@tromey.com>
3163
3164 * tui/tui-winsource.c
3165 (tui_source_window_base::do_scroll_horizontal): Remove direction
3166 parameter.
3167 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3168 direction parameter.
3169 * tui/tui-win.c (tui_win_info::forward_scroll)
3170 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3171 (tui_win_info::right_scroll): Update.
3172 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3173 direction parameter.
3174 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3175 direction parameter.
3176 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3177 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3178 Remove direction parameter.
3179 (struct tui_source_window_base, struct tui_source_window)
3180 (struct tui_disasm_window, struct tui_data_window)
3181 (struct tui_cmd_window): Update.
3182
21c32dca
TT
31832019-06-25 Tom Tromey <tom@tromey.com>
3184
3185 * tui/tui-winsource.h (tui_set_exec_info_content)
3186 (tui_show_exec_info_content, tui_erase_exec_info_content)
3187 (tui_clear_exec_info_content, tui_update_exec_info): Change
3188 argument to tui_source_window_base.
3189 * tui/tui-winsource.c (tui_set_exec_info_content)
3190 (tui_show_exec_info_content, tui_erase_exec_info_content)
3191 (tui_clear_exec_info_content, tui_update_exec_info): Change
3192 argument to tui_source_window_base.
3193
73fbdc65
TT
31942019-06-25 Tom Tromey <tom@tromey.com>
3195
3196 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3197 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3198
33325343
TT
31992019-06-25 Tom Tromey <tom@tromey.com>
3200
3201 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3202 check.
3203
29d2c474
TT
32042019-06-25 Tom Tromey <tom@tromey.com>
3205
3206 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3207 type to void.
3208 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3209 type to void.
3210 * tui/tui-source.c (tui_set_source_content): Update.
3211 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3212
152f3f4b
TT
32132019-06-25 Tom Tromey <tom@tromey.com>
3214
3215 * tui/tui-win.c (window_name_completer, tui_set_focus)
3216 (tui_all_windows_info): Use name method.
3217 * tui/tui-data.h (struct tui_gen_win_info)
3218 (struct tui_source_window, struct tui_disasm_window)
3219 (struct tui_data_window, struct tui_cmd_window) <name>: New
3220 method.
3221 (tui_win_name): Don't declare.
3222 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3223 (tui_win_name): Remove.
3224
be4da588
TT
32252019-06-25 Tom Tromey <tom@tromey.com>
3226
3227 * tui/tui-winsource.h (tui_update_source_window)
3228 (tui_update_source_window_as_is): Change parameter type.
3229 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3230 to be a tui_source_window_base.
3231 (tui_update_source_window_as_is): Likewise.
3232 * tui/tui-win.c (make_visible_with_new_height): Update.
3233
5b81daba
TT
32342019-06-25 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-winsource.c (tui_erase_source_content)
3237 (tui_show_source_content, tui_show_exec_info_content)
3238 (tui_erase_exec_info_content): Use refresh_window method.
3239 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3240 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3241 from tui_refresh_win.
3242 (tui_data_window::refresh_window): New method.
3243 (tui_win_info::refresh, tui_source_window_base::refresh)
3244 (tui_refresh_all): Use refresh_window method.
3245 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3246 method.
3247 * tui/tui-regs.c (tui_display_register): Call refresh_window
3248 method.
3249 * tui/tui-layout.c (show_source_disasm_command)
3250 (show_source_or_disasm_and_command): Call refresh_window method.
3251 * tui/tui-data.h (struct tui_gen_win_info)
3252 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3253 New method.
3254
cb2ce893
TT
32552019-06-25 Tom Tromey <tom@tromey.com>
3256
3257 * tui/tui.c (tui_rl_other_window, tui_enable)
3258 (tui_is_window_visible, tui_get_command_dimension): Update.
3259 * tui/tui-winsource.c (tui_update_source_window_as_is)
3260 (tui_clear_source_content, tui_erase_source_content)
3261 (tui_show_source_line, tui_source_window_base::refill)
3262 (tui_source_window_base::do_scroll_horizontal)
3263 (tui_source_window_base::set_is_exec_point_at)
3264 (tui_update_breakpoint_info, tui_set_exec_info_content)
3265 (tui_alloc_source_buffer, tui_line_is_displayed)
3266 (tui_addr_is_displayed): Update.
3267 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3268 (tui_check_and_display_highlight_if_needed)
3269 (tui_win_info::make_visible, tui_win_info::refresh)
3270 (tui_refresh_all): Update.
3271 * tui/tui-windata.c (tui_first_data_item_displayed)
3272 (tui_delete_data_content_windows, tui_erase_data_content)
3273 (tui_display_all_data, tui_data_window::refresh_all)
3274 (tui_check_data_values): Update.
3275 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3276 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3277 (tui_win_info::backward_scroll, tui_refresh_all_win)
3278 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3279 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3280 (tui_source_window_base::set_new_height)
3281 (tui_data_window::set_new_height)
3282 (make_invisible_and_set_new_height)
3283 (make_visible_with_new_height, new_height_ok)
3284 (parse_scrolling_args): Update.
3285 * tui/tui-stack.c (tui_show_frame_info): Update.
3286 * tui/tui-source.c (tui_set_source_content)
3287 (tui_set_source_content_nil, tui_source_is_displayed)
3288 (tui_source_window::do_scroll_vertical): Update.
3289 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3290 (tui_display_registers_from, tui_display_reg_element_at_line)
3291 (tui_check_register_values, tui_reg_command): Update.
3292 * tui/tui-layout.c (tui_default_win_height)
3293 (show_source_disasm_command, show_data, init_and_make_win)
3294 (show_source_or_disasm_and_command): Update.
3295 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3296 (tui_redisplay_readline, tui_mld_flush)
3297 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3298 (tui_getc): Update.
3299 * tui/tui-disasm.c (tui_set_disassem_content)
3300 (tui_disasm_window::do_scroll_vertical): Update.
3301 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3302 Now virtual.
3303 (struct tui_win_info): Derive from tui_gen_win_info.
3304 <~tui_win_info>: Mark as override.
3305 <generic>: Remove member.
3306 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3307 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3308 (~tui_data_window, ~tui_win_info)
3309 (tui_free_all_source_wins_content): Update.
3310 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3311
ab313b35
TT
33122019-06-25 Tom Tromey <tom@tromey.com>
3313
3314 * tui/tui-layout.c (init_and_make_win): Use new.
3315 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3316 destructor, initializers.
3317 (tui_alloc_generic_win_info): Don't declare.
3318 * tui/tui-data.c (_locator): Add argument to constructor.
3319 (source_win, disasm_win): New globals.
3320 (exec_info): Remove.
3321 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3322 Update.
3323 (tui_alloc_generic_win_info): Remove.
3324 (init_content_element): Use new.
3325 (tui_win_info::tui_win_info): Update.
3326 (free_content_elements) <case DATA_WIN>: Use delete.
3327
dc2c33e4
TT
33282019-06-25 Tom Tromey <tom@tromey.com>
3329
3330 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3331 * tui/tui-windata.c (tui_first_data_item_displayed)
3332 (tui_delete_data_content_windows): Update.
3333 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3334 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3335 (tui_display_registers_from, tui_check_register_values): Update.
3336 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3337 pointer.
3338 * tui/tui-data.c (init_content_element): Update. Allocate the new
3339 window.
3340 (tui_free_data_content): Update.
3341 (free_content_elements) <case DATA_WIN>: Free the window.
3342
214a5cbe
TT
33432019-06-25 Tom Tromey <tom@tromey.com>
3344
3345 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3346 Update.
3347 * tui/tui-layout.c (make_command_window)
3348 (show_source_disasm_command, show_data, init_and_make_win)
3349 (show_source_or_disasm_and_command): Update.
3350 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3351 method.
3352 <can_highight, is_highlighted>: Now bool.
3353 (tui_set_win_highlight): Don't declare.
3354 * tui/tui-data.c (tui_set_win_highlight): Remove.
3355
8e2daf15
TT
33562019-06-25 Tom Tromey <tom@tromey.com>
3357
3358 * tui/tui-wingeneral.c (make_visible): Remove check of window
3359 type.
3360
8903bd8a
TT
33612019-06-25 Tom Tromey <tom@tromey.com>
3362
3363 * tui/tui-win.c (tui_win_info::max_height)
3364 (tui_cmd_window::max_height): New methods.
3365 (new_height_ok): Call max_height.
3366 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3367 <max_height>: New method.
3368
3f02ce1e
TT
33692019-06-25 Tom Tromey <tom@tromey.com>
3370
3371 * tui/tui-win.c (tui_source_window_base::set_new_height)
3372 (tui_data_window::set_new_height): New methods.
3373 (make_invisible_and_set_new_height): Call set_new_height method.
3374 * tui/tui-data.h (struct tui_win_info)
3375 (struct tui_source_window_base, struct tui_data_window)
3376 <set_new_height>: New method.
3377
1825f487
TT
33782019-06-25 Tom Tromey <tom@tromey.com>
3379
3380 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3381 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3382 tui_refresh_data_win.
3383 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3384 method.
3385 (tui_refresh_all_win): Call the refresh_all method.
3386 (tui_set_focus): Likewise.
3387 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3388 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3389 Likewise.
3390
ad54d15b
TT
33912019-06-25 Tom Tromey <tom@tromey.com>
3392
3393 * tui/tui-winsource.h (tui_refill_source_window)
3394 (tui_set_is_exec_point_at): Don't declare.
3395 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3396 (tui_source_window_base::refill): Rename from
3397 tui_refill_source_window.
3398 (tui_source_window_base::do_scroll_horizontal): Update.
3399 (tui_source_window_base::set_is_exec_point_at): Rename from
3400 tui_set_is_exec_point_at.
3401 (tui_update_all_breakpoint_info): Update.
3402 * tui/tui-stack.c (tui_show_frame_info): Update.
3403 * tui/tui-layout.c (show_data): Add cast.
3404 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3405 * tui/tui-data.h (struct tui_source_window_base) <refill,
3406 set_is_exec_point_at>: New methods.
3407 (tui_source_windows, tui_add_to_source_windows): Update types.
3408 (tui_add_to_source_windows): Remove redundant declaration.
3409 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3410 (tui_source_windows): Change return type.
3411 (tui_clear_source_windows_detail): Update.
3412 (tui_add_to_source_windows): Change type of parameter.
3413 (tui_free_all_source_wins_content): Update.
3414
2042b506
TT
34152019-06-25 Tom Tromey <tom@tromey.com>
3416
3417 * tui/tui-wingeneral.c (tui_win_info::refresh)
3418 (tui_source_window_base::refresh): New methods.
3419 (tui_refresh_all): Call the refresh method.
3420 * tui/tui-data.h (struct tui_win_info)
3421 (struct tui_source_window_base) <refresh>: New method.
3422
56122977
TT
34232019-06-25 Tom Tromey <tom@tromey.com>
3424
3425 * tui/tui.h (tui_is_window_visible): Return bool.
3426 * tui/tui.c (tui_is_window_visible): Return bool.
3427 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3428 (tui_make_visible, tui_make_invisible)
3429 (tui_win_info::make_visible)
3430 (tui_source_window_base::make_visible, make_all_visible)
3431 (tui_make_all_visible, tui_make_all_invisible): Update.
3432 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3433 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3434 bool.
3435 (struct tui_win_info, struct tui_source_window_base)
3436 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3437 * tui/tui-data.c (tui_init_generic_part): Update.
3438
cda37efb
TT
34392019-06-25 Tom Tromey <tom@tromey.com>
3440
3441 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3442 (tui_source_window_base::make_visible): New methods.
3443 (make_all_visible): Make method call.
3444 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3445 (struct tui_source_window_base, struct tui_cmd_window): Override
3446 make_visible.
3447 (tui_win_is_source_type): Don't declare.
3448 * tui/tui-data.c (tui_win_is_source_type): Remove.
3449
6a0ee02c
TT
34502019-06-25 Tom Tromey <tom@tromey.com>
3451
3452 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3453 NULL check.
3454
63901aec
TT
34552019-06-25 Tom Tromey <tom@tromey.com>
3456
3457 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3458 Inline constructor. Add initializers for members.
3459 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3460 constructors; now inline in class.
3461
ceb13a13
TT
34622019-06-25 Tom Tromey <tom@tromey.com>
3463
3464 * tui/tui-regs.c (tui_show_registers): Update.
3465 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3466 bool.
3467 * tui/tui-data.c (tui_data_window::clear_detail)
3468 (tui_data_window): Update.
3469
238eb706
TT
34702019-06-25 Tom Tromey <tom@tromey.com>
3471
3472 * tui/tui-windata.c (tui_display_all_data)
3473 (tui_display_data_from_line, tui_display_data_from)
3474 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3475 Update.
3476 * tui/tui-regs.c (tui_last_regs_line_no)
3477 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3478 (tui_show_registers, tui_show_register_group)
3479 (tui_display_registers_from, tui_display_reg_element_at_line)
3480 (tui_display_registers_from_line, tui_check_register_values)
3481 (tui_reg_next, tui_reg_prev): Update.
3482 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3483 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3484 tui_data_window.
3485 (struct tui_win_info) <detail>: Remove. Add new fields from
3486 tui_data_info.
3487 (TUI_DATA_WIN): Add cast.
3488 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3489 (~tui_data_window): Simplify.
3490
81491aa0
TT
34912019-06-25 Tom Tromey <tom@tromey.com>
3492
3493 * tui/tui-layout.c (show_source_disasm_command)
3494 (show_source_or_disasm_and_command): Update.
3495 * tui/tui-io.c (update_cmdwin_start_line)
3496 (tui_redisplay_readline): Update.
3497 * tui/tui-data.h (struct tui_command_info): Remove.
3498 (struct tui_win_info) <detail>: Remove command_info member.
3499 (struct tui_data_window) <start_line>: New member, from
3500 tui_command_info.
3501 (TUI_CMD_WIN): Add casts.
3502
e6e41501
TT
35032019-06-25 Tom Tromey <tom@tromey.com>
3504
3505 * tui/tui-winsource.c (tui_update_source_window)
3506 (tui_refill_source_window)
3507 (tui_source_window_base::do_scroll_horizontal)
3508 (tui_update_breakpoint_info, tui_set_exec_info_content)
3509 (tui_show_exec_info_content, tui_erase_exec_info_content)
3510 (tui_clear_exec_info_content): Update.
3511 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3512 Update.
3513 * tui/tui-win.c (make_invisible_and_set_new_height)
3514 (make_visible_with_new_height): Update.
3515 * tui/tui-source.c (tui_set_source_content)
3516 (tui_show_symtab_source): Update.
3517 * tui/tui-layout.c (extract_display_start_addr)
3518 (show_source_disasm_command, show_data)
3519 (make_source_or_disasm_window)
3520 (show_source_or_disasm_and_command): Update.
3521 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3522 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3523 "gdbarch".
3524 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3525 to tui_source_window_base.
3526 (struct tui_win_info) <detail>: Remove source_info member.
3527 (struct tui_source_window_base) <has_locator>: Inline.
3528 Move contents from tui_source_info; rename has_locator member to
3529 m_has_locator.
3530 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3531 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3532 header file.
3533 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3534 Simplify.
3535 (tui_free_all_source_wins_content): Cast to
3536 tui_source_window_base.
3537
44f0e208
TT
35382019-06-25 Tom Tromey <tom@tromey.com>
3539
3540 * tui/tui-win.c (make_invisible_and_set_new_height)
3541 (make_visible_with_new_height): Call has_locator method.
3542 * tui/tui-layout.c (show_source_disasm_command, show_data)
3543 (show_source_or_disasm_and_command): Update for bool change.
3544 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3545 (tui_win_info) <has_locator>: New method.
3546 (struct tui_source_window_base) <has_locator>: New method.
3547 (tui_win_has_locator): Don't declare.
3548 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3549 from tui_win_has_locator.
3550 (tui_source_window_base): Use false, not FALSE.
3551
7778b912
TT
35522019-06-25 Tom Tromey <tom@tromey.com>
3553
3554 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3555 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3556 clear_detail method directly.
3557 (tui_clear_win_detail): Remove.
3558
f83d391c
TT
35592019-06-25 Tom Tromey <tom@tromey.com>
3560
3561 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3562 "this", not TUI_DISASM_WIN.
3563
13446e05
TT
35642019-06-25 Tom Tromey <tom@tromey.com>
3565
3566 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3567 declare.
3568 * tui/tui-winsource.c
3569 (tui_source_window_base::do_scroll_horizontal): Rename from
3570 tui_horizontal_source_scroll.
3571 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3572 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3573 from tui_vertical_data_scroll.
3574 * tui/tui-win.h (tui_scroll): Don't declare.
3575 * tui/tui-win.c (tui_win_info::forward_scroll)
3576 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3577 (tui_win_info::right_scroll): Rename and update.
3578 (tui_scroll_forward_command, tui_scroll_backward_command)
3579 (tui_scroll_left_command, tui_scroll_right_command): Update.
3580 (tui_scroll): Remove.
3581 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3582 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3583 from tui_vertical_source_scroll.
3584 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3585 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3586 from tui_vertical_disassem_scroll.
3587 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3588 do_scroll_horizontal>: New methods.
3589 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3590 Likewise.
3591 (struct tui_source_window_base): Add do_scroll_horizontal.
3592 (struct tui_source_window, struct tui_disasm_window): Add
3593 do_scroll_vertical.
3594 (struct tui_data_window, struct tui_cmd_window): Add
3595 do_scroll_horizontal and do_scroll_vertical.
3596 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3597
5cf82909
TT
35982019-06-25 Tom Tromey <tom@tromey.com>
3599
3600 * tui/tui-data.h (struct tui_source_window_base): New struct.
3601 (struct tui_source_window): Derive from tui_source_window_base.
3602 (struct tui_disasm_window): New struct.
3603 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3604 from tui_source_window::clear_detail.
3605 (tui_source_window_base): Rename from tui_source_window.
3606 (~tui_source_window_base): Rename from ~tui_source_window.
3607 (tui_alloc_win_info): Create a tui_disasm_window.
3608
ee1d42d6
TT
36092019-06-25 Tom Tromey <tom@tromey.com>
3610
3611 * tui/tui-data.h (struct tui_source_window)
3612 (struct tui_data_window): Declare destructors.
3613 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3614 destructors.
3615 (tui_win_info): Simplify.
3616
b4eb2452
TT
36172019-06-25 Tom Tromey <tom@tromey.com>
3618
3619 * tui/tui-winsource.c (tui_display_main)
3620 (tui_update_source_windows_with_addr)
3621 (tui_update_all_breakpoint_info): Update.
3622 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3623 (new_height_ok, parse_scrolling_args): Update.
3624 * tui/tui-stack.c (tui_show_frame_info): Update.
3625 * tui/tui-data.h (struct tui_list): Remove.
3626 (tui_source_windows): Return a reference to a std::vector.
3627 * tui/tui-data.c (source_windows): Now a std::vector.
3628 (tui_source_windows): Change return type.
3629 (tui_clear_source_windows): Rewrite.
3630 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3631 (tui_free_all_source_wins_content): Rewrite.
3632
8761a91b
TT
36332019-06-25 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3636 (struct tui_data_window, struct tui_cmd_window): Declare
3637 clear_detail method.
3638 * tui/tui-data.c (tui_source_window::clear_detail)
3639 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3640 methods.
3641 (tui_clear_win_detail): Simplify.
3642
0ed69eda
TT
36432019-06-25 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-layout.c (make_source_window, make_disasm_window)
3646 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3647 Return the new window.
3648 (show_source_disasm_command, show_data)
3649 (show_source_or_disasm_and_command): Update.
3650
82432e10
TT
36512019-06-25 Tom Tromey <tom@tromey.com>
3652
3653 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3654 parameter. Return the new window.
3655 (show_source_disasm_command): Update and remove NULL check.
3656 (show_source_or_disasm_and_command): Update.
3657
ec328aa5
TT
36582019-06-25 Tom Tromey <tom@tromey.com>
3659
3660 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3661
33b906ab
TT
36622019-06-25 Tom Tromey <tom@tromey.com>
3663
3664 * tui/tui-data.h (struct tui_win_info): Make constructor
3665 protected. Make destructor virtual. Add initializers.
3666 (tui_source_window, tui_data_window, tui_cmd_window): New
3667 classes.
3668 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3669 constructor. Add "type" parameter.
3670 (tui_source_window, tui_data_window, tui_cmd_window): New
3671 constructors.
3672 (tui_alloc_win_info): Instantiate the appropriate subclass.
3673
e7e11af4
TT
36742019-06-25 Tom Tromey <tom@tromey.com>
3675
3676 * tui/tui-win.c (tui_resize_all): Use delete.
3677 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3678 destructor.
3679 (tui_free_window): Don't declare.
3680 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3681 Update.
3682
6792b55e
TT
36832019-06-25 Tom Tromey <tom@tromey.com>
3684
3685 * tui/tui-data.h (struct tui_win_info): Add constructor.
3686 * tui/tui-data.c (tui_alloc_win_info): Use new.
3687 (tui_free_window): Use delete.
3688
f95675e1
TT
36892019-06-22 Tom Tromey <tom@tromey.com>
3690
3691 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3692 declare.
3693 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3694
5bff081c
TT
36952019-06-22 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3698 declare.
3699 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3700
47e3f474
TV
37012019-06-22 Tom de Vries <tdevries@suse.de>
3702
3703 * dwarf2read.c (create_addrmap_from_aranges)
3704 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3705 instead of '%zu'.
3706
fd5866f6
SM
37072019-06-21 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * dwarf2read.h (dwarf2_section_info_def): Remove.
3710 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3711 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3712 std::vector<dwarf2_section_info>.
3713 (struct dwo_file) <~dwo_file>: Remove.
3714 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3715 types field.
3716 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3717 (dwarf2_read_debug_names): Likewise.
3718 (create_debug_types_hash_table): Change parameter type to
3719 array_view, adjust code accordingly.
3720 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3721 (partial_die_info::fixup): Likewise.
3722 (determine_prefix): Likewise.
3723 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3724
fb1eb2f9
SM
37252019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3726
3727 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3728 gdb_bfd_ref_ptr.
3729 <~dwo_file>: Remove call to gdb_bfd_unref.
3730 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3731 gdb_bfd_ref_ptr::get.
3732
51ac9db5
SM
37332019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3734
3735 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3736 type to htab_up.
3737 * dwarf2read.c (struct dwo_file): Initialize fields.
3738 <~dwo_file>: New.
3739 (free_dwo_file): Remove, move content to ~dwo_file.
3740 (struct dwo_file_deleter): Remove.
3741 (dwo_file_up>: Remove custom deleter.
3742 (free_dwo_files): Remove.
3743 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3744 dwo_files.
3745 (process_skeletonless_type_units): Call unique_ptr::get.
3746 (allocate_dwo_file_hash_table): Add deleter to created hash
3747 table. Change return type to htab_up.
3748 (lookup_dwo_file_slot): Don't memset dwo_file, call
3749 unique_ptr::get.
3750 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3751 (create_dwo_unit_in_dwp_v2): Likewise.
3752 (open_and_init_dwo_file): Likewise.
3753 (free_dwo_file_from_slot): Remove.
3754
dc4ccb6f
SM
37552019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3756
3757 * dwarf2read.h (struct dwarf2_section_info) <readin,
3758 is_virtual>: Change type to bool.
3759 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3760 true instead of 1.
3761
e6a1c5cb
TT
37622019-06-19 Tom Tromey <tom@tromey.com>
3763
3764 * tui/tui-data.h (tui_init_content_element): Don't declare.
3765
6f6ffbeb
TT
37662019-06-19 Tom Tromey <tom@tromey.com>
3767
3768 * tui/tui-data.h (tui_init_win_info): Don't declare.
3769
f23f598e
TV
37702019-06-19 Tom de Vries <tdevries@suse.de>
3771
3772 * dwarf2read.h (abstract_to_concrete): Change type to
3773 std::unordered_map<sect_offset, std::vector<sect_offset>,
3774 gdb::hash_enum<sect_offset>>.
3775
680e1bee
TT
37762019-06-19 Tom Tromey <tromey@adacore.com>
3777
3778 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3779 EVAL_AVOID_SIDE_EFFECTS specially.
3780
dcf37923
TT
37812019-06-19 Tom Tromey <tromey@adacore.com>
3782
3783 * source-cache.c (highlighter): New global.
3784 (source_cache::get_source_lines): Create a highlighter on demand.
3785
494986d5
AB
37862019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * defs.h (deprecated_interactive_hook): Delete declaration.
3789 * interps.c (clear_interpreter_hooks): Remove use of
3790 deprecated_interactive_hook.
3791 * top.c (deprecated_interactive_hook): Delete definition.
3792 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3793
3360b6e7
TV
37942019-06-18 Tom de Vries <tdevries@suse.de>
3795
3796 PR gdb/24515
3797 * dwarf2read.h (abstract_to_concrete): Change type from
3798 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3799 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3800 * dwarf2read.c (read_variable): Update.
3801 (dwarf2_fetch_die_loc_sect_off): Update.
3802
310b3441
TV
38032019-06-17 Tom de Vries <tdevries@suse.de>
3804
3805 PR gdb/24617
3806 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3807 accessing parent[parent_len - 1].
3808
ba9777be
PP
38092019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3810
3811 PR gdb/24364
3812 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3813 call dtrace_process_dof with NULL dof.
3814
2b9f6e89
TV
38152019-06-16 Tom de Vries <tdevries@suse.de>
3816
3817 PR gdb/24445
3818 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3819
431b3ead
TT
38202019-06-16 Tom Tromey <tom@tromey.com>
3821
3822 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3823 (make_all_visible): Use address of member.
3824
d04b44a1
TT
38252019-06-16 Tom Tromey <tom@tromey.com>
3826
3827 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3828 (tui_free_window, free_content, free_content_elements): Remove
3829 unnecessary cast.
3830 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3831 cast.
3832 * tui/tui-regs.c (tui_show_register_group)
3833 (tui_display_registers_from, tui_display_reg_element_at_line):
3834 Remove unnecessary cast.
3835
bf5142e7
AB
38362019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3837
3838 * linux-nat.c (normal_mask): Delete.
3839 (_initialize_linux_nat): Don't initialise normal_mask.
3840
c4973306
SM
38412019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3842
3843 PR gdb/24445
3844 * dwarf-index-write.h (write_psymtabs_to_index): Add
3845 dwz_basename parameter.
3846 * dwarf-index-write.c (write_gdbindex): Move file writing to
3847 write_gdbindex_1. Change return type void.
3848 (assert_file_size): Move up, remove filename parameter.
3849 (write_gdbindex_1): New function.
3850 (write_debug_names): Change return type to void, call
3851 assert_file_size.
3852 (struct index_wip_file): New struct.
3853 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3854 file logic to index_wip_file. Write index for dwz file if
3855 needed.
3856 (save_gdb_index_command): Pass basename of dwz file, if present.
3857 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3858 build-id of dwz file, if present.
3859 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3860 (dwarf2_get_dwz_file): Likewise.
3861 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3862 (dwarf2_get_dwz_file): Likewise.
3863
395f9c91
TT
38642019-06-16 Tom Tromey <tom@tromey.com>
3865
3866 * coffread.c (process_coff_symbol): Use xstrdup.
3867 * value.c (create_internalvar): Use xstrdup.
3868
cafb3438
TT
38692019-06-16 Tom Tromey <tom@tromey.com>
3870
3871 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3872 * breakpoint.c (stopin_command, stopat_command)
3873 (until_break_command, decode_location_default): Remove unnecessary
3874 cast.
3875 * utils.c (subset_compare): Remove unnecessary cast.
3876 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3877 cast.
3878 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3879 cast.
3880 * infcmd.c (path_command): Remove unnecessary cast.
3881 * coffread.c (decode_type): Remove unnecessary cast.
3882 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3883 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3884 * tui/tui-stack.c (tui_show_locator_content)
3885 (tui_show_frame_info): Remove unnecessary cast.
3886 * tui/tui-win.c (tui_scroll_forward_command)
3887 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3888 (parse_scrolling_args): Remove unnecessary cast.
3889 * tui/tui-data.c (init_win_info, tui_del_window)
3890 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3891 (free_content_elements): Remove unnecessary cast.
3892 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3893 unnecessary cast.
3894 * tui/tui-source.c (tui_set_source_content)
3895 (tui_vertical_source_scroll): Remove unnecessary cast.
3896 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3897 cast.
3898 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3899 * tui/tui-regs.c (tui_display_registers_from)
3900 (tui_display_register): Remove unnecessary cast.
3901 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3902 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3903 (make_visible): Remove unnecessary cast.
3904 * tui/tui-winsource.c (tui_erase_source_content)
3905 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3906 unnecessary cast.
3907 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3908 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3909 * stabsread.c (read_type, read_array_type, read_range_type):
3910 Remove unnecessary cast.
3911 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3912 (parse_symbol, parse_type, upgrade_type, parse_external)
3913 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3914 unnecessary cast.
3915 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3916
730ead81
TT
39172019-06-16 Tom Tromey <tom@tromey.com>
3918
3919 * tui/tui-data.c (tui_alloc_generic_win_info)
3920 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3921 checks.
3922
584a927c
AB
39232019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3924 Andrew Burgess <andrew.burgess@embecosm.com>
3925
3926 * f-typeprint.c (f_print_type): Don't return early for not
3927 associated or not allocated types.
3928 (f_type_print_varspec_suffix): Add print_rank parameter and print
3929 ranks of array types in case they dangling.
3930 (f_type_print_base): Add print_rank parameter.
3931
30056ea0
AB
39322019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3933
3934 * NEWS: Mention new MI commands.
3935 * break-catch-throw.c (enum exception_event_kind): Move to
3936 breakpoint.h.
3937 (print_mention_exception_catchpoint): Output text as a single
3938 message.
3939 (catch_exception_command_1): Rename to...
3940 (catch_exception_event): ...this, make non-static, update header
3941 command, and change some parameter types.
3942 (catch_catch_command): Update for changes to
3943 catch_exception_command_1.
3944 (catch_throw_command): Likewise.
3945 (catch_rethrow_command): Likewise.
3946 * breakpoint.c (enum exception_event_kind): Delete.
3947 * breakpoint.h (enum exception_event_kind): Moved here from
3948 break-catch-throw.c.
3949 (catch_exception_event): Declare.
3950 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3951 (mi_cmd_catch_throw): New function.
3952 (mi_cmd_catch_rethrow): New function.
3953 (mi_cmd_catch_catch): New function.
3954 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3955 'catch-catch' entries.
3956 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3957 (mi_cmd_catch_rethrow): Declare.
3958 (mi_cmd_catch_catch): Declare.
3959
ec8e2b6d
AB
39602019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3961
3962 * annotate.c (annotate_source_line): Change return type to void,
3963 update implementation to match.
3964 * annotate.h (annotate_source_line): Change return type to void,
3965 update header comment.
3966 * stack.c (print_frame_info): Don't change what frame information
3967 is printed based on whether annotations are on or not.
3968
0d3abd8c
AB
39692019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3970
3971 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3972 (annotate_source): Make static.
3973 (annotate_source_line): Moved from source.c and renamed from
3974 identify_source_line. Update the return type.
3975 * annotate.h (annotate_source): Delete declaration.
3976 (annotate_source_line): Declaration moved from source.h, and
3977 renamed from identify_source_line. Return type updated.
3978 * source.c (identify_source_line): Moved to annotate.c and renamed
3979 to annotate_source_line.
3980 (info_line_command): Remove check of annotation_level.
3981 * source.h (identify_source_line): Move declaration to annotate.h
3982 and rename to annotate_source_line.
3983 * stack.c: Add 'annotate.h' include.
3984 (print_frame_info): Remove check of annotation_level before
3985 calling annotate_source_line.
3986
00df30ae
AB
39872019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 * source-cache.c (source_cache::get_plain_source_lines): Use
3990 open_source_file_with_line_charpos instead of just
3991 open_source_file, remove call to find_source_lines.
3992 (source_cache::get_source_lines): Likewise.
3993 * source.c (find_source_lines): Make static.
3994 (get_filename_and_charpos): Renamed into...
3995 (open_source_file_with_line_charpos): ..this along with changes to
3996 return a scoped_fd, and some other minor clean ups.
3997 (identify_source_line): Use open_source_file_with_line_charpos.
3998 (search_command_helper): Use open_source_file_with_line_charpos
3999 instead of just open_source_file, remove call to
4000 find_source_lines.
4001 * source.h (open_source_file_with_line_charpos): Declare new
4002 function.
4003 (find_source_lines): Delete declaration.
4004
afda45a2
AB
40052019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4006
4007 * source.c (get_filename_and_charpos): Remove fullname
4008 parameter.
4009 (identify_source_line): Update call to get_filename_and_charpos.
4010
0735b091
TT
40112019-06-14 Tom Tromey <tromey@adacore.com>
4012
4013 PR gdb/24502:
4014 * ui-style.h (skip_ansi_escape): Update comment.
4015 * ui-file.h (class no_terminal_escape_file): New class.
4016 * ui-file.c (no_terminal_escape_file::write)
4017 (no_terminal_escape_file::puts): New methods.
4018 * cli/cli-logging.c (handle_redirections): Use
4019 no_terminal_escape_file.
4020
52ce35e2
TT
40212019-06-14 Tom Tromey <tromey@adacore.com>
4022
4023 * NEWS: Move convenience variable news above Python news.
4024
73cc7272
TT
40252019-06-14 Tom Tromey <tom@tromey.com>
4026
4027 * gnulib: Move directory to top-level.
4028 * configure.ac: Don't configure gnulib.
4029 * configure: Rebuild.
4030 * common/common-defs.h: Use new path to gnulib.
4031 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4032 (GNULIB_H): Remove.
4033 (INCGNU): Look in new gnulib location.
4034 (HFILES_NO_SRCDIR): Remove gnulib files.
4035 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4036 (generated_files): Remove GNULIB_H.
4037 ($(LIBGNU), all-lib): Remove targets.
4038 (distclean): Don't mention GNULIB_BUILDDIR.
4039 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4040
f5686554
TT
40412019-06-14 Tom Tromey <tromey@adacore.com>
4042
4043 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4044 Warn if symbol file does not provide any symbols.
4045
a0c1ffed
TT
40462019-06-14 Tom Tromey <tromey@adacore.com>
4047
4048 * source.c (find_and_open_source): Respect basenames_may_differ.
4049
7c39e397
AB
40502019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4051
4052 * annotate.c (annotate_breakpoints_invalid): Make use of
4053 scoped_restore_terminal_state.
4054 (annotate_frames_invalid): Likewise.
4055
f411722c
TT
40562019-06-14 Tom Tromey <tromey@adacore.com>
4057
4058 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4059 allow assignment to an internalvar.
4060
4268ec18
TT
40612019-06-14 Tom Tromey <tromey@adacore.com>
4062
4063 * ada-lex.l: Allow "_" in attribute names.
4064
abdb711e
TT
40652019-06-14 Tom Tromey <tromey@adacore.com>
4066
4067 PR gdb/24653:
4068 * regcache.c (registers_changed): Don't call alloca.
4069 * top.c (execute_command): Don't call alloca.
4070
4c048731
PA
40712019-06-13 Pedro Alves <palves@redhat.com>
4072
4073 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4074 'expression'. When parsing an expression, error out if there's
4075 junk after "unlimited".
4076 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4077 (do_set_command): Adjust calls to is_unlimited_literal.
4078
66eb1ed3
PA
40792019-06-13 Pedro Alves <palves@redhat.com>
4080
4081 * compile/compile.c (make_compile_options_def_group): Add braces
4082 around array_view initializer.
4083 * thread.c (make_thread_apply_all_options_def_group)
4084 (make_thread_apply_all_options_def_group): Likewise.
4085
3345721a
PA
40862019-06-13 Pedro Alves <palves@redhat.com>
4087
4088 * NEWS (New commands): Mention "maint test-options
4089 require-delimiter", "maint test-options unknown-is-error", "maint
4090 test-options unknown-is-operand" and "maint show
4091 test-options-completion-result".
4092 (New command options, command completion): New section.
4093 (Completion improvements): New section.
4094 Mention that you can abbreviate "unlimited".
4095
6206060d
PA
40962019-06-13 Pedro Alves <palves@redhat.com>
4097
4098 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4099 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4100 * unittests/cli-utils-selftests.c (test_parse_flags)
4101 (test_parse_flags_qcs): Delete.
4102 (test_cli_utils): Don't call deleted functions.
4103
6665660a
PA
41042019-06-13 Pedro Alves <palves@redhat.com>
4105
4106 * thread.c: Include "cli/cli-option.h".
4107 (tp_array_compar_ascending): Global.
4108 (tp_array_compar): Delete function.
4109 (tp_array_compar_ascending, tp_array_compar_descending): New
4110 functions.
4111 (ascending_option_def, qcs_flag_option_def)
4112 (thr_qcs_flags_option_defs)
4113 (make_thread_apply_all_options_def_group)
4114 (make_thread_apply_options_def_group): New.
4115 (thread_apply_all_command): Use gdb::option::process_options.
4116 (thread_apply_command_completer)
4117 (thread_apply_all_command_completer): New.
4118 (thread_apply_command): Use gdb::option::process_options.
4119 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4120 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4121 to generate help text of "thread apply". Adjust "taas"'s help.
4122 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4123 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4124
f7e13587
PA
41252019-06-13 Pedro Alves <palves@redhat.com>
4126
4127 * thread.c (thread_apply_command): Check for invalid TID with
4128 isdigit instead of !isalpha.
4129
5d707134
PA
41302019-06-13 Pedro Alves <palves@redhat.com>
4131
4132 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4133 (validate_flags_qcs): New.
4134 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4135 (validate_flags_qcs): Declare.
4136 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4137 (make_frame_apply_options_def_group): New.
4138 (frame_apply_command_count): Process options with
4139 gdb::option::process_options.
4140 (frame_apply_completer): New.
4141 (frame_apply_level_completer, frame_apply_all_completer)
4142 (frame_apply_completer): New.
4143 (_initialize_stack): Update help of "frame apply", "frame apply
4144 level", "frame apply all" and "faas" to mention supported options
4145 and install command completers.
4146 * stack.h (frame_apply_all_completer): Declare.
4147 * thread.c: Include "stack.h".
4148 (tfaas_command): Add "--".
4149 (_initialize_thread): Update help "tfaas" to mention supported
4150 options and install command completer.
4151
272d4594
PA
41522019-06-13 Pedro Alves <palves@redhat.com>
4153
4154 * completer.c (complete_nested_command_line): New.
4155 (gdb_completion_word_break_characters_throw): Add assertion.
4156 * completer.h (complete_nested_command_line): Declare.
4157
90a1ef87
PA
41582019-06-13 Pedro Alves <palves@redhat.com>
4159
4160 * stack.c (parse_backtrace_qualifiers): New.
4161 (backtrace_command): Use it.
4162 (backtrace_command_completer): Complete on qualifiers.
4163
d4c16835
PA
41642019-06-13 Pedro Alves <palves@redhat.com>
4165
4166 * frame.c: Include "cli/cli-option.h.
4167 (user_set_backtrace_options): New.
4168 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4169 Delete.
4170 (get_prev_frame): Adjust.
4171 (boolean_option_def, uinteger_option_def)
4172 (set_backtrace_option_defs): New.
4173 (_initialize_frame): Adjust and use
4174 gdb::option::add_setshow_cmds_for_options to install "set
4175 backtrace past-main" and "set backtrace past-entry".
4176 * frame.h: Include "cli/cli-option.h".
4177 (struct frame_print_options): Forward declare.
4178 (print_frame_arguments_all, print_frame_arguments_scalars)
4179 (print_frame_arguments_none): Declare.
4180 (print_entry_values): Delete declaration.
4181 (struct frame_print_options, user_frame_print_options): New.
4182 (struct set_backtrace_options): New.
4183 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4184 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4185 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4186 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4187 (list_args_or_locals): Add frame_print_options parameter.
4188 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4189 * python/py-framefilter.c (enumerate_args): Pass down
4190 USER_FRAME_PRINT_OPTIONS.
4191 * stack.c: Include "cli/cli-option.h".
4192 (print_frame_arguments_all, print_frame_arguments_scalars)
4193 (print_frame_arguments_none): Declare.
4194 (print_raw_frame_arguments, print_entry_values): Delete.
4195 (user_frame_print_options): New.
4196 (boolean_option_def, enum_option_def, frame_print_option_defs):
4197 New.
4198 (struct backtrace_cmd_options): New.
4199 (bt_flag_option_def): New.
4200 (backtrace_command_option_defs): New.
4201 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4202 (print_frame_arg, read_frame_arg, print_frame_args)
4203 (print_frame_info, print_frame): Add frame_print_options parameter
4204 and use it.
4205 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4206 (backtrace_command_1): Add frame_print_options and
4207 backtrace_cmd_options parameters and use them.
4208 (make_backtrace_options_def_group): New.
4209 (backtrace_command): Process command options with
4210 gdb::option::process_options.
4211 (backtrace_command_completer): New.
4212 (_initialize_stack): Extend "backtrace"'s help to mention
4213 supported options. Install completer for "backtrace".
4214 Install some settings commands with add_setshow_cmds_for_options.
4215
2daf894e
PA
42162019-06-13 Pedro Alves <palves@redhat.com>
4217
4218 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4219 and that "set/show print raw frame-arguments" are now deprecated.
4220
4221 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4222 command.
4223 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4224 * stack.c (_initialize_stack): Install "set/show print
4225 raw-frame-arguments", and deprecate "set/show print raw
4226 frame-arguments".
4227 * valprint.c (_initialize_valprint): Deprecate "set/show print
4228 raw".
4229
e6ed716c
PA
42302019-06-13 Pedro Alves <palves@redhat.com>
4231
4232 * compile/compile.c (struct compile_options): New.
4233 (compile_flag_option_def, compile_command_option_defs)
4234 (make_compile_options_def_group): New.
4235 (compile_file_command): Handle options with
4236 gdb::option::process_options.
4237 (compile_file_command_completer): New function.
4238 (compile_code_command): Handle options with
4239 gdb::option::process_options.
4240 (compile_code_command_completer): New function.
4241 (_initialize_compiler): Install completers for "compile code" and
4242 "compile file". Mention available options in "compile code" and
4243 "compile code"'s help.
4244 * completer.c (advance_to_completion_word): New, factored out from
4245 ...
4246 (advance_to_expression_complete_word_point): ... this.
4247 (advance_to_filename_complete_word_point): New.
4248 * completer.h (advance_to_filename_complete_word_point): New
4249 declaration.
4250
7d8062de
PA
42512019-06-13 Pedro Alves <palves@redhat.com>
4252
4253 * compile/compile.c: Include "cli/cli-option.h".
4254 (compile_print_value): Scope data pointer is now a
4255 value_print_options pointer; adjust.
4256 (compile_print_command): Process options. Scope data pointer is
4257 now a value_print_options pointer; adjust.
4258 (_initialize_compile): Update "compile print"'s help to include
4259 supported options. Install a completer for "compile print".
4260 * cp-valprint.c (show_vtblprint, show_objectprint)
4261 (show_static_field_print): Delete.
4262 (_initialize_cp_valprint): Don't install "set print
4263 static-members", "set print vtbl", "set print object" here.
4264 * printcmd.c: Include "cli/cli-option.h" and
4265 "common/gdb_optional.h".
4266 (print_command_parse_format): Rework to fill in a
4267 value_print_options instead of a format_data.
4268 (print_value): Change parameter type from format_data pointer to
4269 value_print_options reference. Adjust.
4270 (print_command_1): Process options. Adjust to pass down a
4271 value_print_options.
4272 (print_command_completer): New.
4273 (_initialize_printcmd): Install print_command_completer as
4274 handle_brkchars completer for the "print" command. Update
4275 "print"'s help to include supported options.
4276 * valprint.c: Include "cli/cli-option.h".
4277 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4278 here from cp-valprint.c.
4279 (boolean_option_def, uinteger_option_def)
4280 (value_print_option_defs, make_value_print_options_def_group):
4281 New. Use gdb::option::add_setshow_cmds_for_options to install
4282 "set print elements", "set print null-stop", "set print repeats",
4283 "set print pretty", "set print union", "set print array", "set
4284 print address", "set print symbol", "set print array-indexes".
4285 * valprint.h: Include <string> and "cli/cli-option.h".
4286 (make_value_print_options_def_group): Declare.
4287 (print_value): Change parameter type from format_data pointer to
4288 value_print_options reference.
4289 (print_command_completer): Declare.
4290
9d0faba9
PA
42912019-06-13 Pedro Alves <palves@redhat.com>
4292
4293 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4294 (COMMON_SFILES): Add maint-test-settings.c.
4295 * cli/cli-decode.c (boolean_enums): New global, factored out from
4296 ...
4297 (add_setshow_boolean_cmd): ... here.
4298 * cli/cli-decode.h (boolean_enums): Declare.
4299 * cli/cli-option.c: New file.
4300 * cli/cli-option.h: New file.
4301 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4302 factored out from ...
4303 (parse_cli_boolean_value(const char *)): ... this.
4304 (is_unlimited_literal): Change parameter type to pointer to
4305 pointer. Adjust and advance ARG pointer.
4306 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4307 (parse_cli_var_enum): New, factored out from ...
4308 (do_set_command): ... this. Adjust.
4309 * cli/cli-setshow.h (parse_cli_boolean_value)
4310 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4311 (parse_cli_var_enum): Declare.
4312 * cli/cli-utils.c: Include "cli/cli-option.h".
4313 (get_ulongest): New.
4314 * cli/cli-utils.h (get_ulongest): Declare.
4315 (check_for_argument): New overloads.
4316 * maint-test-options.c: New file.
4317
2c722807
PA
43182019-06-13 Pedro Alves <palves@redhat.com>
4319
4320 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4321 parse a range if "-" is at the end of the string.
4322
dee7b4c8
PA
43232019-06-13 Pedro Alves <palves@redhat.com>
4324
4325 * cli/cli-setshow.c (parse_auto_binary_operation)
4326 (parse_cli_boolean_value): Don't allow "o".
4327
dca0f6c0
PA
43282019-06-13 Pedro Alves <palves@redhat.com>
4329
4330 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4331 * NEWS: Mention maint test-settings KIND.
4332 * maint-test-settings.c: New file.
4333
597bf39d
PA
43342019-06-13 Pedro Alves <palves@redhat.com>
4335
4336 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4337 completer.
4338 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4339 "set" completers.
4340
48c410fb
PA
43412019-06-13 Pedro Alves <palves@redhat.com>
4342
4343 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4344 after item.
4345
93bcb043
PA
43462019-06-13 Pedro Alves <palves@redhat.com>
4347
4348 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4349
cbba3ecd
PA
43502019-06-13 Pedro Alves <palves@redhat.com>
4351
4352 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4353 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4354 call.
4355 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4356 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4357 calls.
4358 (check_for_argument): Skip spaces after argument.
4359
b9a3f842
PA
43602019-06-13 Pedro Alves <palves@redhat.com>
4361
4362 * thread.c (thread_apply_command): Adjust TID parsing.
4363 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4364 detected before end of string.
4365 (tid_is_in_list): Error out if LIST is invalid.
4366
3844e605
PA
43672019-06-13 Pedro Alves <palves@redhat.com>
4368
4369 * completer.c (complete_line_internal_1): Rewind completion word
4370 point.
4371 (completion_tracker::advance_custom_word_point_by): Change
4372 parameter type to int.
4373 * completer.h (completion_tracker::advance_custom_word_point_by):
4374 Likewise.
4375
00b56dbe
PA
43762019-06-13 Pedro Alves <palves@redhat.com>
4377
4378 * completer.c (advance_to_completion_word): Handle delimiters.
4379
d106773e
PA
43802019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4381
4382 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4383
08f10e02
TT
43842019-06-11 Tom Tromey <tom@tromey.com>
4385
4386 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4387 (xmalloc_failed): Move to alloc.c.
4388 * alloc.c: New file.
4389 * Makefile.in (COMMON_SFILES): Add alloc.c.
4390
1c7fe951
TT
43912019-06-11 Tom Tromey <tom@tromey.com>
4392
4393 * nat/linux-waitpid.c: Don't include server.h.
4394 (linux_debug): Remove.
4395 (my_waitpid): Update.
4396
89549d7f
TT
43972019-06-11 Tom Tromey <tromey@adacore.com>
4398
4399 * infcall.c (_initialize_infcall): Remove trailing newline from
4400 help.
4401 * user-regs.c (_initialize_user_regs): Remove trailing newline
4402 from help.
4403 * typeprint.c (_initialize_typeprint): Remove trailing newline
4404 from help.
4405 * reverse.c (_initialize_reverse): Remove trailing newlines from
4406 help.
4407 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4408 from help.
4409 * language.c (add_set_language_command): Remove trailing newline
4410 from help.
4411 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4412 help.
4413 * disasm.c (_initialize_disasm): Remove trailing newline from
4414 help.
4415 * top.c (init_main): Remove trailing newline from help.
4416 * interps.c (_initialize_interpreter): Remove trailing newline
4417 from help.
4418 * btrace.c (_initialize_btrace): Remove trailing newlines from
4419 help.
4420 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4421 from help.
4422 * python/python.c (_initialize_python): Remove trailing newline
4423 from help.
4424 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4425 help.
4426 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4427 from help. Reformat some text.
4428 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4429 from help.
4430 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4431 newline from help.
4432
86108c13
TT
44332019-06-11 Tom Tromey <tromey@adacore.com>
4434
4435 * darwin-nat.c (darwin_decode_exception_message)
4436 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4437
a7067863
AB
44382019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4439
4440 * valops.c (value_slice): Check for not allocated or not
4441 associated values.
4442
9ab08412
TV
44432019-06-10 Tom de Vries <tdevries@suse.de>
4444
4445 PR gdb/24618
4446 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4447 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4448 invalid.
4449
f19e22e9
TV
44502019-06-10 Tom de Vries <tdevries@suse.de>
4451
4452 PR gdb/24611
4453 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4454 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4455
e99f9db0
TV
44562019-06-10 Tom de Vries <tdevries@suse.de>
4457
4458 PR symtab/24545
4459 * symtab.c (struct demangled_name_entry): Add language field.
4460 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4461 static minimal symbol". Set and use language field.
4462
9bf7038b
TT
44632019-06-10 Tom Tromey <tromey@adacore.com>
4464
4465 * ada-lang.c (_initialize_ada_language): Update help text.
4466
422186a9
TT
44672019-06-10 Tom Tromey <tromey@adacore.com>
4468
4469 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4470 with a newline.
4471 * guile/guile.c (handle_boot_error): Don't end warning with a
4472 newline.
4473 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4474 warning with a newline.
4475 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4476 newline.
4477 (s12z_frame_cache): Likewise.
4478 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4479 a newline.
4480 * solib-svr4.c (disable_probes_interface): Don't end warning with
4481 a newline.
4482 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4483 newline.
4484 * python/python.c (do_finish_initialization): Don't end warning
4485 with a newline.
4486
25ce02ee
TT
44872019-06-10 Tom Tromey <tom@tromey.com>
4488
4489 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4490 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4491 gdbpy_enter.
4492
caa429d8
TT
44932019-06-10 Tom Tromey <tromey@adacore.com>
4494
4495 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4496 data.
4497 (elf_new_init): Don't call stabsread_new_init.
4498 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4499 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4500 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4501
81873cc8
TV
45022019-06-10 Tom de Vries <tdevries@suse.de>
4503
4504 PR symtab/16264
4505 PR symtab/24517
4506 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4507
4fa0265e
РИ
45082019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4509
4510 * source.c (find_and_open_source): Also rewrite relative file
4511 names.
4512
1a3da2cd
AB
45132019-04-26 Amos Bird <amosbird@gmail.com>
4514
4515 * annotate.c (annotate_thread_exited): Add "thread-exited"
4516 annotation.
4517
3847a7bf
TT
45182019-06-06 Tom Tromey <tromey@adacore.com>
4519
4520 * maint.h (class scoped_command_stats): Use
4521 DISABLE_COPY_AND_ASSIGN.
4522 <print_time>: New method.
4523 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4524 print_time.
4525 (scoped_command_stats::print_time): New method.
4526
312617a3
AB
45272019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4528
4529 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4530 instructions of lengths 6 or 8 bytes.
4531
b02f78f9
PA
45322019-06-04 Pedro Alves <palves@redhat.com>
4533
4534 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4535
4536 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4537 * breakpoint.c (condition_completer): Likewise.
4538 * cli/cli-dump.c (scan_expression): Likewise.
4539 * common/filestuff.c (mkdir_recursive): Likewise.
4540 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4541 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4542 (gdb_abspath): Likewise.
4543 * compile/compile-cplus-types.c
4544 (compile_cplus_instance::decl_name): Likewise.
4545 * completer.c (complete_explicit_location):
4546 (signal_completer, reg_or_group_completer_1): Likewise.
4547 * cp-support.c (cp_remove_params_if_any): Likewise.
4548 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4549 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4550 * infcmd.c (strip_bg_char): Likewise.
4551 * linespec.c (copy_token_string): Likewise.
4552 * mi/mi-main.c (output_cores): Likewise.
4553 * psymtab.c (psymtab_search_name):
4554 * symfile.c (test_set_ext_lang_command): Likewise.
4555 * target.c (target_fileio_read_stralloc): Likewise.
4556 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4557 * value.c (complete_internalvar): Likewise.
4558
e1f2e1a2
CB
45592019-06-04 Christian Biesinger <cbiesinger@google.com>
4560
4561 Add objfile property to gdb.Type.
d3238f7d
PA
4562 * NEWS: Mention Python API addition.
4563 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4564
e664d728
PW
45652019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4566
4567 * NEWS: Mention the new set|show style [title|highlight].
4568 Mention changes to "show style", "help" and "apropos".
4569
66d8c862
PW
45702019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4571
4572 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4573 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4574 instead of print_help_for_command.
4575 (print_doc_of_command): New function.
4576 (help_list): Add 'apropos -v word' suggestion.
4577 (print_help_for_command): Style the command name using title style.
4578 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4579 (_initialize_cli_cmds): Describe -v in apropos_command help.
4580
9303eb2f
PW
45812019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4582
4583 * cli/cli-style.h (cli_style_option): Add name in constructor,
4584 add m_name class member, add constructor with intensity,
4585 add name class function.
4586 (cli_style_option::add_setshow_commands): Remove name argument.
4587 (highlight_style, title_style): New styles.
4588 * cli/cli-style.c (do_show): New function that shows a style
4589 characteristic styling the style name with itself.
4590 (set_style_name): New function.
4591 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4592 Update all callers according to the changes in cli/cli-style.h.
4593 * utils.h (fputs_highlighted): New function.
4594 * utils.c (fputs_highlighted): Likewise.
4595
e2c52041
PW
45962019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4597
4598 * NEWS: Mention new pipe command and new convenience variables.
4599
947d3946
PW
46002019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4601
4602 * cli/cli-cmds.c (pipe_command): New function.
4603 (_initialize_cli_cmds): Call add_com for pipe_command.
4604 Define | as an alias for pipe.
4605 (exit_status_set_internal_vars): New function.
4606 (shell_escape): Call exit_status_set_internal_vars.
4607 cli/cli-decode.c (find_command_name_length): Recognize | as
4608 a single character command.
4609
b8fd0918
PW
46102019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4611
4612 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4613 top.c (execute_command_to_ui_file): New function, mostly a copy
4614 of execute_command_to_string.
4615 (execute_command_to_string): Implement by calling
4616 execute_command_to_ui_file.
4617
68bb5386
PW
46182019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4619
4620 * top.h (saved_command_line): Remove declaration.
4621 * top.c (previous_saved_command_line, previous_repeat_arguments):
4622 New variables.
4623 (saved_command_line): Make static, define together with other
4624 'repeat variables'.
4625 (dont_repeat): Clear repeat_arguments.
4626 (repeat_previous, get_saved_command_line, save_command_line):
4627 New functions.
4628 (gdb_init): Initialize saved_command_line
4629 and previous_saved_command_line.
4630 * main.c (captured_main_1): Remove saved_command_line initialization.
4631 * event-top.c (handle_line_of_input): Update to use
4632 the new 'repeat' related functions instead of direct access to
4633 saved_command_line.
4634 * command.h (repeat_previous, get_saved_command_line,
4635 save_command_line): New declarations.
4636 (dont_repeat): Add comment.
4637
bfcdb852
TT
46382019-05-30 Tom Tromey <tromey@adacore.com>
4639
4640 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4641 Fix comment.
4642 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4643
0ef209f2
JV
46442019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4645
4646 PR cli/24587
4647 * completer.c (complete): Initialize variable word.
4648
955b06fa
SDJ
46492019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4650
4651 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4652 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4653 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4654 'body' is NULL to the outter 'if', protecting the '!is_define'
4655 situation as well.
4656
fa9c3fa0
TT
46572019-05-29 Tom Tromey <tromey@adacore.com>
4658
4659 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4660 (dwarf_unknown): New function.
4661 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4662 (dwarf_type_encoding_name): Use dwarf_unknown.
4663
4330d61d
TT
46642019-05-29 Tom Tromey <tromey@adacore.com>
4665
4666 PR c++/20020:
4667 * cp-valprint.c (cp_print_value_fields): Call
4668 cp_print_static_field inside "try".
4669
33a6bc35
TT
46702019-05-29 Tom Tromey <tromey@adacore.com>
4671
4672 * inflow.c (struct terminal_info): Add default operator=.
4673 * configure: Rebuild.
4674 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4675 -Wdeprecated-copy-dtor, -Wredundant-move.
4676
000439d5
TT
46772019-05-29 Tom Tromey <tromey@adacore.com>
4678
4679 * NEWS: Add entry.
4680 * infcmd.c (print_return_value_1): Handle finish_print
4681 option.
4682 (show_print_finish): New function.
4683 (_initialize_infcmd): Add "set/show print finish" commands.
4684 * valprint.c (user_print_options): Initialize new member.
4685 * valprint.h (struct value_print_options) <finish_print>: New
4686 member.
4687
c0e70c62
TT
46882019-05-28 Tom Tromey <tromey@adacore.com>
4689
4690 * ada-lang.c (ada_remove_Xbn_suffix)
4691 (find_old_style_renaming_symbol)
4692 (parse_old_style_renaming): Remove.
4693 (ada_find_renaming_symbol): Don't call
4694 find_old_style_renaming_symbol.
4695 (ada_is_renaming_symbol): Rename from
4696 ada_find_renaming_symbol. Remove "block" parameter. Return
4697 bool. Now static.
4698 (ada_read_var_value): Update and simplify.
4699 * ada-exp.y (write_var_or_type): Remove old code.
4700
766f8836
AH
47012019-05-28 Alan Hayward <alan.hayward@arm.com>
4702
4703 * event-top.c: Remove include comment.
4704 * inflow.c (class scoped_ignore_sigttou): Move from here...
4705 * inflow.h (class scoped_ignore_sigttou): ...to here.
4706 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4707 * top.c: Remove include comment.
4708
eb41253a
TT
47092019-05-27 Tom Tromey <tom@tromey.com>
4710
4711 * NEWS: Fix typo.
4712
4ca51187
TT
47132019-05-22 Tom Tromey <tromey@adacore.com>
4714
4715 * target.c (target_follow_exec): Constify parameter.
4716 * target-delegates.c: Rebuild.
4717 * remote.c (remote_target::follow_exec): Constify parameter.
4718 * infrun.c (follow_exec): Constify parameter.
4719 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4720 (target_follow_exec): Likewise.
4721
8fca4da0
AH
47222019-05-22 Alan Hayward <alan.hayward@arm.com>
4723
4724 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4725 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4726
b7060614
AH
47272019-05-22 Alan Hayward <alan.hayward@arm.com>
4728
4729 * NEWS: Add debugredirect and testsuite sections.
4730
0a5954bd
SC
47312019-05-22 Simon Cook <simon.cook@embecosm.com>
4732
4733 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4734 target descriptions using exclusively floating point register name
4735 aliases.
4736
dc42e902
AB
47372019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4738
4739 PR gdb/18644:
4740 * f-lang.c (build_fortran_types): Handle the case where
4741 gdbarch_floatformat_for_type returns a nullptr.
4742
fb7806c7
TV
47432019-05-21 Tom de Vries <tdevries@suse.de>
4744
4745 PR cli/24587
4746 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4747
34d11c68
AB
47482019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4749
4750 PR gdb/18644:
4751 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4752 16-byte floats.
4753 * i386-tdep.c (i386_floatformat_for_type): Use
4754 floatformats_ia64_quad for the 16-byte floating point component
4755 within a fortran 32-byte complex number.
4756
122cf0f2
AB
47572019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4758
4759 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4760 delete default constructor.
4761 (find_partial_die): Update to return const struct.
4762 (partial_die_parent_scope): Move variable declaration into scope
4763 of its use and change its type to auto.
4764 (guess_partial_die_structure_name): Likewise.
4765 (partial_die_info::fixup): Likewise.
4766
33d0e35a
TT
47672019-05-17 Tom Tromey <tromey@adacore.com>
4768
4769 * source.c (find_and_open_source): Remove cast.
4770
a45575b0
TT
47712019-05-17 Tom Tromey <tromey@adacore.com>
4772
4773 * annotate.c (annotate_source): Make "filename" const.
4774 * annotate.h (annotate_source): Use const.
4775
81f47ac2
AH
47762019-05-17 Alan Hayward <alan.hayward@arm.com>
4777
4778 * disasm.c (set_disassembler_options): Send errors to stderr.
4779
ca1285d1
AH
47802019-05-17 Alan Hayward <alan.hayward@arm.com>
4781
4782 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4783 (cli_interp_base::set_logging): Check debug_redirect.
4784 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4785 * cli/cli-logging.c (debug_redirect): Add static variable.
4786 (pop_output_files): Add default param.
4787 (handle_redirections): Print debug setting.
4788 (show_logging_command): Likewise.
4789 (_initialize_cli_logging): Add debugredirect command.
4790 * interps.c (current_interp_set_logging): Add debug_redirect
4791 parameter.
4792 * interps.h (set_logging): Add debug_redirect parameter.
4793 (current_interp_set_logging): Likewise.
4794 * mi/mi-common.h: Likewise.
4795 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4796
47972019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4798 Tom Tromey <tromey@adacore.com>
4799
4800 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4801 directly.
4802 * cli/cli-interp.h (make_logging_output): Remove declaration.
4803 * cli/cli-logging.c (make_logging_output): Remove function.
4804 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4805 directly.
4806 * ui-file.c (tee_file::tee_file): Remove bools.
4807 (tee_file::~tee_file): Remove deletes.
4808 * ui-file.h (tee_file): Remove bools.
4809
26648588
JV
48102019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4811
4812 * mi/mi-cmds.h (mi_cmd_complete): New function.
4813 * mi/mi-main.c (mi_cmd_complete): Likewise.
4814 * mi/mi-cmds.c: Define new MI command -complete.
4815 * NEWS: Mention new -complete command.
4816
6e035501
JV
48172019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4818
4819 * completer.h (complete): New function.
4820 * completer.c (complete): Likewise.
4821 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4822 function defined in completer.h.
4823
7d0e2ece
JV
48242019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4825
e79be6e5 4826 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4827
fb816e8b
TV
48282019-05-17 Tom de Vries <tdevries@suse.de>
4829
4830 PR gdb/24094
4831 * dwarf2read.c (struct cu_partial_die_info): New struct.
4832 (find_partial_die): Return cu_partial_die_info.
4833 (partial_die_parent_scope, guess_partial_die_structure_name)
4834 (partial_die_info::fixup): Handle new return type of find_partial_die.
4835
677052f2
SDJ
48362019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4837
4838 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4839 "std::string", simplifying the algorithm.
4840
f3da9116
SDJ
48412019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4842
4843 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4844 (stap_static_probe_ops::get_probes): Likewise.
4845
f1bb75ab
SDJ
48462019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4847
4848 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4849 '-')" and "else if".
4850 (stap_parse_single_operand): Join checks for
4851 "gdbarch_stap_parse_special_token_p" and
4852 "gdbarch_stap_parse_special_token" in the same "if" statement.
4853 Invert check when verifying for operation on register
4854 displacement.
4855
3ca58cde
SDJ
48562019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4857
4858 * stap-probe.c (stap_get_opcode): Update comment.
4859 (stap_get_expected_argument_type): Likewise.
4860 (handle_stap_probe): Likewise.
4861
af2d9bee
SDJ
48622019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4863
4864 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4865 return type to 'bool'. Adjust comment. Use 'bool' when
4866 appropriate.
4867 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4868 * stap-probe.c (stap_parse_argument_1): Likewise.
4869 (stap_is_operator): Likewise.
4870 (stap_is_generic_prefix): Likewise.
4871 (stap_is_register_prefix): Likewise.
4872 (stap_is_register_indirection_prefix): Likewise.
4873 (stap_is_integer_prefix): Likewise.
4874 (stap_generic_check_suffix): Likewise.
4875 (stap_check_integer_suffix): Likewise.
4876 (stap_check_register_suffix): Likewise.
4877 (stap_check_register_indirection_suffix): Likewise.
4878 (stap_parse_register_operand): Likewise.
4879 (stap_parse_single_operand): Likewise.
4880 (stap_parse_argument_1): Likewise.
4881 (stap_probe::get_argument_count): Likewise.
4882 (stap_is_operator): Likewise.
4883
61c9c421
TT
48842019-05-16 Tom Tromey <tromey@adacore.com>
4885
4886 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4887 keyword to foreach.
4888
9ddc1af1
SM
48892019-05-15 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * linux-thread-db.c (try_thread_db_load_1): Change return type
4892 to bool.
4893 (try_thread_db_load): Likewise.
4894 (try_thread_db_load_from_pdir_1): Likewise.
4895 (try_thread_db_load_from_pdir): Likewise.
4896 (try_thread_db_load_from_sdir): Likewise.
4897 (try_thread_db_load_from_dir): Likewise.
4898 (thread_db_load_search): Likewise.
4899 (has_libpthread): Likewise.
4900 (thread_db_load): Likewise.
4901
7bede828
SDJ
49022019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4903
4904 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4905 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4906 NULL, and complain/return if that's the case.
4907
c5358db4
JD
49082019-05-15 John Darrington <john@darrington.wattle.id.au>
4909
4910 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4911 (advance, posn, abstract_read_memory): New functions.
4912 [struct mem_read_abstraction]: New struct.
4913 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4914
c408a94f
TT
49152019-05-14 Tom Tromey <tromey@adacore.com>
4916
4917 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4918 value is not lval_memory.
4919
e7bd7fba
TT
49202019-05-14 Tom Tromey <tromey@adacore.com>
4921
4922 * solib.c (info_sharedlibrary_command): Style the file name.
4923
a6d0f249
AH
49242019-05-14 Alan Hayward <alan.hayward@arm.com>
4925
4926 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4927 (aarch64_vnv_type): Likewise.
4928 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4929 * common/tdesc.c: Likewise.
4930 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4931 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4932 * features/aarch64-fpu.xml: Add ieee half view.
4933 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4934 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4935 * gdbtypes.h (struct builtin_type): Likewise.
4936 (struct objfile_type): Likewise.
4937
66b8bb74
SM
49382019-05-12 Paul Naert <paul.naert@polymtl.ca>
4939
4940 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4941 typo.
4942 * location.h (string_to_event_location): Likewise.
4943
21c219fd
JB
49442019-05-11 Joel Brobecker <brobecker@adacore.com>
4945
4946 GDB 8.3 released.
4947
13674803
SM
49482019-05-10 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4951 New variable declaration.
4952 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4953 New variable.
4954 (print_one_breakpoint): Use ui_out::test_flags and new global
4955 variable to compute use_fixed_output.
4956 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4957 Remove.
4958 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4959 (mi_multi_location_breakpoint_output_fixed): Remove.
4960 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4961 new variable.
4962 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4963 fix_multi_location_breakpoint_output flag if version >= 3.
4964 * ui-out.h (enum ui_out_flag)
4965 <fix_multi_location_breakpoint_output>: New enumerator.
4966
a9eac7f9
SM
49672019-05-10 Simon Marchi <simon.marchi@efficios.com>
4968
4969 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4970
71bed2db
TT
49712019-05-10 Tom Tromey <tromey@adacore.com>
4972
4973 * ada-lang.c (catch_ada_completer): New function.
4974 (_initialize_ada_language): Use it.
4975
24c54127
TT
49762019-05-10 Tom Tromey <tromey@adacore.com>
4977
4978 * thread.c (print_thread_info): Make "requested_threads" const.
4979 * gdbthread.h (print_thread_info): Make "requested_threads"
4980 const.
4981 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4982 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4983
7a102139
TT
49842019-05-08 Tom Tromey <tom@tromey.com>
4985
4986 * gdbtypes.c (objfile_type_data): Change type.
4987 (objfile_type, _initialize_gdbtypes): Update.
4988
924d79e2
TT
49892019-05-08 Tom Tromey <tom@tromey.com>
4990
4991 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4992 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4993 (_initialize_dwarf2_frame): Update.
4994
4c58e337
TT
49952019-05-08 Tom Tromey <tom@tromey.com>
4996
4997 * objc-lang.c (objc_objfile_data): Change type.
4998 (find_methods): Update.
4999 (_initialize_objc_lang): Remove.
5000
d772d2ab
TT
50012019-05-08 Tom Tromey <tom@tromey.com>
5002
5003 * stabsread.c (rs6000_builtin_type_data): Change type.
5004 (rs6000_builtin_type, _initialize_stabsread): Update.
5005
d11d83f4
TT
50062019-05-08 Tom Tromey <tom@tromey.com>
5007
5008 * mips-tdep.c (mips_pdr_data): Remove.
5009 (_initialize_mips_tdep): Update.
5010
9a73f0ad
TT
50112019-05-08 Tom Tromey <tom@tromey.com>
5012
5013 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5014 (hppa_init_objfile_priv_data, read_unwind_info)
5015 (find_unwind_entry, _initialize_hppa_tdep): Update.
5016
8127a2fa
TT
50172019-05-08 Tom Tromey <tom@tromey.com>
5018
5019 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5020 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5021 on obstack.
5022 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5023
91d3055d
TT
50242019-05-08 Tom Tromey <tom@tromey.com>
5025
5026 * mdebugread.c (basic_type_data): Change type.
5027 (basic_type, _initialize_mdebugread): Update.
5028
31930bd3
TT
50292019-05-08 Tom Tromey <tom@tromey.com>
5030
5031 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5032
bdb3ed9e
TT
50332019-05-08 Tom Tromey <tom@tromey.com>
5034
5035 * nto-tdep.c (nto_inferior_data_reg): Change type.
5036 (nto_inferior_data): Update.
5037 (nto_inferior_data_cleanup, nto_new_inferior_data)
5038 (_initialize_nto_tdep): Remove.
5039 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5040
f37b313d
TT
50412019-05-08 Tom Tromey <tom@tromey.com>
5042
5043 * ada-lang.c (struct ada_inferior_data): Add initializers.
5044 (ada_inferior_data): Change type.
5045 (ada_inferior_data_cleanup): Remove.
5046 (get_ada_inferior_data, ada_inferior_exit)
5047 (struct ada_pspace_data): Add initializers, destructor.
5048 (ada_pspace_data_handle): Change type.
5049 (get_ada_pspace_data): Update.
5050 (ada_pspace_data_cleanup): Remove.
5051
24699405
TT
50522019-05-08 Tom Tromey <tom@tromey.com>
5053
5054 * coffread.c (struct coff_symfile_info): Add initializers.
5055 (coff_objfile_data_key): Move lower. Change type.
5056 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5057 Update.
5058 (coff_free_info): Remove.
5059
d4e05d2f
TT
50602019-05-08 Tom Tromey <tom@tromey.com>
5061
5062 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5063 (fbsd_pspace_data_handle): Move lower. Change type.
5064 (get_fbsd_pspace_data): Update.
5065 (fbsd_pspace_data_cleanup): Remove.
5066 (_initialize_fbsd_tdep): Update.
5067
14ef6690
TT
50682019-05-08 Tom Tromey <tom@tromey.com>
5069
5070 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5071 (get_ada_tasks_pspace_data): Update.
5072 (ada_tasks_pspace_data_cleanup): Remove.
5073 (_initialize_tasks): Update.
5074 (ada_tasks_inferior_data_handle): Change type.
5075 (get_ada_tasks_inferior_data): Update.
5076 (ada_tasks_inferior_data_cleanup): Remove.
5077 (struct ada_tasks_pspace_data): Add initializers.
5078
814cf43a
TT
50792019-05-08 Tom Tromey <tom@tromey.com>
5080
5081 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5082 * symfile-debug.c (debug_sym_get_probes): Change type.
5083 * stap-probe.c (handle_stap_probe):
5084 (stap_static_probe_ops::get_probes): Change type.
5085 * probe.h (class static_probe_ops) <get_probes>: Change type.
5086 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5087 (parse_probes_in_pspace): Update.
5088 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5089 Update.
5090 (any_static_probe_ops::get_probes): Change type.
5091 * elfread.c (elfread_data): New typedef.
5092 (probe_key): Change type.
5093 (elf_get_probes): Likewise. Update.
5094 (probe_key_free): Remove.
5095 (_initialize_elfread): Update.
5096 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5097 Change type.
5098 (dtrace_process_dof_probe, dtrace_process_dof)
5099 (dtrace_static_probe_ops::get_probe): Change type.
5100
02dc647e
TT
51012019-05-08 Tom Tromey <tom@tromey.com>
5102
5103 * xcoffread.c (struct xcoff_symfile_info): Rename from
5104 coff_symfile_info. Add initializers.
5105 (xcoff_objfile_data_key): Move lower. Change type.
5106 (XCOFF_DATA): Rewrite.
5107 (xcoff_free_info): Remove.
5108 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5109 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5110 (xcoff_initial_scan): Update.
5111
09232438
TT
51122019-05-08 Tom Tromey <tom@tromey.com>
5113
5114 * solib-svr4.c (struct svr4_info): Add initializers and
5115 destructor.
5116 <probes_table>: Now an htab_up.
5117 (solib_svr4_pspace_data): Change type.
5118 (free_probes_table): Simplify.
5119 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5120 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5121 (probes_table_remove_objfile_probes, register_solib_event_probe)
5122 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5123 (_initialize_svr4_solib): Update.
5124
7b4a314f
TT
51252019-05-08 Tom Tromey <tom@tromey.com>
5126
5127 * remote.c (remote_pspace_data): Change type.
5128 (remote_pspace_data_cleanup): Remove.
5129 (get_remote_exec_file, set_pspace_remote_exec_file)
5130 (_initialize_remote): Update.
5131
51d3063a
TT
51322019-05-08 Tom Tromey <tom@tromey.com>
5133
5134 * breakpoint.c (breakpoint_objfile_key): Change type.
5135 (get_breakpoint_objfile_data): Update.
5136 (free_breakpoint_objfile_data): Remove.
5137 (_initialize_breakpoint): Update.
5138
89fb8848
TT
51392019-05-08 Tom Tromey <tom@tromey.com>
5140
5141 * linux-tdep.c (struct linux_info): Add initializers.
5142 (linux_inferior_data): Move. Change type.
5143 (invalidate_linux_cache_inf): Update.
5144 (linux_inferior_data_cleanup): Remove.
5145 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5146
e9b89e2d
TT
51472019-05-08 Tom Tromey <tom@tromey.com>
5148
5149 * auxv.c (auxv_inferior_data): Move. Change type.
5150 (auxv_inferior_data_cleanup): Remove.
5151 (invalidate_auxv_cache_inf): Rewrite.
5152 (get_auxv_inferior_data, _initialize_auxv): Update.
5153
8c42777c
TT
51542019-05-08 Tom Tromey <tom@tromey.com>
5155
5156 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5157 (symfile_debug_objfile_data_key): Change type.
5158 (symfile_debug_installed, debug_qf_has_symbols)
5159 (debug_qf_find_last_source_symtab)
5160 (debug_qf_forget_cached_source_info)
5161 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5162 (debug_qf_print_stats, debug_qf_dump)
5163 (debug_qf_expand_symtabs_for_function)
5164 (debug_qf_expand_all_symtabs)
5165 (debug_qf_expand_symtabs_with_fullname)
5166 (debug_qf_map_matching_symbols)
5167 (debug_qf_expand_symtabs_matching)
5168 (debug_qf_find_pc_sect_compunit_symtab)
5169 (debug_qf_map_symbol_filenames)
5170 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5171 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5172 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5173 (debug_sym_read_linetable, debug_sym_relocate): Update.
5174 (symfile_debug_free_objfile): Remove.
5175 (install_symfile_debug_logging, _initialize_symfile_debug):
5176 Update.
5177
5bfd760d
TT
51782019-05-08 Tom Tromey <tom@tromey.com>
5179
5180 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5181 allocate_on_obstack.
5182 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5183 (get_dwarf2_per_objfile): Update.
5184 (set_dwarf2_per_objfile): Remove.
5185 (dwarf2_has_info, dwarf2_get_section_info): Update.
5186 (dwarf2_free_objfile): Remove.
5187 (_initialize_dwarf2_read): Update.
5188
e85e19b4
TT
51892019-05-08 Tom Tromey <tom@tromey.com>
5190
5191 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5192 initializers.
5193 <unsupported_script_warning_printed,
5194 script_not_found_warning_printed>: Now bool.
5195 (auto_load_pspace_data): Change type.
5196 (~auto_load_pspace_info): Rename from
5197 auto_load_pspace_data_cleanup.
5198 (get_auto_load_pspace_data, init_loaded_scripts_info)
5199 (clear_section_scripts, maybe_print_unsupported_script_warning)
5200 (maybe_print_script_not_found_warning, _initialize_auto_load):
5201 Update.
5202
f6aa7436
TT
52032019-05-08 Tom Tromey <tom@tromey.com>
5204
5205 * objfiles.c (objfile_pspace_info): Add destructor and
5206 initializers.
5207 (objfiles_pspace_data): Change type.
5208 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5209 (get_objfile_pspace_data): Update.
5210 (objfiles_bfd_data): Change type.
5211 (get_objfile_bfd_data): Update.
5212 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5213
6ae614f6
TT
52142019-05-08 Tom Tromey <tom@tromey.com>
5215
5216 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5217 Change type.
5218 (get_catch_syscall_inferior_data): Update.
5219 (catch_syscall_inferior_data_cleanup): Remove.
5220 (_initialize_break_catch_syscall): Update.
5221
6509b8eb
TT
52222019-05-08 Tom Tromey <tom@tromey.com>
5223
5224 * inflow.c (struct terminal_info): Add destructor and
5225 initializers.
5226 (inflow_inferior_data): Change type.
5227 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5228 (get_inflow_inferior_data, inflow_inferior_exit)
5229 (swap_terminal_info, _initialize_inflow): Update.
5230
35632941
TT
52312019-05-08 Tom Tromey <tom@tromey.com>
5232
5233 * target-dcache.c (target_dcache_cleanup): Remove.
5234 (target_dcache_aspace_key): Change type.
5235 (target_dcache_init_p, target_dcache_invalidate)
5236 (target_dcache_get, target_dcache_get_or_init)
5237 (_initialize_target_dcache): Update.
5238 * dcache.h (struct dcache_deleter): New.
5239
3017b94d
TT
52402019-05-08 Tom Tromey <tom@tromey.com>
5241
5242 * symtab.c (struct symbol_cache): Add destructor and
5243 initializers.
5244 (symbol_cache_key): Move. Change type.
5245 (make_symbol_cache, free_symbol_cache): Remove.
5246 (get_symbol_cache): Update.
5247 (symbol_cache_cleanup): Remove.
5248 (ALL_PSPACES, symbol_cache_flush)
5249 (maintenance_print_symbol_cache)
5250 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5251 Update.
5252
a32ad8c5
TT
52532019-05-08 Tom Tromey <tom@tromey.com>
5254
5255 * symtab.c (struct main_info): Add destructor and initializers.
5256 (main_progspace_key): Move. Change type.
5257 (get_main_info): Update.
5258 (main_info_cleanup): Remove.
5259 (_initialize_symtab): Update.
5260
5f6e90a0
TT
52612019-05-08 Tom Tromey <tom@tromey.com>
5262
5263 * registry.h (DECLARE_REGISTRY): Define the _key class.
5264
1bd0c6e4
AB
52652019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5266
5267 * NEWS: Merge two 'New commands' sections.
5268
2228ef77
XR
52692019-05-08 Joel Brobecker <brobecker@adacore.com>
5270
5271 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5272 parameter and use Ada language definition instead.
5273 (ada_val_print_ptr): Remove unused language parameter.
5274 (ada_val_print_num): Remove language parameter and use Ada language
5275 definition instead.
5276 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5277 parameter.
5278 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5279 parameter and use Ada language definition instead.
5280 (ada_val_print_1): Update all ada_val_print_xxx calls.
5281 Remove language parameter.
5282 (ada_val_print): Update ada_val_print_1 call.
5283
60fcc1c3
TT
52842019-05-08 Tom Tromey <tromey@adacore.com>
5285
5286 * remote.c (remote_hw_watchpoint_limit)
5287 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5288 Now static.
5289
ed2b7c17
TT
52902019-05-08 Tom Tromey <tromey@adacore.com>
5291
5292 * maint.c (_initialize_maint_cmds): Move initialization code to
5293 remote.c.
5294 (watchdog, show_watchdog): Move to remote.c.
5295 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5296 "watchdog" static.
5297 (_initialize_remote): Move initialization code from maint.c.
5298 * defs.h (watchdog): Don't declare.
5299
b0be6c91
TT
53002019-05-08 Tom Tromey <tromey@adacore.com>
5301
5302 * tui/tui-interp.c: Include main.h.
5303 * interps.c: Include main.h.
5304 * main.h (interpreter_p): Declare.
5305 * defs.h (interpreter_p): Don't declare.
5306
587ee17b
TT
53072019-05-08 Tom Tromey <tromey@adacore.com>
5308
5309 * dwarf2loc.c: Include dwarf2read.h.
5310 * defs.h (read_unsigned_leb128): Don't declare.
5311 * dwarf2read.h (read_unsigned_leb128): Declare.
5312
ca1df239
TT
53132019-05-08 Tom Tromey <tromey@adacore.com>
5314
5315 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5316 method.
5317
99f20f08
TT
53182019-05-08 Tom Tromey <tromey@adacore.com>
5319
5320 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5321 when no wrap column is set.
5322
80e55b13
TT
53232019-05-08 Tom Tromey <tromey@adacore.com>
5324
5325 * c-lang.c (c_get_string): Handle non-C-style arrays.
5326
9d3421af
TT
53272019-05-08 Tom Tromey <tromey@adacore.com>
5328
5329 * typeprint.c (print_offset_data::update): Print the bit offset,
5330 not the number of bits remaining.
5331
844333e2
TT
53322019-05-08 Tom Tromey <tromey@adacore.com>
5333
5334 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5335 padding at end of comment.
5336
988915ee
TT
53372019-05-08 Tom Tromey <tromey@adacore.com>
5338
5339 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5340 Compare main types.
5341
26bfd823
TT
53422019-05-06 Tom Tromey <tom@tromey.com>
5343
5344 * common/scoped_mmap.c: Include common-defs.h.
5345 * common/scoped_mmap.h: Don't include config.h.
5346
89055eaa
TT
53472019-05-04 Tom Tromey <tom@tromey.com>
5348
5349 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5350 (struct aarch64_call_info): Add initializers.
5351 <si>: Now a std::vector.
5352 (pass_on_stack, aarch64_push_dummy_call): Update.
5353
5da01df5
TT
53542019-05-04 Simon Marchi <simon.marchi@efficios.com>
5355 Tom Tromey <tom@tromey.com>
5356
5357 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5358 (ppc_threads): Now a std::vector. Now static.
5359 (hwdebug_find_thread_points_by_tid)
5360 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5361 Update.
5362
fbdf05a1
TT
53632019-05-04 Tom Tromey <tom@tromey.com>
5364
5365 * arc-tdep.c (arc_tdesc_init): Return bool.
5366
06d16ec9
TT
53672019-05-04 Tom Tromey <tom@tromey.com>
5368
5369 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5370 Use gdb_assert_not_reached.
5371
9c056022
TT
53722019-05-04 Tom Tromey <tom@tromey.com>
5373
5374 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5375 "false".
5376
fa9c2a59
TT
53772019-05-04 Tom Tromey <tom@tromey.com>
5378
5379 * arc-tdep.c (arc_tdesc_init): Use bool.
5380
e2eb806a
TT
53812019-05-04 Tom Tromey <tom@tromey.com>
5382
5383 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5384
6fe87677
TT
53852019-05-04 Tom Tromey <tom@tromey.com>
5386
5387 * cli/cli-cmds.c (valid_command_p): Return bool.
5388
7f008c9e
TT
53892019-05-04 Tom Tromey <tom@tromey.com>
5390
5391 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5392 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5393
b6484282
RT
53942019-05-04 Raul Tambre <raul@tambre.ee>
5395
5396 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5397 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5398 operator for comparison.
5399
af97b416
TT
54002019-05-04 Tom Tromey <tom@tromey.com>
5401
5402 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5403 (lookup_partial_symbol, print_partial_symbols)
5404 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5405 (psymbol_compare): Update.
5406 (add_psymbol_to_bcache): Clear the entire psymbol.
5407 (maintenance_check_psymtabs): Update.
5408 * psympriv.h (struct partial_symbol): Don't derive from
5409 general_symbol_info.
5410 <obj_section, unrelocated_address, address,
5411 set_unrelocated_address>: Update.
5412 <ginfo>: New member.
5413 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5414 (debug_names::write_psymbols): Update.
5415
9d6d4be8
TV
54162019-05-04 Tom de Vries <tdevries@suse.de>
5417
5418 * contrib/cc-with-tweaks.sh: Support -n arg.
5419
66452beb
PW
54202019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5421
5422 * corelow.c (core_target::detach): Ensure frame cache and
5423 register caches are cleared.
5424 inferior.c (exit_inferior_1): Likewise.
5425
bde09ab7
TT
54262019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5427 Tom Tromey <tom@tromey.com>
5428
5429 * dictionary.c (collate_pending_symbols_by_language): Remove
5430 "struct" from foreach.
5431 * symtab.c (lookup_global_symbol_from_objfile)
5432 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5433 foreach.
5434 * ser-tcp.c (net_open): Remove "struct" from foreach.
5435 * objfiles.c (objfile_relocate, objfile_rebase)
5436 (objfile_has_symbols): Remove "struct" from foreach.
5437 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5438 from foreach.
5439 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5440 foreach.
5441 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5442 "struct" from foreach.
5443 * ada-lang.c (create_excep_cond_exprs)
5444 (ada_exception_catchpoint_cond_string): Remove "struct" from
5445 foreach.
5446
222a8d25
TT
54472019-05-03 Tom Tromey <tromey@adacore.com>
5448
5449 * ada-exp.y (convert_char_literal): Check suffix of each
5450 enumerator.
5451
fcd60b84
DP
54522019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5453
5454 PR ada/21406:
5455 * ada-exp.y (yywrap): Don't define.
5456 * ada-lex.l (%option): Add noyywrap
5457 (yywrap): Remove.
5458
5f2459c2
EZ
54592019-05-03 Eli Zaretskii <eliz@gnu.org>
5460
353ea2d1
EZ
5461 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5462 _WIN32_WINNT to the XP level, unless already defined to a higher
5463 level.
5464
5465 * unittests/parse-connection-spec-selftests.c:
5466 * ser-tcp.c:
5467 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5468 override.
5469
5f2459c2
EZ
5470 * symfile.c (find_separate_debug_file): Remove colon from the
5471 drive spec of DOS/Windows file names of the target, so that the
5472 file name produced from DEBUGDIR and the target's directory will
5473 be valid on DOS/Windows systems.
5474
80062eb9
AB
54752019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5476
5477 * rust-lang.c (val_print_struct): Handle printing structures
5478 containing strings.
5479
b8c05e85
TT
54802019-05-02 Tom Tromey <tromey@adacore.com>
5481
5482 * valarith.c (_initialize_valarith): Remove.
5483
4504bbde
TT
54842019-05-01 Tom Tromey <tromey@adacore.com>
5485
5486 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5487 bitfields.
5488
d48e62f4
TT
54892019-05-01 Tom Tromey <tromey@adacore.com>
5490
5491 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5492 for big-endian copies.
5493
15f18d14
AT
54942019-04-30 Ali Tamur <tamur@google.com>
5495 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5496 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5497 (read_3_bytes): New function.
5498
ab4ee614
JB
54992019-04-30 Joel Brobecker <brobecker@adacore.com>
5500
5501 * windows-nat.c (main_thread_id): Delete.
5502 (handle_output_debug_string): Replace main_thread_id by
5503 current_event.dwThreadId.
5504 (fake_create_process): Likewise.
5505 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5506 Do not set main_thread_id.
5507 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5508 current_event.dwThreadId.
5509 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5510
8ed5b76e
JB
55112019-04-30 Joel Brobecker <brobecker@adacore.com>
5512
5513 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5514 Use current_event.dwThreadId instead of main_thread_id.
5515
2ff0a947
TT
55162019-04-30 Tom Tromey <tromey@adacore.com>
5517
5518 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5519 (create_excep_cond_exprs): Iterate over program spaces.
5520 (ada_exception_catchpoint_cond_string): Examine all minimal
5521 symbols for exception types.
5522
a776957c
TT
55232019-04-30 Tom Tromey <tromey@adacore.com>
5524
5525 PR c++/24470:
5526 * dwarf2read.c (process_structure_scope): Handle case where type
5527 has template parameters but no symbol was created.
5528
bc68014d
AB
55292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5530 Chris January <chris.january@arm.com>
5531
5532 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5533 qualifier.
5534 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5535
f1fdc960
AB
55362019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5537
5538 * f-typeprint.c (f_print_type): Update rules for printing
5539 whitespace.
5540 (f_type_print_varspec_suffix): Likewise.
5541
bf7a4de1
AB
55422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5543 Chris January <chris.january@arm.com>
5544
5545 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5546 function arguments.
5547
bbe75b9d
AB
55482019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5549
5550 * f-lang.c (build_fortran_types): Change name of void type to
5551 lower case.
5552 * f-typeprint.c (f_type_print_base): Print the name of the void
5553 type, rather than a fixed string.
5554 * f-valprint.c (f_decorations): Use lower case void string.
5555
1db455a7
AB
55562019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5557 Chris January <chris.january@arm.com>
5558
5559 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5560 types for Fortran.
5561
b6d03bb2
AB
55622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5563 Chris January <chris.january@arm.com>
5564 David Lecomber <david.lecomber@arm.com>
5565
5566 * f-exp.y (BINOP_INTRINSIC): New token.
5567 (exp): New parser rule handling BINOP_INTRINSIC.
5568 (f77_keywords): Add new builtin procedures.
5569 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5570 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5571 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5572 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5573 (print_unop_subexp_f): New function.
5574 (print_binop_subexp_f): New function.
5575 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5576 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5577 (dump_subexp_body_f): Likewise.
5578 (operator_check_f): Likewise.
5579 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5580 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5581
83228e93
AB
55822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5585 UNOP_KIND.
5586 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5587 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5588 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5589 (operator_length_f): New fuction.
5590 (print_subexp_f): New function.
5591 (op_name_f): New function.
5592 (dump_subexp_body_f): New function.
5593 (operator_check_f): New function.
5594 (exp_descriptor_f): Replace standard expression handling functions
5595 with new functions.
5596 * gdb/fortran-operator.def: New file.
5597 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5598 * gdb/std-operator.def: Remove UNOP_KIND.
5599
6fdcd7cc
AB
56002019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5601
5602 * std-operator.def: Remove unbalanced, stray double quote
5603 character.
5604
2e62ab40
AB
56052019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5606 Chris January <chris.january@arm.com>
5607 Daniel Everett <daniel.everett@arm.com>
5608 Nick Forrington <nick.forrington@arm.com>
5609 Richard Bunt <richard.bunt@arm.com>
5610
5611 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5612 of depth when printing anonymous structs or unions.
5613 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5614 Don't print either the top-level value, or the children if the
5615 max-depth is exceeded.
5616 (ppscm_print_children): When printing the key of a map, allow one
5617 extra level of depth.
5618 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5619 print either the top-level value, or the children if the max-depth
5620 is exceeded.
5621 (print_children): When printing the key of a map, allow one extra
5622 level of depth.
5623 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5624 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5625 (user_print_options): Initialise max_depth field.
5626 (val_print_scalar_or_string_type_p): New function.
5627 (val_print): Check to see if the max depth has been reached.
5628 (val_print_check_max_depth): Define new function.
5629 (show_print_max_depth): New function.
5630 (_initialize_valprint): Add 'print max-depth' option.
5631 * valprint.h (struct value_print_options) <max_depth>: New field.
5632 (val_print_check_max_depth): Declare new function.
5633 * NEWS: Document new feature.
5634
4be290b2
AB
56352019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5636
5637 * ada-lang.c (ada_language_defn): Initialise new field.
5638 * c-lang.c (c_is_string_type_p): New function.
5639 (c_language_defn): Initialise new field.
5640 (cplus_language_defn): Initialise new field.
5641 (asm_language_defn): Initialise new field.
5642 (minimal_language_defn): Initialise new field.
5643 * c-lang.h (c_is_string_type_p): Declare new function.
5644 * d-lang.c (d_language_defn): Initialise new field.
5645 * f-lang.c (f_is_string_type_p): New function.
5646 (f_language_defn): Initialise new field.
5647 * go-lang.c (go_is_string_type_p): New function.
5648 (go_language_defn): Initialise new field.
5649 * language.c (default_is_string_type_p): New function.
5650 (unknown_language_defn): Initialise new field.
5651 (auto_language_defn): Initialise new field.
5652 * language.h (struct language_defn) <la_is_string_type_p>: New
5653 member variable.
5654 (default_is_string_type_p): Declare new function.
5655 * m2-lang.c (m2_language_defn): Initialise new field.
5656 * objc-lang.c (objc_language_defn): Initialise new field.
5657 * opencl-lang.c (opencl_language_defn): Initialise new field.
5658 * p-lang.c (pascal_is_string_type_p): New function.
5659 (pascal_language_defn): Initialise new field.
5660 * rust-lang.c (rust_is_string_type_p): New function.
5661 (rust_language_defn): Initialise new field.
5662
721b08c6
AB
56632019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5666 New field.
5667 * ada-lang.c (ada_language_defn): Initialise new field.
5668 * c-lang.c (c_language_defn): Likewise.
5669 (cplus_language_defn): Likewise.
5670 (asm_language_defn): Likewise.
5671 (minimal_language_defn): Likewise.
5672 * d-lang.c (d_language_defn): Likewise.
5673 * f-lang.c (f_language_defn): Likewise.
5674 * go-lang.c (go_language_defn): Likewise.
5675 * language.c (unknown_language_defn): Likewise.
5676 (auto_language_defn): Likewise.
5677 * m2-lang.c (m2_language_defn): Likewise.
5678 * objc-lang.c (objc_language_defn): Likewise.
5679 * opencl-lang.c (opencl_language_defn): Likewise.
5680 * p-lang.c (pascal_language_defn): Likewise.
5681 * rust-lang.c (rust_language_defn): Likewise.
5682
fc913e53
AB
56832019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5684
5685 * ada-lang.c (ada_is_character_type): Change return type to bool.
5686 (ada_is_string_type): Likewise.
5687 * ada-lang.h (ada_is_character_type): Update declaration
5688 (ada_is_string_type): Likewise.
5689
fa731fa0
PW
56902019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5691
5692 Support style in 'frame|thread apply'
5693
5694 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5695 * record.c (record_start, record_stop): Update callers of
5696 execute_command_to_string with false.
5697 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5698 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5699 methods.
5700 (class string_file): New constructor with term_out parameter.
5701 Override methods term_out and can_emit_style_escape. New member
5702 term_out.
5703 (class stdio_file): Override can_emit_style_escape.
5704 (class tee_file): Override term_out and can_emit_style_escape.
5705 * utils.h (can_emit_style_escape): Remove.
5706 * utils.c (can_emit_style_escape): Likewise.
5707 Update all callers of can_emit_style_escape (SOMESTREAM) to
5708 SOMESTREAM->can_emit_style_escape.
5709 * source-cache.c (source_cache::get_source_lines): Likewise.
5710 * stack.c (frame_apply_command_count): Call execute_command_to_string
5711 passing the term_out characteristic of the current gdb_stdout.
5712 * thread.c (thr_try_catch_cmd): Likewise.
5713 * top.c (execute_command_to_string): pass term_out parameter
5714 to construct the string_file for the command output.
5715 * ui-file.c (term_cli_styling): New function (most code moved
5716 from utils.c can_emit_style_escape).
5717 (string_file::string_file, string_file::can_emit_style_escape,
5718 stdio_file::can_emit_style_escape, tee_file::term_out,
5719 tee_file::can_emit_style_escape): New functions.
5720
136afab8
PW
57212019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5722
5723 * NEWS: Mention the new set|show may-call-functions.
5724 * infcall.c (may_call_functions_p): New variable.
5725 (show_may_call_functions_p): New function.
5726 (call_function_by_hand_dummy): Throws an error if not
5727 may-call-functions.
5728 (_initialize_infcall): Call add_setshow_boolean_cmd for
5729 may-call-functions.
5730
725cbb63
KS
57312019-04-25 Keith Seitz <keiths@redhat.com>
5732
5733 PR c++/24367
5734 * cp-support.c (inspect_type): Don't attempt substitutions
5735 of symbol with the same name.
5736
3d1cbb78
TT
57372019-04-25 Tom Tromey <tromey@adacore.com>
5738
5739 PR gdb/24475:
5740 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5741 static.
5742
94aeb44b
TT
57432019-04-25 Tom Tromey <tromey@adacore.com>
5744
5745 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5746 rvalue reference.
5747 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5748 (gdb_xml_parser::parse): Use std::move.
5749 * python/python-internal.h (gdbpy_convert_exception): Take a const
5750 reference.
5751 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5752 std::move.
5753 * python/py-utils.c (gdbpy_convert_exception): Take a const
5754 reference.
5755 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5756 Use std::move.
5757 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5758 Use std::move.
5759 * mi/mi-main.c (mi_print_exception): Take a const reference.
5760 * main.c (handle_command_errors): Take a const reference.
5761 * linespec.c (parse_linespec): Use std::move.
5762 * infcall.c (run_inferior_call): Use std::move.
5763 (call_function_by_hand_dummy): Use std::move.
5764 * exec.c (try_open_exec_file): Use std::move.
5765 * exceptions.h (exception_print, exception_fprintf)
5766 (exception_print_same): Update.
5767 * exceptions.c (print_exception, exception_print)
5768 (exception_fprintf, exception_print_same): Change parameters to
5769 const reference.
5770 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5771 * common/new-op.c: Use std::move.
5772 * common/common-exceptions.h (struct gdb_exception): Add move
5773 constructor.
5774 (struct gdb_exception_error, struct gdb_exception_quit, struct
5775 gdb_quit_bad_alloc): Change constructor to move constructor.
5776 (throw_exception): Change parameter to rvalue reference.
5777 * common/common-exceptions.c (throw_exception): Take rvalue
5778 reference.
5779 * cli/cli-interp.c (safe_execute_command): Use std::move.
5780 * breakpoint.c (insert_bp_location, location_to_sals): Use
5781 std::move.
5782
680d7fd5
TT
57832019-04-25 Tom Tromey <tromey@adacore.com>
5784
5785 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5786 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5787 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5788 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5789 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5790 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5791 guile/scm-value.c: Use unpack.
5792 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5793 gdbscm_gdb_exception.
5794 (gdbscm_throw_gdb_exception): Likewise.
5795 (struct gdbscm_gdb_exception): New.
5796 (unpack): New function.
5797 (gdbscm_wrap): Use unpack.
5798
c6fdd8b2
TT
57992019-04-25 Tom Tromey <tromey@adacore.com>
5800
5801 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5802 (gdb_rl_callback_handler): Use std::move.
5803 * common/common-exceptions.h (struct gdb_exception): Add move
5804 assignment operator.
5805 (throw_exception_sjlj): Change "exception" to const reference.
5806 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5807 (throw_exception_sjlj): Change "exception" to const reference.
5808
cc06b668
TT
58092019-04-25 Tom Tromey <tromey@adacore.com>
5810
5811 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5812 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5813 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5814 Update.
5815 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5816 Update.
5817 * mi/mi-interp.c (mi_interp::exec): Update.
5818 * linespec.c (parse_linespec): Update.
5819 * infcall.c (run_inferior_call): Update.
5820 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5821 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5822 (gdbscm_lookup_global_symbol): Update.
5823 * guile/scm-param.c (gdbscm_parameter_value): Update.
5824 * guile/scm-frame.c (gdbscm_frame_read_register)
5825 (gdbscm_frame_read_var): Update.
5826 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5827 * exec.c (try_open_exec_file): Update.
5828 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5829 (gdb_rl_callback_handler): Update.
5830 * common/common-exceptions.h (exception_none): Don't declare.
5831 * common/common-exceptions.c (exception_none): Don't define.
5832 (struct catcher) <exception>: Update.
5833 * cli/cli-interp.c (safe_execute_command): Update.
5834 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5835
cf532bd1
AT
58362019-04-25 Ali Tamur <tamur@google.com>
5837
5838 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5839 (read_attribute_value): Likewise.
5840 (dwarf2_read_addr_index): Update comment.
5841 (read_str_index): Add DW_FORM_strx.
5842 (dwarf2_string_attr): Likewise.
5843 (dwarf2_const_value_attr): Likewise.
5844 (dump_die_shallow): Likewise.
5845 (dwarf2_fetch_constant_bytes): Likewise.
5846 (skip_form_bytes): Likewise.
5847 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5848
82433e3e
SDJ
58492019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5850
5851 PR corefiles/11608
5852 PR corefiles/18187
5853 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5854 OFFSET. Verify if current mapping contains an ELF header.
5855 (linux_find_memory_regions_full): Adjust call to
5856 dump_mapping_p.
5857
723adb65
SL
58582019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5859 Kang Li <kanglictf@gmail.com>
5860
5861 PR gdb/21600
5862
5863 * dwarf2-frame.c (read_initial_length): Be consistent about using
5864 unsigned representation of length.
5865 (decode_frame_entry_1): Likewise. Check for wraparound of
5866 end pointer as well as buffer overflow.
5867
596179f7
SDJ
58682019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5869
5870 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5871 "vq".
5872
a59240a4
TT
58732019-04-24 Tom Tromey <tromey@adacore.com>
5874
5875 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5876
f872fdbb
AB
58772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5878
5879 * s12z-tdep.c (s12z_unwind_pc): Delete.
5880 (s12z_unwind_sp): Delete.
5881 (s12z_gdbarch_init): Don't register deleted functions with
5882 gdbarch.
5883
b614e6f3
AB
58842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5885
5886 * rl78-tdep.c (rl78_unwind_sp): Delete.
5887 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5888
14faed38
AB
58892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5890
5891 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5892 (xstormy16_unwind_pc): Delete.
5893 (xstormy16_dummy_id): Delete.
5894 (xstormy16_gdbarch_init): Don't register deleted functions with
5895 gdbarch.
5896
541aad8a
AB
58972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5898
5899 * vax-tdep.c (vax_unwind_pc): Delete.
5900 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5901
29222070
AB
59022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5903
5904 * v850-tdep.c (v850_unwind_sp): Delete.
5905 (v850_unwind_pc): Delete.
5906 (v850_dummy_id): Delete.
5907 (v850_gdbarch_init): Don't register deleted functions with
5908 gdbarch.
5909
0f534d76
AB
59102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5911
5912 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5913 (tilegx_unwind_pc): Delete.
5914 (tilegx_unwind_dummy_id): Delete.
5915 (tilegx_gdbarch_init): Don't register deleted functions with
5916 gdbarch.
5917
1ba7b7f9
AB
59182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5919
5920 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5921 (tic6x_dummy_id): Delete.
5922 (tic6x_gdbarch_init): Don't register deleted functions with
5923 gdbarch.
5924
d31f262c
AB
59252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5926
5927 * sparc-tdep.c (sparc_unwind_pc): Delete.
5928 (sparc32_gdbarch_init): Don't register deleted function with
5929 gdbarch.
5930
6d14d64d
AB
59312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5932
5933 * sh-tdep.c (sh_unwind_sp): Delete.
5934 (sh_unwind_pc): Delete.
5935 (sh_dummy_id): Delete.
5936 (sh_gdbarch_init): Don't register deleted functions with
5937 gdbarch.
5938
a40dde9d
AB
59392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5940
5941 * score-tdep.c (score_unwind_sp): Delete.
5942 (score_unwind_pc): Delete.
5943 (score_dummy_id): Delete.
5944 (score_gdbarch_init): Don't register deleted functions with
5945 gdbarch.
5946
47c47d69
AB
59472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5948
5949 * rx-tdep.c (rx_unwind_pc): Delete.
5950 (rx_unwind_sp): Delete.
5951 (rx_dummy_id): Delete.
5952 (rx_gdbarch_init): Don't register deleted functions with
5953 gdbarch. Update comment.
5954
833a4480
AB
59552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5956
5957 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5958 (rs6000_dummy_id): Delete.
5959 (rs6000_gdbarch_init): Don't register deleted functions with
5960 gdbarch.
5961
3f2cef49
AB
59622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5963
5964 * or1k-tdep.c (or1k_dummy_id): Delete.
5965 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5966
96acf884
AB
59672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5968
5969 * nios2-tdep.c (nios2_dummy_id): Delete.
5970 (nios2_unwind_sp): Delete.
5971 (nios2_gdbarch_init): Don't register deleted functions with
5972 gdbarch.
5973
ca0ab0aa
AB
59742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5975
5976 * nds32-tdep.c (nds32_dummy_id): Delete.
5977 (nds32_unwind_pc): Delete.
5978 (nds32_unwind_sp): Delete.
5979 (nds32_gdbarch_init): Don't register deleted functions with
5980 gdbarch.
5981
c8259044
AB
59822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5983
5984 * msp430-tdep.c (msp430_unwind_pc): Delete.
5985 (msp430_unwind_sp): Delete.
5986 (msp430_dummy_id): Delete.
5987 (msp430_gdbarch_init): Don't register deleted functions with
5988 gdbarch.
5989
27f113c8
AB
59902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5991
5992 * moxie-tdep.c (moxie_unwind_sp): Delete.
5993 (moxie_unwind_pc): Delete.
5994 (moxie_dummy_id): Delete.
5995 (moxie_gdbarch_init): Don't register deleted functions with
5996 gdbarch.
5997
aee6c3cd
AB
59982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5999
6000 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6001 (mn10300_unwind_pc): Delete.
6002 (mn10300_unwind_sp): Delete.
6003 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6004 mn10300_unwind_sp.
6005 (mn10300_frame_unwind_init): Don't register deleted functions with
6006 gdbarch.
6007
8e2b5aea
AB
60082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6009
6010 * mep-tdep.c (mep_unwind_pc): Delete.
6011 (mep_unwind_sp): Delete.
6012 (mep_dummy_id): Delete.
6013 (mep_gdbarch_init): Don't register deleted functions with
6014 gdbarch.
6015
43cf3ede
AB
60162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6017
6018 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6019 (m68hc11_unwind_sp): Delete.
6020 (m68hc11_gdbarch_init): Don't register deleted functions with
6021 gdbarch.
6022
5e79b7bb
AB
60232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6024
6025 * m32r-tdep.c (m32r_unwind_sp): Delete.
6026 (m32r_unwind_pc): Delete.
6027 (m32r_dummy_id): Delete.
6028 (m32r_gdbarch_init): Don't register deleted functions with
6029 gdbarch.
6030
89b268d8
AB
60312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 * m32c-tdep.c (m32c_unwind_pc): Delete.
6034 (m32c_unwind_sp): Delete.
6035 (m32c_dummy_id): Delete.
6036 (m32c_gdbarch_init): Don't register deleted functions with
6037 gdbarch.
6038
946c28d2
AB
60392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6040
6041 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6042 (lm32_unwind_pc): Delete.
6043 (lm32_dummy_id): Delete.
6044 (lm32_gdbarch_init): Don't register deleted functions with
6045 gdbarch.
6046
bf12844a
AB
60472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6050 (iq2000_unwind_pc): Delete.
6051 (iq2000_dummy_id): Delete.
6052 (iq2000_gdbarch_init): Don't register deleted functions with
6053 gdbarch.
6054
ecbc06d2
AB
60552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6056
6057 * nds32-tdep.c (nds32_type_align): Delete.
6058 (nds32_push_dummy_call): Use type_align instead.
6059
030197b4
AB
60602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6061
6062 * arm-tdep.c (arm_type_align): Only handle vector override case.
6063 (arm_push_dummy_call): Use type_align.
6064 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6065
b907456c
AB
60662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6067
6068 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6069 case.
6070 (pass_on_stack): Use type_align.
6071 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6072 function.
6073
9e97ba43
TT
60742019-04-23 Tom Tromey <tromey@adacore.com>
6075
6076 * dwarf2read.c (line_header::file_name_at): Remove unused
6077 overload.
6078
6892f601
TV
60792019-04-23 Tom de Vries <tdevries@suse.de>
6080
6081 PR gdb/24438
6082 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6083 invocation.
6084
336d760d
AT
6085
60862019-03-27 Ali Tamur <tamur@google.com>
6087
6088 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6089 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6090 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6091 (dwarf_expr_context::get_addr_index): Likewise
6092 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6093 (symbol_needs_eval_context::get_addr_index): Likewise
6094 (disassemble_dwarf_expression): Add DW_OP_addrx
6095 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6096 (read_cutu_die_from_dwo): Update comment
6097 (skip_one_die): Add DW_FORM_addrx
6098 (read_attribute_value): Likewise
6099 (var_decode_location): Add DW_OP_addrx
6100 (dwarf2_const_value_attr): Add DW_FORM_addrx
6101 (dump_die_shallow): Likewise
6102 (dwarf2_fetch_constant_bytes): Likewise
6103 (decode_locdesc): Add DW_OP_addrx
6104 (skip_form_bytes): Add DW_FORM_addrx
6105
ad9d13f8
AT
61062019-04-22 Ali Tamur <tamur@google.com>
6107
6108 * MAINTAINERS (Write After Approval): Add self.
6109
d70cc3ba
SM
61102019-04-22 Simon Marchi <simon.marchi@efficios.com>
6111
6112 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6113 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6114 (open_symbol_file_object): Likewise.
6115 (svr4_default_sos): Add info parameter.
6116 (svr4_read_so_list): Likewise.
6117 (svr4_current_sos_direct): Adjust functions calls to pass down
6118 info.
6119 (svr4_current_sos_1): Add info parameter.
6120 (svr4_current_sos): Call get_svr4_info, pass info down to
6121 svr4_current_sos_1.
6122 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6123 get_svr4_info.
6124 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6125 get_svr4_info.
6126 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6127 to get_svr4_info.
6128 (probes_table_remove_objfile_probes): Likewise.
6129 (register_solib_event_probe): Add info parameter.
6130 (solist_update_incremental): Pass info parameter down to
6131 svr4_read_so_list.
6132 (disable_probes_interface): Add info parameter.
6133 (svr4_handle_solib_event): Pass current_program_space to
6134 get_svr4_info. Adjust disable_probes_interface cleanup.
6135 (svr4_create_probe_breakpoints): Add info parameter, pass it
6136 down to register_solib_event_probe.
6137 (svr4_create_solib_event_breakpoints): Add info parameter,
6138 pass it down to svr4_create_probe_breakpoints.
6139 (enable_break): Pass info down to
6140 svr4_create_solib_event_breakpoints.
6141 (svr4_solib_create_inferior_hook): Pass current_program_space to
6142 get_svr4_info.
6143 (svr4_clear_solib): Likewise.
6144
7905fc35
PA
61452019-04-22 Pedro Alves <palves@redhat.com>
6146
6147 * solib-svr4.c (svr4_free_objfile_observer): New.
6148 (probe_and_action::objfile): New field.
6149 (probes_table_htab_remove_objfile_probes)
6150 (probes_table_remove_objfile_probes): New functions.
6151 (register_solib_event_probe): Add 'objfile' parameter. Store it
6152 in the new probe_and_action. Don't store the probe in 'lookup'.
6153 (svr4_create_probe_breakpoints): Pass objfile to
6154 register_solib_event_probe.
6155 (_initialize_svr4_solib): Register a free_objfile observer.
6156
fb881986
TT
61572019-04-19 Tom Tromey <tom@tromey.com>
6158
6159 * common/queue.h: Remove.
6160
8732db6c
TT
61612019-04-19 Tom Tromey <tom@tromey.com>
6162
6163 * event-loop.c: Don't include "common/queue.h".
6164
97dfbadd
TT
61652019-04-19 Tom Tromey <tom@tromey.com>
6166
6167 * remote.c (remote_target): Use delete.
6168 * remote-notif.h: Include <list>, not "common/queue.h".
6169 (notif_client_p): Remove typedef.
6170 (remote_notif_state): Add constructor, destructor, initializer.
6171 <notif_queue>: Now a std::list.
6172 (remote_notif_state_xfree): Don't declare.
6173 * remote-notif.c (remote_notif_process, handle_notification)
6174 (remote_notif_state_allocate): Update.
6175 (~remote_notif_state): Rename from remote_notif_state_xfree.
6176
cf250e36
TT
61772019-04-19 Tom Tromey <tom@tromey.com>
6178
6179 * symfile.c (reread_symbols): Update.
6180 * objfiles.c (objfile_register_static_link)
6181 (objfile_lookup_static_link): Update
6182 (~objfile) Don't delete static_links.
6183 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6184
61f4b350
TT
61852019-04-19 Tom Tromey <tom@tromey.com>
6186
6187 * type-stack.h (struct type_stack) <insert>: Constify string.
6188 * type-stack.c (type_stack::insert): Constify string.
6189 * gdbtypes.h (lookup_template_type): Update.
6190 (address_space_name_to_int): Update.
6191 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6192 const.
6193 (lookup_template_type): Make name const.
6194 * c-exp.y: Update rules.
6195 (lex_one_token, classify_name, classify_inner_name)
6196 (c_print_token): Update.
6197 * p-exp.y: Update rules.
6198 (yylex): Update.
6199 * f-exp.y: Update rules.
6200 (yylex): Update.
6201 * d-exp.y: Update rules.
6202 (lex_one_token, classify_name, classify_inner_name): Update.
6203 * parse.c (write_dollar_variable, copy_name): Return std::string.
6204 * parser-defs.h (copy_name): Change return type.
6205 * m2-exp.y: Update rules.
6206 (yylex): Update.
6207 * go-exp.y (lex_one_token): Update.
6208 Update rules.
6209 (classify_unsafe_function, classify_packaged_name)
6210 (classify_name, yylex): Update.
6211
189b8c2e
ST
62122019-04-19 Sergei Trofimovich <siarheit@google.com>
6213
6214 * configure.ac: add --enable-source-highlight switch.
6215 * configure: Regenerate.
6216 * top.c (print_gdb_version): plumb --enable-source-highlight
6217 status to "show configuration".
6218
8ecb59f8
TT
62192019-04-19 Tom Tromey <tromey@adacore.com>
6220
6221 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6222 Check ADA_TYPE_P.
6223 (empty_record, ada_template_to_fixed_record_type_1)
6224 (template_to_static_fixed_type)
6225 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6226 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6227 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6228 macros.
6229
62160ec9
TT
62302019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6231
6232 PR symtab/24423:
6233 * source.c (print_source_lines_base): Advance "iter" when a
6234 control character is seen.
6235
f2ae8bc8
PW
62362019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6237
6238 * inferior.h (struct infcall_suspend_state_deleter):
6239 Catch exception in destructor to avoid crash.
6240
d563b953
PW
62412019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6242
6243 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6244 close to the add_com "shell".
6245
dc34c897
TT
62462019-04-18 Tom Tromey <tromey@adacore.com>
6247
6248 * process-stratum-target.h (class process_stratum_target)
6249 <stratum>: Add "final".
6250
a12e5744
TT
62512019-04-17 Tom Tromey <tromey@adacore.com>
6252
6253 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6254 against nullptr before use.
6255
a7e559cc
AH
62562019-04-17 Alan Hayward <alan.hayward@arm.com>
6257
6258 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6259
c01660c6
AB
62602019-04-17 Jim Wilson <jimw@sifive.com>
6261 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6264 code read might fail, assume 4-byte breakpoint in that case.
6265
4aa866af
LS
62662019-04-15 Leszek Swirski <leszeks@google.com>
6267
6268 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6269 rather than a hand-rolled POD check when checking for forced MEMORY
6270 classification.
6271
48574d91
AH
62722019-04-15 Alan Hayward <alan.hayward@arm.com>
6273
6274 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6275 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6276 function.
6277 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6278 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6279 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6280 declaration.
6281
4da037ef
AH
62822019-04-15 Alan Hayward <alan.hayward@arm.com>
6283
6284 * aarch64-linux-nat.c
6285 (aarch64_linux_nat_target::thread_architecture): Add override.
6286 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6287 each VQ.
6288
ccb8d7e8
AH
62892019-04-15 Alan Hayward <alan.hayward@arm.com>
6290
6291 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6292
35add35e
AB
62932019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6294
6295 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6296 target types of size 96-bits, add some additional comments, and
6297 check that the builtin type we found was the correct size.
6298
51196bbc
EZ
62992019-04-12 Eli Zaretskii <eliz@gnu.org>
6300
6301 * utils.c (prompt_for_continue): Don't restore the styling at the
6302 end, as applied_style has the wrong value. This fixes styling in
6303 long lists of file names that are interrupted by the "Continue?"
6304 prompt.
6305
62253a61
AB
63062019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6307
6308 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6309 * c-lang.c (c_language_defn): Likewise.
6310 (cplus_language_defn): Likewise.
6311 (asm_language_defn): Likewise.
6312 (minimal_language_defn): Likewise.
6313 * d-lang.c (d_language_defn): Likewise.
6314 * f-lang.c (f_language_defn): Likewise.
6315 * go-lang.c (go_language_defn): Likewise.
6316 * language.c (unknown_language_defn): Likewise.
6317 (auto_language_defn): Likewise.
6318 * language.h (struct language_defn): Remove la_magic field.
6319 (LANG_MAGIC): Delete.
6320 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6321 * objc-lang.c (objc_language_defn): Likewise.
6322 * opencl-lang.c (opencl_language_defn): Likewise.
6323 * p-lang.c (pascal_language_defn): Likewise.
6324 * rust-lang.c (rust_language_defn): Likewise.
6325
a9158a86
AB
63262019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6327
6328 * riscv-tdep.c (riscv_type_align): New function.
6329 (riscv_type_alignment): Delete.
6330 (riscv_arg_location): Use 'type_align'.
6331 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6332
41077b66
AB
63332019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6334
6335 * gdbtypes.c (type_align): A struct with no non-static fields also
6336 has alignment of 1.
6337
9f0272f8
AB
63382019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6339
6340 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6341 component to 0.
6342 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6343 member.
6344 (riscv_struct_info::analyse): New implementation using new
6345 analyse_inner member function.
6346 (riscv_struct_info::field_offset): New member function.
6347 (riscv_struct_info::m_offsets): New member variable.
6348 (riscv_struct_info::analyse_inner): New private member function,
6349 takes the old implementation of riscv_struct_info::analyse but
6350 extended to track field offsets.
6351 (riscv_call_arg_struct): Update the struct folding special cases
6352 to handle cases where empty C++ structs, which are non-zero
6353 length, are found.
6354 (riscv_arg_location): Initialise the length of each location, a
6355 non-zero length now indicates the location is in use.
6356 (riscv_push_dummy_call): Allow for the first location having a
6357 non-zero offset when setting up arguments.
6358 (riscv_return_value): Likewise, but for return values.
6359
02cf60c7
TT
63602019-04-11 Tom Tromey <tromey@adacore.com>
6361
6362 * utils.c (internal_vproblem): Make "msg" const.
6363
68811f8f
AH
63642019-04-11 Alan Hayward <alan.hayward@arm.com>
6365
6366 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6367 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6368 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6369 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6370
3f52fdbc
KB
63712019-04-10 Kevin Buettner <kevinb@redhat.com>
6372
6373 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6374 function.
6375 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6376 of amd64_collect_native_gregset.
6377 (amd64_linux_nat_target::store_registers): Likewise.
6378
e9ad22ee
TT
63792019-04-10 Tom Tromey <tom@tromey.com>
6380
6381 * symtab.c (lookup_global_symbol_from_objfile)
6382 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6383 * objfiles.h (class separate_debug_iterator): New.
6384 (class separate_debug_range): New.
6385 (struct objfile) <separate_debug_objfiles>: New method.
6386 (objfile_separate_debug_iterate): Don't declare.
6387 * objfiles.c (separate_debug_iterator::operator++): Rename from
6388 objfile_separate_debug_iterate.
6389 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6390 iterator.
6391 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6392 iterator.
6393
ee371134
TT
63942019-04-10 Tom Tromey <tom@tromey.com>
6395
6396 * symfile.c (reread_symbols): Remove old comment.
6397 * objfiles.c (free_all_objfiles): Fix a typo.
6398
bf227d61
TT
63992019-04-10 Tom Tromey <tom@tromey.com>
6400
6401 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6402 * minsyms.c (lookup_minimal_symbol): Use foreach.
6403 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6404 (lookup_minimal_symbol_solib_trampoline): Likewise.
6405 * symfile.c (reread_symbols): Use foreach.
6406
8dc433a0
TT
64072019-04-09 Ivan Begert <ivanbegert@gmail.com>
6408 Tom Tromey <tromey@adacore.com>
6409
6410 PR rust/24414:
6411 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6412 (rust_lex_int_test): Change "value" to be LONGEST.
6413 (rust_lex_tests): Add test for long integer literal.
6414
9ab8741a
TT
64152019-04-09 Tom Tromey <tromey@adacore.com>
6416
6417 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6418 to bool.
6419 (extended_remote_target::attach): Update.
6420 (remote_target::remote_notice_new_inferior): Update.
6421 (remote_target::add_current_inferior_and_thread): Update.
6422 * inferior.c (exit_inferior_1): Use "false".
6423 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6424
e242fd12
SM
64252019-04-09 Simon Marchi <simon.marchi@efficios.com>
6426
9ca1957f 6427 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
6428 the "start" command.
6429
2b0c8b01
KB
64302019-04-08 Kevin Buettner <kevinb@redhat.com>
6431
6432 * python/py-inferior.c (infpy_thread_from_thread_handle):
6433 Adjust comments to reflect renaming of thread_from_thread_handle
6434 to thread_from_handle. Adjust keywords. Fix type error message.
6435 (inferior_object_methods): Add thread_from_handle. Retain
6436 thread_from_thread_handle, but mark it as deprecated.
6437
50a82723
KB
64382019-04-08 Kevin Buettner <kevinb@redhat.com>
6439
6440 * gdbthread.h (find_thread_by_handle): Revise declaration.
6441 * thread.c (find_thread_by_handle): Likewise. Adjust
6442 implementation too.
6443 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6444 support for buffer objects as handles.
6445
cf63b016
KB
64462019-04-08 Kevin Buettner <kevinb@redhat.com>
6447
6448 * python/py-infthread.c (thpy_thread_handle): New function.
6449 (thread_object_methods): Register thpy_thread_handle.
6450
3d6c6204
KB
64512019-04-08 Kevin Buettner <kevinb@redhat.com>
6452
6453 * gdbthread.h (thread_to_thread_handle): Declare.
6454 * thread.c (gdbtypes.h): Include.
6455 (thread_to_thread_handle): New function.
6456
6457 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6458 (target_thread_info_to_thread_handle): Declare.
6459 * target.c (target_thread_info_to_thread_handle): New function.
6460 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6461 * target-delegates.c: Regenerate.
6462
6463 * linux-thread-db.c (class thread_db_target): Add method
6464 thread_info_to_thread_handle.
6465 (thread_db_target::thread_info_to_thread_handle): Define.
6466 * remote.c (class remote_target): Add new method
6467 thread_info_to_thread_handle.
6468 (remote_target::thread_info_to_thread_handle): Define.
6469
56be6ea8
PA
64702019-04-08 Pedro Alves <palves@redhat.com>
6471
6472 * common/common-exceptions.c (throw_exception): Don't create
6473 named object to throw; throw directly.
6474 (throw_it): Likewise. Don't initialize gdb_exception::message
6475 here, with new; pass FMT and AP to the ctor instead.
6476 * common/common-exceptions.h: Include <string>.
6477 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6478 const char *, va_list)): New ctor. Use std::make_shared.
6479 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6480 errors)): Delete.
6481 (gdb_exception_error::gdb_exception_error(enum errors, const char
6482 *, va_list)): New.
6483 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6484 Add assertion.
6485 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6486 errors)): Delete.
6487 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6488 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6489 Add assertion.
6490
eedc3f4f
TT
64912019-04-08 Tom Tromey <tom@tromey.com>
6492
6493 * valops.c (value_rtti_indirect_type): Replace throw_exception
6494 with throw.
6495 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6496 with throw.
6497 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6498 throw.
6499 * target.c (target_translate_tls_address): Replace throw_exception
6500 with throw.
6501 * stack.c (frame_apply_command_count): Replace throw_exception
6502 with throw.
6503 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6504 throw.
6505 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6506 with throw.
6507 * rs6000-tdep.c (rs6000_frame_cache)
6508 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6509 * remote.c: Replace throw_exception with throw.
6510 * record-full.c (record_full_message, record_full_wait_1)
6511 (record_full_restore): Replace throw_exception with throw.
6512 * record-btrace.c:
6513 (get_thread_current_frame_id, record_btrace_start_replaying)
6514 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6515 (cmd_record_btrace_start): Replace throw_exception with throw.
6516 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6517 throw.
6518 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6519 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6520 * linespec.c:
6521 (find_linespec_symbols): Replace throw_exception with throw.
6522 * infrun.c (displaced_step_prepare, resume): Replace
6523 throw_exception with throw.
6524 * infcmd.c (post_create_inferior): Replace throw_exception with
6525 throw.
6526 * inf-loop.c (inferior_event_handler): Replace throw_exception
6527 with throw.
6528 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6529 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6530 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6531 (get_prev_frame_always, get_frame_pc_if_available)
6532 (get_frame_address_in_block_if_available, get_frame_language):
6533 Replace throw_exception with throw.
6534 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6535 throw_exception with throw.
6536 * eval.c (fetch_subexp_value, evaluate_var_value)
6537 (evaluate_funcall, evaluate_subexp_standard): Replace
6538 throw_exception with throw.
6539 * dwarf2loc.c (call_site_find_chain)
6540 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6541 Replace throw_exception with throw.
6542 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6543 with throw.
6544 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6545 throw.
6546 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6547 * completer.c (complete_line_internal): Replace throw_exception
6548 with throw.
6549 * compile/compile-object-run.c (compile_object_run): Replace
6550 throw_exception with throw.
6551 * cli/cli-script.c (process_next_line): Replace throw_exception
6552 with throw.
6553 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6554 (btrace_enable, btrace_maint_update_pt_packets): Replace
6555 throw_exception with throw.
6556 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6557 throw_exception with throw.
6558 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6559 throw_exception with throw.
6560 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6561 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6562 * aarch64-tdep.c (aarch64_make_prologue_cache)
6563 (aarch64_make_stub_cache): Replace throw_exception with throw.
6564
26003a20
TT
65652019-04-08 Tom Tromey <tom@tromey.com>
6566
6567 * common/common-exceptions.c (throw_exception): Rename from
6568 throw_exception_cxx. Remove old copy. Make argument const.
6569 (throw_it): Create and throw exception objects directly.
6570 * common/common-exceptions.h (throw_exception): Make argument
6571 const.
6572 (struct gdb_exception_error): Add constructor.
6573 (struct gdb_exception_quit): Add constructor.
6574
d272eb37
TT
65752019-04-08 Tom Tromey <tom@tromey.com>
6576
6577 * common/common-exceptions.h (exception_rethrow): Don't declare.
6578 (TRY_SJLJ): Update comment.
6579 (TRY, CATCH, END_CATCH): Remove.
6580 * common/common-exceptions.c (exception_rethrow): Remove.
6581
230d2906
TT
65822019-04-08 Tom Tromey <tom@tromey.com>
6583
6584 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6585 Remove.
6586 (gdb_exception_error): Rename from
6587 gdb_exception_RETURN_MASK_ERROR.
6588 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6589 (gdb_quit_bad_alloc): Update.
6590 * aarch64-tdep.c: Update.
6591 * ada-lang.c: Update.
6592 * ada-typeprint.c: Update.
6593 * ada-valprint.c: Update.
6594 * amd64-tdep.c: Update.
6595 * arch-utils.c: Update.
6596 * break-catch-throw.c: Update.
6597 * breakpoint.c: Update.
6598 * btrace.c: Update.
6599 * c-varobj.c: Update.
6600 * cli/cli-cmds.c: Update.
6601 * cli/cli-interp.c: Update.
6602 * cli/cli-script.c: Update.
6603 * common/common-exceptions.c: Update.
6604 * common/new-op.c: Update.
6605 * common/selftest.c: Update.
6606 * compile/compile-c-symbols.c: Update.
6607 * compile/compile-cplus-symbols.c: Update.
6608 * compile/compile-object-load.c: Update.
6609 * compile/compile-object-run.c: Update.
6610 * completer.c: Update.
6611 * corelow.c: Update.
6612 * cp-abi.c: Update.
6613 * cp-support.c: Update.
6614 * cp-valprint.c: Update.
6615 * darwin-nat.c: Update.
6616 * disasm-selftests.c: Update.
6617 * dtrace-probe.c: Update.
6618 * dwarf-index-cache.c: Update.
6619 * dwarf-index-write.c: Update.
6620 * dwarf2-frame-tailcall.c: Update.
6621 * dwarf2-frame.c: Update.
6622 * dwarf2loc.c: Update.
6623 * dwarf2read.c: Update.
6624 * eval.c: Update.
6625 * event-loop.c: Update.
6626 * event-top.c: Update.
6627 * exec.c: Update.
6628 * f-valprint.c: Update.
6629 * fbsd-tdep.c: Update.
6630 * frame-unwind.c: Update.
6631 * frame.c: Update.
6632 * gdbtypes.c: Update.
6633 * gnu-v3-abi.c: Update.
6634 * guile/guile-internal.h: Update.
6635 * guile/scm-block.c: Update.
6636 * guile/scm-breakpoint.c: Update.
6637 * guile/scm-cmd.c: Update.
6638 * guile/scm-disasm.c: Update.
6639 * guile/scm-frame.c: Update.
6640 * guile/scm-lazy-string.c: Update.
6641 * guile/scm-math.c: Update.
6642 * guile/scm-param.c: Update.
6643 * guile/scm-ports.c: Update.
6644 * guile/scm-pretty-print.c: Update.
6645 * guile/scm-symbol.c: Update.
6646 * guile/scm-symtab.c: Update.
6647 * guile/scm-type.c: Update.
6648 * guile/scm-value.c: Update.
6649 * i386-linux-tdep.c: Update.
6650 * i386-tdep.c: Update.
6651 * inf-loop.c: Update.
6652 * infcall.c: Update.
6653 * infcmd.c: Update.
6654 * infrun.c: Update.
6655 * jit.c: Update.
6656 * language.c: Update.
6657 * linespec.c: Update.
6658 * linux-fork.c: Update.
6659 * linux-nat.c: Update.
6660 * linux-tdep.c: Update.
6661 * linux-thread-db.c: Update.
6662 * main.c: Update.
6663 * mi/mi-cmd-break.c: Update.
6664 * mi/mi-cmd-stack.c: Update.
6665 * mi/mi-interp.c: Update.
6666 * mi/mi-main.c: Update.
6667 * objc-lang.c: Update.
6668 * p-valprint.c: Update.
6669 * parse.c: Update.
6670 * ppc-linux-tdep.c: Update.
6671 * printcmd.c: Update.
6672 * python/py-arch.c: Update.
6673 * python/py-breakpoint.c: Update.
6674 * python/py-cmd.c: Update.
6675 * python/py-finishbreakpoint.c: Update.
6676 * python/py-frame.c: Update.
6677 * python/py-framefilter.c: Update.
6678 * python/py-gdb-readline.c: Update.
6679 * python/py-inferior.c: Update.
6680 * python/py-infthread.c: Update.
6681 * python/py-lazy-string.c: Update.
6682 * python/py-linetable.c: Update.
6683 * python/py-objfile.c: Update.
6684 * python/py-param.c: Update.
6685 * python/py-prettyprint.c: Update.
6686 * python/py-progspace.c: Update.
6687 * python/py-record-btrace.c: Update.
6688 * python/py-record.c: Update.
6689 * python/py-symbol.c: Update.
6690 * python/py-type.c: Update.
6691 * python/py-unwind.c: Update.
6692 * python/py-utils.c: Update.
6693 * python/py-value.c: Update.
6694 * python/python.c: Update.
6695 * record-btrace.c: Update.
6696 * record-full.c: Update.
6697 * remote-fileio.c: Update.
6698 * remote.c: Update.
6699 * riscv-tdep.c: Update.
6700 * rs6000-aix-tdep.c: Update.
6701 * rs6000-tdep.c: Update.
6702 * rust-exp.y: Update.
6703 * rust-lang.c: Update.
6704 * s390-tdep.c: Update.
6705 * selftest-arch.c: Update.
6706 * solib-dsbt.c: Update.
6707 * solib-frv.c: Update.
6708 * solib-spu.c: Update.
6709 * solib-svr4.c: Update.
6710 * solib.c: Update.
6711 * sparc64-linux-tdep.c: Update.
6712 * stack.c: Update.
6713 * symfile-mem.c: Update.
6714 * symmisc.c: Update.
6715 * target.c: Update.
6716 * thread.c: Update.
6717 * top.c: Update.
6718 * tracefile-tfile.c: Update.
6719 * tui/tui.c: Update.
6720 * typeprint.c: Update.
6721 * unittests/cli-utils-selftests.c: Update.
6722 * unittests/parse-connection-spec-selftests.c: Update.
6723 * valops.c: Update.
6724 * valprint.c: Update.
6725 * value.c: Update.
6726 * varobj.c: Update.
6727 * windows-nat.c: Update.
6728 * x86-linux-nat.c: Update.
6729 * xml-support.c: Update.
6730
a70b8144
TT
67312019-04-08 Tom Tromey <tom@tromey.com>
6732
6733 * xml-support.c: Use C++ exception handling.
6734 * x86-linux-nat.c: Use C++ exception handling.
6735 * windows-nat.c: Use C++ exception handling.
6736 * varobj.c: Use C++ exception handling.
6737 * value.c: Use C++ exception handling.
6738 * valprint.c: Use C++ exception handling.
6739 * valops.c: Use C++ exception handling.
6740 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6741 handling.
6742 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6743 * typeprint.c: Use C++ exception handling.
6744 * tui/tui.c: Use C++ exception handling.
6745 * tracefile-tfile.c: Use C++ exception handling.
6746 * top.c: Use C++ exception handling.
6747 * thread.c: Use C++ exception handling.
6748 * target.c: Use C++ exception handling.
6749 * symmisc.c: Use C++ exception handling.
6750 * symfile-mem.c: Use C++ exception handling.
6751 * stack.c: Use C++ exception handling.
6752 * sparc64-linux-tdep.c: Use C++ exception handling.
6753 * solib.c: Use C++ exception handling.
6754 * solib-svr4.c: Use C++ exception handling.
6755 * solib-spu.c: Use C++ exception handling.
6756 * solib-frv.c: Use C++ exception handling.
6757 * solib-dsbt.c: Use C++ exception handling.
6758 * selftest-arch.c: Use C++ exception handling.
6759 * s390-tdep.c: Use C++ exception handling.
6760 * rust-lang.c: Use C++ exception handling.
6761 * rust-exp.y: Use C++ exception handling.
6762 * rs6000-tdep.c: Use C++ exception handling.
6763 * rs6000-aix-tdep.c: Use C++ exception handling.
6764 * riscv-tdep.c: Use C++ exception handling.
6765 * remote.c: Use C++ exception handling.
6766 * remote-fileio.c: Use C++ exception handling.
6767 * record-full.c: Use C++ exception handling.
6768 * record-btrace.c: Use C++ exception handling.
6769 * python/python.c: Use C++ exception handling.
6770 * python/py-value.c: Use C++ exception handling.
6771 * python/py-utils.c: Use C++ exception handling.
6772 * python/py-unwind.c: Use C++ exception handling.
6773 * python/py-type.c: Use C++ exception handling.
6774 * python/py-symbol.c: Use C++ exception handling.
6775 * python/py-record.c: Use C++ exception handling.
6776 * python/py-record-btrace.c: Use C++ exception handling.
6777 * python/py-progspace.c: Use C++ exception handling.
6778 * python/py-prettyprint.c: Use C++ exception handling.
6779 * python/py-param.c: Use C++ exception handling.
6780 * python/py-objfile.c: Use C++ exception handling.
6781 * python/py-linetable.c: Use C++ exception handling.
6782 * python/py-lazy-string.c: Use C++ exception handling.
6783 * python/py-infthread.c: Use C++ exception handling.
6784 * python/py-inferior.c: Use C++ exception handling.
6785 * python/py-gdb-readline.c: Use C++ exception handling.
6786 * python/py-framefilter.c: Use C++ exception handling.
6787 * python/py-frame.c: Use C++ exception handling.
6788 * python/py-finishbreakpoint.c: Use C++ exception handling.
6789 * python/py-cmd.c: Use C++ exception handling.
6790 * python/py-breakpoint.c: Use C++ exception handling.
6791 * python/py-arch.c: Use C++ exception handling.
6792 * printcmd.c: Use C++ exception handling.
6793 * ppc-linux-tdep.c: Use C++ exception handling.
6794 * parse.c: Use C++ exception handling.
6795 * p-valprint.c: Use C++ exception handling.
6796 * objc-lang.c: Use C++ exception handling.
6797 * mi/mi-main.c: Use C++ exception handling.
6798 * mi/mi-interp.c: Use C++ exception handling.
6799 * mi/mi-cmd-stack.c: Use C++ exception handling.
6800 * mi/mi-cmd-break.c: Use C++ exception handling.
6801 * main.c: Use C++ exception handling.
6802 * linux-thread-db.c: Use C++ exception handling.
6803 * linux-tdep.c: Use C++ exception handling.
6804 * linux-nat.c: Use C++ exception handling.
6805 * linux-fork.c: Use C++ exception handling.
6806 * linespec.c: Use C++ exception handling.
6807 * language.c: Use C++ exception handling.
6808 * jit.c: Use C++ exception handling.
6809 * infrun.c: Use C++ exception handling.
6810 * infcmd.c: Use C++ exception handling.
6811 * infcall.c: Use C++ exception handling.
6812 * inf-loop.c: Use C++ exception handling.
6813 * i386-tdep.c: Use C++ exception handling.
6814 * i386-linux-tdep.c: Use C++ exception handling.
6815 * guile/scm-value.c: Use C++ exception handling.
6816 * guile/scm-type.c: Use C++ exception handling.
6817 * guile/scm-symtab.c: Use C++ exception handling.
6818 * guile/scm-symbol.c: Use C++ exception handling.
6819 * guile/scm-pretty-print.c: Use C++ exception handling.
6820 * guile/scm-ports.c: Use C++ exception handling.
6821 * guile/scm-param.c: Use C++ exception handling.
6822 * guile/scm-math.c: Use C++ exception handling.
6823 * guile/scm-lazy-string.c: Use C++ exception handling.
6824 * guile/scm-frame.c: Use C++ exception handling.
6825 * guile/scm-disasm.c: Use C++ exception handling.
6826 * guile/scm-cmd.c: Use C++ exception handling.
6827 * guile/scm-breakpoint.c: Use C++ exception handling.
6828 * guile/scm-block.c: Use C++ exception handling.
6829 * guile/guile-internal.h: Use C++ exception handling.
6830 * gnu-v3-abi.c: Use C++ exception handling.
6831 * gdbtypes.c: Use C++ exception handling.
6832 * frame.c: Use C++ exception handling.
6833 * frame-unwind.c: Use C++ exception handling.
6834 * fbsd-tdep.c: Use C++ exception handling.
6835 * f-valprint.c: Use C++ exception handling.
6836 * exec.c: Use C++ exception handling.
6837 * event-top.c: Use C++ exception handling.
6838 * event-loop.c: Use C++ exception handling.
6839 * eval.c: Use C++ exception handling.
6840 * dwarf2read.c: Use C++ exception handling.
6841 * dwarf2loc.c: Use C++ exception handling.
6842 * dwarf2-frame.c: Use C++ exception handling.
6843 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6844 * dwarf-index-write.c: Use C++ exception handling.
6845 * dwarf-index-cache.c: Use C++ exception handling.
6846 * dtrace-probe.c: Use C++ exception handling.
6847 * disasm-selftests.c: Use C++ exception handling.
6848 * darwin-nat.c: Use C++ exception handling.
6849 * cp-valprint.c: Use C++ exception handling.
6850 * cp-support.c: Use C++ exception handling.
6851 * cp-abi.c: Use C++ exception handling.
6852 * corelow.c: Use C++ exception handling.
6853 * completer.c: Use C++ exception handling.
6854 * compile/compile-object-run.c: Use C++ exception handling.
6855 * compile/compile-object-load.c: Use C++ exception handling.
6856 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6857 * compile/compile-c-symbols.c: Use C++ exception handling.
6858 * common/selftest.c: Use C++ exception handling.
6859 * common/new-op.c: Use C++ exception handling.
6860 * cli/cli-script.c: Use C++ exception handling.
6861 * cli/cli-interp.c: Use C++ exception handling.
6862 * cli/cli-cmds.c: Use C++ exception handling.
6863 * c-varobj.c: Use C++ exception handling.
6864 * btrace.c: Use C++ exception handling.
6865 * breakpoint.c: Use C++ exception handling.
6866 * break-catch-throw.c: Use C++ exception handling.
6867 * arch-utils.c: Use C++ exception handling.
6868 * amd64-tdep.c: Use C++ exception handling.
6869 * ada-valprint.c: Use C++ exception handling.
6870 * ada-typeprint.c: Use C++ exception handling.
6871 * ada-lang.c: Use C++ exception handling.
6872 * aarch64-tdep.c: Use C++ exception handling.
6873
3d6e9d23
TT
68742019-04-08 Tom Tromey <tom@tromey.com>
6875
6876 * xml-support.c (gdb_xml_parser::parse): Update.
6877 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6878 * value.c (show_convenience): Update.
6879 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6880 (test_parse_flags_qcs): Update.
6881 * thread.c (thr_try_catch_cmd): Update.
6882 * target.c (target_translate_tls_address): Update.
6883 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6884 (info_frame_command_core, frame_apply_command_count): Update.
6885 * rust-exp.y (rust_lex_exception_test): Update.
6886 * riscv-tdep.c (riscv_print_one_register_info): Update.
6887 * remote.c (remote_target::enable_btrace): Update.
6888 * record-btrace.c (record_btrace_enable_warn): Update.
6889 * python/py-utils.c (gdbpy_convert_exception): Update.
6890 * printcmd.c (do_one_display, print_variable_and_value): Update.
6891 * mi/mi-main.c (mi_print_exception): Update.
6892 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6893 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6894 * linux-nat.c (linux_nat_target::attach): Update.
6895 * linux-fork.c (class scoped_switch_fork_info): Update.
6896 * infrun.c (displaced_step_prepare): Update.
6897 * infcall.c (call_function_by_hand_dummy): Update.
6898 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6899 * gnu-v3-abi.c (print_one_vtable): Update.
6900 * frame.c (get_prev_frame_always): Update.
6901 * f-valprint.c (info_common_command_for_block): Update.
6902 * exec.c (try_open_exec_file): Update.
6903 * exceptions.c (print_exception, exception_print)
6904 (exception_fprintf, exception_print_same): Update.
6905 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6906 * dwarf-index-cache.c (index_cache::store)
6907 (index_cache::lookup_gdb_index): Update.
6908 * darwin-nat.c (maybe_cache_shell): Update.
6909 * cp-valprint.c (cp_print_value_fields): Update.
6910 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6911 (gcc_cplus_symbol_address): Update.
6912 * compile/compile-c-symbols.c (gcc_convert_symbol)
6913 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6914 * common/selftest.c: Update.
6915 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6916 a std::string.
6917 (exception_try_scope_entry, exception_try_scope_exit): Don't
6918 declare.
6919 (struct exception_try_scope): Remove.
6920 (TRY): Don't use exception_try_scope.
6921 (struct gdb_exception): Add constructor, operator=.
6922 <what>: New method.
6923 (struct gdb_exception_RETURN_MASK_ALL)
6924 (struct gdb_exception_RETURN_MASK_ERROR)
6925 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6926 (struct gdb_quit_bad_alloc): Update.
6927 * common/common-exceptions.c (exception_none): Change
6928 initializer.
6929 (struct catcher) <state, exception>: Initialize inline.
6930 <prev>: Remove member.
6931 (current_catcher): Remove.
6932 (catchers): New global.
6933 (exceptions_state_mc_init): Simplify.
6934 (catcher_pop): Remove.
6935 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6936 (try_scope_depth, exception_try_scope_entry)
6937 (exception_try_scope_exit): Remove.
6938 (throw_exception_sjlj): Update.
6939 (exception_messages, exception_messages_size): Remove.
6940 (throw_it): Simplify.
6941 (gdb_exception_sliced_copy): Remove.
6942 (throw_exception_cxx): Update.
6943 * cli/cli-script.c (script_from_file): Update.
6944 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6945 Update.
6946 * ada-valprint.c (ada_val_print): Update.
6947 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6948 (create_excep_cond_exprs): Update.
6949
c5c10118
TT
69502019-04-08 Tom Tromey <tom@tromey.com>
6951
6952 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6953 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6954 (TRY, CATCH, END_CATCH): Remove some definitions.
6955 * common/common-exceptions.c: Don't use GDB_XCPT.
6956 (catcher_list_size): Remove.
6957 (throw_exception, throw_it): Simplify.
6958
4de283e4
TT
69592019-04-05 Tom Tromey <tom@tromey.com>
6960
6961 Revert the header-sorting patch.
6962 * ft32-tdep.c: Revert.
6963 * frv-tdep.c: Revert.
6964 * frv-linux-tdep.c: Revert.
6965 * frame.c: Revert.
6966 * frame-unwind.c: Revert.
6967 * frame-base.c: Revert.
6968 * fork-child.c: Revert.
6969 * findvar.c: Revert.
6970 * findcmd.c: Revert.
6971 * filesystem.c: Revert.
6972 * filename-seen-cache.h: Revert.
6973 * filename-seen-cache.c: Revert.
6974 * fbsd-tdep.c: Revert.
6975 * fbsd-nat.h: Revert.
6976 * fbsd-nat.c: Revert.
6977 * f-valprint.c: Revert.
6978 * f-typeprint.c: Revert.
6979 * f-lang.c: Revert.
6980 * extension.h: Revert.
6981 * extension.c: Revert.
6982 * extension-priv.h: Revert.
6983 * expprint.c: Revert.
6984 * exec.h: Revert.
6985 * exec.c: Revert.
6986 * exceptions.c: Revert.
6987 * event-top.c: Revert.
6988 * event-loop.c: Revert.
6989 * eval.c: Revert.
6990 * elfread.c: Revert.
6991 * dwarf2read.h: Revert.
6992 * dwarf2read.c: Revert.
6993 * dwarf2loc.c: Revert.
6994 * dwarf2expr.h: Revert.
6995 * dwarf2expr.c: Revert.
6996 * dwarf2-frame.c: Revert.
6997 * dwarf2-frame-tailcall.c: Revert.
6998 * dwarf-index-write.h: Revert.
6999 * dwarf-index-write.c: Revert.
7000 * dwarf-index-common.c: Revert.
7001 * dwarf-index-cache.h: Revert.
7002 * dwarf-index-cache.c: Revert.
7003 * dummy-frame.c: Revert.
7004 * dtrace-probe.c: Revert.
7005 * disasm.h: Revert.
7006 * disasm.c: Revert.
7007 * disasm-selftests.c: Revert.
7008 * dictionary.c: Revert.
7009 * dicos-tdep.c: Revert.
7010 * demangle.c: Revert.
7011 * dcache.h: Revert.
7012 * dcache.c: Revert.
7013 * darwin-nat.h: Revert.
7014 * darwin-nat.c: Revert.
7015 * darwin-nat-info.c: Revert.
7016 * d-valprint.c: Revert.
7017 * d-namespace.c: Revert.
7018 * d-lang.c: Revert.
7019 * ctf.c: Revert.
7020 * csky-tdep.c: Revert.
7021 * csky-linux-tdep.c: Revert.
7022 * cris-tdep.c: Revert.
7023 * cris-linux-tdep.c: Revert.
7024 * cp-valprint.c: Revert.
7025 * cp-support.c: Revert.
7026 * cp-namespace.c: Revert.
7027 * cp-abi.c: Revert.
7028 * corelow.c: Revert.
7029 * corefile.c: Revert.
7030 * continuations.c: Revert.
7031 * completer.h: Revert.
7032 * completer.c: Revert.
7033 * complaints.c: Revert.
7034 * coffread.c: Revert.
7035 * coff-pe-read.c: Revert.
7036 * cli-out.h: Revert.
7037 * cli-out.c: Revert.
7038 * charset.c: Revert.
7039 * c-varobj.c: Revert.
7040 * c-valprint.c: Revert.
7041 * c-typeprint.c: Revert.
7042 * c-lang.c: Revert.
7043 * buildsym.c: Revert.
7044 * buildsym-legacy.c: Revert.
7045 * build-id.h: Revert.
7046 * build-id.c: Revert.
7047 * btrace.c: Revert.
7048 * bsd-uthread.c: Revert.
7049 * breakpoint.h: Revert.
7050 * breakpoint.c: Revert.
7051 * break-catch-throw.c: Revert.
7052 * break-catch-syscall.c: Revert.
7053 * break-catch-sig.c: Revert.
7054 * blockframe.c: Revert.
7055 * block.c: Revert.
7056 * bfin-tdep.c: Revert.
7057 * bfin-linux-tdep.c: Revert.
7058 * bfd-target.c: Revert.
7059 * bcache.c: Revert.
7060 * ax-general.c: Revert.
7061 * ax-gdb.h: Revert.
7062 * ax-gdb.c: Revert.
7063 * avr-tdep.c: Revert.
7064 * auxv.c: Revert.
7065 * auto-load.c: Revert.
7066 * arm-wince-tdep.c: Revert.
7067 * arm-tdep.c: Revert.
7068 * arm-symbian-tdep.c: Revert.
7069 * arm-pikeos-tdep.c: Revert.
7070 * arm-obsd-tdep.c: Revert.
7071 * arm-nbsd-tdep.c: Revert.
7072 * arm-nbsd-nat.c: Revert.
7073 * arm-linux-tdep.c: Revert.
7074 * arm-linux-nat.c: Revert.
7075 * arm-fbsd-tdep.c: Revert.
7076 * arm-fbsd-nat.c: Revert.
7077 * arm-bsd-tdep.c: Revert.
7078 * arch-utils.c: Revert.
7079 * arc-tdep.c: Revert.
7080 * arc-newlib-tdep.c: Revert.
7081 * annotate.h: Revert.
7082 * annotate.c: Revert.
7083 * amd64-windows-tdep.c: Revert.
7084 * amd64-windows-nat.c: Revert.
7085 * amd64-tdep.c: Revert.
7086 * amd64-sol2-tdep.c: Revert.
7087 * amd64-obsd-tdep.c: Revert.
7088 * amd64-obsd-nat.c: Revert.
7089 * amd64-nbsd-tdep.c: Revert.
7090 * amd64-nbsd-nat.c: Revert.
7091 * amd64-nat.c: Revert.
7092 * amd64-linux-tdep.c: Revert.
7093 * amd64-linux-nat.c: Revert.
7094 * amd64-fbsd-tdep.c: Revert.
7095 * amd64-fbsd-nat.c: Revert.
7096 * amd64-dicos-tdep.c: Revert.
7097 * amd64-darwin-tdep.c: Revert.
7098 * amd64-bsd-nat.c: Revert.
7099 * alpha-tdep.c: Revert.
7100 * alpha-obsd-tdep.c: Revert.
7101 * alpha-nbsd-tdep.c: Revert.
7102 * alpha-mdebug-tdep.c: Revert.
7103 * alpha-linux-tdep.c: Revert.
7104 * alpha-linux-nat.c: Revert.
7105 * alpha-bsd-tdep.c: Revert.
7106 * alpha-bsd-nat.c: Revert.
7107 * aix-thread.c: Revert.
7108 * agent.c: Revert.
7109 * addrmap.c: Revert.
7110 * ada-varobj.c: Revert.
7111 * ada-valprint.c: Revert.
7112 * ada-typeprint.c: Revert.
7113 * ada-tasks.c: Revert.
7114 * ada-lang.c: Revert.
7115 * aarch64-tdep.c: Revert.
7116 * aarch64-ravenscar-thread.c: Revert.
7117 * aarch64-newlib-tdep.c: Revert.
7118 * aarch64-linux-tdep.c: Revert.
7119 * aarch64-linux-nat.c: Revert.
7120 * aarch64-fbsd-tdep.c: Revert.
7121 * aarch64-fbsd-nat.c: Revert.
7122 * aarch32-linux-nat.c: Revert.
7123
d55e5aa6
TT
71242019-04-05 Tom Tromey <tom@tromey.com>
7125
7126 * ft32-tdep.c: Sort headers.
7127 * frv-tdep.c: Sort headers.
7128 * frv-linux-tdep.c: Sort headers.
7129 * frame.c: Sort headers.
7130 * frame-unwind.c: Sort headers.
7131 * frame-base.c: Sort headers.
7132 * fork-child.c: Sort headers.
7133 * findvar.c: Sort headers.
7134 * findcmd.c: Sort headers.
7135 * filesystem.c: Sort headers.
7136 * filename-seen-cache.h: Sort headers.
7137 * filename-seen-cache.c: Sort headers.
7138 * fbsd-tdep.c: Sort headers.
7139 * fbsd-nat.h: Sort headers.
7140 * fbsd-nat.c: Sort headers.
7141 * f-valprint.c: Sort headers.
7142 * f-typeprint.c: Sort headers.
7143 * f-lang.c: Sort headers.
7144 * extension.h: Sort headers.
7145 * extension.c: Sort headers.
7146 * extension-priv.h: Sort headers.
7147 * expprint.c: Sort headers.
7148 * exec.h: Sort headers.
7149 * exec.c: Sort headers.
7150 * exceptions.c: Sort headers.
7151 * event-top.c: Sort headers.
7152 * event-loop.c: Sort headers.
7153 * eval.c: Sort headers.
7154 * elfread.c: Sort headers.
7155 * dwarf2read.h: Sort headers.
7156 * dwarf2read.c: Sort headers.
7157 * dwarf2loc.c: Sort headers.
7158 * dwarf2expr.h: Sort headers.
7159 * dwarf2expr.c: Sort headers.
7160 * dwarf2-frame.c: Sort headers.
7161 * dwarf2-frame-tailcall.c: Sort headers.
7162 * dwarf-index-write.h: Sort headers.
7163 * dwarf-index-write.c: Sort headers.
7164 * dwarf-index-common.c: Sort headers.
7165 * dwarf-index-cache.h: Sort headers.
7166 * dwarf-index-cache.c: Sort headers.
7167 * dummy-frame.c: Sort headers.
7168 * dtrace-probe.c: Sort headers.
7169 * disasm.h: Sort headers.
7170 * disasm.c: Sort headers.
7171 * disasm-selftests.c: Sort headers.
7172 * dictionary.c: Sort headers.
7173 * dicos-tdep.c: Sort headers.
7174 * demangle.c: Sort headers.
7175 * dcache.h: Sort headers.
7176 * dcache.c: Sort headers.
7177 * darwin-nat.h: Sort headers.
7178 * darwin-nat.c: Sort headers.
7179 * darwin-nat-info.c: Sort headers.
7180 * d-valprint.c: Sort headers.
7181 * d-namespace.c: Sort headers.
7182 * d-lang.c: Sort headers.
7183 * ctf.c: Sort headers.
7184 * csky-tdep.c: Sort headers.
7185 * csky-linux-tdep.c: Sort headers.
7186 * cris-tdep.c: Sort headers.
7187 * cris-linux-tdep.c: Sort headers.
7188 * cp-valprint.c: Sort headers.
7189 * cp-support.c: Sort headers.
7190 * cp-namespace.c: Sort headers.
7191 * cp-abi.c: Sort headers.
7192 * corelow.c: Sort headers.
7193 * corefile.c: Sort headers.
7194 * continuations.c: Sort headers.
7195 * completer.h: Sort headers.
7196 * completer.c: Sort headers.
7197 * complaints.c: Sort headers.
7198 * coffread.c: Sort headers.
7199 * coff-pe-read.c: Sort headers.
7200 * cli-out.h: Sort headers.
7201 * cli-out.c: Sort headers.
7202 * charset.c: Sort headers.
7203 * c-varobj.c: Sort headers.
7204 * c-valprint.c: Sort headers.
7205 * c-typeprint.c: Sort headers.
7206 * c-lang.c: Sort headers.
7207 * buildsym.c: Sort headers.
7208 * buildsym-legacy.c: Sort headers.
7209 * build-id.h: Sort headers.
7210 * build-id.c: Sort headers.
7211 * btrace.c: Sort headers.
7212 * bsd-uthread.c: Sort headers.
7213 * breakpoint.h: Sort headers.
7214 * breakpoint.c: Sort headers.
7215 * break-catch-throw.c: Sort headers.
7216 * break-catch-syscall.c: Sort headers.
7217 * break-catch-sig.c: Sort headers.
7218 * blockframe.c: Sort headers.
7219 * block.c: Sort headers.
7220 * bfin-tdep.c: Sort headers.
7221 * bfin-linux-tdep.c: Sort headers.
7222 * bfd-target.c: Sort headers.
7223 * bcache.c: Sort headers.
7224 * ax-general.c: Sort headers.
7225 * ax-gdb.h: Sort headers.
7226 * ax-gdb.c: Sort headers.
7227 * avr-tdep.c: Sort headers.
7228 * auxv.c: Sort headers.
7229 * auto-load.c: Sort headers.
7230 * arm-wince-tdep.c: Sort headers.
7231 * arm-tdep.c: Sort headers.
7232 * arm-symbian-tdep.c: Sort headers.
7233 * arm-pikeos-tdep.c: Sort headers.
7234 * arm-obsd-tdep.c: Sort headers.
7235 * arm-nbsd-tdep.c: Sort headers.
7236 * arm-nbsd-nat.c: Sort headers.
7237 * arm-linux-tdep.c: Sort headers.
7238 * arm-linux-nat.c: Sort headers.
7239 * arm-fbsd-tdep.c: Sort headers.
7240 * arm-fbsd-nat.c: Sort headers.
7241 * arm-bsd-tdep.c: Sort headers.
7242 * arch-utils.c: Sort headers.
7243 * arc-tdep.c: Sort headers.
7244 * arc-newlib-tdep.c: Sort headers.
7245 * annotate.h: Sort headers.
7246 * annotate.c: Sort headers.
7247 * amd64-windows-tdep.c: Sort headers.
7248 * amd64-windows-nat.c: Sort headers.
7249 * amd64-tdep.c: Sort headers.
7250 * amd64-sol2-tdep.c: Sort headers.
7251 * amd64-obsd-tdep.c: Sort headers.
7252 * amd64-obsd-nat.c: Sort headers.
7253 * amd64-nbsd-tdep.c: Sort headers.
7254 * amd64-nbsd-nat.c: Sort headers.
7255 * amd64-nat.c: Sort headers.
7256 * amd64-linux-tdep.c: Sort headers.
7257 * amd64-linux-nat.c: Sort headers.
7258 * amd64-fbsd-tdep.c: Sort headers.
7259 * amd64-fbsd-nat.c: Sort headers.
7260 * amd64-dicos-tdep.c: Sort headers.
7261 * amd64-darwin-tdep.c: Sort headers.
7262 * amd64-bsd-nat.c: Sort headers.
7263 * alpha-tdep.c: Sort headers.
7264 * alpha-obsd-tdep.c: Sort headers.
7265 * alpha-nbsd-tdep.c: Sort headers.
7266 * alpha-mdebug-tdep.c: Sort headers.
7267 * alpha-linux-tdep.c: Sort headers.
7268 * alpha-linux-nat.c: Sort headers.
7269 * alpha-bsd-tdep.c: Sort headers.
7270 * alpha-bsd-nat.c: Sort headers.
7271 * aix-thread.c: Sort headers.
7272 * agent.c: Sort headers.
7273 * addrmap.c: Sort headers.
7274 * ada-varobj.c: Sort headers.
7275 * ada-valprint.c: Sort headers.
7276 * ada-typeprint.c: Sort headers.
7277 * ada-tasks.c: Sort headers.
7278 * ada-lang.c: Sort headers.
7279 * aarch64-tdep.c: Sort headers.
7280 * aarch64-ravenscar-thread.c: Sort headers.
7281 * aarch64-newlib-tdep.c: Sort headers.
7282 * aarch64-linux-tdep.c: Sort headers.
7283 * aarch64-linux-nat.c: Sort headers.
7284 * aarch64-fbsd-tdep.c: Sort headers.
7285 * aarch64-fbsd-nat.c: Sort headers.
7286 * aarch32-linux-nat.c: Sort headers.
7287
699bd4cf
TT
72882019-04-04 Tom Tromey <tom@tromey.com>
7289
7290 * varobj.c (varobj_create): Update.
7291 * rust-exp.y (struct rust_parser) <update_innermost_block,
7292 lookup_symbol>: New methods.
7293 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7294 Rename.
7295 (rust_parser::rust_lookup_type)
7296 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7297 * printcmd.c (display_command, do_one_display): Update.
7298 * parser-defs.h (struct parser_state) <parser_state>: Add
7299 "tracker" parameter.
7300 (block_tracker): New member.
7301 (class innermost_block_tracker) <innermost_block_tracker>: Add
7302 "types" parameter.
7303 <reset>: Remove method.
7304 (innermost_block): Don't declare.
7305 (null_post_parser): Update.
7306 * parse.c (innermost_block): Remove global.
7307 (write_dollar_variable): Update.
7308 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7309 Remove "tracker_types" parameter.
7310 (parse_expression): Add "tracker" parameter.
7311 (parse_expression_for_completion): Update.
7312 (null_post_parser): Add "tracker" parameter.
7313 * p-exp.y: Update rules.
7314 * m2-exp.y: Update rules.
7315 * language.h (struct language_defn) <la_post_parser>: Add
7316 "tracker" parameter.
7317 * go-exp.y: Update rules.
7318 * f-exp.y: Update rules.
7319 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7320 parameter.
7321 * d-exp.y: Update rules.
7322 * c-exp.y: Update rules.
7323 * breakpoint.c (set_breakpoint_condition): Create an
7324 innermost_block_tracker.
7325 (watch_command_1): Likewise.
7326 * ada-lang.c (resolve): Add "tracker" parameter.
7327 (resolve_subexp): Likewise.
7328 * ada-exp.y (write_var_from_sym): Update.
7329
dac43e32
TT
73302019-04-04 Tom Tromey <tom@tromey.com>
7331
7332 * type-stack.h: New file.
7333 * type-stack.c: New file.
7334 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7335 type-stack.h.
7336 (insert_into_type_stack, insert_type, push_type, push_type_int)
7337 (insert_type_address_space, pop_type, pop_type_int)
7338 (pop_typelist, pop_type_stack, append_type_stack)
7339 (push_type_stack, get_type_stack, push_typelist)
7340 (follow_type_instance_flags, follow_types): Don't declare.
7341 * parse.c (type_stack): Remove global.
7342 (parse_exp_in_context): Update.
7343 (insert_into_type_stack, insert_type, push_type, push_type_int)
7344 (insert_type_address_space, pop_type, pop_type_int)
7345 (pop_typelist, pop_type_stack, append_type_stack)
7346 (push_type_stack, get_type_stack, push_typelist)
7347 (follow_type_instance_flags, follow_types): Remove (moved to
7348 type-stack.c).
7349 * f-exp.y (type_stack): New global.
7350 Update rules.
7351 (push_kind_type, f_parse): Update.
7352 * d-exp.y (type_stack): New global.
7353 Update rules.
7354 (d_parse): Update.
7355 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7356 Update rules.
7357 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7358 (HFILES_NO_SRCDIR): Add type-stack.h.
7359
2a612529
TT
73602019-04-04 Tom Tromey <tom@tromey.com>
7361
7362 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7363 (rust_parser::convert_ast_to_expression, rust_parse)
7364 (rust_lex_test_completion, rust_lex_tests): Update.
7365 * parser-defs.h (struct expr_completion_state): New.
7366 (struct parser_state) <parser_state>: Add completion parameter.
7367 <mark_struct_expression, mark_completion_tag>: New methods.
7368 <parse_completion, m_completion_state>: New members.
7369 (prefixify_expression, null_post_parser): Update.
7370 (mark_struct_expression, mark_completion_tag): Don't declare.
7371 * parse.c (parse_completion, expout_last_struct)
7372 (expout_tag_completion_type, expout_completion_name): Remove
7373 globals.
7374 (parser_state::mark_struct_expression)
7375 (parser_state::mark_completion_tag): Now methods.
7376 (prefixify_expression): Add last_struct parameter.
7377 (prefixify_subexp): Likewise.
7378 (parse_exp_1): Update.
7379 (parse_exp_in_context): Add cstate parameter. Update.
7380 (parse_expression_for_completion): Create an
7381 expr_completion_state.
7382 (null_post_parser): Add "completion" parameter.
7383 * p-exp.y: Update rules.
7384 (yylex): Update.
7385 * language.h (struct language_defn) <la_post_parser>: Add
7386 "completing" parameter.
7387 * go-exp.y: Update rules.
7388 (lex_one_token): Update.
7389 * expression.h (parse_completion): Don't declare.
7390 * d-exp.y: Update rules.
7391 (lex_one_token): Update rules.
7392 * c-exp.y: Update rules.
7393 (lex_one_token): Update.
7394 * ada-lang.c (resolve): Add "parse_completion" parameter.
7395 (resolve_subexp): Likewise.
7396 (ada_resolve_function): Likewise.
7397
43476f0b
TT
73982019-04-04 Tom Tromey <tom@tromey.com>
7399
7400 * parser-defs.h (struct parser_state) <start_arglist,
7401 end_arglist>: New methods.
7402 <arglist_len, m_funcall_chain>: New members.
7403 (arglist_len, start_arglist, end_arglist): Don't declare.
7404 * parse.c (arglist_len, funcall_chain): Remove global.
7405 (start_arglist, end_arglist): Remove functions.
7406 (parse_exp_in_context): Update.
7407 * p-exp.y: Update rules.
7408 * m2-exp.y: Update rules.
7409 * go-exp.y: Update rules.
7410 * f-exp.y: Update rules.
7411 * d-exp.y: Update rules.
7412 * c-exp.y: Update rules.
7413
5776fca3
TT
74142019-04-04 Tom Tromey <tom@tromey.com>
7415
7416 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7417 lex_operator, push_back>: New methods.
7418 Update all rules.
7419 (rust_parser::lex_hex, lex_escape): Rename and update.
7420 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7421 (rust_parser::lex_operator): Rename and update.
7422 (rust_parser::lex_number, rustyylex, rustyyerror)
7423 (rust_lex_test_init, rust_lex_test_sequence)
7424 (rust_lex_test_push_back, rust_lex_tests): Update.
7425 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7426 parameter.
7427 <lexptr, prev_lexptr>: New members.
7428 (lexptr, prev_lexptr): Don't declare.
7429 * parse.c (lexptr, prev_lexptr): Remove globals.
7430 (parse_exp_in_context): Update.
7431 * p-exp.y (yylex, yyerror): Update.
7432 * m2-exp.y (parse_number, yylex, yyerror): Update.
7433 * go-exp.y (lex_one_token, yyerror): Update.
7434 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7435 * d-exp.y (lex_one_token, yyerror): Update.
7436 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7437 (lex_one_token, yyerror): Update.
7438 * ada-lex.l (YY_INPUT): Update.
7439 (rewind_to_char): Update.
7440 * ada-exp.y (yyerror): Update.
7441
8621b685
TT
74422019-04-04 Tom Tromey <tom@tromey.com>
7443
7444 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7445 * parser-defs.h (struct parser_state) <parser_state>: Add new
7446 parameter.
7447 <comma_terminates>: New member.
7448 (comma_terminates): Don't declare global.
7449 * parse.c (comma_terminates): Remove global.
7450 (parse_exp_in_context): Update.
7451 * p-exp.y (yylex): Update.
7452 * m2-exp.y (yylex): Update.
7453 * go-exp.y (lex_one_token): Update.
7454 * f-exp.y (yylex): Update.
7455 * d-exp.y (lex_one_token): Update.
7456 * c-exp.y (lex_one_token): Update.
7457 * ada-lex.l: Update.
7458
28aaf3fd
TT
74592019-04-04 Tom Tromey <tom@tromey.com>
7460
7461 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7462 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7463 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7464 * parser-defs.h (paren_depth): Don't declare.
7465 * parse.c (paren_depth): Remove global.
7466 (parse_exp_in_context): Update.
7467 * p-exp.y (paren_depth): New global.
7468 (pascal_parse): Initialize it.
7469 * m2-exp.y (paren_depth): New global.
7470 (m2_parse): Initialize it.
7471 * go-exp.y (paren_depth): New global.
7472 (go_parse): Initialize it.
7473 * f-exp.y (paren_depth): New global.
7474 (f_parse): Initialize it.
7475 * d-exp.y (paren_depth): New global.
7476 (d_parse): Initialize it.
7477 * c-exp.y (paren_depth): New global.
7478 (c_parse): Initialize it.
7479 * ada-lex.l (paren_depth): New global.
7480 (lexer_init): Initialize it.
7481
1e58a4a4
TT
74822019-04-04 Tom Tromey <tom@tromey.com>
7483
7484 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7485 (rust_parser::convert_ast_to_type)
7486 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7487 * parser-defs.h (struct parser_state) <parser_state>: Add
7488 parameters. Initialize new members.
7489 <expression_context_block, expression_context_pc>: New members.
7490 * parse.c (expression_context_block, expression_context_pc):
7491 Remove globals.
7492 (parse_exp_in_context): Update.
7493 * p-exp.y: Update all rules.
7494 (yylex): Update.
7495 * m2-exp.y: Update all rules.
7496 (yylex): Update.
7497 * go-exp.y (yylex): Update.
7498 * f-exp.y (yylex): Update.
7499 * d-exp.y: Update all rules.
7500 (yylex): Update.
7501 * c-exp.y: Update all rules.
7502 (lex_one_token, classify_name, yylex, c_parse): Update.
7503 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7504
37eedb39
TT
75052019-04-04 Tom Tromey <tom@tromey.com>
7506
7507 * gdbarch.h, gdbarch.c: Rebuild.
7508 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7509 * stap-probe.h:
7510 (struct stap_parse_info): Replace "parser_state" with
7511 "expr_builder".
7512 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7513 (parser_state): New class.
7514 * parse.c (expr_builder): Rename.
7515 (expr_builder::release): Rename.
7516 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7517 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7518 (write_exp_elt_longcst, write_exp_elt_floatcst)
7519 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7520 (write_exp_string_vector, write_exp_bitstring)
7521 (write_exp_msymbol, mark_struct_expression)
7522 (write_dollar_variable)
7523 (insert_type_address_space, increase_expout_size): Replace
7524 "parser_state" with "expr_builder".
7525 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7526 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7527 "parser_state" with "expr_builder".
7528
73923d7e
TT
75292019-04-04 Tom Tromey <tom@tromey.com>
7530
7531 * rust-exp.y: Replace "parse_language" with method call.
7532 * p-exp.y:
7533 (yylex): Replace "parse_language" with method call.
7534 * m2-exp.y:
7535 (yylex): Replace "parse_language" with method call.
7536 * go-exp.y (classify_name): Replace "parse_language" with method
7537 call.
7538 * f-exp.y (yylex): Replace "parse_language" with method call.
7539 * d-exp.y (lex_one_token): Replace "parse_language" with method
7540 call.
7541 * c-exp.y:
7542 (lex_one_token, classify_name, yylex): Replace "parse_language"
7543 with method call.
7544 * ada-exp.y (find_primitive_type, type_char)
7545 (type_system_address): Replace "parse_language" with method call.
7546
fa9f5be6
TT
75472019-04-04 Tom Tromey <tom@tromey.com>
7548
7549 * rust-exp.y: Replace "parse_gdbarch" with method call.
7550 * parse.c (write_dollar_variable, insert_type_address_space):
7551 Replace "parse_gdbarch" with method call.
7552 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7553 call.
7554 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7555 call.
7556 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7557 "parse_gdbarch" with method call.
7558 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7559 with method call.
7560 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7561 "parse_gdbarch" with method call.
7562 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7563 "parse_gdbarch" with method call.
7564 * c-exp.y (parse_type, parse_number, classify_name): Replace
7565 "parse_gdbarch" with method call.
7566 * ada-lex.l: Replace "parse_gdbarch" with method call.
7567 * ada-exp.y (parse_type, find_primitive_type, type_char)
7568 (type_system_address): Replace "parse_gdbarch" with method call.
7569
1201a264
TT
75702019-04-04 Tom Tromey <tom@tromey.com>
7571
7572 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7573 * stap-probe.c (stap_parse_argument): Update.
7574 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7575 initial_size parameter.
7576 * rust-exp.y (rust_lex_tests): Update.
7577 * parse.c (parser_state): Update.
7578 (parse_exp_in_context): Update.
7579 * parser-defs.h (struct parser_state) <parser_state>: Remove
7580 "initial_size" parameter.
7581
e3980ce2
TT
75822019-04-04 Tom Tromey <tom@tromey.com>
7583
7584 * parser-defs.h (increase_expout_size): Don't declare.
7585 * parse.c (increase_expout_size): Now static.
7586
e9f8e3f1
TS
75872019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7588
7589 * gnu-nat.c (gnu_nat_target::wait): Fix
7590 target_waitstatus_to_string call.
7591
d7df6549
AB
75922019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7593
7594 * eval.c (evaluate_subexp_standard): Handle internal functions
7595 during Fortran function call handling.
7596
8bdc1658
AB
75972019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7598
7599 * NEWS: Mention new internal functions.
7600 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7601 (read_base_type): Use dwarf2_init_complex_target_type.
7602 * value.c (creal_internal_fn): New function.
7603 (cimag_internal_fn): New function.
7604 (_initialize_values): Register new internal functions.
7605
c29705b7
PW
76062019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7607
7608 * infrun.c (stop_all_threads): If debug_infrun, always
7609 trace the wait status after wait_one, using
7610 target_waitstatus_to_string and target_pid_to_str.
7611 (handle_inferior_event): Replace various trace of
7612 wait status kind by a single trace.
7613 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7614 wait status kind image by target_waitstatus_to_string.
7615 * target/waitstatus.c (target_waitstatus_to_string): Fix
7616 obsolete comment.
7617
05caa1d2
TT
76182019-04-01 Tom Tromey <tromey@adacore.com>
7619
7620 PR symtab/23331:
7621 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7622
9d1447e0
SDJ
76232019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7624 Pedro Alves <palves@redhat.com>
7625
7626 * top.c (quit_force): Call 'finalize_values'.
7627 * value.c (finalize_values): New function.
7628 * value.h (finalize_values): Declare.
7629
7734102d
EZ
76302019-03-30 Eli Zaretskii <eliz@gnu.org>
7631
7632 * NEWS: Announce $_gdb_major and $_gdb_minor.
7633
7634 * top.c (init_gdb_version_vars): New function.
7635 (gdb_init): Call init_gdb_version_vars.
7636
188e1fa9
TT
76372019-03-29 Tom Tromey <tromey@adacore.com>
7638
7639 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7640 help text. Remove dead code.
7641
2880242d
KS
76422019-03-29 Keith Seitz <keiths@redhat.com>
7643
7644 From Siddhesh Poyarekar:
7645 * f-lang.h (f77_get_upperbound): Return LONGEST.
7646 (f77_get_lowerbound): Likewise.
7647 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7648 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7649 print them.
7650 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7651 plongest to format print it.
7652 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7653 (f77_get_upperbound): Likewise.
7654 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7655 LOWER_BOUND to LONGEST.
7656 (f77_create_arrayprint_offset_tbl): Likewise.
7657
cc1defb1
KS
76582019-03-29 Keith Seitz <keiths@redhat.com>
7659
7660 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7661 %s/pulongest for TYPE_LENGTH instead of %d in format
7662 strings.
7663 * ada-typerint.c (ada_print_type): Likewise.
7664 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7665 * compile/compile-c-support.c (generate_register_struct): Likewise.
7666 * gdbtypes.c (recursive_dump_type): Likewise.
7667 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7668 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7669 instead of %d in format strings.
7670 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7671 to std::min to ULONGEST.
7672 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7673 instead of %d in format strings.
7674 * tracepoint.c (info_scope_command): Likewise.
7675 * typeprint.c (print_offset_data::update)
7676 (print_offset_data::finish): Likewise.
7677 * xtensa-tdep.c (xtensa_store_return_value)
7678 (xtensa_push_dummy_call): Likewise.
7679
e432ccf1
JT
76802019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7681
7682 * windows-nat.c (display_selector): Fixed format specifications
7683 for 64-bit Cygwin.
7684
65d2b333
PW
76852019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7686
7687 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7688
f489207e
SL
76892019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7690
7691 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7692 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7693 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7694 (nios2_linux_init_abi): Install it.
7695
bffa1015
AH
76962019-03-28 Alan Hayward <alan.hayward@arm.com>
7697
7698 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7699
fc96163a
AH
77002019-03-28 Alan Hayward <alan.hayward@arm.com>
7701
7702 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7703
20dc7e9b
PW
77042019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7705 Tom Tromey <tromey@adacore.com>
7706
7707 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7708
7f5331a8
JB
77092019-03-26 Joel Brobecker <brobecker@adacore.com>
7710
7711 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7712 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7713 method to compute the bounds of range types. Also print "[evaluated]"
7714 if the bounds' values come from a dynamic evaluation.
7715
18c77628
AB
77162019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7717
7718 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7719 whitespace when pretty printing is on.
7720
53c973f2
AH
77212019-03-26 Alan Hayward <alan.hayward@arm.com>
7722
e79be6e5 7723 * ppc-linux-nat.c: Add include.
53c973f2 7724
d851aa71
AH
77252019-03-26 Alan Hayward <alan.hayward@arm.com>
7726
e79be6e5 7727 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7728
2fe7bab7
AH
77292019-03-26 Alan Hayward <alan.hayward@arm.com>
7730
e79be6e5 7731 * arm-linux-nat.c: Add include.
2fe7bab7 7732
068ef30e
SM
77332019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7734
7735 * source-cache.c (source_cache::get_source_lines): Re-read
7736 fullname after calling open_source_file.
7737
81a24d04
JB
77382019-03-25 John Baldwin <jhb@FreeBSD.org>
7739
7740 * NEWS: Mention TLS support for FreeBSD.
7741
79e7ae11
TT
77422019-03-25 Tom Tromey <tromey@adacore.com>
7743
7744 * minsyms.c (BUNCH_SIZE): Update comment.
7745 (~minimal_symbol_reader): Remove old comment.
7746 (compact_minimal_symbols): Update comment.
7747 (minimal_symbol_reader::install): Remove old comment. Update
7748 other comments.
7749
d45963c2
AH
77502019-03-25 Alan Hayward <alan.hayward@arm.com>
7751
7752 * s390-linux-nat.c: Add include.
7753
0f83012e
AH
77542019-03-25 Alan Hayward <alan.hayward@arm.com>
7755
7756 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7757 Call linux_get_hwcap.
7758 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7759 Likewise.
7760 (aarch64_linux_get_hwcap): Remove function.
7761 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7762 declaration.
7763 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7764 linux_get_hwcap.
7765 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7766 * linux-tdep.c (linux_get_hwcap): Add function.
7767 (linux_get_hwcap2): Likewise.
7768 * linux-tdep.h (linux_get_hwcap): Add declaration.
7769 (linux_get_hwcap2): Likewise.
7770 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7771 (ppc_linux_get_hwcap2): Likewise.
7772 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7773 linux_get_hwcap.
7774 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7775 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7776 (ppc_linux_nat_target::read_description): Likewise.
7777 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7778 * s390-linux-nat.c: Likewise.
7779 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7780
6640a367
TT
77812019-03-24 Tom Tromey <tom@tromey.com>
7782
7783 * ada-lang.c (standard_lookup): Simplify initialization.
7784 (ada_lookup_symbol_nonlocal): Simplify return.
7785 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7786 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7787 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7788 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7789 initialization.
7790 * solib.c (solib_global_lookup): Simplify.
7791 * symtab.c (null_block_symbol): Remove.
7792 (symbol_cache_lookup): Simplify returns.
7793 (lookup_language_this): Simplify returns.
7794 (lookup_symbol_aux): Simplify return.
7795 (lookup_local_symbol): Simplify returns.
7796 (lookup_global_symbol_from_objfile): Simplify return.
7797 (lookup_symbol_in_objfile_symtabs)
7798 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7799 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7800 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7801 * cp-namespace.c (cp_lookup_bare_symbol)
7802 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7803 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7804 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7805 (cp_lookup_symbol_via_imports): Simplify initialization.
7806 (find_symbol_in_baseclass): Likewise.
7807 * symtab.h (null_block_symbol): Remove.
7808 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7809 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7810 (d_lookup_symbol_module): Likewise.
7811 (find_symbol_in_baseclass): Simplify initialization.
7812
a930ebcd
TT
78132019-03-24 Tom Tromey <tom@tromey.com>
7814
7815 * expression.h: Don't include symtab.h.
7816 (struct block): Forward declare.
7817
582942f4
TT
78182019-03-24 Tom Tromey <tom@tromey.com>
7819
7820 * c-exp.y (typebase): Remove casts.
7821 * gdbtypes.c (lookup_unsigned_typename, )
7822 (lookup_signed_typename): Remove cast.
7823 * eval.c (parse_to_comma_and_eval): Remove cast.
7824 * parse.c (write_dollar_variable): Remove cast.
7825 * block.h (struct block) <superblock>: Now const.
7826 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7827 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7828 (map_block): Make "block" const.
7829 * symfile.h (struct quick_symbol_functions)
7830 <map_matching_symbols>: Constify block argument to "callback".
7831 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7832 const.
7833 (find_pc_sect_compunit_symtab): Make "b" const.
7834 (find_symbol_at_address): Likewise.
7835 (search_symbols): Likewise.
7836 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7837 (dw2_debug_names_lookup_symbol): Likewise.
7838 (dw2_map_matching_symbols): Update.
7839 * p-valprint.c (pascal_val_print): Remove "block".
7840 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7841 (aux_add_nonlocal_symbols): Make "block" const.
7842 (resolve_subexp): Remove cast.
7843 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7844 const.
7845 (iterate_over_file_blocks): Likewise.
7846 * f-exp.y (%union) <bval>: Remove.
7847 * coffread.c (patch_opaque_types): Make "b" const.
7848 * spu-tdep.c (spu_catch_start): Make "block" const.
7849 * c-valprint.c (print_unpacked_pointer): Remove "block".
7850 * symmisc.c (dump_symtab_1): Make "b" const.
7851 (block_depth): Make "block" const.
7852 * d-exp.y (%union) <bval>: Remove.
7853 * cp-support.h (cp_lookup_rtti_type): Update.
7854 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7855 * psymtab.c (psym_lookup_symbol): Make "block" const.
7856 (maintenance_check_psymtabs): Make "b" const.
7857 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7858 (enumerate_locals, enumerate_args): Update.
7859 * python/py-symtab.c (stpy_global_block): Make "block" const.
7860 (stpy_static_block): Likewise.
7861 * inline-frame.c (block_starting_point_at): Make "new_block"
7862 const.
7863 * block.c (find_block_in_blockvector): Make return type const.
7864 (blockvector_for_pc_sect): Make "b" const.
7865 (find_block_in_blockvector): Make "b" const.
7866
7ad417dd
TT
78672019-03-23 Tom Tromey <tom@tromey.com>
7868
7869 * varobj.c (varobj_create): Update.
7870 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7871 * printcmd.c (display_command, do_one_display): Don't reset
7872 innermost_block.
7873 * parser-defs.h (enum innermost_block_tracker_type): Move to
7874 expression.h.
7875 (innermost_block): Update comment.
7876 * parse.c (parse_exp_1): Add tracker_types parameter.
7877 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7878 tracker_types parameter. Reset innermost_block.
7879 (parse_exp_in_context): Remove.
7880 (parse_expression_for_completion): Update.
7881 * objfiles.c (~objfile): Don't reset expression_context_block or
7882 innermost_block.
7883 * expression.h (enum innermost_block_tracker_type): Move from
7884 parser-defs.h.
7885 (parse_exp_1): Add tracker_types parameter.
7886 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7887 reset innermost_block.
7888
b366c208
TT
78892019-03-23 Tom Tromey <tom@tromey.com>
7890
7891 * objfiles.h: Include bcache.h.
7892
9bb9b2f9
TT
78932019-03-23 Tom Tromey <tom@tromey.com>
7894
7895 * linespec.c (get_current_search_block): Use
7896 scoped_restore_current_language.
7897 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7898
59c28372
AH
78992019-03-22 Alan Hayward <alan.hayward@arm.com>
7900 Jiong Wang <jiong.wang@arm.com>
7901
7902 * aarch64-linux-tdep.c
7903 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7904 section.
7905 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7906
17e116a7
AH
79072019-03-22 Alan Hayward <alan.hayward@arm.com>
7908 Jiong Wang <jiong.wang@arm.com>
7909
7910 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7911 instructions.
7912 (aarch64_analyze_prologue_test): Add PACIASP test.
7913 (aarch64_prologue_prev_register): Unmask PC value.
7914
11e1b75f
AH
79152019-03-22 Alan Hayward <alan.hayward@arm.com>
7916 Jiong Wang <jiong.wang@arm.com>
7917
7918 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7919 (aarch64_dwarf2_prev_register): Unmask PC value.
7920 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7921 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7922 DW_CFA_AARCH64_negate_ra_state.
7923 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7924
34dcc7cf
AH
79252019-03-22 Alan Hayward <alan.hayward@arm.com>
7926 Jiong Wang <jiong.wang@arm.com>
7927
7928 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7929 registers.
7930 (aarch64_pseudo_register_name): Likewise.
7931 (aarch64_pseudo_register_type): Likewise.
7932 (aarch64_pseudo_register_reggroup_p): Likewise.
7933 (aarch64_gdbarch_init): Add pauth registers.
7934 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7935 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7936 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7937 (struct gdbarch_tdep): Add regnum for ra_state.
7938
1ef53e6b
AH
79392019-03-22 Alan Hayward <alan.hayward@arm.com>
7940 Jiong Wang <jiong.wang@arm.com>
7941
7942 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7943
76bed0fd
AH
79442019-03-22 Alan Hayward <alan.hayward@arm.com>
7945 Jiong Wang <jiong.wang@arm.com>
7946
7947 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7948 function.
7949 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7950 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7951 (aarch64_gdbarch_init): Add puth registers.
7952 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7953 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7954 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7955
ee4fbcfa
AH
79562019-03-22 Alan Hayward <alan.hayward@arm.com>
7957 Jiong Wang <jiong.wang@arm.com>
7958
7959 * aarch64-linux-nat.c
7960 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7961 * aarch64-linux-tdep.c
7962 (aarch64_linux_core_read_description): Likewise.
7963 (aarch64_linux_get_hwcap): New function.
7964 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7965 (aarch64_linux_get_hwcap): New declaration.
7966
6dc0ebde
AH
79672019-03-22 Alan Hayward <alan.hayward@arm.com>
7968 Jiong Wang <jiong.wang@arm.com>
7969
7970 * aarch64-linux-nat.c
7971 (aarch64_linux_nat_target::read_description): Add pauth param.
7972 * aarch64-linux-tdep.c
7973 (aarch64_linux_core_read_description): Likewise.
7974 * aarch64-tdep.c (struct target_desc): Add in pauth.
7975 (aarch64_read_description): Add pauth param.
7976 (aarch64_gdbarch_init): Likewise.
7977 * aarch64-tdep.h (aarch64_read_description): Likewise.
7978 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7979 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7980 * features/Makefile: Add new files.
7981 * features/aarch64-pauth.c: New file.
7982 * features/aarch64-pauth.xml: New file.
7983
595915c1
TT
79842019-03-20 Tom Tromey <tromey@adacore.com>
7985
7986 * infrun.c (handle_inferior_event): Rename from
7987 handle_inferior_event_1. Create a scoped_value_mark.
7988 (handle_inferior_event): Remove.
7989
4c7d57e7
TT
79902019-03-19 Tom Tromey <tromey@adacore.com>
7991
7992 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7993 * infrun.h (print_stop_event): Add "displays" parameter.
7994 * infrun.c (print_stop_event): Add "displays" parameter.
7995
cb246234
PA
79962019-03-19 Pedro Alves <palves@redhat.com>
7997
7998 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7999 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8000 to -1. Fix TABs vs spaces.
8001 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8002 * tui/tui-out.h (tui_ui_out) Add intro comments.
8003 <m_line, m_start_of_line>: In-class initialize, and add describing
8004 comment.
8005
3a0e45b2
AH
80062019-03-18 Alan Hayward <alan.hayward@arm.com>
8007
8008 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8009 variable names.
8010 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8011
5371b850
PA
80122019-03-18 Pedro Alves <palves@redhat.com>
8013 Eli Zaretskii <eliz@gnu.org>
8014
8015 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8016 m_line and m_start_of_line.
8017
b17c4cd0
EZ
80182019-03-18 Eli Zaretskii <eliz@gnu.org>
8019
8020 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8021 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8022 it returns a newline. This fixes a regression in TU mode, whereby
8023 the next line is output on the same screen line as the user input.
8024
4bd56d18
TT
80252019-03-18 Tom Tromey <tromey@adacore.com>
8026
8027 * minsyms.c (minimal_symbol_reader::install): Remove call to
8028 obstack_blank.
8029
55c10aca
PA
80302019-03-18 Pedro Alves <palves@redhat.com>
8031
8032 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8033 New globals.
8034 (apply_style): New, factored out from ...
8035 (apply_ansi_escape): ... this. Handle reverse video mode.
8036 (tui_set_reverse_mode): New function.
8037 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8038 * tui/tui-winsource.c (tui_show_source_line): Use
8039 tui_set_reverse_mode instead of setting A_STANDOUT.
8040 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8041 New setter methods.
8042
647bb750
HD
80432019-03-18 Hannes Domani <ssbssa@yahoo.de>
8044
8045 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8046 Handle tabs.
8047
bff8c71f
TT
80482019-03-18 Tom Tromey <tromey@adacore.com>
8049
8050 * ada-lang.c (empty_array): Add "high" parameter.
8051 (ada_evaluate_subexp): Update.
8052
58785d98
ST
80532019-03-17 Sergei Trofimovich <siarheit@google.com>
8054
8055 * unittests/string_view-selftests.c: Define
8056 _initialize_string_view_selftests unconditionally.
8057
d4cbef22
ВМ
80582019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8059
8060 PR gdb/24350
8061 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8062
fce4c071
ВМ
80632019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8064
8065 PR gdb/24351
8066 * windows-nat.c (display_selector): Fix format specifiers.
8067
f7f0a123
EZ
80682019-03-17 Eli Zaretskii <eliz@gnu.org>
8069
8070 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8071 tui_refill_source_window instead of tui_refresh_win, to update the
8072 current execution line. This fixes redisplay of the current line
8073 when stepping through the code with "next" or "step".
8074
ab42892f
EZ
80752019-03-16 Eli Zaretskii <eliz@gnu.org>
8076
8077 * source-cache.c (source_cache::get_source_lines): Call
8078 find_source_lines to initialize s->nlines. This fixes vertical
8079 scrolling of TUI source window when the DOWN arrow is pressed.
8080
8d8c087f
PW
80812019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8082
8083 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8084 linux-thread-db.c (_initialize_thread_db): Likewise.
8085
798e1c30
EZ
80862019-03-16 Eli Zaretskii <eliz@gnu.org>
8087
8088 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8089 wclrtoeol in tui_show_source_line". This reverts changes made in
8090 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8091
eefba3da
TT
80922019-03-15 Tom Tromey <tom@tromey.com>
8093
8094 * symtab.h (struct minimal_symbol): Derive from
8095 general_symbol_info.
8096 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8097 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8098 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8099 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8100 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8101 (MSYMBOL_SEARCH_NAME): Update.
8102 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8103 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8104 * minsyms.c (minimal_symbol_reader::record_full): Update.
8105
0de2420c
TT
81062019-03-15 Tom Tromey <tom@tromey.com>
8107
8108 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8109
042d75e4
TT
81102019-03-15 Tom Tromey <tom@tromey.com>
8111
8112 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8113 unique_xmalloc_ptr.
8114 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8115 Update.
8116 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8117 (build_minimal_symbol_hash_tables)
8118 (minimal_symbol_reader::install): Update.
8119
db92718b
TT
81202019-03-15 Tom Tromey <tom@tromey.com>
8121
8122 * symtab.c (create_demangled_names_hash): Update.
8123 (symbol_set_names): Update.
8124 * objfiles.h (struct objfile_per_bfd_storage)
8125 <demangled_names_hash>: Now an htab_up.
8126 * objfiles.c (objfile_per_bfd_storage): Simplify.
8127
d6797f46
TT
81282019-03-15 Tom Tromey <tom@tromey.com>
8129
8130 * objfiles.h (struct objfile_per_bfd_storage): Declare
8131 destructor.
8132 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8133 New.
8134 (get_objfile_bfd_data): Use new. Don't initialize
8135 language_of_main.
8136 (free_objfile_per_bfd_storage): Remove.
8137 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8138
741d7538
TT
81392019-03-15 Tom Tromey <tom@tromey.com>
8140
8141 * symfile.c (reread_symbols): Update.
8142 * objfiles.c (objfile::objfile): Update.
8143 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8144 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8145 comment.
8146 (minimal_symbol_reader::install): Update.
8147 (terminate_minimal_symbol_table): Remove.
8148 * jit.c (jit_object_close_impl): Update.
8149
788c80d1
TT
81502019-03-15 Tom Tromey <tom@tromey.com>
8151
8152 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8153 initializations.
8154
1b7a07cb
TT
81552019-03-15 Tom Tromey <tom@tromey.com>
8156
8157 * objfiles.h (struct objfile_per_bfd_storage)
8158 <demangled_hash_languages>: Now a bitset.
8159 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8160 (lookup_minimal_symbol): Update.
8161
3db066bc
TT
81622019-03-15 Tom Tromey <tom@tromey.com>
8163
8164 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8165 Don't return the symbol.
8166 * coffread.c (record_minimal_symbol): Use record_full.
8167
3fff2c37
EZ
81682019-03-14 Eli Zaretskii <eliz@gnu.org>
8169
8170 The MS-Windows port of ncurses fails to switch to a color pair if
8171 one or both of the colors are the implicit default colors. This
8172 change records the default colors when TUI is initialized, and
8173 then specifies them explicitly when a color pair uses the default
8174 colors. This allows color styling in TUI mode on MS-Windows.
8175
8176 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8177 ncurses_norm_attr.
8178 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8179 colors in ncurses_norm_attr.
8180 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8181 "none", replace it with the default color recorded in
8182 ncurses_norm_attr.
8183
3b336828
TT
81842019-03-14 Tom Tromey <tromey@adacore.com>
8185
8186 * source-cache.h (class source_cache) <get_source_lines>: Return
8187 std::string.
8188 * source-cache.c (source_cache::extract_lines): Handle case where
8189 first_pos==npos. Return std::string.
8190 (source_cache::get_source_lines): Update.
8191
d085f989
TT
81922019-03-14 Tom Tromey <tromey@adacore.com>
8193
8194 * NEWS: Add item for "style sources" commands.
8195 * source-cache.c (source_cache::get_source_lines): Check
8196 source_styling.
8197 * cli/cli-style.c (source_styling): New global.
8198 (_initialize_cli_style): Add "style sources" commands.
8199 (show_style_sources): New function.
8200 * cli/cli-style.h (source_styling): Declare.
8201
6f11e682
TT
82022019-03-14 Pedro Alves <palves@redhat.com>
8203 Tom Tromey <tromey@adacore.com>
8204
8205 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8206 * tui/tui-winsource.c (tui_refill_source_window): New function,
8207 from...
8208 (tui_horizontal_source_scroll): ... here. Move some logic.
8209 * cli/cli-style.c (set_style_enabled): Notify new observable.
8210 * tui/tui-hooks.c (tui_redisplay_source): New function.
8211 (tui_attach_detach_observers): Attach or detach
8212 tui_redisplay_source.
8213 * observable.h (source_styling_changed): New observable.
8214 * observable.c: Define source_styling_changed observable.
8215
a068643d
TT
82162019-03-13 Tom Tromey <tromey@adacore.com>
8217
8218 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8219 (i386_gnu_nat_target::store_registers): Update.
8220 * target-debug.h (target_debug_print_std_string): New macro.
8221 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8222 * windows-tdep.c (display_one_tib): Update.
8223 * tui/tui-stack.c (tui_make_status_line): Update.
8224 * top.c (print_inferior_quit_action): Update.
8225 * thread.c (thr_try_catch_cmd): Update.
8226 (add_thread_with_info): Update.
8227 (thread_target_id_str): Update.
8228 (thr_try_catch_cmd): Update.
8229 (thread_command): Update.
8230 (thread_find_command): Update.
8231 * record-btrace.c (record_btrace_target::info_record)
8232 (record_btrace_resume_thread, record_btrace_target::resume)
8233 (record_btrace_cancel_resume, record_btrace_step_thread)
8234 (record_btrace_target::wait, record_btrace_target::wait)
8235 (record_btrace_target::wait, record_btrace_target::stop): Update.
8236 * progspace.c (print_program_space): Update.
8237 * process-stratum-target.c
8238 (process_stratum_target::thread_address_space): Update.
8239 * linux-fork.c (linux_fork_mourn_inferior)
8240 (detach_checkpoint_command, info_checkpoints_command)
8241 (linux_fork_context): Update.
8242 (linux_fork_detach): Update.
8243 (class scoped_switch_fork_info): Update.
8244 (delete_checkpoint_command): Update.
8245 * infrun.c (follow_fork_inferior): Update.
8246 (follow_fork_inferior): Update.
8247 (proceed_after_vfork_done): Update.
8248 (handle_vfork_child_exec_or_exit): Update.
8249 (follow_exec): Update.
8250 (displaced_step_prepare_throw): Update.
8251 (displaced_step_restore): Update.
8252 (start_step_over): Update.
8253 (resume_1): Update.
8254 (clear_proceed_status_thread): Update.
8255 (proceed): Update.
8256 (print_target_wait_results): Update.
8257 (do_target_wait): Update.
8258 (context_switch): Update.
8259 (stop_all_threads): Update.
8260 (restart_threads): Update.
8261 (finish_step_over): Update.
8262 (handle_signal_stop): Update.
8263 (switch_back_to_stepped_thread): Update.
8264 (keep_going_pass_signal): Update.
8265 (print_exited_reason): Update.
8266 (normal_stop): Update.
8267 * inferior.c (inferior_pid_to_str): Change return type.
8268 (print_selected_inferior): Update.
8269 (add_inferior): Update.
8270 (detach_inferior): Update.
8271 * dummy-frame.c (fprint_dummy_frames): Update.
8272 * dcache.c (dcache_info_1): Update.
8273 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8274 (btrace_fetch, btrace_clear): Update.
8275 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8276 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8277 type.
8278 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8279 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8280 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8281 * gdbarch.c, gdbarch.h: Rebuild.
8282 * gdbarch.sh (core_pid_to_str): Change return type.
8283 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8284 return type.
8285 (windows_nat_target::pid_to_str): Change return type.
8286 (windows_delete_thread): Update.
8287 (windows_nat_target::attach): Update.
8288 (windows_nat_target::files_info): Update.
8289 * target-delegates.c: Rebuild.
8290 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8291 return type.
8292 (sol_thread_target::pid_to_str): Change return type.
8293 * remote.c (class remote_target) <pid_to_str>: Change return
8294 type.
8295 (remote_target::pid_to_str): Change return type.
8296 (extended_remote_target::attach, remote_target::remote_stop_ns)
8297 (remote_target::remote_notif_remove_queued_reply)
8298 (remote_target::push_stop_reply, remote_target::disable_btrace):
8299 Update.
8300 (extended_remote_target::attach): Update.
8301 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8302 type.
8303 (gdbsim_target::pid_to_str): Change return type.
8304 * ravenscar-thread.c (struct ravenscar_thread_target)
8305 <pid_to_str>: Change return type.
8306 (ravenscar_thread_target::pid_to_str): Change return type.
8307 * procfs.c (class procfs_target) <pid_to_str>: Change return
8308 type.
8309 (procfs_target::pid_to_str): Change return type.
8310 (procfs_target::attach): Update.
8311 (procfs_target::detach): Update.
8312 (procfs_target::fetch_registers): Update.
8313 (procfs_target::store_registers): Update.
8314 (procfs_target::wait): Update.
8315 (procfs_target::files_info): Update.
8316 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8317 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8318 return type.
8319 (nto_procfs_target::pid_to_str): Change return type.
8320 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8321 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8322 return type.
8323 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8324 (exit_lwp): Update.
8325 (attach_proc_task_lwp_callback, get_detach_signal)
8326 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8327 (linux_nat_target::resume, wait_lwp, stop_callback)
8328 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8329 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8330 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8331 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8332 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8333 type.
8334 (inf_ptrace_target::attach): Update.
8335 (inf_ptrace_target::files_info): Update.
8336 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8337 type.
8338 (go32_nat_target::pid_to_str): Change return type.
8339 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8340 (gnu_nat_target::wait): Update.
8341 (gnu_nat_target::wait): Update.
8342 (gnu_nat_target::resume): Update.
8343 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8344 (fbsd_nat_target::wait): Update.
8345 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8346 type.
8347 (darwin_nat_target::attach): Update.
8348 * corelow.c (class core_target) <pid_to_str>: Change return type.
8349 (core_target::pid_to_str): Change return type.
8350 * target.c (normal_pid_to_str): Change return type.
8351 (default_pid_to_str): Likewise.
8352 (target_pid_to_str): Change return type.
8353 (target_translate_tls_address): Update.
8354 (target_announce_detach): Update.
8355 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8356 return type.
8357 (bsd_uthread_target::pid_to_str): Change return type.
8358 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8359 type.
8360 (bsd_kvm_target::pid_to_str): Change return type.
8361 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8362 return type.
8363 (aix_thread_target::pid_to_str): Change return type.
8364 * target.h (struct target_ops) <pid_to_str>: Change return type.
8365 (target_pid_to_str, normal_pid_to_str): Likewise.
8366 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8367 type.
8368 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8369 type.
8370 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8371 return type.
8372 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8373 type.
8374 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8375 type.
8376 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8377 return type.
8378
b4be1b06
SM
83792019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8380
8381 * NEWS: Mention that the new default MI version is 3. Mention
8382 changes to the output of commands and events that deal with
8383 multi-location breakpoints.
8384 * breakpoint.c: Include "mi/mi-out.h".
8385 (print_one_breakpoint): Change output syntax if using MI version
8386 >= 3.
8387 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8388 New.
8389 (mi_multi_location_breakpoint_output_fixed): New.
8390 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8391 (mi_cmd_fix_multi_location_breakpoint_output): New.
8392 (mi_multi_location_breakpoint_output_fixed): New.
8393 * mi/mi-cmds.c (mi_cmds): Register command
8394 -fix-multi-location-breakpoint-output.
8395 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8396 interpreter "mi".
8397
8e5e5494
SM
83982019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8399
8400 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8401 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8402 instantiate mi_ui_out based on interpreter name.
8403 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8404 * mi/mi-main.c (mi_load_progress): Likewise.
8405
197df35e
JB
84062019-03-12 John Baldwin <jhb@FreeBSD.org>
8407
8408 * NEWS: Combine separate "New targets" sections for 8.3.
8409
8399425f
JB
84102019-03-12 John Baldwin <jhb@FreeBSD.org>
8411
8412 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8413 (ppcfbsd_init_abi): Install gdbarch
8414 "fetch_tls_load_module_address" and "get_thread_local_address"
8415 methods.
8416
b0f87ed0
JB
84172019-03-12 John Baldwin <jhb@FreeBSD.org>
8418
8419 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8420 (riscv_fbsd_init_abi): Install gdbarch
8421 "fetch_tls_load_module_address" and "get_thread_local_address"
8422 methods.
8423
ce25aa57
JB
84242019-03-12 John Baldwin <jhb@FreeBSD.org>
8425
8426 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8427 (i386fbsd_init_abi): Install gdbarch
8428 "fetch_tls_load_module_address" and "get_thread_local_address"
8429 methods.
8430
f5424cfa
JB
84312019-03-12 John Baldwin <jhb@FreeBSD.org>
8432
8433 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8434 (amd64fbsd_init_abi): Install gdbarch
8435 "fetch_tls_load_module_address" and "get_thread_local_address"
8436 methods.
8437
945f3901
JB
84382019-03-12 John Baldwin <jhb@FreeBSD.org>
8439
8440 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8441 (struct fbsd_pspace_data): New type.
8442 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8443 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8444 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8445 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8446 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8447
ef0bd204
JB
84482019-03-12 John Baldwin <jhb@FreeBSD.org>
8449
8450 * gdbtypes.c (lookup_struct_elt): New function.
8451 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8452 * gdbtypes.h (struct struct_elt): New type.
8453 (lookup_struct_elt): New prototype.
8454
36c53a02
JB
84552019-03-12 John Baldwin <jhb@FreeBSD.org>
8456
8457 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8458 remove disabled code block.
8459
6e056c81
JB
84602019-03-12 John Baldwin <jhb@FreeBSD.org>
8461
8462 * gdbarch.sh (get_thread_local_address): New method.
8463 * gdbarch.h, gdbarch.c: Regenerate.
8464 * target.c (target_translate_tls_address): Use
8465 gdbarch_get_thread_local_address if present instead of
8466 target::get_thread_local_address.
8467
cd250a18
JB
84682019-03-12 John Baldwin <jhb@FreeBSD.org>
8469
8470 * target.h (target::get_thread_local_address): Update comment.
8471
df22c1e5
JB
84722019-03-12 John Baldwin <jhb@FreeBSD.org>
8473
8474 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8475 objfile->separate_debug_objfile_backlink if not NULL.
8476
dd6876c9
JB
84772019-03-12 John Baldwin <jhb@FreeBSD.org>
8478
8479 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8480 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8481 (amd64bsd_store_inferior_registers): Likewise.
8482 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8483 Enable segment base registers.
8484 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8485 PT_GETFSBASE and PT_GETGSBASE.
8486 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8487 PT_SETGSBASE.
8488 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8489 segment base registers.
8490 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8491
1163a4b7
JB
84922019-03-12 John Baldwin <jhb@FreeBSD.org>
8493
8494 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8495 Update calls to i386_target_description to add 'segments'
8496 parameter.
8497 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8498 add segment base registers.
8499 * arch/i386.c (i386_create_target_description): Add 'segments'
8500 parameter to enable segment base registers.
8501 * arch/i386.h (i386_create_target_description): Likewise.
8502 * features/i386/32bit-segments.xml: New file.
8503 * features/i386/32bit-segments.c: Generate.
8504 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8505 call to i386_target_description to add 'segments' parameter.
8506 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8507 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8508 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8509 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8510 if feature is present.
8511 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8512 Add 'segments' parameter to call to i386_target_description.
8513 (i386_target_description): Add 'segments' parameter to enable
8514 segment base registers.
8515 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8516 to call to i386_target_description.
8517 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8518 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8519 Define I386_NUM_REGS.
8520 (i386_target_description): Add 'segments' parameter to enable
8521 segment base registers.
8522
3a350822
EZ
85232019-03-12 Eli Zaretskii <eliz@gnu.org>
8524
8525 PR/24325
8526 * source-cache.c: #undef open and close, to avoid unresolved
8527 externals during linking.
8528
ffdd69cf
TT
85292019-03-12 Tom Tromey <tromey@adacore.com>
8530
8531 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8532 const. Add initializers.
8533 (_initialize_remote): Don't initialize ptid globals.
8534
ec148c57
PA
85352019-03-12 Pedro Alves <palves@redhat.com>
8536
8537 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8538
32764270
PA
85392019-03-12 Pedro Alves <palves@redhat.com>
8540
8541 * cp-name-parser.y (main): Remove unused 'len' variable.
8542
17547186
TT
85432019-03-12 Tom Tromey <tromey@adacore.com>
8544
8545 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8546 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8547
d3a70e03
TT
85482019-03-12 Tom Tromey <tromey@adacore.com>
8549
8550 * linux-nat.c (iterate_over_lwps): Update.
8551 (stop_callback): Remove parameter.
8552 (stop_wait_callback, detach_callback, resume_set_callback)
8553 (select_singlestep_lwp_callback, set_ignore_sigint)
8554 (status_callback, resumed_callback, resume_clear_callback)
8555 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8556 data parameter.
8557 (linux_nat_target::detach, linux_nat_target::resume)
8558 (linux_stop_and_wait_all_lwps, select_event_lwp)
8559 (linux_nat_filter_event, linux_nat_wait_1)
8560 (linux_nat_target::kill, linux_nat_target::stop)
8561 (linux_nat_target::stop): Update.
8562 (linux_nat_resume_callback): Change type.
8563 (resume_stopped_resumed_lwps, count_events_callback)
8564 (select_event_lwp_callback): Likewise.
8565 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8566 * arm-linux-nat.c (struct update_registers_data): Remove.
8567 (update_registers_callback): Change type.
8568 (arm_linux_insert_hw_breakpoint1): Update.
8569 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8570 parameter.
8571 (x86_linux_dr_set_addr): Update.
8572 (x86_linux_dr_set_control): Update.
8573 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8574 (iterate_over_lwps): Use gdb::function_view.
8575 * nat/aarch64-linux-hw-point.c (struct
8576 aarch64_dr_update_callback_param): Remove.
8577 (debug_reg_change_callback): Change type.
8578 (aarch64_notify_debug_reg_change): Update.
8579 * s390-linux-nat.c (s390_refresh_per_info): Update.
8580
82cb27ff
TT
85812019-03-11 Tom Tromey <tromey@adacore.com>
8582
8583 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8584 redundant assignment to "this_cu".
8585
568c0683
SM
85862019-03-08 Simon Marchi <simon.marchi@efficios.com>
8587
8588 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8589
f09ce22d
SM
85902019-03-08 Simon Marchi <simon.marchi@efficios.com>
8591
8592 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8593 from...
8594 (rank_one_type): ... this.
8595
595f96a9
SM
85962019-03-08 Simon Marchi <simon.marchi@efficios.com>
8597
8598 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8599 from...
8600 (rank_one_type): ... this.
8601
2598a94b
SM
86022019-03-08 Simon Marchi <simon.marchi@efficios.com>
8603
8604 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8605 from...
8606 (rank_one_type): ... this.
8607
7f17b20d
SM
86082019-03-08 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8611 from...
8612 (rank_one_type): ... this.
8613
2c509035
SM
86142019-03-08 Simon Marchi <simon.marchi@efficios.com>
8615
8616 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8617 from...
8618 (rank_one_type): ... this.
8619
0dd322dc
SM
86202019-03-08 Simon Marchi <simon.marchi@efficios.com>
8621
8622 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8623 from...
8624 (rank_one_type): ... this.
8625
41ea4728
SM
86262019-03-08 Simon Marchi <simon.marchi@efficios.com>
8627
8628 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8629 from...
8630 (rank_one_type): ... this.
8631
793cd1d2
SM
86322019-03-08 Simon Marchi <simon.marchi@efficios.com>
8633
8634 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8635 from...
8636 (rank_one_type): ... this.
8637
34910087
SM
86382019-03-08 Simon Marchi <simon.marchi@efficios.com>
8639
8640 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8641 from...
8642 (rank_one_type): ... this.
8643
f1f832d6
SM
86442019-03-08 Simon Marchi <simon.marchi@efficios.com>
8645
8646 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8647 from...
8648 (rank_one_type): ... this.
8649
b9f4512f
SM
86502019-03-08 Simon Marchi <simon.marchi@efficios.com>
8651
8652 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8653 from...
8654 (rank_one_type): ... this.
8655
9293fc63
SM
86562019-03-08 Simon Marchi <simon.marchi@efficios.com>
8657
8658 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8659 from...
8660 (rank_one_type): ... this.
8661
e3abbe7e
PW
86622019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8663
8664 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8665 inferior-events' shows the example events.
8666
e4adb939
EZ
86672019-03-08 Eli Zaretskii <eliz@gnu.org>
8668
8669 Support styling on native MS-Windows console
8670
8671 PR/24315
8672 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8673 on MS-Windows if $TERM is not defined.
8674
8675 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8676
8677 * posix-hdep.c (gdb_console_fputs):
8678 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8679 functions.
8680 * ui-file.h (gdb_console_fputs): Add prototype.
8681
8682 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8683 back to fputs only if the former returns zero.
8684
25629dfd
TT
86852019-03-07 Tom Tromey <tom@tromey.com>
8686
8687 * symmisc.c (print_symbol_bcache_statistics): Update.
8688 (print_objfile_statistics): Update.
8689 * symfile.c (allocate_symtab): Update.
8690 * stabsread.c: Don't include bcache.h.
8691 * psymtab.h (struct psymbol_bcache): Don't declare.
8692 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8693 (psymbol_bcache_init, psymbol_bcache_free)
8694 (psymbol_bcache_get_bcache): Don't declare.
8695 * psymtab.c (struct psymbol_bcache): Remove.
8696 (psymtab_storage::psymtab_storage): Update.
8697 (psymtab_storage::~psymtab_storage): Update.
8698 (psymbol_bcache_init, psymbol_bcache_free)
8699 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8700 (add_psymbol_to_bcache): Update.
8701 (allocate_psymtab): Update.
8702 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8703 macro_cache>: No longer pointers.
8704 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8705 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8706 * macrotab.c (macro_bcache): Update.
8707 * macroexp.c: Don't include bcache.h.
8708 * gdbtypes.c (check_types_worklist): Update.
8709 (types_deeply_equal): Remove TRY/CATCH. Update.
8710 * elfread.c (elf_symtab_read): Update.
8711 * dwarf2read.c: Don't include bcache.h.
8712 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8713 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8714 (print_bcache_statistics, bcache_memory_used): Don't declare.
8715 (struct bcache): Move from bcache.c. Add constructor, destructor,
8716 methods. Rename all data members.
8717 * bcache.c (struct bcache): Move to bcache.h.
8718 (bcache::expand_hash_table): Rename from expand_hash_table.
8719 (bcache): Remove.
8720 (bcache::insert): Rename from bcache_full.
8721 (bcache::compare): Rename from bcache_compare.
8722 (bcache_xmalloc): Remove.
8723 (bcache::~bcache): Rename from bcache_xfree.
8724 (bcache::print_statistics): Rename from print_bcache_statistics.
8725 (bcache::memory_used): Rename from bcache_memory_used.
8726
fe726667
PA
87272019-03-07 Pedro Alves <palves@redhat.com>
8728
8729 * infrun.c (normal_stop): Also check for
8730 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8731
7584bb30
AB
87322019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8733
8734 * f-lang.c (value_from_host_double): Moved to...
8735 * value.c (value_from_host_double): ...here.
8736 * value.h (value_from_host_double): Declare.
8737 * guile/scm-math.c (vlscm_convert_typed_number): Use
8738 value_from_host_double.
8739 (vlscm_convert_number): Likewise.
8740 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8741 * python/py-value.c (convert_value_from_python): Likewise.
8742
a7b1986e
TT
87432019-03-06 Tom Tromey <tom@tromey.com>
8744
8745 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8746
0ccf4211
TT
87472019-03-06 Tom Tromey <tom@tromey.com>
8748
8749 * utils.h (free_current_contents): Don't declare.
8750 * utils.c (free_current_contents): Remove.
8751
fe7b42e5
TT
87522019-03-06 Tom Tromey <tom@tromey.com>
8753
8754 * top.c (quit_force): Update.
8755 * main.c (captured_command_loop): Update.
8756 * common/new-op.c (operator new): Update.
8757 * common/common-exceptions.c (struct catcher)
8758 <save_cleanup_chain>: Remove member.
8759 (exceptions_state_mc_init): Update.
8760 (exception_try_scope_entry): Return nullptr.
8761 (exception_try_scope_exit, exception_rethrow)
8762 (throw_exception_sjlj, throw_exception_cxx): Update.
8763 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8764 (all_cleanups, do_cleanups, discard_cleanups)
8765 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8766 (restore_cleanups, restore_final_cleanups): Don't declare.
8767 (do_final_cleanups): Remove parameter.
8768 * common/cleanups.c (cleanup_chain, make_cleanup)
8769 (make_cleanup_dtor, all_cleanups, do_cleanups)
8770 (discard_my_cleanups, discard_cleanups)
8771 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8772 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8773 (null_cleanup): Remove.
8774 (do_final_cleanups): Remove parameter.
8775
c6321f19
TT
87762019-03-06 Tom Tromey <tom@tromey.com>
8777
8778 * remote.c (remote_target::remote_parse_stop_reply): Use
8779 unique_xmalloc_ptr.
8780
61b30099
TT
87812019-03-06 Tom Tromey <tom@tromey.com>
8782
8783 * stabsread.c (struct stabs_field_info): Rename from field_info.
8784 <list, fnlist>: Add initializers.
8785 <obstack>: New member.
8786 (read_member_functions, read_struct_fields, read_baseclasses):
8787 Allocate on obstack. Don't use cleanups.
8788 (read_one_struct_field, read_member_functions, read_struct_fields)
8789 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8790 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8791 (read_struct_type): Update.
8792
6cceac94
TT
87932019-03-06 Tom Tromey <tom@tromey.com>
8794
8795 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8796 * common/filestuff.h (make_cleanup_close): Don't declare.
8797 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8798 Remove.
8799
72412762
TT
88002019-03-06 Tom Tromey <tom@tromey.com>
8801
8802 * solib-aix.c: Use make_scope_exit.
8803
2b6ff1c0
TT
88042019-03-06 Tom Tromey <tom@tromey.com>
8805
8806 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8807 Use make_scope_exit.
8808
d01c5877
TT
88092019-03-06 Tom Tromey <tom@tromey.com>
8810
8811 * solib-svr4.c (disable_probes_interface): Remove parameter.
8812 (svr4_handle_solib_event): Use make_scope_exit.
8813
32603266
TT
88142019-03-06 Tom Tromey <tom@tromey.com>
8815
8816 * remote.c (struct stop_reply_deleter): Remove.
8817 (stop_reply_up): Update.
8818 (struct stop_reply): Derive from notif_event. Don't typedef.
8819 <regcache>: Now a std::vector.
8820 (stop_reply_xfree): Remove.
8821 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8822 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8823 (remote_target::discard_pending_stop_replies): Use delete.
8824 (remote_target::remote_parse_stop_reply): Update.
8825 (remote_target::process_stop_reply): Update.
8826 * remote-notif.h (struct notif_event): Add virtual destructor.
8827 Remove "dtr" member.
8828 (struct notif_client) <alloc_event>: Return a unique_ptr.
8829 (notif_event_xfree): Don't declare.
8830 (notif_event_up): New typedef.
8831 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8832 (notif_event_xfree, do_notif_event_xfree): Remove.
8833 (remote_notif_state_xfree): Update.
8834
9799571e
TT
88352019-03-06 Tom Tromey <tom@tromey.com>
8836
8837 * infrun.c (displaced_step_clear_cleanup): Now a
8838 forward_scope_exit type.
8839 (displaced_step_prepare_throw): Update.
8840 (displaced_step_fixup): Update.
8841
09e3c4ca
TT
88422019-03-06 Tom Tromey <tom@tromey.com>
8843
8844 * inferior.h (class inferior): Update comment.
8845 * gdbthread.h (class thread_info): Update comment.
8846
e2a03548
TT
88472019-03-06 Joel Brobecker <brobecker@adacore.com>
8848 Tom Tromey <tom@tromey.com>
8849
8850 * stabsread.h (struct stab_section_list): Remove.
8851 (coffstab_build_psymtabs): Update.
8852 * dbxread.c (symbuf_sections): Now a std::vector.
8853 (sect_idx): New global.
8854 (fill_symbuf): Update.
8855 (coffstab_build_psymtabs): Change type of stabsects parameter.
8856 Update.
8857 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8858 std::vector.
8859 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8860 (coff_locate_sections): Update.
8861 (coff_symfile_read): Remove cleanups. Update.
8862 (init_stringtab): Add storage parameter.
8863 (free_stringtab, free_stringtab_cleanup): Remove.
8864 (init_lineno): Add storage parameter.
8865 (free_linetab, free_linetab_cleanup): Remove.
8866
b7e60d85
PA
88672019-03-06 Pedro Alves <palves@redhat.com>
8868
8869 * linux-fork.c (fork_info::clobber_regs): Delete.
8870 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8871 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8872 comment. Adjust.
8873 (scoped_switch_fork_info::scoped_switch_fork_info)
8874 (checkpoint_command, linux_fork_context): Adjust
8875 fork_save_infrun_state calls.
8876
e52c971f
PA
88772019-03-06 Pedro Alves <palves@redhat.com>
8878
8879 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8880 (inf_has_multiple_threads): Return 'bool' and rewrite using
8881 inferior_info::threads().
8882
06974e6c
PA
88832019-03-06 Pedro Alves <palves@redhat.com>
8884
8885 * linux-fork.c: Include <list>.
8886 (fork_list): Now a std::list instance.
8887 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8888 (forks_exist_p, find_last_fork): Adjust.
8889 (new_fork): Delete.
8890 (one_fork_p): New.
8891 (add_fork): Adjust.
8892 (free_fork): Delete, folded into fork_info::~fork_info().
8893 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8894 Adjust.
8895 (init_fork_list): Delete.
8896 (linux_fork_killall, linux_fork_mourn_inferior)
8897 (linux_fork_detach, info_checkpoints_command): Adjust.
8898 (_initialize_linux_fork): No longer call init_fork_list.
8899
72f31aea
PA
89002019-03-06 Pedro Alves <palves@redhat.com>
8901
8902 * linux-fork.c (new_fork): New, split out of ...
8903 (add_fork): ... this. Return void. Move "first fork" special
8904 case from here, to ...
8905 (checkpoint_command): ... here.
8906 * linux-linux.h (add_fork): Return void.
8907
efbecbc1
AB
89082019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8909
8910 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8911
0841c79a
AB
89122019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8913 Chris January <chris.january@arm.com>
8914 David Lecomber <david.lecomber@arm.com>
8915
8916 * f-exp.y: New token, UNOP_INTRINSIC.
8917 (exp): New pattern using UNOP_INTRINSIC token.
8918 (f77_keywords): Add 'abs' keyword.
8919 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8920 (value_from_host_double): New function.
8921 (evaluate_subexp_f): Support UNOP_ABS.
8922
4a270568
AB
89232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8924
8925 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8926 types.
8927
067630bd
AB
89282019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8929
8930 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8931 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8932 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8933
3be47f7a
AB
89342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8935
8936 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8937
4d00f5d8
AB
89382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8939 Chris January <chris.january@arm.com>
8940
8941 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8942 * f-exp.y: Define 'KIND' token.
8943 (exp): New pattern for KIND expressions.
8944 (ptype): Handle types with a kind extension.
8945 (direct_abs_decl): Extend to spot kind extensions.
8946 (f77_keywords): Add 'kind' to the list.
8947 (push_kind_type): New function.
8948 (convert_to_kind_type): New function.
8949 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8950 * parse.c (operator_length_standard): Likewise.
8951 * parser-defs.h (enum type_pieces): Add tp_kind.
8952 * std-operator.def: Add UNOP_KIND.
8953
e454224f
AB
89542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8955
8956 * f-exp.y (f_parse): Set yydebug.
8957
9dad4a58
AB
89582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8959
8960 * f-lang.c (evaluate_subexp_f): New function.
8961 (exp_descriptor_f): New global.
8962 (f_language_defn): Use exp_descriptor_f instead of
8963 exp_descriptor_standard.
8964
c8f91604
AB
89652019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8966
8967 * f-exp.y (struct token): Add comments.
8968 (dot_ops): Remove uppercase versions and the end marker.
8969 (f77_keywords): Likewise.
8970 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8971 entries in the dot_ops array are case insensitive, and use
8972 strncasecmp to compare strings. Also some whitespace cleanup in
8973 this area. Similar for the f77_keywords array, except entries in
8974 this list might be case sensitive.
8975
dd9f2c76
AB
89762019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8977
8978 * f-exp.y (struct f77_boolean_val): Add comments.
8979 (boolean_values): Remove uppercase versions, and end marker.
8980 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8981 and use strncasecmp to achieve case insensitivity. Additionally,
8982 perform whitespace cleanup around this code.
8983
67a3048c
TT
89842019-03-06 Tom Tromey <tromey@adacore.com>
8985
8986 * remote-sim.c (gdbsim_target_open): Use result of
8987 gdb_argv::release.
8988
aa3cfbda
RB
89892019-03-06 Richard Bunt <richard.bunt@arm.com>
8990 Dirk Schubert <dirk.schubert@arm.com>
8991 Chris January <chris.january@arm.com>
8992
8993 * eval.c (evaluate_subexp_standard): Call Fortran argument
8994 wrapping logic.
8995 * f-lang.c (struct value): A value which can be passed into a
8996 Fortran function call.
8997 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8998 where appropriate.
8999 (struct type): Value ready for a Fortran function call.
9000 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9001 is needed.
9002 * f-lang.h (fortran_argument_convert): Declaration.
9003 (fortran_preserve_arg_pointer): Declaration.
9004 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9005
ea38e5df
TT
90062019-03-05 Tom Tromey <tromey@adacore.com>
9007
9008 * python/py-prettyprint.c (print_string_repr): Remove #if.
9009 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9010
06b5b831
TT
90112019-03-05 Tom Tromey <tromey@adacore.com>
9012
9013 * target.c (the_dummy_target): Move later. Change type to
9014 "dummy_target".
9015 (initialize_targets): Don't initialize the_dummy_target.
9016
edbd9e45
TT
90172019-03-05 Tom Tromey <tromey@adacore.com>
9018
9019 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9020 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9021
c119e040
TT
90222019-03-05 Tom Tromey <tromey@adacore.com>
9023
9024 * windows-nat.c (windows_nat_target::attach)
9025 (windows_nat_target::detach): Don't call gdb_flush.
9026 * valprint.c (generic_val_print, val_print, val_print_string):
9027 Don't call gdb_flush.
9028 * utils.c (defaulted_query): Don't call gdb_flush.
9029 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9030 * target.c (target_announce_detach): Don't call gdb_flush.
9031 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9032 * remote.c (extended_remote_target::attach): Don't call
9033 gdb_flush.
9034 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9035 * printcmd.c (do_examine): Don't call gdb_flush.
9036 (info_display_command): Don't call gdb_flush.
9037 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9038 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9039 * memattr.c (info_mem_command): Don't call gdb_flush.
9040 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9041 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9042 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9043 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9044 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9045 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9046 (gnu_nat_target::detach): Don't call gdb_flush.
9047 * f-valprint.c (f_val_print): Don't call gdb_flush.
9048 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9049 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9050 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9051 gdb_flush.
9052 * c-valprint.c (c_val_print): Don't call gdb_flush.
9053 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9054
895dafa6
TT
90552019-03-05 Tom Tromey <tromey@adacore.com>
9056
9057 * varobj.c (update_dynamic_varobj_children): Update.
9058 (install_default_visualizer): Use reset, not release.
9059 * value.c (set_internalvar): Update.
9060 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9061 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9062 ATTRIBUTE_UNUSED_RESULT.
9063
88a774b9
TT
90642019-03-05 Tom Tromey <tromey@adacore.com>
9065
9066 * remote.c (class scoped_remote_fd) <release>: Add
9067 ATTRIBUTE_UNUSED_RESULT.
9068
4e4a8b93
TT
90692019-03-05 Tom Tromey <tromey@adacore.com>
9070
9071 * macroexp.c (struct macro_buffer) <release>: Add
9072 ATTRIBUTE_UNUSED_RESULT.
9073
083eef1f
TT
90742019-03-05 Tom Tromey <tromey@adacore.com>
9075
9076 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9077 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9078 ATTRIBUTE_UNUSED_RESULT.
9079
3cabd438
TT
90802019-03-05 Tom Tromey <tromey@adacore.com>
9081
9082 * common/scoped_fd.h (class scoped_fd) <release>: Add
9083 ATTRIBUTE_UNUSED_RESULT.
9084
41e3300a
TT
90852019-03-05 Tom Tromey <tromey@adacore.com>
9086
9087 * parser-defs.h (struct parser_state) <release>: Add
9088 ATTRIBUTE_UNUSED_RESULT.
9089
18cb7c9f
TT
90902019-03-05 Tom Tromey <tromey@adacore.com>
9091
9092 * utils.h (class gdb_argv) <release>: Add
9093 ATTRIBUTE_UNUSED_RESULT.
9094 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9095
41fa577f
EZ
90962019-03-02 Eli Zaretskii <eliz@gnu.org>
9097
a6a4b2c6
EZ
9098 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9099 for-loop range, to avoid compiler warnings.
9100
9101 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9102 avoid compiler warnings about unused variables.
9103
742a7df5
EZ
9104 * NEWS: Mention end of support for native debugging on MS-Windows
9105 before XP.
9106
41fa577f
EZ
9107 PR gdb/24292
9108 * common/netstuff.c:
9109 * gdbserver/gdbreplay.c
9110 * gdbserver/remote-utils.c:
9111 * ser-tcp.c:
9112 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9113 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9114 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9115 'getaddrinfo' and 'freeaddrinfo' were not available before
9116 Windows XP, and mingw.org's MinGW headers by default define
9117 _WIN32_WINNT to 0x500.
9118
827f438f
GB
91192019-03-01 Gary Benson <gbenson@redhat.com>
9120
9121 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9122
92137da0
RO
91232019-02-28 Brian Vandenberg <phantall@gmail.com>
9124 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9125
9126 PR gdb/8527
9127 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9128 set_sigint_trap, clear_sigint_trap.
9129
799efbe8
PW
91302019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9131
9132 * target.c (target_detach): Clear the regcache and the
9133 frame cache.
9134
8ed25214
PA
91352019-02-27 Pedro Alves <palves@redhat.com>
9136
9137 * utils.c (set_screen_size): When we cap the height/width sizes,
9138 tweak the corresponding command variable to show "unlimited":
9139
23031e31
SJ
91402019-02-27 Saagar Jha <saagar@saagarjha.com>
9141 Pedro Alves <palves@redhat.com>
9142
9143 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9144 before calling rl_set_screen_size.
9145
6c28e44a
TT
91462019-02-27 Tom Tromey <tromey@adacore.com>
9147
9148 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9149 define.
9150 * python/py-value.c: Remove Python 2.4 workaround.
9151 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9152 workaround.
9153 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9154 Python 2.4 workaround.
9155 * python/python-internal.h: Remove Python 2.4 comment.
9156 (Py_ssize_t): Don't define.
9157 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9158 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9159 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9160 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9161 * python/python.c (do_start_initialization): Remove Python 2.4
9162 workaround.
9163 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9164 (print_children): Remove Python 2.4 workaround.
9165 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9166 workaround.
9167 (CHARBUFFERPROC_NAME): Remove.
9168 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9169 Python 2.4 workaround.
9170
2c3fc25d 91712019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 9172
2c3fc25d
KB
9173 * NEWS: Note minimum Python version.
9174
6ca62222
KB
91752019-02-27 Kevin Buettner <kevinb@redhat.com>
9176
9177 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9178 code from these functions. Remove corresponding ifdefs. Use
9179 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9180 Remove gotos and target of gotos.
9181 (infpy_search_memory): Likewise.
9182
f4bc7d2c
AB
91832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9184
9185 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9186 (hppa_gdbarch_init): Don't register deleted functions with
9187 gdbarch.
9188
9734a586
AB
91892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9190
9191 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9192 (h8300_unwind_sp): Delete.
9193 (h8300_dummy_id): Delete.
9194 (h8300_gdbarch_init): Don't register deleted functions with
9195 gdbarch.
9196
68b867f3
AB
91972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9198
9199 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9200 (ft32_unwind_pc): Delete.
9201 (ft32_unwind_sp): Delete.
9202 (ft32_gdbarch_init): Don't register deleted functions with
9203 gdbarch.
9204
2fbe7ad0
AB
92052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9206
9207 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9208 (frv_unwind_pc): Delete.
9209 (frv_unwind_sp): Delete.
9210 (frv_gdbarch_init): Don't register deleted functions with
9211 gdbarch.
9212
76055cbe
AB
92132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9214
9215 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9216 (riscv_unwind_pc): Delete.
9217 (riscv_unwind_sp): Delete.
9218 (riscv_gdbarch_init): Don't register deleted functions with
9219 gdbarch.
9220
4133e5a1
AB
92212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9222
9223 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9224 (csky_unwind_pc): Delete.
9225 (csky_unwind_sp): Delete.
9226 (csky_gdbarch_init): Don't register deleted functions with
9227 gdbarch.
9228
8010f576
AB
92292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9230
9231 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9232 (cris_unwind_pc): Delete.
9233 (cris_unwind_sp): Delete.
9234 (cris_gdbarch_init): Don't register deleted functions with
9235 gdbarch.
9236
b56bf084
AB
92372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9238
9239 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9240 (bfin_unwind_pc): Delete.
9241 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9242
a19a650f
AB
92432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9244
9245 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9246 (arm_unwind_pc): Delete.
9247 (arm_unwind_sp): Delete.
9248 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9249
f8278c3c
AB
92502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9251
9252 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9253 (arc_unwind_pc): Delete.
9254 (arc_unwind_sp): Delete.
9255 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9256
480e46cf
AB
92572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9258
9259 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9260 (alpha_unwind_pc): Delete.
9261 (alpha_gdbarch_init): Don't register deleted functions with
9262 gdbarch.
9263
7a995095
AB
92642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9265
9266 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9267 (aarch64_unwind_pc): Delete.
9268 (aarch64_unwind_sp): Delete.
9269 (aarch64_gdbarch_init): Don't register deleted functions with
9270 gdbarch.
9271
bf9a735e
AB
92722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9273
9274 * gdbtypes.c (type_align): Don't consider static members when
9275 computing structure alignment.
9276
5561fc30
AB
92772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9278
9279 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9280 return 0 for other types.
9281 * arch-utils.c (default_type_align): Always return 0.
9282 * gdbarch.h: Regenerate.
9283 * gdbarch.sh (type_align): Extend comment.
9284 * gdbtypes.c (type_align): Add additional comments, always call
9285 gdbarch_type_align before applying the default rules.
9286 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9287 generic code will then apply a suitable default.
9288 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9289 types, return 0 for other types.
9290
9335e75a
JB
92912019-02-27 Joel Brobecker <brobecker@adacore.com>
9292
9293 * NEWS: Create a new section for the next release branch.
9294 Rename the section of the current branch, now that it has
9295 been cut.
9296
3d34d8de
JB
92972019-02-27 Joel Brobecker <brobecker@adacore.com>
9298
9299 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9300 * version.in: Bump version to 8.3.50.DATE-git.
9301
143420fb
SM
93022019-02-26 Simon Marchi <simon.marchi@efficios.com>
9303
9304 * aix-thread.c (ptid_cmp): Remove unused variable.
9305 (get_signaled_thread): Likewise.
9306 (store_regs_user_thread): Likewise.
9307 (store_regs_kernel_thread): Likewise.
9308 (fetch_regs_kernel_thread): Remove shadowed variable.
9309
172fb711
AB
93102019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9311
9312 * features/riscv/32bit-cpu.xml: Add register numbers.
9313 * features/riscv/32bit-fpu.c: Regenerate.
9314 * features/riscv/32bit-fpu.xml: Add register numbers.
9315 * features/riscv/64bit-cpu.xml: Add register numbers.
9316 * features/riscv/64bit-fpu.c: Regenerate.
9317 * features/riscv/64bit-fpu.xml: Add register numbers.
9318
26c89782
KB
93192019-02-26 Kevin Buettner <kevinb@redhat.com>
9320
af54ade9 9321 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
9322 * python/py-value.c (convert_buffer_and_type_to_value): New
9323 function.
9324 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9325 Add support for handling an optional second argument. Call
9326 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
9327 * python/python-internal.h (Py_buffer_deleter): New struct.
9328 (Py_buffer_up): New typedef.
9329
0f58c9e8
JB
93302019-02-25 John Baldwin <jhb@FreeBSD.org>
9331
9332 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9333 instead of releasing ownership.
9334
0a0f4c01
JR
93352019-02-25 Jordan Rupprecht <rupprecht@google.com>
9336
9337 * dwarf2read.c (open_and_init_dwp_file): Call
9338 elf_numsections instead of bfd_count_sections to initialize
9339 dwp_file->num_sections.
9340
cd5a152c
TT
93412019-02-25 Tom Tromey <tromey@adacore.com>
9342
9343 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9344
8a6a8513
SDJ
93452019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9346
9347 * gcore.in: Add '--readnever' option when invoking GDB.
9348
04dcda9c
SM
93492019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9350
9351 * MAINTAINERS: Update my email address.
9352
07bc701d
SM
93532019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9354
9355 * build-id.c (build_id_to_debug_bfd_1): New function.
9356 (build_id_to_debug_bfd): Look for separate debug file in
9357 sysroot.
9358
c6f4a5d0
AB
93592019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9360
9361 * gdbarch.sh: Update the copyright year range that is placed into
9362 generated files.
9363
9600246d
KS
93642019-02-22 Keith Seitz <keiths@redhat.com>
9365
9366 PR symtab/23853
9367 * linespec.c (create_sals_line_offset): Search for the default
9368 symtab's filename instead of its fullname.
9369
7557a514
AH
93702019-02-21 Alan Hayward <alan.hayward@arm.com>
9371
9372 * NEWS: Update style defaults.
9373
ee2bcb0c
AH
93742019-02-21 Alan Hayward <alan.hayward@arm.com>
9375
9376 * main.c (captured_main_1): Disable styling in batch mode.
9377
0c95f9ed
TT
93782019-02-20 Tom Tromey <tom@tromey.com>
9379
9380 * symtab.c (symtab_symbol_info): Fix typos.
9381
c763b894
TT
93822019-02-20 Tom Tromey <tromey@adacore.com>
9383
9384 * findcmd.c (_initialize_mem_search): Use upper case for
9385 metasyntactic variables.
9386
0ef8a082
AH
93872019-02-20 Alan Hayward <alan.hayward@arm.com>
9388
9389 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9390 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9391
6caa91b6
SM
93922019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9393
9394 * top.h (source_file_name): Change to std::string.
9395 * top.c (source_file_name): Likewise.
9396 (command_line_input): Adjust.
9397 * cli/cli-script.c (script_from_file): Adjust.
9398
98814c6c
TT
93992019-02-19 Tom Tromey <tromey@adacore.com>
9400
9401 * ravenscar-thread.c
9402 (ravenscar_thread_target::update_thread_list): Don't call
9403 ada_build_task_list.
9404 * ada-lang.h (ada_build_task_list): Don't declare.
9405 * ada-tasks.c (struct ada_tasks_inferior_data)
9406 <task_list_valid_p>: Now bool.
9407 (read_known_tasks, ada_task_list_changed)
9408 (ada_tasks_invalidate_inferior_data): Update.
9409 (read_known_tasks_array): Return bool.
9410 (read_known_tasks_list): Likewise.
9411 (read_known_tasks): Return void.
9412 (ada_build_task_list): Now static.
9413
70cd633e
AB
94142019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9415
9416 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9417 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9418
040b3e95
PW
94192019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9420
9421 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9422 variant for ada_tasks_pspace_data_handle and
9423 ada_tasks_inferior_data_handle.
9424 (ada_tasks_pspace_data_cleanup): New function.
9425 (ada_tasks_inferior_data_cleanup): New function.
9426
9409233b
TT
94272019-02-17 Tom Tromey <tom@tromey.com>
9428
9429 * macrotab.h (macro_source_fullname): Return a std::string.
9430 * macrotab.c (macro_include, check_for_redefinition)
9431 (macro_undef, macro_lookup_definition, foreach_macro)
9432 (foreach_macro_in_scope): Update.
9433 (macro_source_fullname): Return a std::string.
9434 * macrocmd.c (show_pp_source_pos): Update.
9435
6506371f
TT
94362019-02-17 Tom Tromey <tom@tromey.com>
9437
9438 * macrocmd.c (show_pp_source_pos): Style the file names.
9439
0c820d67
TT
94402019-02-17 Tom Tromey <tom@tromey.com>
9441
9442 PR tui/24197:
9443 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9444
a0087920
TT
94452019-02-17 Tom Tromey <tom@tromey.com>
9446
9447 * ada-lang.c (user_select_syms): Use filtered printing.
9448 * utils.c (wrap_style): New global.
9449 (desired_style): Remove.
9450 (emit_style_escape): Add stream parameter.
9451 (set_output_style, reset_terminal_style, prompt_for_continue):
9452 Update.
9453 (flush_wrap_buffer): Only flush gdb_stdout.
9454 (wrap_here): Set wrap_style.
9455 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9456 treat escape sequences as a character. Change when wrap buffer is
9457 flushed.
9458 (fputs_styled): Do not set the output style when the default is
9459 requested.
9460 * ui-style.h (struct ui_file_style) <is_default>: New method.
9461 * source.c (print_source_lines_base): Emit escape sequences in one
9462 piece.
9463
75ba10dc
JB
94642019-02-17 Joel Brobecker <brobecker@adacore.com>
9465
9466 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9467 integers and enumeration types.
9468
a2cd4f14
JB
94692019-02-17 Joel Brobecker <brobecker@adacore.com>
9470
9471 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9472 instead of lookup_symbol_in_language
9473 (do_exact_match): New function.
9474 (ada_get_symbol_name_matcher): Return do_exact_match when
9475 doing a verbatim match.
9476
485b851b
TT
94772019-02-15 Tom Tromey <tromey@adacore.com>
9478
9479 * ravenscar-thread.c (ravenscar_thread_target::resume)
9480 (ravenscar_thread_target::wait): Special case wildcard requests.
9481
0b790b1e
TT
94822019-02-15 Tom Tromey <tromey@adacore.com>
9483
9484 * ravenscar-thread.c (base_ptid): Remove.
9485 (struct ravenscar_thread_target) <close>: New method.
9486 <m_base_ptid>: New member.
9487 <update_inferior_ptid, active_task, task_is_currently_active,
9488 runtime_initialized>: Declare methods.
9489 <ravenscar_thread_target>: Add constructor.
9490 (ravenscar_thread_target::task_is_currently_active)
9491 (ravenscar_thread_target::update_inferior_ptid)
9492 (ravenscar_runtime_initialized): Rename. Now methods.
9493 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9494 (ravenscar_thread_target::update_thread_list): Update.
9495 (ravenscar_thread_target::active_task): Now method.
9496 (ravenscar_thread_target::store_registers)
9497 (ravenscar_thread_target::prepare_to_store)
9498 (ravenscar_thread_target::prepare_to_store)
9499 (ravenscar_thread_target::mourn_inferior): Update.
9500 (ravenscar_inferior_created): Use "new" to create target.
9501 (ravenscar_thread_target::get_ada_task_ptid): Update.
9502 (_initialize_ravenscar): Don't initialize base_ptid.
9503 (ravenscar_ops): Remove global.
9504
dea57a62
TT
95052019-02-15 Tom Tromey <tromey@adacore.com>
9506
9507 * target.h (push_target): Declare new overload.
9508 * target.c (push_target): New overload, taking an rvalue reference.
9509 * remote.c (remote_target::open_1): Use push_target overload.
9510 * corelow.c (core_target_open): Use push_target overload.
9511
989f3c58
TT
95122019-02-15 Tom Tromey <tromey@adacore.com>
9513
9514 * ravenscar-thread.c (is_ravenscar_task)
9515 (ravenscar_task_is_currently_active): Return bool.
9516 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9517 (_initialize_ravenscar): Remove "(void)".
9518 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9519 Return bool.
9520
6cbcc006
TT
95212019-02-15 Tom Tromey <tromey@adacore.com>
9522
9523 * ravenscar-thread.c (ravenscar_runtime_initializer)
9524 (has_ravenscar_runtime, get_running_thread_id)
9525 (ravenscar_thread_target::resume): Fix indentation.
9526
7657f14d
TT
95272019-02-15 Tom Tromey <tromey@adacore.com>
9528
9529 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9530 from ravenscar_arch_ops.
9531 (sparc_ravenscar_ops::fetch_registers)
9532 (sparc_ravenscar_ops::store_registers): Now methods.
9533 (sparc_ravenscar_prepare_to_store): Remove.
9534 (sparc_ravenscar_ops): Redefine.
9535 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9536 methods and destructor. Remove members.
9537 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9538 (ravenscar_thread_target::store_registers)
9539 (ravenscar_thread_target::prepare_to_store): Update.
9540 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9541 Remove.
9542 (struct ppc_ravenscar_powerpc_ops): Derive from
9543 ravenscar_arch_ops.
9544 (ppc_ravenscar_powerpc_ops::fetch_registers)
9545 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9546 (ppc_ravenscar_powerpc_ops): Redefine.
9547 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9548 (ppc_ravenscar_e500_ops::fetch_registers)
9549 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9550 (ppc_ravenscar_e500_ops): Redefine.
9551 * aarch64-ravenscar-thread.c
9552 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9553 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9554 (aarch64_ravenscar_fetch_registers)
9555 (aarch64_ravenscar_store_registers): Now methods.
9556 (aarch64_ravenscar_ops): Redefine.
9557
5b6ea500
TT
95582019-02-15 Tom Tromey <tromey@adacore.com>
9559
9560 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9561 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9562 (ravenscar_thread_target::stopped_by_watchpoint)
9563 (ravenscar_thread_target::stopped_data_address)
9564 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9565
e397fd39
TT
95662019-02-15 Tom Tromey <tromey@adacore.com>
9567
9568 * ravenscar-thread.c: Fix some typos.
9569
cc12f4a8
TT
95702019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9571 Tom Tromey <tromey@adacore.com>
9572
9573 * ada-lang.c (ada_exception_sal): Change addr_string to a
9574 std::string.
9575 (create_ada_exception_catchpoint): Update.
9576
5f486660
TT
95772019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9578 Tom Tromey <tromey@adacore.com>
9579
9580 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9581 (bp_location_ops): Remove.
9582 (base_breakpoint_allocate_location): Update.
9583 (free_bp_location): Update.
9584 * ada-lang.c (class ada_catchpoint_location)
9585 <ada_catchpoint_location>: Remove ops parameter.
9586 (ada_catchpoint_location_dtor): Remove.
9587 (ada_catchpoint_location_ops): Remove.
9588 (allocate_location_exception): Update.
9589 * breakpoint.h (struct bp_location_ops): Remove.
9590 (class bp_location) <bp_location>: Remove bp_location_ops
9591 parameter.
9592 <~bp_location>: Add destructor.
9593 <ops>: Remove.
9594
b671c7fb
TS
95952019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9596 Pedro Alves <palves@redhat.com>
9597
9598 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9599 'PATH_MAX'.
9600
8071c5ce
DM
96012019-02-14 David Michael <fedora.dm0@gmail.com>
9602 Samuel Thibault <samuel.thibault@gnu.org>
9603 Thomas Schwinge <thomas@codesourcery.com>
9604
9605 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9606 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9607
b1041ae0
TS
96082019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9609
924514e1
TS
9610 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9611 (check_empty): Use "const char *".
9612
c29ee8d4
TS
9613 * gnu-nat.c (gnu_nat_target::detach): Instead of
9614 'detach_inferior (pid)' call
9615 'detach_inferior (find_inferior_pid (pid))'.
9616
6c6ef69f
TS
9617 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9618 'nat/fork-inferior.o'.
9619 * gnu-nat.c: #include "nat/fork-inferior.h".
9620
2d0a338c
TS
9621 * gnu-nat.c (gnu_nat_target::detach): Instead of
9622 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9623 * gnu-nat.h: #include "inf-child.h".
9624 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9625 'i386_gnu_nat_target::fetch_registers'.
9626 (gnu_store_registers): Rename/move to
9627 'i386_gnu_nat_target::store_registers'.
9628
cabb5f06
TS
9629 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9630 * gnu-nat.h (mach_thread_info): New function.
9631 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9632
b1041ae0
TS
9633 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9634
2988d01e
KF
96352019-02-14 Frederic Konrad <konrad@adacore.com>
9636
9637 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9638
c559d709
JB
96392019-02-14 Joel Brobecker <brobecker@adacore.com>
9640
9641 * windows-nat.c (windows_add_thread): Add new parameter
9642 "main_thread_p" with default value set to false. Update
9643 function documentation as well as all callers.
9644 (windows_delete_thread): Likewise.
9645 (fake_create_process): Update call to windows_add_thread.
9646 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9647 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9648 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9649 call to windows_delete_thread.
9650
007024cc
SM
96512019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9652
9653 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9654
f62318e9
JB
96552019-02-12 John Baldwin <jhb@FreeBSD.org>
9656
9657 * symfile.c (find_separate_debug_file): Use canonical path of
9658 sysroot with child_path instead of gdb_sysroot if it is valid.
9659
cd4b7848
JB
96602019-02-12 John Baldwin <jhb@FreeBSD.org>
9661
9662 * symfile.c (find_separate_debug_file): Use child_path to
9663 determine if an object file is under a sysroot.
9664
efac4bfe
JB
96652019-02-12 John Baldwin <jhb@FreeBSD.org>
9666
9667 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9668 unittests/child-path-selftests.c.
9669 * common/pathstuff.c (child_path): New function.
9670 * common/pathstuff.h (child_path): New prototype.
9671 * unittests/child-path-selftests.c: New file.
9672
402d2bfe
JB
96732019-02-12 John Baldwin <jhb@FreeBSD.org>
9674
9675 * symfile.c (find_separate_debug_file): Look for separate debug
9676 files in debug directories under the sysroot.
9677
1ed9f74e
PW
96782019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9679
9680 * symtab.h (struct minimal_symbol data_p): New const method.
9681 (struct minimal_symbol text_p): Likewise.
9682 * symtab.c (output_source_filename): Use file name style
9683 to print file name.
9684 (print_symbol_info): Likewise.
9685 (print_msymbol_info): Use address style to print addresses.
9686 Use function name style to print executable text symbols.
9687 (expand_symtab_containing_pc): Use data_p.
9688 (find_pc_sect_compunit_symtab): Likewise.
9689
2636d81d
PW
96902019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9691
9692 * breakpoint.c (describe_other_breakpoints): Use address style
9693 to print addresses.
9694 (say_where): Likewise.
9695
ac8c53cc
PW
96962019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9697
9698 * ada-typeprint.c (print_func_type): Print function name
9699 style to print function name.
9700 * c-typeprint.c (c_print_type_1): Likewise.
9701
ea638c43
AH
97022019-02-11 Alan Hayward <alan.hayward@arm.com>
9703
9704 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9705 for execve.
9706
ab759ca8
PW
97072019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9708
9709 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9710 type_stack.
9711
aff29d1c
JB
97122019-02-10 Joel Brobecker <brobecker@adacore.com>
9713
9714 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9715 TYPE_CODE_REF types.
9716
617126bc
JW
97172019-02-08 Jim Wilson <jimw@sifive.com>
9718
9719 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9720 (riscv_linux_fregset): New.
9721 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9722
46e3ed7f
TT
97232019-02-07 Tom Tromey <tom@tromey.com>
9724
9725 * thread.c (thread_cancel_execution_command): Update.
9726 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9727 methods.
9728 (struct thread_fsm_ops): Remove.
9729 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9730 (thread_fsm_should_stop, thread_fsm_return_value)
9731 (thread_fsm_set_finished, thread_fsm_finished_p)
9732 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9733 Don't declare.
9734 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9735 * infrun.c (clear_proceed_status_thread)
9736 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9737 (print_stop_event): Update.
9738 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9739 Add constructor.
9740 (step_command_fsm_ops): Remove.
9741 (new_step_command_fsm): Remove.
9742 (step_1): Update.
9743 (step_command_fsm::should_stop): Rename from
9744 step_command_fsm_should_stop.
9745 (step_command_fsm::clean_up): Rename from
9746 step_command_fsm_clean_up.
9747 (step_command_fsm::do_async_reply_reason): Rename from
9748 step_command_fsm_async_reply_reason.
9749 (struct until_next_fsm): Inherit from thread_fsm. Add
9750 constructor.
9751 (until_next_fsm_ops): Remove.
9752 (new_until_next_fsm): Remove.
9753 (until_next_fsm::should_stop): Rename from
9754 until_next_fsm_should_stop.
9755 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9756 (until_next_fsm::do_async_reply_reason): Rename from
9757 until_next_fsm_async_reply_reason.
9758 (struct finish_command_fsm): Inherit from thread_fsm. Add
9759 constructor. Change type of breakpoint.
9760 (finish_command_fsm_ops): Remove.
9761 (new_finish_command_fsm): Remove.
9762 (finish_command_fsm::should_stop): Rename from
9763 finish_command_fsm_should_stop.
9764 (finish_command_fsm::clean_up): Rename from
9765 finish_command_fsm_clean_up.
9766 (finish_command_fsm::return_value): Rename from
9767 finish_command_fsm_return_value.
9768 (finish_command_fsm::do_async_reply_reason): Rename from
9769 finish_command_fsm_async_reply_reason.
9770 (finish_command): Update.
9771 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9772 Add constructor.
9773 (call_thread_fsm_ops): Remove.
9774 (call_thread_fsm::call_thread_fsm): Rename from
9775 new_call_thread_fsm.
9776 (call_thread_fsm::should_stop): Rename from
9777 call_thread_fsm_should_stop.
9778 (call_thread_fsm::should_notify_stop): Rename from
9779 call_thread_fsm_should_notify_stop.
9780 (run_inferior_call, call_function_by_hand_dummy): Update.
9781 * cli/cli-interp.c (should_print_stop_to_console): Update.
9782 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9783 Add constructor. Change type of location_breakpoint,
9784 caller_breakpoint.
9785 (until_break_fsm_ops): Remove.
9786 (new_until_break_fsm): Remove.
9787 (until_break_fsm::should_stop): Rename from
9788 until_break_fsm_should_stop.
9789 (until_break_fsm::clean_up): Rename from
9790 until_break_fsm_clean_up.
9791 (until_break_fsm::do_async_reply_reason): Rename from
9792 until_break_fsm_async_reply_reason.
9793 (until_break_command): Update.
9794 * thread-fsm.c: Remove.
9795 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9796
1a5c2598
TT
97972019-02-07 Tom Tromey <tom@tromey.com>
9798
9799 * yy-remap.h: Add include guard.
9800 * xtensa-tdep.h: Add include guard.
9801 * xcoffread.h: Rename include guard.
9802 * varobj-iter.h: Add include guard.
9803 * tui/tui.h: Rename include guard.
9804 * tui/tui-winsource.h: Rename include guard.
9805 * tui/tui-wingeneral.h: Rename include guard.
9806 * tui/tui-windata.h: Rename include guard.
9807 * tui/tui-win.h: Rename include guard.
9808 * tui/tui-stack.h: Rename include guard.
9809 * tui/tui-source.h: Rename include guard.
9810 * tui/tui-regs.h: Rename include guard.
9811 * tui/tui-out.h: Rename include guard.
9812 * tui/tui-layout.h: Rename include guard.
9813 * tui/tui-io.h: Rename include guard.
9814 * tui/tui-hooks.h: Rename include guard.
9815 * tui/tui-file.h: Rename include guard.
9816 * tui/tui-disasm.h: Rename include guard.
9817 * tui/tui-data.h: Rename include guard.
9818 * tui/tui-command.h: Rename include guard.
9819 * tic6x-tdep.h: Add include guard.
9820 * target/waitstatus.h: Rename include guard.
9821 * target/wait.h: Rename include guard.
9822 * target/target.h: Rename include guard.
9823 * target/resume.h: Rename include guard.
9824 * target-float.h: Rename include guard.
9825 * stabsread.h: Add include guard.
9826 * rs6000-tdep.h: Add include guard.
9827 * riscv-fbsd-tdep.h: Add include guard.
9828 * regformats/regdef.h: Rename include guard.
9829 * record.h: Rename include guard.
9830 * python/python.h: Rename include guard.
9831 * python/python-internal.h: Rename include guard.
9832 * python/py-stopevent.h: Rename include guard.
9833 * python/py-ref.h: Rename include guard.
9834 * python/py-record.h: Rename include guard.
9835 * python/py-record-full.h: Rename include guard.
9836 * python/py-record-btrace.h: Rename include guard.
9837 * python/py-instruction.h: Rename include guard.
9838 * python/py-events.h: Rename include guard.
9839 * python/py-event.h: Rename include guard.
9840 * procfs.h: Add include guard.
9841 * proc-utils.h: Add include guard.
9842 * p-lang.h: Add include guard.
9843 * or1k-tdep.h: Rename include guard.
9844 * observable.h: Rename include guard.
9845 * nto-tdep.h: Rename include guard.
9846 * nat/x86-linux.h: Rename include guard.
9847 * nat/x86-linux-dregs.h: Rename include guard.
9848 * nat/x86-gcc-cpuid.h: Add include guard.
9849 * nat/x86-dregs.h: Rename include guard.
9850 * nat/x86-cpuid.h: Rename include guard.
9851 * nat/ppc-linux.h: Rename include guard.
9852 * nat/mips-linux-watch.h: Rename include guard.
9853 * nat/linux-waitpid.h: Rename include guard.
9854 * nat/linux-ptrace.h: Rename include guard.
9855 * nat/linux-procfs.h: Rename include guard.
9856 * nat/linux-osdata.h: Rename include guard.
9857 * nat/linux-nat.h: Rename include guard.
9858 * nat/linux-namespaces.h: Rename include guard.
9859 * nat/linux-btrace.h: Rename include guard.
9860 * nat/glibc_thread_db.h: Rename include guard.
9861 * nat/gdb_thread_db.h: Rename include guard.
9862 * nat/gdb_ptrace.h: Rename include guard.
9863 * nat/fork-inferior.h: Rename include guard.
9864 * nat/amd64-linux-siginfo.h: Rename include guard.
9865 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9866 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9867 * nat/aarch64-linux.h: Rename include guard.
9868 * nat/aarch64-linux-hw-point.h: Rename include guard.
9869 * mn10300-tdep.h: Add include guard.
9870 * mips-linux-tdep.h: Add include guard.
9871 * mi/mi-parse.h: Rename include guard.
9872 * mi/mi-out.h: Rename include guard.
9873 * mi/mi-main.h: Rename include guard.
9874 * mi/mi-interp.h: Rename include guard.
9875 * mi/mi-getopt.h: Rename include guard.
9876 * mi/mi-console.h: Rename include guard.
9877 * mi/mi-common.h: Rename include guard.
9878 * mi/mi-cmds.h: Rename include guard.
9879 * mi/mi-cmd-break.h: Rename include guard.
9880 * m2-lang.h: Add include guard.
9881 * location.h: Rename include guard.
9882 * linux-record.h: Rename include guard.
9883 * linux-nat.h: Add include guard.
9884 * linux-fork.h: Add include guard.
9885 * i386-darwin-tdep.h: Rename include guard.
9886 * hppa-linux-offsets.h: Add include guard.
9887 * guile/guile.h: Rename include guard.
9888 * guile/guile-internal.h: Rename include guard.
9889 * gnu-nat.h: Rename include guard.
9890 * gdb-stabs.h: Rename include guard.
9891 * frv-tdep.h: Add include guard.
9892 * f-lang.h: Add include guard.
9893 * event-loop.h: Add include guard.
9894 * darwin-nat.h: Rename include guard.
9895 * cp-abi.h: Rename include guard.
9896 * config/sparc/nm-sol2.h: Rename include guard.
9897 * config/nm-nto.h: Rename include guard.
9898 * config/nm-linux.h: Add include guard.
9899 * config/i386/nm-i386gnu.h: Rename include guard.
9900 * config/djgpp/nl_types.h: Rename include guard.
9901 * config/djgpp/langinfo.h: Rename include guard.
9902 * compile/gcc-cp-plugin.h: Add include guard.
9903 * compile/gcc-c-plugin.h: Add include guard.
9904 * compile/compile.h: Rename include guard.
9905 * compile/compile-object-run.h: Rename include guard.
9906 * compile/compile-object-load.h: Rename include guard.
9907 * compile/compile-internal.h: Rename include guard.
9908 * compile/compile-cplus.h: Rename include guard.
9909 * compile/compile-c.h: Rename include guard.
9910 * common/xml-utils.h: Rename include guard.
9911 * common/x86-xstate.h: Rename include guard.
9912 * common/version.h: Rename include guard.
9913 * common/vec.h: Rename include guard.
9914 * common/tdesc.h: Rename include guard.
9915 * common/selftest.h: Rename include guard.
9916 * common/scoped_restore.h: Rename include guard.
9917 * common/scoped_mmap.h: Rename include guard.
9918 * common/scoped_fd.h: Rename include guard.
9919 * common/safe-iterator.h: Rename include guard.
9920 * common/run-time-clock.h: Rename include guard.
9921 * common/refcounted-object.h: Rename include guard.
9922 * common/queue.h: Rename include guard.
9923 * common/ptid.h: Rename include guard.
9924 * common/print-utils.h: Rename include guard.
9925 * common/preprocessor.h: Rename include guard.
9926 * common/pathstuff.h: Rename include guard.
9927 * common/observable.h: Rename include guard.
9928 * common/netstuff.h: Rename include guard.
9929 * common/job-control.h: Rename include guard.
9930 * common/host-defs.h: Rename include guard.
9931 * common/gdb_wait.h: Rename include guard.
9932 * common/gdb_vecs.h: Rename include guard.
9933 * common/gdb_unlinker.h: Rename include guard.
9934 * common/gdb_unique_ptr.h: Rename include guard.
9935 * common/gdb_tilde_expand.h: Rename include guard.
9936 * common/gdb_sys_time.h: Rename include guard.
9937 * common/gdb_string_view.h: Rename include guard.
9938 * common/gdb_splay_tree.h: Rename include guard.
9939 * common/gdb_setjmp.h: Rename include guard.
9940 * common/gdb_ref_ptr.h: Rename include guard.
9941 * common/gdb_optional.h: Rename include guard.
9942 * common/gdb_locale.h: Rename include guard.
9943 * common/gdb_assert.h: Rename include guard.
9944 * common/filtered-iterator.h: Rename include guard.
9945 * common/filestuff.h: Rename include guard.
9946 * common/fileio.h: Rename include guard.
9947 * common/environ.h: Rename include guard.
9948 * common/common-utils.h: Rename include guard.
9949 * common/common-types.h: Rename include guard.
9950 * common/common-regcache.h: Rename include guard.
9951 * common/common-inferior.h: Rename include guard.
9952 * common/common-gdbthread.h: Rename include guard.
9953 * common/common-exceptions.h: Rename include guard.
9954 * common/common-defs.h: Rename include guard.
9955 * common/common-debug.h: Rename include guard.
9956 * common/cleanups.h: Rename include guard.
9957 * common/buffer.h: Rename include guard.
9958 * common/btrace-common.h: Rename include guard.
9959 * common/break-common.h: Rename include guard.
9960 * cli/cli-utils.h: Rename include guard.
9961 * cli/cli-style.h: Rename include guard.
9962 * cli/cli-setshow.h: Rename include guard.
9963 * cli/cli-script.h: Rename include guard.
9964 * cli/cli-interp.h: Rename include guard.
9965 * cli/cli-decode.h: Rename include guard.
9966 * cli/cli-cmds.h: Rename include guard.
9967 * charset-list.h: Add include guard.
9968 * buildsym-legacy.h: Rename include guard.
9969 * bfin-tdep.h: Add include guard.
9970 * ax.h: Rename include guard.
9971 * arm-linux-tdep.h: Add include guard.
9972 * arm-fbsd-tdep.h: Add include guard.
9973 * arch/xtensa.h: Rename include guard.
9974 * arch/tic6x.h: Add include guard.
9975 * arch/i386.h: Add include guard.
9976 * arch/arm.h: Rename include guard.
9977 * arch/arm-linux.h: Rename include guard.
9978 * arch/arm-get-next-pcs.h: Rename include guard.
9979 * arch/amd64.h: Add include guard.
9980 * arch/aarch64-insn.h: Rename include guard.
9981 * arch-utils.h: Rename include guard.
9982 * annotate.h: Add include guard.
9983 * amd64-darwin-tdep.h: Rename include guard.
9984 * aarch64-linux-tdep.h: Add include guard.
9985 * aarch64-fbsd-tdep.h: Add include guard.
9986 * aarch32-linux-nat.h: Add include guard.
9987
ab9268d2
PW
99882019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9989
9990 * macrotab.c (macro_define_internal): New function that
9991 factorizes macro_define_object_internal and macro_define_function
9992 code.
9993 (macro_define_object_internal): Use macro_define_internal.
9994 (macro_define_function): Likewise.
9995
bb0da2b4
PW
99962019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9997
9998 * macrocmd.c (extract_identifier): Return
9999 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10000 callers.
10001
424eb552
JB
100022019-02-06 John Baldwin <jhb@FreeBSD.org>
10003
10004 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10005
1688cb29
TT
100062019-02-05 Tom Tromey <tom@tromey.com>
10007
10008 * target.c (target_stack::unpush): Move assertion earlier.
10009
b5eba2d8
TT
100102019-01-30 Tom Tromey <tom@tromey.com>
10011
10012 PR python/23615:
10013 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10014 (gdbpy_parse_and_eval): Likewise.
10015 * python/python-internal.h (gdbpy_allow_threads): New class.
10016
7054e2ff
JB
100172019-01-28 John Baldwin <jhb@FreeBSD.org>
10018
10019 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10020 (aarch64_fbsd_fpregmap): Move earlier.
10021 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10022 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10023 instead of individual calls to trad_frame_set_reg_addr.
10024 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10025 earlier.
10026 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10027 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10028 instead of individual calls to trad_frame_set_reg_addr.
10029
36c25ffa
AH
100302019-01-28 Alan Hayward <alan.hayward@arm.com>
10031
10032 * CONTRIBUTE: Replace contribution list with wiki link.
10033
a0707f3c
TT
100342019-01-25 Tom Tromey <tom@tromey.com>
10035
10036 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10037
0747795c
TT
100382019-01-25 Tom Tromey <tom@tromey.com>
10039
10040 * xtensa-linux-nat.c: Fix common/ includes.
10041 * xml-support.h: Fix common/ includes.
10042 * xml-support.c: Fix common/ includes.
10043 * x86-linux-nat.c: Fix common/ includes.
10044 * windows-nat.c: Fix common/ includes.
10045 * varobj.h: Fix common/ includes.
10046 * varobj.c: Fix common/ includes.
10047 * value.c: Fix common/ includes.
10048 * valops.c: Fix common/ includes.
10049 * utils.c: Fix common/ includes.
10050 * unittests/xml-utils-selftests.c: Fix common/ includes.
10051 * unittests/utils-selftests.c: Fix common/ includes.
10052 * unittests/unpack-selftests.c: Fix common/ includes.
10053 * unittests/tracepoint-selftests.c: Fix common/ includes.
10054 * unittests/style-selftests.c: Fix common/ includes.
10055 * unittests/string_view-selftests.c: Fix common/ includes.
10056 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10057 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10058 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10059 * unittests/rsp-low-selftests.c: Fix common/ includes.
10060 * unittests/parse-connection-spec-selftests.c: Fix common/
10061 includes.
10062 * unittests/optional-selftests.c: Fix common/ includes.
10063 * unittests/offset-type-selftests.c: Fix common/ includes.
10064 * unittests/observable-selftests.c: Fix common/ includes.
10065 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10066 * unittests/memrange-selftests.c: Fix common/ includes.
10067 * unittests/memory-map-selftests.c: Fix common/ includes.
10068 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10069 * unittests/function-view-selftests.c: Fix common/ includes.
10070 * unittests/environ-selftests.c: Fix common/ includes.
10071 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10072 * unittests/common-utils-selftests.c: Fix common/ includes.
10073 * unittests/cli-utils-selftests.c: Fix common/ includes.
10074 * unittests/array-view-selftests.c: Fix common/ includes.
10075 * ui-file.c: Fix common/ includes.
10076 * tui/tui-io.c: Fix common/ includes.
10077 * tracepoint.h: Fix common/ includes.
10078 * tracepoint.c: Fix common/ includes.
10079 * tracefile-tfile.c: Fix common/ includes.
10080 * top.h: Fix common/ includes.
10081 * top.c: Fix common/ includes.
10082 * thread.c: Fix common/ includes.
10083 * target/waitstatus.h: Fix common/ includes.
10084 * target/waitstatus.c: Fix common/ includes.
10085 * target.h: Fix common/ includes.
10086 * target.c: Fix common/ includes.
10087 * target-memory.c: Fix common/ includes.
10088 * target-descriptions.c: Fix common/ includes.
10089 * symtab.h: Fix common/ includes.
10090 * symfile.c: Fix common/ includes.
10091 * stap-probe.c: Fix common/ includes.
10092 * spu-linux-nat.c: Fix common/ includes.
10093 * sparc-nat.c: Fix common/ includes.
10094 * source.c: Fix common/ includes.
10095 * solib.c: Fix common/ includes.
10096 * solib-target.c: Fix common/ includes.
10097 * ser-unix.c: Fix common/ includes.
10098 * ser-tcp.c: Fix common/ includes.
10099 * ser-pipe.c: Fix common/ includes.
10100 * ser-base.c: Fix common/ includes.
10101 * selftest-arch.c: Fix common/ includes.
10102 * s12z-tdep.c: Fix common/ includes.
10103 * rust-exp.y: Fix common/ includes.
10104 * rs6000-aix-tdep.c: Fix common/ includes.
10105 * riscv-tdep.c: Fix common/ includes.
10106 * remote.c: Fix common/ includes.
10107 * remote-notif.h: Fix common/ includes.
10108 * remote-fileio.h: Fix common/ includes.
10109 * remote-fileio.c: Fix common/ includes.
10110 * regcache.h: Fix common/ includes.
10111 * regcache.c: Fix common/ includes.
10112 * record-btrace.c: Fix common/ includes.
10113 * python/python.c: Fix common/ includes.
10114 * python/py-type.c: Fix common/ includes.
10115 * python/py-inferior.c: Fix common/ includes.
10116 * progspace.h: Fix common/ includes.
10117 * producer.c: Fix common/ includes.
10118 * procfs.c: Fix common/ includes.
10119 * proc-api.c: Fix common/ includes.
10120 * printcmd.c: Fix common/ includes.
10121 * ppc-linux-nat.c: Fix common/ includes.
10122 * parser-defs.h: Fix common/ includes.
10123 * osdata.c: Fix common/ includes.
10124 * obsd-nat.c: Fix common/ includes.
10125 * nat/x86-linux.c: Fix common/ includes.
10126 * nat/x86-linux-dregs.c: Fix common/ includes.
10127 * nat/x86-dregs.h: Fix common/ includes.
10128 * nat/x86-dregs.c: Fix common/ includes.
10129 * nat/ppc-linux.c: Fix common/ includes.
10130 * nat/mips-linux-watch.h: Fix common/ includes.
10131 * nat/mips-linux-watch.c: Fix common/ includes.
10132 * nat/linux-waitpid.c: Fix common/ includes.
10133 * nat/linux-ptrace.h: Fix common/ includes.
10134 * nat/linux-ptrace.c: Fix common/ includes.
10135 * nat/linux-procfs.c: Fix common/ includes.
10136 * nat/linux-personality.c: Fix common/ includes.
10137 * nat/linux-osdata.c: Fix common/ includes.
10138 * nat/linux-namespaces.c: Fix common/ includes.
10139 * nat/linux-btrace.h: Fix common/ includes.
10140 * nat/linux-btrace.c: Fix common/ includes.
10141 * nat/fork-inferior.c: Fix common/ includes.
10142 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10143 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10144 * nat/aarch64-linux.c: Fix common/ includes.
10145 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10146 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10147 * namespace.h: Fix common/ includes.
10148 * mips-linux-tdep.c: Fix common/ includes.
10149 * minsyms.c: Fix common/ includes.
10150 * mi/mi-parse.h: Fix common/ includes.
10151 * mi/mi-main.c: Fix common/ includes.
10152 * mi/mi-cmd-env.c: Fix common/ includes.
10153 * memrange.h: Fix common/ includes.
10154 * memattr.c: Fix common/ includes.
10155 * maint.h: Fix common/ includes.
10156 * maint.c: Fix common/ includes.
10157 * main.c: Fix common/ includes.
10158 * machoread.c: Fix common/ includes.
10159 * location.c: Fix common/ includes.
10160 * linux-thread-db.c: Fix common/ includes.
10161 * linux-nat.c: Fix common/ includes.
10162 * linux-fork.c: Fix common/ includes.
10163 * inline-frame.c: Fix common/ includes.
10164 * infrun.c: Fix common/ includes.
10165 * inflow.c: Fix common/ includes.
10166 * inferior.h: Fix common/ includes.
10167 * inferior.c: Fix common/ includes.
10168 * infcmd.c: Fix common/ includes.
10169 * inf-ptrace.c: Fix common/ includes.
10170 * inf-child.c: Fix common/ includes.
10171 * ia64-linux-nat.c: Fix common/ includes.
10172 * i387-tdep.c: Fix common/ includes.
10173 * i386-tdep.c: Fix common/ includes.
10174 * i386-linux-tdep.c: Fix common/ includes.
10175 * i386-linux-nat.c: Fix common/ includes.
10176 * i386-go32-tdep.c: Fix common/ includes.
10177 * i386-fbsd-tdep.c: Fix common/ includes.
10178 * i386-fbsd-nat.c: Fix common/ includes.
10179 * guile/scm-type.c: Fix common/ includes.
10180 * guile/guile.c: Fix common/ includes.
10181 * go32-nat.c: Fix common/ includes.
10182 * gnu-nat.c: Fix common/ includes.
10183 * gdbthread.h: Fix common/ includes.
10184 * gdbarch-selftests.c: Fix common/ includes.
10185 * gdb_usleep.c: Fix common/ includes.
10186 * gdb_select.h: Fix common/ includes.
10187 * gdb_bfd.c: Fix common/ includes.
10188 * gcore.c: Fix common/ includes.
10189 * fork-child.c: Fix common/ includes.
10190 * findvar.c: Fix common/ includes.
10191 * fbsd-nat.c: Fix common/ includes.
10192 * event-top.c: Fix common/ includes.
10193 * event-loop.c: Fix common/ includes.
10194 * dwarf2read.c: Fix common/ includes.
10195 * dwarf2loc.c: Fix common/ includes.
10196 * dwarf2-frame.c: Fix common/ includes.
10197 * dwarf-index-cache.c: Fix common/ includes.
10198 * dtrace-probe.c: Fix common/ includes.
10199 * disasm-selftests.c: Fix common/ includes.
10200 * defs.h: Fix common/ includes.
10201 * csky-tdep.c: Fix common/ includes.
10202 * cp-valprint.c: Fix common/ includes.
10203 * cp-support.h: Fix common/ includes.
10204 * cp-support.c: Fix common/ includes.
10205 * corelow.c: Fix common/ includes.
10206 * completer.h: Fix common/ includes.
10207 * completer.c: Fix common/ includes.
10208 * compile/compile.c: Fix common/ includes.
10209 * compile/compile-loc2c.c: Fix common/ includes.
10210 * compile/compile-cplus-types.c: Fix common/ includes.
10211 * compile/compile-cplus-symbols.c: Fix common/ includes.
10212 * command.h: Fix common/ includes.
10213 * cli/cli-dump.c: Fix common/ includes.
10214 * cli/cli-cmds.c: Fix common/ includes.
10215 * charset.c: Fix common/ includes.
10216 * build-id.c: Fix common/ includes.
10217 * btrace.h: Fix common/ includes.
10218 * btrace.c: Fix common/ includes.
10219 * breakpoint.h: Fix common/ includes.
10220 * breakpoint.c: Fix common/ includes.
10221 * ax.h:
10222 (enum agent_op): Fix common/ includes.
10223 * ax-general.c (struct aop_map): Fix common/ includes.
10224 * ax-gdb.c: Fix common/ includes.
10225 * auxv.c: Fix common/ includes.
10226 * auto-load.c: Fix common/ includes.
10227 * arm-tdep.c: Fix common/ includes.
10228 * arch/riscv.c: Fix common/ includes.
10229 * arch/ppc-linux-common.c: Fix common/ includes.
10230 * arch/i386.c: Fix common/ includes.
10231 * arch/arm.c: Fix common/ includes.
10232 * arch/arm-linux.c: Fix common/ includes.
10233 * arch/arm-get-next-pcs.c: Fix common/ includes.
10234 * arch/amd64.c: Fix common/ includes.
10235 * arch/aarch64.c: Fix common/ includes.
10236 * arch/aarch64-insn.c: Fix common/ includes.
10237 * arch-utils.c: Fix common/ includes.
10238 * amd64-windows-tdep.c: Fix common/ includes.
10239 * amd64-tdep.c: Fix common/ includes.
10240 * amd64-sol2-tdep.c: Fix common/ includes.
10241 * amd64-obsd-tdep.c: Fix common/ includes.
10242 * amd64-nbsd-tdep.c: Fix common/ includes.
10243 * amd64-linux-tdep.c: Fix common/ includes.
10244 * amd64-linux-nat.c: Fix common/ includes.
10245 * amd64-fbsd-tdep.c: Fix common/ includes.
10246 * amd64-fbsd-nat.c: Fix common/ includes.
10247 * amd64-dicos-tdep.c: Fix common/ includes.
10248 * amd64-darwin-tdep.c: Fix common/ includes.
10249 * agent.c: Fix common/ includes.
10250 * ada-lang.h: Fix common/ includes.
10251 * ada-lang.c: Fix common/ includes.
10252 * aarch64-tdep.c: Fix common/ includes.
10253
2f5c153e
TT
102542019-01-25 Tom Tromey <tom@tromey.com>
10255
10256 * common/create-version.sh: Use common/version.h.
10257
adc6a863
PA
102582019-01-24 Pedro Alves <palves@redhat.com>
10259
10260 * infrun.c (signal_stop, signal_print, signal_program)
10261 (signal_catch, signal_pass): Now arrays instead of pointers.
10262 (update_signals_program_target, do_target_resume)
10263 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10264 * linux-nat.c (linux_nat_target::pass_signals)
10265 (linux_nat_target::create_inferior, linux_nat_target::attach):
10266 Adjust.
10267 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10268 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10269 * procfs.c (procfs_target::pass_signals): Adjust.
10270 * record-full.c (record_full_target::resume): Adjust.
10271 * remote.c (remote_target::pass_signals)
10272 (remote_target::program_signals): Adjust.
10273 * target-debug.h (target_debug_print_signals): Now takes a
10274 gdb::array_view as parameter. Adjust.
10275 * target.h (target_ops) <pass_signals, program_signals>: Replace
10276 pointer and length parameters with gdb::array_view.
10277 (target_pass_signals, target_program_signals): Likewise.
10278 * target-delegates.c: Regenerate.
10279
3046d67a
PA
102802019-01-24 Pedro Alves <palves@redhat.com>
10281
10282 * common/forward-scope-exit.h
10283 (forward_scope_exit::forward_scope_exit): Pass arguments to
10284 m_bind_function directly, instead of creating a std::bind and
10285 copying that.
10286
353229bf
AH
102872019-01-24 Alan Hayward <alan.hayward@arm.com>
10288
10289 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10290 for static members.
10291 (pass_in_v_vfp_candidate): Likewise.
10292
311dc83a
TT
102932019-01-23 Tom Tromey <tom@tromey.com>
10294 Pedro Alves <palves@redhat.com>
10295
10296 * regcache.c (class regcache_invalidator): Remove.
10297 (regcache::raw_write): Use make_scope_exit.
10298
296bd123
TT
102992019-01-23 Tom Tromey <tom@tromey.com>
10300
10301 * ui-out.h (class ui_out_emit_type): Update comment.
10302
979a0d13
TT
103032019-01-23 Tom Tromey <tom@tromey.com>
10304
10305 * infrun.c (fetch_inferior_event): Update comment.
10306
d238133d
TT
103072019-01-23 Tom Tromey <tom@tromey.com>
10308 Pedro Alves <palves@redhat.com>
10309
10310 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10311 parameter.
10312 (fetch_inferior_event): Use SCOPE_EXIT.
10313
10314
9885e6bb
TT
103152019-01-23 Tom Tromey <tom@tromey.com>
10316 Pedro Alves <palves@redhat.com>
10317
10318 * infrun.c (disable_thread_events): Delete.
10319 (stop_all_threads): Use SCOPE_EXIT.
10320
286526c1
TT
103212019-01-23 Tom Tromey <tom@tromey.com>
10322 Pedro Alves <palves@redhat.com>
10323
10324 * symfile.c: Include forward-scope-exit.h.
10325 (clear_symtab_users_cleanup): Replace forward declaration with
10326 a FORWARD_SCOPE_EXIT.
10327 (syms_from_objfile_1): Use the forward_scope_exit and
10328 gdb::optional instead of cleanup_function.
10329 (reread_symbols): Use the forward_scope_exit instead of
10330 cleanup_function.
10331 (clear_symtab_users_cleanup): Remove function.
10332
1db93f14
TT
103332019-01-23 Tom Tromey <tom@tromey.com>
10334 Pedro Alves <palves@redhat.com>
10335
10336 * linux-nat.c: Include scope-exit.h.
10337 (cleanup_target_stop): Remove.
10338 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10339 SCOPE_EXIT.
10340
2cc83d1e
TT
103412019-01-23 Tom Tromey <tom@tromey.com>
10342 Pedro Alves <palves@redhat.com>
10343
10344 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10345 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10346
694c6bf5
TT
103472019-01-23 Tom Tromey <tom@tromey.com>
10348 Andrew Burgess <andrew.burgess@embecosm.com>
10349 Pedro Alves <palves@redhat.com>
10350
10351 * infrun.c (fetch_inferior_event): Use scope_exit.
10352 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10353 * top.c (execute_command): Use scope_exit.
10354 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10355 * utils.c (do_bpstat_clear_actions_cleanup)
10356 (make_bpstat_clear_actions_cleanup): Remove.
10357
4c41382a
TT
103582019-01-23 Tom Tromey <tom@tromey.com>
10359 Pedro Alves <palves@redhat.com>
10360
10361 * infrun.c: Include "common/scope-exit.h"
10362 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10363 (wait_for_inferior): Use SCOPE_EXIT.
10364 (fetch_inferior_event): Use scope_exit.
10365
89f8fb50
TT
103662019-01-23 Tom Tromey <tom@tromey.com>
10367 Pedro Alves <palves@redhat.com>
10368
10369 * breakpoint.c (create_breakpoint): Remove cleanup.
10370
5419bdae
TT
103712019-01-23 Tom Tromey <tom@tromey.com>
10372 Andrew Burgess <andrew.burgess@embecosm.com>
10373 Pedro Alves <palves@redhat.com>
10374
e587ef42
PA
103752019-01-23 Pedro Alves <palves@redhat.com>
10376
10377 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10378
77f0e74c
PA
103792019-01-23 Pedro Alves <palves@redhat.com>
10380 Andrew Burgess <andrew.burgess@embecosm.com>
10381
10382 * gdbthread.h: Include "common/forward-scope-exit.h".
10383 (scoped_finish_thread_state): Redefine custom class in terms of
10384 forward_scope_exit.
10385
5b9b3e53
PA
103862019-01-23 Pedro Alves <palves@redhat.com>
10387 Andrew Burgess <andrew.burgess@embecosm.com>
10388
10389 * common/forward-scope-exit.h: New file.
10390
54b65c9b
PA
103912019-01-23 Pedro Alves <palves@redhat.com>
10392 Andrew Burgess <andrew.burgess@embecosm.com>
10393 Tom Tromey <tom@tromey.com>
10394
10395 * common/scope-exit.h: New file.
10396
cf08fb29
PA
103972019-01-23 Pedro Alves <palves@redhat.com>
10398
10399 * common/preprocessor.h (ESC): Rename to ...
10400 (ESC_PARENS): ... this.
10401 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10402 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10403
ae73e2e2
TT
104042019-01-23 Tom Tromey <tom@tromey.com>
10405
10406 * language.h (class scoped_switch_to_sym_language_if_auto):
10407 Initialize m_lang in both cases.
10408
6594e122
AH
104092019-01-23 Alan Hayward <alan.hayward@arm.com>
10410
10411 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10412 with XCNEW.
10413
a7c9855d
TT
104142019-01-22 Tom Tromey <tom@tromey.com>
10415
10416 * corelow.c: Do not include sys/file.h.
10417
93cc1d53
TT
104182019-01-22 Tom Tromey <tom@tromey.com>
10419
10420 * tui/tui-wingeneral.h: Include gdb_curses.h.
10421
38561778
TT
104222019-01-22 Tom Tromey <tom@tromey.com>
10423
10424 * source-cache.h (class source_cache) <get_source_lines,
10425 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10426
37b3ab5b
TT
104272019-01-22 Tom Tromey <tom@tromey.com>
10428
10429 * remote-fileio.h (struct remote_target): Declare.
10430
3fabc016
TT
104312019-01-22 Tom Tromey <tom@tromey.com>
10432
10433 * python/py-arch.c: Do not include py-ref.h.
10434 * python/py-bpevent.c: Do not include py-ref.h.
10435 * python/py-cmd.c: Do not include py-ref.h.
10436 * python/py-continueevent.c: Do not include py-ref.h.
10437 * python/py-event.h: Do not include py-ref.h.
10438 * python/py-evtregistry.c: Do not include py-ref.h.
10439 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10440 * python/py-frame.c: Do not include py-ref.h.
10441 * python/py-framefilter.c: Do not include py-ref.h.
10442 * python/py-function.c: Do not include py-ref.h.
10443 * python/py-infevents.c: Do not include py-ref.h.
10444 * python/py-linetable.c: Do not include py-ref.h.
10445 * python/py-objfile.c: Do not include py-ref.h.
10446 * python/py-param.c: Do not include py-ref.h.
10447 * python/py-prettyprint.c: Do not include py-ref.h.
10448 * python/py-progspace.c: Do not include py-ref.h.
10449 * python/py-symbol.c: Do not include py-ref.h.
10450 * python/py-symtab.c: Do not include py-ref.h.
10451 * python/py-type.c: Do not include py-ref.h.
10452 * python/py-unwind.c: Do not include py-ref.h.
10453 * python/py-utils.c: Do not include py-ref.h.
10454 * python/py-value.c: Do not include py-ref.h.
10455 * python/py-varobj.c: Do not include py-ref.h.
10456 * python/py-xmethods.c: Do not include py-ref.h.
10457 * python/python.c: Do not include py-ref.h.
10458 * varobj.c: Do not include py-ref.h.
10459
6b4d7774
TT
104602019-01-22 Tom Tromey <tom@tromey.com>
10461
10462 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10463 keyword for bcache.
10464
7af7e9b5
TT
104652019-01-22 Tom Tromey <tom@tromey.com>
10466
10467 * compile/compile-cplus-types.c: Remove a comment by #include.
10468
951d1049
TT
104692019-01-22 Tom Tromey <tom@tromey.com>
10470
10471 * compile/gcc-c-plugin.h: Include compile-internal.h.
10472
d65d5705
TT
104732019-01-22 Tom Tromey <tom@tromey.com>
10474
10475 * stabsread.c (EXTERN): Do not define.
10476 (symnum, next_symbol_text_func, processing_gcc_compilation)
10477 (within_function, global_sym_chain, global_stabs)
10478 (previous_stab_code, this_object_header_files)
10479 (n_this_object_header_files)
10480 (n_allocated_this_object_header_files): Define.
10481 * stabsread.h (EXTERN): Never define. Use "extern".
10482
b6fb1ee5
PW
104832019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10484
10485 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10486 history_value.
10487
be6d4f74
TT
104882019-01-21 Tom Tromey <tom@tromey.com>
10489
10490 * ui-out.c: Fix includes.
10491 * tui/tui-source.c: Fix includes.
10492 * target.c: Fix includes.
10493 * remote.c: Fix includes.
10494 * regcache.c: Fix includes.
10495 * python/py-block.c: Fix includes.
10496 * printcmd.c: Fix includes.
10497 * or1k-tdep.c: Fix includes.
10498 * mi/mi-main.c: Fix includes.
10499 * m32r-tdep.c: Fix includes.
10500 * csky-tdep.c: Fix includes.
10501 * compile/compile-cplus-types.c: Fix includes.
10502 * cli/cli-interp.c: Fix includes.
10503
73021deb
AH
105042019-01-21 Alan Hayward <alan.hayward@arm.com>
10505
10506 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10507 for padding.
10508
7932255d
TT
105092019-01-16 Tom Tromey <tom@tromey.com>
10510
10511 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10512 earlier.
10513 (struct objfile) <msymbols_range>: Move from top level.
10514 <msymbols>: New method.
10515 (class objfile_msymbols): Remove.
10516 * symtab.c (default_collect_symbol_completion_matches_break_on):
10517 Update.
10518 * symmisc.c (dump_msymbols): Update.
10519 * stabsread.c (scan_file_globals): Update.
10520 * objc-lang.c (info_selectors_command, info_classes_command)
10521 (find_methods): Update.
10522 * minsyms.c (find_solib_trampoline_target): Update.
10523 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10524 * coffread.c (coff_symfile_read): Update.
10525 * ada-lang.c (ada_lookup_simple_minsym)
10526 (ada_collect_symbol_completion_matches): Update.
10527
604b1bfb
TT
105282019-01-16 Tom Tromey <tom@tromey.com>
10529
10530 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10531 type. Remove no-argument constructor.
10532 <iterator::operator++>: Simplify.
10533 <begin>: Update.
10534 <end>: Use minimal_symbol_count.
10535
f252c6d5
TT
105362019-01-16 Tom Tromey <tom@tromey.com>
10537
10538 * objfiles.h (struct objfile) <psymtabs>: New method.
10539 (class objfile_psymtabs): Remove.
10540 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10541 typedef.
10542 <range>: New method.
10543 (require_partial_symbols): Change return type.
10544 * psymtab.c (require_partial_symbols)
10545 (psym_expand_symtabs_matching): Update.
10546 * mdebugread.c (parse_partial_symbols): Update.
10547 * dbxread.c (dbx_end_psymtab): Update.
10548
b669c953
TT
105492019-01-15 Tom Tromey <tom@tromey.com>
10550
10551 * symtab.c (lookup_objfile_from_block)
10552 (lookup_symbol_in_objfile_symtabs)
10553 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10554 (find_line_symtab, info_sources_command)
10555 (default_collect_symbol_completion_matches_break_on)
10556 (make_source_files_completion_list): Update.
10557 * symmisc.c (print_objfile_statistics, dump_objfile)
10558 (maintenance_print_symbols, maintenance_info_symtabs)
10559 (maintenance_check_symtabs, maintenance_info_line_tables):
10560 Update.
10561 * source.c (select_source_symtab)
10562 (forget_cached_source_info_for_objfile): Update.
10563 * objfiles.h (class objfile_compunits): Remove.
10564 (struct objfile) <compunits_range>: New typedef.
10565 (compunits): New method.
10566 * objfiles.c (objfile_relocate1): Update.
10567 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10568 * maint.c (count_symtabs_and_blocks): Update.
10569 * linespec.c (iterate_over_all_matching_symtabs): Update.
10570 * cp-support.c (add_symbol_overload_list_qualified): Update.
10571 * coffread.c (coff_symtab_read): Update.
10572 * ada-lang.c (add_nonlocal_symbols)
10573 (ada_collect_symbol_completion_matches)
10574 (ada_add_global_exceptions): Update.
10575
7e955d83
TT
105762019-01-15 Tom Tromey <tom@tromey.com>
10577
10578 * progspace.h (program_space) <objfiles_safe_range>: New
10579 typedef.
10580 <objfiles_safe>: New method.
10581 * objfiles.h (class all_objfiles_safe): Remove.
10582 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10583 * jit.c (jit_inferior_exit_hook): Update.
10584
2030c079
TT
105852019-01-17 Tom Tromey <tom@tromey.com>
10586
10587 * progspace.h (program_space) <objfiles_range>: New typedef.
10588 <objfiles>: New method.
10589 <objfiles_head>: Rename from objfiles.
10590 (object_files): Update.
10591 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10592 * guile/scm-pretty-print.c
10593 (ppscm_find_pretty_printer_from_objfiles): Update.
10594 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10595 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10596 Update.
10597 * python/py-progspace.c (pspy_get_objfiles): Update.
10598 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10599 Update.
10600 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10601 (objfpy_lookup_objfile_by_build_id): Update.
10602 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10603 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10604 Update.
10605 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10606 (expand_symtab_containing_pc, lookup_objfile_from_block)
10607 (lookup_static_symbol, basic_lookup_transparent_type)
10608 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10609 (find_line_symtab, info_sources_command)
10610 (default_collect_symbol_completion_matches_break_on)
10611 (make_source_files_completion_list, find_main_name): Update.
10612 * symmisc.c (print_symbol_bcache_statistics)
10613 (print_objfile_statistics, maintenance_print_symbols)
10614 (maintenance_print_msymbols, maintenance_print_objfiles)
10615 (maintenance_info_symtabs, maintenance_check_symtabs)
10616 (maintenance_expand_symtabs, maintenance_info_line_tables):
10617 Update.
10618 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10619 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10620 (map_overlay_command, unmap_overlay_command)
10621 (simple_overlay_update, expand_symtabs_matching)
10622 (map_symbol_filenames): Update.
10623 * symfile-debug.c (set_debug_symfile): Update.
10624 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10625 Update.
10626 * source.c (select_source_symtab, forget_cached_source_info):
10627 Update.
10628 * solib.c (solib_read_symbols): Update.
10629 * solib-spu.c (append_ocl_sos): Update.
10630 * psymtab.c (maintenance_print_psymbols)
10631 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10632 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10633 * printcmd.c (info_symbol_command): Update.
10634 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10635 Update.
10636 * objfiles.h (class all_objfiles): Remove.
10637 * objfiles.c (have_partial_symbols, have_full_symbols)
10638 (have_minimal_symbols, qsort_cmp, update_section_map)
10639 (shared_objfile_contains_address_p)
10640 (default_iterate_over_objfiles_in_search_order): Update.
10641 * objc-lang.c (info_selectors_command, info_classes_command)
10642 (find_methods): Update.
10643 * minsyms.c (find_solib_trampoline_target): Update.
10644 * maint.c (maintenance_info_sections)
10645 (maintenance_translate_address, count_symtabs_and_blocks):
10646 Update.
10647 * main.c (captured_main_1): Update.
10648 * linux-thread-db.c (try_thread_db_load_from_pdir)
10649 (has_libpthread): Update.
10650 * linespec.c (iterate_over_all_matching_symtabs)
10651 (search_minsyms_for_name): Update.
10652 * jit.c (jit_find_objf_with_entry_addr): Update.
10653 * hppa-tdep.c (find_unwind_entry)
10654 (hppa_lookup_stub_minimal_symbol): Update.
10655 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10656 Update.
10657 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10658 (elf_gnu_ifunc_resolve_by_got): Update.
10659 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10660 * dwarf-index-write.c (save_gdb_index_command): Update.
10661 * cp-support.c (add_symbol_overload_list_qualified): Update.
10662 * breakpoint.c (create_overlay_event_breakpoint)
10663 (create_longjmp_master_breakpoint)
10664 (create_std_terminate_master_breakpoint)
10665 (create_exception_master_breakpoint): Update.
10666 * blockframe.c (find_pc_partial_function): Update.
10667 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10668 (ada_collect_symbol_completion_matches)
10669 (ada_add_global_exceptions): Update.
10670
776489e0
TT
106712019-01-17 Tom Tromey <tom@tromey.com>
10672
10673 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10674 declare VEC.
10675 (solib_target_parse_libraries): Change return type.
10676 (library_list_start_segment, library_list_start_section)
10677 (library_list_end_library, library_list_start_library); Update.
10678 (solib_target_free_library_list): Remove.
10679 (solib_target_parse_libraries): Remove cleanup. Change return
10680 type.
10681 (solib_target_current_sos): Update.
10682
6471e7d2
TT
106832019-01-17 Tom Tromey <tromey@bapiya>
10684
10685 * valprint.c: Replace "the the" with "the".
10686 * symtab.c: Replace "the the" with "the".
10687 * solib.c: Replace "the the" with "the".
10688 * solib-dsbt.c: Replace "the the" with "the".
10689 * linespec.c: Replace "the the" with "the".
10690 * dwarf2loc.h: Replace "the the" with "the".
10691 * amd64-windows-tdep.c: Replace "the the" with "the".
10692 * aarch64-tdep.c: Replace "the the" with "the".
10693
c24bdb02
KS
106942019-01-16 Keith Seitz <keiths@redhat.com>
10695
10696 PR gdb/23773
10697 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10698 <builder>: Rename to ..
10699 <m_builder>: ... this and make private.
10700 (dwarf2_cu::get_builder): New method. Change all users of
10701 `builder' to use this method.
10702 (dwarf2_start_symtab): Move to ...
10703 (dwarf2_cu::start_symtab): ... here. Update all callers
10704 (setup_type_unit_groups): Move to ...
10705 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10706 callers.
10707 (dwarf2_cu::reset_builder): New method.
10708 (process_full_compunit, process_full_type_unit): Use
10709 dwarf2_cu::reset_builder.
10710 (follow_die_offset): Record the ancestor CU if it is different
10711 from the followed DIE's CU.
10712 (follow_die_sig_1): Likewise.
10713
8d64371b
TT
107142019-01-15 Tom Tromey <tom@tromey.com>
10715
10716 * remote.c (class remote_state) <buf>: Now a char_vector.
10717 <buf_size>: Remove.
10718 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10719 parameter.
10720 (remote_target::getpkt_or_notif_sane_1)
10721 (remote_target::getpkt_sane)
10722 (remote_target::getpkt_or_notif_sane): Likewise.
10723 (class remote_target) <putpkt>: New overload.
10724 (remote_target::read_frame): Change type of "buf_p". Remove
10725 sizeof_p parameter.
10726 (packet_ok): New overload.
10727 (packet_check_result): New overload.
10728 Update all uses.
10729
bb277751
TT
107302019-01-14 Tom Tromey <tom@tromey.com>
10731
10732 * remote-notif.c (handle_notification, remote_notif_ack)
10733 (remote_notif_parse): Make "buf" const.
10734 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10735 const.
10736 (remote_notif_parse, remote_notif_ack, handle_notification):
10737 Likewise.
10738 * remote.c (remote_notif_stop_parse): Make "buf" const.
10739 (remote_target::remote_parse_stop_reply): Make "buf" const.
10740 (remote_notif_stop_ack): Make "buf" const.
10741
05be00a8
TT
107422019-01-14 Tom Tromey <tom@tromey.com>
10743
10744 * remote.c (remote_console_output): Make parameter const.
10745
491adeca
TT
107462019-01-14 Tom Tromey <tom@tromey.com>
10747
10748 * target-debug.h (target_debug_print_signals): Constify.
10749 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10750 * procfs.c (procfs_target::pass_signals): Update.
10751 * linux-nat.c (linux_nat_target::pass_signals): Update.
10752 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10753 * target-delegates.c: Rebuild.
10754 * remote.c (remote_target::program_signals): Update.
10755 (remote_target::pass_signals): Update.
10756 * target.c (target_pass_signals): Constify argument.
10757 (target_program_signals): Likewise.
10758 * target.h (struct target_ops) <pass_signals, program_signals>:
10759 Constify argument.
10760 (target_pass_signals, target_program_signals): Constify argument.
10761
bbd94648
TT
107622019-01-14 Tom Tromey <tom@tromey.com>
10763
10764 PR tui/28819:
10765 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10766
6f072a10
PFC
107672019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10768
10769 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10770 field.
10771 * rs6000-tdep.c: Include reggroups.h.
10772 (IS_V_ALIAS_PSEUDOREG): Define.
10773 (rs6000_register_name): Return names for the "vX" aliases.
10774 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10775 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10776 aliases. Call default_register_reggroup_p for all other
10777 pseudo-registers.
10778 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10779 New functions.
10780 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10781 Handle "vX" aliases.
10782 (v_alias_pseudo_register_collect): New function.
10783 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10784 (rs6000_gdbarch_init): Initialize "vX" aliases as
10785 pseudo-registers. Restore registration of
10786 rs6000_pseudo_register_reggroup_p with
10787 set_tdesc_pseudo_register_reggroup_p.
10788
1a782351
MF
107892019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10790
10791 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10792 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10793 set_gdbarch_num_pseudo_regs.
10794
d73cff18
PW
107952019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10796
10797 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10798 Remove arg prefixname, add do_set and do_show.
10799 Add member functions set_list and show_list.
10800 * cli/cli-style.c (class cli_style_option): Update accordingly.
10801 (style_set_list): Move to file scope.
10802 (style_show_list): Likewise.
10803 (set_style): Call help_list.
10804 (show_style): Call cmd_show_list.
10805 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10806 Update to use the new macro.
10807
60a90376
JB
108082019-10-12 Joel Brobecker <brobecker@adacore.com>
10809
10810 * ada-lang.c (_initialize_ada_language): Expand the help text
10811 for the "catch exception" command.
10812
9d7c67bf
PW
108132019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10814
10815 * symtab.c (matching_obj_sections): Initialize obj,
10816 declare it closer to its usage.
10817
7cf47dc4
TT
108182019-01-10 Tom Tromey <tom@tromey.com>
10819
10820 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10821 (basic_inf_threads_range): Remove.
10822 (inf_threads_range, inf_non_exited_threads_range)
10823 (safe_inf_threads_range): Use next_adapter.
10824
d3cb6808
KS
108252019-01-10 Keith Seitz <keiths@redhat.com>
10826
10827 PR gdb/23712
10828 PR symtab/23010
10829 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10830 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10831
63a20375
KS
108322019-01-10 Keith Seitz <keiths@redhat.com>
10833
10834 PR gdb/23712
10835 PR symtab/23010
10836 * dictionary.c (pending_to_vector): Remove.
10837 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10838 Remove _1 suffix, replacing functions of the same name. Update
10839 all callers.
10840 (dict_create_hashed, dict_create_hashed_expandable)
10841 (dict_create_linear, dict_create_linear_expandable, dict_free)
10842 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10843 Make functions static.
10844
b026f593
KS
108452019-01-10 Keith Seitz <keiths@redhat.com>
10846
10847 PR gdb/23712
10848 PR symtab/23010
10849 * dictionary.h (struct dictionary): Replace declaration with
10850 multidictionary.
10851 (dict_create_hashed, dict_create_hashed_expandable)
10852 (dict_create_linear, dict_create_linear_expandable)
10853 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10854 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10855 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10856 taking multidictionary argument.
10857 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10858 * block.h (struct block) <dict>: Change to multidictionary
10859 and rename `multidict'.
10860 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10861 symmisc.c: Update all dictionary references to multidictionary.
10862
c7748ee9
KS
108632019-01-10 Keith Seitz <keiths@redhat.com>
10864
10865 PR gdb/23712
10866 PR symtab/23010
10867 * dictionary.c: Include unordered_map.
10868 (pending_to_vector): New function.
10869 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10870 Rewrite the non-"_1" functions to take vector instead
10871 of linked list.
10872 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10873 "new" _1 versions of the same name.
10874 (multidictionary): Define.
10875 (std::hash<enum language): New definition.
10876 (collate_pending_symbols_by_language, mdict_create_hashed)
10877 (mdict_create_hashed_expandable, mdict_create_linear)
10878 (mdict_create_linear_expandable, mdict_free)
10879 (find_language_dictionary, create_new_language_dictionary)
10880 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10881 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10882 (mdict_size, mdict_empty): New functions.
10883 * dictionary.h (mdict_iterator): Define.
10884
67aa1f3c
PA
108852019-01-10 Pedro Alves <palves@redhat.com>
10886
10887 * breakpoint.c (read_uploaded_action)
10888 (create_tracepoint_from_upload): Adjust to use
10889 gdb::unique_xmalloc_ptr.
10890 * ctf.c (ctf_write_uploaded_tp):
10891 (SET_ARRAY_FIELD): Use emplace_back.
10892 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10893 * tracefile-tfile.c (tfile_write_uploaded_tp):
10894 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10895 gdb::unique_xmalloc_ptr.
10896 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10897 at_string, cond_string, cmd_strings>: Replace char pointers
10898 with gdb::unique_xmalloc_ptr.
10899
2f667667
PA
109002019-01-10 Pedro Alves <palves@redhat.com>
10901
10902 * solib-target.c (library_list_start_library): Don't xstrdup name.
10903
36cb7237
PA
109042019-01-10 Pedro Alves <palves@redhat.com>
10905
10906 * mdebugread.c (parse_partial_symbols): Use
10907 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10908
da584958
AB
109092019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10910
10911 * linux-fork.c (scoped_switch_fork_info)
10912 <~scoped_switch_fork_info>: Fix incorrect variable name.
10913
1ef8573c
AB
109142019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10915
10916 * linux-fork.c (scoped_switch_fork_info)
10917 <scoped_switch_fork_info>: Make explicit.
10918 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10919
8d7bcccb
TT
109202019-01-10 Tom Tromey <tom@tromey.com>
10921
10922 * objfiles.h (objfile::reset_psymtabs): Update.
10923 * objfiles.c (objfile::objfile): Update.
10924 * psymtab.h (psymtab_storage::obstack): Update.
10925 (psymtab_storage::m_obstack): Use gdb::optional.
10926 (class psymtab_storage): Update comment. Remove objfile
10927 parameter.
10928 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10929
b596a3c7
TT
109302019-01-10 Tom Tromey <tom@tromey.com>
10931
10932 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10933 <free_psymtabs>: Now private.
10934 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10935 (allocate_psymtab): Use new method.
10936
a9342b62
TT
109372019-01-10 Tom Tromey <tom@tromey.com>
10938
10939 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10940 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10941 * mdebugread.c (parse_partial_symbols): Use
10942 allocate_dependencies.
10943 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10944 allocate_dependencies.
10945 (process_psymtab_comp_unit_reader)
10946 (build_type_psymtab_dependencies): Likewise.
10947 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10948
5af70966
TT
109492019-01-10 Tom Tromey <tom@tromey.com>
10950
10951 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10952 PSYMBOL_SET_LANGUAGE.
10953 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10954
5923a04c
TT
109552019-01-10 Tom Tromey <tom@tromey.com>
10956
10957 * psymtab.h (psymtab_storage::obstack): New method.
10958 <m_obstack>: Rename from obstack; now private.
10959 * psymtab.c (psymtab_storage): Update.
10960 * dwarf2read.c (create_addrmap_from_index)
10961 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10962 Update.
10963
6d6a12bf
TT
109642019-01-10 Tom Tromey <tom@tromey.com>
10965
10966 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10967 * objfiles.h (objfile::reset_psymtabs): New method.
10968
d320c2b5
TT
109692019-01-10 Tom Tromey <tom@tromey.com>
10970
10971 * symmisc.c (print_symbol_bcache_statistics): Update.
10972 (print_objfile_statistics): Update.
10973 * symfile.c (reread_symbols): Update.
10974 * psymtab.h (class psymtab_storage): New.
10975 * psymtab.c (psymtab_storage): New constructor.
10976 (~psymtab_storage): New destructor.
10977 (require_partial_symbols): Update.
10978 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10979 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10980 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10981 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10982 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10983 (start_psymtab_common, end_psymtab_common)
10984 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10985 (allocate_psymtab): Update.
10986 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10987 Update.
10988 (dump_psymtab_addrmap, maintenance_print_psymbols)
10989 (maintenance_check_psymtabs): Update.
10990 (class objfile_psymtabs): Move to objfiles.h.
10991 * psympriv.h (discard_psymtab): Now inline.
10992 (psymtab_discarder::psymtab_discarder): Update.
10993 (psymtab_discarder::~psymtab_discarder): Update.
10994 (ALL_OBJFILE_PSYMTABS): Rewrite.
10995 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10996 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10997 Remove fields.
10998 <partial_symtabs>: New field.
10999 (class objfile_psymtabs): Move from psymtab.h. Update.
11000 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11001 psymbol_cache.
11002 (objfile::~objfile): Don't destroy psymbol_cache.
11003 * mdebugread.c (parse_partial_symbols): Update.
11004 * dwarf2read.c (create_addrmap_from_index)
11005 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11006 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11007 (add_partial_subprogram, dwarf2_ranges_read): Update.
11008 * dwarf-index-write.c (write_address_map)
11009 (write_one_signatured_type, recursively_write_psymbols)
11010 (class debug_names, class debug_names, write_psymtabs_to_index):
11011 Update.
11012
1d94a5a3
TT
110132019-01-10 Tom Tromey <tom@tromey.com>
11014
11015 * symtab.h (SYMBOL_SET_NAMES): Update.
11016 (symbol_set_names): Update.
11017 (MSYMBOL_SET_NAMES): Update.
11018 * symtab.c (symbol_set_names): Change argument to be an
11019 objfile_per_bfd_storage.
11020 * psymtab.c (add_psymbol_to_bcache): Update.
11021 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11022
0f14768a
TT
110232019-01-10 Tom Tromey <tom@tromey.com>
11024
11025 * symtab.c (create_demangled_names_hash): Change argument to be an
11026 objfile_per_bfd_storage.
11027 (symbol_set_names): Update.
11028
6eee24ce
TT
110292019-01-10 Tom Tromey <tom@tromey.com>
11030
11031 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11032 init_psymbol_list.
11033 * psymtab.c (init_psymbol_list): Do nothing if already called.
11034 * psympriv.h (init_psymbol_list): Add comment.
11035 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11036 init_psymbol_list.
11037 * dbxread.c (dbx_symfile_read): Unconditionally call
11038 init_psymbol_list.
11039
75aedd27
TT
110402019-01-10 Tom Tromey <tom@tromey.com>
11041
11042 * xcoffread.c (scan_xcoff_symtab): Update.
11043 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11044 "where".
11045 * mdebugread.c (parse_partial_symbols)
11046 (handle_psymbol_enumerators): Update.
11047 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11048 * dbxread.c (read_dbx_symtab): Update.
11049 * psympriv.h (psymbol_placement): New enum.
11050 (add_psymbol_to_list): Update.
11051
939652a5
TT
110522019-01-10 Tom Tromey <tom@tromey.com>
11053
11054 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11055 static_psymbols parameters.
11056 (scan_xcoff_symtab): Update.
11057 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11058 static_psymbols parameters.
11059 * psympriv.h (start_psymtab_common): Update.
11060 * mdebugread.c (parse_partial_symbols): Update.
11061 * dwarf2read.c (create_partial_symtab): Update.
11062 * dbxread.c (read_dbx_symtab): Update.
11063 (start_psymtab): Remove global_psymbols and static_psymbols
11064 parameters.
11065
baa62830
TT
110662019-01-10 Tom Tromey <tom@tromey.com>
11067
11068 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11069 * psymtab.c (allocate_psymtab): Add comment.
11070 * psympriv.h (allocate_psymtab): Add comment.
11071 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11072 initializations.
11073 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11074
0e8f53ba
TT
110752019-01-10 Tom Tromey <tom@tromey.com>
11076
11077 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11078 Don't declare.
11079 * mipsread.c: Include mdebugread.h.
11080 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11081 Declare.
11082 * elfread.c: Include mdebugread.h.
11083
b22a7c6a
TT
110842019-01-09 Tom Tromey <tom@tromey.com>
11085
11086 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11087 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11088 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11089 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11090 (psym_lookup_symbol, psym_find_last_source_symtab)
11091 (psym_forget_cached_source_info, psym_print_stats)
11092 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11093 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11094 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11095 (psym_find_compunit_symtab_by_address)
11096 (maintenance_print_psymbols, maintenance_info_psymtabs)
11097 (maintenance_check_psymtabs): Use ranged for.
11098 * psymtab.h (class objfile_psymtabs): New.
11099 (require_partial_symbols): Return objfile_psymtabs.
11100 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11101
3b9d3ac2
TT
111022019-01-09 Tom Tromey <tom@tromey.com>
11103
11104 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11105 (find_pc_mapped_section, list_overlays_command)
11106 (map_overlay_command, unmap_overlay_command)
11107 (simple_overlay_update): Use all_objfiles.
11108 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11109 * printcmd.c (info_symbol_command): Use all_objfiles.
11110 * objfiles.h (ALL_OBJSECTIONS): Remove.
11111 * maint.c (maintenance_translate_address): Use all_objfiles.
11112 * gcore.c (gcore_create_callback): Use all_objfiles.
11113 (objfile_find_memory_regions): Likewise.
11114
8b31193a
TT
111152019-01-09 Tom Tromey <tom@tromey.com>
11116
11117 * symtab.c (find_line_symtab, info_sources_command)
11118 (make_source_files_completion_list): Use objfile_compunits.
11119 * source.c (select_source_symtab): Use objfile_compunits.
11120 * objfiles.h (struct objfile): Update comment.
11121 (ALL_OBJFILES): Remove.
11122 (ALL_FILETABS): Remove.
11123 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11124 objfile_compunits.
11125
d5da8b3c
TT
111262019-01-09 Tom Tromey <tom@tromey.com>
11127
11128 * symmisc.c (print_objfile_statistics, dump_objfile)
11129 (maintenance_print_symbols): Use compunit_filetabs.
11130 * source.c (forget_cached_source_info_for_objfile): Use
11131 compunit_filetabs.
11132 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11133 (ALL_FILETABS): Use compunit_filetabs.
11134 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11135 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11136
5accd1a0
TT
111372019-01-09 Tom Tromey <tom@tromey.com>
11138
11139 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11140 (compunit_filetabs): New.
11141 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11142 compunit_filetabs.
11143 (info_sources_command, make_source_files_completion_list): Remove
11144 declaration.
11145 * symmisc.c (print_objfile_statistics, dump_objfile)
11146 (maintenance_print_symbols): Remove declaration.
11147 (maintenance_info_symtabs): Use compunit_filetabs.
11148 (maintenance_info_line_tables): Likewise.
11149 * source.c (select_source_symtab): Change local variable name.
11150 (forget_cached_source_info_for_objfile): Remove declaration.
11151 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11152 * objfiles.c (objfile_relocate1): Remove declaration.
11153 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11154 declaration.
11155 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11156 * coffread.c (coff_symtab_read): Remove declaration.
11157 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11158 compunit_filetabs.
11159
d8aeb77f
TT
111602019-01-09 Tom Tromey <tom@tromey.com>
11161
11162 * symtab.c (lookup_objfile_from_block)
11163 (find_pc_sect_compunit_symtab, search_symbols)
11164 (default_collect_symbol_completion_matches_break_on): Use
11165 objfile_compunits.
11166 * objfiles.h (ALL_COMPUNITS): Remove.
11167 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11168 * cp-support.c (add_symbol_overload_list_qualified): Use
11169 objfile_compunits.
11170 * ada-lang.c (ada_collect_symbol_completion_matches)
11171 (ada_add_global_exceptions): Use objfile_compunits.
11172
592553c4
TT
111732019-01-09 Tom Tromey <tom@tromey.com>
11174
11175 * source.c (select_source_symtab)
11176 (forget_cached_source_info_for_objfile): Remove declaration.
11177 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11178 declaration.
11179 * maint.c (count_symtabs_and_blocks): Remove declaration.
11180 * cp-support.c (add_symbol_overload_list_qualified): Remove
11181 declaration.
11182 * coffread.c (coff_symtab_read): Remove declaration.
11183 * symtab.c (lookup_symbol_in_objfile_symtabs)
11184 (basic_lookup_transparent_type_1): Use objfile_compunits.
11185 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11186 (info_sources_command, search_symbols)
11187 (default_collect_symbol_completion_matches_break_on)
11188 (make_source_files_completion_list): Remove declaration.
11189 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11190 (ada_collect_symbol_completion_matches)
11191 (ada_add_global_exceptions): Remove declaration.
11192 * linespec.c (iterate_over_all_matching_symtabs): Use
11193 objfile_compunits.
11194 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11195 (class objfile_compunits): New.
11196 (ALL_COMPUNITS): Use objfile_compunits.
11197 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11198 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11199 objfile_compunits.
11200 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11201
5325b9bf
TT
112022019-01-09 Tom Tromey <tom@tromey.com>
11203
11204 * symtab.c (search_symbols)
11205 (default_collect_symbol_completion_matches_break_on): Use
11206 objfile_msymbols.
11207 * ada-lang.c (ada_lookup_simple_minsym)
11208 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11209 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11210 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11211 objfile_msymbols.
11212 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11213 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11214 * objc-lang.c (find_methods): Use objfile_msymbols.
11215 (info_selectors_command, info_classes_command): Likewise.
11216 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11217 * objfiles.h (class objfile_msymbols): New.
11218 (ALL_OBJFILE_MSYMBOLS): Remove.
11219 (ALL_MSYMBOLS): Remove.
11220
cac85af2
TT
112212019-01-09 Tom Tromey <tom@tromey.com>
11222
11223 * common/next-iterator.h (next_adapter): Add Iterator template
11224 parameter.
11225 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11226 (class all_objfiles_safe): New.
11227 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11228 * objfiles.c (put_objfile_before): Update comment.
11229 (add_separate_debug_objfile): Likewise.
11230 (free_all_objfiles): Use all_objfiles_safe.
11231 (objfile_purge_solibs): Likewise.
11232
aed57c53
TT
112332019-01-09 Tom Tromey <tom@tromey.com>
11234
11235 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11236 (expand_symtab_containing_pc, lookup_static_symbol)
11237 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11238 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11239 all_objfiles.
11240 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11241 * breakpoint.c (create_overlay_event_breakpoint)
11242 (create_longjmp_master_breakpoint)
11243 (create_std_terminate_master_breakpoint)
11244 (create_exception_master_breakpoint): Use all_objfiles.
11245 * linux-thread-db.c (try_thread_db_load_from_pdir)
11246 (has_libpthread): Use all_objfiles.
11247 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11248 * linespec.c (iterate_over_all_matching_symtabs)
11249 (search_minsyms_for_name): Use all_objfiles.
11250 * maint.c (maintenance_info_sections): Use all_objfiles.
11251 * main.c (captured_main_1): Use all_objfiles.
11252 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11253 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11254 * guile/scm-pretty-print.c
11255 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11256 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11257 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11258 (maintenance_print_msymbols): Use all_objfiles.
11259 * source.c (select_source_symtab): Use all_objfiles.
11260 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11261 * symfile.c (remove_symbol_file_command)
11262 (expand_symtabs_matching, map_symbol_filenames): Use
11263 all_objfiles.
11264 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11265 all_objfiles.
11266 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11267 * objc-lang.c (find_methods): Use all_objfiles.
11268 * objfiles.c (have_partial_symbols, have_full_symbols)
11269 (have_minimal_symbols, qsort_cmp)
11270 (default_iterate_over_objfiles_in_search_order): Use
11271 all_objfiles.
11272 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11273 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11274 (maintenance_check_psymtabs): Use all_objfiles.
11275 (ALL_PSYMTABS): Remove.
11276 * compile/compile-object-run.c (do_module_cleanup): Use
11277 all_objfiles.
11278 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11279 * cp-support.c (add_symbol_overload_list_qualified): Use
11280 all_objfiles.
11281 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11282 Use all_objfiles.
11283 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11284 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11285 all_objfiles.
11286 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11287 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11288 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11289 Uses all_objfiles.
11290 * solib.c (solib_read_symbols): Use all_objfiles
11291
99d89cde
TT
112922019-01-09 Tom Tromey <tom@tromey.com>
11293
11294 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11295 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11296 all_objfiles.
11297 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11298 * symmisc.c (print_symbol_bcache_statistics)
11299 (print_objfile_statistics, maintenance_print_objfiles)
11300 (maintenance_info_symtabs, maintenance_check_symtabs)
11301 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11302 all_objfiles.
11303 * source.c (forget_cached_source_info): Use all_objfiles.
11304 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11305 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11306 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11307 * objfiles.c (update_section_map): Use all_objfiles.
11308 (shared_objfile_contains_address_p): Likewise.
11309 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11310 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11311
21708325
TT
113122019-01-09 Tom Tromey <tom@tromey.com>
11313
11314 * common/next-iterator.h: New file.
11315 * objfiles.h (class all_objfiles): New.
11316 (struct objfile_iterator): New.
11317
669e09f6
PW
113182019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11319
11320 * NEWS: Move the description of the changed "frame", "select-frame",
11321 and "info frame" commands to the Changed commands section.
11322
041be526
SM
113232019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11324
11325 * gdbtypes.c (check_stub_method_group): Remove handling of old
11326 mangling schemes.
11327 * linespec.c (find_methods): Likewise.
11328 * stabsread.c (read_member_functions): Likewise.
11329 * valops.c (search_struct_method): Likewise.
11330 (value_struct_elt_for_reference): Likewise.
11331 * NEWS: Mention this change.
11332
0e2a2133
AB
113332019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11334
11335 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11336 print_source_lines.
11337 * source.c (print_source_lines_base): Update line number check.
11338 (print_source_lines): New function.
11339 (source_lines_range::source_lines_range): New function.
11340 * source.h (class source_lines_range): New class.
11341 (print_source_lines): New declaration.
11342
1055a3b4
PW
113432019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11344
11345 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11346
cfeadda5
TT
113472019-01-08 Tom Tromey <tom@tromey.com>
11348 Simon Marchi <simon.marchi@ericsson.com>
11349
11350 PR gdb/24060
11351 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11352 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11353 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11354 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11355 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11356 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11357
583068ca
AB
113582019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11359
11360 * source.c (select_source_symtab): Move header comment to
11361 declaration in source.h.
11362 (forget_cached_source_info_for_objfile): Likewise.
11363 (forget_cached_source_info): Likewise.
11364 (identify_source_line): Likewise.
11365 * source.h (identify_source_line): Move declaration from symtab.h
11366 and add comment from source.c
11367 (print_source_lines): Likewise.
11368 (forget_cached_source_info_for_objfile): Likewise.
11369 (forget_cached_source_info): Likewise.
11370 (select_source_symtab): Likewise.
11371 (enum print_source_lines_flag): Move definition from symtab.h.
11372 * symtab.h (identify_source_line): Move declaration to source.h.
11373 (print_source_lines): Likewise.
11374 (forget_cached_source_info_for_objfile): Likewise.
11375 (forget_cached_source_info): Likewise.
11376 (select_source_symtab): Likewise.
11377 (enum print_source_lines_flag): Move definition to source.h.
11378 * tui/tui-hooks.c: Add 'source.h' include.
11379
ec98a4ad
AB
113802019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11381
11382 * source.c (print_source_lines_base): Handle requests to print
11383 reverse line number sequences, and guard against empty lines
11384 string.
11385
62ea19c1
AB
113862019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11387
11388 * source.c (print_source_lines_base): Fix skip of '\r' if next
11389 character is '\n'.
11390
9d30e1fd
TT
113912019-01-06 Tom Tromey <tom@tromey.com>
11392
11393 * c-exp.y (struct c_parse_state) <macro_original_text,
11394 expansion_obstack>: New member.
11395 (macro_original_text, expansion_obstack): Remove globals.
11396 (scan_macro_expansion, scanning_macro_expansion)
11397 (finished_macro_expansion): Update.
11398 (scan_macro_cleanup): Remove.
11399 (yylex, c_parse): Update.
11400
c65bac38
TT
114012019-01-06 Tom Tromey <tom@tromey.com>
11402
11403 * c-exp.y (struct c_parse_state) <strings>: New member.
11404 (operator_stoken): Update.
11405
02e12e38
TT
114062019-01-06 Tom Tromey <tom@tromey.com>
11407
11408 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11409 (union type_stack_elt) <typelist_val>: Now a pointer to
11410 std::vector.
11411 (type_stack_cleanup): Don't declare.
11412 (push_typelist): Update.
11413 * parse.c (pop_typelist): Return a std::vector.
11414 (push_typelist): Take a std::vector.
11415 (follow_types): Update. Do not free args.
11416 (type_stack_cleanup): Remove.
11417 * c-exp.y (struct c_parse_state): New.
11418 (cpstate): New global.
11419 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11420 (nonempty_typelist): Update.
11421 (func_mod): Create a new vector.
11422 (c_parse): Create a c_parse_state.
11423 (check_parameter_typelist): Do not delete params.
11424 (function_method): Update. Do not delete type_list.
11425
f097f5ad
TT
114262019-01-06 Tom Tromey <tom@tromey.com>
11427
11428 PR gdb/28155:
11429 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11430 check_typedef.
11431 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11432 (print_return_value): Likewise.
11433
d2adf9f1
TT
114342019-01-05 Tom Tromey <tom@tromey.com>
11435
11436 * contrib/cleanup_check.py: Remove.
11437 * contrib/gcc-with-excheck: Remove.
11438 * contrib/exsummary.py: Remove.
11439 * contrib/excheck.py: Remove.
11440
2eab46b1
JB
114412019-01-05 Joel Brobecker <brobecker@adacore.com>
11442
11443 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11444 NULL. Initialize tpprev to NULL instead of assigning it
11445 to NULL on the next statement.
11446 * windows-nat.c (windows_delete_thread): Remove check for
11447 main_thread_id before printing thread exit notifications.
11448 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11449 Remove thread ID check against main_thread_id.
11450 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11451 windows_delete_thread.
11452 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11453
48c5e7e2
TT
114542019-01-04 Tom Tromey <tom@tromey.com>
11455
11456 * compile/compile.c (_initialize_compile): Use upper case for
11457 metasyntactic variables.
11458 * symmisc.c (_initialize_symmisc): Use upper case for
11459 metasyntactic variables.
11460 * psymtab.c (_initialize_psymtab): Use upper case for
11461 metasyntactic variables.
11462 * demangle.c (demangle_command): Use upper case for metasyntactic
11463 variables.
11464 (_initialize_demangler): Likewise.
11465 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11466 variables.
11467
986041cd
TT
114682019-01-03 Tom Tromey <tom@tromey.com>
11469
11470 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11471
7c711119
TT
114722019-01-03 Tom Tromey <tom@tromey.com>
11473
11474 * python/py-symtab.c (salpy_str): Update.
11475 (struct salpy_sal_object) <symtab>: Now a PyObject.
11476 (salpy_dealloc): Update.
11477 (del_objfile_sal): Use gdbpy_ref.
11478
1b20edf0
TT
114792019-01-03 Tom Tromey <tom@tromey.com>
11480
11481 * python/py-type.c (convert_field): Use new_reference. Return
11482 gdbpy_ref.
11483 (make_fielditem): Return gdbpy_ref.
11484 (typy_fields): Update.
11485 (typy_getitem): Update.
11486 (field_name): Return gdbpy_ref. Use new_reference.
11487 (typy_iterator_iternext): Update.
11488
ea41325b
TT
114892019-01-03 Tom Tromey <tom@tromey.com>
11490
11491 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11492
2a3c71d6
TT
114932019-01-03 Tom Tromey <tom@tromey.com>
11494
11495 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11496 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11497 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11498 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11499 (pspy_set_type_printers): Likewise.
11500 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11501 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11502 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11503 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11504 (objfpy_set_type_printers): Likewise.
11505
5c329e6a
TT
115062019-01-03 Tom Tromey <tom@tromey.com>
11507
11508 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11509 (gdbpy_print_stack): Use gdbpy_err_fetch.
11510 * python/python-internal.h (class gdbpy_err_fetch): New class.
11511 (class gdbpy_enter) <m_error_type, m_error_value,
11512 m_error_traceback>: Remove.
11513 <m_error>: New member.
11514 (gdbpy_exception_to_string): Don't declare.
11515 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11516 * python/py-value.c (convert_value_from_python): Use
11517 gdbpy_err_fetch.
11518 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11519 gdbpy_exception_to_string.
11520 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11521 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11522 gdbpy_err_fetch.
11523
169bb27b
AB
115242019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11525
11526 * linux-nat.c (delete_lwp_cleanup): Delete.
11527 (struct lwp_deleter): New struct.
11528 (lwp_info_up): New typedef.
11529 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11530 lwp_info_up.
11531
a07c8880
AB
115322019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11533
11534 * linux-fork.c (class scoped_switch_fork_info): New class.
11535 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11536
26089c49
AB
115372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11538
11539 * valops.c (find_overload_match): Remove use of null_cleanup, and
11540 calls to do_cleanups.
11541
06d3e5b0
AB
115422019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11543
11544 * compile/compile-cplus-types.c
11545 (compile_cplus_instance::decl_name): Handle changes to
11546 cp_func_name.
11547 * cp-support.c (cp_func_name): Update header comment, update
11548 return type.
11549 * cp-support.h (cp_func_name): Update return type in declaration.
11550 * valops.c (find_overload_match): Move temp_func local to top
11551 level of function and change its type. Use temp_func to hold and
11552 delete temporary string obtained from cp_func_name.
11553
66644cd3
AB
115542019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11555
11556 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11557 gdb::char_vector, remove cleanup, and update uses of `msg`.
11558
592d8c0a
JW
115592019-01-03 Jim Wilson <jimw@sifive.com>
11560
11561 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11562
c55d06ec
TT
115632019-01-02 Tom Tromey <tom@tromey.com>
11564
11565 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11566 (tdesc_parse_xml): Remove cleanups.
11567 * target-descriptions.h (make_cleanup_free_target_description):
11568 Don't declare.
11569 (target_desc_deleter): New struct.
11570 (target_desc_up): New typedef.
11571 * target-descriptions.c (target_desc_deleter::operator()): Rename
11572 from free_target_description.
11573 (make_cleanup_free_target_description): Remove.
11574
3a6ae42d
TT
115752019-01-02 Tom Tromey <tom@tromey.com>
11576
11577 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11578 constructor, destructor.
11579 (linespec_parser): Remove typedef.
11580 (~linespec_parser): Rename from linespec_parser_delete.
11581 (linespec_lex_to_end, linespec_complete_label)
11582 (linespec_complete): Update.
11583 (decode_line_full): Remove cleanups.
11584 (decode_line_1): Update.
11585
61fd3e73
TT
115862019-01-02 Tom Tromey <tom@tromey.com>
11587
11588 * python/python-internal.h (inferior_to_inferior_object): Change
11589 return type.
11590 * python/py-exitedevent.c (create_exited_event_object): Update.
11591 * python/py-inferior.c (inferior_to_inferior_object): Return
11592 gdbpy_ref.
11593 (python_new_inferior, python_inferior_deleted)
11594 (thread_to_thread_object, delete_thread_object)
11595 (build_inferior_list, gdbpy_selected_inferior): Update.
11596 * python/py-infthread.c (create_thread_object): Update. Also fail
11597 if inferior_to_inferior_object fails.
11598
d20172fc
SM
115992019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11600
11601 * inferior.h (class inferior) <displaced_step_state>: New field.
11602 * infrun.h (struct displaced_step_state): Move here from
11603 infrun.c. Initialize fields, add constructor.
11604 <inf>: Remove field.
11605 <reset>: New method.
11606 * infrun.c (struct displaced_step_inferior_state): Move to
11607 infrun.h.
11608 (displaced_step_inferior_states): Remove.
11609 (get_displaced_stepping_state): Adust.
11610 (displaced_step_in_progress_any_inferior): Adjust.
11611 (displaced_step_in_progress_thread): Adjust.
11612 (displaced_step_in_progress): Adjust.
11613 (add_displaced_stepping_state): Remove.
11614 (get_displaced_step_closure_by_addr): Adjust.
11615 (remove_displaced_stepping_state): Remove.
11616 (infrun_inferior_exit): Call displaced_step_state.reset.
11617 (use_displaced_stepping): Don't check for NULL.
11618 (displaced_step_prepare_throw): Call
11619 get_displaced_stepping_state.
11620 (displaced_step_fixup): Don't check for NULL.
11621 (prepare_for_detach): Don't check for NULL.
11622
e3319240
PW
116232019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11624
11625 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11626 in case of call that did not complete.
11627
5d36dfb9
AU
116282019-01-02 Andrey Utkin <autkin@undo.io>
11629
11630 * symfile.c (find_separate_debug_file): Fix search of debug files for
11631 remote debuggee.
11632
8833fbf0
TT
116332019-01-02 Tom Tromey <tom@tromey.com>
11634
11635 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11636 indentation.
11637 * python/py-frame.c (frapy_older): Remove cast.
11638 (frapy_newer): Likewise.
11639 * python/py-breakpoint.c (local_setattro): Remove cast.
11640 * python/py-arch.c (archpy_name): Remove local variable.
11641 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11642
4ada3dfd
JB
116432019-01-02 Joel Brobecker <brobecker@adacore.com>
11644
11645 * unittests/basic_string_view/element_access/char/empty.cc:
11646 Fix year range in copyright header.
11647
113b7b81
AB
116482019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11649
11650 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11651 Delete.
11652 <operator==>: Update with for removed field.
11653 <hash>: Likewise.
11654 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11655 <isa_features>: ...this.
11656 <abi_features>: New field.
11657 (riscv_isa_flen): Update comment.
11658 (riscv_abi_xlen): New declaration.
11659 (riscv_abi_flen): New declaration.
11660 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11661 isa_features.
11662 (riscv_abi_xlen): New function.
11663 (riscv_isa_flen): Update to get answer from isa_features.
11664 (riscv_abi_flen): New function.
11665 (riscv_has_fp_abi): Update to get answer from abi_features.
11666 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11667 xlen and flen.
11668 (riscv_call_info) <xlen, flen>: Update comment.
11669 (riscv_call_arg_struct): Remove invalid assertions
11670 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11671 is removed.
11672 (riscv_gdbarch_init): Gather isa features and abi features
11673 separately, ensure both match on the gdbarch when reusing an old
11674 gdbarch. Relax an error check to allow 32-bit abi float to run on
11675 a target with 64-bit float hardware.
11676
b18ca514
PW
116772019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11678
11679 * source.c (search_command_helper): Stop reverse search
11680 when line 1 has been searched.
11681
ec70d8db
PW
116822019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11683
11684 * record-full.c (record_full_base_target::close): Rewrite
11685 record_full_core_buf_list free logic.
11686
5b38f9c1
PW
116872019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11688
11689 * break-catch-syscall.c (print_one_catch_syscall): xfree
11690 the last text.
11691
66d91b39
JB
116922019-01-01 Joel Brobecker <brobecker@adacore.com>
11693
11694 * top.c (print_gdb_version): Update Copyright year in version
11695 message.
11696
42a4f53d
JB
116972019-01-01 Joel Brobecker <brobecker@adacore.com>
11698
11699 Update copyright year range in all GDB files.
11700
7e955d83 117012019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11702
5bbd631d 11703 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11704
5bbd631d 11705For older changes see ChangeLog-2018.
c906108c
SS
11706\f
11707Local Variables:
11708mode: change-log
11709left-margin: 8
11710fill-column: 74
11711version-control: never
57da7796 11712coding: utf-8
c906108c 11713End:
5bbd631d 11714