]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Fix comment about the signature of add_separate_debug_file
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2
3 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4 this function's Python signature.
5
6
7 2019-07-24 Christian Biesinger <cbiesinger@google.com>
8
9 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
10 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
11 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
12 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
13 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
14
15
16 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
17
18 * h8300-tdep.c (h8300_register_name_common): New.
19 h8300_register_name): Use h8300_register_name_common.
20 (h8300s_register_name): Likewise.
21 (h8300sx_register_name): Likewise.
22 (h8300h_register_nam): New.
23 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
24
25
26 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27
28 * arm-tdep.c (arm_skip_cmse_entry): New function.
29 (arm_is_sgstubs_section): New function.
30 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
31
32 2019-07-22 Tom Tromey <tom@tromey.com>
33
34 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
35 Don't self-assign.
36
37 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
38
39 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
40 type_print.
41
42 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * symtab.c (search_symbols): Adjust msymbol matching type arrays
45 so that GDB doesn't match any msymbols when searching in the
46 TYPES_DOMAIN.
47 (print_symbol_info): Print using typedef_print or type_print based
48 on the type of the symbol. Add updated FIXME comment moved from...
49 (_initialize_symtab): ... move and update FIXME comment to above.
50
51 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * NEWS: Mention adding -q option to "info types".
54 * symtab.c (struct info_types_options): New struct.
55 (info_types_options_defs): New variable.
56 (make_info_types_options_def_group): New function.
57 (info_types_command): Use gdb::option framework to parse options.
58 (info_types_command_completer): New function.
59 (_initialize_symtab): Extend the help text on "info types" and
60 register command completer.
61
62 2019-07-21 Christian Biesinger <cbiesinger@google.com>
63
64 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
65 (lookup_symbol_in_objfile): Change int to block_enum and add a
66 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
67
68 2019-07-20 Christian Biesinger <cbiesinger@google.com>
69
70 * MAINTAINERS (Write After Approval): Add self.
71
72 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
73
74 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
75 instruction to the dummy code region.
76
77 2019-07-19 Tom Tromey <tromey@adacore.com>
78
79 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
80 (ARGSUSED, PARAMS, __func__): Remove rules.
81
82 2019-07-19 Alan Hayward <alan.hayward@arm.com>
83
84 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
85 * features/arm/arm-with-iwmmxt.c: Remove.
86 * features/arm/arm-with-iwmmxt.xml: Remove.
87 * features/arm/arm-with-m-fpa-layout.c: Remove.
88 * features/arm/arm-with-m-fpa-layout.xml: Remove.
89 * features/arm/arm-with-m-vfp-d16.c: Remove.
90 * features/arm/arm-with-m-vfp-d16.xml: Remove.
91 * features/arm/arm-with-m.c: Remove.
92 * features/arm/arm-with-m.xml: Remove.
93 * features/arm/arm-with-neon.c: Remove.
94 * features/arm/arm-with-neon.xml: Remove.
95 * features/arm/arm-with-vfpv2.c: Remove.
96 * features/arm/arm-with-vfpv2.xml: Remove.
97 * features/arm/arm-with-vfpv3.c: Remove.
98 * features/arm/arm-with-vfpv3.xml: Remove.
99
100 2019-07-19 Alan Hayward <alan.hayward@arm.com>
101
102 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
103
104 2019-07-19 Alan Hayward <alan.hayward@arm.com>
105
106 * arch/aarch32.c (aarch32_create_target_description): Create
107 target descriptions using features.
108 * arch/arm.c (arm_create_target_description)
109 (arm_create_mprofile_target_description): Likewise.
110 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
111
112 2019-07-19 Alan Hayward <alan.hayward@arm.com>
113
114 * Makefile.in: Add new files.
115 * aarch32-tdep.c: New file.
116 * aarch32-tdep.h: New file.
117 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
118 Call aarch32_read_description.
119 * arch/aarch32.c: New file.
120 * arch/aarch32.h: New file.
121 * arch/arm.c (arm_create_target_description)
122 (arm_create_mprofile_target_description): New function.
123 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
124 (arm_create_target_description)
125 (arm_create_mprofile_target_description): New declaration.
126 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
127 read_description functions.
128 * arm-linux-nat.c (arm_linux_nat_target::read_description):
129 Likewise.
130 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
131 * arm-tdep.c (tdesc_arm_list): New variable.
132 (arm_register_g_packet_guesses): Call create description functions.
133 (arm_read_description) (arm_read_mprofile_description): New
134 function.
135 * arm-tdep.h (arm_read_description)
136 (arm_read_mprofile_description): Add declaration.
137 * configure.tgt: Add new files.
138
139 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
140
141 * top.c (new_ui_command): Open specified terminal just once.
142
143 2019-07-18 Tom Tromey <tromey@adacore.com>
144
145 * symtab.c (main_name): Constify return type.
146 * symfile.c (set_initial_language): Update.
147 * symtab.h (main_name): Constify return type.
148
149 2019-07-17 Tom Tromey <tom@tromey.com>
150
151 * tui/tui-winsource.c (tui_update_source_window)
152 (tui_update_source_window_as_is)
153 (tui_update_source_windows_with_line): Remove return.
154 * tui/tui-disasm.c (tui_show_disassem)
155 (tui_show_disassem_and_update_source): Remove return.
156 * tui/tui.c (tui_reset): Remove return.
157 * tui/tui-wingeneral.c
158 (tui_check_and_display_highlight_if_needed): Remove return.
159
160 2019-07-17 Tom Tromey <tom@tromey.com>
161
162 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
163
164 2019-07-17 Tom Tromey <tom@tromey.com>
165
166 * tui/tui-winsource.h (struct tui_exec_info_window)
167 (struct tui_source_window_base): Move from tui-data.h.
168 * tui/tui-winsource.c: Move many method definitions from
169 elsewhere. Remove "structuring" comments.
170 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
171 (tui_source_window_base::refresh_window): Move to
172 tui-winsource.c.
173 * tui/tui-win.c (tui_source_window_base::refresh_all)
174 (tui_source_window_base::update_tab_width)
175 (tui_source_window_base::set_new_height)
176 (tui_source_window_base::do_make_visible_with_new_height): Move to
177 tui-winsource.c.
178 * tui/tui-source.h: Update.
179 * tui/tui-source.c (tui_source_window_base::reset): Move to
180 tui-winsource.c.
181 * tui/tui-disasm.h: Update.
182 * tui/tui-data.h (struct tui_exec_info_window): Move to
183 tui-winsource.h.
184 (struct tui_source_window_base): Likewise.
185 * tui/tui-data.c (tui_source_window_base::clear_detail)
186 (tui_source_window_base, ~tui_source_window_base): Move to
187 tui-winsource.c.
188
189 2019-07-17 Tom Tromey <tom@tromey.com>
190
191 * tui/tui-win.c (tui_resize_all)
192 (tui_source_window_base::update_tab_width)
193 (tui_adjust_win_heights): Update.
194 (tui_win_info::make_invisible_and_set_new_height): Rename from
195 make_invisible_and_set_new_height.
196 * tui/tui-data.h (struct tui_win_info)
197 <make_invisible_and_set_new_height>: New method.
198
199 2019-07-17 Tom Tromey <tom@tromey.com>
200
201 * tui/tui.c: Update.
202 * tui/tui-source.h (struct tui_source_window): Move from
203 tui-data.h.
204 * tui/tui-layout.c: Update.
205 * tui/tui-disasm.c: Update.
206 * tui/tui-data.h (struct tui_source_window): Move to
207 tui-source.h.
208
209 2019-07-17 Tom Tromey <tom@tromey.com>
210
211 * tui/tui-disasm.h (struct tui_disasm_window): Move from
212 tui-data.h.
213 * tui/tui-data.h (struct tui_disasm_window): Move to
214 tui-disasm.h.
215
216 2019-07-17 Tom Tromey <tom@tromey.com>
217
218 * tui/tui-regs.h (struct tui_data_item_window): Move from
219 tui-data.h.
220 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
221 * tui/tui-data.h (struct tui_data_item_window): Move to
222 tui-regs.h.
223 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
224
225 2019-07-17 Tom Tromey <tom@tromey.com>
226
227 * tui/tui.c: Update.
228 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
229 (tui_cmd_window::max_height): Move to tui-command.c.
230 * tui/tui-layout.c: Update.
231 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
232 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
233 tui-command.c.
234 * tui/tui-command.h (struct tui_cmd_window): Move from
235 tui-data.h.
236 * tui/tui-command.c: Remove "structuring" comments.
237 (tui_cmd_window::clear_detail)
238 (tui_cmd_window::do_make_visible_with_new_height)
239 (tui_cmd_window::max_height): Move from elsewhere.
240
241 2019-07-17 Tom Tromey <tom@tromey.com>
242
243 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
244 Now static.
245 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
246 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
247
248 2019-07-17 Tom Tromey <tom@tromey.com>
249
250 * tui/tui.c: Update.
251 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
252 tui-regs.c.
253 * tui/tui-windata.h: Remove file.
254 * tui/tui-windata.c: Remove file.
255 * tui/tui-win.c (tui_data_window::set_new_height)
256 (tui_data_window::do_make_visible_with_new_height): Move to
257 tui-regs.c.
258 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
259 * tui/tui-regs.c: Remove "structuring" comments.
260 (tui_data_window::first_data_item_displayed)
261 (tui_data_window::delete_data_content_windows)
262 (tui_data_window::erase_data_content)
263 (tui_data_window::display_all_data)
264 (tui_data_window::refresh_all)
265 (tui_data_window::do_scroll_vertical)
266 (tui_data_window::clear_detail, tui_data_window::set_new_height)
267 (tui_data_window::do_make_visible_with_new_height)
268 (tui_data_window::refresh_window): Move from elsewhere.
269 (_initialize_tui_regs): Move to end of file.
270 * tui/tui-layout.c: Update.
271 * tui/tui-hooks.c: Update.
272 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
273 * tui/tui-data.c (tui_data_window::clear_detail): Move to
274 tui-regs.c.
275 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
276
277 2019-07-17 Tom Tromey <tom@tromey.com>
278
279 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
280 seen.
281
282 2019-07-17 Tom Tromey <tom@tromey.com>
283
284 * tui/tui-win.c (tui_source_window_base::set_new_height)
285 (tui_source_window_base::do_make_visible_with_new_height): Use
286 m_has_locator field directly.
287 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
288 method.
289 (struct tui_source_window_base) <has_locator>: Likewise.
290
291 2019-07-17 Tom Tromey <tom@tromey.com>
292
293 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
294 Don't declare.
295 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
296 Remove.
297 * tui/tui-win.c (tui_source_window_base::set_new_height)
298 (tui_source_window_base::set_new_height)
299 (make_invisible_and_set_new_height)
300 (tui_source_window_base::do_make_visible_with_new_height)
301 (tui_source_window_base::do_make_visible_with_new_height):
302 Update.
303 * tui/tui-layout.c (show_source_disasm_command, show_data)
304 (show_source_or_disasm_and_command): Update.
305 * tui/tui-layout.c (show_layout): Update.
306
307 2019-07-17 Tom Tromey <tom@tromey.com>
308
309 * tui/tui-layout.c (make_data_window): Remove.
310 (show_data): Unify creation and re-initialization cases.
311
312 2019-07-17 Tom Tromey <tom@tromey.com>
313
314 * tui/tui-layout.c (make_source_window, make_disasm_window):
315 Remove.
316 (show_data): Unify creation and re-initialization cases.
317
318 2019-07-17 Tom Tromey <tom@tromey.com>
319
320 * tui/tui-layout.c (make_command_window): Remove.
321 (show_source_disasm_command, show_source_or_disasm_and_command):
322 Unify creation and re-initialization cases.
323
324 2019-07-17 Tom Tromey <tom@tromey.com>
325
326 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
327 creation and re-initialization cases.
328
329 2019-07-17 Tom Tromey <tom@tromey.com>
330
331 * tui/tui-regs.c (tui_get_register): Return void.
332
333 2019-07-17 Tom Tromey <tom@tromey.com>
334
335 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
336 Simplify.
337
338 2019-07-17 Tom Tromey <tom@tromey.com>
339
340 * tui/tui-layout.c (show_source_disasm_command): Simplify window
341 resetting.
342
343 2019-07-17 Tom Tromey <tom@tromey.com>
344
345 * tui/tui.h (tui_set_layout_by_name): Don't declare.
346 * tui/tui-regs.c (tui_reg_layout): New function.
347 (tui_show_registers, tui_reg_command): Use it.
348 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
349 (tui_layout_command): Rename from tui_set_layout_by_name. Change
350 parameters.
351 (tui_layout_command): Remove.
352
353 2019-07-17 Tom Tromey <tom@tromey.com>
354
355 * tui/tui-layout.h (tui/tui-layout): Return void.
356 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
357
358 2019-07-17 Tom Tromey <tom@tromey.com>
359
360 * tui/tui-layout.c (show_source_disasm_command, show_data):
361 Update.
362 (reset_locator): Remove.
363 (show_source_or_disasm_and_command): Update.
364
365 2019-07-17 Tom Tromey <tom@tromey.com>
366
367 * tui/tui-source.c (tui_source_window_base::reset): Remove
368 win_type parameter.
369 * tui/tui-layout.c (make_command_window, make_source_window)
370 (make_disasm_window, make_data_window)
371 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
372 (reset_locator, show_source_or_disasm_and_command): Update.
373 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
374 win_type parameter.
375 (struct tui_source_window_base) <reset>: Likewise.
376
377 2019-07-17 Tom Tromey <tom@tromey.com>
378
379 * tui/tui-layout.c (show_source_disasm_command): Use
380 reset_locator.
381 (reset_locator): New function.
382 (init_and_make_win): Remove.
383 (show_source_or_disasm_and_command): Use reset_locator.
384
385 2019-07-17 Tom Tromey <tom@tromey.com>
386
387 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
388 condition.
389 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
390 Remove condition.
391 * tui/tui-source.c (tui_source_window_base::reset): New method.
392 * tui/tui-layout.c (make_command_window): Don't call
393 init_and_make_win.
394 (make_source_window, make_disasm_window): Don't call
395 make_source_or_disasm_window.
396 (make_data_window): Don't call init_and_make_win. Change calling
397 convention.
398 (show_source_disasm_command, show_data): Simplify.
399 (make_source_or_disasm_window): Remove.
400 (show_source_or_disasm_and_command): Simplify.
401 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
402 (struct tui_source_window_base) <reset>: Likewise.
403 <execution_info>: Remove initializer.
404 * tui/tui-data.c (tui_source_window_base): Initialize
405 execution_info.
406
407 2019-07-17 Tom Tromey <tom@tromey.com>
408
409 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
410 variable.
411
412 2019-07-17 Tom Tromey <tom@tromey.com>
413
414 * tui/tui.c (tui_rl_other_window): Update.
415 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
416 superclass method first. Always iterate over regs_content.
417 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
418 method.
419 * tui/tui-win.c (tui_set_focus_command): Update.
420
421 2019-07-17 Tom Tromey <tom@tromey.com>
422
423 * tui/tui-win.c (tui_set_focus_command): Rename from
424 tui_set_focus. Call tui_enable.
425 (tui_set_focus_command): Remove.
426
427 2019-07-17 Tom Tromey <tom@tromey.com>
428
429 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
430 refresh_window.
431 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
432 touchwin.
433 (tui_data_window::refresh_window): Call refresh_window on data
434 items. Always call superclass refresh_window.
435 (tui_win_info::refresh): Remove.
436 (tui_source_window_base::refresh_window): Update.
437 (tui_refresh_all): Update.
438 * tui/tui-layout.c (show_source_disasm_command): Remove call to
439 refresh_window.
440 (show_source_or_disasm_and_command): Likewise.
441 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
442 (struct tui_source_window_base) <refresh>: Likewise.
443
444 2019-07-17 Tom Tromey <tom@tromey.com>
445
446 * tui/tui-winsource.c (tui_clear_source_content)
447 (tui_show_source_content): Update.
448 * tui/tui-source.c (tui_source_window::showing_source_p): Check
449 whether content is empty.
450 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
451 Remove.
452
453 2019-07-17 Tom Tromey <tom@tromey.com>
454
455 * tui/tui-winsource.c (tui_erase_source_content): Clear the
456 window's contents.
457 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
458 * tui/tui-source.c (tui_set_source_content_nil): Remove.
459
460 2019-07-17 Tom Tromey <tom@tromey.com>
461
462 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
463 (struct tui_data_item_window): Update.
464
465 2019-07-17 Tom Tromey <tom@tromey.com>
466
467 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
468 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
469 defines.
470
471 2019-07-17 Tom Tromey <tom@tromey.com>
472
473 * tui/tui-winsource.h (tui_erase_source_content)
474 (tui_clear_source_content): Remove "display_prompt" parameter.
475 * tui/tui-winsource.c (tui_update_source_window_as_is)
476 (tui_update_source_windows_with_addr): Update.
477 (tui_clear_source_content): Remove "display_prompt" parameter.
478 (tui_erase_source_content): Likewise. Simplify.
479 (tui_show_source_content): Update.
480 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
481 * tui/tui-stack.c (tui_show_frame_info): Update.
482 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
483 Remove defines.
484
485 2019-07-17 Tom Tromey <tom@tromey.com>
486
487 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
488 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
489 parameter.
490 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
491 parameter.
492
493 2019-07-17 Tom Tromey <tom@tromey.com>
494
495 * tui/tui-winsource.c (tui_clear_source_content)
496 (tui_show_source_content, tui_show_exec_info_content)
497 (tui_clear_exec_info_content): Update.
498 * tui/tui-stack.c (tui_show_locator_content): Update.
499 (tui_show_frame_info): Update.
500 * tui/tui-source.h (tui_source_window): Don't declare.
501 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
502 from tui_source_is_displayed.
503 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
504 Remove field.
505 (struct tui_source_window_base) <content_in_use>: New field. Now
506 bool.
507 (struct tui_source_window) <showing_source_p>: New method.
508 (TUI_SRC_WIN): Change cast.
509 * tui/tui-data.c (tui_initialize_static_data): Update.
510
511 2019-07-17 Tom Tromey <tom@tromey.com>
512
513 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
514 location_matches_p.
515 * tui/tui-source.c (tui_source_window::location_matches_p): New
516 method.
517 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
518 method.
519 * tui/tui-data.h (struct tui_source_window_base)
520 <location_matches_p>: New method.
521 (struct tui_source_window, struct tui_disasm_window)
522 <location_matches_p>: Likewise.
523
524 2019-07-17 Tom Tromey <tom@tromey.com>
525
526 * tui/tui-win.c (tui_set_win_height_command): Rename from
527 tui_set_win_height.
528 (tui_set_win_height_command): Remove.
529
530 2019-07-17 Tom Tromey <tom@tromey.com>
531
532 * tui/tui-source.c (tui_source_window): New constructor. Add
533 observer.
534 (~tui_source_window): New destructor.
535 (tui_source_window::style_changed): New method.
536 * tui/tui-hooks.c (tui_redisplay_source): Remove.
537 (tui_attach_detach_observers): Update.
538 * tui/tui-data.h (struct tui_source_window): Make constructor not
539 inline. Add destructor.
540 (struct tui_source_window) <style_changed>: New method.
541 <m_observable>: New member.
542
543 2019-07-17 Tom Tromey <tom@tromey.com>
544
545 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
546 * tui/tui-win.c (tui_resize_all): Fix typo.
547
548 2019-07-17 Tom Tromey <tom@tromey.com>
549
550 * tui/tui-wingeneral.h (tui_refresh_all): Update.
551 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
552 (tui_refresh_all): Remove "list" parameter. Use foreach.
553 * tui/tui-win.c (window_name_completer): Use foreach.
554 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
555 (update_tab_width): Likewise.
556 * tui/tui-layout.c (show_layout): Update.
557 * tui/tui-data.h (class tui_window_iterator): New.
558 (struct all_tui_windows): New.
559 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
560
561 2019-07-17 Tom Tromey <tom@tromey.com>
562
563 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
564 parameter. Don't reference globals.
565 (tui_reg_command): Update.
566
567 2019-07-17 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-regs.c (tui_show_registers): Simplify.
570
571 2019-07-17 Tom Tromey <tom@tromey.com>
572
573 * tui/tui-regs.c (tui_show_registers): Update.
574 (tui_show_register_group): Add win_info parameter.
575
576 2019-07-17 Tom Tromey <tom@tromey.com>
577
578 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
579 Rename from tui_display_reg_element_at_line.
580 (tui_data_window::display_registers_from_line): Update.
581 * tui/tui-data.h (struct tui_data_window)
582 <display_reg_element_at_line>: New method.
583
584 2019-07-17 Tom Tromey <tom@tromey.com>
585
586 * tui/tui-regs.h (tui_display_registers_from)
587 (tui_display_registers_from_line): Don't declare.
588 * tui/tui-windata.c (tui_data_window::display_all_data)
589 (tui_data_window::refresh_all)
590 (tui_data_window::do_scroll_vertical): Update.
591 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
592 from tui_display_registers_from.
593 (tui_display_reg_element_at_line): Update.
594 (tui_data_window::display_registers_from_line): Rename from
595 tui_display_registers_from_line.
596 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
597 display_registers_from_line>: New methods.
598
599 2019-07-17 Tom Tromey <tom@tromey.com>
600
601 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
602 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
603 from tui_erase_data_content.
604 (tui_data_window::display_all_data)
605 (tui_data_window::refresh_all)
606 (tui_data_window::do_scroll_vertical): Update.
607 * tui/tui-regs.c (tui_show_registers): Update.
608 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
609 New method.
610
611 2019-07-17 Tom Tromey <tom@tromey.com>
612
613 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
614 declare.
615 * tui/tui-windata.c
616 (tui_data_window::delete_data_content_windows): Rename from
617 tui_delete_data_content_windows.
618 (tui_data_window::display_all_data)
619 (tui_data_window::do_scroll_vertical): Update.
620 * tui/tui-data.h (struct tui_data_window)
621 <delete_data_content_windows>: New method.
622
623 2019-07-17 Tom Tromey <tom@tromey.com>
624
625 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
626 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
627
628 2019-07-17 Tom Tromey <tom@tromey.com>
629
630 * tui/tui-windata.h (tui_display_all_data): Don't declare.
631 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
632 from tui_display_all_data.
633 * tui/tui-win.c
634 (tui_data_window::do_make_visible_with_new_height): Update.
635 * tui/tui-regs.c (tui_show_registers): Update.
636 * tui/tui-layout.c (tui_set_layout): Update.
637 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
638 method.
639
640 2019-07-17 Tom Tromey <tom@tromey.com>
641
642 * tui/tui-windata.h (tui_display_data_from): Don't declare.
643 * tui/tui-windata.c (tui_display_data_from): Remove.
644 (tui_data_window::refresh_all): Update.
645
646 2019-07-17 Tom Tromey <tom@tromey.com>
647
648 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
649 * tui/tui-windata.c (tui_display_data_from_line): Remove.
650 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
651 tui_display_registers_from_line.
652 * tui/tui-regs.h (tui_display_registers_from_line): Update.
653 * tui/tui-regs.c (tui_display_registers_from_line): Remove
654 "force_display" parameter.
655
656 2019-07-17 Tom Tromey <tom@tromey.com>
657
658 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
659 declare.
660 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
661 Rename from tui_first_reg_element_no_inline.
662 (tui_display_reg_element_at_line)
663 (tui_display_registers_from_line): Update.
664 * tui/tui-data.h (struct tui_data_window)
665 <first_reg_element_no_inline>: New method.
666
667 2019-07-17 Tom Tromey <tom@tromey.com>
668
669 * tui/tui-windata.c (tui_display_data_from)
670 (tui_data_window::do_scroll_vertical): Update.
671 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
672 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
673 Rename from tui_line_from_reg_element_no.
674 (tui_display_registers_from_line): Update.
675 * tui/tui-data.h (struct tui_data_window)
676 <line_from_reg_element_no>: New method.
677
678 2019-07-17 Tom Tromey <tom@tromey.com>
679
680 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
681 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
682 tui_last_regs_line_no.
683 (tui_display_reg_element_at_line)
684 (tui_display_registers_from_line): Update.
685 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
686 method.
687
688 2019-07-17 Tom Tromey <tom@tromey.com>
689
690 PR tui/24722:
691 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
692 (tui_update_breakpoint_info): Add "being_deleted" parameter.
693 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
694 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
695 (tui_update_breakpoint_info): Likewise.
696 * tui/tui-hooks.c (tui_event_create_breakpoint)
697 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
698 Update.
699
700 2019-07-17 Tom Tromey <tom@tromey.com>
701
702 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
703
704 2019-07-17 Tom Tromey <tom@tromey.com>
705
706 * tui/tui-winsource.c (tui_update_source_window_as_is)
707 (tui_update_source_windows_with_addr): Update.
708 * tui/tui-source.h (tui_set_source_content)
709 (tui_show_symtab_source): Add "win_info" parameter.
710 * tui/tui-source.c (tui_set_source_content): Add "win_info"
711 parameter.
712 (tui_show_symtab_source): Likewise.
713
714 2019-07-17 Tom Tromey <tom@tromey.com>
715
716 * tui/tui-wingeneral.c
717 (tui_check_and_display_highlight_if_needed): Check can_highlight.
718
719 2019-07-17 Tom Tromey <tom@tromey.com>
720
721 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
722 (struct tui_cmd_window) <can_scroll>: New method.
723 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
724 method.
725
726 2019-07-17 Tom Tromey <tromey@adacore.com>
727
728 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
729 do_field_signed>: Rename. Change type of "value".
730 * ui-out.c (ui_out::field_signed): Rename from field_int.
731 Change type of "value".
732 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
733 type of "value".
734 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
735 do_field_int. Change type of "value".
736 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
737 do_field_int. Change type of "value".
738 * tracepoint.c (trace_status_mi, tfind_1)
739 (print_one_static_tracepoint_marker): Update.
740 * thread.c (print_thread_info_1, print_selected_thread_frame):
741 Update.
742 * stack.c (print_frame, print_frame_info): Update.
743 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
744 Update.
745 * source.c (print_source_lines_base): Update.
746 * skip.c (info_skip_command): Update.
747 * record-btrace.c (btrace_ui_out_decode_error)
748 (btrace_call_history_src_line): Update.
749 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
750 Update.
751 * progspace.c (print_program_space): Update.
752 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
753 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
754 do_field_int. Change type of "value".
755 * mi/mi-out.c (mi_ui_out::do_table_begin)
756 (mi_ui_out::do_table_header): Update.
757 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
758 type of "value".
759 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
760 (mi_cmd_data_list_changed_registers, output_register)
761 (mi_cmd_data_read_memory, mi_load_progress)
762 (mi_cmd_trace_frame_collected): Update.
763 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
764 Update.
765 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
766 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
767 (mi_cmd_var_list_children, varobj_update_one): Update.
768 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
769 (mi_cmd_stack_list_args, list_arg_or_local): Update.
770 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
771 * inferior.c (print_inferior): Update.
772 * gdb_bfd.c (print_one_bfd): Update.
773 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
774 Update.
775 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
776 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
777 do_field_int. Change type of "value".
778 * cli-out.c (cli_ui_out::do_field_signed): Rename from
779 do_field_int. Change type of "value".
780 * breakpoint.c (watchpoint_check, print_breakpoint_location)
781 (print_one_breakpoint_location, print_it_catch_fork)
782 (print_one_catch_fork, print_it_catch_vfork)
783 (print_one_catch_vfork, print_it_catch_solib)
784 (print_it_catch_exec, print_it_ranged_breakpoint)
785 (print_mention_watchpoint, print_mention_masked_watchpoint)
786 (bkpt_print_it, update_static_tracepoint): Update.
787 * break-catch-throw.c (print_it_exception_catchpoint): Update.
788 * break-catch-syscall.c (print_it_catch_syscall): Update.
789 * ada-tasks.c (print_ada_task_info): Update.
790 * ada-lang.c (print_it_exception, print_mention_exception):
791 Update.
792
793 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
794
795 PR breakpoints/24541
796 * gdbarch.c: Regenerate.
797 * gdbarch.h: Regenerate.
798 * gdbarch.sh: Adjust return type and parameter types for
799 'stap_adjust_register'.
800 (i386_stap_adjust_register): Adjust signature and return new
801 register name.
802 * stap-probe.c (stap_parse_register_operand): Adjust use of
803 'gdbarch_stap_adjust_register'.
804
805 2019-07-17 Tom Tromey <tromey@adacore.com>
806
807 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
808 declare VEC.
809 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
810 std::vector.
811 (struct s390_process_info): Add initializers.
812 (s390_add_process): Use new.
813 (s390_linux_nat_target::low_forget_process): Use delete.
814 (s390_linux_nat_target::low_new_fork)
815 (s390_linux_nat_target::stopped_by_watchpoint)
816 (s390_linux_nat_target::low_prepare_to_resume)
817 (s390_linux_nat_target::insert_watchpoint)
818 (s390_linux_nat_target::insert_hw_breakpoint)
819 (s390_linux_nat_target::remove_watchpoint)
820 (s390_linux_nat_target::remove_hw_breakpoint): Update.
821
822 2019-07-16 John Baldwin <jhb@FreeBSD.org>
823
824 * aarch64-fbsd-nat.c: Include regcache.h.
825 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
826 argument.
827 (aarch64_fbsd_nat_target::fetch_registers)
828 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
829 variable.
830 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
831
832 2019-07-16 John Baldwin <jhb@FreeBSD.org>
833
834 * fbsd-nat.c: Include gdbarch.h.
835
836 2019-07-15 Tom Tromey <tromey@adacore.com>
837
838 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
839
840 2019-07-15 Tom Tromey <tromey@adacore.com>
841
842 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
843 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
844 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
845 * cli-out.c (cli_ui_out::do_field_int): New method.
846 * ui-out.c (ui_out::field_unsigned): New method.
847 * symfile.c (generic_load): Use field_unsigned.
848 (print_transfer_performance): Likewise.
849 * record-btrace.c (ui_out_field_uint): Remove.
850 (btrace_call_history_insn_range, btrace_call_history): Use
851 field_unsigned.
852 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
853 field_unsigned.
854 * ui-out.h (class ui_out) <field_unsigned>: New method.
855 <do_field_unsigned>: Likewise.
856
857 2019-07-15 Tom Tromey <tromey@adacore.com>
858
859 * mi/mi-main.c (list_available_thread_groups): Use field_string.
860 * mi/mi-interp.c (mi_memory_changed): Use field_string.
861 * target.c (flash_erase_command): Use field_string.
862 * infrun.c (print_signal_received_reason): Use field_string.
863 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
864 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
865 field_string.
866 * ada-tasks.c (print_ada_task_info): Use field_string.
867
868 2019-07-15 Tom Tromey <tromey@adacore.com>
869
870 * target.c (flash_erase_command): Use field_core_addr.
871 * symfile.c (generic_load): Use field_core_addr.
872 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
873 Use field_core_addr.
874 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
875 field_core_addr.
876
877 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
880 value if its desired type is smaller than a CORE_ADDR and signed.
881
882 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
883
884 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
885 of changes to field names, and use new is_reference field to
886 decide if a property is a reference or not.
887 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
888 field.
889 (struct dwarf2_property_baton): Update header comment, rename
890 'referenced_type' to 'property_type' and update comments.
891 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
892 default property type, store in property baton, update to take
893 accound of renamed field.
894 (read_func_scope): Update call to attr_to_dynamic_prop.
895 (read_array_type): Likewise.
896 (dwarf2_per_cu_addr_sized_int_type): New function.
897 (read_subrange_index_type): Move type finding code to
898 dwarf2_per_cu_addr_sized_int_type.
899 (read_subrange_type): Update calls to attr_to_dynamic_prop.
900 (dwarf2_per_cu_addr_type): New function.
901 (set_die_type): Update calls to attr_to_dynamic_prop.
902
903 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
904
905 * dwarf2read.c (read_subrange_index_type): New function.
906 (read_subrange_type): Move code into new function and call it.
907 * gdbtypes.c (create_range_type): Add some asserts.
908
909 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
910
911 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
912 update return statements.
913 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
914 declaration, and update comment to match.
915 * gdbtypes.c (resolve_dynamic_array): Update call to
916 dwarf2_evaluate_property to match new return type.
917
918 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * valarith.c (value_subscripted_rvalue): Change lowerbound
921 parameter type from int to LONGEST.
922 * value.h (value_subscripted_rvalue): Likewise in declaration.
923
924 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
925
926 * cli/cli-utils.c (info_print_command_completer): New function.
927 * cli/cli-utils.h: Add 'completer.h' include, and forward
928 declaration for 'struct cmd_list_element'.
929 (info_print_command_completer): Declare.
930 * stack.c (_initialize_stack): Add completer for 'info locals' and
931 'info args'.
932 * symtab.c (_initialize_symtab): Add completer for 'info
933 variables' and 'info functions'.
934 * NEWS: Mention completion for additional info commands.
935
936 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
937
938 * cli/cli-utils.c (extract_info_print_args): Delete.
939 (extract_arg_maybe_quoted): Delete.
940 (info_print_options_defs): New variable.
941 (make_info_print_options_def_group): New function.
942 (extract_info_print_options): Define new function.
943 * cli/cli-utils.h (extract_info_print_args): Delete.
944 (struct info_print_options): New structure.
945 (extract_info_print_options): Declare new function.
946 * stack.c (info_locals_command): Update to use new
947 extract_info_print_options, also add a header comment.
948 (info_args_command): Likewise.
949 * symtab.c (info_variables_command): Likewise.
950 (info_functions_command): Likewise.
951
952 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
955 to extract string arguments.
956 * common/common-utils.c (extract_string_maybe_quoted): New function.
957 * common/common-utils.h (extract_string_maybe_quoted): Declare.
958
959 2019-07-11 Tom Tromey <tromey@adacore.com>
960
961 * main.c (get_init_files): Use GDBINIT, not gdbinit.
962 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
963 * top.h (gdbinit): Don't declare.
964 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
965 into...
966 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
967 * top.c (gdb_init): Don't call init_cli_cmds.
968 (gdbinit): Remove.
969 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
970
971 2019-07-11 Tom Tromey <tromey@adacore.com>
972
973 * python/py-inferior.c (add_thread_object): Don't use thread_obj
974 after it has been moved.
975
976 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
977
978 * valops.c (value_must_coerce_to_target): Change return type to
979 bool.
980 * value.h (value_must_coerce_to_target): Likewise.
981
982 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
983
984 * breakpoint.c (is_hardware_watchpoint): Remove
985 forward-declaration.
986 (is_masked_watchpoint): Change return type to bool.
987 (is_tracepoint): Likewise.
988 (is_breakpoint): Likewise.
989 (is_hardware_watchpoint): Likewise.
990 (is_watchpoint): Likewise.
991 (is_no_memory_software_watchpoint): Likewise.
992 (is_catchpoint): Likewise.
993 (breakpoint_1): Make FILTER parameter's return type bool.
994 is_masked_watchpoint): Change return type to bool.
995 (save_breakpoints): Make FILTER parameter's return type bool.
996 * breakpoint.h (is_breakpoint): Change return type to bool.
997 (is_watchpoint): Likewise.
998 (is_catchpoint): Likewise.
999 (is_tracepoint): Likewise.
1000
1001 2019-07-10 Tom Tromey <tom@tromey.com>
1002
1003 * defs.h: Don't include gdbarch.h.
1004 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1005 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1006 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1007 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1008 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1009 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1010 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1011 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1012 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1013 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1014 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1015 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1016 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1017 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1018 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1019 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1020 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1021 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1022 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1023 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1024 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1025 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1026 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1027 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1028 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1029 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1030 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1031
1032 2019-07-10 Tom Tromey <tromey@adacore.com>
1033
1034 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1035 * breakpoint.c (init_ada_exception_breakpoint): Register as
1036 bp_catchpoint.
1037 (print_one_breakpoint_location, print_one_breakpoint): Use
1038 is_ada_exception_catchpoint.
1039 * ada-lang.c (class ada_catchpoint_location): Pass
1040 bp_loc_software_breakpoint to bp_location constructor.
1041 (is_ada_exception_catchpoint): New function.
1042
1043 2019-07-10 Tom Tromey <tromey@adacore.com>
1044
1045 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1046 VEC.
1047 (struct arm_exidx_entry): New method operator<.
1048 (struct arm_exidx_data) <section_maps>: Change type.
1049 (arm_exidx_data_free): Remove.
1050 (arm_exidx_data_key): Change type. Move lower.
1051 (arm_exidx_new_objfile): Update.
1052 (arm_compare_exidx_entries): Remove.
1053 (arm_find_exidx_entry, _initialize_arm_tdep)
1054
1055 2019-07-10 Tom Tromey <tromey@adacore.com>
1056
1057 * solib-spu.c (ocl_program_data_key): Change type.
1058 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1059 Update.
1060
1061 2019-07-10 Tom Tromey <tromey@adacore.com>
1062
1063 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1064 (struct solib_aix_inferior_data) <library_list>: Change type.
1065 (solib_aix_inferior_data_handle): Change type.
1066 (get_solib_aix_inferior_data): Update.
1067 (solib_aix_free_library_list): Remove.
1068 (library_list_start_library): Update.
1069 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1070 return type.
1071 (solib_aix_get_library_list)
1072 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1073 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1074
1075 2019-07-10 Tom Tromey <tromey@adacore.com>
1076
1077 * solib-dsbt.c (struct dsbt_info): Add initializers.
1078 (solib_dsbt_pspace_data): Change type.
1079 (dsbt_pspace_data_cleanup): Remove.
1080 (get_dsbt_info, _initialize_dsbt_solib): Update.
1081
1082 2019-07-10 Tom Tromey <tromey@adacore.com>
1083
1084 * spu-tdep.c (spu_overlay_data): Change type.
1085 (spu_get_overlay_table, spu_overlay_new_objfile)
1086 (_initialize_spu_tdep): Update.
1087
1088 2019-07-10 Tom Tromey <tromey@adacore.com>
1089
1090 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1091 destructor.
1092 (dbx_objfile_data_key): Change type and declare later.
1093 (DBX_SYMFILE_INFO): Rewrite.
1094 * dbxread.c (dbx_objfile_data_key): Change type.
1095 (dbx_symfile_init): Update.
1096 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1097 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1098 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1099
1100 2019-07-10 Tom Tromey <tromey@adacore.com>
1101
1102 * jit.c (jit_program_space_key): Change type. Move lower.
1103 (get_jit_program_space_data): Update.
1104 (jit_program_space_data_cleanup): Remove.
1105 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1106 Update.
1107 (struct jit_program_space_data): Add initializers.
1108
1109 2019-07-10 Tom Tromey <tromey@adacore.com>
1110
1111 * solib-darwin.c (struct darwin_info): Add initializers.
1112 (solib_darwin_pspace_data): Change type.
1113 (darwin_pspace_data_cleanup): Remove.
1114 (get_darwin_info, _initialize_darwin_solib): Update.
1115
1116 2019-07-10 Tom Tromey <tromey@adacore.com>
1117
1118 * remote-sim.c (struct sim_inferior_data): Add initializers,
1119 constructor, and destructor.
1120 (sim_inferior_data_key): Change type. Move lower.
1121 (check_for_duplicate_sim_descriptor): Update.
1122 (get_sim_inferior_data): Use new. Update.
1123 (~sim_inferior_data_cleanup): Rename from
1124 sim_inferior_data_cleanup. Simplify.
1125 (gdbsim_close_inferior, simulator_command)
1126 (sim_command_completer, _initialize_remote_sim): Update.
1127 (next_pid, INITIAL_PID): Move earlier.
1128
1129 2019-07-10 Tom Tromey <tromey@adacore.com>
1130
1131 * python/python-internal.h (create_thread_object): Return
1132 gdbpy_ref.
1133 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1134 * python/py-inferior.c (struct threadlist_entry): Add
1135 constructor.
1136 <thread_obj>: Now a gdbpy_ref.
1137 (thread_to_thread_object): Update.
1138 (add_thread_object): Use new.
1139 (delete_thread_object): Use delete.
1140 (infpy_threads): Update.
1141 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1142 GIL.
1143
1144 2019-07-10 Tom Tromey <tromey@adacore.com>
1145
1146 * valops.c (value_cast): Specialize error message for Ada.
1147
1148 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1149
1150 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1151
1152 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1153
1154 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1155 bpstat_should_step): Return bool, adjust comments.
1156 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1157 bpstat_should_step): Likewise.
1158
1159 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1160
1161 * features/Makefile: Use feature target descriptions for Arm.
1162 * features/arm/arm-core.c: Generate new file.
1163 * features/arm/arm-fpa.c: Likewise.
1164 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1165 * features/arm/arm-m-profile.c: Likewise.
1166 * features/arm/arm-vfpv2.c: Likewise.
1167 * features/arm/arm-vfpv3.c: Likewise.
1168 * features/arm/xscale-iwmmxt.c: Likewise.
1169 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1170
1171 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1172
1173 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1174 ptrace earlier.
1175
1176 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1177
1178 * features/aarch64-pauth.c: Regenerate.
1179
1180 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1181
1182 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1183 bool.
1184 (bpstat_what): Use false instead of 0.
1185
1186 2019-07-09 Pedro Alves <palves@redhat.com>
1187
1188 * break-catch-throw.c (is_exception_catchpoint): New.
1189 * breakpoint.c (print_one_breakpoint_location): New parameter
1190 'raw_loc'. Handle it. Use
1191 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1192 looking at the breakpoint's type.
1193 (print_one_breakpoint): If handling "maint info breakpoints", also
1194 print locations of exception catchpoints.
1195 * breakpoint.h (is_exception_catchpoint): Declare.
1196
1197 2019-07-09 Pedro Alves <palves@redhat.com>
1198
1199 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1200 "addr" field.
1201 (allocate_location_exception_catchpoint): New.
1202 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1203 (initialize_throw_catchpoint_ops): Install
1204 allocate_location_exception_catchpoint as allocate_location
1205 method.
1206 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1207 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1208 bp_loc_other.
1209 (breakpoint_address_is_meaningful): Delete.
1210 (bl_address_is_meaningful): New.
1211 (breakpoint_locations_match): Adjust comment.
1212 (bp_location_from_bp_type): New, factored out of...
1213 (bp_location::bp_location(breakpoint *)): ... this.
1214 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1215 factored out of...
1216 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1217 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1218 breakpoint_address_is_meaningful.
1219 (bp_locations_compare): Adjust comment.
1220 (update_global_location_list): Use bl_address_is_meaningful
1221 instead of breakpoint_address_is_meaningful.
1222 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1223 explicit.
1224 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1225 * python/py-breakpoint.c (bppy_get_location): No longer check
1226 whether location is null.
1227
1228 2019-07-09 Pedro Alves <palves@redhat.com>
1229
1230 PR c++/15468
1231 * breakpoint.c (print_one_breakpoint_location): Remove
1232 single-location assert.
1233
1234 2019-07-09 Tom Tromey <tom@tromey.com>
1235
1236 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1237 * configure: Rebuild.
1238 * configure.ac: Change common to gdbsupport.
1239 * gdbsupport: Rename from common.
1240 * acinclude.m4: Change common to gdbsupport.
1241 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1242 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1243 gdbsupport.
1244 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1245 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1246 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1247 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1248 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1249 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1250 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1251 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1252 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1253 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1254 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1255 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1256 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1257 coff-pe-read.c, command.h, compile/compile-c-support.c,
1258 compile/compile-c.h, compile/compile-cplus-symbols.c,
1259 compile/compile-cplus-types.c, compile/compile-cplus.h,
1260 compile/compile-loc2c.c, compile/compile.c, completer.c,
1261 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1262 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1263 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1264 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1265 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1266 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1267 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1268 features/aarch64-core.c, features/aarch64-fpu.c,
1269 features/aarch64-pauth.c, features/aarch64-sve.c,
1270 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1271 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1272 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1273 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1274 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1275 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1276 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1277 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1278 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1279 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1280 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1281 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1282 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1283 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1284 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1285 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1286 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1287 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1288 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1289 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1290 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1291 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1292 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1293 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1294 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1295 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1296 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1297 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1298 minsyms.c, mips-linux-tdep.c, namespace.h,
1299 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1300 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1301 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1302 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1303 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1304 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1305 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1306 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1307 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1308 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1309 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1310 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1311 procfs.c, producer.c, progspace.h, psymtab.h,
1312 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1313 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1314 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1315 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1316 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1317 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1318 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1319 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1320 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1321 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1322 target-memory.c, target.c, target.h, target/waitstatus.c,
1323 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1324 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1325 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1326 unittests/array-view-selftests.c,
1327 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1328 unittests/common-utils-selftests.c,
1329 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1330 unittests/format_pieces-selftests.c,
1331 unittests/function-view-selftests.c,
1332 unittests/lookup_name_info-selftests.c,
1333 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1334 unittests/mkdir-recursive-selftests.c,
1335 unittests/observable-selftests.c,
1336 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1337 unittests/parse-connection-spec-selftests.c,
1338 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1339 unittests/scoped_fd-selftests.c,
1340 unittests/scoped_mmap-selftests.c,
1341 unittests/scoped_restore-selftests.c,
1342 unittests/string_view-selftests.c, unittests/style-selftests.c,
1343 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1344 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1345 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1346 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1347 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1348 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1349
1350 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1351
1352 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1353 bool value.
1354 (decode_digits_ordinary): Set explicit_line field in sal.
1355 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1356 symtab_and_line that was set on an explicit line number in
1357 assembler code. Do always update the recorded symtab and line if
1358 we do skip the prologue.
1359
1360 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * breakpoint.c (set_breakpoint_location_function): Remove
1363 explicit_loc parameter.
1364 (momentary_breakpoint_from_master): Update call to
1365 set_breakpoint_location_function.
1366 (add_location_to_breakpoint): Likewise.
1367
1368 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1371 required features based on default bfd type when no specific bfd
1372 is present.
1373
1374 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1375
1376 * NEWS: Mention that GDB printf and eval commands can now print
1377 C-style and Ada-style convenience var strings without
1378 calling the inferior.
1379 * printcmd.c (printf_c_string): Locally print GDB internal var
1380 instead of transiting via the inferior.
1381 (printf_wide_c_string): Likewise.
1382
1383 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1384
1385 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1386
1387 2019-07-04 Tom Tromey <tom@tromey.com>
1388
1389 PR tui/24724:
1390 * tui/tui-winsource.c (tui_clear_source_content): Update.
1391 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1392 (tui_update_breakpoint_info): Update.
1393 (tui_set_exec_info_content): Update.
1394 * tui/tui-source.c (tui_set_source_content_nil): Update.
1395 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1396 has_break.
1397 * tui/tui-data.h (enum tui_bp_flag): New.
1398 (tui_bp_flags): New enum flags type.
1399 (struct tui_source_element) <break_mode>: Change type. Rename
1400 from has_break.
1401 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1402 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1403 constants.
1404 * tui/tui-winsource.h: Fix comment.
1405
1406 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1407
1408 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1409 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1410 (store_fpregs_to_thread)
1411 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1412 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1413 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1414 (IWMMXT_REGS_SIZE): Add define.
1415 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1416 (fetch_vfp_regs, store_vfp_regs)
1417 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1418 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1419
1420 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1421
1422 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1423 defines.
1424 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1425 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1426 (ARM_INT_REGISTER_SIZE): ...to this.
1427 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1428 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1429 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1430 (arm_linux_collect_gregset, supply_nwfpe_register)
1431 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
1432 defines.
1433 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
1434 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
1435 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
1436 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
1437 (arm_return_in_memory, arm_store_return_value)
1438 (arm_get_longjmp_target, arm_register_g_packet_guesses)
1439 (arm_record_ld_st_multiple): Likewise.
1440 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
1441 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
1442
1443 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1444
1445 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
1446 AARCH64_DISPLACED_MODIFIED_INSNS.
1447 * aarch64-tdep.c (struct aarch64_displaced_step_data)
1448 (aarch64_displaced_step_copy_insn): Likewise.
1449 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1450 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
1451 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1452 ARM_DISPLACED_MODIFIED_INSNS.
1453 * arm-tdep.c (arm_gdbarch_init): Likewise.
1454 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1455 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
1456 (struct arm_displaced_step_closure): Use
1457 ARM_DISPLACED_MODIFIED_INSNS.
1458
1459 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1460
1461 * features/Makefile: Remove unused xml files.
1462 * features/aarch64.xml: Remove.
1463 * features/i386/amd64-avx-avx512-linux.xml: Remove.
1464 * features/i386/amd64-avx-avx512.xml: Remove.
1465 * features/i386/amd64-avx-linux.xml: Remove.
1466 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
1467 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
1468 * features/i386/amd64-avx-mpx-linux.xml: Remove.
1469 * features/i386/amd64-avx-mpx.xml: Remove.
1470 * features/i386/amd64-avx.xml: Remove.
1471 * features/i386/amd64-linux.xml: Remove.
1472 * features/i386/amd64-mpx-linux.xml: Remove.
1473 * features/i386/amd64-mpx.xml: Remove.
1474 * features/i386/amd64.xml: Remove.
1475 * features/i386/i386-avx-avx512-linux.xml: Remove.
1476 * features/i386/i386-avx-avx512.xml: Remove.
1477 * features/i386/i386-avx-linux.xml: Remove.
1478 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
1479 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
1480 * features/i386/i386-avx-mpx-linux.xml: Remove.
1481 * features/i386/i386-avx-mpx.xml: Remove.
1482 * features/i386/i386-avx.xml: Remove.
1483 * features/i386/i386-linux.xml: Remove.
1484 * features/i386/i386-mmx-linux.xml: Remove.
1485 * features/i386/i386-mmx.xml: Remove.
1486 * features/i386/i386-mpx-linux.xml: Remove.
1487 * features/i386/i386-mpx.xml: Remove.
1488 * features/i386/i386.xml: Remove.
1489 * features/i386/x32-avx-avx512-linux.xml: Remove.
1490 * features/i386/x32-avx-linux.xml: Remove.
1491 * features/i386/x32-linux.xml: Remove.
1492
1493 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1494
1495 * regformats/aarch64.dat: Remove.
1496 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
1497 * regformats/i386/amd64-avx-linux.dat: Remove.
1498 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
1499 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
1500 * regformats/i386/amd64-linux.dat: Remove.
1501 * regformats/i386/amd64-mpx-linux.dat: Remove.
1502 * regformats/i386/amd64.dat: Remove.
1503 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
1504 * regformats/i386/i386-avx-linux.dat: Remove.
1505 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
1506 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
1507 * regformats/i386/i386-linux.dat: Remove.
1508 * regformats/i386/i386-mmx-linux.dat: Remove.
1509 * regformats/i386/i386-mpx-linux.dat: Remove.
1510 * regformats/i386/i386.dat: Remove.
1511 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
1512 * regformats/i386/x32-avx-linux.dat: Remove.
1513 * regformats/i386/x32-linux.dat: Remove.
1514
1515 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1516
1517 * aarch64-tdep.c: Remove xml self tests.
1518 * amd64-linux-tdep.c: Likewise.
1519 * amd64-tdep.c: Likewise.
1520 * i386-linux-tdep.c: Likewise.
1521 * i386-tdep.c: Likewise.
1522
1523 2019-07-03 Pedro Alves <palves@redhat.com>
1524
1525 PR cli/24732
1526 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
1527 (pipe_cmd_option_defs): New.
1528 (make_pipe_cmd_options_def_group): New.
1529 (pipe_command): Use gdb::option::process_options.
1530 (pipe_command_completer): New function.
1531 (_initialize_cli_cmds): Install completer for "pipe" command.
1532
1533 2019-07-03 Pedro Alves <palves@redhat.com>
1534
1535 * cli/cli-option.c (union option_value) <string>: New field.
1536 (struct option_def_and_value): Add ctor, move ctor, dtor and
1537 use DISABLE_COPY_AND_ASSIGN.
1538 (option_def_and_value::clear_value): New.
1539 (parse_option, save_option_value_in_ctx, get_val_type_str)
1540 (add_setshow_cmds_for_options): Handle var_string.
1541 * cli-option.h (union option_def::var_address) <string>: New
1542 field.
1543 (struct string_option_def): New.
1544 * maint-test-options.c (struct test_options_opts): Add default
1545 ctor and use DISABLE_COPY_AND_ASSIGN.
1546 <string_opt>: New field.
1547 (test_options_opts::~test_options_opts): New.
1548 (test_options_opts::dump): Also dump "-string".
1549 (test_options_option_defs): Install "string.
1550
1551 2019-07-03 Pedro Alves <palves@redhat.com>
1552
1553 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
1554 option_value with a null enumeration.
1555 (complete_options): Save the option values in the context.
1556 (save_option_value_in_ctx): New, factored out from ...
1557 (process_options): ... here.
1558 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
1559 of the function.
1560 * maint-test-options.c (test_options_opts::dump): New, factored
1561 out from ...
1562 (maintenance_test_options_command_mode): ... here.
1563 (maintenance_test_options_command_completion_result): Delete.
1564 (maintenance_test_options_command_completion_text): Update
1565 comment.
1566 (maintenance_show_test_options_completion_result): Change
1567 prototype. Just print
1568 maintenance_test_options_command_completion_text.
1569 (save_completion_result): New.
1570 (maintenance_test_options_completer_mode): Pass options context to
1571 complete_options, and then save a dump.
1572 (_initialize_maint_test_options): Use add_cmd to install "maint
1573 show test-options-completion-result".
1574
1575 2019-07-03 Pedro Alves <palves@redhat.com>
1576
1577 * NEWS (New commands): Mention "with" and "maint with".
1578 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
1579 (with_command, with_command_completer): New.
1580 (pipe_command): Adjust to new repeat_previous
1581 interface.
1582 (_initialize_cli_cmds): Install the "with" command and its "w"
1583 alias.
1584 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
1585 declarations.
1586 * cli/cli-setshow.c (parse_cli_var_uinteger)
1587 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
1588 argument strings for all var_types.
1589 (get_setshow_command_value_string): New, factored out from ...
1590 (do_show_command): ... this.
1591 * cli/cli-setshow.h: Include <string>.
1592 (get_setshow_command_value_string): Declare.
1593 * command.h (repeat_previous): Now returns const char *. Adjust
1594 comment.
1595 * maint.c: Include "cli/cli-cmds.h".
1596 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
1597 (_initialize_maint_cmds): Register the "maintenance with" command.
1598 * top.c (repeat_previous): Move bits from pipe_command here:
1599 Return the saved command line, if any; error out if there's no
1600 command to relaunch.
1601
1602 2019-07-03 Pedro Alves <palves@redhat.com>
1603
1604 * NEWS (New commands): Mention "maint set/show test-settings"
1605 instead of "maint test-settings".
1606 * maint-test-settings.c (maintenance_test_settings_list): Delete.
1607 (maintenance_test_settings_set_list): Rename to ...
1608 (maintenance_set_test_settings_list): ... this.
1609 (maintenance_test_settings_show_list): Rename to ...
1610 (maintenance_show_test_settings_list): ... this.
1611 (maintenance_test_settings_cmd): Delete.
1612 (maintenance_test_settings_set_cmd): ...
1613 (maintenance_set_test_settings_cmd): ... this.
1614 (maintenance_test_settings_show_cmd): ...
1615 (maintenance_show_test_settings_cmd): ... this.
1616 (maintenance_test_settings_show_value_cmd):
1617 (maintenance_show_test_settings_value_cmd): ... this.
1618 (_initialize_maint_test_settings): No longer install the "maint
1619 test-settings" prefix command. Rename "maint test-settings set"
1620 to "maint set test-settings", and "maint test-settings show" to
1621 "maint show test-settings". Adjust all subcommands.
1622
1623 2019-07-03 Pedro Alves <palves@redhat.com>
1624
1625 * maint-test-settings.c: Fix file's intro comment. Replace all
1626 references to "test-options" with references to "test-settings",
1627 in comments.
1628
1629 2019-07-03 Pedro Alves <palves@redhat.com>
1630
1631 * maint-test-settings.c (maintenance_test_settings_xxx)
1632 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
1633 New.
1634 (maintenance_test_settings_enums): Use them.
1635 (maintenance_test_settings_enum): Default to
1636 maintenance_test_settings_xxx.
1637 (_initialize_maint_test_settings): Initialize
1638 MAINTENANCE_TEST_SETTINGS_FILENAME.
1639
1640 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1641
1642 * breakpoint.h (remove_breakpoints_inf): Change return type to
1643 void, move function documentation here.
1644 * breakpoint.c (remove_breakpoints_inf): Change return type to
1645 void, move function documentation to header.
1646
1647 2019-07-02 Pedro Alves <palves@redhat.com>
1648
1649 * NEWS (Completion improvements): Mention "info threads".
1650 * thread.c (struct info_threads_opts, info_threads_option_defs)
1651 (make_info_threads_options_def_group): New.
1652 (info_threads_command): Use gdb::option::process_options.
1653 (info_threads_command_completer): New.
1654 (_initialize_thread): Use gdb::option::build_help to build the
1655 help text for "info threads".
1656
1657 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1658
1659 * defs.h (generic_load): Move from here...
1660 * symfile.h (generic_load): ... to here. Rename name parameter
1661 to args.
1662 * symfile.c (generic_load): Add comment.
1663
1664 2019-07-01 Tom Tromey <tromey@adacore.com>
1665
1666 * dwarf2read.c
1667 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
1668 declaration of without_params. Fix formatting.
1669
1670 2019-07-01 Tom Tromey <tromey@adacore.com>
1671
1672 * ada-exp.y (find_primitive_type): Update.
1673 * ada-lang.h (ada_lookup_symbol): Update.
1674 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
1675 parameter.
1676 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
1677
1678 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
1679
1680 PR breakpoints/24541
1681 * gdbarch.c: Regenerate.
1682 * gdbarch.h: Regenerate.
1683 * gdbarch.sh: Add 'stap_adjust_register'.
1684 * i386-tdep.c: Include '<unordered_set>'.
1685 (i386_stap_adjust_register): New function.
1686 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
1687 * stap-probe.c (stap_parse_register_operand): Call
1688 'gdbarch_stap_adjust_register'.
1689
1690 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
1691
1692 PR python/24742
1693 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
1694 * python/python.c (do_start_initialization): Use 'xmalloc'
1695 instead of 'PyMem_Malloc'.
1696
1697 2019-06-28 Tom Tromey <tromey@adacore.com>
1698
1699 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
1700 for Ada.
1701
1702 2019-06-27 Tom Tromey <tromey@adacore.com>
1703
1704 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
1705 objfile_key.
1706 (arm_find_mapping_symbol, arm_record_special_symbol)
1707 (_initialize_arm_tdep): Update.
1708 (arm_objfile_data_free): Remove.
1709
1710 2019-06-27 Tom Tromey <tromey@adacore.com>
1711
1712 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
1713 to cp_print_static_field.
1714
1715 2019-06-26 Tom Tromey <tromey@adacore.com>
1716
1717 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
1718 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
1719 declare.
1720
1721 2019-06-26 Alan Hayward <alan.hayward@arm.com>
1722
1723 * features/aarch64-core.c (create_feature_aarch64_core):
1724 Regenerate.
1725 * features/aarch64-core.xml: Add cpsr flags.
1726
1727 2019-06-26 Alan Hayward <alan.hayward@arm.com>
1728
1729 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
1730 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
1731
1732 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
1733
1734 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
1735 field.
1736 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
1737 use.
1738 (arm_record_special_symbol): Don't insert new symbol in sorted
1739 position, push it at the end.
1740
1741 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
1742
1743 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
1744 (arm_mapping_symbol_s): Remove.
1745 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
1746 (arm_mapping_symbol_vec): New typedef.
1747 (struct arm_per_objfile): Add constructor.
1748 <section_maps>: Change type to
1749 std::unique_ptr<arm_mapping_symbol_vec[]>.
1750 (arm_compare_mapping_symbols): Remove.
1751 (arm_find_mapping_symbol): Adjust to section_maps type change.
1752 (arm_objfile_data_free): Call delete on arm_per_objfile.
1753 (arm_record_special_symbol): Adjust to section_maps type change.
1754 Allocate arm_per_objfile with new.
1755
1756 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1757
1758 * cli/cli-cmds.c (alias_command): Compare the alias prefix
1759 with the command prefix.
1760
1761 2019-06-25 Tom Tromey <tom@tromey.com>
1762
1763 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
1764 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
1765
1766 2019-06-25 Tom Tromey <tom@tromey.com>
1767
1768 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
1769 type.
1770 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
1771 protected.
1772
1773 2019-06-25 Tom Tromey <tom@tromey.com>
1774
1775 * tui/tui-winsource.c
1776 (tui_source_window_base::set_is_exec_point_at): Add check against
1777 LOA_ADDRESS.
1778
1779 2019-06-25 Tom Tromey <tom@tromey.com>
1780
1781 * tui/tui-source.c (tui_set_source_content): Don't check before
1782 xfree.
1783 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
1784
1785 2019-06-25 Tom Tromey <tom@tromey.com>
1786
1787 * tui/tui-winsource.h (tui_update_source_window_as_is)
1788 (tui_alloc_source_buffer, tui_line_is_displayed)
1789 (tui_addr_is_displayed): Change type of win_info.
1790 * tui/tui-winsource.c (tui_update_source_window_as_is)
1791 (tui_clear_source_content, tui_show_source_line)
1792 (tui_show_source_content, tui_source_window_base::refill)
1793 (tui_source_window_base::set_is_exec_point_at)
1794 (tui_source_window_base::set_is_exec_point_at)
1795 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
1796 (tui_alloc_source_buffer, tui_line_is_displayed)
1797 (tui_addr_is_displayed): Change type of win_info. Update.
1798 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1799 (tui_source_window_base::do_make_visible_with_new_height):
1800 Update.
1801 * tui/tui-source.c (tui_set_source_content)
1802 (tui_set_source_content_nil)
1803 (tui_source_window::do_scroll_vertical): Update.
1804 * tui/tui-layout.c (show_layout): Update.
1805 * tui/tui-disasm.c (tui_set_disassem_content)
1806 (tui_disasm_window::do_scroll_vertical): Update.
1807 * tui/tui-data.h (tui_win_content): Remove.
1808 (struct tui_gen_win_info) <content, content_size>: Remove.
1809 (struct tui_source_element): Add initializers and destructor.
1810 (union tui_which_element, struct tui_win_element): Remove.
1811 (struct tui_source_window_base) <content>: New field.
1812 (struct tui_data_window): Remove destructor.
1813 (tui_alloc_content, tui_free_win_content)
1814 (tui_free_all_source_wins_content): Don't declare.
1815 * tui/tui-data.c (tui_initialize_static_data): Update.
1816 (init_content_element, tui_alloc_content): Remove.
1817 (~tui_gen_win_info): Update.
1818 (~tui_data_window, tui_free_all_source_wins_content)
1819 (tui_free_win_content, free_content, free_content_elements):
1820 Remove.
1821
1822 2019-06-25 Tom Tromey <tom@tromey.com>
1823
1824 * tui/tui-winsource.h (tui_clear_source_content)
1825 (tui_erase_source_content, tui_show_source_content): Change type
1826 of win_info.
1827 * tui/tui-winsource.c (tui_clear_source_content)
1828 (tui_erase_source_content, tui_show_source_content): Change type
1829 of win_info.
1830 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1831 * tui/tui-source.h (tui_set_source_content_nil): Change type of
1832 win_info.
1833 * tui/tui-source.c (tui_set_source_content_nil): Change type of
1834 win_info.
1835 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
1836
1837 2019-06-25 Tom Tromey <tom@tromey.com>
1838
1839 * tui/tui-winsource.c (tui_clear_source_content)
1840 (tui_source_window_base::set_is_exec_point_at): Update.
1841 * tui/tui-source.c (tui_set_source_content_nil): Update.
1842 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
1843 a bool.
1844 * tui/tui-data.c (init_content_element): Update.
1845
1846 2019-06-25 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
1849 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
1850 * tui/tui-layout.c (init_and_make_win): Update.
1851 * tui/tui.h (enum tui_win_type): Update.
1852 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
1853 tui_win_is_auxillary.
1854 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
1855 tui_win_is_auxillary.
1856
1857 2019-06-25 Tom Tromey <tom@tromey.com>
1858
1859 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
1860 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
1861 (tui_delete_data_content_windows, tui_display_all_data)
1862 (tui_data_window::do_scroll_vertical, tui_display_data_from):
1863 Update.
1864 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
1865 * tui/tui-regs.c (tui_last_regs_line_no)
1866 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
1867 (tui_show_registers): Update.
1868 (tui_show_register_group): Return void. Update.
1869 (tui_display_registers_from, tui_display_reg_element_at_line)
1870 (tui_display_registers_from_line, tui_check_register_values):
1871 Update.
1872 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
1873 member.
1874 (struct tui_data_window) <regs_content>: Now a std::vector.
1875 <regs_content_count>: Remove.
1876 (tui_add_content_elements, tui_free_data_content): Don't declare.
1877 * tui/tui-data.c (tui_data_window::clear_detail): Update.
1878 (init_content_element): Remove DATA_WIN case. Add assert.
1879 (tui_add_content_elements): Remove.
1880 (tui_data_window): Update.
1881 (tui_free_data_content): Remove.
1882 (free_content_elements): Remove DATA_WIN case.
1883
1884 2019-06-25 Tom Tromey <tom@tromey.com>
1885
1886 * tui/tui-data.c (tui_data_item_window): Update.
1887 * tui/tui-windata.h (tui_check_data_values): Don't declare.
1888 * tui/tui-windata.c (tui_display_all_data)
1889 (tui_display_data_from_line): Update.
1890 (tui_check_data_values): Remove.
1891 * tui/tui-regs.c (tui_show_register_group)
1892 (tui_display_reg_element_at_line): Update.
1893 * tui/tui-hooks.c (tui_register_changed)
1894 (tui_refresh_frame_and_register_information): Call
1895 tui_check_register_values.
1896 * tui/tui-data.h (struct tui_data_window) <data_content,
1897 data_content_count, data_type>: Remove.
1898 (enum tui_data_type): Remove.
1899
1900 * tui/tui-data.c (tui_data_window::clear_detail)
1901 (~tui_data_window): Update.
1902
1903 2019-06-25 Tom Tromey <tom@tromey.com>
1904
1905 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
1906 declare.
1907 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
1908 Rename from tui_first_data_item_displayed. Update.
1909 (tui_data_window::refresh_all)
1910 (tui_data_window::do_scroll_vertical): Update.
1911 * tui/tui-data.h (struct tui_data_window)
1912 <first_data_item_displayed>: Declare new method.
1913
1914 2019-06-25 Tom Tromey <tom@tromey.com>
1915
1916 * tui/tui-data.h (tui_init_generic_part): Don't declare.
1917 * tui/tui-data.c (tui_init_generic_part): Remove, moving
1918 contents...
1919 (tui_initialize_static_data): ...here.
1920
1921 2019-06-25 Tom Tromey <tom@tromey.com>
1922
1923 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
1924 (tui_display_registers_from, tui_check_register_values): Update.
1925 (tui_display_register): Remove win_info parameter; update.
1926 (tui_get_register): Change type of parameters.
1927 * tui/tui-data.h (struct tui_data_element): Remove.
1928 (union tui_which_element) <data>: Remove.
1929 <data_window>: Change type.
1930 (struct tui_data_item_window): New.
1931 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
1932 case. Add assert.
1933 (~tui_data_item_window): New destructor.
1934 (free_content_elements): Remove DATA_ITEM_WIN case.
1935
1936 2019-06-25 Tom Tromey <tom@tromey.com>
1937
1938 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
1939 Remove.
1940
1941 2019-06-25 Tom Tromey <tom@tromey.com>
1942
1943 * tui/tui-data.h (struct tui_command_element): Remove.
1944 (union tui_which_element) <command>: Remove.
1945 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
1946 assert.
1947 (free_content_elements): Remove CMD_WIN case.
1948
1949 2019-06-25 Tom Tromey <tom@tromey.com>
1950
1951 * tui/tui-layout.c (tui_set_layout): Update.
1952 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
1953 * tui/tui-data.c (layout_def): Update.
1954
1955 2019-06-25 Tom Tromey <tom@tromey.com>
1956
1957 * tui/tui-wingeneral.c (tui_refresh_all): Update.
1958 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1959 (tui_source_window_base::set_new_height): Update.
1960 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
1961 Update.
1962 (tui_set_locator_fullname, tui_set_locator_info)
1963 (tui_show_frame_info): Update.
1964 * tui/tui-source.c (tui_set_source_content)
1965 (tui_source_is_displayed): Update.
1966 * tui/tui-layout.c (show_source_disasm_command, show_data)
1967 (show_source_or_disasm_and_command): Update.
1968 * tui/tui-disasm.c (tui_set_disassem_content)
1969 (tui_get_begin_asm_address): Update.
1970 * tui/tui-data.h (struct tui_locator_element): Remove.
1971 (union tui_which_element) <locator>: Remove.
1972 (struct tui_locator_window): New.
1973 (tui_locator_win_info_ptr): Change return type.
1974 * tui/tui-data.c (_locator): Change type.
1975 (tui_locator_win_info_ptr): Change return type.
1976 (init_content_element): Remove LOCATOR_WIN case. Add assert.
1977 (tui_alloc_content): Add assert.
1978
1979 2019-06-25 Tom Tromey <tom@tromey.com>
1980
1981 * tui/tui-winsource.c
1982 (tui_exec_info_window::maybe_allocate_content): New method.
1983 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
1984 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
1985 (make_source_or_disasm_window): Add cast.
1986 * tui/tui-data.h (union tui_which_element) <simple_string>:
1987 Remove.
1988 (struct tui_source_info): New.
1989 (struct tui_source_window_base) <execution_info>: Change type.
1990 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
1991 case, and add assert.
1992 (tui_alloc_content): Add assert.
1993
1994 2019-06-25 Tom Tromey <tom@tromey.com>
1995
1996 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
1997 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
1998 * tui/tui-data.c (tui_alloc_win_info): Remove.
1999
2000 2019-06-25 Tom Tromey <tom@tromey.com>
2001
2002 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2003 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2004 can_highlight.
2005
2006 2019-06-25 Tom Tromey <tom@tromey.com>
2007
2008 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2009 make_visible_with_new_height method.
2010 (tui_win_info::make_visible_with_new_height): New method.
2011 (tui_source_window_base::do_make_visible_with_new_height)
2012 (tui_data_window::do_make_visible_with_new_height)
2013 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2014 (make_visible_with_new_height): Remove.
2015 (tui_resize_all, tui_adjust_win_heights): Use
2016 make_visible_with_new_height method.
2017 * tui/tui-data.h (struct tui_win_info)
2018 <do_make_visible_with_new_height, make_visible_with_new_height>:
2019 New methods.
2020 (struct tui_source_window_base, struct tui_data_window)
2021 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2022 methods.
2023
2024 2019-06-25 Tom Tromey <tom@tromey.com>
2025
2026 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2027 method.
2028 (update_tab_width): Call update_tab_width method.
2029 * tui/tui-data.h (struct tui_win_info)
2030 (struct tui_source_window_base) <update_tab_width>: New methods.
2031
2032 2019-06-25 Tom Tromey <tom@tromey.com>
2033
2034 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2035 parameter.
2036 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2037 parameter.
2038 (tui_gen_win_info::make_visible): Update.
2039 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2040 parameter.
2041 * tui/tui-data.h (enum tui_box): New enum.
2042 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2043
2044 2019-06-25 Tom Tromey <tom@tromey.com>
2045
2046 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2047 init_and_make_win for EXEC_INFO_WIN.
2048 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2049 longer inline.
2050 (struct tui_win_info) <~tui_win_info>: Inline.
2051 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2052 Don't declare.
2053 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2054 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2055 Remove.
2056 (tui_initialize_static_data): Update.
2057 (~tui_gen_win_info): Handle more cleanup here.
2058 (~tui_source_window_base): Delete "execution_info".
2059 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2060
2061 2019-06-25 Tom Tromey <tom@tromey.com>
2062
2063 * tui/tui-layout.c (make_command_window): Don't set
2064 can_highlight.
2065 (show_source_disasm_command): Call the reset method.
2066 (show_data): Don't set can_highlight. Call the reset method.
2067 (tui_gen_win_info::reset): Rename from init_gen_win_info
2068 (init_and_make_win): Simplify. Return tui_gen_win_info.
2069 (show_source_or_disasm_and_command): Call the reset method.
2070 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2071 (struct tui_cmd_window): Set can_highlight.
2072
2073 2019-06-25 Tom Tromey <tom@tromey.com>
2074
2075 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2076 from make_visible.
2077 (tui_make_visible, tui_make_invisible): Rewrite.
2078 (tui_win_info::make_visible): Remove.
2079 (tui_source_window_base::make_visible): Update.
2080 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2081 method. Moved from...
2082 (struct tui_win_info) <make_visible>: ...here.
2083
2084 2019-06-25 Tom Tromey <tom@tromey.com>
2085
2086 * tui/tui-winsource.c
2087 (tui_source_window_base::do_scroll_horizontal): Remove direction
2088 parameter.
2089 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2090 direction parameter.
2091 * tui/tui-win.c (tui_win_info::forward_scroll)
2092 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2093 (tui_win_info::right_scroll): Update.
2094 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2095 direction parameter.
2096 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2097 direction parameter.
2098 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2099 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2100 Remove direction parameter.
2101 (struct tui_source_window_base, struct tui_source_window)
2102 (struct tui_disasm_window, struct tui_data_window)
2103 (struct tui_cmd_window): Update.
2104
2105 2019-06-25 Tom Tromey <tom@tromey.com>
2106
2107 * tui/tui-winsource.h (tui_set_exec_info_content)
2108 (tui_show_exec_info_content, tui_erase_exec_info_content)
2109 (tui_clear_exec_info_content, tui_update_exec_info): Change
2110 argument to tui_source_window_base.
2111 * tui/tui-winsource.c (tui_set_exec_info_content)
2112 (tui_show_exec_info_content, tui_erase_exec_info_content)
2113 (tui_clear_exec_info_content, tui_update_exec_info): Change
2114 argument to tui_source_window_base.
2115
2116 2019-06-25 Tom Tromey <tom@tromey.com>
2117
2118 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2119 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2120
2121 2019-06-25 Tom Tromey <tom@tromey.com>
2122
2123 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2124 check.
2125
2126 2019-06-25 Tom Tromey <tom@tromey.com>
2127
2128 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2129 type to void.
2130 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2131 type to void.
2132 * tui/tui-source.c (tui_set_source_content): Update.
2133 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2134
2135 2019-06-25 Tom Tromey <tom@tromey.com>
2136
2137 * tui/tui-win.c (window_name_completer, tui_set_focus)
2138 (tui_all_windows_info): Use name method.
2139 * tui/tui-data.h (struct tui_gen_win_info)
2140 (struct tui_source_window, struct tui_disasm_window)
2141 (struct tui_data_window, struct tui_cmd_window) <name>: New
2142 method.
2143 (tui_win_name): Don't declare.
2144 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2145 (tui_win_name): Remove.
2146
2147 2019-06-25 Tom Tromey <tom@tromey.com>
2148
2149 * tui/tui-winsource.h (tui_update_source_window)
2150 (tui_update_source_window_as_is): Change parameter type.
2151 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2152 to be a tui_source_window_base.
2153 (tui_update_source_window_as_is): Likewise.
2154 * tui/tui-win.c (make_visible_with_new_height): Update.
2155
2156 2019-06-25 Tom Tromey <tom@tromey.com>
2157
2158 * tui/tui-winsource.c (tui_erase_source_content)
2159 (tui_show_source_content, tui_show_exec_info_content)
2160 (tui_erase_exec_info_content): Use refresh_window method.
2161 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2162 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2163 from tui_refresh_win.
2164 (tui_data_window::refresh_window): New method.
2165 (tui_win_info::refresh, tui_source_window_base::refresh)
2166 (tui_refresh_all): Use refresh_window method.
2167 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2168 method.
2169 * tui/tui-regs.c (tui_display_register): Call refresh_window
2170 method.
2171 * tui/tui-layout.c (show_source_disasm_command)
2172 (show_source_or_disasm_and_command): Call refresh_window method.
2173 * tui/tui-data.h (struct tui_gen_win_info)
2174 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2175 New method.
2176
2177 2019-06-25 Tom Tromey <tom@tromey.com>
2178
2179 * tui/tui.c (tui_rl_other_window, tui_enable)
2180 (tui_is_window_visible, tui_get_command_dimension): Update.
2181 * tui/tui-winsource.c (tui_update_source_window_as_is)
2182 (tui_clear_source_content, tui_erase_source_content)
2183 (tui_show_source_line, tui_source_window_base::refill)
2184 (tui_source_window_base::do_scroll_horizontal)
2185 (tui_source_window_base::set_is_exec_point_at)
2186 (tui_update_breakpoint_info, tui_set_exec_info_content)
2187 (tui_alloc_source_buffer, tui_line_is_displayed)
2188 (tui_addr_is_displayed): Update.
2189 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2190 (tui_check_and_display_highlight_if_needed)
2191 (tui_win_info::make_visible, tui_win_info::refresh)
2192 (tui_refresh_all): Update.
2193 * tui/tui-windata.c (tui_first_data_item_displayed)
2194 (tui_delete_data_content_windows, tui_erase_data_content)
2195 (tui_display_all_data, tui_data_window::refresh_all)
2196 (tui_check_data_values): Update.
2197 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2198 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2199 (tui_win_info::backward_scroll, tui_refresh_all_win)
2200 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2201 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2202 (tui_source_window_base::set_new_height)
2203 (tui_data_window::set_new_height)
2204 (make_invisible_and_set_new_height)
2205 (make_visible_with_new_height, new_height_ok)
2206 (parse_scrolling_args): Update.
2207 * tui/tui-stack.c (tui_show_frame_info): Update.
2208 * tui/tui-source.c (tui_set_source_content)
2209 (tui_set_source_content_nil, tui_source_is_displayed)
2210 (tui_source_window::do_scroll_vertical): Update.
2211 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2212 (tui_display_registers_from, tui_display_reg_element_at_line)
2213 (tui_check_register_values, tui_reg_command): Update.
2214 * tui/tui-layout.c (tui_default_win_height)
2215 (show_source_disasm_command, show_data, init_and_make_win)
2216 (show_source_or_disasm_and_command): Update.
2217 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2218 (tui_redisplay_readline, tui_mld_flush)
2219 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2220 (tui_getc): Update.
2221 * tui/tui-disasm.c (tui_set_disassem_content)
2222 (tui_disasm_window::do_scroll_vertical): Update.
2223 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2224 Now virtual.
2225 (struct tui_win_info): Derive from tui_gen_win_info.
2226 <~tui_win_info>: Mark as override.
2227 <generic>: Remove member.
2228 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2229 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2230 (~tui_data_window, ~tui_win_info)
2231 (tui_free_all_source_wins_content): Update.
2232 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2233
2234 2019-06-25 Tom Tromey <tom@tromey.com>
2235
2236 * tui/tui-layout.c (init_and_make_win): Use new.
2237 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2238 destructor, initializers.
2239 (tui_alloc_generic_win_info): Don't declare.
2240 * tui/tui-data.c (_locator): Add argument to constructor.
2241 (source_win, disasm_win): New globals.
2242 (exec_info): Remove.
2243 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2244 Update.
2245 (tui_alloc_generic_win_info): Remove.
2246 (init_content_element): Use new.
2247 (tui_win_info::tui_win_info): Update.
2248 (free_content_elements) <case DATA_WIN>: Use delete.
2249
2250 2019-06-25 Tom Tromey <tom@tromey.com>
2251
2252 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2253 * tui/tui-windata.c (tui_first_data_item_displayed)
2254 (tui_delete_data_content_windows): Update.
2255 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2256 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2257 (tui_display_registers_from, tui_check_register_values): Update.
2258 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2259 pointer.
2260 * tui/tui-data.c (init_content_element): Update. Allocate the new
2261 window.
2262 (tui_free_data_content): Update.
2263 (free_content_elements) <case DATA_WIN>: Free the window.
2264
2265 2019-06-25 Tom Tromey <tom@tromey.com>
2266
2267 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2268 Update.
2269 * tui/tui-layout.c (make_command_window)
2270 (show_source_disasm_command, show_data, init_and_make_win)
2271 (show_source_or_disasm_and_command): Update.
2272 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2273 method.
2274 <can_highight, is_highlighted>: Now bool.
2275 (tui_set_win_highlight): Don't declare.
2276 * tui/tui-data.c (tui_set_win_highlight): Remove.
2277
2278 2019-06-25 Tom Tromey <tom@tromey.com>
2279
2280 * tui/tui-wingeneral.c (make_visible): Remove check of window
2281 type.
2282
2283 2019-06-25 Tom Tromey <tom@tromey.com>
2284
2285 * tui/tui-win.c (tui_win_info::max_height)
2286 (tui_cmd_window::max_height): New methods.
2287 (new_height_ok): Call max_height.
2288 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2289 <max_height>: New method.
2290
2291 2019-06-25 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui-win.c (tui_source_window_base::set_new_height)
2294 (tui_data_window::set_new_height): New methods.
2295 (make_invisible_and_set_new_height): Call set_new_height method.
2296 * tui/tui-data.h (struct tui_win_info)
2297 (struct tui_source_window_base, struct tui_data_window)
2298 <set_new_height>: New method.
2299
2300 2019-06-25 Tom Tromey <tom@tromey.com>
2301
2302 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2303 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2304 tui_refresh_data_win.
2305 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2306 method.
2307 (tui_refresh_all_win): Call the refresh_all method.
2308 (tui_set_focus): Likewise.
2309 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2310 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2311 Likewise.
2312
2313 2019-06-25 Tom Tromey <tom@tromey.com>
2314
2315 * tui/tui-winsource.h (tui_refill_source_window)
2316 (tui_set_is_exec_point_at): Don't declare.
2317 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2318 (tui_source_window_base::refill): Rename from
2319 tui_refill_source_window.
2320 (tui_source_window_base::do_scroll_horizontal): Update.
2321 (tui_source_window_base::set_is_exec_point_at): Rename from
2322 tui_set_is_exec_point_at.
2323 (tui_update_all_breakpoint_info): Update.
2324 * tui/tui-stack.c (tui_show_frame_info): Update.
2325 * tui/tui-layout.c (show_data): Add cast.
2326 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2327 * tui/tui-data.h (struct tui_source_window_base) <refill,
2328 set_is_exec_point_at>: New methods.
2329 (tui_source_windows, tui_add_to_source_windows): Update types.
2330 (tui_add_to_source_windows): Remove redundant declaration.
2331 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2332 (tui_source_windows): Change return type.
2333 (tui_clear_source_windows_detail): Update.
2334 (tui_add_to_source_windows): Change type of parameter.
2335 (tui_free_all_source_wins_content): Update.
2336
2337 2019-06-25 Tom Tromey <tom@tromey.com>
2338
2339 * tui/tui-wingeneral.c (tui_win_info::refresh)
2340 (tui_source_window_base::refresh): New methods.
2341 (tui_refresh_all): Call the refresh method.
2342 * tui/tui-data.h (struct tui_win_info)
2343 (struct tui_source_window_base) <refresh>: New method.
2344
2345 2019-06-25 Tom Tromey <tom@tromey.com>
2346
2347 * tui/tui.h (tui_is_window_visible): Return bool.
2348 * tui/tui.c (tui_is_window_visible): Return bool.
2349 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2350 (tui_make_visible, tui_make_invisible)
2351 (tui_win_info::make_visible)
2352 (tui_source_window_base::make_visible, make_all_visible)
2353 (tui_make_all_visible, tui_make_all_invisible): Update.
2354 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2355 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2356 bool.
2357 (struct tui_win_info, struct tui_source_window_base)
2358 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2359 * tui/tui-data.c (tui_init_generic_part): Update.
2360
2361 2019-06-25 Tom Tromey <tom@tromey.com>
2362
2363 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2364 (tui_source_window_base::make_visible): New methods.
2365 (make_all_visible): Make method call.
2366 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2367 (struct tui_source_window_base, struct tui_cmd_window): Override
2368 make_visible.
2369 (tui_win_is_source_type): Don't declare.
2370 * tui/tui-data.c (tui_win_is_source_type): Remove.
2371
2372 2019-06-25 Tom Tromey <tom@tromey.com>
2373
2374 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2375 NULL check.
2376
2377 2019-06-25 Tom Tromey <tom@tromey.com>
2378
2379 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2380 Inline constructor. Add initializers for members.
2381 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2382 constructors; now inline in class.
2383
2384 2019-06-25 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui-regs.c (tui_show_registers): Update.
2387 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2388 bool.
2389 * tui/tui-data.c (tui_data_window::clear_detail)
2390 (tui_data_window): Update.
2391
2392 2019-06-25 Tom Tromey <tom@tromey.com>
2393
2394 * tui/tui-windata.c (tui_display_all_data)
2395 (tui_display_data_from_line, tui_display_data_from)
2396 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2397 Update.
2398 * tui/tui-regs.c (tui_last_regs_line_no)
2399 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2400 (tui_show_registers, tui_show_register_group)
2401 (tui_display_registers_from, tui_display_reg_element_at_line)
2402 (tui_display_registers_from_line, tui_check_register_values)
2403 (tui_reg_next, tui_reg_prev): Update.
2404 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2405 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2406 tui_data_window.
2407 (struct tui_win_info) <detail>: Remove. Add new fields from
2408 tui_data_info.
2409 (TUI_DATA_WIN): Add cast.
2410 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2411 (~tui_data_window): Simplify.
2412
2413 2019-06-25 Tom Tromey <tom@tromey.com>
2414
2415 * tui/tui-layout.c (show_source_disasm_command)
2416 (show_source_or_disasm_and_command): Update.
2417 * tui/tui-io.c (update_cmdwin_start_line)
2418 (tui_redisplay_readline): Update.
2419 * tui/tui-data.h (struct tui_command_info): Remove.
2420 (struct tui_win_info) <detail>: Remove command_info member.
2421 (struct tui_data_window) <start_line>: New member, from
2422 tui_command_info.
2423 (TUI_CMD_WIN): Add casts.
2424
2425 2019-06-25 Tom Tromey <tom@tromey.com>
2426
2427 * tui/tui-winsource.c (tui_update_source_window)
2428 (tui_refill_source_window)
2429 (tui_source_window_base::do_scroll_horizontal)
2430 (tui_update_breakpoint_info, tui_set_exec_info_content)
2431 (tui_show_exec_info_content, tui_erase_exec_info_content)
2432 (tui_clear_exec_info_content): Update.
2433 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
2434 Update.
2435 * tui/tui-win.c (make_invisible_and_set_new_height)
2436 (make_visible_with_new_height): Update.
2437 * tui/tui-source.c (tui_set_source_content)
2438 (tui_show_symtab_source): Update.
2439 * tui/tui-layout.c (extract_display_start_addr)
2440 (show_source_disasm_command, show_data)
2441 (make_source_or_disasm_window)
2442 (show_source_or_disasm_and_command): Update.
2443 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
2444 (tui_disasm_window::do_scroll_vertical): Remove shadowing
2445 "gdbarch".
2446 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
2447 to tui_source_window_base.
2448 (struct tui_win_info) <detail>: Remove source_info member.
2449 (struct tui_source_window_base) <has_locator>: Inline.
2450 Move contents from tui_source_info; rename has_locator member to
2451 m_has_locator.
2452 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
2453 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
2454 header file.
2455 (tui_source_window_base::clear_detail, ~tui_source_window_base):
2456 Simplify.
2457 (tui_free_all_source_wins_content): Cast to
2458 tui_source_window_base.
2459
2460 2019-06-25 Tom Tromey <tom@tromey.com>
2461
2462 * tui/tui-win.c (make_invisible_and_set_new_height)
2463 (make_visible_with_new_height): Call has_locator method.
2464 * tui/tui-layout.c (show_source_disasm_command, show_data)
2465 (show_source_or_disasm_and_command): Update for bool change.
2466 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
2467 (tui_win_info) <has_locator>: New method.
2468 (struct tui_source_window_base) <has_locator>: New method.
2469 (tui_win_has_locator): Don't declare.
2470 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
2471 from tui_win_has_locator.
2472 (tui_source_window_base): Use false, not FALSE.
2473
2474 2019-06-25 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
2477 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
2478 clear_detail method directly.
2479 (tui_clear_win_detail): Remove.
2480
2481 2019-06-25 Tom Tromey <tom@tromey.com>
2482
2483 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
2484 "this", not TUI_DISASM_WIN.
2485
2486 2019-06-25 Tom Tromey <tom@tromey.com>
2487
2488 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
2489 declare.
2490 * tui/tui-winsource.c
2491 (tui_source_window_base::do_scroll_horizontal): Rename from
2492 tui_horizontal_source_scroll.
2493 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
2494 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
2495 from tui_vertical_data_scroll.
2496 * tui/tui-win.h (tui_scroll): Don't declare.
2497 * tui/tui-win.c (tui_win_info::forward_scroll)
2498 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2499 (tui_win_info::right_scroll): Rename and update.
2500 (tui_scroll_forward_command, tui_scroll_backward_command)
2501 (tui_scroll_left_command, tui_scroll_right_command): Update.
2502 (tui_scroll): Remove.
2503 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
2504 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
2505 from tui_vertical_source_scroll.
2506 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
2507 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
2508 from tui_vertical_disassem_scroll.
2509 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
2510 do_scroll_horizontal>: New methods.
2511 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
2512 Likewise.
2513 (struct tui_source_window_base): Add do_scroll_horizontal.
2514 (struct tui_source_window, struct tui_disasm_window): Add
2515 do_scroll_vertical.
2516 (struct tui_data_window, struct tui_cmd_window): Add
2517 do_scroll_horizontal and do_scroll_vertical.
2518 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
2519
2520 2019-06-25 Tom Tromey <tom@tromey.com>
2521
2522 * tui/tui-data.h (struct tui_source_window_base): New struct.
2523 (struct tui_source_window): Derive from tui_source_window_base.
2524 (struct tui_disasm_window): New struct.
2525 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
2526 from tui_source_window::clear_detail.
2527 (tui_source_window_base): Rename from tui_source_window.
2528 (~tui_source_window_base): Rename from ~tui_source_window.
2529 (tui_alloc_win_info): Create a tui_disasm_window.
2530
2531 2019-06-25 Tom Tromey <tom@tromey.com>
2532
2533 * tui/tui-data.h (struct tui_source_window)
2534 (struct tui_data_window): Declare destructors.
2535 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
2536 destructors.
2537 (tui_win_info): Simplify.
2538
2539 2019-06-25 Tom Tromey <tom@tromey.com>
2540
2541 * tui/tui-winsource.c (tui_display_main)
2542 (tui_update_source_windows_with_addr)
2543 (tui_update_all_breakpoint_info): Update.
2544 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2545 (new_height_ok, parse_scrolling_args): Update.
2546 * tui/tui-stack.c (tui_show_frame_info): Update.
2547 * tui/tui-data.h (struct tui_list): Remove.
2548 (tui_source_windows): Return a reference to a std::vector.
2549 * tui/tui-data.c (source_windows): Now a std::vector.
2550 (tui_source_windows): Change return type.
2551 (tui_clear_source_windows): Rewrite.
2552 (tui_clear_source_windows_detail, tui_add_to_source_windows)
2553 (tui_free_all_source_wins_content): Rewrite.
2554
2555 2019-06-25 Tom Tromey <tom@tromey.com>
2556
2557 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
2558 (struct tui_data_window, struct tui_cmd_window): Declare
2559 clear_detail method.
2560 * tui/tui-data.c (tui_source_window::clear_detail)
2561 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
2562 methods.
2563 (tui_clear_win_detail): Simplify.
2564
2565 2019-06-25 Tom Tromey <tom@tromey.com>
2566
2567 * tui/tui-layout.c (make_source_window, make_disasm_window)
2568 (make_source_or_disasm_window): Remove win_info_ptr parameter.
2569 Return the new window.
2570 (show_source_disasm_command, show_data)
2571 (show_source_or_disasm_and_command): Update.
2572
2573 2019-06-25 Tom Tromey <tom@tromey.com>
2574
2575 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
2576 parameter. Return the new window.
2577 (show_source_disasm_command): Update and remove NULL check.
2578 (show_source_or_disasm_and_command): Update.
2579
2580 2019-06-25 Tom Tromey <tom@tromey.com>
2581
2582 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
2583
2584 2019-06-25 Tom Tromey <tom@tromey.com>
2585
2586 * tui/tui-data.h (struct tui_win_info): Make constructor
2587 protected. Make destructor virtual. Add initializers.
2588 (tui_source_window, tui_data_window, tui_cmd_window): New
2589 classes.
2590 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
2591 constructor. Add "type" parameter.
2592 (tui_source_window, tui_data_window, tui_cmd_window): New
2593 constructors.
2594 (tui_alloc_win_info): Instantiate the appropriate subclass.
2595
2596 2019-06-25 Tom Tromey <tom@tromey.com>
2597
2598 * tui/tui-win.c (tui_resize_all): Use delete.
2599 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
2600 destructor.
2601 (tui_free_window): Don't declare.
2602 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
2603 Update.
2604
2605 2019-06-25 Tom Tromey <tom@tromey.com>
2606
2607 * tui/tui-data.h (struct tui_win_info): Add constructor.
2608 * tui/tui-data.c (tui_alloc_win_info): Use new.
2609 (tui_free_window): Use delete.
2610
2611 2019-06-22 Tom Tromey <tom@tromey.com>
2612
2613 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
2614 declare.
2615 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
2616
2617 2019-06-22 Tom Tromey <tom@tromey.com>
2618
2619 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
2620 declare.
2621 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
2622
2623 2019-06-22 Tom de Vries <tdevries@suse.de>
2624
2625 * dwarf2read.c (create_addrmap_from_aranges)
2626 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
2627 instead of '%zu'.
2628
2629 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * dwarf2read.h (dwarf2_section_info_def): Remove.
2632 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
2633 * dwarf2read.c (struct dwo_sections) <types>: Change type to
2634 std::vector<dwarf2_section_info>.
2635 (struct dwo_file) <~dwo_file>: Remove.
2636 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
2637 types field.
2638 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
2639 (dwarf2_read_debug_names): Likewise.
2640 (create_debug_types_hash_table): Change parameter type to
2641 array_view, adjust code accordingly.
2642 (dwarf2_locate_dwo_sections): Adjust to std::vector.
2643 (partial_die_info::fixup): Likewise.
2644 (determine_prefix): Likewise.
2645 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
2646
2647 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
2648
2649 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
2650 gdb_bfd_ref_ptr.
2651 <~dwo_file>: Remove call to gdb_bfd_unref.
2652 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
2653 gdb_bfd_ref_ptr::get.
2654
2655 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
2656
2657 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
2658 type to htab_up.
2659 * dwarf2read.c (struct dwo_file): Initialize fields.
2660 <~dwo_file>: New.
2661 (free_dwo_file): Remove, move content to ~dwo_file.
2662 (struct dwo_file_deleter): Remove.
2663 (dwo_file_up>: Remove custom deleter.
2664 (free_dwo_files): Remove.
2665 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
2666 dwo_files.
2667 (process_skeletonless_type_units): Call unique_ptr::get.
2668 (allocate_dwo_file_hash_table): Add deleter to created hash
2669 table. Change return type to htab_up.
2670 (lookup_dwo_file_slot): Don't memset dwo_file, call
2671 unique_ptr::get.
2672 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
2673 (create_dwo_unit_in_dwp_v2): Likewise.
2674 (open_and_init_dwo_file): Likewise.
2675 (free_dwo_file_from_slot): Remove.
2676
2677 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
2678
2679 * dwarf2read.h (struct dwarf2_section_info) <readin,
2680 is_virtual>: Change type to bool.
2681 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
2682 true instead of 1.
2683
2684 2019-06-19 Tom Tromey <tom@tromey.com>
2685
2686 * tui/tui-data.h (tui_init_content_element): Don't declare.
2687
2688 2019-06-19 Tom Tromey <tom@tromey.com>
2689
2690 * tui/tui-data.h (tui_init_win_info): Don't declare.
2691
2692 2019-06-19 Tom de Vries <tdevries@suse.de>
2693
2694 * dwarf2read.h (abstract_to_concrete): Change type to
2695 std::unordered_map<sect_offset, std::vector<sect_offset>,
2696 gdb::hash_enum<sect_offset>>.
2697
2698 2019-06-19 Tom Tromey <tromey@adacore.com>
2699
2700 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
2701 EVAL_AVOID_SIDE_EFFECTS specially.
2702
2703 2019-06-19 Tom Tromey <tromey@adacore.com>
2704
2705 * source-cache.c (highlighter): New global.
2706 (source_cache::get_source_lines): Create a highlighter on demand.
2707
2708 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * defs.h (deprecated_interactive_hook): Delete declaration.
2711 * interps.c (clear_interpreter_hooks): Remove use of
2712 deprecated_interactive_hook.
2713 * top.c (deprecated_interactive_hook): Delete definition.
2714 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
2715
2716 2019-06-18 Tom de Vries <tdevries@suse.de>
2717
2718 PR gdb/24515
2719 * dwarf2read.h (abstract_to_concrete): Change type from
2720 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
2721 std::unordered_map<sect_offset, std::vector<sect_offset>>.
2722 * dwarf2read.c (read_variable): Update.
2723 (dwarf2_fetch_die_loc_sect_off): Update.
2724
2725 2019-06-17 Tom de Vries <tdevries@suse.de>
2726
2727 PR gdb/24617
2728 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
2729 accessing parent[parent_len - 1].
2730
2731 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
2732
2733 PR gdb/24364
2734 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
2735 call dtrace_process_dof with NULL dof.
2736
2737 2019-06-16 Tom de Vries <tdevries@suse.de>
2738
2739 PR gdb/24445
2740 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
2741
2742 2019-06-16 Tom Tromey <tom@tromey.com>
2743
2744 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2745 (make_all_visible): Use address of member.
2746
2747 2019-06-16 Tom Tromey <tom@tromey.com>
2748
2749 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
2750 (tui_free_window, free_content, free_content_elements): Remove
2751 unnecessary cast.
2752 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
2753 cast.
2754 * tui/tui-regs.c (tui_show_register_group)
2755 (tui_display_registers_from, tui_display_reg_element_at_line):
2756 Remove unnecessary cast.
2757
2758 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
2759
2760 * linux-nat.c (normal_mask): Delete.
2761 (_initialize_linux_nat): Don't initialise normal_mask.
2762
2763 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
2764
2765 PR gdb/24445
2766 * dwarf-index-write.h (write_psymtabs_to_index): Add
2767 dwz_basename parameter.
2768 * dwarf-index-write.c (write_gdbindex): Move file writing to
2769 write_gdbindex_1. Change return type void.
2770 (assert_file_size): Move up, remove filename parameter.
2771 (write_gdbindex_1): New function.
2772 (write_debug_names): Change return type to void, call
2773 assert_file_size.
2774 (struct index_wip_file): New struct.
2775 (write_psymtabs_to_index): Add dwz_basename parameter. Move
2776 file logic to index_wip_file. Write index for dwz file if
2777 needed.
2778 (save_gdb_index_command): Pass basename of dwz file, if present.
2779 * dwarf-index-cache.c (index_cache::store): Obtain and pass
2780 build-id of dwz file, if present.
2781 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
2782 (dwarf2_get_dwz_file): Likewise.
2783 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
2784 (dwarf2_get_dwz_file): Likewise.
2785
2786 2019-06-16 Tom Tromey <tom@tromey.com>
2787
2788 * coffread.c (process_coff_symbol): Use xstrdup.
2789 * value.c (create_internalvar): Use xstrdup.
2790
2791 2019-06-16 Tom Tromey <tom@tromey.com>
2792
2793 * valops.c (value_cast, value_slice): Remove unnecessary cast.
2794 * breakpoint.c (stopin_command, stopat_command)
2795 (until_break_command, decode_location_default): Remove unnecessary
2796 cast.
2797 * utils.c (subset_compare): Remove unnecessary cast.
2798 * ada-lang.c (ada_update_initial_language): Remove unnecessary
2799 cast.
2800 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
2801 cast.
2802 * infcmd.c (path_command): Remove unnecessary cast.
2803 * coffread.c (decode_type): Remove unnecessary cast.
2804 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
2805 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
2806 * tui/tui-stack.c (tui_show_locator_content)
2807 (tui_show_frame_info): Remove unnecessary cast.
2808 * tui/tui-win.c (tui_scroll_forward_command)
2809 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
2810 (parse_scrolling_args): Remove unnecessary cast.
2811 * tui/tui-data.c (init_win_info, tui_del_window)
2812 (tui_free_window, tui_del_data_windows, tui_free_data_content)
2813 (free_content_elements): Remove unnecessary cast.
2814 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
2815 unnecessary cast.
2816 * tui/tui-source.c (tui_set_source_content)
2817 (tui_vertical_source_scroll): Remove unnecessary cast.
2818 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
2819 cast.
2820 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
2821 * tui/tui-regs.c (tui_display_registers_from)
2822 (tui_display_register): Remove unnecessary cast.
2823 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
2824 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
2825 (make_visible): Remove unnecessary cast.
2826 * tui/tui-winsource.c (tui_erase_source_content)
2827 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
2828 unnecessary cast.
2829 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
2830 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
2831 * stabsread.c (read_type, read_array_type, read_range_type):
2832 Remove unnecessary cast.
2833 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
2834 (parse_symbol, parse_type, upgrade_type, parse_external)
2835 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
2836 unnecessary cast.
2837 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
2838
2839 2019-06-16 Tom Tromey <tom@tromey.com>
2840
2841 * tui/tui-data.c (tui_alloc_generic_win_info)
2842 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
2843 checks.
2844
2845 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
2846 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * f-typeprint.c (f_print_type): Don't return early for not
2849 associated or not allocated types.
2850 (f_type_print_varspec_suffix): Add print_rank parameter and print
2851 ranks of array types in case they dangling.
2852 (f_type_print_base): Add print_rank parameter.
2853
2854 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2855
2856 * NEWS: Mention new MI commands.
2857 * break-catch-throw.c (enum exception_event_kind): Move to
2858 breakpoint.h.
2859 (print_mention_exception_catchpoint): Output text as a single
2860 message.
2861 (catch_exception_command_1): Rename to...
2862 (catch_exception_event): ...this, make non-static, update header
2863 command, and change some parameter types.
2864 (catch_catch_command): Update for changes to
2865 catch_exception_command_1.
2866 (catch_throw_command): Likewise.
2867 (catch_rethrow_command): Likewise.
2868 * breakpoint.c (enum exception_event_kind): Delete.
2869 * breakpoint.h (enum exception_event_kind): Moved here from
2870 break-catch-throw.c.
2871 (catch_exception_event): Declare.
2872 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
2873 (mi_cmd_catch_throw): New function.
2874 (mi_cmd_catch_rethrow): New function.
2875 (mi_cmd_catch_catch): New function.
2876 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
2877 'catch-catch' entries.
2878 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
2879 (mi_cmd_catch_rethrow): Declare.
2880 (mi_cmd_catch_catch): Declare.
2881
2882 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2883
2884 * annotate.c (annotate_source_line): Change return type to void,
2885 update implementation to match.
2886 * annotate.h (annotate_source_line): Change return type to void,
2887 update header comment.
2888 * stack.c (print_frame_info): Don't change what frame information
2889 is printed based on whether annotations are on or not.
2890
2891 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
2894 (annotate_source): Make static.
2895 (annotate_source_line): Moved from source.c and renamed from
2896 identify_source_line. Update the return type.
2897 * annotate.h (annotate_source): Delete declaration.
2898 (annotate_source_line): Declaration moved from source.h, and
2899 renamed from identify_source_line. Return type updated.
2900 * source.c (identify_source_line): Moved to annotate.c and renamed
2901 to annotate_source_line.
2902 (info_line_command): Remove check of annotation_level.
2903 * source.h (identify_source_line): Move declaration to annotate.h
2904 and rename to annotate_source_line.
2905 * stack.c: Add 'annotate.h' include.
2906 (print_frame_info): Remove check of annotation_level before
2907 calling annotate_source_line.
2908
2909 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * source-cache.c (source_cache::get_plain_source_lines): Use
2912 open_source_file_with_line_charpos instead of just
2913 open_source_file, remove call to find_source_lines.
2914 (source_cache::get_source_lines): Likewise.
2915 * source.c (find_source_lines): Make static.
2916 (get_filename_and_charpos): Renamed into...
2917 (open_source_file_with_line_charpos): ..this along with changes to
2918 return a scoped_fd, and some other minor clean ups.
2919 (identify_source_line): Use open_source_file_with_line_charpos.
2920 (search_command_helper): Use open_source_file_with_line_charpos
2921 instead of just open_source_file, remove call to
2922 find_source_lines.
2923 * source.h (open_source_file_with_line_charpos): Declare new
2924 function.
2925 (find_source_lines): Delete declaration.
2926
2927 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
2928
2929 * source.c (get_filename_and_charpos): Remove fullname
2930 parameter.
2931 (identify_source_line): Update call to get_filename_and_charpos.
2932
2933 2019-06-14 Tom Tromey <tromey@adacore.com>
2934
2935 PR gdb/24502:
2936 * ui-style.h (skip_ansi_escape): Update comment.
2937 * ui-file.h (class no_terminal_escape_file): New class.
2938 * ui-file.c (no_terminal_escape_file::write)
2939 (no_terminal_escape_file::puts): New methods.
2940 * cli/cli-logging.c (handle_redirections): Use
2941 no_terminal_escape_file.
2942
2943 2019-06-14 Tom Tromey <tromey@adacore.com>
2944
2945 * NEWS: Move convenience variable news above Python news.
2946
2947 2019-06-14 Tom Tromey <tom@tromey.com>
2948
2949 * gnulib: Move directory to top-level.
2950 * configure.ac: Don't configure gnulib.
2951 * configure: Rebuild.
2952 * common/common-defs.h: Use new path to gnulib.
2953 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
2954 (GNULIB_H): Remove.
2955 (INCGNU): Look in new gnulib location.
2956 (HFILES_NO_SRCDIR): Remove gnulib files.
2957 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
2958 (generated_files): Remove GNULIB_H.
2959 ($(LIBGNU), all-lib): Remove targets.
2960 (distclean): Don't mention GNULIB_BUILDDIR.
2961 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
2962
2963 2019-06-14 Tom Tromey <tromey@adacore.com>
2964
2965 * symfile.c (add_symbol_file_command): Remove obsolete comment.
2966 Warn if symbol file does not provide any symbols.
2967
2968 2019-06-14 Tom Tromey <tromey@adacore.com>
2969
2970 * source.c (find_and_open_source): Respect basenames_may_differ.
2971
2972 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
2973
2974 * annotate.c (annotate_breakpoints_invalid): Make use of
2975 scoped_restore_terminal_state.
2976 (annotate_frames_invalid): Likewise.
2977
2978 2019-06-14 Tom Tromey <tromey@adacore.com>
2979
2980 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
2981 allow assignment to an internalvar.
2982
2983 2019-06-14 Tom Tromey <tromey@adacore.com>
2984
2985 * ada-lex.l: Allow "_" in attribute names.
2986
2987 2019-06-14 Tom Tromey <tromey@adacore.com>
2988
2989 PR gdb/24653:
2990 * regcache.c (registers_changed): Don't call alloca.
2991 * top.c (execute_command): Don't call alloca.
2992
2993 2019-06-13 Pedro Alves <palves@redhat.com>
2994
2995 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
2996 'expression'. When parsing an expression, error out if there's
2997 junk after "unlimited".
2998 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
2999 (do_set_command): Adjust calls to is_unlimited_literal.
3000
3001 2019-06-13 Pedro Alves <palves@redhat.com>
3002
3003 * compile/compile.c (make_compile_options_def_group): Add braces
3004 around array_view initializer.
3005 * thread.c (make_thread_apply_all_options_def_group)
3006 (make_thread_apply_all_options_def_group): Likewise.
3007
3008 2019-06-13 Pedro Alves <palves@redhat.com>
3009
3010 * NEWS (New commands): Mention "maint test-options
3011 require-delimiter", "maint test-options unknown-is-error", "maint
3012 test-options unknown-is-operand" and "maint show
3013 test-options-completion-result".
3014 (New command options, command completion): New section.
3015 (Completion improvements): New section.
3016 Mention that you can abbreviate "unlimited".
3017
3018 2019-06-13 Pedro Alves <palves@redhat.com>
3019
3020 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3021 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3022 * unittests/cli-utils-selftests.c (test_parse_flags)
3023 (test_parse_flags_qcs): Delete.
3024 (test_cli_utils): Don't call deleted functions.
3025
3026 2019-06-13 Pedro Alves <palves@redhat.com>
3027
3028 * thread.c: Include "cli/cli-option.h".
3029 (tp_array_compar_ascending): Global.
3030 (tp_array_compar): Delete function.
3031 (tp_array_compar_ascending, tp_array_compar_descending): New
3032 functions.
3033 (ascending_option_def, qcs_flag_option_def)
3034 (thr_qcs_flags_option_defs)
3035 (make_thread_apply_all_options_def_group)
3036 (make_thread_apply_options_def_group): New.
3037 (thread_apply_all_command): Use gdb::option::process_options.
3038 (thread_apply_command_completer)
3039 (thread_apply_all_command_completer): New.
3040 (thread_apply_command): Use gdb::option::process_options.
3041 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3042 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3043 to generate help text of "thread apply". Adjust "taas"'s help.
3044 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3045 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3046
3047 2019-06-13 Pedro Alves <palves@redhat.com>
3048
3049 * thread.c (thread_apply_command): Check for invalid TID with
3050 isdigit instead of !isalpha.
3051
3052 2019-06-13 Pedro Alves <palves@redhat.com>
3053
3054 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3055 (validate_flags_qcs): New.
3056 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3057 (validate_flags_qcs): Declare.
3058 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3059 (make_frame_apply_options_def_group): New.
3060 (frame_apply_command_count): Process options with
3061 gdb::option::process_options.
3062 (frame_apply_completer): New.
3063 (frame_apply_level_completer, frame_apply_all_completer)
3064 (frame_apply_completer): New.
3065 (_initialize_stack): Update help of "frame apply", "frame apply
3066 level", "frame apply all" and "faas" to mention supported options
3067 and install command completers.
3068 * stack.h (frame_apply_all_completer): Declare.
3069 * thread.c: Include "stack.h".
3070 (tfaas_command): Add "--".
3071 (_initialize_thread): Update help "tfaas" to mention supported
3072 options and install command completer.
3073
3074 2019-06-13 Pedro Alves <palves@redhat.com>
3075
3076 * completer.c (complete_nested_command_line): New.
3077 (gdb_completion_word_break_characters_throw): Add assertion.
3078 * completer.h (complete_nested_command_line): Declare.
3079
3080 2019-06-13 Pedro Alves <palves@redhat.com>
3081
3082 * stack.c (parse_backtrace_qualifiers): New.
3083 (backtrace_command): Use it.
3084 (backtrace_command_completer): Complete on qualifiers.
3085
3086 2019-06-13 Pedro Alves <palves@redhat.com>
3087
3088 * frame.c: Include "cli/cli-option.h.
3089 (user_set_backtrace_options): New.
3090 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3091 Delete.
3092 (get_prev_frame): Adjust.
3093 (boolean_option_def, uinteger_option_def)
3094 (set_backtrace_option_defs): New.
3095 (_initialize_frame): Adjust and use
3096 gdb::option::add_setshow_cmds_for_options to install "set
3097 backtrace past-main" and "set backtrace past-entry".
3098 * frame.h: Include "cli/cli-option.h".
3099 (struct frame_print_options): Forward declare.
3100 (print_frame_arguments_all, print_frame_arguments_scalars)
3101 (print_frame_arguments_none): Declare.
3102 (print_entry_values): Delete declaration.
3103 (struct frame_print_options, user_frame_print_options): New.
3104 (struct set_backtrace_options): New.
3105 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3106 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3107 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3108 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3109 (list_args_or_locals): Add frame_print_options parameter.
3110 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3111 * python/py-framefilter.c (enumerate_args): Pass down
3112 USER_FRAME_PRINT_OPTIONS.
3113 * stack.c: Include "cli/cli-option.h".
3114 (print_frame_arguments_all, print_frame_arguments_scalars)
3115 (print_frame_arguments_none): Declare.
3116 (print_raw_frame_arguments, print_entry_values): Delete.
3117 (user_frame_print_options): New.
3118 (boolean_option_def, enum_option_def, frame_print_option_defs):
3119 New.
3120 (struct backtrace_cmd_options): New.
3121 (bt_flag_option_def): New.
3122 (backtrace_command_option_defs): New.
3123 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3124 (print_frame_arg, read_frame_arg, print_frame_args)
3125 (print_frame_info, print_frame): Add frame_print_options parameter
3126 and use it.
3127 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3128 (backtrace_command_1): Add frame_print_options and
3129 backtrace_cmd_options parameters and use them.
3130 (make_backtrace_options_def_group): New.
3131 (backtrace_command): Process command options with
3132 gdb::option::process_options.
3133 (backtrace_command_completer): New.
3134 (_initialize_stack): Extend "backtrace"'s help to mention
3135 supported options. Install completer for "backtrace".
3136 Install some settings commands with add_setshow_cmds_for_options.
3137
3138 2019-06-13 Pedro Alves <palves@redhat.com>
3139
3140 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3141 and that "set/show print raw frame-arguments" are now deprecated.
3142
3143 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3144 command.
3145 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3146 * stack.c (_initialize_stack): Install "set/show print
3147 raw-frame-arguments", and deprecate "set/show print raw
3148 frame-arguments".
3149 * valprint.c (_initialize_valprint): Deprecate "set/show print
3150 raw".
3151
3152 2019-06-13 Pedro Alves <palves@redhat.com>
3153
3154 * compile/compile.c (struct compile_options): New.
3155 (compile_flag_option_def, compile_command_option_defs)
3156 (make_compile_options_def_group): New.
3157 (compile_file_command): Handle options with
3158 gdb::option::process_options.
3159 (compile_file_command_completer): New function.
3160 (compile_code_command): Handle options with
3161 gdb::option::process_options.
3162 (compile_code_command_completer): New function.
3163 (_initialize_compiler): Install completers for "compile code" and
3164 "compile file". Mention available options in "compile code" and
3165 "compile code"'s help.
3166 * completer.c (advance_to_completion_word): New, factored out from
3167 ...
3168 (advance_to_expression_complete_word_point): ... this.
3169 (advance_to_filename_complete_word_point): New.
3170 * completer.h (advance_to_filename_complete_word_point): New
3171 declaration.
3172
3173 2019-06-13 Pedro Alves <palves@redhat.com>
3174
3175 * compile/compile.c: Include "cli/cli-option.h".
3176 (compile_print_value): Scope data pointer is now a
3177 value_print_options pointer; adjust.
3178 (compile_print_command): Process options. Scope data pointer is
3179 now a value_print_options pointer; adjust.
3180 (_initialize_compile): Update "compile print"'s help to include
3181 supported options. Install a completer for "compile print".
3182 * cp-valprint.c (show_vtblprint, show_objectprint)
3183 (show_static_field_print): Delete.
3184 (_initialize_cp_valprint): Don't install "set print
3185 static-members", "set print vtbl", "set print object" here.
3186 * printcmd.c: Include "cli/cli-option.h" and
3187 "common/gdb_optional.h".
3188 (print_command_parse_format): Rework to fill in a
3189 value_print_options instead of a format_data.
3190 (print_value): Change parameter type from format_data pointer to
3191 value_print_options reference. Adjust.
3192 (print_command_1): Process options. Adjust to pass down a
3193 value_print_options.
3194 (print_command_completer): New.
3195 (_initialize_printcmd): Install print_command_completer as
3196 handle_brkchars completer for the "print" command. Update
3197 "print"'s help to include supported options.
3198 * valprint.c: Include "cli/cli-option.h".
3199 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3200 here from cp-valprint.c.
3201 (boolean_option_def, uinteger_option_def)
3202 (value_print_option_defs, make_value_print_options_def_group):
3203 New. Use gdb::option::add_setshow_cmds_for_options to install
3204 "set print elements", "set print null-stop", "set print repeats",
3205 "set print pretty", "set print union", "set print array", "set
3206 print address", "set print symbol", "set print array-indexes".
3207 * valprint.h: Include <string> and "cli/cli-option.h".
3208 (make_value_print_options_def_group): Declare.
3209 (print_value): Change parameter type from format_data pointer to
3210 value_print_options reference.
3211 (print_command_completer): Declare.
3212
3213 2019-06-13 Pedro Alves <palves@redhat.com>
3214
3215 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3216 (COMMON_SFILES): Add maint-test-settings.c.
3217 * cli/cli-decode.c (boolean_enums): New global, factored out from
3218 ...
3219 (add_setshow_boolean_cmd): ... here.
3220 * cli/cli-decode.h (boolean_enums): Declare.
3221 * cli/cli-option.c: New file.
3222 * cli/cli-option.h: New file.
3223 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3224 factored out from ...
3225 (parse_cli_boolean_value(const char *)): ... this.
3226 (is_unlimited_literal): Change parameter type to pointer to
3227 pointer. Adjust and advance ARG pointer.
3228 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3229 (parse_cli_var_enum): New, factored out from ...
3230 (do_set_command): ... this. Adjust.
3231 * cli/cli-setshow.h (parse_cli_boolean_value)
3232 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3233 (parse_cli_var_enum): Declare.
3234 * cli/cli-utils.c: Include "cli/cli-option.h".
3235 (get_ulongest): New.
3236 * cli/cli-utils.h (get_ulongest): Declare.
3237 (check_for_argument): New overloads.
3238 * maint-test-options.c: New file.
3239
3240 2019-06-13 Pedro Alves <palves@redhat.com>
3241
3242 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3243 parse a range if "-" is at the end of the string.
3244
3245 2019-06-13 Pedro Alves <palves@redhat.com>
3246
3247 * cli/cli-setshow.c (parse_auto_binary_operation)
3248 (parse_cli_boolean_value): Don't allow "o".
3249
3250 2019-06-13 Pedro Alves <palves@redhat.com>
3251
3252 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3253 * NEWS: Mention maint test-settings KIND.
3254 * maint-test-settings.c: New file.
3255
3256 2019-06-13 Pedro Alves <palves@redhat.com>
3257
3258 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3259 completer.
3260 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3261 "set" completers.
3262
3263 2019-06-13 Pedro Alves <palves@redhat.com>
3264
3265 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3266 after item.
3267
3268 2019-06-13 Pedro Alves <palves@redhat.com>
3269
3270 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3271
3272 2019-06-13 Pedro Alves <palves@redhat.com>
3273
3274 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3275 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3276 call.
3277 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3278 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3279 calls.
3280 (check_for_argument): Skip spaces after argument.
3281
3282 2019-06-13 Pedro Alves <palves@redhat.com>
3283
3284 * thread.c (thread_apply_command): Adjust TID parsing.
3285 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3286 detected before end of string.
3287 (tid_is_in_list): Error out if LIST is invalid.
3288
3289 2019-06-13 Pedro Alves <palves@redhat.com>
3290
3291 * completer.c (complete_line_internal_1): Rewind completion word
3292 point.
3293 (completion_tracker::advance_custom_word_point_by): Change
3294 parameter type to int.
3295 * completer.h (completion_tracker::advance_custom_word_point_by):
3296 Likewise.
3297
3298 2019-06-13 Pedro Alves <palves@redhat.com>
3299
3300 * completer.c (advance_to_completion_word): Handle delimiters.
3301
3302 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3303
3304 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3305
3306 2019-06-11 Tom Tromey <tom@tromey.com>
3307
3308 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3309 (xmalloc_failed): Move to alloc.c.
3310 * alloc.c: New file.
3311 * Makefile.in (COMMON_SFILES): Add alloc.c.
3312
3313 2019-06-11 Tom Tromey <tom@tromey.com>
3314
3315 * nat/linux-waitpid.c: Don't include server.h.
3316 (linux_debug): Remove.
3317 (my_waitpid): Update.
3318
3319 2019-06-11 Tom Tromey <tromey@adacore.com>
3320
3321 * infcall.c (_initialize_infcall): Remove trailing newline from
3322 help.
3323 * user-regs.c (_initialize_user_regs): Remove trailing newline
3324 from help.
3325 * typeprint.c (_initialize_typeprint): Remove trailing newline
3326 from help.
3327 * reverse.c (_initialize_reverse): Remove trailing newlines from
3328 help.
3329 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3330 from help.
3331 * language.c (add_set_language_command): Remove trailing newline
3332 from help.
3333 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3334 help.
3335 * disasm.c (_initialize_disasm): Remove trailing newline from
3336 help.
3337 * top.c (init_main): Remove trailing newline from help.
3338 * interps.c (_initialize_interpreter): Remove trailing newline
3339 from help.
3340 * btrace.c (_initialize_btrace): Remove trailing newlines from
3341 help.
3342 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3343 from help.
3344 * python/python.c (_initialize_python): Remove trailing newline
3345 from help.
3346 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3347 help.
3348 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3349 from help. Reformat some text.
3350 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3351 from help.
3352 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3353 newline from help.
3354
3355 2019-06-11 Tom Tromey <tromey@adacore.com>
3356
3357 * darwin-nat.c (darwin_decode_exception_message)
3358 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3359
3360 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3361
3362 * valops.c (value_slice): Check for not allocated or not
3363 associated values.
3364
3365 2019-06-10 Tom de Vries <tdevries@suse.de>
3366
3367 PR gdb/24618
3368 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3369 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3370 invalid.
3371
3372 2019-06-10 Tom de Vries <tdevries@suse.de>
3373
3374 PR gdb/24611
3375 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3376 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3377
3378 2019-06-10 Tom de Vries <tdevries@suse.de>
3379
3380 PR symtab/24545
3381 * symtab.c (struct demangled_name_entry): Add language field.
3382 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3383 static minimal symbol". Set and use language field.
3384
3385 2019-06-10 Tom Tromey <tromey@adacore.com>
3386
3387 * ada-lang.c (_initialize_ada_language): Update help text.
3388
3389 2019-06-10 Tom Tromey <tromey@adacore.com>
3390
3391 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3392 with a newline.
3393 * guile/guile.c (handle_boot_error): Don't end warning with a
3394 newline.
3395 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3396 warning with a newline.
3397 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3398 newline.
3399 (s12z_frame_cache): Likewise.
3400 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3401 a newline.
3402 * solib-svr4.c (disable_probes_interface): Don't end warning with
3403 a newline.
3404 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3405 newline.
3406 * python/python.c (do_finish_initialization): Don't end warning
3407 with a newline.
3408
3409 2019-06-10 Tom Tromey <tom@tromey.com>
3410
3411 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3412 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3413 gdbpy_enter.
3414
3415 2019-06-10 Tom Tromey <tromey@adacore.com>
3416
3417 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3418 data.
3419 (elf_new_init): Don't call stabsread_new_init.
3420 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3421 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3422 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3423
3424 2019-06-10 Tom de Vries <tdevries@suse.de>
3425
3426 PR symtab/16264
3427 PR symtab/24517
3428 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3429
3430 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3431
3432 * source.c (find_and_open_source): Also rewrite relative file
3433 names.
3434
3435 2019-04-26 Amos Bird <amosbird@gmail.com>
3436
3437 * annotate.c (annotate_thread_exited): Add "thread-exited"
3438 annotation.
3439
3440 2019-06-06 Tom Tromey <tromey@adacore.com>
3441
3442 * maint.h (class scoped_command_stats): Use
3443 DISABLE_COPY_AND_ASSIGN.
3444 <print_time>: New method.
3445 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
3446 print_time.
3447 (scoped_command_stats::print_time): New method.
3448
3449 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3450
3451 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
3452 instructions of lengths 6 or 8 bytes.
3453
3454 2019-06-04 Pedro Alves <palves@redhat.com>
3455
3456 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
3457
3458 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
3459 * breakpoint.c (condition_completer): Likewise.
3460 * cli/cli-dump.c (scan_expression): Likewise.
3461 * common/filestuff.c (mkdir_recursive): Likewise.
3462 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
3463 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
3464 (gdb_abspath): Likewise.
3465 * compile/compile-cplus-types.c
3466 (compile_cplus_instance::decl_name): Likewise.
3467 * completer.c (complete_explicit_location):
3468 (signal_completer, reg_or_group_completer_1): Likewise.
3469 * cp-support.c (cp_remove_params_if_any): Likewise.
3470 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
3471 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
3472 * infcmd.c (strip_bg_char): Likewise.
3473 * linespec.c (copy_token_string): Likewise.
3474 * mi/mi-main.c (output_cores): Likewise.
3475 * psymtab.c (psymtab_search_name):
3476 * symfile.c (test_set_ext_lang_command): Likewise.
3477 * target.c (target_fileio_read_stralloc): Likewise.
3478 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
3479 * value.c (complete_internalvar): Likewise.
3480
3481 2019-06-04 Christian Biesinger <cbiesinger@google.com>
3482
3483 Add objfile property to gdb.Type.
3484 * NEWS: Mention Python API addition.
3485 * python/py-type.c (typy_get_objfile): New method.
3486
3487 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3488
3489 * NEWS: Mention the new set|show style [title|highlight].
3490 Mention changes to "show style", "help" and "apropos".
3491
3492 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3493
3494 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
3495 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
3496 instead of print_help_for_command.
3497 (print_doc_of_command): New function.
3498 (help_list): Add 'apropos -v word' suggestion.
3499 (print_help_for_command): Style the command name using title style.
3500 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
3501 (_initialize_cli_cmds): Describe -v in apropos_command help.
3502
3503 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3504
3505 * cli/cli-style.h (cli_style_option): Add name in constructor,
3506 add m_name class member, add constructor with intensity,
3507 add name class function.
3508 (cli_style_option::add_setshow_commands): Remove name argument.
3509 (highlight_style, title_style): New styles.
3510 * cli/cli-style.c (do_show): New function that shows a style
3511 characteristic styling the style name with itself.
3512 (set_style_name): New function.
3513 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
3514 Update all callers according to the changes in cli/cli-style.h.
3515 * utils.h (fputs_highlighted): New function.
3516 * utils.c (fputs_highlighted): Likewise.
3517
3518 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3519
3520 * NEWS: Mention new pipe command and new convenience variables.
3521
3522 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3523
3524 * cli/cli-cmds.c (pipe_command): New function.
3525 (_initialize_cli_cmds): Call add_com for pipe_command.
3526 Define | as an alias for pipe.
3527 (exit_status_set_internal_vars): New function.
3528 (shell_escape): Call exit_status_set_internal_vars.
3529 cli/cli-decode.c (find_command_name_length): Recognize | as
3530 a single character command.
3531
3532 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3533
3534 * gdbcmd.h (execute_command_to_ui_file): New declaration.
3535 top.c (execute_command_to_ui_file): New function, mostly a copy
3536 of execute_command_to_string.
3537 (execute_command_to_string): Implement by calling
3538 execute_command_to_ui_file.
3539
3540 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3541
3542 * top.h (saved_command_line): Remove declaration.
3543 * top.c (previous_saved_command_line, previous_repeat_arguments):
3544 New variables.
3545 (saved_command_line): Make static, define together with other
3546 'repeat variables'.
3547 (dont_repeat): Clear repeat_arguments.
3548 (repeat_previous, get_saved_command_line, save_command_line):
3549 New functions.
3550 (gdb_init): Initialize saved_command_line
3551 and previous_saved_command_line.
3552 * main.c (captured_main_1): Remove saved_command_line initialization.
3553 * event-top.c (handle_line_of_input): Update to use
3554 the new 'repeat' related functions instead of direct access to
3555 saved_command_line.
3556 * command.h (repeat_previous, get_saved_command_line,
3557 save_command_line): New declarations.
3558 (dont_repeat): Add comment.
3559
3560 2019-05-30 Tom Tromey <tromey@adacore.com>
3561
3562 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
3563 Fix comment.
3564 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
3565
3566 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
3567
3568 PR cli/24587
3569 * completer.c (complete): Initialize variable word.
3570
3571 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
3572
3573 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
3574 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
3575 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
3576 'body' is NULL to the outter 'if', protecting the '!is_define'
3577 situation as well.
3578
3579 2019-05-29 Tom Tromey <tromey@adacore.com>
3580
3581 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
3582 (dwarf_unknown): New function.
3583 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
3584 (dwarf_type_encoding_name): Use dwarf_unknown.
3585
3586 2019-05-29 Tom Tromey <tromey@adacore.com>
3587
3588 PR c++/20020:
3589 * cp-valprint.c (cp_print_value_fields): Call
3590 cp_print_static_field inside "try".
3591
3592 2019-05-29 Tom Tromey <tromey@adacore.com>
3593
3594 * inflow.c (struct terminal_info): Add default operator=.
3595 * configure: Rebuild.
3596 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
3597 -Wdeprecated-copy-dtor, -Wredundant-move.
3598
3599 2019-05-29 Tom Tromey <tromey@adacore.com>
3600
3601 * NEWS: Add entry.
3602 * infcmd.c (print_return_value_1): Handle finish_print
3603 option.
3604 (show_print_finish): New function.
3605 (_initialize_infcmd): Add "set/show print finish" commands.
3606 * valprint.c (user_print_options): Initialize new member.
3607 * valprint.h (struct value_print_options) <finish_print>: New
3608 member.
3609
3610 2019-05-28 Tom Tromey <tromey@adacore.com>
3611
3612 * ada-lang.c (ada_remove_Xbn_suffix)
3613 (find_old_style_renaming_symbol)
3614 (parse_old_style_renaming): Remove.
3615 (ada_find_renaming_symbol): Don't call
3616 find_old_style_renaming_symbol.
3617 (ada_is_renaming_symbol): Rename from
3618 ada_find_renaming_symbol. Remove "block" parameter. Return
3619 bool. Now static.
3620 (ada_read_var_value): Update and simplify.
3621 * ada-exp.y (write_var_or_type): Remove old code.
3622
3623 2019-05-28 Alan Hayward <alan.hayward@arm.com>
3624
3625 * event-top.c: Remove include comment.
3626 * inflow.c (class scoped_ignore_sigttou): Move from here...
3627 * inflow.h (class scoped_ignore_sigttou): ...to here.
3628 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
3629 * top.c: Remove include comment.
3630
3631 2019-05-27 Tom Tromey <tom@tromey.com>
3632
3633 * NEWS: Fix typo.
3634
3635 2019-05-22 Tom Tromey <tromey@adacore.com>
3636
3637 * target.c (target_follow_exec): Constify parameter.
3638 * target-delegates.c: Rebuild.
3639 * remote.c (remote_target::follow_exec): Constify parameter.
3640 * infrun.c (follow_exec): Constify parameter.
3641 * target.h (struct target_ops) <follow_exec>: Constify parameter.
3642 (target_follow_exec): Likewise.
3643
3644 2019-05-22 Alan Hayward <alan.hayward@arm.com>
3645
3646 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
3647 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
3648
3649 2019-05-22 Alan Hayward <alan.hayward@arm.com>
3650
3651 * NEWS: Add debugredirect and testsuite sections.
3652
3653 2019-05-22 Simon Cook <simon.cook@embecosm.com>
3654
3655 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
3656 target descriptions using exclusively floating point register name
3657 aliases.
3658
3659 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
3660
3661 PR gdb/18644:
3662 * f-lang.c (build_fortran_types): Handle the case where
3663 gdbarch_floatformat_for_type returns a nullptr.
3664
3665 2019-05-21 Tom de Vries <tdevries@suse.de>
3666
3667 PR cli/24587
3668 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
3669
3670 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
3671
3672 PR gdb/18644:
3673 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
3674 16-byte floats.
3675 * i386-tdep.c (i386_floatformat_for_type): Use
3676 floatformats_ia64_quad for the 16-byte floating point component
3677 within a fortran 32-byte complex number.
3678
3679 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
3680
3681 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
3682 delete default constructor.
3683 (find_partial_die): Update to return const struct.
3684 (partial_die_parent_scope): Move variable declaration into scope
3685 of its use and change its type to auto.
3686 (guess_partial_die_structure_name): Likewise.
3687 (partial_die_info::fixup): Likewise.
3688
3689 2019-05-17 Tom Tromey <tromey@adacore.com>
3690
3691 * source.c (find_and_open_source): Remove cast.
3692
3693 2019-05-17 Tom Tromey <tromey@adacore.com>
3694
3695 * annotate.c (annotate_source): Make "filename" const.
3696 * annotate.h (annotate_source): Use const.
3697
3698 2019-05-17 Alan Hayward <alan.hayward@arm.com>
3699
3700 * disasm.c (set_disassembler_options): Send errors to stderr.
3701
3702 2019-05-17 Alan Hayward <alan.hayward@arm.com>
3703
3704 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
3705 (cli_interp_base::set_logging): Check debug_redirect.
3706 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
3707 * cli/cli-logging.c (debug_redirect): Add static variable.
3708 (pop_output_files): Add default param.
3709 (handle_redirections): Print debug setting.
3710 (show_logging_command): Likewise.
3711 (_initialize_cli_logging): Add debugredirect command.
3712 * interps.c (current_interp_set_logging): Add debug_redirect
3713 parameter.
3714 * interps.h (set_logging): Add debug_redirect parameter.
3715 (current_interp_set_logging): Likewise.
3716 * mi/mi-common.h: Likewise.
3717 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
3718
3719 2019-05-17 Alan Hayward <alan.hayward@arm.com>
3720 Tom Tromey <tromey@adacore.com>
3721
3722 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
3723 directly.
3724 * cli/cli-interp.h (make_logging_output): Remove declaration.
3725 * cli/cli-logging.c (make_logging_output): Remove function.
3726 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
3727 directly.
3728 * ui-file.c (tee_file::tee_file): Remove bools.
3729 (tee_file::~tee_file): Remove deletes.
3730 * ui-file.h (tee_file): Remove bools.
3731
3732 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
3733
3734 * mi/mi-cmds.h (mi_cmd_complete): New function.
3735 * mi/mi-main.c (mi_cmd_complete): Likewise.
3736 * mi/mi-cmds.c: Define new MI command -complete.
3737 * NEWS: Mention new -complete command.
3738
3739 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
3740
3741 * completer.h (complete): New function.
3742 * completer.c (complete): Likewise.
3743 * cli/cli-cmds.c: (complete_command): Update to use new complete()
3744 function defined in completer.h.
3745
3746 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
3747
3748 * MAINTAINERS (Write After Approval): Add myself.
3749
3750 2019-05-17 Tom de Vries <tdevries@suse.de>
3751
3752 PR gdb/24094
3753 * dwarf2read.c (struct cu_partial_die_info): New struct.
3754 (find_partial_die): Return cu_partial_die_info.
3755 (partial_die_parent_scope, guess_partial_die_structure_name)
3756 (partial_die_info::fixup): Handle new return type of find_partial_die.
3757
3758 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3759
3760 * stap-probe.c (stap_parse_register_operand): Make "regname" an
3761 "std::string", simplifying the algorithm.
3762
3763 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3764
3765 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
3766 (stap_static_probe_ops::get_probes): Likewise.
3767
3768 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3769
3770 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
3771 '-')" and "else if".
3772 (stap_parse_single_operand): Join checks for
3773 "gdbarch_stap_parse_special_token_p" and
3774 "gdbarch_stap_parse_special_token" in the same "if" statement.
3775 Invert check when verifying for operation on register
3776 displacement.
3777
3778 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3779
3780 * stap-probe.c (stap_get_opcode): Update comment.
3781 (stap_get_expected_argument_type): Likewise.
3782 (handle_stap_probe): Likewise.
3783
3784 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3785
3786 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
3787 return type to 'bool'. Adjust comment. Use 'bool' when
3788 appropriate.
3789 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3790 * stap-probe.c (stap_parse_argument_1): Likewise.
3791 (stap_is_operator): Likewise.
3792 (stap_is_generic_prefix): Likewise.
3793 (stap_is_register_prefix): Likewise.
3794 (stap_is_register_indirection_prefix): Likewise.
3795 (stap_is_integer_prefix): Likewise.
3796 (stap_generic_check_suffix): Likewise.
3797 (stap_check_integer_suffix): Likewise.
3798 (stap_check_register_suffix): Likewise.
3799 (stap_check_register_indirection_suffix): Likewise.
3800 (stap_parse_register_operand): Likewise.
3801 (stap_parse_single_operand): Likewise.
3802 (stap_parse_argument_1): Likewise.
3803 (stap_probe::get_argument_count): Likewise.
3804 (stap_is_operator): Likewise.
3805
3806 2019-05-16 Tom Tromey <tromey@adacore.com>
3807
3808 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
3809 keyword to foreach.
3810
3811 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
3812
3813 * linux-thread-db.c (try_thread_db_load_1): Change return type
3814 to bool.
3815 (try_thread_db_load): Likewise.
3816 (try_thread_db_load_from_pdir_1): Likewise.
3817 (try_thread_db_load_from_pdir): Likewise.
3818 (try_thread_db_load_from_sdir): Likewise.
3819 (try_thread_db_load_from_dir): Likewise.
3820 (thread_db_load_search): Likewise.
3821 (has_libpthread): Likewise.
3822 (thread_db_load): Likewise.
3823
3824 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
3825
3826 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
3827 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
3828 NULL, and complain/return if that's the case.
3829
3830 2019-05-15 John Darrington <john@darrington.wattle.id.au>
3831
3832 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
3833 (advance, posn, abstract_read_memory): New functions.
3834 [struct mem_read_abstraction]: New struct.
3835 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
3836
3837 2019-05-14 Tom Tromey <tromey@adacore.com>
3838
3839 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
3840 value is not lval_memory.
3841
3842 2019-05-14 Tom Tromey <tromey@adacore.com>
3843
3844 * solib.c (info_sharedlibrary_command): Style the file name.
3845
3846 2019-05-14 Alan Hayward <alan.hayward@arm.com>
3847
3848 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
3849 (aarch64_vnv_type): Likewise.
3850 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
3851 * common/tdesc.c: Likewise.
3852 * common/tdesc.h (enum tdesc_type_kind): Likewise.
3853 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
3854 * features/aarch64-fpu.xml: Add ieee half view.
3855 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
3856 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
3857 * gdbtypes.h (struct builtin_type): Likewise.
3858 (struct objfile_type): Likewise.
3859
3860 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
3861
3862 * language.c (language_sniff_from_mangled_name): Fix "langauge"
3863 typo.
3864 * location.h (string_to_event_location): Likewise.
3865
3866 2019-05-11 Joel Brobecker <brobecker@adacore.com>
3867
3868 GDB 8.3 released.
3869
3870 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
3873 New variable declaration.
3874 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
3875 New variable.
3876 (print_one_breakpoint): Use ui_out::test_flags and new global
3877 variable to compute use_fixed_output.
3878 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
3879 Remove.
3880 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
3881 (mi_multi_location_breakpoint_output_fixed): Remove.
3882 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
3883 new variable.
3884 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
3885 fix_multi_location_breakpoint_output flag if version >= 3.
3886 * ui-out.h (enum ui_out_flag)
3887 <fix_multi_location_breakpoint_output>: New enumerator.
3888
3889 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
3890
3891 * contrib/cc-with-tweaks.sh: Validate dwz's work.
3892
3893 2019-05-10 Tom Tromey <tromey@adacore.com>
3894
3895 * ada-lang.c (catch_ada_completer): New function.
3896 (_initialize_ada_language): Use it.
3897
3898 2019-05-10 Tom Tromey <tromey@adacore.com>
3899
3900 * thread.c (print_thread_info): Make "requested_threads" const.
3901 * gdbthread.h (print_thread_info): Make "requested_threads"
3902 const.
3903 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
3904 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
3905
3906 2019-05-08 Tom Tromey <tom@tromey.com>
3907
3908 * gdbtypes.c (objfile_type_data): Change type.
3909 (objfile_type, _initialize_gdbtypes): Update.
3910
3911 2019-05-08 Tom Tromey <tom@tromey.com>
3912
3913 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
3914 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
3915 (_initialize_dwarf2_frame): Update.
3916
3917 2019-05-08 Tom Tromey <tom@tromey.com>
3918
3919 * objc-lang.c (objc_objfile_data): Change type.
3920 (find_methods): Update.
3921 (_initialize_objc_lang): Remove.
3922
3923 2019-05-08 Tom Tromey <tom@tromey.com>
3924
3925 * stabsread.c (rs6000_builtin_type_data): Change type.
3926 (rs6000_builtin_type, _initialize_stabsread): Update.
3927
3928 2019-05-08 Tom Tromey <tom@tromey.com>
3929
3930 * mips-tdep.c (mips_pdr_data): Remove.
3931 (_initialize_mips_tdep): Update.
3932
3933 2019-05-08 Tom Tromey <tom@tromey.com>
3934
3935 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
3936 (hppa_init_objfile_priv_data, read_unwind_info)
3937 (find_unwind_entry, _initialize_hppa_tdep): Update.
3938
3939 2019-05-08 Tom Tromey <tom@tromey.com>
3940
3941 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
3942 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
3943 on obstack.
3944 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
3945
3946 2019-05-08 Tom Tromey <tom@tromey.com>
3947
3948 * mdebugread.c (basic_type_data): Change type.
3949 (basic_type, _initialize_mdebugread): Update.
3950
3951 2019-05-08 Tom Tromey <tom@tromey.com>
3952
3953 * common/gdb_unique_ptr.h (struct noop_deleter): New.
3954
3955 2019-05-08 Tom Tromey <tom@tromey.com>
3956
3957 * nto-tdep.c (nto_inferior_data_reg): Change type.
3958 (nto_inferior_data): Update.
3959 (nto_inferior_data_cleanup, nto_new_inferior_data)
3960 (_initialize_nto_tdep): Remove.
3961 * nto-tdep.h (struct nto_inferior_data): Add initializers.
3962
3963 2019-05-08 Tom Tromey <tom@tromey.com>
3964
3965 * ada-lang.c (struct ada_inferior_data): Add initializers.
3966 (ada_inferior_data): Change type.
3967 (ada_inferior_data_cleanup): Remove.
3968 (get_ada_inferior_data, ada_inferior_exit)
3969 (struct ada_pspace_data): Add initializers, destructor.
3970 (ada_pspace_data_handle): Change type.
3971 (get_ada_pspace_data): Update.
3972 (ada_pspace_data_cleanup): Remove.
3973
3974 2019-05-08 Tom Tromey <tom@tromey.com>
3975
3976 * coffread.c (struct coff_symfile_info): Add initializers.
3977 (coff_objfile_data_key): Move lower. Change type.
3978 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
3979 Update.
3980 (coff_free_info): Remove.
3981
3982 2019-05-08 Tom Tromey <tom@tromey.com>
3983
3984 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
3985 (fbsd_pspace_data_handle): Move lower. Change type.
3986 (get_fbsd_pspace_data): Update.
3987 (fbsd_pspace_data_cleanup): Remove.
3988 (_initialize_fbsd_tdep): Update.
3989
3990 2019-05-08 Tom Tromey <tom@tromey.com>
3991
3992 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
3993 (get_ada_tasks_pspace_data): Update.
3994 (ada_tasks_pspace_data_cleanup): Remove.
3995 (_initialize_tasks): Update.
3996 (ada_tasks_inferior_data_handle): Change type.
3997 (get_ada_tasks_inferior_data): Update.
3998 (ada_tasks_inferior_data_cleanup): Remove.
3999 (struct ada_tasks_pspace_data): Add initializers.
4000
4001 2019-05-08 Tom Tromey <tom@tromey.com>
4002
4003 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4004 * symfile-debug.c (debug_sym_get_probes): Change type.
4005 * stap-probe.c (handle_stap_probe):
4006 (stap_static_probe_ops::get_probes): Change type.
4007 * probe.h (class static_probe_ops) <get_probes>: Change type.
4008 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4009 (parse_probes_in_pspace): Update.
4010 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4011 Update.
4012 (any_static_probe_ops::get_probes): Change type.
4013 * elfread.c (elfread_data): New typedef.
4014 (probe_key): Change type.
4015 (elf_get_probes): Likewise. Update.
4016 (probe_key_free): Remove.
4017 (_initialize_elfread): Update.
4018 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4019 Change type.
4020 (dtrace_process_dof_probe, dtrace_process_dof)
4021 (dtrace_static_probe_ops::get_probe): Change type.
4022
4023 2019-05-08 Tom Tromey <tom@tromey.com>
4024
4025 * xcoffread.c (struct xcoff_symfile_info): Rename from
4026 coff_symfile_info. Add initializers.
4027 (xcoff_objfile_data_key): Move lower. Change type.
4028 (XCOFF_DATA): Rewrite.
4029 (xcoff_free_info): Remove.
4030 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4031 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4032 (xcoff_initial_scan): Update.
4033
4034 2019-05-08 Tom Tromey <tom@tromey.com>
4035
4036 * solib-svr4.c (struct svr4_info): Add initializers and
4037 destructor.
4038 <probes_table>: Now an htab_up.
4039 (solib_svr4_pspace_data): Change type.
4040 (free_probes_table): Simplify.
4041 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4042 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4043 (probes_table_remove_objfile_probes, register_solib_event_probe)
4044 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4045 (_initialize_svr4_solib): Update.
4046
4047 2019-05-08 Tom Tromey <tom@tromey.com>
4048
4049 * remote.c (remote_pspace_data): Change type.
4050 (remote_pspace_data_cleanup): Remove.
4051 (get_remote_exec_file, set_pspace_remote_exec_file)
4052 (_initialize_remote): Update.
4053
4054 2019-05-08 Tom Tromey <tom@tromey.com>
4055
4056 * breakpoint.c (breakpoint_objfile_key): Change type.
4057 (get_breakpoint_objfile_data): Update.
4058 (free_breakpoint_objfile_data): Remove.
4059 (_initialize_breakpoint): Update.
4060
4061 2019-05-08 Tom Tromey <tom@tromey.com>
4062
4063 * linux-tdep.c (struct linux_info): Add initializers.
4064 (linux_inferior_data): Move. Change type.
4065 (invalidate_linux_cache_inf): Update.
4066 (linux_inferior_data_cleanup): Remove.
4067 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4068
4069 2019-05-08 Tom Tromey <tom@tromey.com>
4070
4071 * auxv.c (auxv_inferior_data): Move. Change type.
4072 (auxv_inferior_data_cleanup): Remove.
4073 (invalidate_auxv_cache_inf): Rewrite.
4074 (get_auxv_inferior_data, _initialize_auxv): Update.
4075
4076 2019-05-08 Tom Tromey <tom@tromey.com>
4077
4078 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4079 (symfile_debug_objfile_data_key): Change type.
4080 (symfile_debug_installed, debug_qf_has_symbols)
4081 (debug_qf_find_last_source_symtab)
4082 (debug_qf_forget_cached_source_info)
4083 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4084 (debug_qf_print_stats, debug_qf_dump)
4085 (debug_qf_expand_symtabs_for_function)
4086 (debug_qf_expand_all_symtabs)
4087 (debug_qf_expand_symtabs_with_fullname)
4088 (debug_qf_map_matching_symbols)
4089 (debug_qf_expand_symtabs_matching)
4090 (debug_qf_find_pc_sect_compunit_symtab)
4091 (debug_qf_map_symbol_filenames)
4092 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4093 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4094 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4095 (debug_sym_read_linetable, debug_sym_relocate): Update.
4096 (symfile_debug_free_objfile): Remove.
4097 (install_symfile_debug_logging, _initialize_symfile_debug):
4098 Update.
4099
4100 2019-05-08 Tom Tromey <tom@tromey.com>
4101
4102 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4103 allocate_on_obstack.
4104 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4105 (get_dwarf2_per_objfile): Update.
4106 (set_dwarf2_per_objfile): Remove.
4107 (dwarf2_has_info, dwarf2_get_section_info): Update.
4108 (dwarf2_free_objfile): Remove.
4109 (_initialize_dwarf2_read): Update.
4110
4111 2019-05-08 Tom Tromey <tom@tromey.com>
4112
4113 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4114 initializers.
4115 <unsupported_script_warning_printed,
4116 script_not_found_warning_printed>: Now bool.
4117 (auto_load_pspace_data): Change type.
4118 (~auto_load_pspace_info): Rename from
4119 auto_load_pspace_data_cleanup.
4120 (get_auto_load_pspace_data, init_loaded_scripts_info)
4121 (clear_section_scripts, maybe_print_unsupported_script_warning)
4122 (maybe_print_script_not_found_warning, _initialize_auto_load):
4123 Update.
4124
4125 2019-05-08 Tom Tromey <tom@tromey.com>
4126
4127 * objfiles.c (objfile_pspace_info): Add destructor and
4128 initializers.
4129 (objfiles_pspace_data): Change type.
4130 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4131 (get_objfile_pspace_data): Update.
4132 (objfiles_bfd_data): Change type.
4133 (get_objfile_bfd_data): Update.
4134 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4135
4136 2019-05-08 Tom Tromey <tom@tromey.com>
4137
4138 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4139 Change type.
4140 (get_catch_syscall_inferior_data): Update.
4141 (catch_syscall_inferior_data_cleanup): Remove.
4142 (_initialize_break_catch_syscall): Update.
4143
4144 2019-05-08 Tom Tromey <tom@tromey.com>
4145
4146 * inflow.c (struct terminal_info): Add destructor and
4147 initializers.
4148 (inflow_inferior_data): Change type.
4149 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4150 (get_inflow_inferior_data, inflow_inferior_exit)
4151 (swap_terminal_info, _initialize_inflow): Update.
4152
4153 2019-05-08 Tom Tromey <tom@tromey.com>
4154
4155 * target-dcache.c (target_dcache_cleanup): Remove.
4156 (target_dcache_aspace_key): Change type.
4157 (target_dcache_init_p, target_dcache_invalidate)
4158 (target_dcache_get, target_dcache_get_or_init)
4159 (_initialize_target_dcache): Update.
4160 * dcache.h (struct dcache_deleter): New.
4161
4162 2019-05-08 Tom Tromey <tom@tromey.com>
4163
4164 * symtab.c (struct symbol_cache): Add destructor and
4165 initializers.
4166 (symbol_cache_key): Move. Change type.
4167 (make_symbol_cache, free_symbol_cache): Remove.
4168 (get_symbol_cache): Update.
4169 (symbol_cache_cleanup): Remove.
4170 (ALL_PSPACES, symbol_cache_flush)
4171 (maintenance_print_symbol_cache)
4172 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4173 Update.
4174
4175 2019-05-08 Tom Tromey <tom@tromey.com>
4176
4177 * symtab.c (struct main_info): Add destructor and initializers.
4178 (main_progspace_key): Move. Change type.
4179 (get_main_info): Update.
4180 (main_info_cleanup): Remove.
4181 (_initialize_symtab): Update.
4182
4183 2019-05-08 Tom Tromey <tom@tromey.com>
4184
4185 * registry.h (DECLARE_REGISTRY): Define the _key class.
4186
4187 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4188
4189 * NEWS: Merge two 'New commands' sections.
4190
4191 2019-05-08 Joel Brobecker <brobecker@adacore.com>
4192
4193 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4194 parameter and use Ada language definition instead.
4195 (ada_val_print_ptr): Remove unused language parameter.
4196 (ada_val_print_num): Remove language parameter and use Ada language
4197 definition instead.
4198 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4199 parameter.
4200 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4201 parameter and use Ada language definition instead.
4202 (ada_val_print_1): Update all ada_val_print_xxx calls.
4203 Remove language parameter.
4204 (ada_val_print): Update ada_val_print_1 call.
4205
4206 2019-05-08 Tom Tromey <tromey@adacore.com>
4207
4208 * remote.c (remote_hw_watchpoint_limit)
4209 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4210 Now static.
4211
4212 2019-05-08 Tom Tromey <tromey@adacore.com>
4213
4214 * maint.c (_initialize_maint_cmds): Move initialization code to
4215 remote.c.
4216 (watchdog, show_watchdog): Move to remote.c.
4217 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4218 "watchdog" static.
4219 (_initialize_remote): Move initialization code from maint.c.
4220 * defs.h (watchdog): Don't declare.
4221
4222 2019-05-08 Tom Tromey <tromey@adacore.com>
4223
4224 * tui/tui-interp.c: Include main.h.
4225 * interps.c: Include main.h.
4226 * main.h (interpreter_p): Declare.
4227 * defs.h (interpreter_p): Don't declare.
4228
4229 2019-05-08 Tom Tromey <tromey@adacore.com>
4230
4231 * dwarf2loc.c: Include dwarf2read.h.
4232 * defs.h (read_unsigned_leb128): Don't declare.
4233 * dwarf2read.h (read_unsigned_leb128): Declare.
4234
4235 2019-05-08 Tom Tromey <tromey@adacore.com>
4236
4237 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4238 method.
4239
4240 2019-05-08 Tom Tromey <tromey@adacore.com>
4241
4242 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4243 when no wrap column is set.
4244
4245 2019-05-08 Tom Tromey <tromey@adacore.com>
4246
4247 * c-lang.c (c_get_string): Handle non-C-style arrays.
4248
4249 2019-05-08 Tom Tromey <tromey@adacore.com>
4250
4251 * typeprint.c (print_offset_data::update): Print the bit offset,
4252 not the number of bits remaining.
4253
4254 2019-05-08 Tom Tromey <tromey@adacore.com>
4255
4256 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4257 padding at end of comment.
4258
4259 2019-05-08 Tom Tromey <tromey@adacore.com>
4260
4261 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4262 Compare main types.
4263
4264 2019-05-06 Tom Tromey <tom@tromey.com>
4265
4266 * common/scoped_mmap.c: Include common-defs.h.
4267 * common/scoped_mmap.h: Don't include config.h.
4268
4269 2019-05-04 Tom Tromey <tom@tromey.com>
4270
4271 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4272 (struct aarch64_call_info): Add initializers.
4273 <si>: Now a std::vector.
4274 (pass_on_stack, aarch64_push_dummy_call): Update.
4275
4276 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
4277 Tom Tromey <tom@tromey.com>
4278
4279 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4280 (ppc_threads): Now a std::vector. Now static.
4281 (hwdebug_find_thread_points_by_tid)
4282 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4283 Update.
4284
4285 2019-05-04 Tom Tromey <tom@tromey.com>
4286
4287 * arc-tdep.c (arc_tdesc_init): Return bool.
4288
4289 2019-05-04 Tom Tromey <tom@tromey.com>
4290
4291 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4292 Use gdb_assert_not_reached.
4293
4294 2019-05-04 Tom Tromey <tom@tromey.com>
4295
4296 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4297 "false".
4298
4299 2019-05-04 Tom Tromey <tom@tromey.com>
4300
4301 * arc-tdep.c (arc_tdesc_init): Use bool.
4302
4303 2019-05-04 Tom Tromey <tom@tromey.com>
4304
4305 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4306
4307 2019-05-04 Tom Tromey <tom@tromey.com>
4308
4309 * cli/cli-cmds.c (valid_command_p): Return bool.
4310
4311 2019-05-04 Tom Tromey <tom@tromey.com>
4312
4313 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4314 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4315
4316 2019-05-04 Raul Tambre <raul@tambre.ee>
4317
4318 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4319 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4320 operator for comparison.
4321
4322 2019-05-04 Tom Tromey <tom@tromey.com>
4323
4324 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4325 (lookup_partial_symbol, print_partial_symbols)
4326 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4327 (psymbol_compare): Update.
4328 (add_psymbol_to_bcache): Clear the entire psymbol.
4329 (maintenance_check_psymtabs): Update.
4330 * psympriv.h (struct partial_symbol): Don't derive from
4331 general_symbol_info.
4332 <obj_section, unrelocated_address, address,
4333 set_unrelocated_address>: Update.
4334 <ginfo>: New member.
4335 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4336 (debug_names::write_psymbols): Update.
4337
4338 2019-05-04 Tom de Vries <tdevries@suse.de>
4339
4340 * contrib/cc-with-tweaks.sh: Support -n arg.
4341
4342 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4343
4344 * corelow.c (core_target::detach): Ensure frame cache and
4345 register caches are cleared.
4346 inferior.c (exit_inferior_1): Likewise.
4347
4348 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4349 Tom Tromey <tom@tromey.com>
4350
4351 * dictionary.c (collate_pending_symbols_by_language): Remove
4352 "struct" from foreach.
4353 * symtab.c (lookup_global_symbol_from_objfile)
4354 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4355 foreach.
4356 * ser-tcp.c (net_open): Remove "struct" from foreach.
4357 * objfiles.c (objfile_relocate, objfile_rebase)
4358 (objfile_has_symbols): Remove "struct" from foreach.
4359 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4360 from foreach.
4361 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4362 foreach.
4363 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4364 "struct" from foreach.
4365 * ada-lang.c (create_excep_cond_exprs)
4366 (ada_exception_catchpoint_cond_string): Remove "struct" from
4367 foreach.
4368
4369 2019-05-03 Tom Tromey <tromey@adacore.com>
4370
4371 * ada-exp.y (convert_char_literal): Check suffix of each
4372 enumerator.
4373
4374 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4375
4376 PR ada/21406:
4377 * ada-exp.y (yywrap): Don't define.
4378 * ada-lex.l (%option): Add noyywrap
4379 (yywrap): Remove.
4380
4381 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4382
4383 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4384 _WIN32_WINNT to the XP level, unless already defined to a higher
4385 level.
4386
4387 * unittests/parse-connection-spec-selftests.c:
4388 * ser-tcp.c:
4389 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4390 override.
4391
4392 * symfile.c (find_separate_debug_file): Remove colon from the
4393 drive spec of DOS/Windows file names of the target, so that the
4394 file name produced from DEBUGDIR and the target's directory will
4395 be valid on DOS/Windows systems.
4396
4397 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4398
4399 * rust-lang.c (val_print_struct): Handle printing structures
4400 containing strings.
4401
4402 2019-05-02 Tom Tromey <tromey@adacore.com>
4403
4404 * valarith.c (_initialize_valarith): Remove.
4405
4406 2019-05-01 Tom Tromey <tromey@adacore.com>
4407
4408 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4409 bitfields.
4410
4411 2019-05-01 Tom Tromey <tromey@adacore.com>
4412
4413 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4414 for big-endian copies.
4415
4416 2019-04-30 Ali Tamur <tamur@google.com>
4417 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4418 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4419 (read_3_bytes): New function.
4420
4421 2019-04-30 Joel Brobecker <brobecker@adacore.com>
4422
4423 * windows-nat.c (main_thread_id): Delete.
4424 (handle_output_debug_string): Replace main_thread_id by
4425 current_event.dwThreadId.
4426 (fake_create_process): Likewise.
4427 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4428 Do not set main_thread_id.
4429 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4430 current_event.dwThreadId.
4431 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
4432
4433 2019-04-30 Joel Brobecker <brobecker@adacore.com>
4434
4435 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
4436 Use current_event.dwThreadId instead of main_thread_id.
4437
4438 2019-04-30 Tom Tromey <tromey@adacore.com>
4439
4440 * ada-lang.c (ada_lookup_simple_minsyms): New function.
4441 (create_excep_cond_exprs): Iterate over program spaces.
4442 (ada_exception_catchpoint_cond_string): Examine all minimal
4443 symbols for exception types.
4444
4445 2019-04-30 Tom Tromey <tromey@adacore.com>
4446
4447 PR c++/24470:
4448 * dwarf2read.c (process_structure_scope): Handle case where type
4449 has template parameters but no symbol was created.
4450
4451 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4452 Chris January <chris.january@arm.com>
4453
4454 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
4455 qualifier.
4456 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
4457
4458 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4459
4460 * f-typeprint.c (f_print_type): Update rules for printing
4461 whitespace.
4462 (f_type_print_varspec_suffix): Likewise.
4463
4464 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4465 Chris January <chris.january@arm.com>
4466
4467 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
4468 function arguments.
4469
4470 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4471
4472 * f-lang.c (build_fortran_types): Change name of void type to
4473 lower case.
4474 * f-typeprint.c (f_type_print_base): Print the name of the void
4475 type, rather than a fixed string.
4476 * f-valprint.c (f_decorations): Use lower case void string.
4477
4478 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4479 Chris January <chris.january@arm.com>
4480
4481 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
4482 types for Fortran.
4483
4484 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4485 Chris January <chris.january@arm.com>
4486 David Lecomber <david.lecomber@arm.com>
4487
4488 * f-exp.y (BINOP_INTRINSIC): New token.
4489 (exp): New parser rule handling BINOP_INTRINSIC.
4490 (f77_keywords): Add new builtin procedures.
4491 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
4492 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4493 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
4494 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4495 (print_unop_subexp_f): New function.
4496 (print_binop_subexp_f): New function.
4497 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4498 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4499 (dump_subexp_body_f): Likewise.
4500 (operator_check_f): Likewise.
4501 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4502 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
4503
4504 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4505
4506 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
4507 UNOP_KIND.
4508 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
4509 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
4510 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
4511 (operator_length_f): New fuction.
4512 (print_subexp_f): New function.
4513 (op_name_f): New function.
4514 (dump_subexp_body_f): New function.
4515 (operator_check_f): New function.
4516 (exp_descriptor_f): Replace standard expression handling functions
4517 with new functions.
4518 * gdb/fortran-operator.def: New file.
4519 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
4520 * gdb/std-operator.def: Remove UNOP_KIND.
4521
4522 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4523
4524 * std-operator.def: Remove unbalanced, stray double quote
4525 character.
4526
4527 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4528 Chris January <chris.january@arm.com>
4529 Daniel Everett <daniel.everett@arm.com>
4530 Nick Forrington <nick.forrington@arm.com>
4531 Richard Bunt <richard.bunt@arm.com>
4532
4533 * cp-valprint.c (cp_print_value_fields): Allow an additional level
4534 of depth when printing anonymous structs or unions.
4535 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4536 Don't print either the top-level value, or the children if the
4537 max-depth is exceeded.
4538 (ppscm_print_children): When printing the key of a map, allow one
4539 extra level of depth.
4540 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
4541 print either the top-level value, or the children if the max-depth
4542 is exceeded.
4543 (print_children): When printing the key of a map, allow one extra
4544 level of depth.
4545 * python/py-value.c (valpy_format_string): Add max_depth keyword.
4546 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
4547 (user_print_options): Initialise max_depth field.
4548 (val_print_scalar_or_string_type_p): New function.
4549 (val_print): Check to see if the max depth has been reached.
4550 (val_print_check_max_depth): Define new function.
4551 (show_print_max_depth): New function.
4552 (_initialize_valprint): Add 'print max-depth' option.
4553 * valprint.h (struct value_print_options) <max_depth>: New field.
4554 (val_print_check_max_depth): Declare new function.
4555 * NEWS: Document new feature.
4556
4557 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4558
4559 * ada-lang.c (ada_language_defn): Initialise new field.
4560 * c-lang.c (c_is_string_type_p): New function.
4561 (c_language_defn): Initialise new field.
4562 (cplus_language_defn): Initialise new field.
4563 (asm_language_defn): Initialise new field.
4564 (minimal_language_defn): Initialise new field.
4565 * c-lang.h (c_is_string_type_p): Declare new function.
4566 * d-lang.c (d_language_defn): Initialise new field.
4567 * f-lang.c (f_is_string_type_p): New function.
4568 (f_language_defn): Initialise new field.
4569 * go-lang.c (go_is_string_type_p): New function.
4570 (go_language_defn): Initialise new field.
4571 * language.c (default_is_string_type_p): New function.
4572 (unknown_language_defn): Initialise new field.
4573 (auto_language_defn): Initialise new field.
4574 * language.h (struct language_defn) <la_is_string_type_p>: New
4575 member variable.
4576 (default_is_string_type_p): Declare new function.
4577 * m2-lang.c (m2_language_defn): Initialise new field.
4578 * objc-lang.c (objc_language_defn): Initialise new field.
4579 * opencl-lang.c (opencl_language_defn): Initialise new field.
4580 * p-lang.c (pascal_is_string_type_p): New function.
4581 (pascal_language_defn): Initialise new field.
4582 * rust-lang.c (rust_is_string_type_p): New function.
4583 (rust_language_defn): Initialise new field.
4584
4585 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4586
4587 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
4588 New field.
4589 * ada-lang.c (ada_language_defn): Initialise new field.
4590 * c-lang.c (c_language_defn): Likewise.
4591 (cplus_language_defn): Likewise.
4592 (asm_language_defn): Likewise.
4593 (minimal_language_defn): Likewise.
4594 * d-lang.c (d_language_defn): Likewise.
4595 * f-lang.c (f_language_defn): Likewise.
4596 * go-lang.c (go_language_defn): Likewise.
4597 * language.c (unknown_language_defn): Likewise.
4598 (auto_language_defn): Likewise.
4599 * m2-lang.c (m2_language_defn): Likewise.
4600 * objc-lang.c (objc_language_defn): Likewise.
4601 * opencl-lang.c (opencl_language_defn): Likewise.
4602 * p-lang.c (pascal_language_defn): Likewise.
4603 * rust-lang.c (rust_language_defn): Likewise.
4604
4605 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4606
4607 * ada-lang.c (ada_is_character_type): Change return type to bool.
4608 (ada_is_string_type): Likewise.
4609 * ada-lang.h (ada_is_character_type): Update declaration
4610 (ada_is_string_type): Likewise.
4611
4612 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4613
4614 Support style in 'frame|thread apply'
4615
4616 * gdbcmd.h (execute_command_to_string): New term_out parameter.
4617 * record.c (record_start, record_stop): Update callers of
4618 execute_command_to_string with false.
4619 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
4620 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
4621 methods.
4622 (class string_file): New constructor with term_out parameter.
4623 Override methods term_out and can_emit_style_escape. New member
4624 term_out.
4625 (class stdio_file): Override can_emit_style_escape.
4626 (class tee_file): Override term_out and can_emit_style_escape.
4627 * utils.h (can_emit_style_escape): Remove.
4628 * utils.c (can_emit_style_escape): Likewise.
4629 Update all callers of can_emit_style_escape (SOMESTREAM) to
4630 SOMESTREAM->can_emit_style_escape.
4631 * source-cache.c (source_cache::get_source_lines): Likewise.
4632 * stack.c (frame_apply_command_count): Call execute_command_to_string
4633 passing the term_out characteristic of the current gdb_stdout.
4634 * thread.c (thr_try_catch_cmd): Likewise.
4635 * top.c (execute_command_to_string): pass term_out parameter
4636 to construct the string_file for the command output.
4637 * ui-file.c (term_cli_styling): New function (most code moved
4638 from utils.c can_emit_style_escape).
4639 (string_file::string_file, string_file::can_emit_style_escape,
4640 stdio_file::can_emit_style_escape, tee_file::term_out,
4641 tee_file::can_emit_style_escape): New functions.
4642
4643 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4644
4645 * NEWS: Mention the new set|show may-call-functions.
4646 * infcall.c (may_call_functions_p): New variable.
4647 (show_may_call_functions_p): New function.
4648 (call_function_by_hand_dummy): Throws an error if not
4649 may-call-functions.
4650 (_initialize_infcall): Call add_setshow_boolean_cmd for
4651 may-call-functions.
4652
4653 2019-04-25 Keith Seitz <keiths@redhat.com>
4654
4655 PR c++/24367
4656 * cp-support.c (inspect_type): Don't attempt substitutions
4657 of symbol with the same name.
4658
4659 2019-04-25 Tom Tromey <tromey@adacore.com>
4660
4661 PR gdb/24475:
4662 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
4663 static.
4664
4665 2019-04-25 Tom Tromey <tromey@adacore.com>
4666
4667 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
4668 rvalue reference.
4669 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
4670 (gdb_xml_parser::parse): Use std::move.
4671 * python/python-internal.h (gdbpy_convert_exception): Take a const
4672 reference.
4673 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
4674 std::move.
4675 * python/py-utils.c (gdbpy_convert_exception): Take a const
4676 reference.
4677 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
4678 Use std::move.
4679 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
4680 Use std::move.
4681 * mi/mi-main.c (mi_print_exception): Take a const reference.
4682 * main.c (handle_command_errors): Take a const reference.
4683 * linespec.c (parse_linespec): Use std::move.
4684 * infcall.c (run_inferior_call): Use std::move.
4685 (call_function_by_hand_dummy): Use std::move.
4686 * exec.c (try_open_exec_file): Use std::move.
4687 * exceptions.h (exception_print, exception_fprintf)
4688 (exception_print_same): Update.
4689 * exceptions.c (print_exception, exception_print)
4690 (exception_fprintf, exception_print_same): Change parameters to
4691 const reference.
4692 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
4693 * common/new-op.c: Use std::move.
4694 * common/common-exceptions.h (struct gdb_exception): Add move
4695 constructor.
4696 (struct gdb_exception_error, struct gdb_exception_quit, struct
4697 gdb_quit_bad_alloc): Change constructor to move constructor.
4698 (throw_exception): Change parameter to rvalue reference.
4699 * common/common-exceptions.c (throw_exception): Take rvalue
4700 reference.
4701 * cli/cli-interp.c (safe_execute_command): Use std::move.
4702 * breakpoint.c (insert_bp_location, location_to_sals): Use
4703 std::move.
4704
4705 2019-04-25 Tom Tromey <tromey@adacore.com>
4706
4707 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
4708 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
4709 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
4710 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
4711 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
4712 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
4713 guile/scm-value.c: Use unpack.
4714 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
4715 gdbscm_gdb_exception.
4716 (gdbscm_throw_gdb_exception): Likewise.
4717 (struct gdbscm_gdb_exception): New.
4718 (unpack): New function.
4719 (gdbscm_wrap): Use unpack.
4720
4721 2019-04-25 Tom Tromey <tromey@adacore.com>
4722
4723 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
4724 (gdb_rl_callback_handler): Use std::move.
4725 * common/common-exceptions.h (struct gdb_exception): Add move
4726 assignment operator.
4727 (throw_exception_sjlj): Change "exception" to const reference.
4728 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
4729 (throw_exception_sjlj): Change "exception" to const reference.
4730
4731 2019-04-25 Tom Tromey <tromey@adacore.com>
4732
4733 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
4734 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
4735 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
4736 Update.
4737 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
4738 Update.
4739 * mi/mi-interp.c (mi_interp::exec): Update.
4740 * linespec.c (parse_linespec): Update.
4741 * infcall.c (run_inferior_call): Update.
4742 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
4743 * guile/scm-symbol.c (gdbscm_lookup_symbol)
4744 (gdbscm_lookup_global_symbol): Update.
4745 * guile/scm-param.c (gdbscm_parameter_value): Update.
4746 * guile/scm-frame.c (gdbscm_frame_read_register)
4747 (gdbscm_frame_read_var): Update.
4748 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
4749 * exec.c (try_open_exec_file): Update.
4750 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
4751 (gdb_rl_callback_handler): Update.
4752 * common/common-exceptions.h (exception_none): Don't declare.
4753 * common/common-exceptions.c (exception_none): Don't define.
4754 (struct catcher) <exception>: Update.
4755 * cli/cli-interp.c (safe_execute_command): Update.
4756 * breakpoint.c (insert_bp_location, location_to_sals): Update.
4757
4758 2019-04-25 Ali Tamur <tamur@google.com>
4759
4760 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
4761 (read_attribute_value): Likewise.
4762 (dwarf2_read_addr_index): Update comment.
4763 (read_str_index): Add DW_FORM_strx.
4764 (dwarf2_string_attr): Likewise.
4765 (dwarf2_const_value_attr): Likewise.
4766 (dump_die_shallow): Likewise.
4767 (dwarf2_fetch_constant_bytes): Likewise.
4768 (skip_form_bytes): Likewise.
4769 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
4770
4771 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4772
4773 PR corefiles/11608
4774 PR corefiles/18187
4775 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
4776 OFFSET. Verify if current mapping contains an ELF header.
4777 (linux_find_memory_regions_full): Adjust call to
4778 dump_mapping_p.
4779
4780 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
4781 Kang Li <kanglictf@gmail.com>
4782
4783 PR gdb/21600
4784
4785 * dwarf2-frame.c (read_initial_length): Be consistent about using
4786 unsigned representation of length.
4787 (decode_frame_entry_1): Likewise. Check for wraparound of
4788 end pointer as well as buffer overflow.
4789
4790 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4791
4792 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
4793 "vq".
4794
4795 2019-04-24 Tom Tromey <tromey@adacore.com>
4796
4797 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
4798
4799 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4800
4801 * s12z-tdep.c (s12z_unwind_pc): Delete.
4802 (s12z_unwind_sp): Delete.
4803 (s12z_gdbarch_init): Don't register deleted functions with
4804 gdbarch.
4805
4806 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4807
4808 * rl78-tdep.c (rl78_unwind_sp): Delete.
4809 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
4810
4811 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4812
4813 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
4814 (xstormy16_unwind_pc): Delete.
4815 (xstormy16_dummy_id): Delete.
4816 (xstormy16_gdbarch_init): Don't register deleted functions with
4817 gdbarch.
4818
4819 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4820
4821 * vax-tdep.c (vax_unwind_pc): Delete.
4822 (vax_gdbarch_init): Don't register deleted function with gdbarch.
4823
4824 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4825
4826 * v850-tdep.c (v850_unwind_sp): Delete.
4827 (v850_unwind_pc): Delete.
4828 (v850_dummy_id): Delete.
4829 (v850_gdbarch_init): Don't register deleted functions with
4830 gdbarch.
4831
4832 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4833
4834 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
4835 (tilegx_unwind_pc): Delete.
4836 (tilegx_unwind_dummy_id): Delete.
4837 (tilegx_gdbarch_init): Don't register deleted functions with
4838 gdbarch.
4839
4840 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4841
4842 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
4843 (tic6x_dummy_id): Delete.
4844 (tic6x_gdbarch_init): Don't register deleted functions with
4845 gdbarch.
4846
4847 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4848
4849 * sparc-tdep.c (sparc_unwind_pc): Delete.
4850 (sparc32_gdbarch_init): Don't register deleted function with
4851 gdbarch.
4852
4853 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4854
4855 * sh-tdep.c (sh_unwind_sp): Delete.
4856 (sh_unwind_pc): Delete.
4857 (sh_dummy_id): Delete.
4858 (sh_gdbarch_init): Don't register deleted functions with
4859 gdbarch.
4860
4861 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4862
4863 * score-tdep.c (score_unwind_sp): Delete.
4864 (score_unwind_pc): Delete.
4865 (score_dummy_id): Delete.
4866 (score_gdbarch_init): Don't register deleted functions with
4867 gdbarch.
4868
4869 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4870
4871 * rx-tdep.c (rx_unwind_pc): Delete.
4872 (rx_unwind_sp): Delete.
4873 (rx_dummy_id): Delete.
4874 (rx_gdbarch_init): Don't register deleted functions with
4875 gdbarch. Update comment.
4876
4877 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4878
4879 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
4880 (rs6000_dummy_id): Delete.
4881 (rs6000_gdbarch_init): Don't register deleted functions with
4882 gdbarch.
4883
4884 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4885
4886 * or1k-tdep.c (or1k_dummy_id): Delete.
4887 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
4888
4889 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4890
4891 * nios2-tdep.c (nios2_dummy_id): Delete.
4892 (nios2_unwind_sp): Delete.
4893 (nios2_gdbarch_init): Don't register deleted functions with
4894 gdbarch.
4895
4896 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4897
4898 * nds32-tdep.c (nds32_dummy_id): Delete.
4899 (nds32_unwind_pc): Delete.
4900 (nds32_unwind_sp): Delete.
4901 (nds32_gdbarch_init): Don't register deleted functions with
4902 gdbarch.
4903
4904 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4905
4906 * msp430-tdep.c (msp430_unwind_pc): Delete.
4907 (msp430_unwind_sp): Delete.
4908 (msp430_dummy_id): Delete.
4909 (msp430_gdbarch_init): Don't register deleted functions with
4910 gdbarch.
4911
4912 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4913
4914 * moxie-tdep.c (moxie_unwind_sp): Delete.
4915 (moxie_unwind_pc): Delete.
4916 (moxie_dummy_id): Delete.
4917 (moxie_gdbarch_init): Don't register deleted functions with
4918 gdbarch.
4919
4920 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4921
4922 * mn10300-tdep.c (mn10300_dummy_id): Delete.
4923 (mn10300_unwind_pc): Delete.
4924 (mn10300_unwind_sp): Delete.
4925 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
4926 mn10300_unwind_sp.
4927 (mn10300_frame_unwind_init): Don't register deleted functions with
4928 gdbarch.
4929
4930 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4931
4932 * mep-tdep.c (mep_unwind_pc): Delete.
4933 (mep_unwind_sp): Delete.
4934 (mep_dummy_id): Delete.
4935 (mep_gdbarch_init): Don't register deleted functions with
4936 gdbarch.
4937
4938 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4939
4940 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
4941 (m68hc11_unwind_sp): Delete.
4942 (m68hc11_gdbarch_init): Don't register deleted functions with
4943 gdbarch.
4944
4945 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4946
4947 * m32r-tdep.c (m32r_unwind_sp): Delete.
4948 (m32r_unwind_pc): Delete.
4949 (m32r_dummy_id): Delete.
4950 (m32r_gdbarch_init): Don't register deleted functions with
4951 gdbarch.
4952
4953 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4954
4955 * m32c-tdep.c (m32c_unwind_pc): Delete.
4956 (m32c_unwind_sp): Delete.
4957 (m32c_dummy_id): Delete.
4958 (m32c_gdbarch_init): Don't register deleted functions with
4959 gdbarch.
4960
4961 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4962
4963 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
4964 (lm32_unwind_pc): Delete.
4965 (lm32_dummy_id): Delete.
4966 (lm32_gdbarch_init): Don't register deleted functions with
4967 gdbarch.
4968
4969 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4970
4971 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
4972 (iq2000_unwind_pc): Delete.
4973 (iq2000_dummy_id): Delete.
4974 (iq2000_gdbarch_init): Don't register deleted functions with
4975 gdbarch.
4976
4977 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4978
4979 * nds32-tdep.c (nds32_type_align): Delete.
4980 (nds32_push_dummy_call): Use type_align instead.
4981
4982 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4983
4984 * arm-tdep.c (arm_type_align): Only handle vector override case.
4985 (arm_push_dummy_call): Use type_align.
4986 (arm_gdbarch_init): Register arm_type_align gdbarch function.
4987
4988 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4989
4990 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
4991 case.
4992 (pass_on_stack): Use type_align.
4993 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
4994 function.
4995
4996 2019-04-23 Tom Tromey <tromey@adacore.com>
4997
4998 * dwarf2read.c (line_header::file_name_at): Remove unused
4999 overload.
5000
5001 2019-04-23 Tom de Vries <tdevries@suse.de>
5002
5003 PR gdb/24438
5004 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5005 invocation.
5006
5007
5008 2019-03-27 Ali Tamur <tamur@google.com>
5009
5010 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5011 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5012 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5013 (dwarf_expr_context::get_addr_index): Likewise
5014 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5015 (symbol_needs_eval_context::get_addr_index): Likewise
5016 (disassemble_dwarf_expression): Add DW_OP_addrx
5017 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5018 (read_cutu_die_from_dwo): Update comment
5019 (skip_one_die): Add DW_FORM_addrx
5020 (read_attribute_value): Likewise
5021 (var_decode_location): Add DW_OP_addrx
5022 (dwarf2_const_value_attr): Add DW_FORM_addrx
5023 (dump_die_shallow): Likewise
5024 (dwarf2_fetch_constant_bytes): Likewise
5025 (decode_locdesc): Add DW_OP_addrx
5026 (skip_form_bytes): Add DW_FORM_addrx
5027
5028 2019-04-22 Ali Tamur <tamur@google.com>
5029
5030 * MAINTAINERS (Write After Approval): Add self.
5031
5032 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5035 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5036 (open_symbol_file_object): Likewise.
5037 (svr4_default_sos): Add info parameter.
5038 (svr4_read_so_list): Likewise.
5039 (svr4_current_sos_direct): Adjust functions calls to pass down
5040 info.
5041 (svr4_current_sos_1): Add info parameter.
5042 (svr4_current_sos): Call get_svr4_info, pass info down to
5043 svr4_current_sos_1.
5044 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5045 get_svr4_info.
5046 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5047 get_svr4_info.
5048 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5049 to get_svr4_info.
5050 (probes_table_remove_objfile_probes): Likewise.
5051 (register_solib_event_probe): Add info parameter.
5052 (solist_update_incremental): Pass info parameter down to
5053 svr4_read_so_list.
5054 (disable_probes_interface): Add info parameter.
5055 (svr4_handle_solib_event): Pass current_program_space to
5056 get_svr4_info. Adjust disable_probes_interface cleanup.
5057 (svr4_create_probe_breakpoints): Add info parameter, pass it
5058 down to register_solib_event_probe.
5059 (svr4_create_solib_event_breakpoints): Add info parameter,
5060 pass it down to svr4_create_probe_breakpoints.
5061 (enable_break): Pass info down to
5062 svr4_create_solib_event_breakpoints.
5063 (svr4_solib_create_inferior_hook): Pass current_program_space to
5064 get_svr4_info.
5065 (svr4_clear_solib): Likewise.
5066
5067 2019-04-22 Pedro Alves <palves@redhat.com>
5068
5069 * solib-svr4.c (svr4_free_objfile_observer): New.
5070 (probe_and_action::objfile): New field.
5071 (probes_table_htab_remove_objfile_probes)
5072 (probes_table_remove_objfile_probes): New functions.
5073 (register_solib_event_probe): Add 'objfile' parameter. Store it
5074 in the new probe_and_action. Don't store the probe in 'lookup'.
5075 (svr4_create_probe_breakpoints): Pass objfile to
5076 register_solib_event_probe.
5077 (_initialize_svr4_solib): Register a free_objfile observer.
5078
5079 2019-04-19 Tom Tromey <tom@tromey.com>
5080
5081 * common/queue.h: Remove.
5082
5083 2019-04-19 Tom Tromey <tom@tromey.com>
5084
5085 * event-loop.c: Don't include "common/queue.h".
5086
5087 2019-04-19 Tom Tromey <tom@tromey.com>
5088
5089 * remote.c (remote_target): Use delete.
5090 * remote-notif.h: Include <list>, not "common/queue.h".
5091 (notif_client_p): Remove typedef.
5092 (remote_notif_state): Add constructor, destructor, initializer.
5093 <notif_queue>: Now a std::list.
5094 (remote_notif_state_xfree): Don't declare.
5095 * remote-notif.c (remote_notif_process, handle_notification)
5096 (remote_notif_state_allocate): Update.
5097 (~remote_notif_state): Rename from remote_notif_state_xfree.
5098
5099 2019-04-19 Tom Tromey <tom@tromey.com>
5100
5101 * symfile.c (reread_symbols): Update.
5102 * objfiles.c (objfile_register_static_link)
5103 (objfile_lookup_static_link): Update
5104 (~objfile) Don't delete static_links.
5105 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5106
5107 2019-04-19 Tom Tromey <tom@tromey.com>
5108
5109 * type-stack.h (struct type_stack) <insert>: Constify string.
5110 * type-stack.c (type_stack::insert): Constify string.
5111 * gdbtypes.h (lookup_template_type): Update.
5112 (address_space_name_to_int): Update.
5113 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5114 const.
5115 (lookup_template_type): Make name const.
5116 * c-exp.y: Update rules.
5117 (lex_one_token, classify_name, classify_inner_name)
5118 (c_print_token): Update.
5119 * p-exp.y: Update rules.
5120 (yylex): Update.
5121 * f-exp.y: Update rules.
5122 (yylex): Update.
5123 * d-exp.y: Update rules.
5124 (lex_one_token, classify_name, classify_inner_name): Update.
5125 * parse.c (write_dollar_variable, copy_name): Return std::string.
5126 * parser-defs.h (copy_name): Change return type.
5127 * m2-exp.y: Update rules.
5128 (yylex): Update.
5129 * go-exp.y (lex_one_token): Update.
5130 Update rules.
5131 (classify_unsafe_function, classify_packaged_name)
5132 (classify_name, yylex): Update.
5133
5134 2019-04-19 Sergei Trofimovich <siarheit@google.com>
5135
5136 * configure.ac: add --enable-source-highlight switch.
5137 * configure: Regenerate.
5138 * top.c (print_gdb_version): plumb --enable-source-highlight
5139 status to "show configuration".
5140
5141 2019-04-19 Tom Tromey <tromey@adacore.com>
5142
5143 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5144 Check ADA_TYPE_P.
5145 (empty_record, ada_template_to_fixed_record_type_1)
5146 (template_to_static_fixed_type)
5147 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5148 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5149 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5150 macros.
5151
5152 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5153
5154 PR symtab/24423:
5155 * source.c (print_source_lines_base): Advance "iter" when a
5156 control character is seen.
5157
5158 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5159
5160 * inferior.h (struct infcall_suspend_state_deleter):
5161 Catch exception in destructor to avoid crash.
5162
5163 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5164
5165 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5166 close to the add_com "shell".
5167
5168 2019-04-18 Tom Tromey <tromey@adacore.com>
5169
5170 * process-stratum-target.h (class process_stratum_target)
5171 <stratum>: Add "final".
5172
5173 2019-04-17 Tom Tromey <tromey@adacore.com>
5174
5175 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5176 against nullptr before use.
5177
5178 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5179
5180 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5181
5182 2019-04-17 Jim Wilson <jimw@sifive.com>
5183 Andrew Burgess <andrew.burgess@embecosm.com>
5184
5185 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5186 code read might fail, assume 4-byte breakpoint in that case.
5187
5188 2019-04-15 Leszek Swirski <leszeks@google.com>
5189
5190 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5191 rather than a hand-rolled POD check when checking for forced MEMORY
5192 classification.
5193
5194 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5195
5196 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5197 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5198 function.
5199 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5200 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5201 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5202 declaration.
5203
5204 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5205
5206 * aarch64-linux-nat.c
5207 (aarch64_linux_nat_target::thread_architecture): Add override.
5208 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5209 each VQ.
5210
5211 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5212
5213 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5214
5215 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5216
5217 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5218 target types of size 96-bits, add some additional comments, and
5219 check that the builtin type we found was the correct size.
5220
5221 2019-04-12 Eli Zaretskii <eliz@gnu.org>
5222
5223 * utils.c (prompt_for_continue): Don't restore the styling at the
5224 end, as applied_style has the wrong value. This fixes styling in
5225 long lists of file names that are interrupted by the "Continue?"
5226 prompt.
5227
5228 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5229
5230 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5231 * c-lang.c (c_language_defn): Likewise.
5232 (cplus_language_defn): Likewise.
5233 (asm_language_defn): Likewise.
5234 (minimal_language_defn): Likewise.
5235 * d-lang.c (d_language_defn): Likewise.
5236 * f-lang.c (f_language_defn): Likewise.
5237 * go-lang.c (go_language_defn): Likewise.
5238 * language.c (unknown_language_defn): Likewise.
5239 (auto_language_defn): Likewise.
5240 * language.h (struct language_defn): Remove la_magic field.
5241 (LANG_MAGIC): Delete.
5242 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5243 * objc-lang.c (objc_language_defn): Likewise.
5244 * opencl-lang.c (opencl_language_defn): Likewise.
5245 * p-lang.c (pascal_language_defn): Likewise.
5246 * rust-lang.c (rust_language_defn): Likewise.
5247
5248 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5249
5250 * riscv-tdep.c (riscv_type_align): New function.
5251 (riscv_type_alignment): Delete.
5252 (riscv_arg_location): Use 'type_align'.
5253 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5254
5255 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5256
5257 * gdbtypes.c (type_align): A struct with no non-static fields also
5258 has alignment of 1.
5259
5260 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5261
5262 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5263 component to 0.
5264 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5265 member.
5266 (riscv_struct_info::analyse): New implementation using new
5267 analyse_inner member function.
5268 (riscv_struct_info::field_offset): New member function.
5269 (riscv_struct_info::m_offsets): New member variable.
5270 (riscv_struct_info::analyse_inner): New private member function,
5271 takes the old implementation of riscv_struct_info::analyse but
5272 extended to track field offsets.
5273 (riscv_call_arg_struct): Update the struct folding special cases
5274 to handle cases where empty C++ structs, which are non-zero
5275 length, are found.
5276 (riscv_arg_location): Initialise the length of each location, a
5277 non-zero length now indicates the location is in use.
5278 (riscv_push_dummy_call): Allow for the first location having a
5279 non-zero offset when setting up arguments.
5280 (riscv_return_value): Likewise, but for return values.
5281
5282 2019-04-11 Tom Tromey <tromey@adacore.com>
5283
5284 * utils.c (internal_vproblem): Make "msg" const.
5285
5286 2019-04-11 Alan Hayward <alan.hayward@arm.com>
5287
5288 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5289 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5290 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5291 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5292
5293 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5294
5295 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5296 function.
5297 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5298 of amd64_collect_native_gregset.
5299 (amd64_linux_nat_target::store_registers): Likewise.
5300
5301 2019-04-10 Tom Tromey <tom@tromey.com>
5302
5303 * symtab.c (lookup_global_symbol_from_objfile)
5304 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5305 * objfiles.h (class separate_debug_iterator): New.
5306 (class separate_debug_range): New.
5307 (struct objfile) <separate_debug_objfiles>: New method.
5308 (objfile_separate_debug_iterate): Don't declare.
5309 * objfiles.c (separate_debug_iterator::operator++): Rename from
5310 objfile_separate_debug_iterate.
5311 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5312 iterator.
5313 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5314 iterator.
5315
5316 2019-04-10 Tom Tromey <tom@tromey.com>
5317
5318 * symfile.c (reread_symbols): Remove old comment.
5319 * objfiles.c (free_all_objfiles): Fix a typo.
5320
5321 2019-04-10 Tom Tromey <tom@tromey.com>
5322
5323 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5324 * minsyms.c (lookup_minimal_symbol): Use foreach.
5325 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5326 (lookup_minimal_symbol_solib_trampoline): Likewise.
5327 * symfile.c (reread_symbols): Use foreach.
5328
5329 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
5330 Tom Tromey <tromey@adacore.com>
5331
5332 PR rust/24414:
5333 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5334 (rust_lex_int_test): Change "value" to be LONGEST.
5335 (rust_lex_tests): Add test for long integer literal.
5336
5337 2019-04-09 Tom Tromey <tromey@adacore.com>
5338
5339 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5340 to bool.
5341 (extended_remote_target::attach): Update.
5342 (remote_target::remote_notice_new_inferior): Update.
5343 (remote_target::add_current_inferior_and_thread): Update.
5344 * inferior.c (exit_inferior_1): Use "false".
5345 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5346
5347 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
5348
5349 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
5350 the "start" command.
5351
5352 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5353
5354 * python/py-inferior.c (infpy_thread_from_thread_handle):
5355 Adjust comments to reflect renaming of thread_from_thread_handle
5356 to thread_from_handle. Adjust keywords. Fix type error message.
5357 (inferior_object_methods): Add thread_from_handle. Retain
5358 thread_from_thread_handle, but mark it as deprecated.
5359
5360 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5361
5362 * gdbthread.h (find_thread_by_handle): Revise declaration.
5363 * thread.c (find_thread_by_handle): Likewise. Adjust
5364 implementation too.
5365 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5366 support for buffer objects as handles.
5367
5368 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5369
5370 * python/py-infthread.c (thpy_thread_handle): New function.
5371 (thread_object_methods): Register thpy_thread_handle.
5372
5373 2019-04-08 Kevin Buettner <kevinb@redhat.com>
5374
5375 * gdbthread.h (thread_to_thread_handle): Declare.
5376 * thread.c (gdbtypes.h): Include.
5377 (thread_to_thread_handle): New function.
5378
5379 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5380 (target_thread_info_to_thread_handle): Declare.
5381 * target.c (target_thread_info_to_thread_handle): New function.
5382 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5383 * target-delegates.c: Regenerate.
5384
5385 * linux-thread-db.c (class thread_db_target): Add method
5386 thread_info_to_thread_handle.
5387 (thread_db_target::thread_info_to_thread_handle): Define.
5388 * remote.c (class remote_target): Add new method
5389 thread_info_to_thread_handle.
5390 (remote_target::thread_info_to_thread_handle): Define.
5391
5392 2019-04-08 Pedro Alves <palves@redhat.com>
5393
5394 * common/common-exceptions.c (throw_exception): Don't create
5395 named object to throw; throw directly.
5396 (throw_it): Likewise. Don't initialize gdb_exception::message
5397 here, with new; pass FMT and AP to the ctor instead.
5398 * common/common-exceptions.h: Include <string>.
5399 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5400 const char *, va_list)): New ctor. Use std::make_shared.
5401 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5402 errors)): Delete.
5403 (gdb_exception_error::gdb_exception_error(enum errors, const char
5404 *, va_list)): New.
5405 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5406 Add assertion.
5407 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5408 errors)): Delete.
5409 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5410 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5411 Add assertion.
5412
5413 2019-04-08 Tom Tromey <tom@tromey.com>
5414
5415 * valops.c (value_rtti_indirect_type): Replace throw_exception
5416 with throw.
5417 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5418 with throw.
5419 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5420 throw.
5421 * target.c (target_translate_tls_address): Replace throw_exception
5422 with throw.
5423 * stack.c (frame_apply_command_count): Replace throw_exception
5424 with throw.
5425 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5426 throw.
5427 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5428 with throw.
5429 * rs6000-tdep.c (rs6000_frame_cache)
5430 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5431 * remote.c: Replace throw_exception with throw.
5432 * record-full.c (record_full_message, record_full_wait_1)
5433 (record_full_restore): Replace throw_exception with throw.
5434 * record-btrace.c:
5435 (get_thread_current_frame_id, record_btrace_start_replaying)
5436 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
5437 (cmd_record_btrace_start): Replace throw_exception with throw.
5438 * parse.c (parse_exp_in_context_1): Replace throw_exception with
5439 throw.
5440 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
5441 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
5442 * linespec.c:
5443 (find_linespec_symbols): Replace throw_exception with throw.
5444 * infrun.c (displaced_step_prepare, resume): Replace
5445 throw_exception with throw.
5446 * infcmd.c (post_create_inferior): Replace throw_exception with
5447 throw.
5448 * inf-loop.c (inferior_event_handler): Replace throw_exception
5449 with throw.
5450 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5451 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
5452 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
5453 (get_prev_frame_always, get_frame_pc_if_available)
5454 (get_frame_address_in_block_if_available, get_frame_language):
5455 Replace throw_exception with throw.
5456 * frame-unwind.c (frame_unwind_try_unwinder): Replace
5457 throw_exception with throw.
5458 * eval.c (fetch_subexp_value, evaluate_var_value)
5459 (evaluate_funcall, evaluate_subexp_standard): Replace
5460 throw_exception with throw.
5461 * dwarf2loc.c (call_site_find_chain)
5462 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
5463 Replace throw_exception with throw.
5464 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
5465 with throw.
5466 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
5467 throw.
5468 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
5469 * completer.c (complete_line_internal): Replace throw_exception
5470 with throw.
5471 * compile/compile-object-run.c (compile_object_run): Replace
5472 throw_exception with throw.
5473 * cli/cli-script.c (process_next_line): Replace throw_exception
5474 with throw.
5475 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
5476 (btrace_enable, btrace_maint_update_pt_packets): Replace
5477 throw_exception with throw.
5478 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
5479 throw_exception with throw.
5480 * break-catch-throw.c (re_set_exception_catchpoint): Replace
5481 throw_exception with throw.
5482 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5483 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
5484 * aarch64-tdep.c (aarch64_make_prologue_cache)
5485 (aarch64_make_stub_cache): Replace throw_exception with throw.
5486
5487 2019-04-08 Tom Tromey <tom@tromey.com>
5488
5489 * common/common-exceptions.c (throw_exception): Rename from
5490 throw_exception_cxx. Remove old copy. Make argument const.
5491 (throw_it): Create and throw exception objects directly.
5492 * common/common-exceptions.h (throw_exception): Make argument
5493 const.
5494 (struct gdb_exception_error): Add constructor.
5495 (struct gdb_exception_quit): Add constructor.
5496
5497 2019-04-08 Tom Tromey <tom@tromey.com>
5498
5499 * common/common-exceptions.h (exception_rethrow): Don't declare.
5500 (TRY_SJLJ): Update comment.
5501 (TRY, CATCH, END_CATCH): Remove.
5502 * common/common-exceptions.c (exception_rethrow): Remove.
5503
5504 2019-04-08 Tom Tromey <tom@tromey.com>
5505
5506 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
5507 Remove.
5508 (gdb_exception_error): Rename from
5509 gdb_exception_RETURN_MASK_ERROR.
5510 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
5511 (gdb_quit_bad_alloc): Update.
5512 * aarch64-tdep.c: Update.
5513 * ada-lang.c: Update.
5514 * ada-typeprint.c: Update.
5515 * ada-valprint.c: Update.
5516 * amd64-tdep.c: Update.
5517 * arch-utils.c: Update.
5518 * break-catch-throw.c: Update.
5519 * breakpoint.c: Update.
5520 * btrace.c: Update.
5521 * c-varobj.c: Update.
5522 * cli/cli-cmds.c: Update.
5523 * cli/cli-interp.c: Update.
5524 * cli/cli-script.c: Update.
5525 * common/common-exceptions.c: Update.
5526 * common/new-op.c: Update.
5527 * common/selftest.c: Update.
5528 * compile/compile-c-symbols.c: Update.
5529 * compile/compile-cplus-symbols.c: Update.
5530 * compile/compile-object-load.c: Update.
5531 * compile/compile-object-run.c: Update.
5532 * completer.c: Update.
5533 * corelow.c: Update.
5534 * cp-abi.c: Update.
5535 * cp-support.c: Update.
5536 * cp-valprint.c: Update.
5537 * darwin-nat.c: Update.
5538 * disasm-selftests.c: Update.
5539 * dtrace-probe.c: Update.
5540 * dwarf-index-cache.c: Update.
5541 * dwarf-index-write.c: Update.
5542 * dwarf2-frame-tailcall.c: Update.
5543 * dwarf2-frame.c: Update.
5544 * dwarf2loc.c: Update.
5545 * dwarf2read.c: Update.
5546 * eval.c: Update.
5547 * event-loop.c: Update.
5548 * event-top.c: Update.
5549 * exec.c: Update.
5550 * f-valprint.c: Update.
5551 * fbsd-tdep.c: Update.
5552 * frame-unwind.c: Update.
5553 * frame.c: Update.
5554 * gdbtypes.c: Update.
5555 * gnu-v3-abi.c: Update.
5556 * guile/guile-internal.h: Update.
5557 * guile/scm-block.c: Update.
5558 * guile/scm-breakpoint.c: Update.
5559 * guile/scm-cmd.c: Update.
5560 * guile/scm-disasm.c: Update.
5561 * guile/scm-frame.c: Update.
5562 * guile/scm-lazy-string.c: Update.
5563 * guile/scm-math.c: Update.
5564 * guile/scm-param.c: Update.
5565 * guile/scm-ports.c: Update.
5566 * guile/scm-pretty-print.c: Update.
5567 * guile/scm-symbol.c: Update.
5568 * guile/scm-symtab.c: Update.
5569 * guile/scm-type.c: Update.
5570 * guile/scm-value.c: Update.
5571 * i386-linux-tdep.c: Update.
5572 * i386-tdep.c: Update.
5573 * inf-loop.c: Update.
5574 * infcall.c: Update.
5575 * infcmd.c: Update.
5576 * infrun.c: Update.
5577 * jit.c: Update.
5578 * language.c: Update.
5579 * linespec.c: Update.
5580 * linux-fork.c: Update.
5581 * linux-nat.c: Update.
5582 * linux-tdep.c: Update.
5583 * linux-thread-db.c: Update.
5584 * main.c: Update.
5585 * mi/mi-cmd-break.c: Update.
5586 * mi/mi-cmd-stack.c: Update.
5587 * mi/mi-interp.c: Update.
5588 * mi/mi-main.c: Update.
5589 * objc-lang.c: Update.
5590 * p-valprint.c: Update.
5591 * parse.c: Update.
5592 * ppc-linux-tdep.c: Update.
5593 * printcmd.c: Update.
5594 * python/py-arch.c: Update.
5595 * python/py-breakpoint.c: Update.
5596 * python/py-cmd.c: Update.
5597 * python/py-finishbreakpoint.c: Update.
5598 * python/py-frame.c: Update.
5599 * python/py-framefilter.c: Update.
5600 * python/py-gdb-readline.c: Update.
5601 * python/py-inferior.c: Update.
5602 * python/py-infthread.c: Update.
5603 * python/py-lazy-string.c: Update.
5604 * python/py-linetable.c: Update.
5605 * python/py-objfile.c: Update.
5606 * python/py-param.c: Update.
5607 * python/py-prettyprint.c: Update.
5608 * python/py-progspace.c: Update.
5609 * python/py-record-btrace.c: Update.
5610 * python/py-record.c: Update.
5611 * python/py-symbol.c: Update.
5612 * python/py-type.c: Update.
5613 * python/py-unwind.c: Update.
5614 * python/py-utils.c: Update.
5615 * python/py-value.c: Update.
5616 * python/python.c: Update.
5617 * record-btrace.c: Update.
5618 * record-full.c: Update.
5619 * remote-fileio.c: Update.
5620 * remote.c: Update.
5621 * riscv-tdep.c: Update.
5622 * rs6000-aix-tdep.c: Update.
5623 * rs6000-tdep.c: Update.
5624 * rust-exp.y: Update.
5625 * rust-lang.c: Update.
5626 * s390-tdep.c: Update.
5627 * selftest-arch.c: Update.
5628 * solib-dsbt.c: Update.
5629 * solib-frv.c: Update.
5630 * solib-spu.c: Update.
5631 * solib-svr4.c: Update.
5632 * solib.c: Update.
5633 * sparc64-linux-tdep.c: Update.
5634 * stack.c: Update.
5635 * symfile-mem.c: Update.
5636 * symmisc.c: Update.
5637 * target.c: Update.
5638 * thread.c: Update.
5639 * top.c: Update.
5640 * tracefile-tfile.c: Update.
5641 * tui/tui.c: Update.
5642 * typeprint.c: Update.
5643 * unittests/cli-utils-selftests.c: Update.
5644 * unittests/parse-connection-spec-selftests.c: Update.
5645 * valops.c: Update.
5646 * valprint.c: Update.
5647 * value.c: Update.
5648 * varobj.c: Update.
5649 * windows-nat.c: Update.
5650 * x86-linux-nat.c: Update.
5651 * xml-support.c: Update.
5652
5653 2019-04-08 Tom Tromey <tom@tromey.com>
5654
5655 * xml-support.c: Use C++ exception handling.
5656 * x86-linux-nat.c: Use C++ exception handling.
5657 * windows-nat.c: Use C++ exception handling.
5658 * varobj.c: Use C++ exception handling.
5659 * value.c: Use C++ exception handling.
5660 * valprint.c: Use C++ exception handling.
5661 * valops.c: Use C++ exception handling.
5662 * unittests/parse-connection-spec-selftests.c: Use C++ exception
5663 handling.
5664 * unittests/cli-utils-selftests.c: Use C++ exception handling.
5665 * typeprint.c: Use C++ exception handling.
5666 * tui/tui.c: Use C++ exception handling.
5667 * tracefile-tfile.c: Use C++ exception handling.
5668 * top.c: Use C++ exception handling.
5669 * thread.c: Use C++ exception handling.
5670 * target.c: Use C++ exception handling.
5671 * symmisc.c: Use C++ exception handling.
5672 * symfile-mem.c: Use C++ exception handling.
5673 * stack.c: Use C++ exception handling.
5674 * sparc64-linux-tdep.c: Use C++ exception handling.
5675 * solib.c: Use C++ exception handling.
5676 * solib-svr4.c: Use C++ exception handling.
5677 * solib-spu.c: Use C++ exception handling.
5678 * solib-frv.c: Use C++ exception handling.
5679 * solib-dsbt.c: Use C++ exception handling.
5680 * selftest-arch.c: Use C++ exception handling.
5681 * s390-tdep.c: Use C++ exception handling.
5682 * rust-lang.c: Use C++ exception handling.
5683 * rust-exp.y: Use C++ exception handling.
5684 * rs6000-tdep.c: Use C++ exception handling.
5685 * rs6000-aix-tdep.c: Use C++ exception handling.
5686 * riscv-tdep.c: Use C++ exception handling.
5687 * remote.c: Use C++ exception handling.
5688 * remote-fileio.c: Use C++ exception handling.
5689 * record-full.c: Use C++ exception handling.
5690 * record-btrace.c: Use C++ exception handling.
5691 * python/python.c: Use C++ exception handling.
5692 * python/py-value.c: Use C++ exception handling.
5693 * python/py-utils.c: Use C++ exception handling.
5694 * python/py-unwind.c: Use C++ exception handling.
5695 * python/py-type.c: Use C++ exception handling.
5696 * python/py-symbol.c: Use C++ exception handling.
5697 * python/py-record.c: Use C++ exception handling.
5698 * python/py-record-btrace.c: Use C++ exception handling.
5699 * python/py-progspace.c: Use C++ exception handling.
5700 * python/py-prettyprint.c: Use C++ exception handling.
5701 * python/py-param.c: Use C++ exception handling.
5702 * python/py-objfile.c: Use C++ exception handling.
5703 * python/py-linetable.c: Use C++ exception handling.
5704 * python/py-lazy-string.c: Use C++ exception handling.
5705 * python/py-infthread.c: Use C++ exception handling.
5706 * python/py-inferior.c: Use C++ exception handling.
5707 * python/py-gdb-readline.c: Use C++ exception handling.
5708 * python/py-framefilter.c: Use C++ exception handling.
5709 * python/py-frame.c: Use C++ exception handling.
5710 * python/py-finishbreakpoint.c: Use C++ exception handling.
5711 * python/py-cmd.c: Use C++ exception handling.
5712 * python/py-breakpoint.c: Use C++ exception handling.
5713 * python/py-arch.c: Use C++ exception handling.
5714 * printcmd.c: Use C++ exception handling.
5715 * ppc-linux-tdep.c: Use C++ exception handling.
5716 * parse.c: Use C++ exception handling.
5717 * p-valprint.c: Use C++ exception handling.
5718 * objc-lang.c: Use C++ exception handling.
5719 * mi/mi-main.c: Use C++ exception handling.
5720 * mi/mi-interp.c: Use C++ exception handling.
5721 * mi/mi-cmd-stack.c: Use C++ exception handling.
5722 * mi/mi-cmd-break.c: Use C++ exception handling.
5723 * main.c: Use C++ exception handling.
5724 * linux-thread-db.c: Use C++ exception handling.
5725 * linux-tdep.c: Use C++ exception handling.
5726 * linux-nat.c: Use C++ exception handling.
5727 * linux-fork.c: Use C++ exception handling.
5728 * linespec.c: Use C++ exception handling.
5729 * language.c: Use C++ exception handling.
5730 * jit.c: Use C++ exception handling.
5731 * infrun.c: Use C++ exception handling.
5732 * infcmd.c: Use C++ exception handling.
5733 * infcall.c: Use C++ exception handling.
5734 * inf-loop.c: Use C++ exception handling.
5735 * i386-tdep.c: Use C++ exception handling.
5736 * i386-linux-tdep.c: Use C++ exception handling.
5737 * guile/scm-value.c: Use C++ exception handling.
5738 * guile/scm-type.c: Use C++ exception handling.
5739 * guile/scm-symtab.c: Use C++ exception handling.
5740 * guile/scm-symbol.c: Use C++ exception handling.
5741 * guile/scm-pretty-print.c: Use C++ exception handling.
5742 * guile/scm-ports.c: Use C++ exception handling.
5743 * guile/scm-param.c: Use C++ exception handling.
5744 * guile/scm-math.c: Use C++ exception handling.
5745 * guile/scm-lazy-string.c: Use C++ exception handling.
5746 * guile/scm-frame.c: Use C++ exception handling.
5747 * guile/scm-disasm.c: Use C++ exception handling.
5748 * guile/scm-cmd.c: Use C++ exception handling.
5749 * guile/scm-breakpoint.c: Use C++ exception handling.
5750 * guile/scm-block.c: Use C++ exception handling.
5751 * guile/guile-internal.h: Use C++ exception handling.
5752 * gnu-v3-abi.c: Use C++ exception handling.
5753 * gdbtypes.c: Use C++ exception handling.
5754 * frame.c: Use C++ exception handling.
5755 * frame-unwind.c: Use C++ exception handling.
5756 * fbsd-tdep.c: Use C++ exception handling.
5757 * f-valprint.c: Use C++ exception handling.
5758 * exec.c: Use C++ exception handling.
5759 * event-top.c: Use C++ exception handling.
5760 * event-loop.c: Use C++ exception handling.
5761 * eval.c: Use C++ exception handling.
5762 * dwarf2read.c: Use C++ exception handling.
5763 * dwarf2loc.c: Use C++ exception handling.
5764 * dwarf2-frame.c: Use C++ exception handling.
5765 * dwarf2-frame-tailcall.c: Use C++ exception handling.
5766 * dwarf-index-write.c: Use C++ exception handling.
5767 * dwarf-index-cache.c: Use C++ exception handling.
5768 * dtrace-probe.c: Use C++ exception handling.
5769 * disasm-selftests.c: Use C++ exception handling.
5770 * darwin-nat.c: Use C++ exception handling.
5771 * cp-valprint.c: Use C++ exception handling.
5772 * cp-support.c: Use C++ exception handling.
5773 * cp-abi.c: Use C++ exception handling.
5774 * corelow.c: Use C++ exception handling.
5775 * completer.c: Use C++ exception handling.
5776 * compile/compile-object-run.c: Use C++ exception handling.
5777 * compile/compile-object-load.c: Use C++ exception handling.
5778 * compile/compile-cplus-symbols.c: Use C++ exception handling.
5779 * compile/compile-c-symbols.c: Use C++ exception handling.
5780 * common/selftest.c: Use C++ exception handling.
5781 * common/new-op.c: Use C++ exception handling.
5782 * cli/cli-script.c: Use C++ exception handling.
5783 * cli/cli-interp.c: Use C++ exception handling.
5784 * cli/cli-cmds.c: Use C++ exception handling.
5785 * c-varobj.c: Use C++ exception handling.
5786 * btrace.c: Use C++ exception handling.
5787 * breakpoint.c: Use C++ exception handling.
5788 * break-catch-throw.c: Use C++ exception handling.
5789 * arch-utils.c: Use C++ exception handling.
5790 * amd64-tdep.c: Use C++ exception handling.
5791 * ada-valprint.c: Use C++ exception handling.
5792 * ada-typeprint.c: Use C++ exception handling.
5793 * ada-lang.c: Use C++ exception handling.
5794 * aarch64-tdep.c: Use C++ exception handling.
5795
5796 2019-04-08 Tom Tromey <tom@tromey.com>
5797
5798 * xml-support.c (gdb_xml_parser::parse): Update.
5799 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
5800 * value.c (show_convenience): Update.
5801 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
5802 (test_parse_flags_qcs): Update.
5803 * thread.c (thr_try_catch_cmd): Update.
5804 * target.c (target_translate_tls_address): Update.
5805 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5806 (info_frame_command_core, frame_apply_command_count): Update.
5807 * rust-exp.y (rust_lex_exception_test): Update.
5808 * riscv-tdep.c (riscv_print_one_register_info): Update.
5809 * remote.c (remote_target::enable_btrace): Update.
5810 * record-btrace.c (record_btrace_enable_warn): Update.
5811 * python/py-utils.c (gdbpy_convert_exception): Update.
5812 * printcmd.c (do_one_display, print_variable_and_value): Update.
5813 * mi/mi-main.c (mi_print_exception): Update.
5814 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
5815 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5816 * linux-nat.c (linux_nat_target::attach): Update.
5817 * linux-fork.c (class scoped_switch_fork_info): Update.
5818 * infrun.c (displaced_step_prepare): Update.
5819 * infcall.c (call_function_by_hand_dummy): Update.
5820 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
5821 * gnu-v3-abi.c (print_one_vtable): Update.
5822 * frame.c (get_prev_frame_always): Update.
5823 * f-valprint.c (info_common_command_for_block): Update.
5824 * exec.c (try_open_exec_file): Update.
5825 * exceptions.c (print_exception, exception_print)
5826 (exception_fprintf, exception_print_same): Update.
5827 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
5828 * dwarf-index-cache.c (index_cache::store)
5829 (index_cache::lookup_gdb_index): Update.
5830 * darwin-nat.c (maybe_cache_shell): Update.
5831 * cp-valprint.c (cp_print_value_fields): Update.
5832 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
5833 (gcc_cplus_symbol_address): Update.
5834 * compile/compile-c-symbols.c (gcc_convert_symbol)
5835 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
5836 * common/selftest.c: Update.
5837 * common/common-exceptions.h (struct gdb_exception) <message>: Now
5838 a std::string.
5839 (exception_try_scope_entry, exception_try_scope_exit): Don't
5840 declare.
5841 (struct exception_try_scope): Remove.
5842 (TRY): Don't use exception_try_scope.
5843 (struct gdb_exception): Add constructor, operator=.
5844 <what>: New method.
5845 (struct gdb_exception_RETURN_MASK_ALL)
5846 (struct gdb_exception_RETURN_MASK_ERROR)
5847 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
5848 (struct gdb_quit_bad_alloc): Update.
5849 * common/common-exceptions.c (exception_none): Change
5850 initializer.
5851 (struct catcher) <state, exception>: Initialize inline.
5852 <prev>: Remove member.
5853 (current_catcher): Remove.
5854 (catchers): New global.
5855 (exceptions_state_mc_init): Simplify.
5856 (catcher_pop): Remove.
5857 (exceptions_state_mc, exceptions_state_mc_catch): Update.
5858 (try_scope_depth, exception_try_scope_entry)
5859 (exception_try_scope_exit): Remove.
5860 (throw_exception_sjlj): Update.
5861 (exception_messages, exception_messages_size): Remove.
5862 (throw_it): Simplify.
5863 (gdb_exception_sliced_copy): Remove.
5864 (throw_exception_cxx): Update.
5865 * cli/cli-script.c (script_from_file): Update.
5866 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
5867 Update.
5868 * ada-valprint.c (ada_val_print): Update.
5869 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
5870 (create_excep_cond_exprs): Update.
5871
5872 2019-04-08 Tom Tromey <tom@tromey.com>
5873
5874 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
5875 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
5876 (TRY, CATCH, END_CATCH): Remove some definitions.
5877 * common/common-exceptions.c: Don't use GDB_XCPT.
5878 (catcher_list_size): Remove.
5879 (throw_exception, throw_it): Simplify.
5880
5881 2019-04-05 Tom Tromey <tom@tromey.com>
5882
5883 Revert the header-sorting patch.
5884 * ft32-tdep.c: Revert.
5885 * frv-tdep.c: Revert.
5886 * frv-linux-tdep.c: Revert.
5887 * frame.c: Revert.
5888 * frame-unwind.c: Revert.
5889 * frame-base.c: Revert.
5890 * fork-child.c: Revert.
5891 * findvar.c: Revert.
5892 * findcmd.c: Revert.
5893 * filesystem.c: Revert.
5894 * filename-seen-cache.h: Revert.
5895 * filename-seen-cache.c: Revert.
5896 * fbsd-tdep.c: Revert.
5897 * fbsd-nat.h: Revert.
5898 * fbsd-nat.c: Revert.
5899 * f-valprint.c: Revert.
5900 * f-typeprint.c: Revert.
5901 * f-lang.c: Revert.
5902 * extension.h: Revert.
5903 * extension.c: Revert.
5904 * extension-priv.h: Revert.
5905 * expprint.c: Revert.
5906 * exec.h: Revert.
5907 * exec.c: Revert.
5908 * exceptions.c: Revert.
5909 * event-top.c: Revert.
5910 * event-loop.c: Revert.
5911 * eval.c: Revert.
5912 * elfread.c: Revert.
5913 * dwarf2read.h: Revert.
5914 * dwarf2read.c: Revert.
5915 * dwarf2loc.c: Revert.
5916 * dwarf2expr.h: Revert.
5917 * dwarf2expr.c: Revert.
5918 * dwarf2-frame.c: Revert.
5919 * dwarf2-frame-tailcall.c: Revert.
5920 * dwarf-index-write.h: Revert.
5921 * dwarf-index-write.c: Revert.
5922 * dwarf-index-common.c: Revert.
5923 * dwarf-index-cache.h: Revert.
5924 * dwarf-index-cache.c: Revert.
5925 * dummy-frame.c: Revert.
5926 * dtrace-probe.c: Revert.
5927 * disasm.h: Revert.
5928 * disasm.c: Revert.
5929 * disasm-selftests.c: Revert.
5930 * dictionary.c: Revert.
5931 * dicos-tdep.c: Revert.
5932 * demangle.c: Revert.
5933 * dcache.h: Revert.
5934 * dcache.c: Revert.
5935 * darwin-nat.h: Revert.
5936 * darwin-nat.c: Revert.
5937 * darwin-nat-info.c: Revert.
5938 * d-valprint.c: Revert.
5939 * d-namespace.c: Revert.
5940 * d-lang.c: Revert.
5941 * ctf.c: Revert.
5942 * csky-tdep.c: Revert.
5943 * csky-linux-tdep.c: Revert.
5944 * cris-tdep.c: Revert.
5945 * cris-linux-tdep.c: Revert.
5946 * cp-valprint.c: Revert.
5947 * cp-support.c: Revert.
5948 * cp-namespace.c: Revert.
5949 * cp-abi.c: Revert.
5950 * corelow.c: Revert.
5951 * corefile.c: Revert.
5952 * continuations.c: Revert.
5953 * completer.h: Revert.
5954 * completer.c: Revert.
5955 * complaints.c: Revert.
5956 * coffread.c: Revert.
5957 * coff-pe-read.c: Revert.
5958 * cli-out.h: Revert.
5959 * cli-out.c: Revert.
5960 * charset.c: Revert.
5961 * c-varobj.c: Revert.
5962 * c-valprint.c: Revert.
5963 * c-typeprint.c: Revert.
5964 * c-lang.c: Revert.
5965 * buildsym.c: Revert.
5966 * buildsym-legacy.c: Revert.
5967 * build-id.h: Revert.
5968 * build-id.c: Revert.
5969 * btrace.c: Revert.
5970 * bsd-uthread.c: Revert.
5971 * breakpoint.h: Revert.
5972 * breakpoint.c: Revert.
5973 * break-catch-throw.c: Revert.
5974 * break-catch-syscall.c: Revert.
5975 * break-catch-sig.c: Revert.
5976 * blockframe.c: Revert.
5977 * block.c: Revert.
5978 * bfin-tdep.c: Revert.
5979 * bfin-linux-tdep.c: Revert.
5980 * bfd-target.c: Revert.
5981 * bcache.c: Revert.
5982 * ax-general.c: Revert.
5983 * ax-gdb.h: Revert.
5984 * ax-gdb.c: Revert.
5985 * avr-tdep.c: Revert.
5986 * auxv.c: Revert.
5987 * auto-load.c: Revert.
5988 * arm-wince-tdep.c: Revert.
5989 * arm-tdep.c: Revert.
5990 * arm-symbian-tdep.c: Revert.
5991 * arm-pikeos-tdep.c: Revert.
5992 * arm-obsd-tdep.c: Revert.
5993 * arm-nbsd-tdep.c: Revert.
5994 * arm-nbsd-nat.c: Revert.
5995 * arm-linux-tdep.c: Revert.
5996 * arm-linux-nat.c: Revert.
5997 * arm-fbsd-tdep.c: Revert.
5998 * arm-fbsd-nat.c: Revert.
5999 * arm-bsd-tdep.c: Revert.
6000 * arch-utils.c: Revert.
6001 * arc-tdep.c: Revert.
6002 * arc-newlib-tdep.c: Revert.
6003 * annotate.h: Revert.
6004 * annotate.c: Revert.
6005 * amd64-windows-tdep.c: Revert.
6006 * amd64-windows-nat.c: Revert.
6007 * amd64-tdep.c: Revert.
6008 * amd64-sol2-tdep.c: Revert.
6009 * amd64-obsd-tdep.c: Revert.
6010 * amd64-obsd-nat.c: Revert.
6011 * amd64-nbsd-tdep.c: Revert.
6012 * amd64-nbsd-nat.c: Revert.
6013 * amd64-nat.c: Revert.
6014 * amd64-linux-tdep.c: Revert.
6015 * amd64-linux-nat.c: Revert.
6016 * amd64-fbsd-tdep.c: Revert.
6017 * amd64-fbsd-nat.c: Revert.
6018 * amd64-dicos-tdep.c: Revert.
6019 * amd64-darwin-tdep.c: Revert.
6020 * amd64-bsd-nat.c: Revert.
6021 * alpha-tdep.c: Revert.
6022 * alpha-obsd-tdep.c: Revert.
6023 * alpha-nbsd-tdep.c: Revert.
6024 * alpha-mdebug-tdep.c: Revert.
6025 * alpha-linux-tdep.c: Revert.
6026 * alpha-linux-nat.c: Revert.
6027 * alpha-bsd-tdep.c: Revert.
6028 * alpha-bsd-nat.c: Revert.
6029 * aix-thread.c: Revert.
6030 * agent.c: Revert.
6031 * addrmap.c: Revert.
6032 * ada-varobj.c: Revert.
6033 * ada-valprint.c: Revert.
6034 * ada-typeprint.c: Revert.
6035 * ada-tasks.c: Revert.
6036 * ada-lang.c: Revert.
6037 * aarch64-tdep.c: Revert.
6038 * aarch64-ravenscar-thread.c: Revert.
6039 * aarch64-newlib-tdep.c: Revert.
6040 * aarch64-linux-tdep.c: Revert.
6041 * aarch64-linux-nat.c: Revert.
6042 * aarch64-fbsd-tdep.c: Revert.
6043 * aarch64-fbsd-nat.c: Revert.
6044 * aarch32-linux-nat.c: Revert.
6045
6046 2019-04-05 Tom Tromey <tom@tromey.com>
6047
6048 * ft32-tdep.c: Sort headers.
6049 * frv-tdep.c: Sort headers.
6050 * frv-linux-tdep.c: Sort headers.
6051 * frame.c: Sort headers.
6052 * frame-unwind.c: Sort headers.
6053 * frame-base.c: Sort headers.
6054 * fork-child.c: Sort headers.
6055 * findvar.c: Sort headers.
6056 * findcmd.c: Sort headers.
6057 * filesystem.c: Sort headers.
6058 * filename-seen-cache.h: Sort headers.
6059 * filename-seen-cache.c: Sort headers.
6060 * fbsd-tdep.c: Sort headers.
6061 * fbsd-nat.h: Sort headers.
6062 * fbsd-nat.c: Sort headers.
6063 * f-valprint.c: Sort headers.
6064 * f-typeprint.c: Sort headers.
6065 * f-lang.c: Sort headers.
6066 * extension.h: Sort headers.
6067 * extension.c: Sort headers.
6068 * extension-priv.h: Sort headers.
6069 * expprint.c: Sort headers.
6070 * exec.h: Sort headers.
6071 * exec.c: Sort headers.
6072 * exceptions.c: Sort headers.
6073 * event-top.c: Sort headers.
6074 * event-loop.c: Sort headers.
6075 * eval.c: Sort headers.
6076 * elfread.c: Sort headers.
6077 * dwarf2read.h: Sort headers.
6078 * dwarf2read.c: Sort headers.
6079 * dwarf2loc.c: Sort headers.
6080 * dwarf2expr.h: Sort headers.
6081 * dwarf2expr.c: Sort headers.
6082 * dwarf2-frame.c: Sort headers.
6083 * dwarf2-frame-tailcall.c: Sort headers.
6084 * dwarf-index-write.h: Sort headers.
6085 * dwarf-index-write.c: Sort headers.
6086 * dwarf-index-common.c: Sort headers.
6087 * dwarf-index-cache.h: Sort headers.
6088 * dwarf-index-cache.c: Sort headers.
6089 * dummy-frame.c: Sort headers.
6090 * dtrace-probe.c: Sort headers.
6091 * disasm.h: Sort headers.
6092 * disasm.c: Sort headers.
6093 * disasm-selftests.c: Sort headers.
6094 * dictionary.c: Sort headers.
6095 * dicos-tdep.c: Sort headers.
6096 * demangle.c: Sort headers.
6097 * dcache.h: Sort headers.
6098 * dcache.c: Sort headers.
6099 * darwin-nat.h: Sort headers.
6100 * darwin-nat.c: Sort headers.
6101 * darwin-nat-info.c: Sort headers.
6102 * d-valprint.c: Sort headers.
6103 * d-namespace.c: Sort headers.
6104 * d-lang.c: Sort headers.
6105 * ctf.c: Sort headers.
6106 * csky-tdep.c: Sort headers.
6107 * csky-linux-tdep.c: Sort headers.
6108 * cris-tdep.c: Sort headers.
6109 * cris-linux-tdep.c: Sort headers.
6110 * cp-valprint.c: Sort headers.
6111 * cp-support.c: Sort headers.
6112 * cp-namespace.c: Sort headers.
6113 * cp-abi.c: Sort headers.
6114 * corelow.c: Sort headers.
6115 * corefile.c: Sort headers.
6116 * continuations.c: Sort headers.
6117 * completer.h: Sort headers.
6118 * completer.c: Sort headers.
6119 * complaints.c: Sort headers.
6120 * coffread.c: Sort headers.
6121 * coff-pe-read.c: Sort headers.
6122 * cli-out.h: Sort headers.
6123 * cli-out.c: Sort headers.
6124 * charset.c: Sort headers.
6125 * c-varobj.c: Sort headers.
6126 * c-valprint.c: Sort headers.
6127 * c-typeprint.c: Sort headers.
6128 * c-lang.c: Sort headers.
6129 * buildsym.c: Sort headers.
6130 * buildsym-legacy.c: Sort headers.
6131 * build-id.h: Sort headers.
6132 * build-id.c: Sort headers.
6133 * btrace.c: Sort headers.
6134 * bsd-uthread.c: Sort headers.
6135 * breakpoint.h: Sort headers.
6136 * breakpoint.c: Sort headers.
6137 * break-catch-throw.c: Sort headers.
6138 * break-catch-syscall.c: Sort headers.
6139 * break-catch-sig.c: Sort headers.
6140 * blockframe.c: Sort headers.
6141 * block.c: Sort headers.
6142 * bfin-tdep.c: Sort headers.
6143 * bfin-linux-tdep.c: Sort headers.
6144 * bfd-target.c: Sort headers.
6145 * bcache.c: Sort headers.
6146 * ax-general.c: Sort headers.
6147 * ax-gdb.h: Sort headers.
6148 * ax-gdb.c: Sort headers.
6149 * avr-tdep.c: Sort headers.
6150 * auxv.c: Sort headers.
6151 * auto-load.c: Sort headers.
6152 * arm-wince-tdep.c: Sort headers.
6153 * arm-tdep.c: Sort headers.
6154 * arm-symbian-tdep.c: Sort headers.
6155 * arm-pikeos-tdep.c: Sort headers.
6156 * arm-obsd-tdep.c: Sort headers.
6157 * arm-nbsd-tdep.c: Sort headers.
6158 * arm-nbsd-nat.c: Sort headers.
6159 * arm-linux-tdep.c: Sort headers.
6160 * arm-linux-nat.c: Sort headers.
6161 * arm-fbsd-tdep.c: Sort headers.
6162 * arm-fbsd-nat.c: Sort headers.
6163 * arm-bsd-tdep.c: Sort headers.
6164 * arch-utils.c: Sort headers.
6165 * arc-tdep.c: Sort headers.
6166 * arc-newlib-tdep.c: Sort headers.
6167 * annotate.h: Sort headers.
6168 * annotate.c: Sort headers.
6169 * amd64-windows-tdep.c: Sort headers.
6170 * amd64-windows-nat.c: Sort headers.
6171 * amd64-tdep.c: Sort headers.
6172 * amd64-sol2-tdep.c: Sort headers.
6173 * amd64-obsd-tdep.c: Sort headers.
6174 * amd64-obsd-nat.c: Sort headers.
6175 * amd64-nbsd-tdep.c: Sort headers.
6176 * amd64-nbsd-nat.c: Sort headers.
6177 * amd64-nat.c: Sort headers.
6178 * amd64-linux-tdep.c: Sort headers.
6179 * amd64-linux-nat.c: Sort headers.
6180 * amd64-fbsd-tdep.c: Sort headers.
6181 * amd64-fbsd-nat.c: Sort headers.
6182 * amd64-dicos-tdep.c: Sort headers.
6183 * amd64-darwin-tdep.c: Sort headers.
6184 * amd64-bsd-nat.c: Sort headers.
6185 * alpha-tdep.c: Sort headers.
6186 * alpha-obsd-tdep.c: Sort headers.
6187 * alpha-nbsd-tdep.c: Sort headers.
6188 * alpha-mdebug-tdep.c: Sort headers.
6189 * alpha-linux-tdep.c: Sort headers.
6190 * alpha-linux-nat.c: Sort headers.
6191 * alpha-bsd-tdep.c: Sort headers.
6192 * alpha-bsd-nat.c: Sort headers.
6193 * aix-thread.c: Sort headers.
6194 * agent.c: Sort headers.
6195 * addrmap.c: Sort headers.
6196 * ada-varobj.c: Sort headers.
6197 * ada-valprint.c: Sort headers.
6198 * ada-typeprint.c: Sort headers.
6199 * ada-tasks.c: Sort headers.
6200 * ada-lang.c: Sort headers.
6201 * aarch64-tdep.c: Sort headers.
6202 * aarch64-ravenscar-thread.c: Sort headers.
6203 * aarch64-newlib-tdep.c: Sort headers.
6204 * aarch64-linux-tdep.c: Sort headers.
6205 * aarch64-linux-nat.c: Sort headers.
6206 * aarch64-fbsd-tdep.c: Sort headers.
6207 * aarch64-fbsd-nat.c: Sort headers.
6208 * aarch32-linux-nat.c: Sort headers.
6209
6210 2019-04-04 Tom Tromey <tom@tromey.com>
6211
6212 * varobj.c (varobj_create): Update.
6213 * rust-exp.y (struct rust_parser) <update_innermost_block,
6214 lookup_symbol>: New methods.
6215 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6216 Rename.
6217 (rust_parser::rust_lookup_type)
6218 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6219 * printcmd.c (display_command, do_one_display): Update.
6220 * parser-defs.h (struct parser_state) <parser_state>: Add
6221 "tracker" parameter.
6222 (block_tracker): New member.
6223 (class innermost_block_tracker) <innermost_block_tracker>: Add
6224 "types" parameter.
6225 <reset>: Remove method.
6226 (innermost_block): Don't declare.
6227 (null_post_parser): Update.
6228 * parse.c (innermost_block): Remove global.
6229 (write_dollar_variable): Update.
6230 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6231 Remove "tracker_types" parameter.
6232 (parse_expression): Add "tracker" parameter.
6233 (parse_expression_for_completion): Update.
6234 (null_post_parser): Add "tracker" parameter.
6235 * p-exp.y: Update rules.
6236 * m2-exp.y: Update rules.
6237 * language.h (struct language_defn) <la_post_parser>: Add
6238 "tracker" parameter.
6239 * go-exp.y: Update rules.
6240 * f-exp.y: Update rules.
6241 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6242 parameter.
6243 * d-exp.y: Update rules.
6244 * c-exp.y: Update rules.
6245 * breakpoint.c (set_breakpoint_condition): Create an
6246 innermost_block_tracker.
6247 (watch_command_1): Likewise.
6248 * ada-lang.c (resolve): Add "tracker" parameter.
6249 (resolve_subexp): Likewise.
6250 * ada-exp.y (write_var_from_sym): Update.
6251
6252 2019-04-04 Tom Tromey <tom@tromey.com>
6253
6254 * type-stack.h: New file.
6255 * type-stack.c: New file.
6256 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6257 type-stack.h.
6258 (insert_into_type_stack, insert_type, push_type, push_type_int)
6259 (insert_type_address_space, pop_type, pop_type_int)
6260 (pop_typelist, pop_type_stack, append_type_stack)
6261 (push_type_stack, get_type_stack, push_typelist)
6262 (follow_type_instance_flags, follow_types): Don't declare.
6263 * parse.c (type_stack): Remove global.
6264 (parse_exp_in_context): Update.
6265 (insert_into_type_stack, insert_type, push_type, push_type_int)
6266 (insert_type_address_space, pop_type, pop_type_int)
6267 (pop_typelist, pop_type_stack, append_type_stack)
6268 (push_type_stack, get_type_stack, push_typelist)
6269 (follow_type_instance_flags, follow_types): Remove (moved to
6270 type-stack.c).
6271 * f-exp.y (type_stack): New global.
6272 Update rules.
6273 (push_kind_type, f_parse): Update.
6274 * d-exp.y (type_stack): New global.
6275 Update rules.
6276 (d_parse): Update.
6277 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6278 Update rules.
6279 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6280 (HFILES_NO_SRCDIR): Add type-stack.h.
6281
6282 2019-04-04 Tom Tromey <tom@tromey.com>
6283
6284 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6285 (rust_parser::convert_ast_to_expression, rust_parse)
6286 (rust_lex_test_completion, rust_lex_tests): Update.
6287 * parser-defs.h (struct expr_completion_state): New.
6288 (struct parser_state) <parser_state>: Add completion parameter.
6289 <mark_struct_expression, mark_completion_tag>: New methods.
6290 <parse_completion, m_completion_state>: New members.
6291 (prefixify_expression, null_post_parser): Update.
6292 (mark_struct_expression, mark_completion_tag): Don't declare.
6293 * parse.c (parse_completion, expout_last_struct)
6294 (expout_tag_completion_type, expout_completion_name): Remove
6295 globals.
6296 (parser_state::mark_struct_expression)
6297 (parser_state::mark_completion_tag): Now methods.
6298 (prefixify_expression): Add last_struct parameter.
6299 (prefixify_subexp): Likewise.
6300 (parse_exp_1): Update.
6301 (parse_exp_in_context): Add cstate parameter. Update.
6302 (parse_expression_for_completion): Create an
6303 expr_completion_state.
6304 (null_post_parser): Add "completion" parameter.
6305 * p-exp.y: Update rules.
6306 (yylex): Update.
6307 * language.h (struct language_defn) <la_post_parser>: Add
6308 "completing" parameter.
6309 * go-exp.y: Update rules.
6310 (lex_one_token): Update.
6311 * expression.h (parse_completion): Don't declare.
6312 * d-exp.y: Update rules.
6313 (lex_one_token): Update rules.
6314 * c-exp.y: Update rules.
6315 (lex_one_token): Update.
6316 * ada-lang.c (resolve): Add "parse_completion" parameter.
6317 (resolve_subexp): Likewise.
6318 (ada_resolve_function): Likewise.
6319
6320 2019-04-04 Tom Tromey <tom@tromey.com>
6321
6322 * parser-defs.h (struct parser_state) <start_arglist,
6323 end_arglist>: New methods.
6324 <arglist_len, m_funcall_chain>: New members.
6325 (arglist_len, start_arglist, end_arglist): Don't declare.
6326 * parse.c (arglist_len, funcall_chain): Remove global.
6327 (start_arglist, end_arglist): Remove functions.
6328 (parse_exp_in_context): Update.
6329 * p-exp.y: Update rules.
6330 * m2-exp.y: Update rules.
6331 * go-exp.y: Update rules.
6332 * f-exp.y: Update rules.
6333 * d-exp.y: Update rules.
6334 * c-exp.y: Update rules.
6335
6336 2019-04-04 Tom Tromey <tom@tromey.com>
6337
6338 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6339 lex_operator, push_back>: New methods.
6340 Update all rules.
6341 (rust_parser::lex_hex, lex_escape): Rename and update.
6342 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6343 (rust_parser::lex_operator): Rename and update.
6344 (rust_parser::lex_number, rustyylex, rustyyerror)
6345 (rust_lex_test_init, rust_lex_test_sequence)
6346 (rust_lex_test_push_back, rust_lex_tests): Update.
6347 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6348 parameter.
6349 <lexptr, prev_lexptr>: New members.
6350 (lexptr, prev_lexptr): Don't declare.
6351 * parse.c (lexptr, prev_lexptr): Remove globals.
6352 (parse_exp_in_context): Update.
6353 * p-exp.y (yylex, yyerror): Update.
6354 * m2-exp.y (parse_number, yylex, yyerror): Update.
6355 * go-exp.y (lex_one_token, yyerror): Update.
6356 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6357 * d-exp.y (lex_one_token, yyerror): Update.
6358 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6359 (lex_one_token, yyerror): Update.
6360 * ada-lex.l (YY_INPUT): Update.
6361 (rewind_to_char): Update.
6362 * ada-exp.y (yyerror): Update.
6363
6364 2019-04-04 Tom Tromey <tom@tromey.com>
6365
6366 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6367 * parser-defs.h (struct parser_state) <parser_state>: Add new
6368 parameter.
6369 <comma_terminates>: New member.
6370 (comma_terminates): Don't declare global.
6371 * parse.c (comma_terminates): Remove global.
6372 (parse_exp_in_context): Update.
6373 * p-exp.y (yylex): Update.
6374 * m2-exp.y (yylex): Update.
6375 * go-exp.y (lex_one_token): Update.
6376 * f-exp.y (yylex): Update.
6377 * d-exp.y (lex_one_token): Update.
6378 * c-exp.y (lex_one_token): Update.
6379 * ada-lex.l: Update.
6380
6381 2019-04-04 Tom Tromey <tom@tromey.com>
6382
6383 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6384 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6385 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6386 * parser-defs.h (paren_depth): Don't declare.
6387 * parse.c (paren_depth): Remove global.
6388 (parse_exp_in_context): Update.
6389 * p-exp.y (paren_depth): New global.
6390 (pascal_parse): Initialize it.
6391 * m2-exp.y (paren_depth): New global.
6392 (m2_parse): Initialize it.
6393 * go-exp.y (paren_depth): New global.
6394 (go_parse): Initialize it.
6395 * f-exp.y (paren_depth): New global.
6396 (f_parse): Initialize it.
6397 * d-exp.y (paren_depth): New global.
6398 (d_parse): Initialize it.
6399 * c-exp.y (paren_depth): New global.
6400 (c_parse): Initialize it.
6401 * ada-lex.l (paren_depth): New global.
6402 (lexer_init): Initialize it.
6403
6404 2019-04-04 Tom Tromey <tom@tromey.com>
6405
6406 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6407 (rust_parser::convert_ast_to_type)
6408 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6409 * parser-defs.h (struct parser_state) <parser_state>: Add
6410 parameters. Initialize new members.
6411 <expression_context_block, expression_context_pc>: New members.
6412 * parse.c (expression_context_block, expression_context_pc):
6413 Remove globals.
6414 (parse_exp_in_context): Update.
6415 * p-exp.y: Update all rules.
6416 (yylex): Update.
6417 * m2-exp.y: Update all rules.
6418 (yylex): Update.
6419 * go-exp.y (yylex): Update.
6420 * f-exp.y (yylex): Update.
6421 * d-exp.y: Update all rules.
6422 (yylex): Update.
6423 * c-exp.y: Update all rules.
6424 (lex_one_token, classify_name, yylex, c_parse): Update.
6425 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6426
6427 2019-04-04 Tom Tromey <tom@tromey.com>
6428
6429 * gdbarch.h, gdbarch.c: Rebuild.
6430 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6431 * stap-probe.h:
6432 (struct stap_parse_info): Replace "parser_state" with
6433 "expr_builder".
6434 * parser-defs.h (struct expr_builder): Rename from "parser_state".
6435 (parser_state): New class.
6436 * parse.c (expr_builder): Rename.
6437 (expr_builder::release): Rename.
6438 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
6439 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
6440 (write_exp_elt_longcst, write_exp_elt_floatcst)
6441 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
6442 (write_exp_string_vector, write_exp_bitstring)
6443 (write_exp_msymbol, mark_struct_expression)
6444 (write_dollar_variable)
6445 (insert_type_address_space, increase_expout_size): Replace
6446 "parser_state" with "expr_builder".
6447 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
6448 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
6449 "parser_state" with "expr_builder".
6450
6451 2019-04-04 Tom Tromey <tom@tromey.com>
6452
6453 * rust-exp.y: Replace "parse_language" with method call.
6454 * p-exp.y:
6455 (yylex): Replace "parse_language" with method call.
6456 * m2-exp.y:
6457 (yylex): Replace "parse_language" with method call.
6458 * go-exp.y (classify_name): Replace "parse_language" with method
6459 call.
6460 * f-exp.y (yylex): Replace "parse_language" with method call.
6461 * d-exp.y (lex_one_token): Replace "parse_language" with method
6462 call.
6463 * c-exp.y:
6464 (lex_one_token, classify_name, yylex): Replace "parse_language"
6465 with method call.
6466 * ada-exp.y (find_primitive_type, type_char)
6467 (type_system_address): Replace "parse_language" with method call.
6468
6469 2019-04-04 Tom Tromey <tom@tromey.com>
6470
6471 * rust-exp.y: Replace "parse_gdbarch" with method call.
6472 * parse.c (write_dollar_variable, insert_type_address_space):
6473 Replace "parse_gdbarch" with method call.
6474 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
6475 call.
6476 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
6477 call.
6478 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
6479 "parse_gdbarch" with method call.
6480 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
6481 with method call.
6482 * f-exp.y (parse_type, parse_f_type, yylex): Replace
6483 "parse_gdbarch" with method call.
6484 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
6485 "parse_gdbarch" with method call.
6486 * c-exp.y (parse_type, parse_number, classify_name): Replace
6487 "parse_gdbarch" with method call.
6488 * ada-lex.l: Replace "parse_gdbarch" with method call.
6489 * ada-exp.y (parse_type, find_primitive_type, type_char)
6490 (type_system_address): Replace "parse_gdbarch" with method call.
6491
6492 2019-04-04 Tom Tromey <tom@tromey.com>
6493
6494 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
6495 * stap-probe.c (stap_parse_argument): Update.
6496 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
6497 initial_size parameter.
6498 * rust-exp.y (rust_lex_tests): Update.
6499 * parse.c (parser_state): Update.
6500 (parse_exp_in_context): Update.
6501 * parser-defs.h (struct parser_state) <parser_state>: Remove
6502 "initial_size" parameter.
6503
6504 2019-04-04 Tom Tromey <tom@tromey.com>
6505
6506 * parser-defs.h (increase_expout_size): Don't declare.
6507 * parse.c (increase_expout_size): Now static.
6508
6509 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
6510
6511 * gnu-nat.c (gnu_nat_target::wait): Fix
6512 target_waitstatus_to_string call.
6513
6514 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
6515
6516 * eval.c (evaluate_subexp_standard): Handle internal functions
6517 during Fortran function call handling.
6518
6519 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
6520
6521 * NEWS: Mention new internal functions.
6522 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
6523 (read_base_type): Use dwarf2_init_complex_target_type.
6524 * value.c (creal_internal_fn): New function.
6525 (cimag_internal_fn): New function.
6526 (_initialize_values): Register new internal functions.
6527
6528 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6529
6530 * infrun.c (stop_all_threads): If debug_infrun, always
6531 trace the wait status after wait_one, using
6532 target_waitstatus_to_string and target_pid_to_str.
6533 (handle_inferior_event): Replace various trace of
6534 wait status kind by a single trace.
6535 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
6536 wait status kind image by target_waitstatus_to_string.
6537 * target/waitstatus.c (target_waitstatus_to_string): Fix
6538 obsolete comment.
6539
6540 2019-04-01 Tom Tromey <tromey@adacore.com>
6541
6542 PR symtab/23331:
6543 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
6544
6545 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
6546 Pedro Alves <palves@redhat.com>
6547
6548 * top.c (quit_force): Call 'finalize_values'.
6549 * value.c (finalize_values): New function.
6550 * value.h (finalize_values): Declare.
6551
6552 2019-03-30 Eli Zaretskii <eliz@gnu.org>
6553
6554 * NEWS: Announce $_gdb_major and $_gdb_minor.
6555
6556 * top.c (init_gdb_version_vars): New function.
6557 (gdb_init): Call init_gdb_version_vars.
6558
6559 2019-03-29 Tom Tromey <tromey@adacore.com>
6560
6561 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
6562 help text. Remove dead code.
6563
6564 2019-03-29 Keith Seitz <keiths@redhat.com>
6565
6566 From Siddhesh Poyarekar:
6567 * f-lang.h (f77_get_upperbound): Return LONGEST.
6568 (f77_get_lowerbound): Likewise.
6569 * f-typeprint.c (f_type_print_varspec_suffix): Expand
6570 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
6571 print them.
6572 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
6573 plongest to format print it.
6574 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
6575 (f77_get_upperbound): Likewise.
6576 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
6577 LOWER_BOUND to LONGEST.
6578 (f77_create_arrayprint_offset_tbl): Likewise.
6579
6580 2019-03-29 Keith Seitz <keiths@redhat.com>
6581
6582 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6583 %s/pulongest for TYPE_LENGTH instead of %d in format
6584 strings.
6585 * ada-typerint.c (ada_print_type): Likewise.
6586 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
6587 * compile/compile-c-support.c (generate_register_struct): Likewise.
6588 * gdbtypes.c (recursive_dump_type): Likewise.
6589 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
6590 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
6591 instead of %d in format strings.
6592 * riscv-tdep.c (riscv_type_alignment): Cast second argument
6593 to std::min to ULONGEST.
6594 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
6595 instead of %d in format strings.
6596 * tracepoint.c (info_scope_command): Likewise.
6597 * typeprint.c (print_offset_data::update)
6598 (print_offset_data::finish): Likewise.
6599 * xtensa-tdep.c (xtensa_store_return_value)
6600 (xtensa_push_dummy_call): Likewise.
6601
6602 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
6603
6604 * windows-nat.c (display_selector): Fixed format specifications
6605 for 64-bit Cygwin.
6606
6607 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6608
6609 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
6610
6611 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
6612
6613 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
6614 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
6615 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
6616 (nios2_linux_init_abi): Install it.
6617
6618 2019-03-28 Alan Hayward <alan.hayward@arm.com>
6619
6620 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
6621
6622 2019-03-28 Alan Hayward <alan.hayward@arm.com>
6623
6624 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
6625
6626 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6627 Tom Tromey <tromey@adacore.com>
6628
6629 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
6630
6631 2019-03-26 Joel Brobecker <brobecker@adacore.com>
6632
6633 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
6634 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
6635 method to compute the bounds of range types. Also print "[evaluated]"
6636 if the bounds' values come from a dynamic evaluation.
6637
6638 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
6639
6640 * cp-valprint.c (cp_print_value_fields): Don't print trailing
6641 whitespace when pretty printing is on.
6642
6643 2019-03-26 Alan Hayward <alan.hayward@arm.com>
6644
6645 * ppc-linux-nat.c: Add include.
6646
6647 2019-03-26 Alan Hayward <alan.hayward@arm.com>
6648
6649 * NEWS: Mention AArch64 Pointer Authentication.
6650
6651 2019-03-26 Alan Hayward <alan.hayward@arm.com>
6652
6653 * arm-linux-nat.c: Add include.
6654
6655 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
6656
6657 * source-cache.c (source_cache::get_source_lines): Re-read
6658 fullname after calling open_source_file.
6659
6660 2019-03-25 John Baldwin <jhb@FreeBSD.org>
6661
6662 * NEWS: Mention TLS support for FreeBSD.
6663
6664 2019-03-25 Tom Tromey <tromey@adacore.com>
6665
6666 * minsyms.c (BUNCH_SIZE): Update comment.
6667 (~minimal_symbol_reader): Remove old comment.
6668 (compact_minimal_symbols): Update comment.
6669 (minimal_symbol_reader::install): Remove old comment. Update
6670 other comments.
6671
6672 2019-03-25 Alan Hayward <alan.hayward@arm.com>
6673
6674 * s390-linux-nat.c: Add include.
6675
6676 2019-03-25 Alan Hayward <alan.hayward@arm.com>
6677
6678 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6679 Call linux_get_hwcap.
6680 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6681 Likewise.
6682 (aarch64_linux_get_hwcap): Remove function.
6683 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
6684 declaration.
6685 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
6686 linux_get_hwcap.
6687 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6688 * linux-tdep.c (linux_get_hwcap): Add function.
6689 (linux_get_hwcap2): Likewise.
6690 * linux-tdep.h (linux_get_hwcap): Add declaration.
6691 (linux_get_hwcap2): Likewise.
6692 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
6693 (ppc_linux_get_hwcap2): Likewise.
6694 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
6695 linux_get_hwcap.
6696 (ppc_linux_nat_target::insert_watchpoint): Likewise.
6697 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
6698 (ppc_linux_nat_target::read_description): Likewise.
6699 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
6700 * s390-linux-nat.c: Likewise.
6701 * s390-linux-tdep.c (s390_core_read_description): Likewise.
6702
6703 2019-03-24 Tom Tromey <tom@tromey.com>
6704
6705 * ada-lang.c (standard_lookup): Simplify initialization.
6706 (ada_lookup_symbol_nonlocal): Simplify return.
6707 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
6708 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
6709 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
6710 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
6711 initialization.
6712 * solib.c (solib_global_lookup): Simplify.
6713 * symtab.c (null_block_symbol): Remove.
6714 (symbol_cache_lookup): Simplify returns.
6715 (lookup_language_this): Simplify returns.
6716 (lookup_symbol_aux): Simplify return.
6717 (lookup_local_symbol): Simplify returns.
6718 (lookup_global_symbol_from_objfile): Simplify return.
6719 (lookup_symbol_in_objfile_symtabs)
6720 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
6721 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
6722 (lookup_static_symbol, lookup_global_symbol): Simplify return.
6723 * cp-namespace.c (cp_lookup_bare_symbol)
6724 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
6725 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
6726 (cp_lookup_nested_symbol): Don't use null_block_symbol.
6727 (cp_lookup_symbol_via_imports): Simplify initialization.
6728 (find_symbol_in_baseclass): Likewise.
6729 * symtab.h (null_block_symbol): Remove.
6730 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
6731 (d_lookup_nested_symbol, d_lookup_symbol_imports)
6732 (d_lookup_symbol_module): Likewise.
6733 (find_symbol_in_baseclass): Simplify initialization.
6734
6735 2019-03-24 Tom Tromey <tom@tromey.com>
6736
6737 * expression.h: Don't include symtab.h.
6738 (struct block): Forward declare.
6739
6740 2019-03-24 Tom Tromey <tom@tromey.com>
6741
6742 * c-exp.y (typebase): Remove casts.
6743 * gdbtypes.c (lookup_unsigned_typename, )
6744 (lookup_signed_typename): Remove cast.
6745 * eval.c (parse_to_comma_and_eval): Remove cast.
6746 * parse.c (write_dollar_variable): Remove cast.
6747 * block.h (struct block) <superblock>: Now const.
6748 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
6749 * psymtab.c (psym_map_matching_symbols): Make "block" const.
6750 (map_block): Make "block" const.
6751 * symfile.h (struct quick_symbol_functions)
6752 <map_matching_symbols>: Constify block argument to "callback".
6753 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
6754 const.
6755 (find_pc_sect_compunit_symtab): Make "b" const.
6756 (find_symbol_at_address): Likewise.
6757 (search_symbols): Likewise.
6758 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
6759 (dw2_debug_names_lookup_symbol): Likewise.
6760 (dw2_map_matching_symbols): Update.
6761 * p-valprint.c (pascal_val_print): Remove "block".
6762 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
6763 (aux_add_nonlocal_symbols): Make "block" const.
6764 (resolve_subexp): Remove cast.
6765 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
6766 const.
6767 (iterate_over_file_blocks): Likewise.
6768 * f-exp.y (%union) <bval>: Remove.
6769 * coffread.c (patch_opaque_types): Make "b" const.
6770 * spu-tdep.c (spu_catch_start): Make "block" const.
6771 * c-valprint.c (print_unpacked_pointer): Remove "block".
6772 * symmisc.c (dump_symtab_1): Make "b" const.
6773 (block_depth): Make "block" const.
6774 * d-exp.y (%union) <bval>: Remove.
6775 * cp-support.h (cp_lookup_rtti_type): Update.
6776 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
6777 * psymtab.c (psym_lookup_symbol): Make "block" const.
6778 (maintenance_check_psymtabs): Make "b" const.
6779 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
6780 (enumerate_locals, enumerate_args): Update.
6781 * python/py-symtab.c (stpy_global_block): Make "block" const.
6782 (stpy_static_block): Likewise.
6783 * inline-frame.c (block_starting_point_at): Make "new_block"
6784 const.
6785 * block.c (find_block_in_blockvector): Make return type const.
6786 (blockvector_for_pc_sect): Make "b" const.
6787 (find_block_in_blockvector): Make "b" const.
6788
6789 2019-03-23 Tom Tromey <tom@tromey.com>
6790
6791 * varobj.c (varobj_create): Update.
6792 * symfile.c (clear_symtab_users): Don't reset innermost_block.
6793 * printcmd.c (display_command, do_one_display): Don't reset
6794 innermost_block.
6795 * parser-defs.h (enum innermost_block_tracker_type): Move to
6796 expression.h.
6797 (innermost_block): Update comment.
6798 * parse.c (parse_exp_1): Add tracker_types parameter.
6799 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
6800 tracker_types parameter. Reset innermost_block.
6801 (parse_exp_in_context): Remove.
6802 (parse_expression_for_completion): Update.
6803 * objfiles.c (~objfile): Don't reset expression_context_block or
6804 innermost_block.
6805 * expression.h (enum innermost_block_tracker_type): Move from
6806 parser-defs.h.
6807 (parse_exp_1): Add tracker_types parameter.
6808 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
6809 reset innermost_block.
6810
6811 2019-03-23 Tom Tromey <tom@tromey.com>
6812
6813 * objfiles.h: Include bcache.h.
6814
6815 2019-03-23 Tom Tromey <tom@tromey.com>
6816
6817 * linespec.c (get_current_search_block): Use
6818 scoped_restore_current_language.
6819 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
6820
6821 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6822 Jiong Wang <jiong.wang@arm.com>
6823
6824 * aarch64-linux-tdep.c
6825 (aarch64_linux_iterate_over_regset_sections): Check for pauth
6826 section.
6827 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
6828
6829 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6830 Jiong Wang <jiong.wang@arm.com>
6831
6832 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
6833 instructions.
6834 (aarch64_analyze_prologue_test): Add PACIASP test.
6835 (aarch64_prologue_prev_register): Unmask PC value.
6836
6837 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6838 Jiong Wang <jiong.wang@arm.com>
6839
6840 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
6841 (aarch64_dwarf2_prev_register): Unmask PC value.
6842 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
6843 (aarch64_execute_dwarf_cfa_vendor_op): Check for
6844 DW_CFA_AARCH64_negate_ra_state.
6845 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
6846
6847 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6848 Jiong Wang <jiong.wang@arm.com>
6849
6850 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
6851 registers.
6852 (aarch64_pseudo_register_name): Likewise.
6853 (aarch64_pseudo_register_type): Likewise.
6854 (aarch64_pseudo_register_reggroup_p): Likewise.
6855 (aarch64_gdbarch_init): Add pauth registers.
6856 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
6857 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
6858 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
6859 (struct gdbarch_tdep): Add regnum for ra_state.
6860
6861 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6862 Jiong Wang <jiong.wang@arm.com>
6863
6864 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
6865
6866 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6867 Jiong Wang <jiong.wang@arm.com>
6868
6869 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
6870 function.
6871 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
6872 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
6873 (aarch64_gdbarch_init): Add puth registers.
6874 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
6875 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
6876 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
6877
6878 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6879 Jiong Wang <jiong.wang@arm.com>
6880
6881 * aarch64-linux-nat.c
6882 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
6883 * aarch64-linux-tdep.c
6884 (aarch64_linux_core_read_description): Likewise.
6885 (aarch64_linux_get_hwcap): New function.
6886 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
6887 (aarch64_linux_get_hwcap): New declaration.
6888
6889 2019-03-22 Alan Hayward <alan.hayward@arm.com>
6890 Jiong Wang <jiong.wang@arm.com>
6891
6892 * aarch64-linux-nat.c
6893 (aarch64_linux_nat_target::read_description): Add pauth param.
6894 * aarch64-linux-tdep.c
6895 (aarch64_linux_core_read_description): Likewise.
6896 * aarch64-tdep.c (struct target_desc): Add in pauth.
6897 (aarch64_read_description): Add pauth param.
6898 (aarch64_gdbarch_init): Likewise.
6899 * aarch64-tdep.h (aarch64_read_description): Likewise.
6900 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6901 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6902 * features/Makefile: Add new files.
6903 * features/aarch64-pauth.c: New file.
6904 * features/aarch64-pauth.xml: New file.
6905
6906 2019-03-20 Tom Tromey <tromey@adacore.com>
6907
6908 * infrun.c (handle_inferior_event): Rename from
6909 handle_inferior_event_1. Create a scoped_value_mark.
6910 (handle_inferior_event): Remove.
6911
6912 2019-03-19 Tom Tromey <tromey@adacore.com>
6913
6914 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
6915 * infrun.h (print_stop_event): Add "displays" parameter.
6916 * infrun.c (print_stop_event): Add "displays" parameter.
6917
6918 2019-03-19 Pedro Alves <palves@redhat.com>
6919
6920 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
6921 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
6922 to -1. Fix TABs vs spaces.
6923 (tui_ui_out::tui_ui_out): Don't initialize fields here.
6924 * tui/tui-out.h (tui_ui_out) Add intro comments.
6925 <m_line, m_start_of_line>: In-class initialize, and add describing
6926 comment.
6927
6928 2019-03-18 Alan Hayward <alan.hayward@arm.com>
6929
6930 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
6931 variable names.
6932 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
6933
6934 2019-03-18 Pedro Alves <palves@redhat.com>
6935 Eli Zaretskii <eliz@gnu.org>
6936
6937 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
6938 m_line and m_start_of_line.
6939
6940 2019-03-18 Eli Zaretskii <eliz@gnu.org>
6941
6942 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
6943 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
6944 it returns a newline. This fixes a regression in TU mode, whereby
6945 the next line is output on the same screen line as the user input.
6946
6947 2019-03-18 Tom Tromey <tromey@adacore.com>
6948
6949 * minsyms.c (minimal_symbol_reader::install): Remove call to
6950 obstack_blank.
6951
6952 2019-03-18 Pedro Alves <palves@redhat.com>
6953
6954 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
6955 New globals.
6956 (apply_style): New, factored out from ...
6957 (apply_ansi_escape): ... this. Handle reverse video mode.
6958 (tui_set_reverse_mode): New function.
6959 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
6960 * tui/tui-winsource.c (tui_show_source_line): Use
6961 tui_set_reverse_mode instead of setting A_STANDOUT.
6962 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
6963 New setter methods.
6964
6965 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
6966
6967 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
6968 Handle tabs.
6969
6970 2019-03-18 Tom Tromey <tromey@adacore.com>
6971
6972 * ada-lang.c (empty_array): Add "high" parameter.
6973 (ada_evaluate_subexp): Update.
6974
6975 2019-03-17 Sergei Trofimovich <siarheit@google.com>
6976
6977 * unittests/string_view-selftests.c: Define
6978 _initialize_string_view_selftests unconditionally.
6979
6980 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
6981
6982 PR gdb/24350
6983 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
6984
6985 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
6986
6987 PR gdb/24351
6988 * windows-nat.c (display_selector): Fix format specifiers.
6989
6990 2019-03-17 Eli Zaretskii <eliz@gnu.org>
6991
6992 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
6993 tui_refill_source_window instead of tui_refresh_win, to update the
6994 current execution line. This fixes redisplay of the current line
6995 when stepping through the code with "next" or "step".
6996
6997 2019-03-16 Eli Zaretskii <eliz@gnu.org>
6998
6999 * source-cache.c (source_cache::get_source_lines): Call
7000 find_source_lines to initialize s->nlines. This fixes vertical
7001 scrolling of TUI source window when the DOWN arrow is pressed.
7002
7003 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7004
7005 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7006 linux-thread-db.c (_initialize_thread_db): Likewise.
7007
7008 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7009
7010 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7011 wclrtoeol in tui_show_source_line". This reverts changes made in
7012 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7013
7014 2019-03-15 Tom Tromey <tom@tromey.com>
7015
7016 * symtab.h (struct minimal_symbol): Derive from
7017 general_symbol_info.
7018 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7019 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7020 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7021 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7022 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7023 (MSYMBOL_SEARCH_NAME): Update.
7024 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7025 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7026 * minsyms.c (minimal_symbol_reader::record_full): Update.
7027
7028 2019-03-15 Tom Tromey <tom@tromey.com>
7029
7030 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7031
7032 2019-03-15 Tom Tromey <tom@tromey.com>
7033
7034 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7035 unique_xmalloc_ptr.
7036 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7037 Update.
7038 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7039 (build_minimal_symbol_hash_tables)
7040 (minimal_symbol_reader::install): Update.
7041
7042 2019-03-15 Tom Tromey <tom@tromey.com>
7043
7044 * symtab.c (create_demangled_names_hash): Update.
7045 (symbol_set_names): Update.
7046 * objfiles.h (struct objfile_per_bfd_storage)
7047 <demangled_names_hash>: Now an htab_up.
7048 * objfiles.c (objfile_per_bfd_storage): Simplify.
7049
7050 2019-03-15 Tom Tromey <tom@tromey.com>
7051
7052 * objfiles.h (struct objfile_per_bfd_storage): Declare
7053 destructor.
7054 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7055 New.
7056 (get_objfile_bfd_data): Use new. Don't initialize
7057 language_of_main.
7058 (free_objfile_per_bfd_storage): Remove.
7059 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7060
7061 2019-03-15 Tom Tromey <tom@tromey.com>
7062
7063 * symfile.c (reread_symbols): Update.
7064 * objfiles.c (objfile::objfile): Update.
7065 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7066 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7067 comment.
7068 (minimal_symbol_reader::install): Update.
7069 (terminate_minimal_symbol_table): Remove.
7070 * jit.c (jit_object_close_impl): Update.
7071
7072 2019-03-15 Tom Tromey <tom@tromey.com>
7073
7074 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7075 initializations.
7076
7077 2019-03-15 Tom Tromey <tom@tromey.com>
7078
7079 * objfiles.h (struct objfile_per_bfd_storage)
7080 <demangled_hash_languages>: Now a bitset.
7081 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7082 (lookup_minimal_symbol): Update.
7083
7084 2019-03-15 Tom Tromey <tom@tromey.com>
7085
7086 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7087 Don't return the symbol.
7088 * coffread.c (record_minimal_symbol): Use record_full.
7089
7090 2019-03-14 Eli Zaretskii <eliz@gnu.org>
7091
7092 The MS-Windows port of ncurses fails to switch to a color pair if
7093 one or both of the colors are the implicit default colors. This
7094 change records the default colors when TUI is initialized, and
7095 then specifies them explicitly when a color pair uses the default
7096 colors. This allows color styling in TUI mode on MS-Windows.
7097
7098 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7099 ncurses_norm_attr.
7100 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7101 colors in ncurses_norm_attr.
7102 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7103 "none", replace it with the default color recorded in
7104 ncurses_norm_attr.
7105
7106 2019-03-14 Tom Tromey <tromey@adacore.com>
7107
7108 * source-cache.h (class source_cache) <get_source_lines>: Return
7109 std::string.
7110 * source-cache.c (source_cache::extract_lines): Handle case where
7111 first_pos==npos. Return std::string.
7112 (source_cache::get_source_lines): Update.
7113
7114 2019-03-14 Tom Tromey <tromey@adacore.com>
7115
7116 * NEWS: Add item for "style sources" commands.
7117 * source-cache.c (source_cache::get_source_lines): Check
7118 source_styling.
7119 * cli/cli-style.c (source_styling): New global.
7120 (_initialize_cli_style): Add "style sources" commands.
7121 (show_style_sources): New function.
7122 * cli/cli-style.h (source_styling): Declare.
7123
7124 2019-03-14 Pedro Alves <palves@redhat.com>
7125 Tom Tromey <tromey@adacore.com>
7126
7127 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7128 * tui/tui-winsource.c (tui_refill_source_window): New function,
7129 from...
7130 (tui_horizontal_source_scroll): ... here. Move some logic.
7131 * cli/cli-style.c (set_style_enabled): Notify new observable.
7132 * tui/tui-hooks.c (tui_redisplay_source): New function.
7133 (tui_attach_detach_observers): Attach or detach
7134 tui_redisplay_source.
7135 * observable.h (source_styling_changed): New observable.
7136 * observable.c: Define source_styling_changed observable.
7137
7138 2019-03-13 Tom Tromey <tromey@adacore.com>
7139
7140 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7141 (i386_gnu_nat_target::store_registers): Update.
7142 * target-debug.h (target_debug_print_std_string): New macro.
7143 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7144 * windows-tdep.c (display_one_tib): Update.
7145 * tui/tui-stack.c (tui_make_status_line): Update.
7146 * top.c (print_inferior_quit_action): Update.
7147 * thread.c (thr_try_catch_cmd): Update.
7148 (add_thread_with_info): Update.
7149 (thread_target_id_str): Update.
7150 (thr_try_catch_cmd): Update.
7151 (thread_command): Update.
7152 (thread_find_command): Update.
7153 * record-btrace.c (record_btrace_target::info_record)
7154 (record_btrace_resume_thread, record_btrace_target::resume)
7155 (record_btrace_cancel_resume, record_btrace_step_thread)
7156 (record_btrace_target::wait, record_btrace_target::wait)
7157 (record_btrace_target::wait, record_btrace_target::stop): Update.
7158 * progspace.c (print_program_space): Update.
7159 * process-stratum-target.c
7160 (process_stratum_target::thread_address_space): Update.
7161 * linux-fork.c (linux_fork_mourn_inferior)
7162 (detach_checkpoint_command, info_checkpoints_command)
7163 (linux_fork_context): Update.
7164 (linux_fork_detach): Update.
7165 (class scoped_switch_fork_info): Update.
7166 (delete_checkpoint_command): Update.
7167 * infrun.c (follow_fork_inferior): Update.
7168 (follow_fork_inferior): Update.
7169 (proceed_after_vfork_done): Update.
7170 (handle_vfork_child_exec_or_exit): Update.
7171 (follow_exec): Update.
7172 (displaced_step_prepare_throw): Update.
7173 (displaced_step_restore): Update.
7174 (start_step_over): Update.
7175 (resume_1): Update.
7176 (clear_proceed_status_thread): Update.
7177 (proceed): Update.
7178 (print_target_wait_results): Update.
7179 (do_target_wait): Update.
7180 (context_switch): Update.
7181 (stop_all_threads): Update.
7182 (restart_threads): Update.
7183 (finish_step_over): Update.
7184 (handle_signal_stop): Update.
7185 (switch_back_to_stepped_thread): Update.
7186 (keep_going_pass_signal): Update.
7187 (print_exited_reason): Update.
7188 (normal_stop): Update.
7189 * inferior.c (inferior_pid_to_str): Change return type.
7190 (print_selected_inferior): Update.
7191 (add_inferior): Update.
7192 (detach_inferior): Update.
7193 * dummy-frame.c (fprint_dummy_frames): Update.
7194 * dcache.c (dcache_info_1): Update.
7195 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7196 (btrace_fetch, btrace_clear): Update.
7197 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7198 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7199 type.
7200 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7201 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7202 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7203 * gdbarch.c, gdbarch.h: Rebuild.
7204 * gdbarch.sh (core_pid_to_str): Change return type.
7205 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7206 return type.
7207 (windows_nat_target::pid_to_str): Change return type.
7208 (windows_delete_thread): Update.
7209 (windows_nat_target::attach): Update.
7210 (windows_nat_target::files_info): Update.
7211 * target-delegates.c: Rebuild.
7212 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7213 return type.
7214 (sol_thread_target::pid_to_str): Change return type.
7215 * remote.c (class remote_target) <pid_to_str>: Change return
7216 type.
7217 (remote_target::pid_to_str): Change return type.
7218 (extended_remote_target::attach, remote_target::remote_stop_ns)
7219 (remote_target::remote_notif_remove_queued_reply)
7220 (remote_target::push_stop_reply, remote_target::disable_btrace):
7221 Update.
7222 (extended_remote_target::attach): Update.
7223 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7224 type.
7225 (gdbsim_target::pid_to_str): Change return type.
7226 * ravenscar-thread.c (struct ravenscar_thread_target)
7227 <pid_to_str>: Change return type.
7228 (ravenscar_thread_target::pid_to_str): Change return type.
7229 * procfs.c (class procfs_target) <pid_to_str>: Change return
7230 type.
7231 (procfs_target::pid_to_str): Change return type.
7232 (procfs_target::attach): Update.
7233 (procfs_target::detach): Update.
7234 (procfs_target::fetch_registers): Update.
7235 (procfs_target::store_registers): Update.
7236 (procfs_target::wait): Update.
7237 (procfs_target::files_info): Update.
7238 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7239 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7240 return type.
7241 (nto_procfs_target::pid_to_str): Change return type.
7242 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7243 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7244 return type.
7245 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7246 (exit_lwp): Update.
7247 (attach_proc_task_lwp_callback, get_detach_signal)
7248 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7249 (linux_nat_target::resume, wait_lwp, stop_callback)
7250 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7251 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7252 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7253 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7254 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7255 type.
7256 (inf_ptrace_target::attach): Update.
7257 (inf_ptrace_target::files_info): Update.
7258 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7259 type.
7260 (go32_nat_target::pid_to_str): Change return type.
7261 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7262 (gnu_nat_target::wait): Update.
7263 (gnu_nat_target::wait): Update.
7264 (gnu_nat_target::resume): Update.
7265 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7266 (fbsd_nat_target::wait): Update.
7267 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7268 type.
7269 (darwin_nat_target::attach): Update.
7270 * corelow.c (class core_target) <pid_to_str>: Change return type.
7271 (core_target::pid_to_str): Change return type.
7272 * target.c (normal_pid_to_str): Change return type.
7273 (default_pid_to_str): Likewise.
7274 (target_pid_to_str): Change return type.
7275 (target_translate_tls_address): Update.
7276 (target_announce_detach): Update.
7277 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7278 return type.
7279 (bsd_uthread_target::pid_to_str): Change return type.
7280 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7281 type.
7282 (bsd_kvm_target::pid_to_str): Change return type.
7283 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7284 return type.
7285 (aix_thread_target::pid_to_str): Change return type.
7286 * target.h (struct target_ops) <pid_to_str>: Change return type.
7287 (target_pid_to_str, normal_pid_to_str): Likewise.
7288 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7289 type.
7290 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7291 type.
7292 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7293 return type.
7294 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7295 type.
7296 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7297 type.
7298 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7299 return type.
7300
7301 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7302
7303 * NEWS: Mention that the new default MI version is 3. Mention
7304 changes to the output of commands and events that deal with
7305 multi-location breakpoints.
7306 * breakpoint.c: Include "mi/mi-out.h".
7307 (print_one_breakpoint): Change output syntax if using MI version
7308 >= 3.
7309 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7310 New.
7311 (mi_multi_location_breakpoint_output_fixed): New.
7312 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7313 (mi_cmd_fix_multi_location_breakpoint_output): New.
7314 (mi_multi_location_breakpoint_output_fixed): New.
7315 * mi/mi-cmds.c (mi_cmds): Register command
7316 -fix-multi-location-breakpoint-output.
7317 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7318 interpreter "mi".
7319
7320 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7321
7322 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7323 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7324 instantiate mi_ui_out based on interpreter name.
7325 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7326 * mi/mi-main.c (mi_load_progress): Likewise.
7327
7328 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7329
7330 * NEWS: Combine separate "New targets" sections for 8.3.
7331
7332 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7333
7334 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7335 (ppcfbsd_init_abi): Install gdbarch
7336 "fetch_tls_load_module_address" and "get_thread_local_address"
7337 methods.
7338
7339 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7340
7341 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7342 (riscv_fbsd_init_abi): Install gdbarch
7343 "fetch_tls_load_module_address" and "get_thread_local_address"
7344 methods.
7345
7346 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7347
7348 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7349 (i386fbsd_init_abi): Install gdbarch
7350 "fetch_tls_load_module_address" and "get_thread_local_address"
7351 methods.
7352
7353 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7354
7355 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7356 (amd64fbsd_init_abi): Install gdbarch
7357 "fetch_tls_load_module_address" and "get_thread_local_address"
7358 methods.
7359
7360 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7361
7362 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7363 (struct fbsd_pspace_data): New type.
7364 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7365 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7366 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7367 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7368 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7369
7370 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7371
7372 * gdbtypes.c (lookup_struct_elt): New function.
7373 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7374 * gdbtypes.h (struct struct_elt): New type.
7375 (lookup_struct_elt): New prototype.
7376
7377 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7378
7379 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7380 remove disabled code block.
7381
7382 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7383
7384 * gdbarch.sh (get_thread_local_address): New method.
7385 * gdbarch.h, gdbarch.c: Regenerate.
7386 * target.c (target_translate_tls_address): Use
7387 gdbarch_get_thread_local_address if present instead of
7388 target::get_thread_local_address.
7389
7390 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7391
7392 * target.h (target::get_thread_local_address): Update comment.
7393
7394 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7395
7396 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7397 objfile->separate_debug_objfile_backlink if not NULL.
7398
7399 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7400
7401 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7402 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7403 (amd64bsd_store_inferior_registers): Likewise.
7404 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7405 Enable segment base registers.
7406 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7407 PT_GETFSBASE and PT_GETGSBASE.
7408 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7409 PT_SETGSBASE.
7410 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7411 segment base registers.
7412 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7413
7414 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7415
7416 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7417 Update calls to i386_target_description to add 'segments'
7418 parameter.
7419 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7420 add segment base registers.
7421 * arch/i386.c (i386_create_target_description): Add 'segments'
7422 parameter to enable segment base registers.
7423 * arch/i386.h (i386_create_target_description): Likewise.
7424 * features/i386/32bit-segments.xml: New file.
7425 * features/i386/32bit-segments.c: Generate.
7426 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7427 call to i386_target_description to add 'segments' parameter.
7428 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7429 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7430 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7431 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
7432 if feature is present.
7433 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
7434 Add 'segments' parameter to call to i386_target_description.
7435 (i386_target_description): Add 'segments' parameter to enable
7436 segment base registers.
7437 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
7438 to call to i386_target_description.
7439 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
7440 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
7441 Define I386_NUM_REGS.
7442 (i386_target_description): Add 'segments' parameter to enable
7443 segment base registers.
7444
7445 2019-03-12 Eli Zaretskii <eliz@gnu.org>
7446
7447 PR/24325
7448 * source-cache.c: #undef open and close, to avoid unresolved
7449 externals during linking.
7450
7451 2019-03-12 Tom Tromey <tromey@adacore.com>
7452
7453 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
7454 const. Add initializers.
7455 (_initialize_remote): Don't initialize ptid globals.
7456
7457 2019-03-12 Pedro Alves <palves@redhat.com>
7458
7459 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
7460
7461 2019-03-12 Pedro Alves <palves@redhat.com>
7462
7463 * cp-name-parser.y (main): Remove unused 'len' variable.
7464
7465 2019-03-12 Tom Tromey <tromey@adacore.com>
7466
7467 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
7468 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
7469
7470 2019-03-12 Tom Tromey <tromey@adacore.com>
7471
7472 * linux-nat.c (iterate_over_lwps): Update.
7473 (stop_callback): Remove parameter.
7474 (stop_wait_callback, detach_callback, resume_set_callback)
7475 (select_singlestep_lwp_callback, set_ignore_sigint)
7476 (status_callback, resumed_callback, resume_clear_callback)
7477 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
7478 data parameter.
7479 (linux_nat_target::detach, linux_nat_target::resume)
7480 (linux_stop_and_wait_all_lwps, select_event_lwp)
7481 (linux_nat_filter_event, linux_nat_wait_1)
7482 (linux_nat_target::kill, linux_nat_target::stop)
7483 (linux_nat_target::stop): Update.
7484 (linux_nat_resume_callback): Change type.
7485 (resume_stopped_resumed_lwps, count_events_callback)
7486 (select_event_lwp_callback): Likewise.
7487 (linux_stop_lwp, linux_nat_stop_lwp): Update.
7488 * arm-linux-nat.c (struct update_registers_data): Remove.
7489 (update_registers_callback): Change type.
7490 (arm_linux_insert_hw_breakpoint1): Update.
7491 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
7492 parameter.
7493 (x86_linux_dr_set_addr): Update.
7494 (x86_linux_dr_set_control): Update.
7495 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
7496 (iterate_over_lwps): Use gdb::function_view.
7497 * nat/aarch64-linux-hw-point.c (struct
7498 aarch64_dr_update_callback_param): Remove.
7499 (debug_reg_change_callback): Change type.
7500 (aarch64_notify_debug_reg_change): Update.
7501 * s390-linux-nat.c (s390_refresh_per_info): Update.
7502
7503 2019-03-11 Tom Tromey <tromey@adacore.com>
7504
7505 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
7506 redundant assignment to "this_cu".
7507
7508 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7509
7510 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
7511
7512 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7513
7514 * gdbtypes.c (rank_one_type_parm_set): New function extracted
7515 from...
7516 (rank_one_type): ... this.
7517
7518 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7519
7520 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
7521 from...
7522 (rank_one_type): ... this.
7523
7524 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7525
7526 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
7527 from...
7528 (rank_one_type): ... this.
7529
7530 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7531
7532 * gdbtypes.c (rank_one_type_parm_float): New function extracted
7533 from...
7534 (rank_one_type): ... this.
7535
7536 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7537
7538 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
7539 from...
7540 (rank_one_type): ... this.
7541
7542 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7543
7544 * gdbtypes.c (rank_one_type_parm_range): New function extracted
7545 from...
7546 (rank_one_type): ... this.
7547
7548 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7549
7550 * gdbtypes.c (rank_one_type_parm_char): New function extracted
7551 from...
7552 (rank_one_type): ... this.
7553
7554 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7555
7556 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
7557 from...
7558 (rank_one_type): ... this.
7559
7560 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7561
7562 * gdbtypes.c (rank_one_type_parm_int): New function extracted
7563 from...
7564 (rank_one_type): ... this.
7565
7566 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7567
7568 * gdbtypes.c (rank_one_type_parm_func): New function extracted
7569 from...
7570 (rank_one_type): ... this.
7571
7572 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7573
7574 * gdbtypes.c (rank_one_type_parm_array): New function extracted
7575 from...
7576 (rank_one_type): ... this.
7577
7578 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
7579
7580 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
7581 from...
7582 (rank_one_type): ... this.
7583
7584 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7585
7586 * inferior.c (initialize_inferiors): Ensure 'help set/show print
7587 inferior-events' shows the example events.
7588
7589 2019-03-08 Eli Zaretskii <eliz@gnu.org>
7590
7591 Support styling on native MS-Windows console
7592
7593 PR/24315
7594 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
7595 on MS-Windows if $TERM is not defined.
7596
7597 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
7598
7599 * posix-hdep.c (gdb_console_fputs):
7600 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
7601 functions.
7602 * ui-file.h (gdb_console_fputs): Add prototype.
7603
7604 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
7605 back to fputs only if the former returns zero.
7606
7607 2019-03-07 Tom Tromey <tom@tromey.com>
7608
7609 * symmisc.c (print_symbol_bcache_statistics): Update.
7610 (print_objfile_statistics): Update.
7611 * symfile.c (allocate_symtab): Update.
7612 * stabsread.c: Don't include bcache.h.
7613 * psymtab.h (struct psymbol_bcache): Don't declare.
7614 (class psymtab_storage) <psymbol_cache>: Now a bcache.
7615 (psymbol_bcache_init, psymbol_bcache_free)
7616 (psymbol_bcache_get_bcache): Don't declare.
7617 * psymtab.c (struct psymbol_bcache): Remove.
7618 (psymtab_storage::psymtab_storage): Update.
7619 (psymtab_storage::~psymtab_storage): Update.
7620 (psymbol_bcache_init, psymbol_bcache_free)
7621 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
7622 (add_psymbol_to_bcache): Update.
7623 (allocate_psymtab): Update.
7624 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7625 macro_cache>: No longer pointers.
7626 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
7627 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
7628 * macrotab.c (macro_bcache): Update.
7629 * macroexp.c: Don't include bcache.h.
7630 * gdbtypes.c (check_types_worklist): Update.
7631 (types_deeply_equal): Remove TRY/CATCH. Update.
7632 * elfread.c (elf_symtab_read): Update.
7633 * dwarf2read.c: Don't include bcache.h.
7634 * buildsym.c (buildsym_compunit::get_macro_table): Update.
7635 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
7636 (print_bcache_statistics, bcache_memory_used): Don't declare.
7637 (struct bcache): Move from bcache.c. Add constructor, destructor,
7638 methods. Rename all data members.
7639 * bcache.c (struct bcache): Move to bcache.h.
7640 (bcache::expand_hash_table): Rename from expand_hash_table.
7641 (bcache): Remove.
7642 (bcache::insert): Rename from bcache_full.
7643 (bcache::compare): Rename from bcache_compare.
7644 (bcache_xmalloc): Remove.
7645 (bcache::~bcache): Rename from bcache_xfree.
7646 (bcache::print_statistics): Rename from print_bcache_statistics.
7647 (bcache::memory_used): Rename from bcache_memory_used.
7648
7649 2019-03-07 Pedro Alves <palves@redhat.com>
7650
7651 * infrun.c (normal_stop): Also check for
7652 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
7653
7654 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
7655
7656 * f-lang.c (value_from_host_double): Moved to...
7657 * value.c (value_from_host_double): ...here.
7658 * value.h (value_from_host_double): Declare.
7659 * guile/scm-math.c (vlscm_convert_typed_number): Use
7660 value_from_host_double.
7661 (vlscm_convert_number): Likewise.
7662 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
7663 * python/py-value.c (convert_value_from_python): Likewise.
7664
7665 2019-03-06 Tom Tromey <tom@tromey.com>
7666
7667 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
7668
7669 2019-03-06 Tom Tromey <tom@tromey.com>
7670
7671 * utils.h (free_current_contents): Don't declare.
7672 * utils.c (free_current_contents): Remove.
7673
7674 2019-03-06 Tom Tromey <tom@tromey.com>
7675
7676 * top.c (quit_force): Update.
7677 * main.c (captured_command_loop): Update.
7678 * common/new-op.c (operator new): Update.
7679 * common/common-exceptions.c (struct catcher)
7680 <save_cleanup_chain>: Remove member.
7681 (exceptions_state_mc_init): Update.
7682 (exception_try_scope_entry): Return nullptr.
7683 (exception_try_scope_exit, exception_rethrow)
7684 (throw_exception_sjlj, throw_exception_cxx): Update.
7685 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
7686 (all_cleanups, do_cleanups, discard_cleanups)
7687 (discard_final_cleanups, save_cleanups, save_final_cleanups)
7688 (restore_cleanups, restore_final_cleanups): Don't declare.
7689 (do_final_cleanups): Remove parameter.
7690 * common/cleanups.c (cleanup_chain, make_cleanup)
7691 (make_cleanup_dtor, all_cleanups, do_cleanups)
7692 (discard_my_cleanups, discard_cleanups)
7693 (discard_final_cleanups, save_my_cleanups, save_cleanups)
7694 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
7695 (null_cleanup): Remove.
7696 (do_final_cleanups): Remove parameter.
7697
7698 2019-03-06 Tom Tromey <tom@tromey.com>
7699
7700 * remote.c (remote_target::remote_parse_stop_reply): Use
7701 unique_xmalloc_ptr.
7702
7703 2019-03-06 Tom Tromey <tom@tromey.com>
7704
7705 * stabsread.c (struct stabs_field_info): Rename from field_info.
7706 <list, fnlist>: Add initializers.
7707 <obstack>: New member.
7708 (read_member_functions, read_struct_fields, read_baseclasses):
7709 Allocate on obstack. Don't use cleanups.
7710 (read_one_struct_field, read_member_functions, read_struct_fields)
7711 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
7712 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
7713 (read_struct_type): Update.
7714
7715 2019-03-06 Tom Tromey <tom@tromey.com>
7716
7717 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
7718 * common/filestuff.h (make_cleanup_close): Don't declare.
7719 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
7720 Remove.
7721
7722 2019-03-06 Tom Tromey <tom@tromey.com>
7723
7724 * solib-aix.c: Use make_scope_exit.
7725
7726 2019-03-06 Tom Tromey <tom@tromey.com>
7727
7728 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
7729 Use make_scope_exit.
7730
7731 2019-03-06 Tom Tromey <tom@tromey.com>
7732
7733 * solib-svr4.c (disable_probes_interface): Remove parameter.
7734 (svr4_handle_solib_event): Use make_scope_exit.
7735
7736 2019-03-06 Tom Tromey <tom@tromey.com>
7737
7738 * remote.c (struct stop_reply_deleter): Remove.
7739 (stop_reply_up): Update.
7740 (struct stop_reply): Derive from notif_event. Don't typedef.
7741 <regcache>: Now a std::vector.
7742 (stop_reply_xfree): Remove.
7743 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
7744 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
7745 (remote_target::discard_pending_stop_replies): Use delete.
7746 (remote_target::remote_parse_stop_reply): Update.
7747 (remote_target::process_stop_reply): Update.
7748 * remote-notif.h (struct notif_event): Add virtual destructor.
7749 Remove "dtr" member.
7750 (struct notif_client) <alloc_event>: Return a unique_ptr.
7751 (notif_event_xfree): Don't declare.
7752 (notif_event_up): New typedef.
7753 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
7754 (notif_event_xfree, do_notif_event_xfree): Remove.
7755 (remote_notif_state_xfree): Update.
7756
7757 2019-03-06 Tom Tromey <tom@tromey.com>
7758
7759 * infrun.c (displaced_step_clear_cleanup): Now a
7760 forward_scope_exit type.
7761 (displaced_step_prepare_throw): Update.
7762 (displaced_step_fixup): Update.
7763
7764 2019-03-06 Tom Tromey <tom@tromey.com>
7765
7766 * inferior.h (class inferior): Update comment.
7767 * gdbthread.h (class thread_info): Update comment.
7768
7769 2019-03-06 Joel Brobecker <brobecker@adacore.com>
7770 Tom Tromey <tom@tromey.com>
7771
7772 * stabsread.h (struct stab_section_list): Remove.
7773 (coffstab_build_psymtabs): Update.
7774 * dbxread.c (symbuf_sections): Now a std::vector.
7775 (sect_idx): New global.
7776 (fill_symbuf): Update.
7777 (coffstab_build_psymtabs): Change type of stabsects parameter.
7778 Update.
7779 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
7780 std::vector.
7781 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
7782 (coff_locate_sections): Update.
7783 (coff_symfile_read): Remove cleanups. Update.
7784 (init_stringtab): Add storage parameter.
7785 (free_stringtab, free_stringtab_cleanup): Remove.
7786 (init_lineno): Add storage parameter.
7787 (free_linetab, free_linetab_cleanup): Remove.
7788
7789 2019-03-06 Pedro Alves <palves@redhat.com>
7790
7791 * linux-fork.c (fork_info::clobber_regs): Delete.
7792 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
7793 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
7794 comment. Adjust.
7795 (scoped_switch_fork_info::scoped_switch_fork_info)
7796 (checkpoint_command, linux_fork_context): Adjust
7797 fork_save_infrun_state calls.
7798
7799 2019-03-06 Pedro Alves <palves@redhat.com>
7800
7801 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
7802 (inf_has_multiple_threads): Return 'bool' and rewrite using
7803 inferior_info::threads().
7804
7805 2019-03-06 Pedro Alves <palves@redhat.com>
7806
7807 * linux-fork.c: Include <list>.
7808 (fork_list): Now a std::list instance.
7809 (fork_info): Add ctor, dtor, and in-class initialize all fields.
7810 (forks_exist_p, find_last_fork): Adjust.
7811 (new_fork): Delete.
7812 (one_fork_p): New.
7813 (add_fork): Adjust.
7814 (free_fork): Delete, folded into fork_info::~fork_info().
7815 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
7816 Adjust.
7817 (init_fork_list): Delete.
7818 (linux_fork_killall, linux_fork_mourn_inferior)
7819 (linux_fork_detach, info_checkpoints_command): Adjust.
7820 (_initialize_linux_fork): No longer call init_fork_list.
7821
7822 2019-03-06 Pedro Alves <palves@redhat.com>
7823
7824 * linux-fork.c (new_fork): New, split out of ...
7825 (add_fork): ... this. Return void. Move "first fork" special
7826 case from here, to ...
7827 (checkpoint_command): ... here.
7828 * linux-linux.h (add_fork): Return void.
7829
7830 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7831
7832 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
7833
7834 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7835 Chris January <chris.january@arm.com>
7836 David Lecomber <david.lecomber@arm.com>
7837
7838 * f-exp.y: New token, UNOP_INTRINSIC.
7839 (exp): New pattern using UNOP_INTRINSIC token.
7840 (f77_keywords): Add 'abs' keyword.
7841 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
7842 (value_from_host_double): New function.
7843 (evaluate_subexp_f): Support UNOP_ABS.
7844
7845 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7846
7847 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
7848 types.
7849
7850 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7851
7852 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
7853 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
7854 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
7855
7856 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7857
7858 * f-exp.y (convert_to_kind_type): Handle more type kinds.
7859
7860 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7861 Chris January <chris.january@arm.com>
7862
7863 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
7864 * f-exp.y: Define 'KIND' token.
7865 (exp): New pattern for KIND expressions.
7866 (ptype): Handle types with a kind extension.
7867 (direct_abs_decl): Extend to spot kind extensions.
7868 (f77_keywords): Add 'kind' to the list.
7869 (push_kind_type): New function.
7870 (convert_to_kind_type): New function.
7871 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
7872 * parse.c (operator_length_standard): Likewise.
7873 * parser-defs.h (enum type_pieces): Add tp_kind.
7874 * std-operator.def: Add UNOP_KIND.
7875
7876 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * f-exp.y (f_parse): Set yydebug.
7879
7880 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * f-lang.c (evaluate_subexp_f): New function.
7883 (exp_descriptor_f): New global.
7884 (f_language_defn): Use exp_descriptor_f instead of
7885 exp_descriptor_standard.
7886
7887 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7888
7889 * f-exp.y (struct token): Add comments.
7890 (dot_ops): Remove uppercase versions and the end marker.
7891 (f77_keywords): Likewise.
7892 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
7893 entries in the dot_ops array are case insensitive, and use
7894 strncasecmp to compare strings. Also some whitespace cleanup in
7895 this area. Similar for the f77_keywords array, except entries in
7896 this list might be case sensitive.
7897
7898 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7899
7900 * f-exp.y (struct f77_boolean_val): Add comments.
7901 (boolean_values): Remove uppercase versions, and end marker.
7902 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
7903 and use strncasecmp to achieve case insensitivity. Additionally,
7904 perform whitespace cleanup around this code.
7905
7906 2019-03-06 Tom Tromey <tromey@adacore.com>
7907
7908 * remote-sim.c (gdbsim_target_open): Use result of
7909 gdb_argv::release.
7910
7911 2019-03-06 Richard Bunt <richard.bunt@arm.com>
7912 Dirk Schubert <dirk.schubert@arm.com>
7913 Chris January <chris.january@arm.com>
7914
7915 * eval.c (evaluate_subexp_standard): Call Fortran argument
7916 wrapping logic.
7917 * f-lang.c (struct value): A value which can be passed into a
7918 Fortran function call.
7919 (fortran_argument_convert): Wrap Fortran arguments in a pointer
7920 where appropriate.
7921 (struct type): Value ready for a Fortran function call.
7922 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
7923 is needed.
7924 * f-lang.h (fortran_argument_convert): Declaration.
7925 (fortran_preserve_arg_pointer): Declaration.
7926 * infcall.c (value_arg_coerce): Call Fortran argument logic.
7927
7928 2019-03-05 Tom Tromey <tromey@adacore.com>
7929
7930 * python/py-prettyprint.c (print_string_repr): Remove #if.
7931 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
7932
7933 2019-03-05 Tom Tromey <tromey@adacore.com>
7934
7935 * target.c (the_dummy_target): Move later. Change type to
7936 "dummy_target".
7937 (initialize_targets): Don't initialize the_dummy_target.
7938
7939 2019-03-05 Tom Tromey <tromey@adacore.com>
7940
7941 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
7942 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
7943
7944 2019-03-05 Tom Tromey <tromey@adacore.com>
7945
7946 * windows-nat.c (windows_nat_target::attach)
7947 (windows_nat_target::detach): Don't call gdb_flush.
7948 * valprint.c (generic_val_print, val_print, val_print_string):
7949 Don't call gdb_flush.
7950 * utils.c (defaulted_query): Don't call gdb_flush.
7951 * typeprint.c (print_type_scalar): Don't call gdb_flush.
7952 * target.c (target_announce_detach): Don't call gdb_flush.
7953 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
7954 * remote.c (extended_remote_target::attach): Don't call
7955 gdb_flush.
7956 * procfs.c (procfs_target::detach): Don't call gdb_flush.
7957 * printcmd.c (do_examine): Don't call gdb_flush.
7958 (info_display_command): Don't call gdb_flush.
7959 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
7960 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
7961 * memattr.c (info_mem_command): Don't call gdb_flush.
7962 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
7963 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
7964 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
7965 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
7966 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
7967 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
7968 (gnu_nat_target::detach): Don't call gdb_flush.
7969 * f-valprint.c (f_val_print): Don't call gdb_flush.
7970 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
7971 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
7972 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
7973 gdb_flush.
7974 * c-valprint.c (c_val_print): Don't call gdb_flush.
7975 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
7976
7977 2019-03-05 Tom Tromey <tromey@adacore.com>
7978
7979 * varobj.c (update_dynamic_varobj_children): Update.
7980 (install_default_visualizer): Use reset, not release.
7981 * value.c (set_internalvar): Update.
7982 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
7983 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
7984 ATTRIBUTE_UNUSED_RESULT.
7985
7986 2019-03-05 Tom Tromey <tromey@adacore.com>
7987
7988 * remote.c (class scoped_remote_fd) <release>: Add
7989 ATTRIBUTE_UNUSED_RESULT.
7990
7991 2019-03-05 Tom Tromey <tromey@adacore.com>
7992
7993 * macroexp.c (struct macro_buffer) <release>: Add
7994 ATTRIBUTE_UNUSED_RESULT.
7995
7996 2019-03-05 Tom Tromey <tromey@adacore.com>
7997
7998 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
7999 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8000 ATTRIBUTE_UNUSED_RESULT.
8001
8002 2019-03-05 Tom Tromey <tromey@adacore.com>
8003
8004 * common/scoped_fd.h (class scoped_fd) <release>: Add
8005 ATTRIBUTE_UNUSED_RESULT.
8006
8007 2019-03-05 Tom Tromey <tromey@adacore.com>
8008
8009 * parser-defs.h (struct parser_state) <release>: Add
8010 ATTRIBUTE_UNUSED_RESULT.
8011
8012 2019-03-05 Tom Tromey <tromey@adacore.com>
8013
8014 * utils.h (class gdb_argv) <release>: Add
8015 ATTRIBUTE_UNUSED_RESULT.
8016 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8017
8018 2019-03-02 Eli Zaretskii <eliz@gnu.org>
8019
8020 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8021 for-loop range, to avoid compiler warnings.
8022
8023 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8024 avoid compiler warnings about unused variables.
8025
8026 * NEWS: Mention end of support for native debugging on MS-Windows
8027 before XP.
8028
8029 PR gdb/24292
8030 * common/netstuff.c:
8031 * gdbserver/gdbreplay.c
8032 * gdbserver/remote-utils.c:
8033 * ser-tcp.c:
8034 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8035 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8036 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8037 'getaddrinfo' and 'freeaddrinfo' were not available before
8038 Windows XP, and mingw.org's MinGW headers by default define
8039 _WIN32_WINNT to 0x500.
8040
8041 2019-03-01 Gary Benson <gbenson@redhat.com>
8042
8043 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8044
8045 2019-02-28 Brian Vandenberg <phantall@gmail.com>
8046 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8047
8048 PR gdb/8527
8049 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8050 set_sigint_trap, clear_sigint_trap.
8051
8052 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8053
8054 * target.c (target_detach): Clear the regcache and the
8055 frame cache.
8056
8057 2019-02-27 Pedro Alves <palves@redhat.com>
8058
8059 * utils.c (set_screen_size): When we cap the height/width sizes,
8060 tweak the corresponding command variable to show "unlimited":
8061
8062 2019-02-27 Saagar Jha <saagar@saagarjha.com>
8063 Pedro Alves <palves@redhat.com>
8064
8065 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8066 before calling rl_set_screen_size.
8067
8068 2019-02-27 Tom Tromey <tromey@adacore.com>
8069
8070 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8071 define.
8072 * python/py-value.c: Remove Python 2.4 workaround.
8073 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8074 workaround.
8075 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8076 Python 2.4 workaround.
8077 * python/python-internal.h: Remove Python 2.4 comment.
8078 (Py_ssize_t): Don't define.
8079 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8080 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8081 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8082 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8083 * python/python.c (do_start_initialization): Remove Python 2.4
8084 workaround.
8085 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8086 (print_children): Remove Python 2.4 workaround.
8087 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8088 workaround.
8089 (CHARBUFFERPROC_NAME): Remove.
8090 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8091 Python 2.4 workaround.
8092
8093 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8094
8095 * NEWS: Note minimum Python version.
8096
8097 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8098
8099 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8100 code from these functions. Remove corresponding ifdefs. Use
8101 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8102 Remove gotos and target of gotos.
8103 (infpy_search_memory): Likewise.
8104
8105 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8106
8107 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8108 (hppa_gdbarch_init): Don't register deleted functions with
8109 gdbarch.
8110
8111 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8112
8113 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8114 (h8300_unwind_sp): Delete.
8115 (h8300_dummy_id): Delete.
8116 (h8300_gdbarch_init): Don't register deleted functions with
8117 gdbarch.
8118
8119 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8120
8121 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8122 (ft32_unwind_pc): Delete.
8123 (ft32_unwind_sp): Delete.
8124 (ft32_gdbarch_init): Don't register deleted functions with
8125 gdbarch.
8126
8127 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8128
8129 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8130 (frv_unwind_pc): Delete.
8131 (frv_unwind_sp): Delete.
8132 (frv_gdbarch_init): Don't register deleted functions with
8133 gdbarch.
8134
8135 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8136
8137 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8138 (riscv_unwind_pc): Delete.
8139 (riscv_unwind_sp): Delete.
8140 (riscv_gdbarch_init): Don't register deleted functions with
8141 gdbarch.
8142
8143 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8144
8145 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8146 (csky_unwind_pc): Delete.
8147 (csky_unwind_sp): Delete.
8148 (csky_gdbarch_init): Don't register deleted functions with
8149 gdbarch.
8150
8151 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8152
8153 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8154 (cris_unwind_pc): Delete.
8155 (cris_unwind_sp): Delete.
8156 (cris_gdbarch_init): Don't register deleted functions with
8157 gdbarch.
8158
8159 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8160
8161 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8162 (bfin_unwind_pc): Delete.
8163 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8164
8165 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8166
8167 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8168 (arm_unwind_pc): Delete.
8169 (arm_unwind_sp): Delete.
8170 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8171
8172 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8175 (arc_unwind_pc): Delete.
8176 (arc_unwind_sp): Delete.
8177 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8178
8179 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8180
8181 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8182 (alpha_unwind_pc): Delete.
8183 (alpha_gdbarch_init): Don't register deleted functions with
8184 gdbarch.
8185
8186 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8187
8188 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8189 (aarch64_unwind_pc): Delete.
8190 (aarch64_unwind_sp): Delete.
8191 (aarch64_gdbarch_init): Don't register deleted functions with
8192 gdbarch.
8193
8194 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8195
8196 * gdbtypes.c (type_align): Don't consider static members when
8197 computing structure alignment.
8198
8199 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8200
8201 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8202 return 0 for other types.
8203 * arch-utils.c (default_type_align): Always return 0.
8204 * gdbarch.h: Regenerate.
8205 * gdbarch.sh (type_align): Extend comment.
8206 * gdbtypes.c (type_align): Add additional comments, always call
8207 gdbarch_type_align before applying the default rules.
8208 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8209 generic code will then apply a suitable default.
8210 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8211 types, return 0 for other types.
8212
8213 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8214
8215 * NEWS: Create a new section for the next release branch.
8216 Rename the section of the current branch, now that it has
8217 been cut.
8218
8219 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8220
8221 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8222 * version.in: Bump version to 8.3.50.DATE-git.
8223
8224 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
8225
8226 * aix-thread.c (ptid_cmp): Remove unused variable.
8227 (get_signaled_thread): Likewise.
8228 (store_regs_user_thread): Likewise.
8229 (store_regs_kernel_thread): Likewise.
8230 (fetch_regs_kernel_thread): Remove shadowed variable.
8231
8232 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8233
8234 * features/riscv/32bit-cpu.xml: Add register numbers.
8235 * features/riscv/32bit-fpu.c: Regenerate.
8236 * features/riscv/32bit-fpu.xml: Add register numbers.
8237 * features/riscv/64bit-cpu.xml: Add register numbers.
8238 * features/riscv/64bit-fpu.c: Regenerate.
8239 * features/riscv/64bit-fpu.xml: Add register numbers.
8240
8241 2019-02-26 Kevin Buettner <kevinb@redhat.com>
8242
8243 * NEWS: Mention two argument form of gdb.Value constructor.
8244 * python/py-value.c (convert_buffer_and_type_to_value): New
8245 function.
8246 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8247 Add support for handling an optional second argument. Call
8248 convert_buffer_and_type_to_value as appropriate.
8249 * python/python-internal.h (Py_buffer_deleter): New struct.
8250 (Py_buffer_up): New typedef.
8251
8252 2019-02-25 John Baldwin <jhb@FreeBSD.org>
8253
8254 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8255 instead of releasing ownership.
8256
8257 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
8258
8259 * dwarf2read.c (open_and_init_dwp_file): Call
8260 elf_numsections instead of bfd_count_sections to initialize
8261 dwp_file->num_sections.
8262
8263 2019-02-25 Tom Tromey <tromey@adacore.com>
8264
8265 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8266
8267 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8268
8269 * gcore.in: Add '--readnever' option when invoking GDB.
8270
8271 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8272
8273 * MAINTAINERS: Update my email address.
8274
8275 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8276
8277 * build-id.c (build_id_to_debug_bfd_1): New function.
8278 (build_id_to_debug_bfd): Look for separate debug file in
8279 sysroot.
8280
8281 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8282
8283 * gdbarch.sh: Update the copyright year range that is placed into
8284 generated files.
8285
8286 2019-02-22 Keith Seitz <keiths@redhat.com>
8287
8288 PR symtab/23853
8289 * linespec.c (create_sals_line_offset): Search for the default
8290 symtab's filename instead of its fullname.
8291
8292 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8293
8294 * NEWS: Update style defaults.
8295
8296 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8297
8298 * main.c (captured_main_1): Disable styling in batch mode.
8299
8300 2019-02-20 Tom Tromey <tom@tromey.com>
8301
8302 * symtab.c (symtab_symbol_info): Fix typos.
8303
8304 2019-02-20 Tom Tromey <tromey@adacore.com>
8305
8306 * findcmd.c (_initialize_mem_search): Use upper case for
8307 metasyntactic variables.
8308
8309 2019-02-20 Alan Hayward <alan.hayward@arm.com>
8310
8311 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8312 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8313
8314 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8315
8316 * top.h (source_file_name): Change to std::string.
8317 * top.c (source_file_name): Likewise.
8318 (command_line_input): Adjust.
8319 * cli/cli-script.c (script_from_file): Adjust.
8320
8321 2019-02-19 Tom Tromey <tromey@adacore.com>
8322
8323 * ravenscar-thread.c
8324 (ravenscar_thread_target::update_thread_list): Don't call
8325 ada_build_task_list.
8326 * ada-lang.h (ada_build_task_list): Don't declare.
8327 * ada-tasks.c (struct ada_tasks_inferior_data)
8328 <task_list_valid_p>: Now bool.
8329 (read_known_tasks, ada_task_list_changed)
8330 (ada_tasks_invalidate_inferior_data): Update.
8331 (read_known_tasks_array): Return bool.
8332 (read_known_tasks_list): Likewise.
8333 (read_known_tasks): Return void.
8334 (ada_build_task_list): Now static.
8335
8336 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8337
8338 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8339 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8340
8341 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8342
8343 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8344 variant for ada_tasks_pspace_data_handle and
8345 ada_tasks_inferior_data_handle.
8346 (ada_tasks_pspace_data_cleanup): New function.
8347 (ada_tasks_inferior_data_cleanup): New function.
8348
8349 2019-02-17 Tom Tromey <tom@tromey.com>
8350
8351 * macrotab.h (macro_source_fullname): Return a std::string.
8352 * macrotab.c (macro_include, check_for_redefinition)
8353 (macro_undef, macro_lookup_definition, foreach_macro)
8354 (foreach_macro_in_scope): Update.
8355 (macro_source_fullname): Return a std::string.
8356 * macrocmd.c (show_pp_source_pos): Update.
8357
8358 2019-02-17 Tom Tromey <tom@tromey.com>
8359
8360 * macrocmd.c (show_pp_source_pos): Style the file names.
8361
8362 2019-02-17 Tom Tromey <tom@tromey.com>
8363
8364 PR tui/24197:
8365 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8366
8367 2019-02-17 Tom Tromey <tom@tromey.com>
8368
8369 * ada-lang.c (user_select_syms): Use filtered printing.
8370 * utils.c (wrap_style): New global.
8371 (desired_style): Remove.
8372 (emit_style_escape): Add stream parameter.
8373 (set_output_style, reset_terminal_style, prompt_for_continue):
8374 Update.
8375 (flush_wrap_buffer): Only flush gdb_stdout.
8376 (wrap_here): Set wrap_style.
8377 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8378 treat escape sequences as a character. Change when wrap buffer is
8379 flushed.
8380 (fputs_styled): Do not set the output style when the default is
8381 requested.
8382 * ui-style.h (struct ui_file_style) <is_default>: New method.
8383 * source.c (print_source_lines_base): Emit escape sequences in one
8384 piece.
8385
8386 2019-02-17 Joel Brobecker <brobecker@adacore.com>
8387
8388 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8389 integers and enumeration types.
8390
8391 2019-02-17 Joel Brobecker <brobecker@adacore.com>
8392
8393 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8394 instead of lookup_symbol_in_language
8395 (do_exact_match): New function.
8396 (ada_get_symbol_name_matcher): Return do_exact_match when
8397 doing a verbatim match.
8398
8399 2019-02-15 Tom Tromey <tromey@adacore.com>
8400
8401 * ravenscar-thread.c (ravenscar_thread_target::resume)
8402 (ravenscar_thread_target::wait): Special case wildcard requests.
8403
8404 2019-02-15 Tom Tromey <tromey@adacore.com>
8405
8406 * ravenscar-thread.c (base_ptid): Remove.
8407 (struct ravenscar_thread_target) <close>: New method.
8408 <m_base_ptid>: New member.
8409 <update_inferior_ptid, active_task, task_is_currently_active,
8410 runtime_initialized>: Declare methods.
8411 <ravenscar_thread_target>: Add constructor.
8412 (ravenscar_thread_target::task_is_currently_active)
8413 (ravenscar_thread_target::update_inferior_ptid)
8414 (ravenscar_runtime_initialized): Rename. Now methods.
8415 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8416 (ravenscar_thread_target::update_thread_list): Update.
8417 (ravenscar_thread_target::active_task): Now method.
8418 (ravenscar_thread_target::store_registers)
8419 (ravenscar_thread_target::prepare_to_store)
8420 (ravenscar_thread_target::prepare_to_store)
8421 (ravenscar_thread_target::mourn_inferior): Update.
8422 (ravenscar_inferior_created): Use "new" to create target.
8423 (ravenscar_thread_target::get_ada_task_ptid): Update.
8424 (_initialize_ravenscar): Don't initialize base_ptid.
8425 (ravenscar_ops): Remove global.
8426
8427 2019-02-15 Tom Tromey <tromey@adacore.com>
8428
8429 * target.h (push_target): Declare new overload.
8430 * target.c (push_target): New overload, taking an rvalue reference.
8431 * remote.c (remote_target::open_1): Use push_target overload.
8432 * corelow.c (core_target_open): Use push_target overload.
8433
8434 2019-02-15 Tom Tromey <tromey@adacore.com>
8435
8436 * ravenscar-thread.c (is_ravenscar_task)
8437 (ravenscar_task_is_currently_active): Return bool.
8438 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
8439 (_initialize_ravenscar): Remove "(void)".
8440 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
8441 Return bool.
8442
8443 2019-02-15 Tom Tromey <tromey@adacore.com>
8444
8445 * ravenscar-thread.c (ravenscar_runtime_initializer)
8446 (has_ravenscar_runtime, get_running_thread_id)
8447 (ravenscar_thread_target::resume): Fix indentation.
8448
8449 2019-02-15 Tom Tromey <tromey@adacore.com>
8450
8451 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
8452 from ravenscar_arch_ops.
8453 (sparc_ravenscar_ops::fetch_registers)
8454 (sparc_ravenscar_ops::store_registers): Now methods.
8455 (sparc_ravenscar_prepare_to_store): Remove.
8456 (sparc_ravenscar_ops): Redefine.
8457 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
8458 methods and destructor. Remove members.
8459 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
8460 (ravenscar_thread_target::store_registers)
8461 (ravenscar_thread_target::prepare_to_store): Update.
8462 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
8463 Remove.
8464 (struct ppc_ravenscar_powerpc_ops): Derive from
8465 ravenscar_arch_ops.
8466 (ppc_ravenscar_powerpc_ops::fetch_registers)
8467 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
8468 (ppc_ravenscar_powerpc_ops): Redefine.
8469 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
8470 (ppc_ravenscar_e500_ops::fetch_registers)
8471 (ppc_ravenscar_e500_ops::store_registers): Now methods.
8472 (ppc_ravenscar_e500_ops): Redefine.
8473 * aarch64-ravenscar-thread.c
8474 (aarch64_ravenscar_generic_prepare_to_store): Remove.
8475 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
8476 (aarch64_ravenscar_fetch_registers)
8477 (aarch64_ravenscar_store_registers): Now methods.
8478 (aarch64_ravenscar_ops): Redefine.
8479
8480 2019-02-15 Tom Tromey <tromey@adacore.com>
8481
8482 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
8483 (ravenscar_thread_target::stopped_by_hw_breakpoint)
8484 (ravenscar_thread_target::stopped_by_watchpoint)
8485 (ravenscar_thread_target::stopped_data_address)
8486 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
8487
8488 2019-02-15 Tom Tromey <tromey@adacore.com>
8489
8490 * ravenscar-thread.c: Fix some typos.
8491
8492 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8493 Tom Tromey <tromey@adacore.com>
8494
8495 * ada-lang.c (ada_exception_sal): Change addr_string to a
8496 std::string.
8497 (create_ada_exception_catchpoint): Update.
8498
8499 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8500 Tom Tromey <tromey@adacore.com>
8501
8502 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
8503 (bp_location_ops): Remove.
8504 (base_breakpoint_allocate_location): Update.
8505 (free_bp_location): Update.
8506 * ada-lang.c (class ada_catchpoint_location)
8507 <ada_catchpoint_location>: Remove ops parameter.
8508 (ada_catchpoint_location_dtor): Remove.
8509 (ada_catchpoint_location_ops): Remove.
8510 (allocate_location_exception): Update.
8511 * breakpoint.h (struct bp_location_ops): Remove.
8512 (class bp_location) <bp_location>: Remove bp_location_ops
8513 parameter.
8514 <~bp_location>: Add destructor.
8515 <ops>: Remove.
8516
8517 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
8518 Pedro Alves <palves@redhat.com>
8519
8520 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
8521 'PATH_MAX'.
8522
8523 2019-02-14 David Michael <fedora.dm0@gmail.com>
8524 Samuel Thibault <samuel.thibault@gnu.org>
8525 Thomas Schwinge <thomas@codesourcery.com>
8526
8527 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
8528 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
8529
8530 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
8531
8532 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
8533 (check_empty): Use "const char *".
8534
8535 * gnu-nat.c (gnu_nat_target::detach): Instead of
8536 'detach_inferior (pid)' call
8537 'detach_inferior (find_inferior_pid (pid))'.
8538
8539 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
8540 'nat/fork-inferior.o'.
8541 * gnu-nat.c: #include "nat/fork-inferior.h".
8542
8543 * gnu-nat.c (gnu_nat_target::detach): Instead of
8544 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
8545 * gnu-nat.h: #include "inf-child.h".
8546 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
8547 'i386_gnu_nat_target::fetch_registers'.
8548 (gnu_store_registers): Rename/move to
8549 'i386_gnu_nat_target::store_registers'.
8550
8551 * config/i386/nm-i386gnu.h: Don't "#include" any files.
8552 * gnu-nat.h (mach_thread_info): New function.
8553 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
8554
8555 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
8556
8557 2019-02-14 Frederic Konrad <konrad@adacore.com>
8558
8559 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
8560
8561 2019-02-14 Joel Brobecker <brobecker@adacore.com>
8562
8563 * windows-nat.c (windows_add_thread): Add new parameter
8564 "main_thread_p" with default value set to false. Update
8565 function documentation as well as all callers.
8566 (windows_delete_thread): Likewise.
8567 (fake_create_process): Update call to windows_add_thread.
8568 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
8569 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
8570 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
8571 call to windows_delete_thread.
8572
8573 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
8574
8575 * MAINTAINERS: Add Andrew Burgess as global maintainer.
8576
8577 2019-02-12 John Baldwin <jhb@FreeBSD.org>
8578
8579 * symfile.c (find_separate_debug_file): Use canonical path of
8580 sysroot with child_path instead of gdb_sysroot if it is valid.
8581
8582 2019-02-12 John Baldwin <jhb@FreeBSD.org>
8583
8584 * symfile.c (find_separate_debug_file): Use child_path to
8585 determine if an object file is under a sysroot.
8586
8587 2019-02-12 John Baldwin <jhb@FreeBSD.org>
8588
8589 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8590 unittests/child-path-selftests.c.
8591 * common/pathstuff.c (child_path): New function.
8592 * common/pathstuff.h (child_path): New prototype.
8593 * unittests/child-path-selftests.c: New file.
8594
8595 2019-02-12 John Baldwin <jhb@FreeBSD.org>
8596
8597 * symfile.c (find_separate_debug_file): Look for separate debug
8598 files in debug directories under the sysroot.
8599
8600 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8601
8602 * symtab.h (struct minimal_symbol data_p): New const method.
8603 (struct minimal_symbol text_p): Likewise.
8604 * symtab.c (output_source_filename): Use file name style
8605 to print file name.
8606 (print_symbol_info): Likewise.
8607 (print_msymbol_info): Use address style to print addresses.
8608 Use function name style to print executable text symbols.
8609 (expand_symtab_containing_pc): Use data_p.
8610 (find_pc_sect_compunit_symtab): Likewise.
8611
8612 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8613
8614 * breakpoint.c (describe_other_breakpoints): Use address style
8615 to print addresses.
8616 (say_where): Likewise.
8617
8618 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8619
8620 * ada-typeprint.c (print_func_type): Print function name
8621 style to print function name.
8622 * c-typeprint.c (c_print_type_1): Likewise.
8623
8624 2019-02-11 Alan Hayward <alan.hayward@arm.com>
8625
8626 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
8627 for execve.
8628
8629 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8630
8631 * c-exp.y (direct_abs_decl): Use emplace_back to record the
8632 type_stack.
8633
8634 2019-02-10 Joel Brobecker <brobecker@adacore.com>
8635
8636 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
8637 TYPE_CODE_REF types.
8638
8639 2019-02-08 Jim Wilson <jimw@sifive.com>
8640
8641 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
8642 (riscv_linux_fregset): New.
8643 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
8644
8645 2019-02-07 Tom Tromey <tom@tromey.com>
8646
8647 * thread.c (thread_cancel_execution_command): Update.
8648 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
8649 methods.
8650 (struct thread_fsm_ops): Remove.
8651 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
8652 (thread_fsm_should_stop, thread_fsm_return_value)
8653 (thread_fsm_set_finished, thread_fsm_finished_p)
8654 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
8655 Don't declare.
8656 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
8657 * infrun.c (clear_proceed_status_thread)
8658 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
8659 (print_stop_event): Update.
8660 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
8661 Add constructor.
8662 (step_command_fsm_ops): Remove.
8663 (new_step_command_fsm): Remove.
8664 (step_1): Update.
8665 (step_command_fsm::should_stop): Rename from
8666 step_command_fsm_should_stop.
8667 (step_command_fsm::clean_up): Rename from
8668 step_command_fsm_clean_up.
8669 (step_command_fsm::do_async_reply_reason): Rename from
8670 step_command_fsm_async_reply_reason.
8671 (struct until_next_fsm): Inherit from thread_fsm. Add
8672 constructor.
8673 (until_next_fsm_ops): Remove.
8674 (new_until_next_fsm): Remove.
8675 (until_next_fsm::should_stop): Rename from
8676 until_next_fsm_should_stop.
8677 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
8678 (until_next_fsm::do_async_reply_reason): Rename from
8679 until_next_fsm_async_reply_reason.
8680 (struct finish_command_fsm): Inherit from thread_fsm. Add
8681 constructor. Change type of breakpoint.
8682 (finish_command_fsm_ops): Remove.
8683 (new_finish_command_fsm): Remove.
8684 (finish_command_fsm::should_stop): Rename from
8685 finish_command_fsm_should_stop.
8686 (finish_command_fsm::clean_up): Rename from
8687 finish_command_fsm_clean_up.
8688 (finish_command_fsm::return_value): Rename from
8689 finish_command_fsm_return_value.
8690 (finish_command_fsm::do_async_reply_reason): Rename from
8691 finish_command_fsm_async_reply_reason.
8692 (finish_command): Update.
8693 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
8694 Add constructor.
8695 (call_thread_fsm_ops): Remove.
8696 (call_thread_fsm::call_thread_fsm): Rename from
8697 new_call_thread_fsm.
8698 (call_thread_fsm::should_stop): Rename from
8699 call_thread_fsm_should_stop.
8700 (call_thread_fsm::should_notify_stop): Rename from
8701 call_thread_fsm_should_notify_stop.
8702 (run_inferior_call, call_function_by_hand_dummy): Update.
8703 * cli/cli-interp.c (should_print_stop_to_console): Update.
8704 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
8705 Add constructor. Change type of location_breakpoint,
8706 caller_breakpoint.
8707 (until_break_fsm_ops): Remove.
8708 (new_until_break_fsm): Remove.
8709 (until_break_fsm::should_stop): Rename from
8710 until_break_fsm_should_stop.
8711 (until_break_fsm::clean_up): Rename from
8712 until_break_fsm_clean_up.
8713 (until_break_fsm::do_async_reply_reason): Rename from
8714 until_break_fsm_async_reply_reason.
8715 (until_break_command): Update.
8716 * thread-fsm.c: Remove.
8717 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
8718
8719 2019-02-07 Tom Tromey <tom@tromey.com>
8720
8721 * yy-remap.h: Add include guard.
8722 * xtensa-tdep.h: Add include guard.
8723 * xcoffread.h: Rename include guard.
8724 * varobj-iter.h: Add include guard.
8725 * tui/tui.h: Rename include guard.
8726 * tui/tui-winsource.h: Rename include guard.
8727 * tui/tui-wingeneral.h: Rename include guard.
8728 * tui/tui-windata.h: Rename include guard.
8729 * tui/tui-win.h: Rename include guard.
8730 * tui/tui-stack.h: Rename include guard.
8731 * tui/tui-source.h: Rename include guard.
8732 * tui/tui-regs.h: Rename include guard.
8733 * tui/tui-out.h: Rename include guard.
8734 * tui/tui-layout.h: Rename include guard.
8735 * tui/tui-io.h: Rename include guard.
8736 * tui/tui-hooks.h: Rename include guard.
8737 * tui/tui-file.h: Rename include guard.
8738 * tui/tui-disasm.h: Rename include guard.
8739 * tui/tui-data.h: Rename include guard.
8740 * tui/tui-command.h: Rename include guard.
8741 * tic6x-tdep.h: Add include guard.
8742 * target/waitstatus.h: Rename include guard.
8743 * target/wait.h: Rename include guard.
8744 * target/target.h: Rename include guard.
8745 * target/resume.h: Rename include guard.
8746 * target-float.h: Rename include guard.
8747 * stabsread.h: Add include guard.
8748 * rs6000-tdep.h: Add include guard.
8749 * riscv-fbsd-tdep.h: Add include guard.
8750 * regformats/regdef.h: Rename include guard.
8751 * record.h: Rename include guard.
8752 * python/python.h: Rename include guard.
8753 * python/python-internal.h: Rename include guard.
8754 * python/py-stopevent.h: Rename include guard.
8755 * python/py-ref.h: Rename include guard.
8756 * python/py-record.h: Rename include guard.
8757 * python/py-record-full.h: Rename include guard.
8758 * python/py-record-btrace.h: Rename include guard.
8759 * python/py-instruction.h: Rename include guard.
8760 * python/py-events.h: Rename include guard.
8761 * python/py-event.h: Rename include guard.
8762 * procfs.h: Add include guard.
8763 * proc-utils.h: Add include guard.
8764 * p-lang.h: Add include guard.
8765 * or1k-tdep.h: Rename include guard.
8766 * observable.h: Rename include guard.
8767 * nto-tdep.h: Rename include guard.
8768 * nat/x86-linux.h: Rename include guard.
8769 * nat/x86-linux-dregs.h: Rename include guard.
8770 * nat/x86-gcc-cpuid.h: Add include guard.
8771 * nat/x86-dregs.h: Rename include guard.
8772 * nat/x86-cpuid.h: Rename include guard.
8773 * nat/ppc-linux.h: Rename include guard.
8774 * nat/mips-linux-watch.h: Rename include guard.
8775 * nat/linux-waitpid.h: Rename include guard.
8776 * nat/linux-ptrace.h: Rename include guard.
8777 * nat/linux-procfs.h: Rename include guard.
8778 * nat/linux-osdata.h: Rename include guard.
8779 * nat/linux-nat.h: Rename include guard.
8780 * nat/linux-namespaces.h: Rename include guard.
8781 * nat/linux-btrace.h: Rename include guard.
8782 * nat/glibc_thread_db.h: Rename include guard.
8783 * nat/gdb_thread_db.h: Rename include guard.
8784 * nat/gdb_ptrace.h: Rename include guard.
8785 * nat/fork-inferior.h: Rename include guard.
8786 * nat/amd64-linux-siginfo.h: Rename include guard.
8787 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
8788 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
8789 * nat/aarch64-linux.h: Rename include guard.
8790 * nat/aarch64-linux-hw-point.h: Rename include guard.
8791 * mn10300-tdep.h: Add include guard.
8792 * mips-linux-tdep.h: Add include guard.
8793 * mi/mi-parse.h: Rename include guard.
8794 * mi/mi-out.h: Rename include guard.
8795 * mi/mi-main.h: Rename include guard.
8796 * mi/mi-interp.h: Rename include guard.
8797 * mi/mi-getopt.h: Rename include guard.
8798 * mi/mi-console.h: Rename include guard.
8799 * mi/mi-common.h: Rename include guard.
8800 * mi/mi-cmds.h: Rename include guard.
8801 * mi/mi-cmd-break.h: Rename include guard.
8802 * m2-lang.h: Add include guard.
8803 * location.h: Rename include guard.
8804 * linux-record.h: Rename include guard.
8805 * linux-nat.h: Add include guard.
8806 * linux-fork.h: Add include guard.
8807 * i386-darwin-tdep.h: Rename include guard.
8808 * hppa-linux-offsets.h: Add include guard.
8809 * guile/guile.h: Rename include guard.
8810 * guile/guile-internal.h: Rename include guard.
8811 * gnu-nat.h: Rename include guard.
8812 * gdb-stabs.h: Rename include guard.
8813 * frv-tdep.h: Add include guard.
8814 * f-lang.h: Add include guard.
8815 * event-loop.h: Add include guard.
8816 * darwin-nat.h: Rename include guard.
8817 * cp-abi.h: Rename include guard.
8818 * config/sparc/nm-sol2.h: Rename include guard.
8819 * config/nm-nto.h: Rename include guard.
8820 * config/nm-linux.h: Add include guard.
8821 * config/i386/nm-i386gnu.h: Rename include guard.
8822 * config/djgpp/nl_types.h: Rename include guard.
8823 * config/djgpp/langinfo.h: Rename include guard.
8824 * compile/gcc-cp-plugin.h: Add include guard.
8825 * compile/gcc-c-plugin.h: Add include guard.
8826 * compile/compile.h: Rename include guard.
8827 * compile/compile-object-run.h: Rename include guard.
8828 * compile/compile-object-load.h: Rename include guard.
8829 * compile/compile-internal.h: Rename include guard.
8830 * compile/compile-cplus.h: Rename include guard.
8831 * compile/compile-c.h: Rename include guard.
8832 * common/xml-utils.h: Rename include guard.
8833 * common/x86-xstate.h: Rename include guard.
8834 * common/version.h: Rename include guard.
8835 * common/vec.h: Rename include guard.
8836 * common/tdesc.h: Rename include guard.
8837 * common/selftest.h: Rename include guard.
8838 * common/scoped_restore.h: Rename include guard.
8839 * common/scoped_mmap.h: Rename include guard.
8840 * common/scoped_fd.h: Rename include guard.
8841 * common/safe-iterator.h: Rename include guard.
8842 * common/run-time-clock.h: Rename include guard.
8843 * common/refcounted-object.h: Rename include guard.
8844 * common/queue.h: Rename include guard.
8845 * common/ptid.h: Rename include guard.
8846 * common/print-utils.h: Rename include guard.
8847 * common/preprocessor.h: Rename include guard.
8848 * common/pathstuff.h: Rename include guard.
8849 * common/observable.h: Rename include guard.
8850 * common/netstuff.h: Rename include guard.
8851 * common/job-control.h: Rename include guard.
8852 * common/host-defs.h: Rename include guard.
8853 * common/gdb_wait.h: Rename include guard.
8854 * common/gdb_vecs.h: Rename include guard.
8855 * common/gdb_unlinker.h: Rename include guard.
8856 * common/gdb_unique_ptr.h: Rename include guard.
8857 * common/gdb_tilde_expand.h: Rename include guard.
8858 * common/gdb_sys_time.h: Rename include guard.
8859 * common/gdb_string_view.h: Rename include guard.
8860 * common/gdb_splay_tree.h: Rename include guard.
8861 * common/gdb_setjmp.h: Rename include guard.
8862 * common/gdb_ref_ptr.h: Rename include guard.
8863 * common/gdb_optional.h: Rename include guard.
8864 * common/gdb_locale.h: Rename include guard.
8865 * common/gdb_assert.h: Rename include guard.
8866 * common/filtered-iterator.h: Rename include guard.
8867 * common/filestuff.h: Rename include guard.
8868 * common/fileio.h: Rename include guard.
8869 * common/environ.h: Rename include guard.
8870 * common/common-utils.h: Rename include guard.
8871 * common/common-types.h: Rename include guard.
8872 * common/common-regcache.h: Rename include guard.
8873 * common/common-inferior.h: Rename include guard.
8874 * common/common-gdbthread.h: Rename include guard.
8875 * common/common-exceptions.h: Rename include guard.
8876 * common/common-defs.h: Rename include guard.
8877 * common/common-debug.h: Rename include guard.
8878 * common/cleanups.h: Rename include guard.
8879 * common/buffer.h: Rename include guard.
8880 * common/btrace-common.h: Rename include guard.
8881 * common/break-common.h: Rename include guard.
8882 * cli/cli-utils.h: Rename include guard.
8883 * cli/cli-style.h: Rename include guard.
8884 * cli/cli-setshow.h: Rename include guard.
8885 * cli/cli-script.h: Rename include guard.
8886 * cli/cli-interp.h: Rename include guard.
8887 * cli/cli-decode.h: Rename include guard.
8888 * cli/cli-cmds.h: Rename include guard.
8889 * charset-list.h: Add include guard.
8890 * buildsym-legacy.h: Rename include guard.
8891 * bfin-tdep.h: Add include guard.
8892 * ax.h: Rename include guard.
8893 * arm-linux-tdep.h: Add include guard.
8894 * arm-fbsd-tdep.h: Add include guard.
8895 * arch/xtensa.h: Rename include guard.
8896 * arch/tic6x.h: Add include guard.
8897 * arch/i386.h: Add include guard.
8898 * arch/arm.h: Rename include guard.
8899 * arch/arm-linux.h: Rename include guard.
8900 * arch/arm-get-next-pcs.h: Rename include guard.
8901 * arch/amd64.h: Add include guard.
8902 * arch/aarch64-insn.h: Rename include guard.
8903 * arch-utils.h: Rename include guard.
8904 * annotate.h: Add include guard.
8905 * amd64-darwin-tdep.h: Rename include guard.
8906 * aarch64-linux-tdep.h: Add include guard.
8907 * aarch64-fbsd-tdep.h: Add include guard.
8908 * aarch32-linux-nat.h: Add include guard.
8909
8910 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8911
8912 * macrotab.c (macro_define_internal): New function that
8913 factorizes macro_define_object_internal and macro_define_function
8914 code.
8915 (macro_define_object_internal): Use macro_define_internal.
8916 (macro_define_function): Likewise.
8917
8918 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8919
8920 * macrocmd.c (extract_identifier): Return
8921 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
8922 callers.
8923
8924 2019-02-06 John Baldwin <jhb@FreeBSD.org>
8925
8926 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
8927
8928 2019-02-05 Tom Tromey <tom@tromey.com>
8929
8930 * target.c (target_stack::unpush): Move assertion earlier.
8931
8932 2019-01-30 Tom Tromey <tom@tromey.com>
8933
8934 PR python/23615:
8935 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
8936 (gdbpy_parse_and_eval): Likewise.
8937 * python/python-internal.h (gdbpy_allow_threads): New class.
8938
8939 2019-01-28 John Baldwin <jhb@FreeBSD.org>
8940
8941 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
8942 (aarch64_fbsd_fpregmap): Move earlier.
8943 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
8944 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
8945 instead of individual calls to trad_frame_set_reg_addr.
8946 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
8947 earlier.
8948 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
8949 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
8950 instead of individual calls to trad_frame_set_reg_addr.
8951
8952 2019-01-28 Alan Hayward <alan.hayward@arm.com>
8953
8954 * CONTRIBUTE: Replace contribution list with wiki link.
8955
8956 2019-01-25 Tom Tromey <tom@tromey.com>
8957
8958 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
8959
8960 2019-01-25 Tom Tromey <tom@tromey.com>
8961
8962 * xtensa-linux-nat.c: Fix common/ includes.
8963 * xml-support.h: Fix common/ includes.
8964 * xml-support.c: Fix common/ includes.
8965 * x86-linux-nat.c: Fix common/ includes.
8966 * windows-nat.c: Fix common/ includes.
8967 * varobj.h: Fix common/ includes.
8968 * varobj.c: Fix common/ includes.
8969 * value.c: Fix common/ includes.
8970 * valops.c: Fix common/ includes.
8971 * utils.c: Fix common/ includes.
8972 * unittests/xml-utils-selftests.c: Fix common/ includes.
8973 * unittests/utils-selftests.c: Fix common/ includes.
8974 * unittests/unpack-selftests.c: Fix common/ includes.
8975 * unittests/tracepoint-selftests.c: Fix common/ includes.
8976 * unittests/style-selftests.c: Fix common/ includes.
8977 * unittests/string_view-selftests.c: Fix common/ includes.
8978 * unittests/scoped_restore-selftests.c: Fix common/ includes.
8979 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
8980 * unittests/scoped_fd-selftests.c: Fix common/ includes.
8981 * unittests/rsp-low-selftests.c: Fix common/ includes.
8982 * unittests/parse-connection-spec-selftests.c: Fix common/
8983 includes.
8984 * unittests/optional-selftests.c: Fix common/ includes.
8985 * unittests/offset-type-selftests.c: Fix common/ includes.
8986 * unittests/observable-selftests.c: Fix common/ includes.
8987 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
8988 * unittests/memrange-selftests.c: Fix common/ includes.
8989 * unittests/memory-map-selftests.c: Fix common/ includes.
8990 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
8991 * unittests/function-view-selftests.c: Fix common/ includes.
8992 * unittests/environ-selftests.c: Fix common/ includes.
8993 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
8994 * unittests/common-utils-selftests.c: Fix common/ includes.
8995 * unittests/cli-utils-selftests.c: Fix common/ includes.
8996 * unittests/array-view-selftests.c: Fix common/ includes.
8997 * ui-file.c: Fix common/ includes.
8998 * tui/tui-io.c: Fix common/ includes.
8999 * tracepoint.h: Fix common/ includes.
9000 * tracepoint.c: Fix common/ includes.
9001 * tracefile-tfile.c: Fix common/ includes.
9002 * top.h: Fix common/ includes.
9003 * top.c: Fix common/ includes.
9004 * thread.c: Fix common/ includes.
9005 * target/waitstatus.h: Fix common/ includes.
9006 * target/waitstatus.c: Fix common/ includes.
9007 * target.h: Fix common/ includes.
9008 * target.c: Fix common/ includes.
9009 * target-memory.c: Fix common/ includes.
9010 * target-descriptions.c: Fix common/ includes.
9011 * symtab.h: Fix common/ includes.
9012 * symfile.c: Fix common/ includes.
9013 * stap-probe.c: Fix common/ includes.
9014 * spu-linux-nat.c: Fix common/ includes.
9015 * sparc-nat.c: Fix common/ includes.
9016 * source.c: Fix common/ includes.
9017 * solib.c: Fix common/ includes.
9018 * solib-target.c: Fix common/ includes.
9019 * ser-unix.c: Fix common/ includes.
9020 * ser-tcp.c: Fix common/ includes.
9021 * ser-pipe.c: Fix common/ includes.
9022 * ser-base.c: Fix common/ includes.
9023 * selftest-arch.c: Fix common/ includes.
9024 * s12z-tdep.c: Fix common/ includes.
9025 * rust-exp.y: Fix common/ includes.
9026 * rs6000-aix-tdep.c: Fix common/ includes.
9027 * riscv-tdep.c: Fix common/ includes.
9028 * remote.c: Fix common/ includes.
9029 * remote-notif.h: Fix common/ includes.
9030 * remote-fileio.h: Fix common/ includes.
9031 * remote-fileio.c: Fix common/ includes.
9032 * regcache.h: Fix common/ includes.
9033 * regcache.c: Fix common/ includes.
9034 * record-btrace.c: Fix common/ includes.
9035 * python/python.c: Fix common/ includes.
9036 * python/py-type.c: Fix common/ includes.
9037 * python/py-inferior.c: Fix common/ includes.
9038 * progspace.h: Fix common/ includes.
9039 * producer.c: Fix common/ includes.
9040 * procfs.c: Fix common/ includes.
9041 * proc-api.c: Fix common/ includes.
9042 * printcmd.c: Fix common/ includes.
9043 * ppc-linux-nat.c: Fix common/ includes.
9044 * parser-defs.h: Fix common/ includes.
9045 * osdata.c: Fix common/ includes.
9046 * obsd-nat.c: Fix common/ includes.
9047 * nat/x86-linux.c: Fix common/ includes.
9048 * nat/x86-linux-dregs.c: Fix common/ includes.
9049 * nat/x86-dregs.h: Fix common/ includes.
9050 * nat/x86-dregs.c: Fix common/ includes.
9051 * nat/ppc-linux.c: Fix common/ includes.
9052 * nat/mips-linux-watch.h: Fix common/ includes.
9053 * nat/mips-linux-watch.c: Fix common/ includes.
9054 * nat/linux-waitpid.c: Fix common/ includes.
9055 * nat/linux-ptrace.h: Fix common/ includes.
9056 * nat/linux-ptrace.c: Fix common/ includes.
9057 * nat/linux-procfs.c: Fix common/ includes.
9058 * nat/linux-personality.c: Fix common/ includes.
9059 * nat/linux-osdata.c: Fix common/ includes.
9060 * nat/linux-namespaces.c: Fix common/ includes.
9061 * nat/linux-btrace.h: Fix common/ includes.
9062 * nat/linux-btrace.c: Fix common/ includes.
9063 * nat/fork-inferior.c: Fix common/ includes.
9064 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9065 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9066 * nat/aarch64-linux.c: Fix common/ includes.
9067 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9068 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9069 * namespace.h: Fix common/ includes.
9070 * mips-linux-tdep.c: Fix common/ includes.
9071 * minsyms.c: Fix common/ includes.
9072 * mi/mi-parse.h: Fix common/ includes.
9073 * mi/mi-main.c: Fix common/ includes.
9074 * mi/mi-cmd-env.c: Fix common/ includes.
9075 * memrange.h: Fix common/ includes.
9076 * memattr.c: Fix common/ includes.
9077 * maint.h: Fix common/ includes.
9078 * maint.c: Fix common/ includes.
9079 * main.c: Fix common/ includes.
9080 * machoread.c: Fix common/ includes.
9081 * location.c: Fix common/ includes.
9082 * linux-thread-db.c: Fix common/ includes.
9083 * linux-nat.c: Fix common/ includes.
9084 * linux-fork.c: Fix common/ includes.
9085 * inline-frame.c: Fix common/ includes.
9086 * infrun.c: Fix common/ includes.
9087 * inflow.c: Fix common/ includes.
9088 * inferior.h: Fix common/ includes.
9089 * inferior.c: Fix common/ includes.
9090 * infcmd.c: Fix common/ includes.
9091 * inf-ptrace.c: Fix common/ includes.
9092 * inf-child.c: Fix common/ includes.
9093 * ia64-linux-nat.c: Fix common/ includes.
9094 * i387-tdep.c: Fix common/ includes.
9095 * i386-tdep.c: Fix common/ includes.
9096 * i386-linux-tdep.c: Fix common/ includes.
9097 * i386-linux-nat.c: Fix common/ includes.
9098 * i386-go32-tdep.c: Fix common/ includes.
9099 * i386-fbsd-tdep.c: Fix common/ includes.
9100 * i386-fbsd-nat.c: Fix common/ includes.
9101 * guile/scm-type.c: Fix common/ includes.
9102 * guile/guile.c: Fix common/ includes.
9103 * go32-nat.c: Fix common/ includes.
9104 * gnu-nat.c: Fix common/ includes.
9105 * gdbthread.h: Fix common/ includes.
9106 * gdbarch-selftests.c: Fix common/ includes.
9107 * gdb_usleep.c: Fix common/ includes.
9108 * gdb_select.h: Fix common/ includes.
9109 * gdb_bfd.c: Fix common/ includes.
9110 * gcore.c: Fix common/ includes.
9111 * fork-child.c: Fix common/ includes.
9112 * findvar.c: Fix common/ includes.
9113 * fbsd-nat.c: Fix common/ includes.
9114 * event-top.c: Fix common/ includes.
9115 * event-loop.c: Fix common/ includes.
9116 * dwarf2read.c: Fix common/ includes.
9117 * dwarf2loc.c: Fix common/ includes.
9118 * dwarf2-frame.c: Fix common/ includes.
9119 * dwarf-index-cache.c: Fix common/ includes.
9120 * dtrace-probe.c: Fix common/ includes.
9121 * disasm-selftests.c: Fix common/ includes.
9122 * defs.h: Fix common/ includes.
9123 * csky-tdep.c: Fix common/ includes.
9124 * cp-valprint.c: Fix common/ includes.
9125 * cp-support.h: Fix common/ includes.
9126 * cp-support.c: Fix common/ includes.
9127 * corelow.c: Fix common/ includes.
9128 * completer.h: Fix common/ includes.
9129 * completer.c: Fix common/ includes.
9130 * compile/compile.c: Fix common/ includes.
9131 * compile/compile-loc2c.c: Fix common/ includes.
9132 * compile/compile-cplus-types.c: Fix common/ includes.
9133 * compile/compile-cplus-symbols.c: Fix common/ includes.
9134 * command.h: Fix common/ includes.
9135 * cli/cli-dump.c: Fix common/ includes.
9136 * cli/cli-cmds.c: Fix common/ includes.
9137 * charset.c: Fix common/ includes.
9138 * build-id.c: Fix common/ includes.
9139 * btrace.h: Fix common/ includes.
9140 * btrace.c: Fix common/ includes.
9141 * breakpoint.h: Fix common/ includes.
9142 * breakpoint.c: Fix common/ includes.
9143 * ax.h:
9144 (enum agent_op): Fix common/ includes.
9145 * ax-general.c (struct aop_map): Fix common/ includes.
9146 * ax-gdb.c: Fix common/ includes.
9147 * auxv.c: Fix common/ includes.
9148 * auto-load.c: Fix common/ includes.
9149 * arm-tdep.c: Fix common/ includes.
9150 * arch/riscv.c: Fix common/ includes.
9151 * arch/ppc-linux-common.c: Fix common/ includes.
9152 * arch/i386.c: Fix common/ includes.
9153 * arch/arm.c: Fix common/ includes.
9154 * arch/arm-linux.c: Fix common/ includes.
9155 * arch/arm-get-next-pcs.c: Fix common/ includes.
9156 * arch/amd64.c: Fix common/ includes.
9157 * arch/aarch64.c: Fix common/ includes.
9158 * arch/aarch64-insn.c: Fix common/ includes.
9159 * arch-utils.c: Fix common/ includes.
9160 * amd64-windows-tdep.c: Fix common/ includes.
9161 * amd64-tdep.c: Fix common/ includes.
9162 * amd64-sol2-tdep.c: Fix common/ includes.
9163 * amd64-obsd-tdep.c: Fix common/ includes.
9164 * amd64-nbsd-tdep.c: Fix common/ includes.
9165 * amd64-linux-tdep.c: Fix common/ includes.
9166 * amd64-linux-nat.c: Fix common/ includes.
9167 * amd64-fbsd-tdep.c: Fix common/ includes.
9168 * amd64-fbsd-nat.c: Fix common/ includes.
9169 * amd64-dicos-tdep.c: Fix common/ includes.
9170 * amd64-darwin-tdep.c: Fix common/ includes.
9171 * agent.c: Fix common/ includes.
9172 * ada-lang.h: Fix common/ includes.
9173 * ada-lang.c: Fix common/ includes.
9174 * aarch64-tdep.c: Fix common/ includes.
9175
9176 2019-01-25 Tom Tromey <tom@tromey.com>
9177
9178 * common/create-version.sh: Use common/version.h.
9179
9180 2019-01-24 Pedro Alves <palves@redhat.com>
9181
9182 * infrun.c (signal_stop, signal_print, signal_program)
9183 (signal_catch, signal_pass): Now arrays instead of pointers.
9184 (update_signals_program_target, do_target_resume)
9185 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9186 * linux-nat.c (linux_nat_target::pass_signals)
9187 (linux_nat_target::create_inferior, linux_nat_target::attach):
9188 Adjust.
9189 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9190 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9191 * procfs.c (procfs_target::pass_signals): Adjust.
9192 * record-full.c (record_full_target::resume): Adjust.
9193 * remote.c (remote_target::pass_signals)
9194 (remote_target::program_signals): Adjust.
9195 * target-debug.h (target_debug_print_signals): Now takes a
9196 gdb::array_view as parameter. Adjust.
9197 * target.h (target_ops) <pass_signals, program_signals>: Replace
9198 pointer and length parameters with gdb::array_view.
9199 (target_pass_signals, target_program_signals): Likewise.
9200 * target-delegates.c: Regenerate.
9201
9202 2019-01-24 Pedro Alves <palves@redhat.com>
9203
9204 * common/forward-scope-exit.h
9205 (forward_scope_exit::forward_scope_exit): Pass arguments to
9206 m_bind_function directly, instead of creating a std::bind and
9207 copying that.
9208
9209 2019-01-24 Alan Hayward <alan.hayward@arm.com>
9210
9211 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9212 for static members.
9213 (pass_in_v_vfp_candidate): Likewise.
9214
9215 2019-01-23 Tom Tromey <tom@tromey.com>
9216 Pedro Alves <palves@redhat.com>
9217
9218 * regcache.c (class regcache_invalidator): Remove.
9219 (regcache::raw_write): Use make_scope_exit.
9220
9221 2019-01-23 Tom Tromey <tom@tromey.com>
9222
9223 * ui-out.h (class ui_out_emit_type): Update comment.
9224
9225 2019-01-23 Tom Tromey <tom@tromey.com>
9226
9227 * infrun.c (fetch_inferior_event): Update comment.
9228
9229 2019-01-23 Tom Tromey <tom@tromey.com>
9230 Pedro Alves <palves@redhat.com>
9231
9232 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9233 parameter.
9234 (fetch_inferior_event): Use SCOPE_EXIT.
9235
9236
9237 2019-01-23 Tom Tromey <tom@tromey.com>
9238 Pedro Alves <palves@redhat.com>
9239
9240 * infrun.c (disable_thread_events): Delete.
9241 (stop_all_threads): Use SCOPE_EXIT.
9242
9243 2019-01-23 Tom Tromey <tom@tromey.com>
9244 Pedro Alves <palves@redhat.com>
9245
9246 * symfile.c: Include forward-scope-exit.h.
9247 (clear_symtab_users_cleanup): Replace forward declaration with
9248 a FORWARD_SCOPE_EXIT.
9249 (syms_from_objfile_1): Use the forward_scope_exit and
9250 gdb::optional instead of cleanup_function.
9251 (reread_symbols): Use the forward_scope_exit instead of
9252 cleanup_function.
9253 (clear_symtab_users_cleanup): Remove function.
9254
9255 2019-01-23 Tom Tromey <tom@tromey.com>
9256 Pedro Alves <palves@redhat.com>
9257
9258 * linux-nat.c: Include scope-exit.h.
9259 (cleanup_target_stop): Remove.
9260 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9261 SCOPE_EXIT.
9262
9263 2019-01-23 Tom Tromey <tom@tromey.com>
9264 Pedro Alves <palves@redhat.com>
9265
9266 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9267 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9268
9269 2019-01-23 Tom Tromey <tom@tromey.com>
9270 Andrew Burgess <andrew.burgess@embecosm.com>
9271 Pedro Alves <palves@redhat.com>
9272
9273 * infrun.c (fetch_inferior_event): Use scope_exit.
9274 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9275 * top.c (execute_command): Use scope_exit.
9276 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9277 * utils.c (do_bpstat_clear_actions_cleanup)
9278 (make_bpstat_clear_actions_cleanup): Remove.
9279
9280 2019-01-23 Tom Tromey <tom@tromey.com>
9281 Pedro Alves <palves@redhat.com>
9282
9283 * infrun.c: Include "common/scope-exit.h"
9284 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9285 (wait_for_inferior): Use SCOPE_EXIT.
9286 (fetch_inferior_event): Use scope_exit.
9287
9288 2019-01-23 Tom Tromey <tom@tromey.com>
9289 Pedro Alves <palves@redhat.com>
9290
9291 * breakpoint.c (create_breakpoint): Remove cleanup.
9292
9293 2019-01-23 Tom Tromey <tom@tromey.com>
9294 Andrew Burgess <andrew.burgess@embecosm.com>
9295 Pedro Alves <palves@redhat.com>
9296
9297 2019-01-23 Pedro Alves <palves@redhat.com>
9298
9299 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9300
9301 2019-01-23 Pedro Alves <palves@redhat.com>
9302 Andrew Burgess <andrew.burgess@embecosm.com>
9303
9304 * gdbthread.h: Include "common/forward-scope-exit.h".
9305 (scoped_finish_thread_state): Redefine custom class in terms of
9306 forward_scope_exit.
9307
9308 2019-01-23 Pedro Alves <palves@redhat.com>
9309 Andrew Burgess <andrew.burgess@embecosm.com>
9310
9311 * common/forward-scope-exit.h: New file.
9312
9313 2019-01-23 Pedro Alves <palves@redhat.com>
9314 Andrew Burgess <andrew.burgess@embecosm.com>
9315 Tom Tromey <tom@tromey.com>
9316
9317 * common/scope-exit.h: New file.
9318
9319 2019-01-23 Pedro Alves <palves@redhat.com>
9320
9321 * common/preprocessor.h (ESC): Rename to ...
9322 (ESC_PARENS): ... this.
9323 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9324 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9325
9326 2019-01-23 Tom Tromey <tom@tromey.com>
9327
9328 * language.h (class scoped_switch_to_sym_language_if_auto):
9329 Initialize m_lang in both cases.
9330
9331 2019-01-23 Alan Hayward <alan.hayward@arm.com>
9332
9333 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9334 with XCNEW.
9335
9336 2019-01-22 Tom Tromey <tom@tromey.com>
9337
9338 * corelow.c: Do not include sys/file.h.
9339
9340 2019-01-22 Tom Tromey <tom@tromey.com>
9341
9342 * tui/tui-wingeneral.h: Include gdb_curses.h.
9343
9344 2019-01-22 Tom Tromey <tom@tromey.com>
9345
9346 * source-cache.h (class source_cache) <get_source_lines,
9347 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9348
9349 2019-01-22 Tom Tromey <tom@tromey.com>
9350
9351 * remote-fileio.h (struct remote_target): Declare.
9352
9353 2019-01-22 Tom Tromey <tom@tromey.com>
9354
9355 * python/py-arch.c: Do not include py-ref.h.
9356 * python/py-bpevent.c: Do not include py-ref.h.
9357 * python/py-cmd.c: Do not include py-ref.h.
9358 * python/py-continueevent.c: Do not include py-ref.h.
9359 * python/py-event.h: Do not include py-ref.h.
9360 * python/py-evtregistry.c: Do not include py-ref.h.
9361 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9362 * python/py-frame.c: Do not include py-ref.h.
9363 * python/py-framefilter.c: Do not include py-ref.h.
9364 * python/py-function.c: Do not include py-ref.h.
9365 * python/py-infevents.c: Do not include py-ref.h.
9366 * python/py-linetable.c: Do not include py-ref.h.
9367 * python/py-objfile.c: Do not include py-ref.h.
9368 * python/py-param.c: Do not include py-ref.h.
9369 * python/py-prettyprint.c: Do not include py-ref.h.
9370 * python/py-progspace.c: Do not include py-ref.h.
9371 * python/py-symbol.c: Do not include py-ref.h.
9372 * python/py-symtab.c: Do not include py-ref.h.
9373 * python/py-type.c: Do not include py-ref.h.
9374 * python/py-unwind.c: Do not include py-ref.h.
9375 * python/py-utils.c: Do not include py-ref.h.
9376 * python/py-value.c: Do not include py-ref.h.
9377 * python/py-varobj.c: Do not include py-ref.h.
9378 * python/py-xmethods.c: Do not include py-ref.h.
9379 * python/python.c: Do not include py-ref.h.
9380 * varobj.c: Do not include py-ref.h.
9381
9382 2019-01-22 Tom Tromey <tom@tromey.com>
9383
9384 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9385 keyword for bcache.
9386
9387 2019-01-22 Tom Tromey <tom@tromey.com>
9388
9389 * compile/compile-cplus-types.c: Remove a comment by #include.
9390
9391 2019-01-22 Tom Tromey <tom@tromey.com>
9392
9393 * compile/gcc-c-plugin.h: Include compile-internal.h.
9394
9395 2019-01-22 Tom Tromey <tom@tromey.com>
9396
9397 * stabsread.c (EXTERN): Do not define.
9398 (symnum, next_symbol_text_func, processing_gcc_compilation)
9399 (within_function, global_sym_chain, global_stabs)
9400 (previous_stab_code, this_object_header_files)
9401 (n_this_object_header_files)
9402 (n_allocated_this_object_header_files): Define.
9403 * stabsread.h (EXTERN): Never define. Use "extern".
9404
9405 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9406
9407 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9408 history_value.
9409
9410 2019-01-21 Tom Tromey <tom@tromey.com>
9411
9412 * ui-out.c: Fix includes.
9413 * tui/tui-source.c: Fix includes.
9414 * target.c: Fix includes.
9415 * remote.c: Fix includes.
9416 * regcache.c: Fix includes.
9417 * python/py-block.c: Fix includes.
9418 * printcmd.c: Fix includes.
9419 * or1k-tdep.c: Fix includes.
9420 * mi/mi-main.c: Fix includes.
9421 * m32r-tdep.c: Fix includes.
9422 * csky-tdep.c: Fix includes.
9423 * compile/compile-cplus-types.c: Fix includes.
9424 * cli/cli-interp.c: Fix includes.
9425
9426 2019-01-21 Alan Hayward <alan.hayward@arm.com>
9427
9428 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9429 for padding.
9430
9431 2019-01-16 Tom Tromey <tom@tromey.com>
9432
9433 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
9434 earlier.
9435 (struct objfile) <msymbols_range>: Move from top level.
9436 <msymbols>: New method.
9437 (class objfile_msymbols): Remove.
9438 * symtab.c (default_collect_symbol_completion_matches_break_on):
9439 Update.
9440 * symmisc.c (dump_msymbols): Update.
9441 * stabsread.c (scan_file_globals): Update.
9442 * objc-lang.c (info_selectors_command, info_classes_command)
9443 (find_methods): Update.
9444 * minsyms.c (find_solib_trampoline_target): Update.
9445 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
9446 * coffread.c (coff_symfile_read): Update.
9447 * ada-lang.c (ada_lookup_simple_minsym)
9448 (ada_collect_symbol_completion_matches): Update.
9449
9450 2019-01-16 Tom Tromey <tom@tromey.com>
9451
9452 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
9453 type. Remove no-argument constructor.
9454 <iterator::operator++>: Simplify.
9455 <begin>: Update.
9456 <end>: Use minimal_symbol_count.
9457
9458 2019-01-16 Tom Tromey <tom@tromey.com>
9459
9460 * objfiles.h (struct objfile) <psymtabs>: New method.
9461 (class objfile_psymtabs): Remove.
9462 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
9463 typedef.
9464 <range>: New method.
9465 (require_partial_symbols): Change return type.
9466 * psymtab.c (require_partial_symbols)
9467 (psym_expand_symtabs_matching): Update.
9468 * mdebugread.c (parse_partial_symbols): Update.
9469 * dbxread.c (dbx_end_psymtab): Update.
9470
9471 2019-01-15 Tom Tromey <tom@tromey.com>
9472
9473 * symtab.c (lookup_objfile_from_block)
9474 (lookup_symbol_in_objfile_symtabs)
9475 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
9476 (find_line_symtab, info_sources_command)
9477 (default_collect_symbol_completion_matches_break_on)
9478 (make_source_files_completion_list): Update.
9479 * symmisc.c (print_objfile_statistics, dump_objfile)
9480 (maintenance_print_symbols, maintenance_info_symtabs)
9481 (maintenance_check_symtabs, maintenance_info_line_tables):
9482 Update.
9483 * source.c (select_source_symtab)
9484 (forget_cached_source_info_for_objfile): Update.
9485 * objfiles.h (class objfile_compunits): Remove.
9486 (struct objfile) <compunits_range>: New typedef.
9487 (compunits): New method.
9488 * objfiles.c (objfile_relocate1): Update.
9489 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9490 * maint.c (count_symtabs_and_blocks): Update.
9491 * linespec.c (iterate_over_all_matching_symtabs): Update.
9492 * cp-support.c (add_symbol_overload_list_qualified): Update.
9493 * coffread.c (coff_symtab_read): Update.
9494 * ada-lang.c (add_nonlocal_symbols)
9495 (ada_collect_symbol_completion_matches)
9496 (ada_add_global_exceptions): Update.
9497
9498 2019-01-15 Tom Tromey <tom@tromey.com>
9499
9500 * progspace.h (program_space) <objfiles_safe_range>: New
9501 typedef.
9502 <objfiles_safe>: New method.
9503 * objfiles.h (class all_objfiles_safe): Remove.
9504 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
9505 * jit.c (jit_inferior_exit_hook): Update.
9506
9507 2019-01-17 Tom Tromey <tom@tromey.com>
9508
9509 * progspace.h (program_space) <objfiles_range>: New typedef.
9510 <objfiles>: New method.
9511 <objfiles_head>: Rename from objfiles.
9512 (object_files): Update.
9513 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
9514 * guile/scm-pretty-print.c
9515 (ppscm_find_pretty_printer_from_objfiles): Update.
9516 * guile/scm-objfile.c (gdbscm_objfiles): Update.
9517 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
9518 Update.
9519 * python/py-progspace.c (pspy_get_objfiles): Update.
9520 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
9521 Update.
9522 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
9523 (objfpy_lookup_objfile_by_build_id): Update.
9524 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9525 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
9526 Update.
9527 * symtab.c (iterate_over_symtabs, matching_obj_sections)
9528 (expand_symtab_containing_pc, lookup_objfile_from_block)
9529 (lookup_static_symbol, basic_lookup_transparent_type)
9530 (find_pc_sect_compunit_symtab, find_symbol_at_address)
9531 (find_line_symtab, info_sources_command)
9532 (default_collect_symbol_completion_matches_break_on)
9533 (make_source_files_completion_list, find_main_name): Update.
9534 * symmisc.c (print_symbol_bcache_statistics)
9535 (print_objfile_statistics, maintenance_print_symbols)
9536 (maintenance_print_msymbols, maintenance_print_objfiles)
9537 (maintenance_info_symtabs, maintenance_check_symtabs)
9538 (maintenance_expand_symtabs, maintenance_info_line_tables):
9539 Update.
9540 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
9541 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
9542 (map_overlay_command, unmap_overlay_command)
9543 (simple_overlay_update, expand_symtabs_matching)
9544 (map_symbol_filenames): Update.
9545 * symfile-debug.c (set_debug_symfile): Update.
9546 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
9547 Update.
9548 * source.c (select_source_symtab, forget_cached_source_info):
9549 Update.
9550 * solib.c (solib_read_symbols): Update.
9551 * solib-spu.c (append_ocl_sos): Update.
9552 * psymtab.c (maintenance_print_psymbols)
9553 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
9554 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
9555 * printcmd.c (info_symbol_command): Update.
9556 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
9557 Update.
9558 * objfiles.h (class all_objfiles): Remove.
9559 * objfiles.c (have_partial_symbols, have_full_symbols)
9560 (have_minimal_symbols, qsort_cmp, update_section_map)
9561 (shared_objfile_contains_address_p)
9562 (default_iterate_over_objfiles_in_search_order): Update.
9563 * objc-lang.c (info_selectors_command, info_classes_command)
9564 (find_methods): Update.
9565 * minsyms.c (find_solib_trampoline_target): Update.
9566 * maint.c (maintenance_info_sections)
9567 (maintenance_translate_address, count_symtabs_and_blocks):
9568 Update.
9569 * main.c (captured_main_1): Update.
9570 * linux-thread-db.c (try_thread_db_load_from_pdir)
9571 (has_libpthread): Update.
9572 * linespec.c (iterate_over_all_matching_symtabs)
9573 (search_minsyms_for_name): Update.
9574 * jit.c (jit_find_objf_with_entry_addr): Update.
9575 * hppa-tdep.c (find_unwind_entry)
9576 (hppa_lookup_stub_minimal_symbol): Update.
9577 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
9578 Update.
9579 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
9580 (elf_gnu_ifunc_resolve_by_got): Update.
9581 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
9582 * dwarf-index-write.c (save_gdb_index_command): Update.
9583 * cp-support.c (add_symbol_overload_list_qualified): Update.
9584 * breakpoint.c (create_overlay_event_breakpoint)
9585 (create_longjmp_master_breakpoint)
9586 (create_std_terminate_master_breakpoint)
9587 (create_exception_master_breakpoint): Update.
9588 * blockframe.c (find_pc_partial_function): Update.
9589 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
9590 (ada_collect_symbol_completion_matches)
9591 (ada_add_global_exceptions): Update.
9592
9593 2019-01-17 Tom Tromey <tom@tromey.com>
9594
9595 * solib-target.c (lm_info_target_p): Remove typedef. Don't
9596 declare VEC.
9597 (solib_target_parse_libraries): Change return type.
9598 (library_list_start_segment, library_list_start_section)
9599 (library_list_end_library, library_list_start_library); Update.
9600 (solib_target_free_library_list): Remove.
9601 (solib_target_parse_libraries): Remove cleanup. Change return
9602 type.
9603 (solib_target_current_sos): Update.
9604
9605 2019-01-17 Tom Tromey <tromey@bapiya>
9606
9607 * valprint.c: Replace "the the" with "the".
9608 * symtab.c: Replace "the the" with "the".
9609 * solib.c: Replace "the the" with "the".
9610 * solib-dsbt.c: Replace "the the" with "the".
9611 * linespec.c: Replace "the the" with "the".
9612 * dwarf2loc.h: Replace "the the" with "the".
9613 * amd64-windows-tdep.c: Replace "the the" with "the".
9614 * aarch64-tdep.c: Replace "the the" with "the".
9615
9616 2019-01-16 Keith Seitz <keiths@redhat.com>
9617
9618 PR gdb/23773
9619 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
9620 <builder>: Rename to ..
9621 <m_builder>: ... this and make private.
9622 (dwarf2_cu::get_builder): New method. Change all users of
9623 `builder' to use this method.
9624 (dwarf2_start_symtab): Move to ...
9625 (dwarf2_cu::start_symtab): ... here. Update all callers
9626 (setup_type_unit_groups): Move to ...
9627 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
9628 callers.
9629 (dwarf2_cu::reset_builder): New method.
9630 (process_full_compunit, process_full_type_unit): Use
9631 dwarf2_cu::reset_builder.
9632 (follow_die_offset): Record the ancestor CU if it is different
9633 from the followed DIE's CU.
9634 (follow_die_sig_1): Likewise.
9635
9636 2019-01-15 Tom Tromey <tom@tromey.com>
9637
9638 * remote.c (class remote_state) <buf>: Now a char_vector.
9639 <buf_size>: Remove.
9640 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
9641 parameter.
9642 (remote_target::getpkt_or_notif_sane_1)
9643 (remote_target::getpkt_sane)
9644 (remote_target::getpkt_or_notif_sane): Likewise.
9645 (class remote_target) <putpkt>: New overload.
9646 (remote_target::read_frame): Change type of "buf_p". Remove
9647 sizeof_p parameter.
9648 (packet_ok): New overload.
9649 (packet_check_result): New overload.
9650 Update all uses.
9651
9652 2019-01-14 Tom Tromey <tom@tromey.com>
9653
9654 * remote-notif.c (handle_notification, remote_notif_ack)
9655 (remote_notif_parse): Make "buf" const.
9656 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
9657 const.
9658 (remote_notif_parse, remote_notif_ack, handle_notification):
9659 Likewise.
9660 * remote.c (remote_notif_stop_parse): Make "buf" const.
9661 (remote_target::remote_parse_stop_reply): Make "buf" const.
9662 (remote_notif_stop_ack): Make "buf" const.
9663
9664 2019-01-14 Tom Tromey <tom@tromey.com>
9665
9666 * remote.c (remote_console_output): Make parameter const.
9667
9668 2019-01-14 Tom Tromey <tom@tromey.com>
9669
9670 * target-debug.h (target_debug_print_signals): Constify.
9671 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
9672 * procfs.c (procfs_target::pass_signals): Update.
9673 * linux-nat.c (linux_nat_target::pass_signals): Update.
9674 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
9675 * target-delegates.c: Rebuild.
9676 * remote.c (remote_target::program_signals): Update.
9677 (remote_target::pass_signals): Update.
9678 * target.c (target_pass_signals): Constify argument.
9679 (target_program_signals): Likewise.
9680 * target.h (struct target_ops) <pass_signals, program_signals>:
9681 Constify argument.
9682 (target_pass_signals, target_program_signals): Constify argument.
9683
9684 2019-01-14 Tom Tromey <tom@tromey.com>
9685
9686 PR tui/28819:
9687 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
9688
9689 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9690
9691 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
9692 field.
9693 * rs6000-tdep.c: Include reggroups.h.
9694 (IS_V_ALIAS_PSEUDOREG): Define.
9695 (rs6000_register_name): Return names for the "vX" aliases.
9696 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
9697 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
9698 aliases. Call default_register_reggroup_p for all other
9699 pseudo-registers.
9700 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
9701 New functions.
9702 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
9703 Handle "vX" aliases.
9704 (v_alias_pseudo_register_collect): New function.
9705 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
9706 (rs6000_gdbarch_init): Initialize "vX" aliases as
9707 pseudo-registers. Restore registration of
9708 rs6000_pseudo_register_reggroup_p with
9709 set_tdesc_pseudo_register_reggroup_p.
9710
9711 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
9712
9713 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
9714 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
9715 set_gdbarch_num_pseudo_regs.
9716
9717 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9718
9719 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
9720 Remove arg prefixname, add do_set and do_show.
9721 Add member functions set_list and show_list.
9722 * cli/cli-style.c (class cli_style_option): Update accordingly.
9723 (style_set_list): Move to file scope.
9724 (style_show_list): Likewise.
9725 (set_style): Call help_list.
9726 (show_style): Call cmd_show_list.
9727 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
9728 Update to use the new macro.
9729
9730 2019-10-12 Joel Brobecker <brobecker@adacore.com>
9731
9732 * ada-lang.c (_initialize_ada_language): Expand the help text
9733 for the "catch exception" command.
9734
9735 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9736
9737 * symtab.c (matching_obj_sections): Initialize obj,
9738 declare it closer to its usage.
9739
9740 2019-01-10 Tom Tromey <tom@tromey.com>
9741
9742 * thread-iter.h (inf_threads_iterator): Use next_iterator.
9743 (basic_inf_threads_range): Remove.
9744 (inf_threads_range, inf_non_exited_threads_range)
9745 (safe_inf_threads_range): Use next_adapter.
9746
9747 2019-01-10 Keith Seitz <keiths@redhat.com>
9748
9749 PR gdb/23712
9750 PR symtab/23010
9751 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
9752 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
9753
9754 2019-01-10 Keith Seitz <keiths@redhat.com>
9755
9756 PR gdb/23712
9757 PR symtab/23010
9758 * dictionary.c (pending_to_vector): Remove.
9759 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
9760 Remove _1 suffix, replacing functions of the same name. Update
9761 all callers.
9762 (dict_create_hashed, dict_create_hashed_expandable)
9763 (dict_create_linear, dict_create_linear_expandable, dict_free)
9764 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
9765 Make functions static.
9766
9767 2019-01-10 Keith Seitz <keiths@redhat.com>
9768
9769 PR gdb/23712
9770 PR symtab/23010
9771 * dictionary.h (struct dictionary): Replace declaration with
9772 multidictionary.
9773 (dict_create_hashed, dict_create_hashed_expandable)
9774 (dict_create_linear, dict_create_linear_expandable)
9775 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
9776 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
9777 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
9778 taking multidictionary argument.
9779 [ALL_DICT_SYMBOLS]: Update for multidictionary.
9780 * block.h (struct block) <dict>: Change to multidictionary
9781 and rename `multidict'.
9782 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
9783 symmisc.c: Update all dictionary references to multidictionary.
9784
9785 2019-01-10 Keith Seitz <keiths@redhat.com>
9786
9787 PR gdb/23712
9788 PR symtab/23010
9789 * dictionary.c: Include unordered_map.
9790 (pending_to_vector): New function.
9791 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
9792 Rewrite the non-"_1" functions to take vector instead
9793 of linked list.
9794 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
9795 "new" _1 versions of the same name.
9796 (multidictionary): Define.
9797 (std::hash<enum language): New definition.
9798 (collate_pending_symbols_by_language, mdict_create_hashed)
9799 (mdict_create_hashed_expandable, mdict_create_linear)
9800 (mdict_create_linear_expandable, mdict_free)
9801 (find_language_dictionary, create_new_language_dictionary)
9802 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
9803 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
9804 (mdict_size, mdict_empty): New functions.
9805 * dictionary.h (mdict_iterator): Define.
9806
9807 2019-01-10 Pedro Alves <palves@redhat.com>
9808
9809 * breakpoint.c (read_uploaded_action)
9810 (create_tracepoint_from_upload): Adjust to use
9811 gdb::unique_xmalloc_ptr.
9812 * ctf.c (ctf_write_uploaded_tp):
9813 (SET_ARRAY_FIELD): Use emplace_back.
9814 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
9815 * tracefile-tfile.c (tfile_write_uploaded_tp):
9816 * tracepoint.c (parse_tracepoint_definition): Adjust to use
9817 gdb::unique_xmalloc_ptr.
9818 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
9819 at_string, cond_string, cmd_strings>: Replace char pointers
9820 with gdb::unique_xmalloc_ptr.
9821
9822 2019-01-10 Pedro Alves <palves@redhat.com>
9823
9824 * solib-target.c (library_list_start_library): Don't xstrdup name.
9825
9826 2019-01-10 Pedro Alves <palves@redhat.com>
9827
9828 * mdebugread.c (parse_partial_symbols): Use
9829 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
9830
9831 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
9832
9833 * linux-fork.c (scoped_switch_fork_info)
9834 <~scoped_switch_fork_info>: Fix incorrect variable name.
9835
9836 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
9837
9838 * linux-fork.c (scoped_switch_fork_info)
9839 <scoped_switch_fork_info>: Make explicit.
9840 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
9841
9842 2019-01-10 Tom Tromey <tom@tromey.com>
9843
9844 * objfiles.h (objfile::reset_psymtabs): Update.
9845 * objfiles.c (objfile::objfile): Update.
9846 * psymtab.h (psymtab_storage::obstack): Update.
9847 (psymtab_storage::m_obstack): Use gdb::optional.
9848 (class psymtab_storage): Update comment. Remove objfile
9849 parameter.
9850 * psymtab.c (psymtab_storage::psymtab_storage): Update.
9851
9852 2019-01-10 Tom Tromey <tom@tromey.com>
9853
9854 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
9855 <free_psymtabs>: Now private.
9856 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
9857 (allocate_psymtab): Use new method.
9858
9859 2019-01-10 Tom Tromey <tom@tromey.com>
9860
9861 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
9862 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
9863 * mdebugread.c (parse_partial_symbols): Use
9864 allocate_dependencies.
9865 * dwarf2read.c (dwarf2_create_include_psymtab): Use
9866 allocate_dependencies.
9867 (process_psymtab_comp_unit_reader)
9868 (build_type_psymtab_dependencies): Likewise.
9869 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
9870
9871 2019-01-10 Tom Tromey <tom@tromey.com>
9872
9873 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
9874 PSYMBOL_SET_LANGUAGE.
9875 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
9876
9877 2019-01-10 Tom Tromey <tom@tromey.com>
9878
9879 * psymtab.h (psymtab_storage::obstack): New method.
9880 <m_obstack>: Rename from obstack; now private.
9881 * psymtab.c (psymtab_storage): Update.
9882 * dwarf2read.c (create_addrmap_from_index)
9883 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
9884 Update.
9885
9886 2019-01-10 Tom Tromey <tom@tromey.com>
9887
9888 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
9889 * objfiles.h (objfile::reset_psymtabs): New method.
9890
9891 2019-01-10 Tom Tromey <tom@tromey.com>
9892
9893 * symmisc.c (print_symbol_bcache_statistics): Update.
9894 (print_objfile_statistics): Update.
9895 * symfile.c (reread_symbols): Update.
9896 * psymtab.h (class psymtab_storage): New.
9897 * psymtab.c (psymtab_storage): New constructor.
9898 (~psymtab_storage): New destructor.
9899 (require_partial_symbols): Update.
9900 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
9901 (find_pc_sect_psymtab, find_pc_sect_psymbol)
9902 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
9903 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
9904 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
9905 (start_psymtab_common, end_psymtab_common)
9906 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
9907 (allocate_psymtab): Update.
9908 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
9909 Update.
9910 (dump_psymtab_addrmap, maintenance_print_psymbols)
9911 (maintenance_check_psymtabs): Update.
9912 (class objfile_psymtabs): Move to objfiles.h.
9913 * psympriv.h (discard_psymtab): Now inline.
9914 (psymtab_discarder::psymtab_discarder): Update.
9915 (psymtab_discarder::~psymtab_discarder): Update.
9916 (ALL_OBJFILE_PSYMTABS): Rewrite.
9917 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
9918 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
9919 Remove fields.
9920 <partial_symtabs>: New field.
9921 (class objfile_psymtabs): Move from psymtab.h. Update.
9922 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
9923 psymbol_cache.
9924 (objfile::~objfile): Don't destroy psymbol_cache.
9925 * mdebugread.c (parse_partial_symbols): Update.
9926 * dwarf2read.c (create_addrmap_from_index)
9927 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9928 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
9929 (add_partial_subprogram, dwarf2_ranges_read): Update.
9930 * dwarf-index-write.c (write_address_map)
9931 (write_one_signatured_type, recursively_write_psymbols)
9932 (class debug_names, class debug_names, write_psymtabs_to_index):
9933 Update.
9934
9935 2019-01-10 Tom Tromey <tom@tromey.com>
9936
9937 * symtab.h (SYMBOL_SET_NAMES): Update.
9938 (symbol_set_names): Update.
9939 (MSYMBOL_SET_NAMES): Update.
9940 * symtab.c (symbol_set_names): Change argument to be an
9941 objfile_per_bfd_storage.
9942 * psymtab.c (add_psymbol_to_bcache): Update.
9943 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
9944
9945 2019-01-10 Tom Tromey <tom@tromey.com>
9946
9947 * symtab.c (create_demangled_names_hash): Change argument to be an
9948 objfile_per_bfd_storage.
9949 (symbol_set_names): Update.
9950
9951 2019-01-10 Tom Tromey <tom@tromey.com>
9952
9953 * xcoffread.c (xcoff_initial_scan): Unconditionally call
9954 init_psymbol_list.
9955 * psymtab.c (init_psymbol_list): Do nothing if already called.
9956 * psympriv.h (init_psymbol_list): Add comment.
9957 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
9958 init_psymbol_list.
9959 * dbxread.c (dbx_symfile_read): Unconditionally call
9960 init_psymbol_list.
9961
9962 2019-01-10 Tom Tromey <tom@tromey.com>
9963
9964 * xcoffread.c (scan_xcoff_symtab): Update.
9965 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
9966 "where".
9967 * mdebugread.c (parse_partial_symbols)
9968 (handle_psymbol_enumerators): Update.
9969 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
9970 * dbxread.c (read_dbx_symtab): Update.
9971 * psympriv.h (psymbol_placement): New enum.
9972 (add_psymbol_to_list): Update.
9973
9974 2019-01-10 Tom Tromey <tom@tromey.com>
9975
9976 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
9977 static_psymbols parameters.
9978 (scan_xcoff_symtab): Update.
9979 * psymtab.c (start_psymtab_common): Remove global_psymbols and
9980 static_psymbols parameters.
9981 * psympriv.h (start_psymtab_common): Update.
9982 * mdebugread.c (parse_partial_symbols): Update.
9983 * dwarf2read.c (create_partial_symtab): Update.
9984 * dbxread.c (read_dbx_symtab): Update.
9985 (start_psymtab): Remove global_psymbols and static_psymbols
9986 parameters.
9987
9988 2019-01-10 Tom Tromey <tom@tromey.com>
9989
9990 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
9991 * psymtab.c (allocate_psymtab): Add comment.
9992 * psympriv.h (allocate_psymtab): Add comment.
9993 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
9994 initializations.
9995 * dbxread.c (dbx_end_psymtab): Remove some initializations.
9996
9997 2019-01-10 Tom Tromey <tom@tromey.com>
9998
9999 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10000 Don't declare.
10001 * mipsread.c: Include mdebugread.h.
10002 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10003 Declare.
10004 * elfread.c: Include mdebugread.h.
10005
10006 2019-01-09 Tom Tromey <tom@tromey.com>
10007
10008 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10009 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10010 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10011 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10012 (psym_lookup_symbol, psym_find_last_source_symtab)
10013 (psym_forget_cached_source_info, psym_print_stats)
10014 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10015 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10016 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10017 (psym_find_compunit_symtab_by_address)
10018 (maintenance_print_psymbols, maintenance_info_psymtabs)
10019 (maintenance_check_psymtabs): Use ranged for.
10020 * psymtab.h (class objfile_psymtabs): New.
10021 (require_partial_symbols): Return objfile_psymtabs.
10022 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10023
10024 2019-01-09 Tom Tromey <tom@tromey.com>
10025
10026 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10027 (find_pc_mapped_section, list_overlays_command)
10028 (map_overlay_command, unmap_overlay_command)
10029 (simple_overlay_update): Use all_objfiles.
10030 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10031 * printcmd.c (info_symbol_command): Use all_objfiles.
10032 * objfiles.h (ALL_OBJSECTIONS): Remove.
10033 * maint.c (maintenance_translate_address): Use all_objfiles.
10034 * gcore.c (gcore_create_callback): Use all_objfiles.
10035 (objfile_find_memory_regions): Likewise.
10036
10037 2019-01-09 Tom Tromey <tom@tromey.com>
10038
10039 * symtab.c (find_line_symtab, info_sources_command)
10040 (make_source_files_completion_list): Use objfile_compunits.
10041 * source.c (select_source_symtab): Use objfile_compunits.
10042 * objfiles.h (struct objfile): Update comment.
10043 (ALL_OBJFILES): Remove.
10044 (ALL_FILETABS): Remove.
10045 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10046 objfile_compunits.
10047
10048 2019-01-09 Tom Tromey <tom@tromey.com>
10049
10050 * symmisc.c (print_objfile_statistics, dump_objfile)
10051 (maintenance_print_symbols): Use compunit_filetabs.
10052 * source.c (forget_cached_source_info_for_objfile): Use
10053 compunit_filetabs.
10054 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10055 (ALL_FILETABS): Use compunit_filetabs.
10056 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10057 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10058
10059 2019-01-09 Tom Tromey <tom@tromey.com>
10060
10061 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10062 (compunit_filetabs): New.
10063 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10064 compunit_filetabs.
10065 (info_sources_command, make_source_files_completion_list): Remove
10066 declaration.
10067 * symmisc.c (print_objfile_statistics, dump_objfile)
10068 (maintenance_print_symbols): Remove declaration.
10069 (maintenance_info_symtabs): Use compunit_filetabs.
10070 (maintenance_info_line_tables): Likewise.
10071 * source.c (select_source_symtab): Change local variable name.
10072 (forget_cached_source_info_for_objfile): Remove declaration.
10073 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10074 * objfiles.c (objfile_relocate1): Remove declaration.
10075 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10076 declaration.
10077 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10078 * coffread.c (coff_symtab_read): Remove declaration.
10079 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10080 compunit_filetabs.
10081
10082 2019-01-09 Tom Tromey <tom@tromey.com>
10083
10084 * symtab.c (lookup_objfile_from_block)
10085 (find_pc_sect_compunit_symtab, search_symbols)
10086 (default_collect_symbol_completion_matches_break_on): Use
10087 objfile_compunits.
10088 * objfiles.h (ALL_COMPUNITS): Remove.
10089 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10090 * cp-support.c (add_symbol_overload_list_qualified): Use
10091 objfile_compunits.
10092 * ada-lang.c (ada_collect_symbol_completion_matches)
10093 (ada_add_global_exceptions): Use objfile_compunits.
10094
10095 2019-01-09 Tom Tromey <tom@tromey.com>
10096
10097 * source.c (select_source_symtab)
10098 (forget_cached_source_info_for_objfile): Remove declaration.
10099 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10100 declaration.
10101 * maint.c (count_symtabs_and_blocks): Remove declaration.
10102 * cp-support.c (add_symbol_overload_list_qualified): Remove
10103 declaration.
10104 * coffread.c (coff_symtab_read): Remove declaration.
10105 * symtab.c (lookup_symbol_in_objfile_symtabs)
10106 (basic_lookup_transparent_type_1): Use objfile_compunits.
10107 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10108 (info_sources_command, search_symbols)
10109 (default_collect_symbol_completion_matches_break_on)
10110 (make_source_files_completion_list): Remove declaration.
10111 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10112 (ada_collect_symbol_completion_matches)
10113 (ada_add_global_exceptions): Remove declaration.
10114 * linespec.c (iterate_over_all_matching_symtabs): Use
10115 objfile_compunits.
10116 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10117 (class objfile_compunits): New.
10118 (ALL_COMPUNITS): Use objfile_compunits.
10119 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10120 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10121 objfile_compunits.
10122 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10123
10124 2019-01-09 Tom Tromey <tom@tromey.com>
10125
10126 * symtab.c (search_symbols)
10127 (default_collect_symbol_completion_matches_break_on): Use
10128 objfile_msymbols.
10129 * ada-lang.c (ada_lookup_simple_minsym)
10130 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10131 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10132 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10133 objfile_msymbols.
10134 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10135 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10136 * objc-lang.c (find_methods): Use objfile_msymbols.
10137 (info_selectors_command, info_classes_command): Likewise.
10138 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10139 * objfiles.h (class objfile_msymbols): New.
10140 (ALL_OBJFILE_MSYMBOLS): Remove.
10141 (ALL_MSYMBOLS): Remove.
10142
10143 2019-01-09 Tom Tromey <tom@tromey.com>
10144
10145 * common/next-iterator.h (next_adapter): Add Iterator template
10146 parameter.
10147 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10148 (class all_objfiles_safe): New.
10149 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10150 * objfiles.c (put_objfile_before): Update comment.
10151 (add_separate_debug_objfile): Likewise.
10152 (free_all_objfiles): Use all_objfiles_safe.
10153 (objfile_purge_solibs): Likewise.
10154
10155 2019-01-09 Tom Tromey <tom@tromey.com>
10156
10157 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10158 (expand_symtab_containing_pc, lookup_static_symbol)
10159 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10160 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10161 all_objfiles.
10162 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10163 * breakpoint.c (create_overlay_event_breakpoint)
10164 (create_longjmp_master_breakpoint)
10165 (create_std_terminate_master_breakpoint)
10166 (create_exception_master_breakpoint): Use all_objfiles.
10167 * linux-thread-db.c (try_thread_db_load_from_pdir)
10168 (has_libpthread): Use all_objfiles.
10169 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10170 * linespec.c (iterate_over_all_matching_symtabs)
10171 (search_minsyms_for_name): Use all_objfiles.
10172 * maint.c (maintenance_info_sections): Use all_objfiles.
10173 * main.c (captured_main_1): Use all_objfiles.
10174 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10175 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10176 * guile/scm-pretty-print.c
10177 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10178 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10179 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10180 (maintenance_print_msymbols): Use all_objfiles.
10181 * source.c (select_source_symtab): Use all_objfiles.
10182 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10183 * symfile.c (remove_symbol_file_command)
10184 (expand_symtabs_matching, map_symbol_filenames): Use
10185 all_objfiles.
10186 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10187 all_objfiles.
10188 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10189 * objc-lang.c (find_methods): Use all_objfiles.
10190 * objfiles.c (have_partial_symbols, have_full_symbols)
10191 (have_minimal_symbols, qsort_cmp)
10192 (default_iterate_over_objfiles_in_search_order): Use
10193 all_objfiles.
10194 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10195 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10196 (maintenance_check_psymtabs): Use all_objfiles.
10197 (ALL_PSYMTABS): Remove.
10198 * compile/compile-object-run.c (do_module_cleanup): Use
10199 all_objfiles.
10200 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10201 * cp-support.c (add_symbol_overload_list_qualified): Use
10202 all_objfiles.
10203 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10204 Use all_objfiles.
10205 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10206 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10207 all_objfiles.
10208 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10209 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10210 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10211 Uses all_objfiles.
10212 * solib.c (solib_read_symbols): Use all_objfiles
10213
10214 2019-01-09 Tom Tromey <tom@tromey.com>
10215
10216 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10217 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10218 all_objfiles.
10219 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10220 * symmisc.c (print_symbol_bcache_statistics)
10221 (print_objfile_statistics, maintenance_print_objfiles)
10222 (maintenance_info_symtabs, maintenance_check_symtabs)
10223 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10224 all_objfiles.
10225 * source.c (forget_cached_source_info): Use all_objfiles.
10226 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10227 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10228 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10229 * objfiles.c (update_section_map): Use all_objfiles.
10230 (shared_objfile_contains_address_p): Likewise.
10231 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10232 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10233
10234 2019-01-09 Tom Tromey <tom@tromey.com>
10235
10236 * common/next-iterator.h: New file.
10237 * objfiles.h (class all_objfiles): New.
10238 (struct objfile_iterator): New.
10239
10240 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10241
10242 * NEWS: Move the description of the changed "frame", "select-frame",
10243 and "info frame" commands to the Changed commands section.
10244
10245 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10246
10247 * gdbtypes.c (check_stub_method_group): Remove handling of old
10248 mangling schemes.
10249 * linespec.c (find_methods): Likewise.
10250 * stabsread.c (read_member_functions): Likewise.
10251 * valops.c (search_struct_method): Likewise.
10252 (value_struct_elt_for_reference): Likewise.
10253 * NEWS: Mention this change.
10254
10255 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10256
10257 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10258 print_source_lines.
10259 * source.c (print_source_lines_base): Update line number check.
10260 (print_source_lines): New function.
10261 (source_lines_range::source_lines_range): New function.
10262 * source.h (class source_lines_range): New class.
10263 (print_source_lines): New declaration.
10264
10265 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10266
10267 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10268
10269 2019-01-08 Tom Tromey <tom@tromey.com>
10270 Simon Marchi <simon.marchi@ericsson.com>
10271
10272 PR gdb/24060
10273 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10274 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10275 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10276 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10277 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10278 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10279
10280 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10281
10282 * source.c (select_source_symtab): Move header comment to
10283 declaration in source.h.
10284 (forget_cached_source_info_for_objfile): Likewise.
10285 (forget_cached_source_info): Likewise.
10286 (identify_source_line): Likewise.
10287 * source.h (identify_source_line): Move declaration from symtab.h
10288 and add comment from source.c
10289 (print_source_lines): Likewise.
10290 (forget_cached_source_info_for_objfile): Likewise.
10291 (forget_cached_source_info): Likewise.
10292 (select_source_symtab): Likewise.
10293 (enum print_source_lines_flag): Move definition from symtab.h.
10294 * symtab.h (identify_source_line): Move declaration to source.h.
10295 (print_source_lines): Likewise.
10296 (forget_cached_source_info_for_objfile): Likewise.
10297 (forget_cached_source_info): Likewise.
10298 (select_source_symtab): Likewise.
10299 (enum print_source_lines_flag): Move definition to source.h.
10300 * tui/tui-hooks.c: Add 'source.h' include.
10301
10302 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10303
10304 * source.c (print_source_lines_base): Handle requests to print
10305 reverse line number sequences, and guard against empty lines
10306 string.
10307
10308 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10309
10310 * source.c (print_source_lines_base): Fix skip of '\r' if next
10311 character is '\n'.
10312
10313 2019-01-06 Tom Tromey <tom@tromey.com>
10314
10315 * c-exp.y (struct c_parse_state) <macro_original_text,
10316 expansion_obstack>: New member.
10317 (macro_original_text, expansion_obstack): Remove globals.
10318 (scan_macro_expansion, scanning_macro_expansion)
10319 (finished_macro_expansion): Update.
10320 (scan_macro_cleanup): Remove.
10321 (yylex, c_parse): Update.
10322
10323 2019-01-06 Tom Tromey <tom@tromey.com>
10324
10325 * c-exp.y (struct c_parse_state) <strings>: New member.
10326 (operator_stoken): Update.
10327
10328 2019-01-06 Tom Tromey <tom@tromey.com>
10329
10330 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10331 (union type_stack_elt) <typelist_val>: Now a pointer to
10332 std::vector.
10333 (type_stack_cleanup): Don't declare.
10334 (push_typelist): Update.
10335 * parse.c (pop_typelist): Return a std::vector.
10336 (push_typelist): Take a std::vector.
10337 (follow_types): Update. Do not free args.
10338 (type_stack_cleanup): Remove.
10339 * c-exp.y (struct c_parse_state): New.
10340 (cpstate): New global.
10341 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10342 (nonempty_typelist): Update.
10343 (func_mod): Create a new vector.
10344 (c_parse): Create a c_parse_state.
10345 (check_parameter_typelist): Do not delete params.
10346 (function_method): Update. Do not delete type_list.
10347
10348 2019-01-06 Tom Tromey <tom@tromey.com>
10349
10350 PR gdb/28155:
10351 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10352 check_typedef.
10353 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10354 (print_return_value): Likewise.
10355
10356 2019-01-05 Tom Tromey <tom@tromey.com>
10357
10358 * contrib/cleanup_check.py: Remove.
10359 * contrib/gcc-with-excheck: Remove.
10360 * contrib/exsummary.py: Remove.
10361 * contrib/excheck.py: Remove.
10362
10363 2019-01-05 Joel Brobecker <brobecker@adacore.com>
10364
10365 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10366 NULL. Initialize tpprev to NULL instead of assigning it
10367 to NULL on the next statement.
10368 * windows-nat.c (windows_delete_thread): Remove check for
10369 main_thread_id before printing thread exit notifications.
10370 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10371 Remove thread ID check against main_thread_id.
10372 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10373 windows_delete_thread.
10374 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10375
10376 2019-01-04 Tom Tromey <tom@tromey.com>
10377
10378 * compile/compile.c (_initialize_compile): Use upper case for
10379 metasyntactic variables.
10380 * symmisc.c (_initialize_symmisc): Use upper case for
10381 metasyntactic variables.
10382 * psymtab.c (_initialize_psymtab): Use upper case for
10383 metasyntactic variables.
10384 * demangle.c (demangle_command): Use upper case for metasyntactic
10385 variables.
10386 (_initialize_demangler): Likewise.
10387 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10388 variables.
10389
10390 2019-01-03 Tom Tromey <tom@tromey.com>
10391
10392 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10393
10394 2019-01-03 Tom Tromey <tom@tromey.com>
10395
10396 * python/py-symtab.c (salpy_str): Update.
10397 (struct salpy_sal_object) <symtab>: Now a PyObject.
10398 (salpy_dealloc): Update.
10399 (del_objfile_sal): Use gdbpy_ref.
10400
10401 2019-01-03 Tom Tromey <tom@tromey.com>
10402
10403 * python/py-type.c (convert_field): Use new_reference. Return
10404 gdbpy_ref.
10405 (make_fielditem): Return gdbpy_ref.
10406 (typy_fields): Update.
10407 (typy_getitem): Update.
10408 (field_name): Return gdbpy_ref. Use new_reference.
10409 (typy_iterator_iternext): Update.
10410
10411 2019-01-03 Tom Tromey <tom@tromey.com>
10412
10413 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10414
10415 2019-01-03 Tom Tromey <tom@tromey.com>
10416
10417 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10418 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10419 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10420 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10421 (pspy_set_type_printers): Likewise.
10422 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10423 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10424 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10425 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10426 (objfpy_set_type_printers): Likewise.
10427
10428 2019-01-03 Tom Tromey <tom@tromey.com>
10429
10430 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10431 (gdbpy_print_stack): Use gdbpy_err_fetch.
10432 * python/python-internal.h (class gdbpy_err_fetch): New class.
10433 (class gdbpy_enter) <m_error_type, m_error_value,
10434 m_error_traceback>: Remove.
10435 <m_error>: New member.
10436 (gdbpy_exception_to_string): Don't declare.
10437 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
10438 * python/py-value.c (convert_value_from_python): Use
10439 gdbpy_err_fetch.
10440 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
10441 gdbpy_exception_to_string.
10442 (gdbpy_handle_exception): Use gdbpy_err_fetch.
10443 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
10444 gdbpy_err_fetch.
10445
10446 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10447
10448 * linux-nat.c (delete_lwp_cleanup): Delete.
10449 (struct lwp_deleter): New struct.
10450 (lwp_info_up): New typedef.
10451 (linux_nat_target::follow_fork): Delete cleanup, and make use of
10452 lwp_info_up.
10453
10454 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10455
10456 * linux-fork.c (class scoped_switch_fork_info): New class.
10457 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
10458
10459 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10460
10461 * valops.c (find_overload_match): Remove use of null_cleanup, and
10462 calls to do_cleanups.
10463
10464 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10465
10466 * compile/compile-cplus-types.c
10467 (compile_cplus_instance::decl_name): Handle changes to
10468 cp_func_name.
10469 * cp-support.c (cp_func_name): Update header comment, update
10470 return type.
10471 * cp-support.h (cp_func_name): Update return type in declaration.
10472 * valops.c (find_overload_match): Move temp_func local to top
10473 level of function and change its type. Use temp_func to hold and
10474 delete temporary string obtained from cp_func_name.
10475
10476 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10477
10478 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
10479 gdb::char_vector, remove cleanup, and update uses of `msg`.
10480
10481 2019-01-03 Jim Wilson <jimw@sifive.com>
10482
10483 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
10484
10485 2019-01-02 Tom Tromey <tom@tromey.com>
10486
10487 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
10488 (tdesc_parse_xml): Remove cleanups.
10489 * target-descriptions.h (make_cleanup_free_target_description):
10490 Don't declare.
10491 (target_desc_deleter): New struct.
10492 (target_desc_up): New typedef.
10493 * target-descriptions.c (target_desc_deleter::operator()): Rename
10494 from free_target_description.
10495 (make_cleanup_free_target_description): Remove.
10496
10497 2019-01-02 Tom Tromey <tom@tromey.com>
10498
10499 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
10500 constructor, destructor.
10501 (linespec_parser): Remove typedef.
10502 (~linespec_parser): Rename from linespec_parser_delete.
10503 (linespec_lex_to_end, linespec_complete_label)
10504 (linespec_complete): Update.
10505 (decode_line_full): Remove cleanups.
10506 (decode_line_1): Update.
10507
10508 2019-01-02 Tom Tromey <tom@tromey.com>
10509
10510 * python/python-internal.h (inferior_to_inferior_object): Change
10511 return type.
10512 * python/py-exitedevent.c (create_exited_event_object): Update.
10513 * python/py-inferior.c (inferior_to_inferior_object): Return
10514 gdbpy_ref.
10515 (python_new_inferior, python_inferior_deleted)
10516 (thread_to_thread_object, delete_thread_object)
10517 (build_inferior_list, gdbpy_selected_inferior): Update.
10518 * python/py-infthread.c (create_thread_object): Update. Also fail
10519 if inferior_to_inferior_object fails.
10520
10521 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
10522
10523 * inferior.h (class inferior) <displaced_step_state>: New field.
10524 * infrun.h (struct displaced_step_state): Move here from
10525 infrun.c. Initialize fields, add constructor.
10526 <inf>: Remove field.
10527 <reset>: New method.
10528 * infrun.c (struct displaced_step_inferior_state): Move to
10529 infrun.h.
10530 (displaced_step_inferior_states): Remove.
10531 (get_displaced_stepping_state): Adust.
10532 (displaced_step_in_progress_any_inferior): Adjust.
10533 (displaced_step_in_progress_thread): Adjust.
10534 (displaced_step_in_progress): Adjust.
10535 (add_displaced_stepping_state): Remove.
10536 (get_displaced_step_closure_by_addr): Adjust.
10537 (remove_displaced_stepping_state): Remove.
10538 (infrun_inferior_exit): Call displaced_step_state.reset.
10539 (use_displaced_stepping): Don't check for NULL.
10540 (displaced_step_prepare_throw): Call
10541 get_displaced_stepping_state.
10542 (displaced_step_fixup): Don't check for NULL.
10543 (prepare_for_detach): Don't check for NULL.
10544
10545 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10546
10547 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
10548 in case of call that did not complete.
10549
10550 2019-01-02 Andrey Utkin <autkin@undo.io>
10551
10552 * symfile.c (find_separate_debug_file): Fix search of debug files for
10553 remote debuggee.
10554
10555 2019-01-02 Tom Tromey <tom@tromey.com>
10556
10557 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
10558 indentation.
10559 * python/py-frame.c (frapy_older): Remove cast.
10560 (frapy_newer): Likewise.
10561 * python/py-breakpoint.c (local_setattro): Remove cast.
10562 * python/py-arch.c (archpy_name): Remove local variable.
10563 * python/py-type.c (gdbpy_lookup_type): Remove cast.
10564
10565 2019-01-02 Joel Brobecker <brobecker@adacore.com>
10566
10567 * unittests/basic_string_view/element_access/char/empty.cc:
10568 Fix year range in copyright header.
10569
10570 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
10571
10572 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
10573 Delete.
10574 <operator==>: Update with for removed field.
10575 <hash>: Likewise.
10576 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
10577 <isa_features>: ...this.
10578 <abi_features>: New field.
10579 (riscv_isa_flen): Update comment.
10580 (riscv_abi_xlen): New declaration.
10581 (riscv_abi_flen): New declaration.
10582 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
10583 isa_features.
10584 (riscv_abi_xlen): New function.
10585 (riscv_isa_flen): Update to get answer from isa_features.
10586 (riscv_abi_flen): New function.
10587 (riscv_has_fp_abi): Update to get answer from abi_features.
10588 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
10589 xlen and flen.
10590 (riscv_call_info) <xlen, flen>: Update comment.
10591 (riscv_call_arg_struct): Remove invalid assertions
10592 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
10593 is removed.
10594 (riscv_gdbarch_init): Gather isa features and abi features
10595 separately, ensure both match on the gdbarch when reusing an old
10596 gdbarch. Relax an error check to allow 32-bit abi float to run on
10597 a target with 64-bit float hardware.
10598
10599 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10600
10601 * source.c (search_command_helper): Stop reverse search
10602 when line 1 has been searched.
10603
10604 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10605
10606 * record-full.c (record_full_base_target::close): Rewrite
10607 record_full_core_buf_list free logic.
10608
10609 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10610
10611 * break-catch-syscall.c (print_one_catch_syscall): xfree
10612 the last text.
10613
10614 2019-01-01 Joel Brobecker <brobecker@adacore.com>
10615
10616 * top.c (print_gdb_version): Update Copyright year in version
10617 message.
10618
10619 2019-01-01 Joel Brobecker <brobecker@adacore.com>
10620
10621 Update copyright year range in all GDB files.
10622
10623 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
10624
10625 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
10626
10627 For older changes see ChangeLog-2018.
10628 \f
10629 Local Variables:
10630 mode: change-log
10631 left-margin: 8
10632 fill-column: 74
10633 version-control: never
10634 coding: utf-8
10635 End:
10636