Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ae60f04e
PW
12019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2
3 * NEWS: Mention changes to "info sources" command.
4
28cd9371
PW
52019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6
7 * symtab.c (filename_partial_match_opts): New struct type.
8 (struct output_source_filename_data): New members
9 regexp, c_regexp, partial_match.
10 (output_source_filename): Use new members to decide to print file.
11 (info_sources_option_defs): New variable.
12 (make_info_sources_options_def_group, print_info_sources_header,
13 info_sources_command_completer):
14 New functions.
15 (info_sources_command): Read new optional arguments.
16 (_initialize_symtab): Update info sources help.
17
ca683e3a
AO
182019-08-02 Alexandre Oliva <oliva@adacore.com>
19
20 * ada-lang.c (exception_support_info_v0): Renamed from...
21 (default_exception_support_info): ... this. Create new
22 definition for v1.
23 (ada_has_this_exception_support): Look up catch_handlers_sym.
24 (ada_exception_support_info_sniffer): Try v0 after default.
25
f1264162
TT
262019-08-01 Tom Tromey <tromey@adacore.com>
27
28 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
29 gdbarch.h.
30
0a7b2485
CB
312019-08-01 Christian Biesinger <cbiesinger@google.com>
32
33 * s12z-tdep.c: Fix include path for s12z-opc.h.
34
c6bdbeb7
AH
352019-08-01 Alan Hayward <alan.hayward@arm.com>
36
37 * NEWS: Require GNU make 3.82.
38
a2bd7b82
TT
392019-07-16 Tom Tromey <tom@tromey.com>
40
41 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
42 declare.
43
aa3b6533
TT
442019-07-30 Tom Tromey <tromey@adacore.com>
45
46 * block.c (contained_in): Remove BLOCK_FUNCTION check.
47
a1530dc7
KB
482019-07-30 Kevin Buettner <kevinb@redhat.com>
49
50 * printcmd.c (print_address_symbolic): Print negative offsets.
51 (build_address_symbolic): Force signed arithmetic when computing
52 offset.
53
2906593f
CB
542019-07-30 Christian Biesinger <cbiesinger@google.com>
55
56 PR/24474: Add a function to lookup static variables.
57 * NEWS: Mention this new function.
58 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
59 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
60 * python/python.c (python_GdbMethods): Add new function.
61
c620ed88
CB
622019-07-29 Christian Biesinger <cbiesinger@google.com>
63
64 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
65 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
66 (objfpy_lookup_static_symbol): New function.
67 (objfile_object_methods): Add new functions.
68
bc4268a5
PW
692019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
70
71 * NEWS: Mention 'set|show print frame-info'. Mention new
72 'presence' value for 'frame-arguments'. Mention new '-frame-info'
73 backtrace argument. Mention that python frame filtering code
74 is now consistent with what 'backtrace' command prints.
75
4b5e8d19
PW
762019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
77
78 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
79 comments.
80 (print_frame_info_auto, print_frame_info_source_line,
81 print_frame_info_location, print_frame_info_source_and_location,
82 print_frame_info_location_and_address, print_frame_info_short_location):
83 New declarations.
84 (struct frame_print_options): New member print_frame_info.
85 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
86 * stack.h (get_user_print_what_frame_info): New declaration.
87 (frame_show_address): New declaration.
88 * stack.c (print_frame_arguments_choices): New value 'presence'.
89 (print_frame_info_auto, print_frame_info_source_line,
90 print_frame_info_location, print_frame_info_source_and_location,
91 print_frame_info_location_and_address, print_frame_info_short_location,
92 print_frame_info_choices, print_frame_info_print_what): New definitions.
93 (print_frame_args): Only print dots for args if print frame-arguments
94 is 'presence'.
95 (frame_print_option_defs): New element for "frame-info".
96 (get_user_print_what_frame_info): New function.
97 (frame_show_address): Make non static. Move comment to stack.h.
98 (print_frame_info_to_print_what): New function.
99 (print_frame_info): Update comment. Use fp_opts.print_frame_info
100 to decide what to print.
101 (backtrace_command_1): Handle the new print_frame_arguments_presence
102 value.
103 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
104 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
105 (py_print_frame): In non-mi mode, use LOCATION as default for
106 print_what, similarly to frame information printed directly by
107 backtrace command. Handle frame-info user option in non MI mode.
108
6bdfee81
KB
1092019-07-27 Kevin Buettner <kevinb@redhat.com>
110
111 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
112 Add case for debugging 32-bit target on 64-bit host. Revise
113 comment.
114
98a617f8
KB
1152019-07-27 Kevin Buettner <kevinb@redhat.com>
116
117 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
118 instead of find_function_entry_range_from_pc.
119
567238c9
KB
1202019-07-27 Kevin Buettner <kevinb@redhat.com>
121
122 * stack.c (find_frame_funname): Remove code which preferred
123 minsym over symtab sym in "certain pathological cases".
124
2dc80cf8
KB
125 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
126 parameter. Change type of "do_demangle" to bool.
127 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
128 Pass suitable "prefer_sym_over_minsym" flag to
129 build_address_symbolic(). Don't output "+" for negative offsets.
130 * printcmd.c (print_address_symbolic): Update invocation of
131 build_address_symbolic to include a "prefer_sym_over_minsym"
132 flag.
133 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
134 Restrict cases in which use of minimal symbol is preferred to that
135 of a found symbol. Update comments.
136
1aff7173
KB
137 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
138 for entry pc when entry pc is out of range for that FDE.
139
89b085ac
BC
1402019-07-26 Brian Callahan <bcallah@openbsd.org>
141
142 PR gdb/24839:
143 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
144 type.
145
f32feb4a
CB
1462019-07-25 Christian Biesinger <cbiesinger@google.com>
147
148 * python/py-objfile.c (add_separate_debug_file): Fix comment about
149 this function's Python signature.
150
151
1522019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
153
154 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
155 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
156 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
157 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
158 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
159
160
c54e4253
YS
1612019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
162
163 * h8300-tdep.c (h8300_register_name_common): New.
164 h8300_register_name): Use h8300_register_name_common.
165 (h8300s_register_name): Likewise.
166 (h8300sx_register_name): Likewise.
167 (h8300h_register_nam): New.
168 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
169
170
40eadf04
SP
1712019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
172
173 * arm-tdep.c (arm_skip_cmse_entry): New function.
174 (arm_is_sgstubs_section): New function.
175 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
176
bfa2a36d
TT
1772019-07-22 Tom Tromey <tom@tromey.com>
178
179 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
180 Don't self-assign.
181
a8e9d247
AB
1822019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
183
184 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
185 type_print.
186
eb86c5e2
AB
1872019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 * symtab.c (search_symbols): Adjust msymbol matching type arrays
190 so that GDB doesn't match any msymbols when searching in the
191 TYPES_DOMAIN.
192 (print_symbol_info): Print using typedef_print or type_print based
193 on the type of the symbol. Add updated FIXME comment moved from...
194 (_initialize_symtab): ... move and update FIXME comment to above.
195
a8eab7c6
AB
1962019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
197
198 * NEWS: Mention adding -q option to "info types".
199 * symtab.c (struct info_types_options): New struct.
200 (info_types_options_defs): New variable.
201 (make_info_types_options_def_group): New function.
202 (info_types_command): Use gdb::option framework to parse options.
203 (info_types_command_completer): New function.
204 (_initialize_symtab): Extend the help text on "info types" and
205 register command completer.
206
b4603c34
CB
2072019-07-21 Christian Biesinger <cbiesinger@google.com>
208
209 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
210 (lookup_symbol_in_objfile): Change int to block_enum and add a
211 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
212
c8cdc1e0
CB
2132019-07-20 Christian Biesinger <cbiesinger@google.com>
214
215 * MAINTAINERS (Write After Approval): Add self.
216
01e175fe
AB
2172019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
218
219 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
220 instruction to the dummy code region.
221
56f79b63
TT
2222019-07-19 Tom Tromey <tromey@adacore.com>
223
224 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
225 (ARGSUSED, PARAMS, __func__): Remove rules.
226
4c5aa8e0
AH
2272019-07-19 Alan Hayward <alan.hayward@arm.com>
228
229 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
230 * features/arm/arm-with-iwmmxt.c: Remove.
231 * features/arm/arm-with-iwmmxt.xml: Remove.
232 * features/arm/arm-with-m-fpa-layout.c: Remove.
233 * features/arm/arm-with-m-fpa-layout.xml: Remove.
234 * features/arm/arm-with-m-vfp-d16.c: Remove.
235 * features/arm/arm-with-m-vfp-d16.xml: Remove.
236 * features/arm/arm-with-m.c: Remove.
237 * features/arm/arm-with-m.xml: Remove.
238 * features/arm/arm-with-neon.c: Remove.
239 * features/arm/arm-with-neon.xml: Remove.
240 * features/arm/arm-with-vfpv2.c: Remove.
241 * features/arm/arm-with-vfpv2.xml: Remove.
242 * features/arm/arm-with-vfpv3.c: Remove.
243 * features/arm/arm-with-vfpv3.xml: Remove.
244
f42b2617
AH
2452019-07-19 Alan Hayward <alan.hayward@arm.com>
246
247 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
248
f29ec966
AH
2492019-07-19 Alan Hayward <alan.hayward@arm.com>
250
251 * arch/aarch32.c (aarch32_create_target_description): Create
252 target descriptions using features.
253 * arch/arm.c (arm_create_target_description)
254 (arm_create_mprofile_target_description): Likewise.
255 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
256
d105cce5
AH
2572019-07-19 Alan Hayward <alan.hayward@arm.com>
258
259 * Makefile.in: Add new files.
260 * aarch32-tdep.c: New file.
261 * aarch32-tdep.h: New file.
262 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
263 Call aarch32_read_description.
264 * arch/aarch32.c: New file.
265 * arch/aarch32.h: New file.
266 * arch/arm.c (arm_create_target_description)
267 (arm_create_mprofile_target_description): New function.
268 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
269 (arm_create_target_description)
270 (arm_create_mprofile_target_description): New declaration.
271 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
272 read_description functions.
273 * arm-linux-nat.c (arm_linux_nat_target::read_description):
274 Likewise.
275 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
276 * arm-tdep.c (tdesc_arm_list): New variable.
277 (arm_register_g_packet_guesses): Call create description functions.
278 (arm_read_description) (arm_read_mprofile_description): New
279 function.
280 * arm-tdep.h (arm_read_description)
281 (arm_read_mprofile_description): Add declaration.
282 * configure.tgt: Add new files.
283
afe09f0b
GL
2842019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
285
286 * top.c (new_ui_command): Open specified terminal just once.
287
cd215b2e
TT
2882019-07-18 Tom Tromey <tromey@adacore.com>
289
290 * symtab.c (main_name): Constify return type.
291 * symfile.c (set_initial_language): Update.
292 * symtab.h (main_name): Constify return type.
293
d8f68fcb
TT
2942019-07-17 Tom Tromey <tom@tromey.com>
295
296 * tui/tui-winsource.c (tui_update_source_window)
297 (tui_update_source_window_as_is)
298 (tui_update_source_windows_with_line): Remove return.
299 * tui/tui-disasm.c (tui_show_disassem)
300 (tui_show_disassem_and_update_source): Remove return.
301 * tui/tui.c (tui_reset): Remove return.
302 * tui/tui-wingeneral.c
303 (tui_check_and_display_highlight_if_needed): Remove return.
304
ca5af91e
TT
3052019-07-17 Tom Tromey <tom@tromey.com>
306
307 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
308
5104fe36
TT
3092019-07-17 Tom Tromey <tom@tromey.com>
310
311 * tui/tui-winsource.h (struct tui_exec_info_window)
312 (struct tui_source_window_base): Move from tui-data.h.
313 * tui/tui-winsource.c: Move many method definitions from
314 elsewhere. Remove "structuring" comments.
315 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
316 (tui_source_window_base::refresh_window): Move to
317 tui-winsource.c.
318 * tui/tui-win.c (tui_source_window_base::refresh_all)
319 (tui_source_window_base::update_tab_width)
320 (tui_source_window_base::set_new_height)
321 (tui_source_window_base::do_make_visible_with_new_height): Move to
322 tui-winsource.c.
323 * tui/tui-source.h: Update.
324 * tui/tui-source.c (tui_source_window_base::reset): Move to
325 tui-winsource.c.
326 * tui/tui-disasm.h: Update.
327 * tui/tui-data.h (struct tui_exec_info_window): Move to
328 tui-winsource.h.
329 (struct tui_source_window_base): Likewise.
330 * tui/tui-data.c (tui_source_window_base::clear_detail)
331 (tui_source_window_base, ~tui_source_window_base): Move to
332 tui-winsource.c.
333
daa15dde
TT
3342019-07-17 Tom Tromey <tom@tromey.com>
335
336 * tui/tui-win.c (tui_resize_all)
337 (tui_source_window_base::update_tab_width)
338 (tui_adjust_win_heights): Update.
339 (tui_win_info::make_invisible_and_set_new_height): Rename from
340 make_invisible_and_set_new_height.
341 * tui/tui-data.h (struct tui_win_info)
342 <make_invisible_and_set_new_height>: New method.
343
bfad4537
TT
3442019-07-17 Tom Tromey <tom@tromey.com>
345
346 * tui/tui.c: Update.
347 * tui/tui-source.h (struct tui_source_window): Move from
348 tui-data.h.
349 * tui/tui-layout.c: Update.
350 * tui/tui-disasm.c: Update.
351 * tui/tui-data.h (struct tui_source_window): Move to
352 tui-source.h.
353
88f7e873
TT
3542019-07-17 Tom Tromey <tom@tromey.com>
355
356 * tui/tui-disasm.h (struct tui_disasm_window): Move from
357 tui-data.h.
358 * tui/tui-data.h (struct tui_disasm_window): Move to
359 tui-disasm.h.
360
96bd6233
TT
3612019-07-17 Tom Tromey <tom@tromey.com>
362
363 * tui/tui-regs.h (struct tui_data_item_window): Move from
364 tui-data.h.
365 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
366 * tui/tui-data.h (struct tui_data_item_window): Move to
367 tui-regs.h.
368 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
369
ce38393b
TT
3702019-07-17 Tom Tromey <tom@tromey.com>
371
372 * tui/tui.c: Update.
373 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
374 (tui_cmd_window::max_height): Move to tui-command.c.
375 * tui/tui-layout.c: Update.
376 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
377 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
378 tui-command.c.
379 * tui/tui-command.h (struct tui_cmd_window): Move from
380 tui-data.h.
381 * tui/tui-command.c: Remove "structuring" comments.
382 (tui_cmd_window::clear_detail)
383 (tui_cmd_window::do_make_visible_with_new_height)
384 (tui_cmd_window::max_height): Move from elsewhere.
385
2d8b51cb
TT
3862019-07-17 Tom Tromey <tom@tromey.com>
387
388 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
389 Now static.
390 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
391 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
392
18ab23af
TT
3932019-07-17 Tom Tromey <tom@tromey.com>
394
395 * tui/tui.c: Update.
396 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
397 tui-regs.c.
398 * tui/tui-windata.h: Remove file.
399 * tui/tui-windata.c: Remove file.
400 * tui/tui-win.c (tui_data_window::set_new_height)
401 (tui_data_window::do_make_visible_with_new_height): Move to
402 tui-regs.c.
403 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
404 * tui/tui-regs.c: Remove "structuring" comments.
405 (tui_data_window::first_data_item_displayed)
406 (tui_data_window::delete_data_content_windows)
407 (tui_data_window::erase_data_content)
408 (tui_data_window::display_all_data)
409 (tui_data_window::refresh_all)
410 (tui_data_window::do_scroll_vertical)
411 (tui_data_window::clear_detail, tui_data_window::set_new_height)
412 (tui_data_window::do_make_visible_with_new_height)
413 (tui_data_window::refresh_window): Move from elsewhere.
414 (_initialize_tui_regs): Move to end of file.
415 * tui/tui-layout.c: Update.
416 * tui/tui-hooks.c: Update.
417 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
418 * tui/tui-data.c (tui_data_window::clear_detail): Move to
419 tui-regs.c.
420 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
421
88b7e7cc
TT
4222019-07-17 Tom Tromey <tom@tromey.com>
423
424 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
425 seen.
426
0fcd3711
TT
4272019-07-17 Tom Tromey <tom@tromey.com>
428
429 * tui/tui-win.c (tui_source_window_base::set_new_height)
430 (tui_source_window_base::do_make_visible_with_new_height): Use
431 m_has_locator field directly.
432 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
433 method.
434 (struct tui_source_window_base) <has_locator>: Likewise.
435
4a38112d
TT
4362019-07-17 Tom Tromey <tom@tromey.com>
437
438 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
439 Don't declare.
440 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
441 Remove.
442 * tui/tui-win.c (tui_source_window_base::set_new_height)
443 (tui_source_window_base::set_new_height)
444 (make_invisible_and_set_new_height)
445 (tui_source_window_base::do_make_visible_with_new_height)
446 (tui_source_window_base::do_make_visible_with_new_height):
447 Update.
448 * tui/tui-layout.c (show_source_disasm_command, show_data)
449 (show_source_or_disasm_and_command): Update.
450 * tui/tui-layout.c (show_layout): Update.
451
09129226
TT
4522019-07-17 Tom Tromey <tom@tromey.com>
453
454 * tui/tui-layout.c (make_data_window): Remove.
455 (show_data): Unify creation and re-initialization cases.
456
4a8a5e84
TT
4572019-07-17 Tom Tromey <tom@tromey.com>
458
459 * tui/tui-layout.c (make_source_window, make_disasm_window):
460 Remove.
461 (show_data): Unify creation and re-initialization cases.
462
76d2be8e
TT
4632019-07-17 Tom Tromey <tom@tromey.com>
464
465 * tui/tui-layout.c (make_command_window): Remove.
466 (show_source_disasm_command, show_source_or_disasm_and_command):
467 Unify creation and re-initialization cases.
468
890b8bde
TT
4692019-07-17 Tom Tromey <tom@tromey.com>
470
471 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
472 creation and re-initialization cases.
473
2cdfa113
TT
4742019-07-17 Tom Tromey <tom@tromey.com>
475
476 * tui/tui-regs.c (tui_get_register): Return void.
477
8e3cfd09
TT
4782019-07-17 Tom Tromey <tom@tromey.com>
479
480 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
481 Simplify.
482
f4e04977
TT
4832019-07-17 Tom Tromey <tom@tromey.com>
484
485 * tui/tui-layout.c (show_source_disasm_command): Simplify window
486 resetting.
487
0379b883
TT
4882019-07-17 Tom Tromey <tom@tromey.com>
489
490 * tui/tui.h (tui_set_layout_by_name): Don't declare.
491 * tui/tui-regs.c (tui_reg_layout): New function.
492 (tui_show_registers, tui_reg_command): Use it.
493 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
494 (tui_layout_command): Rename from tui_set_layout_by_name. Change
495 parameters.
496 (tui_layout_command): Remove.
497
b7fbad91
TT
4982019-07-17 Tom Tromey <tom@tromey.com>
499
500 * tui/tui-layout.h (tui/tui-layout): Return void.
501 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
502
4e1e56b9
TT
5032019-07-17 Tom Tromey <tom@tromey.com>
504
505 * tui/tui-layout.c (show_source_disasm_command, show_data):
506 Update.
507 (reset_locator): Remove.
508 (show_source_or_disasm_and_command): Update.
509
1e0c09ba
TT
5102019-07-17 Tom Tromey <tom@tromey.com>
511
512 * tui/tui-source.c (tui_source_window_base::reset): Remove
513 win_type parameter.
514 * tui/tui-layout.c (make_command_window, make_source_window)
515 (make_disasm_window, make_data_window)
516 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
517 (reset_locator, show_source_or_disasm_and_command): Update.
518 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
519 win_type parameter.
520 (struct tui_source_window_base) <reset>: Likewise.
521
1bf605de
TT
5222019-07-17 Tom Tromey <tom@tromey.com>
523
524 * tui/tui-layout.c (show_source_disasm_command): Use
525 reset_locator.
526 (reset_locator): New function.
527 (init_and_make_win): Remove.
528 (show_source_or_disasm_and_command): Use reset_locator.
529
098f9ed4
TT
5302019-07-17 Tom Tromey <tom@tromey.com>
531
532 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
533 condition.
534 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
535 Remove condition.
536 * tui/tui-source.c (tui_source_window_base::reset): New method.
537 * tui/tui-layout.c (make_command_window): Don't call
538 init_and_make_win.
539 (make_source_window, make_disasm_window): Don't call
540 make_source_or_disasm_window.
541 (make_data_window): Don't call init_and_make_win. Change calling
542 convention.
543 (show_source_disasm_command, show_data): Simplify.
544 (make_source_or_disasm_window): Remove.
545 (show_source_or_disasm_and_command): Simplify.
546 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
547 (struct tui_source_window_base) <reset>: Likewise.
548 <execution_info>: Remove initializer.
549 * tui/tui-data.c (tui_source_window_base): Initialize
550 execution_info.
551
80110957
TT
5522019-07-17 Tom Tromey <tom@tromey.com>
553
554 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
555 variable.
556
cf82af05
TT
5572019-07-17 Tom Tromey <tom@tromey.com>
558
559 * tui/tui.c (tui_rl_other_window): Update.
560 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
561 superclass method first. Always iterate over regs_content.
562 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
563 method.
564 * tui/tui-win.c (tui_set_focus_command): Update.
565
01aeb396
TT
5662019-07-17 Tom Tromey <tom@tromey.com>
567
568 * tui/tui-win.c (tui_set_focus_command): Rename from
569 tui_set_focus. Call tui_enable.
570 (tui_set_focus_command): Remove.
571
fd6c75ee
TT
5722019-07-17 Tom Tromey <tom@tromey.com>
573
574 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
575 refresh_window.
576 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
577 touchwin.
578 (tui_data_window::refresh_window): Call refresh_window on data
579 items. Always call superclass refresh_window.
580 (tui_win_info::refresh): Remove.
581 (tui_source_window_base::refresh_window): Update.
582 (tui_refresh_all): Update.
583 * tui/tui-layout.c (show_source_disasm_command): Remove call to
584 refresh_window.
585 (show_source_or_disasm_and_command): Likewise.
586 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
587 (struct tui_source_window_base) <refresh>: Likewise.
588
f6cc34a9
TT
5892019-07-17 Tom Tromey <tom@tromey.com>
590
591 * tui/tui-winsource.c (tui_clear_source_content)
592 (tui_show_source_content): Update.
593 * tui/tui-source.c (tui_source_window::showing_source_p): Check
594 whether content is empty.
595 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
596 Remove.
597
f31ec9af
TT
5982019-07-17 Tom Tromey <tom@tromey.com>
599
600 * tui/tui-winsource.c (tui_erase_source_content): Clear the
601 window's contents.
602 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
603 * tui/tui-source.c (tui_set_source_content_nil): Remove.
604
d1b6f1e5
TT
6052019-07-17 Tom Tromey <tom@tromey.com>
606
607 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
608 (struct tui_data_item_window): Update.
609
d9743a13
TT
6102019-07-17 Tom Tromey <tom@tromey.com>
611
612 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
613 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
614 defines.
615
caf0bc4e
TT
6162019-07-17 Tom Tromey <tom@tromey.com>
617
618 * tui/tui-winsource.h (tui_erase_source_content)
619 (tui_clear_source_content): Remove "display_prompt" parameter.
620 * tui/tui-winsource.c (tui_update_source_window_as_is)
621 (tui_update_source_windows_with_addr): Update.
622 (tui_clear_source_content): Remove "display_prompt" parameter.
623 (tui_erase_source_content): Likewise. Simplify.
624 (tui_show_source_content): Update.
625 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
626 * tui/tui-stack.c (tui_show_frame_info): Update.
627 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
628 Remove defines.
629
9d391078
TT
6302019-07-17 Tom Tromey <tom@tromey.com>
631
632 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
633 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
634 parameter.
635 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
636 parameter.
637
a38da35d
TT
6382019-07-17 Tom Tromey <tom@tromey.com>
639
640 * tui/tui-winsource.c (tui_clear_source_content)
641 (tui_show_source_content, tui_show_exec_info_content)
642 (tui_clear_exec_info_content): Update.
643 * tui/tui-stack.c (tui_show_locator_content): Update.
644 (tui_show_frame_info): Update.
645 * tui/tui-source.h (tui_source_window): Don't declare.
646 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
647 from tui_source_is_displayed.
648 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
649 Remove field.
650 (struct tui_source_window_base) <content_in_use>: New field. Now
651 bool.
652 (struct tui_source_window) <showing_source_p>: New method.
653 (TUI_SRC_WIN): Change cast.
654 * tui/tui-data.c (tui_initialize_static_data): Update.
655
c2cd8994
TT
6562019-07-17 Tom Tromey <tom@tromey.com>
657
658 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
659 location_matches_p.
660 * tui/tui-source.c (tui_source_window::location_matches_p): New
661 method.
662 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
663 method.
664 * tui/tui-data.h (struct tui_source_window_base)
665 <location_matches_p>: New method.
666 (struct tui_source_window, struct tui_disasm_window)
667 <location_matches_p>: Likewise.
668
4dde7b34
TT
6692019-07-17 Tom Tromey <tom@tromey.com>
670
671 * tui/tui-win.c (tui_set_win_height_command): Rename from
672 tui_set_win_height.
673 (tui_set_win_height_command): Remove.
674
b73dd877
TT
6752019-07-17 Tom Tromey <tom@tromey.com>
676
677 * tui/tui-source.c (tui_source_window): New constructor. Add
678 observer.
679 (~tui_source_window): New destructor.
680 (tui_source_window::style_changed): New method.
681 * tui/tui-hooks.c (tui_redisplay_source): Remove.
682 (tui_attach_detach_observers): Update.
683 * tui/tui-data.h (struct tui_source_window): Make constructor not
684 inline. Add destructor.
685 (struct tui_source_window) <style_changed>: New method.
686 <m_observable>: New member.
687
ae2b5380
TT
6882019-07-17 Tom Tromey <tom@tromey.com>
689
690 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
691 * tui/tui-win.c (tui_resize_all): Fix typo.
692
1ce3e844
TT
6932019-07-17 Tom Tromey <tom@tromey.com>
694
695 * tui/tui-wingeneral.h (tui_refresh_all): Update.
696 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
697 (tui_refresh_all): Remove "list" parameter. Use foreach.
698 * tui/tui-win.c (window_name_completer): Use foreach.
699 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
700 (update_tab_width): Likewise.
701 * tui/tui-layout.c (show_layout): Update.
702 * tui/tui-data.h (class tui_window_iterator): New.
703 (struct all_tui_windows): New.
704 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
705
fe3eaf1c
TT
7062019-07-17 Tom Tromey <tom@tromey.com>
707
708 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
709 parameter. Don't reference globals.
710 (tui_reg_command): Update.
711
368c1354
TT
7122019-07-17 Tom Tromey <tom@tromey.com>
713
714 * tui/tui-regs.c (tui_show_registers): Simplify.
715
e80cd204
TT
7162019-07-17 Tom Tromey <tom@tromey.com>
717
718 * tui/tui-regs.c (tui_show_registers): Update.
719 (tui_show_register_group): Add win_info parameter.
720
aca2dd16
TT
7212019-07-17 Tom Tromey <tom@tromey.com>
722
723 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
724 Rename from tui_display_reg_element_at_line.
725 (tui_data_window::display_registers_from_line): Update.
726 * tui/tui-data.h (struct tui_data_window)
727 <display_reg_element_at_line>: New method.
728
517e9505
TT
7292019-07-17 Tom Tromey <tom@tromey.com>
730
731 * tui/tui-regs.h (tui_display_registers_from)
732 (tui_display_registers_from_line): Don't declare.
733 * tui/tui-windata.c (tui_data_window::display_all_data)
734 (tui_data_window::refresh_all)
735 (tui_data_window::do_scroll_vertical): Update.
736 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
737 from tui_display_registers_from.
738 (tui_display_reg_element_at_line): Update.
739 (tui_data_window::display_registers_from_line): Rename from
740 tui_display_registers_from_line.
741 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
742 display_registers_from_line>: New methods.
743
f76d8b19
TT
7442019-07-17 Tom Tromey <tom@tromey.com>
745
746 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
747 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
748 from tui_erase_data_content.
749 (tui_data_window::display_all_data)
750 (tui_data_window::refresh_all)
751 (tui_data_window::do_scroll_vertical): Update.
752 * tui/tui-regs.c (tui_show_registers): Update.
753 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
754 New method.
755
b4094625
TT
7562019-07-17 Tom Tromey <tom@tromey.com>
757
758 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
759 declare.
760 * tui/tui-windata.c
761 (tui_data_window::delete_data_content_windows): Rename from
762 tui_delete_data_content_windows.
763 (tui_data_window::display_all_data)
764 (tui_data_window::do_scroll_vertical): Update.
765 * tui/tui-data.h (struct tui_data_window)
766 <delete_data_content_windows>: New method.
767
c223a729
TT
7682019-07-17 Tom Tromey <tom@tromey.com>
769
770 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
771 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
772
50daf268
TT
7732019-07-17 Tom Tromey <tom@tromey.com>
774
775 * tui/tui-windata.h (tui_display_all_data): Don't declare.
776 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
777 from tui_display_all_data.
778 * tui/tui-win.c
779 (tui_data_window::do_make_visible_with_new_height): Update.
780 * tui/tui-regs.c (tui_show_registers): Update.
781 * tui/tui-layout.c (tui_set_layout): Update.
782 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
783 method.
784
df5f8cab
TT
7852019-07-17 Tom Tromey <tom@tromey.com>
786
787 * tui/tui-windata.h (tui_display_data_from): Don't declare.
788 * tui/tui-windata.c (tui_display_data_from): Remove.
789 (tui_data_window::refresh_all): Update.
790
80cb6c27
TT
7912019-07-17 Tom Tromey <tom@tromey.com>
792
793 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
794 * tui/tui-windata.c (tui_display_data_from_line): Remove.
795 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
796 tui_display_registers_from_line.
797 * tui/tui-regs.h (tui_display_registers_from_line): Update.
798 * tui/tui-regs.c (tui_display_registers_from_line): Remove
799 "force_display" parameter.
800
baff0c28
TT
8012019-07-17 Tom Tromey <tom@tromey.com>
802
803 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
804 declare.
805 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
806 Rename from tui_first_reg_element_no_inline.
807 (tui_display_reg_element_at_line)
808 (tui_display_registers_from_line): Update.
809 * tui/tui-data.h (struct tui_data_window)
810 <first_reg_element_no_inline>: New method.
811
3b23c5f2
TT
8122019-07-17 Tom Tromey <tom@tromey.com>
813
814 * tui/tui-windata.c (tui_display_data_from)
815 (tui_data_window::do_scroll_vertical): Update.
816 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
817 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
818 Rename from tui_line_from_reg_element_no.
819 (tui_display_registers_from_line): Update.
820 * tui/tui-data.h (struct tui_data_window)
821 <line_from_reg_element_no>: New method.
822
0b5ec218
TT
8232019-07-17 Tom Tromey <tom@tromey.com>
824
825 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
826 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
827 tui_last_regs_line_no.
828 (tui_display_reg_element_at_line)
829 (tui_display_registers_from_line): Update.
830 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
831 method.
832
0807ab7b
TT
8332019-07-17 Tom Tromey <tom@tromey.com>
834
835 PR tui/24722:
836 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
837 (tui_update_breakpoint_info): Add "being_deleted" parameter.
838 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
839 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
840 (tui_update_breakpoint_info): Likewise.
841 * tui/tui-hooks.c (tui_event_create_breakpoint)
842 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
843 Update.
844
9ad7fdef
TT
8452019-07-17 Tom Tromey <tom@tromey.com>
846
847 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
848
5813316f
TT
8492019-07-17 Tom Tromey <tom@tromey.com>
850
851 * tui/tui-winsource.c (tui_update_source_window_as_is)
852 (tui_update_source_windows_with_addr): Update.
853 * tui/tui-source.h (tui_set_source_content)
854 (tui_show_symtab_source): Add "win_info" parameter.
855 * tui/tui-source.c (tui_set_source_content): Add "win_info"
856 parameter.
857 (tui_show_symtab_source): Likewise.
858
00e264e7
TT
8592019-07-17 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-wingeneral.c
862 (tui_check_and_display_highlight_if_needed): Check can_highlight.
863
06210ce4
TT
8642019-07-17 Tom Tromey <tom@tromey.com>
865
866 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
867 (struct tui_cmd_window) <can_scroll>: New method.
868 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
869 method.
870
381befee
TT
8712019-07-17 Tom Tromey <tromey@adacore.com>
872
873 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
874 do_field_signed>: Rename. Change type of "value".
875 * ui-out.c (ui_out::field_signed): Rename from field_int.
876 Change type of "value".
877 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
878 type of "value".
879 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
880 do_field_int. Change type of "value".
881 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
882 do_field_int. Change type of "value".
883 * tracepoint.c (trace_status_mi, tfind_1)
884 (print_one_static_tracepoint_marker): Update.
885 * thread.c (print_thread_info_1, print_selected_thread_frame):
886 Update.
887 * stack.c (print_frame, print_frame_info): Update.
888 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
889 Update.
890 * source.c (print_source_lines_base): Update.
891 * skip.c (info_skip_command): Update.
892 * record-btrace.c (btrace_ui_out_decode_error)
893 (btrace_call_history_src_line): Update.
894 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
895 Update.
896 * progspace.c (print_program_space): Update.
897 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
898 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
899 do_field_int. Change type of "value".
900 * mi/mi-out.c (mi_ui_out::do_table_begin)
901 (mi_ui_out::do_table_header): Update.
902 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
903 type of "value".
904 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
905 (mi_cmd_data_list_changed_registers, output_register)
906 (mi_cmd_data_read_memory, mi_load_progress)
907 (mi_cmd_trace_frame_collected): Update.
908 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
909 Update.
910 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
911 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
912 (mi_cmd_var_list_children, varobj_update_one): Update.
913 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
914 (mi_cmd_stack_list_args, list_arg_or_local): Update.
915 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
916 * inferior.c (print_inferior): Update.
917 * gdb_bfd.c (print_one_bfd): Update.
918 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
919 Update.
920 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
921 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
922 do_field_int. Change type of "value".
923 * cli-out.c (cli_ui_out::do_field_signed): Rename from
924 do_field_int. Change type of "value".
925 * breakpoint.c (watchpoint_check, print_breakpoint_location)
926 (print_one_breakpoint_location, print_it_catch_fork)
927 (print_one_catch_fork, print_it_catch_vfork)
928 (print_one_catch_vfork, print_it_catch_solib)
929 (print_it_catch_exec, print_it_ranged_breakpoint)
930 (print_mention_watchpoint, print_mention_masked_watchpoint)
931 (bkpt_print_it, update_static_tracepoint): Update.
932 * break-catch-throw.c (print_it_exception_catchpoint): Update.
933 * break-catch-syscall.c (print_it_catch_syscall): Update.
934 * ada-tasks.c (print_ada_task_info): Update.
935 * ada-lang.c (print_it_exception, print_mention_exception):
936 Update.
937
6b78c3f8
AB
9382019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
939
940 PR breakpoints/24541
941 * gdbarch.c: Regenerate.
942 * gdbarch.h: Regenerate.
943 * gdbarch.sh: Adjust return type and parameter types for
944 'stap_adjust_register'.
945 (i386_stap_adjust_register): Adjust signature and return new
946 register name.
947 * stap-probe.c (stap_parse_register_operand): Adjust use of
948 'gdbarch_stap_adjust_register'.
949
d72a9b85
TT
9502019-07-17 Tom Tromey <tromey@adacore.com>
951
952 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
953 declare VEC.
954 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
955 std::vector.
956 (struct s390_process_info): Add initializers.
957 (s390_add_process): Use new.
958 (s390_linux_nat_target::low_forget_process): Use delete.
959 (s390_linux_nat_target::low_new_fork)
960 (s390_linux_nat_target::stopped_by_watchpoint)
961 (s390_linux_nat_target::low_prepare_to_resume)
962 (s390_linux_nat_target::insert_watchpoint)
963 (s390_linux_nat_target::insert_hw_breakpoint)
964 (s390_linux_nat_target::remove_watchpoint)
965 (s390_linux_nat_target::remove_hw_breakpoint): Update.
966
206e6c58
JB
9672019-07-16 John Baldwin <jhb@FreeBSD.org>
968
969 * aarch64-fbsd-nat.c: Include regcache.h.
970 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
971 argument.
972 (aarch64_fbsd_nat_target::fetch_registers)
973 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
974 variable.
975 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
976
cbde90f2
JB
9772019-07-16 John Baldwin <jhb@FreeBSD.org>
978
979 * fbsd-nat.c: Include gdbarch.h.
980
07128006
TT
9812019-07-15 Tom Tromey <tromey@adacore.com>
982
983 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
984
1f77b012
TT
9852019-07-15 Tom Tromey <tromey@adacore.com>
986
987 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
988 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
989 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
990 * cli-out.c (cli_ui_out::do_field_int): New method.
991 * ui-out.c (ui_out::field_unsigned): New method.
992 * symfile.c (generic_load): Use field_unsigned.
993 (print_transfer_performance): Likewise.
994 * record-btrace.c (ui_out_field_uint): Remove.
995 (btrace_call_history_insn_range, btrace_call_history): Use
996 field_unsigned.
997 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
998 field_unsigned.
999 * ui-out.h (class ui_out) <field_unsigned>: New method.
1000 <do_field_unsigned>: Likewise.
1001
33eca680
TT
10022019-07-15 Tom Tromey <tromey@adacore.com>
1003
1004 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1005 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1006 * target.c (flash_erase_command): Use field_string.
1007 * infrun.c (print_signal_received_reason): Use field_string.
1008 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1009 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1010 field_string.
1011 * ada-tasks.c (print_ada_task_info): Use field_string.
1012
ca8d69be
TT
10132019-07-15 Tom Tromey <tromey@adacore.com>
1014
1015 * target.c (flash_erase_command): Use field_core_addr.
1016 * symfile.c (generic_load): Use field_core_addr.
1017 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1018 Use field_core_addr.
1019 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1020 field_core_addr.
1021
0d4e84ed
AB
10222019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1025 value if its desired type is smaller than a CORE_ADDR and signed.
1026
9a49df9d
AB
10272019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1030 of changes to field names, and use new is_reference field to
1031 decide if a property is a reference or not.
1032 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1033 field.
1034 (struct dwarf2_property_baton): Update header comment, rename
1035 'referenced_type' to 'property_type' and update comments.
1036 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1037 default property type, store in property baton, update to take
1038 accound of renamed field.
1039 (read_func_scope): Update call to attr_to_dynamic_prop.
1040 (read_array_type): Likewise.
1041 (dwarf2_per_cu_addr_sized_int_type): New function.
1042 (read_subrange_index_type): Move type finding code to
1043 dwarf2_per_cu_addr_sized_int_type.
1044 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1045 (dwarf2_per_cu_addr_type): New function.
1046 (set_die_type): Update calls to attr_to_dynamic_prop.
1047
b86352cf
AB
10482019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1049
1050 * dwarf2read.c (read_subrange_index_type): New function.
1051 (read_subrange_type): Move code into new function and call it.
1052 * gdbtypes.c (create_range_type): Add some asserts.
1053
603490bf
AB
10542019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1057 update return statements.
1058 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1059 declaration, and update comment to match.
1060 * gdbtypes.c (resolve_dynamic_array): Update call to
1061 dwarf2_evaluate_property to match new return type.
1062
592f9d27
AB
10632019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * valarith.c (value_subscripted_rvalue): Change lowerbound
1066 parameter type from int to LONGEST.
1067 * value.h (value_subscripted_rvalue): Likewise in declaration.
1068
60cfcb20
AB
10692019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1070
1071 * cli/cli-utils.c (info_print_command_completer): New function.
1072 * cli/cli-utils.h: Add 'completer.h' include, and forward
1073 declaration for 'struct cmd_list_element'.
1074 (info_print_command_completer): Declare.
1075 * stack.c (_initialize_stack): Add completer for 'info locals' and
1076 'info args'.
1077 * symtab.c (_initialize_symtab): Add completer for 'info
1078 variables' and 'info functions'.
1079 * NEWS: Mention completion for additional info commands.
1080
b16507e0
AB
10812019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1082
1083 * cli/cli-utils.c (extract_info_print_args): Delete.
1084 (extract_arg_maybe_quoted): Delete.
1085 (info_print_options_defs): New variable.
1086 (make_info_print_options_def_group): New function.
1087 (extract_info_print_options): Define new function.
1088 * cli/cli-utils.h (extract_info_print_args): Delete.
1089 (struct info_print_options): New structure.
1090 (extract_info_print_options): Declare new function.
1091 * stack.c (info_locals_command): Update to use new
1092 extract_info_print_options, also add a header comment.
1093 (info_args_command): Likewise.
1094 * symtab.c (info_variables_command): Likewise.
1095 (info_functions_command): Likewise.
1096
021d8588
AB
10972019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1098
1099 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1100 to extract string arguments.
1101 * common/common-utils.c (extract_string_maybe_quoted): New function.
1102 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1103
b777eb6d
TT
11042019-07-11 Tom Tromey <tromey@adacore.com>
1105
1106 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1107 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1108 * top.h (gdbinit): Don't declare.
1109 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1110 into...
1111 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1112 * top.c (gdb_init): Don't call init_cli_cmds.
1113 (gdbinit): Remove.
1114 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1115
72ee03ff
TT
11162019-07-11 Tom Tromey <tromey@adacore.com>
1117
1118 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1119 after it has been moved.
1120
00db9531
SM
11212019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * valops.c (value_must_coerce_to_target): Change return type to
1124 bool.
1125 * value.h (value_must_coerce_to_target): Likewise.
1126
f2478a7e
SM
11272019-07-10 Simon Marchi <simon.marchi@efficios.com>
1128
1129 * breakpoint.c (is_hardware_watchpoint): Remove
1130 forward-declaration.
1131 (is_masked_watchpoint): Change return type to bool.
1132 (is_tracepoint): Likewise.
1133 (is_breakpoint): Likewise.
1134 (is_hardware_watchpoint): Likewise.
1135 (is_watchpoint): Likewise.
1136 (is_no_memory_software_watchpoint): Likewise.
1137 (is_catchpoint): Likewise.
1138 (breakpoint_1): Make FILTER parameter's return type bool.
1139 is_masked_watchpoint): Change return type to bool.
1140 (save_breakpoints): Make FILTER parameter's return type bool.
1141 * breakpoint.h (is_breakpoint): Change return type to bool.
1142 (is_watchpoint): Likewise.
1143 (is_catchpoint): Likewise.
1144 (is_tracepoint): Likewise.
1145
0d12e84c
TT
11462019-07-10 Tom Tromey <tom@tromey.com>
1147
1148 * defs.h: Don't include gdbarch.h.
1149 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1150 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1151 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1152 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1153 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1154 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1155 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1156 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1157 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1158 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1159 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1160 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1161 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1162 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1163 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1164 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1165 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1166 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1167 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1168 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1169 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1170 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1171 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1172 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1173 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1174 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1175 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1176
f06f1252
TT
11772019-07-10 Tom Tromey <tromey@adacore.com>
1178
1179 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1180 * breakpoint.c (init_ada_exception_breakpoint): Register as
1181 bp_catchpoint.
1182 (print_one_breakpoint_location, print_one_breakpoint): Use
1183 is_ada_exception_catchpoint.
1184 * ada-lang.c (class ada_catchpoint_location): Pass
1185 bp_loc_software_breakpoint to bp_location constructor.
1186 (is_ada_exception_catchpoint): New function.
1187
7a5d944b
TT
11882019-07-10 Tom Tromey <tromey@adacore.com>
1189
1190 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1191 VEC.
1192 (struct arm_exidx_entry): New method operator<.
1193 (struct arm_exidx_data) <section_maps>: Change type.
1194 (arm_exidx_data_free): Remove.
1195 (arm_exidx_data_key): Change type. Move lower.
1196 (arm_exidx_new_objfile): Update.
1197 (arm_compare_exidx_entries): Remove.
1198 (arm_find_exidx_entry, _initialize_arm_tdep)
1199
48c66e1d
TT
12002019-07-10 Tom Tromey <tromey@adacore.com>
1201
1202 * solib-spu.c (ocl_program_data_key): Change type.
1203 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1204 Update.
1205
a269fbf1
TT
12062019-07-10 Tom Tromey <tromey@adacore.com>
1207
1208 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1209 (struct solib_aix_inferior_data) <library_list>: Change type.
1210 (solib_aix_inferior_data_handle): Change type.
1211 (get_solib_aix_inferior_data): Update.
1212 (solib_aix_free_library_list): Remove.
1213 (library_list_start_library): Update.
1214 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1215 return type.
1216 (solib_aix_get_library_list)
1217 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1218 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1219
c294730c
TT
12202019-07-10 Tom Tromey <tromey@adacore.com>
1221
1222 * solib-dsbt.c (struct dsbt_info): Add initializers.
1223 (solib_dsbt_pspace_data): Change type.
1224 (dsbt_pspace_data_cleanup): Remove.
1225 (get_dsbt_info, _initialize_dsbt_solib): Update.
1226
9d52077d
TT
12272019-07-10 Tom Tromey <tromey@adacore.com>
1228
1229 * spu-tdep.c (spu_overlay_data): Change type.
1230 (spu_get_overlay_table, spu_overlay_new_objfile)
1231 (_initialize_spu_tdep): Update.
1232
22a20dca
TT
12332019-07-10 Tom Tromey <tromey@adacore.com>
1234
1235 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1236 destructor.
1237 (dbx_objfile_data_key): Change type and declare later.
1238 (DBX_SYMFILE_INFO): Rewrite.
1239 * dbxread.c (dbx_objfile_data_key): Change type.
1240 (dbx_symfile_init): Update.
1241 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1242 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1243 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1244
cb60f420
TT
12452019-07-10 Tom Tromey <tromey@adacore.com>
1246
1247 * jit.c (jit_program_space_key): Change type. Move lower.
1248 (get_jit_program_space_data): Update.
1249 (jit_program_space_data_cleanup): Remove.
1250 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1251 Update.
1252 (struct jit_program_space_data): Add initializers.
1253
51df2ae3
TT
12542019-07-10 Tom Tromey <tromey@adacore.com>
1255
1256 * solib-darwin.c (struct darwin_info): Add initializers.
1257 (solib_darwin_pspace_data): Change type.
1258 (darwin_pspace_data_cleanup): Remove.
1259 (get_darwin_info, _initialize_darwin_solib): Update.
1260
18101a35
TT
12612019-07-10 Tom Tromey <tromey@adacore.com>
1262
1263 * remote-sim.c (struct sim_inferior_data): Add initializers,
1264 constructor, and destructor.
1265 (sim_inferior_data_key): Change type. Move lower.
1266 (check_for_duplicate_sim_descriptor): Update.
1267 (get_sim_inferior_data): Use new. Update.
1268 (~sim_inferior_data_cleanup): Rename from
1269 sim_inferior_data_cleanup. Simplify.
1270 (gdbsim_close_inferior, simulator_command)
1271 (sim_command_completer, _initialize_remote_sim): Update.
1272 (next_pid, INITIAL_PID): Move earlier.
1273
05b08ac1
TT
12742019-07-10 Tom Tromey <tromey@adacore.com>
1275
1276 * python/python-internal.h (create_thread_object): Return
1277 gdbpy_ref.
1278 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1279 * python/py-inferior.c (struct threadlist_entry): Add
1280 constructor.
1281 <thread_obj>: Now a gdbpy_ref.
1282 (thread_to_thread_object): Update.
1283 (add_thread_object): Use new.
1284 (delete_thread_object): Use delete.
1285 (infpy_threads): Update.
1286 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1287 GIL.
1288
32372d80
TT
12892019-07-10 Tom Tromey <tromey@adacore.com>
1290
1291 * valops.c (value_cast): Specialize error message for Ada.
1292
5c458ae8
SM
12932019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1294
1295 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1296
4c462cb0
SM
12972019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1298
1299 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1300 bpstat_should_step): Return bool, adjust comments.
1301 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1302 bpstat_should_step): Likewise.
1303
89abbcc2
AH
13042019-07-10 Alan Hayward <alan.hayward@arm.com>
1305
1306 * features/Makefile: Use feature target descriptions for Arm.
1307 * features/arm/arm-core.c: Generate new file.
1308 * features/arm/arm-fpa.c: Likewise.
1309 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1310 * features/arm/arm-m-profile.c: Likewise.
1311 * features/arm/arm-vfpv2.c: Likewise.
1312 * features/arm/arm-vfpv3.c: Likewise.
1313 * features/arm/xscale-iwmmxt.c: Likewise.
1314 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1315
166a82be
AH
13162019-07-10 Alan Hayward <alan.hayward@arm.com>
1317
1318 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1319 ptrace earlier.
1320
9fb4c7e9
AH
13212019-07-10 Alan Hayward <alan.hayward@arm.com>
1322
1323 * features/aarch64-pauth.c: Regenerate.
1324
e2d0f980
SM
13252019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1328 bool.
1329 (bpstat_what): Use false instead of 0.
1330
a38118e5
PA
13312019-07-09 Pedro Alves <palves@redhat.com>
1332
1333 * break-catch-throw.c (is_exception_catchpoint): New.
1334 * breakpoint.c (print_one_breakpoint_location): New parameter
1335 'raw_loc'. Handle it. Use
1336 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1337 looking at the breakpoint's type.
1338 (print_one_breakpoint): If handling "maint info breakpoints", also
1339 print locations of exception catchpoints.
1340 * breakpoint.h (is_exception_catchpoint): Declare.
1341
cb1e4e32
PA
13422019-07-09 Pedro Alves <palves@redhat.com>
1343
1344 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1345 "addr" field.
1346 (allocate_location_exception_catchpoint): New.
1347 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1348 (initialize_throw_catchpoint_ops): Install
1349 allocate_location_exception_catchpoint as allocate_location
1350 method.
1351 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1352 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1353 bp_loc_other.
1354 (breakpoint_address_is_meaningful): Delete.
1355 (bl_address_is_meaningful): New.
1356 (breakpoint_locations_match): Adjust comment.
1357 (bp_location_from_bp_type): New, factored out of...
1358 (bp_location::bp_location(breakpoint *)): ... this.
1359 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1360 factored out of...
1361 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1362 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1363 breakpoint_address_is_meaningful.
1364 (bp_locations_compare): Adjust comment.
1365 (update_global_location_list): Use bl_address_is_meaningful
1366 instead of breakpoint_address_is_meaningful.
1367 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1368 explicit.
1369 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1370 * python/py-breakpoint.c (bppy_get_location): No longer check
1371 whether location is null.
1372
b58a68fe
PA
13732019-07-09 Pedro Alves <palves@redhat.com>
1374
1375 PR c++/15468
1376 * breakpoint.c (print_one_breakpoint_location): Remove
1377 single-location assert.
1378
268a13a5
TT
13792019-07-09 Tom Tromey <tom@tromey.com>
1380
1381 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1382 * configure: Rebuild.
1383 * configure.ac: Change common to gdbsupport.
1384 * gdbsupport: Rename from common.
1385 * acinclude.m4: Change common to gdbsupport.
1386 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1387 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1388 gdbsupport.
1389 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1390 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1391 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1392 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1393 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1394 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1395 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1396 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1397 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1398 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1399 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1400 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1401 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1402 coff-pe-read.c, command.h, compile/compile-c-support.c,
1403 compile/compile-c.h, compile/compile-cplus-symbols.c,
1404 compile/compile-cplus-types.c, compile/compile-cplus.h,
1405 compile/compile-loc2c.c, compile/compile.c, completer.c,
1406 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1407 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1408 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1409 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1410 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1411 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1412 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1413 features/aarch64-core.c, features/aarch64-fpu.c,
1414 features/aarch64-pauth.c, features/aarch64-sve.c,
1415 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1416 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1417 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1418 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1419 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1420 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1421 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1422 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1423 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1424 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1425 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1426 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1427 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1428 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1429 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1430 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1431 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1432 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1433 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1434 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1435 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1436 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1437 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1438 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1439 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1440 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1441 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1442 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1443 minsyms.c, mips-linux-tdep.c, namespace.h,
1444 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1445 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1446 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1447 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1448 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1449 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1450 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1451 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1452 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1453 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1454 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1455 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1456 procfs.c, producer.c, progspace.h, psymtab.h,
1457 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1458 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1459 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1460 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1461 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1462 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1463 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1464 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1465 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1466 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1467 target-memory.c, target.c, target.h, target/waitstatus.c,
1468 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1469 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1470 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1471 unittests/array-view-selftests.c,
1472 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1473 unittests/common-utils-selftests.c,
1474 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1475 unittests/format_pieces-selftests.c,
1476 unittests/function-view-selftests.c,
1477 unittests/lookup_name_info-selftests.c,
1478 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1479 unittests/mkdir-recursive-selftests.c,
1480 unittests/observable-selftests.c,
1481 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1482 unittests/parse-connection-spec-selftests.c,
1483 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1484 unittests/scoped_fd-selftests.c,
1485 unittests/scoped_mmap-selftests.c,
1486 unittests/scoped_restore-selftests.c,
1487 unittests/string_view-selftests.c, unittests/style-selftests.c,
1488 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1489 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1490 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1491 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1492 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1493 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1494
5b0e2db4
AB
14952019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1496
1497 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1498 bool value.
1499 (decode_digits_ordinary): Set explicit_line field in sal.
1500 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1501 symtab_and_line that was set on an explicit line number in
1502 assembler code. Do always update the recorded symtab and line if
1503 we do skip the prologue.
1504
0ba852ab
AB
15052019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1506
1507 * breakpoint.c (set_breakpoint_location_function): Remove
1508 explicit_loc parameter.
1509 (momentary_breakpoint_from_master): Update call to
1510 set_breakpoint_location_function.
1511 (add_location_to_breakpoint): Likewise.
1512
b3a7d171
AB
15132019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1514
1515 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1516 required features based on default bfd type when no specific bfd
1517 is present.
1518
1f6f6e21
PW
15192019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1520
1521 * NEWS: Mention that GDB printf and eval commands can now print
1522 C-style and Ada-style convenience var strings without
1523 calling the inferior.
1524 * printcmd.c (printf_c_string): Locally print GDB internal var
1525 instead of transiting via the inferior.
1526 (printf_wide_c_string): Likewise.
1527
15282019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
1529
1530 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1531
0598af48
TT
15322019-07-04 Tom Tromey <tom@tromey.com>
1533
1534 PR tui/24724:
1535 * tui/tui-winsource.c (tui_clear_source_content): Update.
1536 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1537 (tui_update_breakpoint_info): Update.
1538 (tui_set_exec_info_content): Update.
1539 * tui/tui-source.c (tui_set_source_content_nil): Update.
1540 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1541 has_break.
1542 * tui/tui-data.h (enum tui_bp_flag): New.
1543 (tui_bp_flags): New enum flags type.
1544 (struct tui_source_element) <break_mode>: Change type. Rename
1545 from has_break.
1546 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1547 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1548 constants.
1549 * tui/tui-winsource.h: Fix comment.
1550
350fab54
AH
15512019-07-04 Alan Hayward <alan.hayward@arm.com>
1552
1553 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1554 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1555 (store_fpregs_to_thread)
1556 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1557 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1558 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1559 (IWMMXT_REGS_SIZE): Add define.
1560 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1561 (fetch_vfp_regs, store_vfp_regs)
1562 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1563 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1564
f0452268
AH
15652019-07-04 Alan Hayward <alan.hayward@arm.com>
1566
1567 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1568 defines.
1569 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1570 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1571 (ARM_INT_REGISTER_SIZE): ...to this.
1572 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1573 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1574 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1575 (arm_linux_collect_gregset, supply_nwfpe_register)
1576 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
1577 defines.
1578 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
1579 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
1580 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
1581 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
1582 (arm_return_in_memory, arm_store_return_value)
1583 (arm_get_longjmp_target, arm_register_g_packet_guesses)
1584 (arm_record_ld_st_multiple): Likewise.
1585 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
1586 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
1587
e935475c
AH
15882019-07-04 Alan Hayward <alan.hayward@arm.com>
1589
1590 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
1591 AARCH64_DISPLACED_MODIFIED_INSNS.
1592 * aarch64-tdep.c (struct aarch64_displaced_step_data)
1593 (aarch64_displaced_step_copy_insn): Likewise.
1594 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1595 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
1596 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1597 ARM_DISPLACED_MODIFIED_INSNS.
1598 * arm-tdep.c (arm_gdbarch_init): Likewise.
1599 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1600 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
1601 (struct arm_displaced_step_closure): Use
1602 ARM_DISPLACED_MODIFIED_INSNS.
1603
df0bb381
AH
16042019-07-04 Alan Hayward <alan.hayward@arm.com>
1605
1606 * features/Makefile: Remove unused xml files.
1607 * features/aarch64.xml: Remove.
1608 * features/i386/amd64-avx-avx512-linux.xml: Remove.
1609 * features/i386/amd64-avx-avx512.xml: Remove.
1610 * features/i386/amd64-avx-linux.xml: Remove.
1611 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
1612 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
1613 * features/i386/amd64-avx-mpx-linux.xml: Remove.
1614 * features/i386/amd64-avx-mpx.xml: Remove.
1615 * features/i386/amd64-avx.xml: Remove.
1616 * features/i386/amd64-linux.xml: Remove.
1617 * features/i386/amd64-mpx-linux.xml: Remove.
1618 * features/i386/amd64-mpx.xml: Remove.
1619 * features/i386/amd64.xml: Remove.
1620 * features/i386/i386-avx-avx512-linux.xml: Remove.
1621 * features/i386/i386-avx-avx512.xml: Remove.
1622 * features/i386/i386-avx-linux.xml: Remove.
1623 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
1624 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
1625 * features/i386/i386-avx-mpx-linux.xml: Remove.
1626 * features/i386/i386-avx-mpx.xml: Remove.
1627 * features/i386/i386-avx.xml: Remove.
1628 * features/i386/i386-linux.xml: Remove.
1629 * features/i386/i386-mmx-linux.xml: Remove.
1630 * features/i386/i386-mmx.xml: Remove.
1631 * features/i386/i386-mpx-linux.xml: Remove.
1632 * features/i386/i386-mpx.xml: Remove.
1633 * features/i386/i386.xml: Remove.
1634 * features/i386/x32-avx-avx512-linux.xml: Remove.
1635 * features/i386/x32-avx-linux.xml: Remove.
1636 * features/i386/x32-linux.xml: Remove.
1637
edd6266a
AH
16382019-07-04 Alan Hayward <alan.hayward@arm.com>
1639
1640 * regformats/aarch64.dat: Remove.
1641 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
1642 * regformats/i386/amd64-avx-linux.dat: Remove.
1643 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
1644 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
1645 * regformats/i386/amd64-linux.dat: Remove.
1646 * regformats/i386/amd64-mpx-linux.dat: Remove.
1647 * regformats/i386/amd64.dat: Remove.
1648 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
1649 * regformats/i386/i386-avx-linux.dat: Remove.
1650 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
1651 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
1652 * regformats/i386/i386-linux.dat: Remove.
1653 * regformats/i386/i386-mmx-linux.dat: Remove.
1654 * regformats/i386/i386-mpx-linux.dat: Remove.
1655 * regformats/i386/i386.dat: Remove.
1656 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
1657 * regformats/i386/x32-avx-linux.dat: Remove.
1658 * regformats/i386/x32-linux.dat: Remove.
1659
2b40fda7
AH
16602019-07-04 Alan Hayward <alan.hayward@arm.com>
1661
1662 * aarch64-tdep.c: Remove xml self tests.
1663 * amd64-linux-tdep.c: Likewise.
1664 * amd64-tdep.c: Likewise.
1665 * i386-linux-tdep.c: Likewise.
1666 * i386-tdep.c: Likewise.
1667
5f4ba3e7
PA
16682019-07-03 Pedro Alves <palves@redhat.com>
1669
1670 PR cli/24732
1671 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
1672 (pipe_cmd_option_defs): New.
1673 (make_pipe_cmd_options_def_group): New.
1674 (pipe_command): Use gdb::option::process_options.
1675 (pipe_command_completer): New function.
1676 (_initialize_cli_cmds): Install completer for "pipe" command.
1677
3d9be6f5
PA
16782019-07-03 Pedro Alves <palves@redhat.com>
1679
1680 * cli/cli-option.c (union option_value) <string>: New field.
1681 (struct option_def_and_value): Add ctor, move ctor, dtor and
1682 use DISABLE_COPY_AND_ASSIGN.
1683 (option_def_and_value::clear_value): New.
1684 (parse_option, save_option_value_in_ctx, get_val_type_str)
1685 (add_setshow_cmds_for_options): Handle var_string.
1686 * cli-option.h (union option_def::var_address) <string>: New
1687 field.
1688 (struct string_option_def): New.
1689 * maint-test-options.c (struct test_options_opts): Add default
1690 ctor and use DISABLE_COPY_AND_ASSIGN.
1691 <string_opt>: New field.
1692 (test_options_opts::~test_options_opts): New.
1693 (test_options_opts::dump): Also dump "-string".
1694 (test_options_option_defs): Install "string.
1695
41fc454c
PA
16962019-07-03 Pedro Alves <palves@redhat.com>
1697
1698 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
1699 option_value with a null enumeration.
1700 (complete_options): Save the option values in the context.
1701 (save_option_value_in_ctx): New, factored out from ...
1702 (process_options): ... here.
1703 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
1704 of the function.
1705 * maint-test-options.c (test_options_opts::dump): New, factored
1706 out from ...
1707 (maintenance_test_options_command_mode): ... here.
1708 (maintenance_test_options_command_completion_result): Delete.
1709 (maintenance_test_options_command_completion_text): Update
1710 comment.
1711 (maintenance_show_test_options_completion_result): Change
1712 prototype. Just print
1713 maintenance_test_options_command_completion_text.
1714 (save_completion_result): New.
1715 (maintenance_test_options_completer_mode): Pass options context to
1716 complete_options, and then save a dump.
1717 (_initialize_maint_test_options): Use add_cmd to install "maint
1718 show test-options-completion-result".
1719
fdbc9870
PA
17202019-07-03 Pedro Alves <palves@redhat.com>
1721
1722 * NEWS (New commands): Mention "with" and "maint with".
1723 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
1724 (with_command, with_command_completer): New.
1725 (pipe_command): Adjust to new repeat_previous
1726 interface.
1727 (_initialize_cli_cmds): Install the "with" command and its "w"
1728 alias.
1729 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
1730 declarations.
1731 * cli/cli-setshow.c (parse_cli_var_uinteger)
1732 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
1733 argument strings for all var_types.
1734 (get_setshow_command_value_string): New, factored out from ...
1735 (do_show_command): ... this.
1736 * cli/cli-setshow.h: Include <string>.
1737 (get_setshow_command_value_string): Declare.
1738 * command.h (repeat_previous): Now returns const char *. Adjust
1739 comment.
1740 * maint.c: Include "cli/cli-cmds.h".
1741 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
1742 (_initialize_maint_cmds): Register the "maintenance with" command.
1743 * top.c (repeat_previous): Move bits from pipe_command here:
1744 Return the saved command line, if any; error out if there's no
1745 command to relaunch.
1746
c6ac8931
PA
17472019-07-03 Pedro Alves <palves@redhat.com>
1748
1749 * NEWS (New commands): Mention "maint set/show test-settings"
1750 instead of "maint test-settings".
1751 * maint-test-settings.c (maintenance_test_settings_list): Delete.
1752 (maintenance_test_settings_set_list): Rename to ...
1753 (maintenance_set_test_settings_list): ... this.
1754 (maintenance_test_settings_show_list): Rename to ...
1755 (maintenance_show_test_settings_list): ... this.
1756 (maintenance_test_settings_cmd): Delete.
1757 (maintenance_test_settings_set_cmd): ...
1758 (maintenance_set_test_settings_cmd): ... this.
1759 (maintenance_test_settings_show_cmd): ...
1760 (maintenance_show_test_settings_cmd): ... this.
1761 (maintenance_test_settings_show_value_cmd):
1762 (maintenance_show_test_settings_value_cmd): ... this.
1763 (_initialize_maint_test_settings): No longer install the "maint
1764 test-settings" prefix command. Rename "maint test-settings set"
1765 to "maint set test-settings", and "maint test-settings show" to
1766 "maint show test-settings". Adjust all subcommands.
1767
d1fcf2fd
PA
17682019-07-03 Pedro Alves <palves@redhat.com>
1769
1770 * maint-test-settings.c: Fix file's intro comment. Replace all
1771 references to "test-options" with references to "test-settings",
1772 in comments.
1773
970f9d09
PA
17742019-07-03 Pedro Alves <palves@redhat.com>
1775
1776 * maint-test-settings.c (maintenance_test_settings_xxx)
1777 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
1778 New.
1779 (maintenance_test_settings_enums): Use them.
1780 (maintenance_test_settings_enum): Default to
1781 maintenance_test_settings_xxx.
1782 (_initialize_maint_test_settings): Initialize
1783 MAINTENANCE_TEST_SETTINGS_FILENAME.
1784
f3869b1a
SM
17852019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1786
1787 * breakpoint.h (remove_breakpoints_inf): Change return type to
1788 void, move function documentation here.
1789 * breakpoint.c (remove_breakpoints_inf): Change return type to
1790 void, move function documentation to header.
1791
54d66006
PA
17922019-07-02 Pedro Alves <palves@redhat.com>
1793
1794 * NEWS (Completion improvements): Mention "info threads".
1795 * thread.c (struct info_threads_opts, info_threads_option_defs)
1796 (make_info_threads_options_def_group): New.
1797 (info_threads_command): Use gdb::option::process_options.
1798 (info_threads_command_completer): New.
1799 (_initialize_thread): Use gdb::option::build_help to build the
1800 help text for "info threads".
1801
854f6088
SM
18022019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1803
1804 * defs.h (generic_load): Move from here...
1805 * symfile.h (generic_load): ... to here. Rename name parameter
1806 to args.
1807 * symfile.c (generic_load): Add comment.
1808
54ee4252
TT
18092019-07-01 Tom Tromey <tromey@adacore.com>
1810
1811 * dwarf2read.c
1812 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
1813 declaration of without_params. Fix formatting.
1814
65392b3e
TT
18152019-07-01 Tom Tromey <tromey@adacore.com>
1816
1817 * ada-exp.y (find_primitive_type): Update.
1818 * ada-lang.h (ada_lookup_symbol): Update.
1819 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
1820 parameter.
1821 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
1822
7d7571f0
SDJ
18232019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
1824
1825 PR breakpoints/24541
1826 * gdbarch.c: Regenerate.
1827 * gdbarch.h: Regenerate.
1828 * gdbarch.sh: Add 'stap_adjust_register'.
1829 * i386-tdep.c: Include '<unordered_set>'.
1830 (i386_stap_adjust_register): New function.
1831 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
1832 * stap-probe.c (stap_parse_register_operand): Call
1833 'gdbarch_stap_adjust_register'.
1834
5af5392a
SDJ
18352019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
1836
1837 PR python/24742
1838 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
1839 * python/python.c (do_start_initialization): Use 'xmalloc'
1840 instead of 'PyMem_Malloc'.
1841
10d06d82
TT
18422019-06-28 Tom Tromey <tromey@adacore.com>
1843
1844 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
1845 for Ada.
1846
1b7f24cd
TT
18472019-06-27 Tom Tromey <tromey@adacore.com>
1848
1849 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
1850 objfile_key.
1851 (arm_find_mapping_symbol, arm_record_special_symbol)
1852 (_initialize_arm_tdep): Update.
1853 (arm_objfile_data_free): Remove.
1854
3d507ff2
TT
18552019-06-27 Tom Tromey <tromey@adacore.com>
1856
1857 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
1858 to cp_print_static_field.
1859
762c164d
TT
18602019-06-26 Tom Tromey <tromey@adacore.com>
1861
1862 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
1863 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
1864 declare.
1865
aa2f9bcf
AH
18662019-06-26 Alan Hayward <alan.hayward@arm.com>
1867
1868 * features/aarch64-core.c (create_feature_aarch64_core):
1869 Regenerate.
1870 * features/aarch64-core.xml: Add cpsr flags.
1871
3426ae57
AH
18722019-06-26 Alan Hayward <alan.hayward@arm.com>
1873
1874 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
1875 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
1876
4838e44c
SM
18772019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
1878
1879 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
1880 field.
1881 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
1882 use.
1883 (arm_record_special_symbol): Don't insert new symbol in sorted
1884 position, push it at the end.
1885
54cc7474
SM
18862019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
1887
1888 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
1889 (arm_mapping_symbol_s): Remove.
1890 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
1891 (arm_mapping_symbol_vec): New typedef.
1892 (struct arm_per_objfile): Add constructor.
1893 <section_maps>: Change type to
1894 std::unique_ptr<arm_mapping_symbol_vec[]>.
1895 (arm_compare_mapping_symbols): Remove.
1896 (arm_find_mapping_symbol): Adjust to section_maps type change.
1897 (arm_objfile_data_free): Call delete on arm_per_objfile.
1898 (arm_record_special_symbol): Adjust to section_maps type change.
1899 Allocate arm_per_objfile with new.
1900
b65b566c
PW
19012019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1902
1903 * cli/cli-cmds.c (alias_command): Compare the alias prefix
1904 with the command prefix.
1905
c2fc64f5
TT
19062019-06-25 Tom Tromey <tom@tromey.com>
1907
1908 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
1909 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
1910
fb54fa76
TT
19112019-06-25 Tom Tromey <tom@tromey.com>
1912
1913 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
1914 type.
1915 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
1916 protected.
1917
f7952c57
TT
19182019-06-25 Tom Tromey <tom@tromey.com>
1919
1920 * tui/tui-winsource.c
1921 (tui_source_window_base::set_is_exec_point_at): Add check against
1922 LOA_ADDRESS.
1923
17568d78
TT
19242019-06-25 Tom Tromey <tom@tromey.com>
1925
1926 * tui/tui-source.c (tui_set_source_content): Don't check before
1927 xfree.
1928 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
1929
53e7cdba
TT
19302019-06-25 Tom Tromey <tom@tromey.com>
1931
1932 * tui/tui-winsource.h (tui_update_source_window_as_is)
1933 (tui_alloc_source_buffer, tui_line_is_displayed)
1934 (tui_addr_is_displayed): Change type of win_info.
1935 * tui/tui-winsource.c (tui_update_source_window_as_is)
1936 (tui_clear_source_content, tui_show_source_line)
1937 (tui_show_source_content, tui_source_window_base::refill)
1938 (tui_source_window_base::set_is_exec_point_at)
1939 (tui_source_window_base::set_is_exec_point_at)
1940 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
1941 (tui_alloc_source_buffer, tui_line_is_displayed)
1942 (tui_addr_is_displayed): Change type of win_info. Update.
1943 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1944 (tui_source_window_base::do_make_visible_with_new_height):
1945 Update.
1946 * tui/tui-source.c (tui_set_source_content)
1947 (tui_set_source_content_nil)
1948 (tui_source_window::do_scroll_vertical): Update.
1949 * tui/tui-layout.c (show_layout): Update.
1950 * tui/tui-disasm.c (tui_set_disassem_content)
1951 (tui_disasm_window::do_scroll_vertical): Update.
1952 * tui/tui-data.h (tui_win_content): Remove.
1953 (struct tui_gen_win_info) <content, content_size>: Remove.
1954 (struct tui_source_element): Add initializers and destructor.
1955 (union tui_which_element, struct tui_win_element): Remove.
1956 (struct tui_source_window_base) <content>: New field.
1957 (struct tui_data_window): Remove destructor.
1958 (tui_alloc_content, tui_free_win_content)
1959 (tui_free_all_source_wins_content): Don't declare.
1960 * tui/tui-data.c (tui_initialize_static_data): Update.
1961 (init_content_element, tui_alloc_content): Remove.
1962 (~tui_gen_win_info): Update.
1963 (~tui_data_window, tui_free_all_source_wins_content)
1964 (tui_free_win_content, free_content, free_content_elements):
1965 Remove.
1966
7908abbf
TT
19672019-06-25 Tom Tromey <tom@tromey.com>
1968
1969 * tui/tui-winsource.h (tui_clear_source_content)
1970 (tui_erase_source_content, tui_show_source_content): Change type
1971 of win_info.
1972 * tui/tui-winsource.c (tui_clear_source_content)
1973 (tui_erase_source_content, tui_show_source_content): Change type
1974 of win_info.
1975 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1976 * tui/tui-source.h (tui_set_source_content_nil): Change type of
1977 win_info.
1978 * tui/tui-source.c (tui_set_source_content_nil): Change type of
1979 win_info.
1980 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
1981
02c28df0
TT
19822019-06-25 Tom Tromey <tom@tromey.com>
1983
1984 * tui/tui-winsource.c (tui_clear_source_content)
1985 (tui_source_window_base::set_is_exec_point_at): Update.
1986 * tui/tui-source.c (tui_set_source_content_nil): Update.
1987 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
1988 a bool.
1989 * tui/tui-data.c (init_content_element): Update.
1990
6658b1bf
TT
19912019-06-25 Tom Tromey <tom@tromey.com>
1992
1993 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
1994 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
1995 * tui/tui-layout.c (init_and_make_win): Update.
1996 * tui/tui.h (enum tui_win_type): Update.
1997 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
1998 tui_win_is_auxillary.
1999 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2000 tui_win_is_auxillary.
2001
21e1c91e
TT
20022019-06-25 Tom Tromey <tom@tromey.com>
2003
2004 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2005 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2006 (tui_delete_data_content_windows, tui_display_all_data)
2007 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2008 Update.
2009 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2010 * tui/tui-regs.c (tui_last_regs_line_no)
2011 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2012 (tui_show_registers): Update.
2013 (tui_show_register_group): Return void. Update.
2014 (tui_display_registers_from, tui_display_reg_element_at_line)
2015 (tui_display_registers_from_line, tui_check_register_values):
2016 Update.
2017 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2018 member.
2019 (struct tui_data_window) <regs_content>: Now a std::vector.
2020 <regs_content_count>: Remove.
2021 (tui_add_content_elements, tui_free_data_content): Don't declare.
2022 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2023 (init_content_element): Remove DATA_WIN case. Add assert.
2024 (tui_add_content_elements): Remove.
2025 (tui_data_window): Update.
2026 (tui_free_data_content): Remove.
2027 (free_content_elements): Remove DATA_WIN case.
2028
115ac53b
TT
20292019-06-25 Tom Tromey <tom@tromey.com>
2030
2031 * tui/tui-data.c (tui_data_item_window): Update.
2032 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2033 * tui/tui-windata.c (tui_display_all_data)
2034 (tui_display_data_from_line): Update.
2035 (tui_check_data_values): Remove.
2036 * tui/tui-regs.c (tui_show_register_group)
2037 (tui_display_reg_element_at_line): Update.
2038 * tui/tui-hooks.c (tui_register_changed)
2039 (tui_refresh_frame_and_register_information): Call
2040 tui_check_register_values.
2041 * tui/tui-data.h (struct tui_data_window) <data_content,
2042 data_content_count, data_type>: Remove.
2043 (enum tui_data_type): Remove.
2044
2045 * tui/tui-data.c (tui_data_window::clear_detail)
2046 (~tui_data_window): Update.
2047
eaf9738b
TT
20482019-06-25 Tom Tromey <tom@tromey.com>
2049
2050 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2051 declare.
2052 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2053 Rename from tui_first_data_item_displayed. Update.
2054 (tui_data_window::refresh_all)
2055 (tui_data_window::do_scroll_vertical): Update.
2056 * tui/tui-data.h (struct tui_data_window)
2057 <first_data_item_displayed>: Declare new method.
2058
31ca4723
TT
20592019-06-25 Tom Tromey <tom@tromey.com>
2060
2061 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2062 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2063 contents...
2064 (tui_initialize_static_data): ...here.
2065
41bcff7f
TT
20662019-06-25 Tom Tromey <tom@tromey.com>
2067
2068 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2069 (tui_display_registers_from, tui_check_register_values): Update.
2070 (tui_display_register): Remove win_info parameter; update.
2071 (tui_get_register): Change type of parameters.
2072 * tui/tui-data.h (struct tui_data_element): Remove.
2073 (union tui_which_element) <data>: Remove.
2074 <data_window>: Change type.
2075 (struct tui_data_item_window): New.
2076 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2077 case. Add assert.
2078 (~tui_data_item_window): New destructor.
2079 (free_content_elements): Remove DATA_ITEM_WIN case.
2080
d2802c33
TT
20812019-06-25 Tom Tromey <tom@tromey.com>
2082
2083 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2084 Remove.
2085
dd835f8b
TT
20862019-06-25 Tom Tromey <tom@tromey.com>
2087
2088 * tui/tui-data.h (struct tui_command_element): Remove.
2089 (union tui_which_element) <command>: Remove.
2090 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2091 assert.
2092 (free_content_elements): Remove CMD_WIN case.
2093
bd7db367
TT
20942019-06-25 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui-layout.c (tui_set_layout): Update.
2097 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2098 * tui/tui-data.c (layout_def): Update.
2099
3add462f
TT
21002019-06-25 Tom Tromey <tom@tromey.com>
2101
2102 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2103 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2104 (tui_source_window_base::set_new_height): Update.
2105 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2106 Update.
2107 (tui_set_locator_fullname, tui_set_locator_info)
2108 (tui_show_frame_info): Update.
2109 * tui/tui-source.c (tui_set_source_content)
2110 (tui_source_is_displayed): Update.
2111 * tui/tui-layout.c (show_source_disasm_command, show_data)
2112 (show_source_or_disasm_and_command): Update.
2113 * tui/tui-disasm.c (tui_set_disassem_content)
2114 (tui_get_begin_asm_address): Update.
2115 * tui/tui-data.h (struct tui_locator_element): Remove.
2116 (union tui_which_element) <locator>: Remove.
2117 (struct tui_locator_window): New.
2118 (tui_locator_win_info_ptr): Change return type.
2119 * tui/tui-data.c (_locator): Change type.
2120 (tui_locator_win_info_ptr): Change return type.
2121 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2122 (tui_alloc_content): Add assert.
2123
489e9d8b
TT
21242019-06-25 Tom Tromey <tom@tromey.com>
2125
2126 * tui/tui-winsource.c
2127 (tui_exec_info_window::maybe_allocate_content): New method.
2128 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2129 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2130 (make_source_or_disasm_window): Add cast.
2131 * tui/tui-data.h (union tui_which_element) <simple_string>:
2132 Remove.
2133 (struct tui_source_info): New.
2134 (struct tui_source_window_base) <execution_info>: Change type.
2135 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2136 case, and add assert.
2137 (tui_alloc_content): Add assert.
2138
c3fabb7d
TT
21392019-06-25 Tom Tromey <tom@tromey.com>
2140
2141 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2142 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2143 * tui/tui-data.c (tui_alloc_win_info): Remove.
2144
bbc228ee
TT
21452019-06-25 Tom Tromey <tom@tromey.com>
2146
2147 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2148 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2149 can_highlight.
2150
5fcee43a
TT
21512019-06-25 Tom Tromey <tom@tromey.com>
2152
2153 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2154 make_visible_with_new_height method.
2155 (tui_win_info::make_visible_with_new_height): New method.
2156 (tui_source_window_base::do_make_visible_with_new_height)
2157 (tui_data_window::do_make_visible_with_new_height)
2158 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2159 (make_visible_with_new_height): Remove.
2160 (tui_resize_all, tui_adjust_win_heights): Use
2161 make_visible_with_new_height method.
2162 * tui/tui-data.h (struct tui_win_info)
2163 <do_make_visible_with_new_height, make_visible_with_new_height>:
2164 New methods.
2165 (struct tui_source_window_base, struct tui_data_window)
2166 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2167 methods.
2168
d83f1fe6
TT
21692019-06-25 Tom Tromey <tom@tromey.com>
2170
2171 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2172 method.
2173 (update_tab_width): Call update_tab_width method.
2174 * tui/tui-data.h (struct tui_win_info)
2175 (struct tui_source_window_base) <update_tab_width>: New methods.
2176
17374de4
TT
21772019-06-25 Tom Tromey <tom@tromey.com>
2178
2179 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2180 parameter.
2181 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2182 parameter.
2183 (tui_gen_win_info::make_visible): Update.
2184 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2185 parameter.
2186 * tui/tui-data.h (enum tui_box): New enum.
2187 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2188
f936bca2
TT
21892019-06-25 Tom Tromey <tom@tromey.com>
2190
2191 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2192 init_and_make_win for EXEC_INFO_WIN.
2193 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2194 longer inline.
2195 (struct tui_win_info) <~tui_win_info>: Inline.
2196 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2197 Don't declare.
2198 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2199 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2200 Remove.
2201 (tui_initialize_static_data): Update.
2202 (~tui_gen_win_info): Handle more cleanup here.
2203 (~tui_source_window_base): Delete "execution_info".
2204 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2205
d6ba6a11
TT
22062019-06-25 Tom Tromey <tom@tromey.com>
2207
2208 * tui/tui-layout.c (make_command_window): Don't set
2209 can_highlight.
2210 (show_source_disasm_command): Call the reset method.
2211 (show_data): Don't set can_highlight. Call the reset method.
2212 (tui_gen_win_info::reset): Rename from init_gen_win_info
2213 (init_and_make_win): Simplify. Return tui_gen_win_info.
2214 (show_source_or_disasm_and_command): Call the reset method.
2215 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2216 (struct tui_cmd_window): Set can_highlight.
2217
48a3bd16
TT
22182019-06-25 Tom Tromey <tom@tromey.com>
2219
2220 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2221 from make_visible.
2222 (tui_make_visible, tui_make_invisible): Rewrite.
2223 (tui_win_info::make_visible): Remove.
2224 (tui_source_window_base::make_visible): Update.
2225 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2226 method. Moved from...
2227 (struct tui_win_info) <make_visible>: ...here.
2228
c3bd716f
TT
22292019-06-25 Tom Tromey <tom@tromey.com>
2230
2231 * tui/tui-winsource.c
2232 (tui_source_window_base::do_scroll_horizontal): Remove direction
2233 parameter.
2234 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2235 direction parameter.
2236 * tui/tui-win.c (tui_win_info::forward_scroll)
2237 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2238 (tui_win_info::right_scroll): Update.
2239 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2240 direction parameter.
2241 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2242 direction parameter.
2243 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2244 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2245 Remove direction parameter.
2246 (struct tui_source_window_base, struct tui_source_window)
2247 (struct tui_disasm_window, struct tui_data_window)
2248 (struct tui_cmd_window): Update.
2249
21c32dca
TT
22502019-06-25 Tom Tromey <tom@tromey.com>
2251
2252 * tui/tui-winsource.h (tui_set_exec_info_content)
2253 (tui_show_exec_info_content, tui_erase_exec_info_content)
2254 (tui_clear_exec_info_content, tui_update_exec_info): Change
2255 argument to tui_source_window_base.
2256 * tui/tui-winsource.c (tui_set_exec_info_content)
2257 (tui_show_exec_info_content, tui_erase_exec_info_content)
2258 (tui_clear_exec_info_content, tui_update_exec_info): Change
2259 argument to tui_source_window_base.
2260
73fbdc65
TT
22612019-06-25 Tom Tromey <tom@tromey.com>
2262
2263 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2264 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2265
33325343
TT
22662019-06-25 Tom Tromey <tom@tromey.com>
2267
2268 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2269 check.
2270
29d2c474
TT
22712019-06-25 Tom Tromey <tom@tromey.com>
2272
2273 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2274 type to void.
2275 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2276 type to void.
2277 * tui/tui-source.c (tui_set_source_content): Update.
2278 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2279
152f3f4b
TT
22802019-06-25 Tom Tromey <tom@tromey.com>
2281
2282 * tui/tui-win.c (window_name_completer, tui_set_focus)
2283 (tui_all_windows_info): Use name method.
2284 * tui/tui-data.h (struct tui_gen_win_info)
2285 (struct tui_source_window, struct tui_disasm_window)
2286 (struct tui_data_window, struct tui_cmd_window) <name>: New
2287 method.
2288 (tui_win_name): Don't declare.
2289 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2290 (tui_win_name): Remove.
2291
be4da588
TT
22922019-06-25 Tom Tromey <tom@tromey.com>
2293
2294 * tui/tui-winsource.h (tui_update_source_window)
2295 (tui_update_source_window_as_is): Change parameter type.
2296 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2297 to be a tui_source_window_base.
2298 (tui_update_source_window_as_is): Likewise.
2299 * tui/tui-win.c (make_visible_with_new_height): Update.
2300
5b81daba
TT
23012019-06-25 Tom Tromey <tom@tromey.com>
2302
2303 * tui/tui-winsource.c (tui_erase_source_content)
2304 (tui_show_source_content, tui_show_exec_info_content)
2305 (tui_erase_exec_info_content): Use refresh_window method.
2306 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2307 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2308 from tui_refresh_win.
2309 (tui_data_window::refresh_window): New method.
2310 (tui_win_info::refresh, tui_source_window_base::refresh)
2311 (tui_refresh_all): Use refresh_window method.
2312 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2313 method.
2314 * tui/tui-regs.c (tui_display_register): Call refresh_window
2315 method.
2316 * tui/tui-layout.c (show_source_disasm_command)
2317 (show_source_or_disasm_and_command): Call refresh_window method.
2318 * tui/tui-data.h (struct tui_gen_win_info)
2319 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2320 New method.
2321
cb2ce893
TT
23222019-06-25 Tom Tromey <tom@tromey.com>
2323
2324 * tui/tui.c (tui_rl_other_window, tui_enable)
2325 (tui_is_window_visible, tui_get_command_dimension): Update.
2326 * tui/tui-winsource.c (tui_update_source_window_as_is)
2327 (tui_clear_source_content, tui_erase_source_content)
2328 (tui_show_source_line, tui_source_window_base::refill)
2329 (tui_source_window_base::do_scroll_horizontal)
2330 (tui_source_window_base::set_is_exec_point_at)
2331 (tui_update_breakpoint_info, tui_set_exec_info_content)
2332 (tui_alloc_source_buffer, tui_line_is_displayed)
2333 (tui_addr_is_displayed): Update.
2334 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2335 (tui_check_and_display_highlight_if_needed)
2336 (tui_win_info::make_visible, tui_win_info::refresh)
2337 (tui_refresh_all): Update.
2338 * tui/tui-windata.c (tui_first_data_item_displayed)
2339 (tui_delete_data_content_windows, tui_erase_data_content)
2340 (tui_display_all_data, tui_data_window::refresh_all)
2341 (tui_check_data_values): Update.
2342 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2343 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2344 (tui_win_info::backward_scroll, tui_refresh_all_win)
2345 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2346 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2347 (tui_source_window_base::set_new_height)
2348 (tui_data_window::set_new_height)
2349 (make_invisible_and_set_new_height)
2350 (make_visible_with_new_height, new_height_ok)
2351 (parse_scrolling_args): Update.
2352 * tui/tui-stack.c (tui_show_frame_info): Update.
2353 * tui/tui-source.c (tui_set_source_content)
2354 (tui_set_source_content_nil, tui_source_is_displayed)
2355 (tui_source_window::do_scroll_vertical): Update.
2356 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2357 (tui_display_registers_from, tui_display_reg_element_at_line)
2358 (tui_check_register_values, tui_reg_command): Update.
2359 * tui/tui-layout.c (tui_default_win_height)
2360 (show_source_disasm_command, show_data, init_and_make_win)
2361 (show_source_or_disasm_and_command): Update.
2362 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2363 (tui_redisplay_readline, tui_mld_flush)
2364 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2365 (tui_getc): Update.
2366 * tui/tui-disasm.c (tui_set_disassem_content)
2367 (tui_disasm_window::do_scroll_vertical): Update.
2368 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2369 Now virtual.
2370 (struct tui_win_info): Derive from tui_gen_win_info.
2371 <~tui_win_info>: Mark as override.
2372 <generic>: Remove member.
2373 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2374 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2375 (~tui_data_window, ~tui_win_info)
2376 (tui_free_all_source_wins_content): Update.
2377 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2378
ab313b35
TT
23792019-06-25 Tom Tromey <tom@tromey.com>
2380
2381 * tui/tui-layout.c (init_and_make_win): Use new.
2382 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2383 destructor, initializers.
2384 (tui_alloc_generic_win_info): Don't declare.
2385 * tui/tui-data.c (_locator): Add argument to constructor.
2386 (source_win, disasm_win): New globals.
2387 (exec_info): Remove.
2388 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2389 Update.
2390 (tui_alloc_generic_win_info): Remove.
2391 (init_content_element): Use new.
2392 (tui_win_info::tui_win_info): Update.
2393 (free_content_elements) <case DATA_WIN>: Use delete.
2394
dc2c33e4
TT
23952019-06-25 Tom Tromey <tom@tromey.com>
2396
2397 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2398 * tui/tui-windata.c (tui_first_data_item_displayed)
2399 (tui_delete_data_content_windows): Update.
2400 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2401 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2402 (tui_display_registers_from, tui_check_register_values): Update.
2403 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2404 pointer.
2405 * tui/tui-data.c (init_content_element): Update. Allocate the new
2406 window.
2407 (tui_free_data_content): Update.
2408 (free_content_elements) <case DATA_WIN>: Free the window.
2409
214a5cbe
TT
24102019-06-25 Tom Tromey <tom@tromey.com>
2411
2412 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2413 Update.
2414 * tui/tui-layout.c (make_command_window)
2415 (show_source_disasm_command, show_data, init_and_make_win)
2416 (show_source_or_disasm_and_command): Update.
2417 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2418 method.
2419 <can_highight, is_highlighted>: Now bool.
2420 (tui_set_win_highlight): Don't declare.
2421 * tui/tui-data.c (tui_set_win_highlight): Remove.
2422
8e2daf15
TT
24232019-06-25 Tom Tromey <tom@tromey.com>
2424
2425 * tui/tui-wingeneral.c (make_visible): Remove check of window
2426 type.
2427
8903bd8a
TT
24282019-06-25 Tom Tromey <tom@tromey.com>
2429
2430 * tui/tui-win.c (tui_win_info::max_height)
2431 (tui_cmd_window::max_height): New methods.
2432 (new_height_ok): Call max_height.
2433 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2434 <max_height>: New method.
2435
3f02ce1e
TT
24362019-06-25 Tom Tromey <tom@tromey.com>
2437
2438 * tui/tui-win.c (tui_source_window_base::set_new_height)
2439 (tui_data_window::set_new_height): New methods.
2440 (make_invisible_and_set_new_height): Call set_new_height method.
2441 * tui/tui-data.h (struct tui_win_info)
2442 (struct tui_source_window_base, struct tui_data_window)
2443 <set_new_height>: New method.
2444
1825f487
TT
24452019-06-25 Tom Tromey <tom@tromey.com>
2446
2447 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2448 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2449 tui_refresh_data_win.
2450 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2451 method.
2452 (tui_refresh_all_win): Call the refresh_all method.
2453 (tui_set_focus): Likewise.
2454 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2455 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2456 Likewise.
2457
ad54d15b
TT
24582019-06-25 Tom Tromey <tom@tromey.com>
2459
2460 * tui/tui-winsource.h (tui_refill_source_window)
2461 (tui_set_is_exec_point_at): Don't declare.
2462 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2463 (tui_source_window_base::refill): Rename from
2464 tui_refill_source_window.
2465 (tui_source_window_base::do_scroll_horizontal): Update.
2466 (tui_source_window_base::set_is_exec_point_at): Rename from
2467 tui_set_is_exec_point_at.
2468 (tui_update_all_breakpoint_info): Update.
2469 * tui/tui-stack.c (tui_show_frame_info): Update.
2470 * tui/tui-layout.c (show_data): Add cast.
2471 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2472 * tui/tui-data.h (struct tui_source_window_base) <refill,
2473 set_is_exec_point_at>: New methods.
2474 (tui_source_windows, tui_add_to_source_windows): Update types.
2475 (tui_add_to_source_windows): Remove redundant declaration.
2476 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2477 (tui_source_windows): Change return type.
2478 (tui_clear_source_windows_detail): Update.
2479 (tui_add_to_source_windows): Change type of parameter.
2480 (tui_free_all_source_wins_content): Update.
2481
2042b506
TT
24822019-06-25 Tom Tromey <tom@tromey.com>
2483
2484 * tui/tui-wingeneral.c (tui_win_info::refresh)
2485 (tui_source_window_base::refresh): New methods.
2486 (tui_refresh_all): Call the refresh method.
2487 * tui/tui-data.h (struct tui_win_info)
2488 (struct tui_source_window_base) <refresh>: New method.
2489
56122977
TT
24902019-06-25 Tom Tromey <tom@tromey.com>
2491
2492 * tui/tui.h (tui_is_window_visible): Return bool.
2493 * tui/tui.c (tui_is_window_visible): Return bool.
2494 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2495 (tui_make_visible, tui_make_invisible)
2496 (tui_win_info::make_visible)
2497 (tui_source_window_base::make_visible, make_all_visible)
2498 (tui_make_all_visible, tui_make_all_invisible): Update.
2499 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2500 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2501 bool.
2502 (struct tui_win_info, struct tui_source_window_base)
2503 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2504 * tui/tui-data.c (tui_init_generic_part): Update.
2505
cda37efb
TT
25062019-06-25 Tom Tromey <tom@tromey.com>
2507
2508 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2509 (tui_source_window_base::make_visible): New methods.
2510 (make_all_visible): Make method call.
2511 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2512 (struct tui_source_window_base, struct tui_cmd_window): Override
2513 make_visible.
2514 (tui_win_is_source_type): Don't declare.
2515 * tui/tui-data.c (tui_win_is_source_type): Remove.
2516
6a0ee02c
TT
25172019-06-25 Tom Tromey <tom@tromey.com>
2518
2519 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2520 NULL check.
2521
63901aec
TT
25222019-06-25 Tom Tromey <tom@tromey.com>
2523
2524 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2525 Inline constructor. Add initializers for members.
2526 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2527 constructors; now inline in class.
2528
ceb13a13
TT
25292019-06-25 Tom Tromey <tom@tromey.com>
2530
2531 * tui/tui-regs.c (tui_show_registers): Update.
2532 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2533 bool.
2534 * tui/tui-data.c (tui_data_window::clear_detail)
2535 (tui_data_window): Update.
2536
238eb706
TT
25372019-06-25 Tom Tromey <tom@tromey.com>
2538
2539 * tui/tui-windata.c (tui_display_all_data)
2540 (tui_display_data_from_line, tui_display_data_from)
2541 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2542 Update.
2543 * tui/tui-regs.c (tui_last_regs_line_no)
2544 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2545 (tui_show_registers, tui_show_register_group)
2546 (tui_display_registers_from, tui_display_reg_element_at_line)
2547 (tui_display_registers_from_line, tui_check_register_values)
2548 (tui_reg_next, tui_reg_prev): Update.
2549 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2550 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2551 tui_data_window.
2552 (struct tui_win_info) <detail>: Remove. Add new fields from
2553 tui_data_info.
2554 (TUI_DATA_WIN): Add cast.
2555 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2556 (~tui_data_window): Simplify.
2557
81491aa0
TT
25582019-06-25 Tom Tromey <tom@tromey.com>
2559
2560 * tui/tui-layout.c (show_source_disasm_command)
2561 (show_source_or_disasm_and_command): Update.
2562 * tui/tui-io.c (update_cmdwin_start_line)
2563 (tui_redisplay_readline): Update.
2564 * tui/tui-data.h (struct tui_command_info): Remove.
2565 (struct tui_win_info) <detail>: Remove command_info member.
2566 (struct tui_data_window) <start_line>: New member, from
2567 tui_command_info.
2568 (TUI_CMD_WIN): Add casts.
2569
e6e41501
TT
25702019-06-25 Tom Tromey <tom@tromey.com>
2571
2572 * tui/tui-winsource.c (tui_update_source_window)
2573 (tui_refill_source_window)
2574 (tui_source_window_base::do_scroll_horizontal)
2575 (tui_update_breakpoint_info, tui_set_exec_info_content)
2576 (tui_show_exec_info_content, tui_erase_exec_info_content)
2577 (tui_clear_exec_info_content): Update.
2578 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
2579 Update.
2580 * tui/tui-win.c (make_invisible_and_set_new_height)
2581 (make_visible_with_new_height): Update.
2582 * tui/tui-source.c (tui_set_source_content)
2583 (tui_show_symtab_source): Update.
2584 * tui/tui-layout.c (extract_display_start_addr)
2585 (show_source_disasm_command, show_data)
2586 (make_source_or_disasm_window)
2587 (show_source_or_disasm_and_command): Update.
2588 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
2589 (tui_disasm_window::do_scroll_vertical): Remove shadowing
2590 "gdbarch".
2591 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
2592 to tui_source_window_base.
2593 (struct tui_win_info) <detail>: Remove source_info member.
2594 (struct tui_source_window_base) <has_locator>: Inline.
2595 Move contents from tui_source_info; rename has_locator member to
2596 m_has_locator.
2597 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
2598 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
2599 header file.
2600 (tui_source_window_base::clear_detail, ~tui_source_window_base):
2601 Simplify.
2602 (tui_free_all_source_wins_content): Cast to
2603 tui_source_window_base.
2604
44f0e208
TT
26052019-06-25 Tom Tromey <tom@tromey.com>
2606
2607 * tui/tui-win.c (make_invisible_and_set_new_height)
2608 (make_visible_with_new_height): Call has_locator method.
2609 * tui/tui-layout.c (show_source_disasm_command, show_data)
2610 (show_source_or_disasm_and_command): Update for bool change.
2611 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
2612 (tui_win_info) <has_locator>: New method.
2613 (struct tui_source_window_base) <has_locator>: New method.
2614 (tui_win_has_locator): Don't declare.
2615 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
2616 from tui_win_has_locator.
2617 (tui_source_window_base): Use false, not FALSE.
2618
7778b912
TT
26192019-06-25 Tom Tromey <tom@tromey.com>
2620
2621 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
2622 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
2623 clear_detail method directly.
2624 (tui_clear_win_detail): Remove.
2625
f83d391c
TT
26262019-06-25 Tom Tromey <tom@tromey.com>
2627
2628 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
2629 "this", not TUI_DISASM_WIN.
2630
13446e05
TT
26312019-06-25 Tom Tromey <tom@tromey.com>
2632
2633 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
2634 declare.
2635 * tui/tui-winsource.c
2636 (tui_source_window_base::do_scroll_horizontal): Rename from
2637 tui_horizontal_source_scroll.
2638 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
2639 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
2640 from tui_vertical_data_scroll.
2641 * tui/tui-win.h (tui_scroll): Don't declare.
2642 * tui/tui-win.c (tui_win_info::forward_scroll)
2643 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2644 (tui_win_info::right_scroll): Rename and update.
2645 (tui_scroll_forward_command, tui_scroll_backward_command)
2646 (tui_scroll_left_command, tui_scroll_right_command): Update.
2647 (tui_scroll): Remove.
2648 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
2649 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
2650 from tui_vertical_source_scroll.
2651 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
2652 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
2653 from tui_vertical_disassem_scroll.
2654 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
2655 do_scroll_horizontal>: New methods.
2656 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
2657 Likewise.
2658 (struct tui_source_window_base): Add do_scroll_horizontal.
2659 (struct tui_source_window, struct tui_disasm_window): Add
2660 do_scroll_vertical.
2661 (struct tui_data_window, struct tui_cmd_window): Add
2662 do_scroll_horizontal and do_scroll_vertical.
2663 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
2664
5cf82909
TT
26652019-06-25 Tom Tromey <tom@tromey.com>
2666
2667 * tui/tui-data.h (struct tui_source_window_base): New struct.
2668 (struct tui_source_window): Derive from tui_source_window_base.
2669 (struct tui_disasm_window): New struct.
2670 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
2671 from tui_source_window::clear_detail.
2672 (tui_source_window_base): Rename from tui_source_window.
2673 (~tui_source_window_base): Rename from ~tui_source_window.
2674 (tui_alloc_win_info): Create a tui_disasm_window.
2675
ee1d42d6
TT
26762019-06-25 Tom Tromey <tom@tromey.com>
2677
2678 * tui/tui-data.h (struct tui_source_window)
2679 (struct tui_data_window): Declare destructors.
2680 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
2681 destructors.
2682 (tui_win_info): Simplify.
2683
b4eb2452
TT
26842019-06-25 Tom Tromey <tom@tromey.com>
2685
2686 * tui/tui-winsource.c (tui_display_main)
2687 (tui_update_source_windows_with_addr)
2688 (tui_update_all_breakpoint_info): Update.
2689 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2690 (new_height_ok, parse_scrolling_args): Update.
2691 * tui/tui-stack.c (tui_show_frame_info): Update.
2692 * tui/tui-data.h (struct tui_list): Remove.
2693 (tui_source_windows): Return a reference to a std::vector.
2694 * tui/tui-data.c (source_windows): Now a std::vector.
2695 (tui_source_windows): Change return type.
2696 (tui_clear_source_windows): Rewrite.
2697 (tui_clear_source_windows_detail, tui_add_to_source_windows)
2698 (tui_free_all_source_wins_content): Rewrite.
2699
8761a91b
TT
27002019-06-25 Tom Tromey <tom@tromey.com>
2701
2702 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
2703 (struct tui_data_window, struct tui_cmd_window): Declare
2704 clear_detail method.
2705 * tui/tui-data.c (tui_source_window::clear_detail)
2706 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
2707 methods.
2708 (tui_clear_win_detail): Simplify.
2709
0ed69eda
TT
27102019-06-25 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui-layout.c (make_source_window, make_disasm_window)
2713 (make_source_or_disasm_window): Remove win_info_ptr parameter.
2714 Return the new window.
2715 (show_source_disasm_command, show_data)
2716 (show_source_or_disasm_and_command): Update.
2717
82432e10
TT
27182019-06-25 Tom Tromey <tom@tromey.com>
2719
2720 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
2721 parameter. Return the new window.
2722 (show_source_disasm_command): Update and remove NULL check.
2723 (show_source_or_disasm_and_command): Update.
2724
ec328aa5
TT
27252019-06-25 Tom Tromey <tom@tromey.com>
2726
2727 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
2728
33b906ab
TT
27292019-06-25 Tom Tromey <tom@tromey.com>
2730
2731 * tui/tui-data.h (struct tui_win_info): Make constructor
2732 protected. Make destructor virtual. Add initializers.
2733 (tui_source_window, tui_data_window, tui_cmd_window): New
2734 classes.
2735 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
2736 constructor. Add "type" parameter.
2737 (tui_source_window, tui_data_window, tui_cmd_window): New
2738 constructors.
2739 (tui_alloc_win_info): Instantiate the appropriate subclass.
2740
e7e11af4
TT
27412019-06-25 Tom Tromey <tom@tromey.com>
2742
2743 * tui/tui-win.c (tui_resize_all): Use delete.
2744 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
2745 destructor.
2746 (tui_free_window): Don't declare.
2747 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
2748 Update.
2749
6792b55e
TT
27502019-06-25 Tom Tromey <tom@tromey.com>
2751
2752 * tui/tui-data.h (struct tui_win_info): Add constructor.
2753 * tui/tui-data.c (tui_alloc_win_info): Use new.
2754 (tui_free_window): Use delete.
2755
f95675e1
TT
27562019-06-22 Tom Tromey <tom@tromey.com>
2757
2758 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
2759 declare.
2760 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
2761
5bff081c
TT
27622019-06-22 Tom Tromey <tom@tromey.com>
2763
2764 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
2765 declare.
2766 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
2767
47e3f474
TV
27682019-06-22 Tom de Vries <tdevries@suse.de>
2769
2770 * dwarf2read.c (create_addrmap_from_aranges)
2771 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
2772 instead of '%zu'.
2773
fd5866f6
SM
27742019-06-21 Simon Marchi <simon.marchi@efficios.com>
2775
2776 * dwarf2read.h (dwarf2_section_info_def): Remove.
2777 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
2778 * dwarf2read.c (struct dwo_sections) <types>: Change type to
2779 std::vector<dwarf2_section_info>.
2780 (struct dwo_file) <~dwo_file>: Remove.
2781 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
2782 types field.
2783 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
2784 (dwarf2_read_debug_names): Likewise.
2785 (create_debug_types_hash_table): Change parameter type to
2786 array_view, adjust code accordingly.
2787 (dwarf2_locate_dwo_sections): Adjust to std::vector.
2788 (partial_die_info::fixup): Likewise.
2789 (determine_prefix): Likewise.
2790 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
2791
fb1eb2f9
SM
27922019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
2793
2794 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
2795 gdb_bfd_ref_ptr.
2796 <~dwo_file>: Remove call to gdb_bfd_unref.
2797 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
2798 gdb_bfd_ref_ptr::get.
2799
51ac9db5
SM
28002019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
2801
2802 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
2803 type to htab_up.
2804 * dwarf2read.c (struct dwo_file): Initialize fields.
2805 <~dwo_file>: New.
2806 (free_dwo_file): Remove, move content to ~dwo_file.
2807 (struct dwo_file_deleter): Remove.
2808 (dwo_file_up>: Remove custom deleter.
2809 (free_dwo_files): Remove.
2810 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
2811 dwo_files.
2812 (process_skeletonless_type_units): Call unique_ptr::get.
2813 (allocate_dwo_file_hash_table): Add deleter to created hash
2814 table. Change return type to htab_up.
2815 (lookup_dwo_file_slot): Don't memset dwo_file, call
2816 unique_ptr::get.
2817 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
2818 (create_dwo_unit_in_dwp_v2): Likewise.
2819 (open_and_init_dwo_file): Likewise.
2820 (free_dwo_file_from_slot): Remove.
2821
dc4ccb6f
SM
28222019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
2823
2824 * dwarf2read.h (struct dwarf2_section_info) <readin,
2825 is_virtual>: Change type to bool.
2826 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
2827 true instead of 1.
2828
e6a1c5cb
TT
28292019-06-19 Tom Tromey <tom@tromey.com>
2830
2831 * tui/tui-data.h (tui_init_content_element): Don't declare.
2832
6f6ffbeb
TT
28332019-06-19 Tom Tromey <tom@tromey.com>
2834
2835 * tui/tui-data.h (tui_init_win_info): Don't declare.
2836
f23f598e
TV
28372019-06-19 Tom de Vries <tdevries@suse.de>
2838
2839 * dwarf2read.h (abstract_to_concrete): Change type to
2840 std::unordered_map<sect_offset, std::vector<sect_offset>,
2841 gdb::hash_enum<sect_offset>>.
2842
680e1bee
TT
28432019-06-19 Tom Tromey <tromey@adacore.com>
2844
2845 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
2846 EVAL_AVOID_SIDE_EFFECTS specially.
2847
dcf37923
TT
28482019-06-19 Tom Tromey <tromey@adacore.com>
2849
2850 * source-cache.c (highlighter): New global.
2851 (source_cache::get_source_lines): Create a highlighter on demand.
2852
494986d5
AB
28532019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
2854
2855 * defs.h (deprecated_interactive_hook): Delete declaration.
2856 * interps.c (clear_interpreter_hooks): Remove use of
2857 deprecated_interactive_hook.
2858 * top.c (deprecated_interactive_hook): Delete definition.
2859 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
2860
3360b6e7
TV
28612019-06-18 Tom de Vries <tdevries@suse.de>
2862
2863 PR gdb/24515
2864 * dwarf2read.h (abstract_to_concrete): Change type from
2865 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
2866 std::unordered_map<sect_offset, std::vector<sect_offset>>.
2867 * dwarf2read.c (read_variable): Update.
2868 (dwarf2_fetch_die_loc_sect_off): Update.
2869
310b3441
TV
28702019-06-17 Tom de Vries <tdevries@suse.de>
2871
2872 PR gdb/24617
2873 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
2874 accessing parent[parent_len - 1].
2875
ba9777be
PP
28762019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
2877
2878 PR gdb/24364
2879 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
2880 call dtrace_process_dof with NULL dof.
2881
2b9f6e89
TV
28822019-06-16 Tom de Vries <tdevries@suse.de>
2883
2884 PR gdb/24445
2885 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
2886
431b3ead
TT
28872019-06-16 Tom Tromey <tom@tromey.com>
2888
2889 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2890 (make_all_visible): Use address of member.
2891
d04b44a1
TT
28922019-06-16 Tom Tromey <tom@tromey.com>
2893
2894 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
2895 (tui_free_window, free_content, free_content_elements): Remove
2896 unnecessary cast.
2897 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
2898 cast.
2899 * tui/tui-regs.c (tui_show_register_group)
2900 (tui_display_registers_from, tui_display_reg_element_at_line):
2901 Remove unnecessary cast.
2902
bf5142e7
AB
29032019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
2904
2905 * linux-nat.c (normal_mask): Delete.
2906 (_initialize_linux_nat): Don't initialise normal_mask.
2907
c4973306
SM
29082019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
2909
2910 PR gdb/24445
2911 * dwarf-index-write.h (write_psymtabs_to_index): Add
2912 dwz_basename parameter.
2913 * dwarf-index-write.c (write_gdbindex): Move file writing to
2914 write_gdbindex_1. Change return type void.
2915 (assert_file_size): Move up, remove filename parameter.
2916 (write_gdbindex_1): New function.
2917 (write_debug_names): Change return type to void, call
2918 assert_file_size.
2919 (struct index_wip_file): New struct.
2920 (write_psymtabs_to_index): Add dwz_basename parameter. Move
2921 file logic to index_wip_file. Write index for dwz file if
2922 needed.
2923 (save_gdb_index_command): Pass basename of dwz file, if present.
2924 * dwarf-index-cache.c (index_cache::store): Obtain and pass
2925 build-id of dwz file, if present.
2926 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
2927 (dwarf2_get_dwz_file): Likewise.
2928 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
2929 (dwarf2_get_dwz_file): Likewise.
2930
395f9c91
TT
29312019-06-16 Tom Tromey <tom@tromey.com>
2932
2933 * coffread.c (process_coff_symbol): Use xstrdup.
2934 * value.c (create_internalvar): Use xstrdup.
2935
cafb3438
TT
29362019-06-16 Tom Tromey <tom@tromey.com>
2937
2938 * valops.c (value_cast, value_slice): Remove unnecessary cast.
2939 * breakpoint.c (stopin_command, stopat_command)
2940 (until_break_command, decode_location_default): Remove unnecessary
2941 cast.
2942 * utils.c (subset_compare): Remove unnecessary cast.
2943 * ada-lang.c (ada_update_initial_language): Remove unnecessary
2944 cast.
2945 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
2946 cast.
2947 * infcmd.c (path_command): Remove unnecessary cast.
2948 * coffread.c (decode_type): Remove unnecessary cast.
2949 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
2950 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
2951 * tui/tui-stack.c (tui_show_locator_content)
2952 (tui_show_frame_info): Remove unnecessary cast.
2953 * tui/tui-win.c (tui_scroll_forward_command)
2954 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
2955 (parse_scrolling_args): Remove unnecessary cast.
2956 * tui/tui-data.c (init_win_info, tui_del_window)
2957 (tui_free_window, tui_del_data_windows, tui_free_data_content)
2958 (free_content_elements): Remove unnecessary cast.
2959 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
2960 unnecessary cast.
2961 * tui/tui-source.c (tui_set_source_content)
2962 (tui_vertical_source_scroll): Remove unnecessary cast.
2963 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
2964 cast.
2965 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
2966 * tui/tui-regs.c (tui_display_registers_from)
2967 (tui_display_register): Remove unnecessary cast.
2968 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
2969 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
2970 (make_visible): Remove unnecessary cast.
2971 * tui/tui-winsource.c (tui_erase_source_content)
2972 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
2973 unnecessary cast.
2974 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
2975 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
2976 * stabsread.c (read_type, read_array_type, read_range_type):
2977 Remove unnecessary cast.
2978 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
2979 (parse_symbol, parse_type, upgrade_type, parse_external)
2980 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
2981 unnecessary cast.
2982 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
2983
730ead81
TT
29842019-06-16 Tom Tromey <tom@tromey.com>
2985
2986 * tui/tui-data.c (tui_alloc_generic_win_info)
2987 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
2988 checks.
2989
584a927c
AB
29902019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
2991 Andrew Burgess <andrew.burgess@embecosm.com>
2992
2993 * f-typeprint.c (f_print_type): Don't return early for not
2994 associated or not allocated types.
2995 (f_type_print_varspec_suffix): Add print_rank parameter and print
2996 ranks of array types in case they dangling.
2997 (f_type_print_base): Add print_rank parameter.
2998
30056ea0
AB
29992019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * NEWS: Mention new MI commands.
3002 * break-catch-throw.c (enum exception_event_kind): Move to
3003 breakpoint.h.
3004 (print_mention_exception_catchpoint): Output text as a single
3005 message.
3006 (catch_exception_command_1): Rename to...
3007 (catch_exception_event): ...this, make non-static, update header
3008 command, and change some parameter types.
3009 (catch_catch_command): Update for changes to
3010 catch_exception_command_1.
3011 (catch_throw_command): Likewise.
3012 (catch_rethrow_command): Likewise.
3013 * breakpoint.c (enum exception_event_kind): Delete.
3014 * breakpoint.h (enum exception_event_kind): Moved here from
3015 break-catch-throw.c.
3016 (catch_exception_event): Declare.
3017 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3018 (mi_cmd_catch_throw): New function.
3019 (mi_cmd_catch_rethrow): New function.
3020 (mi_cmd_catch_catch): New function.
3021 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3022 'catch-catch' entries.
3023 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3024 (mi_cmd_catch_rethrow): Declare.
3025 (mi_cmd_catch_catch): Declare.
3026
ec8e2b6d
AB
30272019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3028
3029 * annotate.c (annotate_source_line): Change return type to void,
3030 update implementation to match.
3031 * annotate.h (annotate_source_line): Change return type to void,
3032 update header comment.
3033 * stack.c (print_frame_info): Don't change what frame information
3034 is printed based on whether annotations are on or not.
3035
0d3abd8c
AB
30362019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3037
3038 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3039 (annotate_source): Make static.
3040 (annotate_source_line): Moved from source.c and renamed from
3041 identify_source_line. Update the return type.
3042 * annotate.h (annotate_source): Delete declaration.
3043 (annotate_source_line): Declaration moved from source.h, and
3044 renamed from identify_source_line. Return type updated.
3045 * source.c (identify_source_line): Moved to annotate.c and renamed
3046 to annotate_source_line.
3047 (info_line_command): Remove check of annotation_level.
3048 * source.h (identify_source_line): Move declaration to annotate.h
3049 and rename to annotate_source_line.
3050 * stack.c: Add 'annotate.h' include.
3051 (print_frame_info): Remove check of annotation_level before
3052 calling annotate_source_line.
3053
00df30ae
AB
30542019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * source-cache.c (source_cache::get_plain_source_lines): Use
3057 open_source_file_with_line_charpos instead of just
3058 open_source_file, remove call to find_source_lines.
3059 (source_cache::get_source_lines): Likewise.
3060 * source.c (find_source_lines): Make static.
3061 (get_filename_and_charpos): Renamed into...
3062 (open_source_file_with_line_charpos): ..this along with changes to
3063 return a scoped_fd, and some other minor clean ups.
3064 (identify_source_line): Use open_source_file_with_line_charpos.
3065 (search_command_helper): Use open_source_file_with_line_charpos
3066 instead of just open_source_file, remove call to
3067 find_source_lines.
3068 * source.h (open_source_file_with_line_charpos): Declare new
3069 function.
3070 (find_source_lines): Delete declaration.
3071
afda45a2
AB
30722019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3073
3074 * source.c (get_filename_and_charpos): Remove fullname
3075 parameter.
3076 (identify_source_line): Update call to get_filename_and_charpos.
3077
0735b091
TT
30782019-06-14 Tom Tromey <tromey@adacore.com>
3079
3080 PR gdb/24502:
3081 * ui-style.h (skip_ansi_escape): Update comment.
3082 * ui-file.h (class no_terminal_escape_file): New class.
3083 * ui-file.c (no_terminal_escape_file::write)
3084 (no_terminal_escape_file::puts): New methods.
3085 * cli/cli-logging.c (handle_redirections): Use
3086 no_terminal_escape_file.
3087
52ce35e2
TT
30882019-06-14 Tom Tromey <tromey@adacore.com>
3089
3090 * NEWS: Move convenience variable news above Python news.
3091
73cc7272
TT
30922019-06-14 Tom Tromey <tom@tromey.com>
3093
3094 * gnulib: Move directory to top-level.
3095 * configure.ac: Don't configure gnulib.
3096 * configure: Rebuild.
3097 * common/common-defs.h: Use new path to gnulib.
3098 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3099 (GNULIB_H): Remove.
3100 (INCGNU): Look in new gnulib location.
3101 (HFILES_NO_SRCDIR): Remove gnulib files.
3102 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3103 (generated_files): Remove GNULIB_H.
3104 ($(LIBGNU), all-lib): Remove targets.
3105 (distclean): Don't mention GNULIB_BUILDDIR.
3106 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3107
f5686554
TT
31082019-06-14 Tom Tromey <tromey@adacore.com>
3109
3110 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3111 Warn if symbol file does not provide any symbols.
3112
a0c1ffed
TT
31132019-06-14 Tom Tromey <tromey@adacore.com>
3114
3115 * source.c (find_and_open_source): Respect basenames_may_differ.
3116
7c39e397
AB
31172019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * annotate.c (annotate_breakpoints_invalid): Make use of
3120 scoped_restore_terminal_state.
3121 (annotate_frames_invalid): Likewise.
3122
f411722c
TT
31232019-06-14 Tom Tromey <tromey@adacore.com>
3124
3125 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3126 allow assignment to an internalvar.
3127
4268ec18
TT
31282019-06-14 Tom Tromey <tromey@adacore.com>
3129
3130 * ada-lex.l: Allow "_" in attribute names.
3131
abdb711e
TT
31322019-06-14 Tom Tromey <tromey@adacore.com>
3133
3134 PR gdb/24653:
3135 * regcache.c (registers_changed): Don't call alloca.
3136 * top.c (execute_command): Don't call alloca.
3137
4c048731
PA
31382019-06-13 Pedro Alves <palves@redhat.com>
3139
3140 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3141 'expression'. When parsing an expression, error out if there's
3142 junk after "unlimited".
3143 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3144 (do_set_command): Adjust calls to is_unlimited_literal.
3145
66eb1ed3
PA
31462019-06-13 Pedro Alves <palves@redhat.com>
3147
3148 * compile/compile.c (make_compile_options_def_group): Add braces
3149 around array_view initializer.
3150 * thread.c (make_thread_apply_all_options_def_group)
3151 (make_thread_apply_all_options_def_group): Likewise.
3152
3345721a
PA
31532019-06-13 Pedro Alves <palves@redhat.com>
3154
3155 * NEWS (New commands): Mention "maint test-options
3156 require-delimiter", "maint test-options unknown-is-error", "maint
3157 test-options unknown-is-operand" and "maint show
3158 test-options-completion-result".
3159 (New command options, command completion): New section.
3160 (Completion improvements): New section.
3161 Mention that you can abbreviate "unlimited".
3162
6206060d
PA
31632019-06-13 Pedro Alves <palves@redhat.com>
3164
3165 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3166 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3167 * unittests/cli-utils-selftests.c (test_parse_flags)
3168 (test_parse_flags_qcs): Delete.
3169 (test_cli_utils): Don't call deleted functions.
3170
6665660a
PA
31712019-06-13 Pedro Alves <palves@redhat.com>
3172
3173 * thread.c: Include "cli/cli-option.h".
3174 (tp_array_compar_ascending): Global.
3175 (tp_array_compar): Delete function.
3176 (tp_array_compar_ascending, tp_array_compar_descending): New
3177 functions.
3178 (ascending_option_def, qcs_flag_option_def)
3179 (thr_qcs_flags_option_defs)
3180 (make_thread_apply_all_options_def_group)
3181 (make_thread_apply_options_def_group): New.
3182 (thread_apply_all_command): Use gdb::option::process_options.
3183 (thread_apply_command_completer)
3184 (thread_apply_all_command_completer): New.
3185 (thread_apply_command): Use gdb::option::process_options.
3186 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3187 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3188 to generate help text of "thread apply". Adjust "taas"'s help.
3189 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3190 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3191
f7e13587
PA
31922019-06-13 Pedro Alves <palves@redhat.com>
3193
3194 * thread.c (thread_apply_command): Check for invalid TID with
3195 isdigit instead of !isalpha.
3196
5d707134
PA
31972019-06-13 Pedro Alves <palves@redhat.com>
3198
3199 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3200 (validate_flags_qcs): New.
3201 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3202 (validate_flags_qcs): Declare.
3203 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3204 (make_frame_apply_options_def_group): New.
3205 (frame_apply_command_count): Process options with
3206 gdb::option::process_options.
3207 (frame_apply_completer): New.
3208 (frame_apply_level_completer, frame_apply_all_completer)
3209 (frame_apply_completer): New.
3210 (_initialize_stack): Update help of "frame apply", "frame apply
3211 level", "frame apply all" and "faas" to mention supported options
3212 and install command completers.
3213 * stack.h (frame_apply_all_completer): Declare.
3214 * thread.c: Include "stack.h".
3215 (tfaas_command): Add "--".
3216 (_initialize_thread): Update help "tfaas" to mention supported
3217 options and install command completer.
3218
272d4594
PA
32192019-06-13 Pedro Alves <palves@redhat.com>
3220
3221 * completer.c (complete_nested_command_line): New.
3222 (gdb_completion_word_break_characters_throw): Add assertion.
3223 * completer.h (complete_nested_command_line): Declare.
3224
90a1ef87
PA
32252019-06-13 Pedro Alves <palves@redhat.com>
3226
3227 * stack.c (parse_backtrace_qualifiers): New.
3228 (backtrace_command): Use it.
3229 (backtrace_command_completer): Complete on qualifiers.
3230
d4c16835
PA
32312019-06-13 Pedro Alves <palves@redhat.com>
3232
3233 * frame.c: Include "cli/cli-option.h.
3234 (user_set_backtrace_options): New.
3235 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3236 Delete.
3237 (get_prev_frame): Adjust.
3238 (boolean_option_def, uinteger_option_def)
3239 (set_backtrace_option_defs): New.
3240 (_initialize_frame): Adjust and use
3241 gdb::option::add_setshow_cmds_for_options to install "set
3242 backtrace past-main" and "set backtrace past-entry".
3243 * frame.h: Include "cli/cli-option.h".
3244 (struct frame_print_options): Forward declare.
3245 (print_frame_arguments_all, print_frame_arguments_scalars)
3246 (print_frame_arguments_none): Declare.
3247 (print_entry_values): Delete declaration.
3248 (struct frame_print_options, user_frame_print_options): New.
3249 (struct set_backtrace_options): New.
3250 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3251 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3252 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3253 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3254 (list_args_or_locals): Add frame_print_options parameter.
3255 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3256 * python/py-framefilter.c (enumerate_args): Pass down
3257 USER_FRAME_PRINT_OPTIONS.
3258 * stack.c: Include "cli/cli-option.h".
3259 (print_frame_arguments_all, print_frame_arguments_scalars)
3260 (print_frame_arguments_none): Declare.
3261 (print_raw_frame_arguments, print_entry_values): Delete.
3262 (user_frame_print_options): New.
3263 (boolean_option_def, enum_option_def, frame_print_option_defs):
3264 New.
3265 (struct backtrace_cmd_options): New.
3266 (bt_flag_option_def): New.
3267 (backtrace_command_option_defs): New.
3268 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3269 (print_frame_arg, read_frame_arg, print_frame_args)
3270 (print_frame_info, print_frame): Add frame_print_options parameter
3271 and use it.
3272 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3273 (backtrace_command_1): Add frame_print_options and
3274 backtrace_cmd_options parameters and use them.
3275 (make_backtrace_options_def_group): New.
3276 (backtrace_command): Process command options with
3277 gdb::option::process_options.
3278 (backtrace_command_completer): New.
3279 (_initialize_stack): Extend "backtrace"'s help to mention
3280 supported options. Install completer for "backtrace".
3281 Install some settings commands with add_setshow_cmds_for_options.
3282
2daf894e
PA
32832019-06-13 Pedro Alves <palves@redhat.com>
3284
3285 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3286 and that "set/show print raw frame-arguments" are now deprecated.
3287
3288 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3289 command.
3290 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3291 * stack.c (_initialize_stack): Install "set/show print
3292 raw-frame-arguments", and deprecate "set/show print raw
3293 frame-arguments".
3294 * valprint.c (_initialize_valprint): Deprecate "set/show print
3295 raw".
3296
e6ed716c
PA
32972019-06-13 Pedro Alves <palves@redhat.com>
3298
3299 * compile/compile.c (struct compile_options): New.
3300 (compile_flag_option_def, compile_command_option_defs)
3301 (make_compile_options_def_group): New.
3302 (compile_file_command): Handle options with
3303 gdb::option::process_options.
3304 (compile_file_command_completer): New function.
3305 (compile_code_command): Handle options with
3306 gdb::option::process_options.
3307 (compile_code_command_completer): New function.
3308 (_initialize_compiler): Install completers for "compile code" and
3309 "compile file". Mention available options in "compile code" and
3310 "compile code"'s help.
3311 * completer.c (advance_to_completion_word): New, factored out from
3312 ...
3313 (advance_to_expression_complete_word_point): ... this.
3314 (advance_to_filename_complete_word_point): New.
3315 * completer.h (advance_to_filename_complete_word_point): New
3316 declaration.
3317
7d8062de
PA
33182019-06-13 Pedro Alves <palves@redhat.com>
3319
3320 * compile/compile.c: Include "cli/cli-option.h".
3321 (compile_print_value): Scope data pointer is now a
3322 value_print_options pointer; adjust.
3323 (compile_print_command): Process options. Scope data pointer is
3324 now a value_print_options pointer; adjust.
3325 (_initialize_compile): Update "compile print"'s help to include
3326 supported options. Install a completer for "compile print".
3327 * cp-valprint.c (show_vtblprint, show_objectprint)
3328 (show_static_field_print): Delete.
3329 (_initialize_cp_valprint): Don't install "set print
3330 static-members", "set print vtbl", "set print object" here.
3331 * printcmd.c: Include "cli/cli-option.h" and
3332 "common/gdb_optional.h".
3333 (print_command_parse_format): Rework to fill in a
3334 value_print_options instead of a format_data.
3335 (print_value): Change parameter type from format_data pointer to
3336 value_print_options reference. Adjust.
3337 (print_command_1): Process options. Adjust to pass down a
3338 value_print_options.
3339 (print_command_completer): New.
3340 (_initialize_printcmd): Install print_command_completer as
3341 handle_brkchars completer for the "print" command. Update
3342 "print"'s help to include supported options.
3343 * valprint.c: Include "cli/cli-option.h".
3344 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3345 here from cp-valprint.c.
3346 (boolean_option_def, uinteger_option_def)
3347 (value_print_option_defs, make_value_print_options_def_group):
3348 New. Use gdb::option::add_setshow_cmds_for_options to install
3349 "set print elements", "set print null-stop", "set print repeats",
3350 "set print pretty", "set print union", "set print array", "set
3351 print address", "set print symbol", "set print array-indexes".
3352 * valprint.h: Include <string> and "cli/cli-option.h".
3353 (make_value_print_options_def_group): Declare.
3354 (print_value): Change parameter type from format_data pointer to
3355 value_print_options reference.
3356 (print_command_completer): Declare.
3357
9d0faba9
PA
33582019-06-13 Pedro Alves <palves@redhat.com>
3359
3360 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3361 (COMMON_SFILES): Add maint-test-settings.c.
3362 * cli/cli-decode.c (boolean_enums): New global, factored out from
3363 ...
3364 (add_setshow_boolean_cmd): ... here.
3365 * cli/cli-decode.h (boolean_enums): Declare.
3366 * cli/cli-option.c: New file.
3367 * cli/cli-option.h: New file.
3368 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3369 factored out from ...
3370 (parse_cli_boolean_value(const char *)): ... this.
3371 (is_unlimited_literal): Change parameter type to pointer to
3372 pointer. Adjust and advance ARG pointer.
3373 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3374 (parse_cli_var_enum): New, factored out from ...
3375 (do_set_command): ... this. Adjust.
3376 * cli/cli-setshow.h (parse_cli_boolean_value)
3377 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3378 (parse_cli_var_enum): Declare.
3379 * cli/cli-utils.c: Include "cli/cli-option.h".
3380 (get_ulongest): New.
3381 * cli/cli-utils.h (get_ulongest): Declare.
3382 (check_for_argument): New overloads.
3383 * maint-test-options.c: New file.
3384
2c722807
PA
33852019-06-13 Pedro Alves <palves@redhat.com>
3386
3387 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3388 parse a range if "-" is at the end of the string.
3389
dee7b4c8
PA
33902019-06-13 Pedro Alves <palves@redhat.com>
3391
3392 * cli/cli-setshow.c (parse_auto_binary_operation)
3393 (parse_cli_boolean_value): Don't allow "o".
3394
dca0f6c0
PA
33952019-06-13 Pedro Alves <palves@redhat.com>
3396
3397 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3398 * NEWS: Mention maint test-settings KIND.
3399 * maint-test-settings.c: New file.
3400
597bf39d
PA
34012019-06-13 Pedro Alves <palves@redhat.com>
3402
3403 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3404 completer.
3405 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3406 "set" completers.
3407
48c410fb
PA
34082019-06-13 Pedro Alves <palves@redhat.com>
3409
3410 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3411 after item.
3412
93bcb043
PA
34132019-06-13 Pedro Alves <palves@redhat.com>
3414
3415 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3416
cbba3ecd
PA
34172019-06-13 Pedro Alves <palves@redhat.com>
3418
3419 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3420 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3421 call.
3422 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3423 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3424 calls.
3425 (check_for_argument): Skip spaces after argument.
3426
b9a3f842
PA
34272019-06-13 Pedro Alves <palves@redhat.com>
3428
3429 * thread.c (thread_apply_command): Adjust TID parsing.
3430 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3431 detected before end of string.
3432 (tid_is_in_list): Error out if LIST is invalid.
3433
3844e605
PA
34342019-06-13 Pedro Alves <palves@redhat.com>
3435
3436 * completer.c (complete_line_internal_1): Rewind completion word
3437 point.
3438 (completion_tracker::advance_custom_word_point_by): Change
3439 parameter type to int.
3440 * completer.h (completion_tracker::advance_custom_word_point_by):
3441 Likewise.
3442
00b56dbe
PA
34432019-06-13 Pedro Alves <palves@redhat.com>
3444
3445 * completer.c (advance_to_completion_word): Handle delimiters.
3446
d106773e
PA
34472019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3448
3449 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3450
08f10e02
TT
34512019-06-11 Tom Tromey <tom@tromey.com>
3452
3453 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3454 (xmalloc_failed): Move to alloc.c.
3455 * alloc.c: New file.
3456 * Makefile.in (COMMON_SFILES): Add alloc.c.
3457
1c7fe951
TT
34582019-06-11 Tom Tromey <tom@tromey.com>
3459
3460 * nat/linux-waitpid.c: Don't include server.h.
3461 (linux_debug): Remove.
3462 (my_waitpid): Update.
3463
89549d7f
TT
34642019-06-11 Tom Tromey <tromey@adacore.com>
3465
3466 * infcall.c (_initialize_infcall): Remove trailing newline from
3467 help.
3468 * user-regs.c (_initialize_user_regs): Remove trailing newline
3469 from help.
3470 * typeprint.c (_initialize_typeprint): Remove trailing newline
3471 from help.
3472 * reverse.c (_initialize_reverse): Remove trailing newlines from
3473 help.
3474 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3475 from help.
3476 * language.c (add_set_language_command): Remove trailing newline
3477 from help.
3478 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3479 help.
3480 * disasm.c (_initialize_disasm): Remove trailing newline from
3481 help.
3482 * top.c (init_main): Remove trailing newline from help.
3483 * interps.c (_initialize_interpreter): Remove trailing newline
3484 from help.
3485 * btrace.c (_initialize_btrace): Remove trailing newlines from
3486 help.
3487 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3488 from help.
3489 * python/python.c (_initialize_python): Remove trailing newline
3490 from help.
3491 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3492 help.
3493 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3494 from help. Reformat some text.
3495 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3496 from help.
3497 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3498 newline from help.
3499
86108c13
TT
35002019-06-11 Tom Tromey <tromey@adacore.com>
3501
3502 * darwin-nat.c (darwin_decode_exception_message)
3503 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3504
a7067863
AB
35052019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3506
3507 * valops.c (value_slice): Check for not allocated or not
3508 associated values.
3509
9ab08412
TV
35102019-06-10 Tom de Vries <tdevries@suse.de>
3511
3512 PR gdb/24618
3513 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3514 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3515 invalid.
3516
f19e22e9
TV
35172019-06-10 Tom de Vries <tdevries@suse.de>
3518
3519 PR gdb/24611
3520 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3521 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3522
e99f9db0
TV
35232019-06-10 Tom de Vries <tdevries@suse.de>
3524
3525 PR symtab/24545
3526 * symtab.c (struct demangled_name_entry): Add language field.
3527 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3528 static minimal symbol". Set and use language field.
3529
9bf7038b
TT
35302019-06-10 Tom Tromey <tromey@adacore.com>
3531
3532 * ada-lang.c (_initialize_ada_language): Update help text.
3533
422186a9
TT
35342019-06-10 Tom Tromey <tromey@adacore.com>
3535
3536 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3537 with a newline.
3538 * guile/guile.c (handle_boot_error): Don't end warning with a
3539 newline.
3540 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3541 warning with a newline.
3542 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3543 newline.
3544 (s12z_frame_cache): Likewise.
3545 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3546 a newline.
3547 * solib-svr4.c (disable_probes_interface): Don't end warning with
3548 a newline.
3549 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3550 newline.
3551 * python/python.c (do_finish_initialization): Don't end warning
3552 with a newline.
3553
25ce02ee
TT
35542019-06-10 Tom Tromey <tom@tromey.com>
3555
3556 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3557 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3558 gdbpy_enter.
3559
caa429d8
TT
35602019-06-10 Tom Tromey <tromey@adacore.com>
3561
3562 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3563 data.
3564 (elf_new_init): Don't call stabsread_new_init.
3565 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3566 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3567 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3568
81873cc8
TV
35692019-06-10 Tom de Vries <tdevries@suse.de>
3570
3571 PR symtab/16264
3572 PR symtab/24517
3573 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3574
4fa0265e
РИ
35752019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3576
3577 * source.c (find_and_open_source): Also rewrite relative file
3578 names.
3579
1a3da2cd
AB
35802019-04-26 Amos Bird <amosbird@gmail.com>
3581
3582 * annotate.c (annotate_thread_exited): Add "thread-exited"
3583 annotation.
3584
3847a7bf
TT
35852019-06-06 Tom Tromey <tromey@adacore.com>
3586
3587 * maint.h (class scoped_command_stats): Use
3588 DISABLE_COPY_AND_ASSIGN.
3589 <print_time>: New method.
3590 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
3591 print_time.
3592 (scoped_command_stats::print_time): New method.
3593
312617a3
AB
35942019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3595
3596 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
3597 instructions of lengths 6 or 8 bytes.
3598
b02f78f9
PA
35992019-06-04 Pedro Alves <palves@redhat.com>
3600
3601 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
3602
3603 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
3604 * breakpoint.c (condition_completer): Likewise.
3605 * cli/cli-dump.c (scan_expression): Likewise.
3606 * common/filestuff.c (mkdir_recursive): Likewise.
3607 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
3608 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
3609 (gdb_abspath): Likewise.
3610 * compile/compile-cplus-types.c
3611 (compile_cplus_instance::decl_name): Likewise.
3612 * completer.c (complete_explicit_location):
3613 (signal_completer, reg_or_group_completer_1): Likewise.
3614 * cp-support.c (cp_remove_params_if_any): Likewise.
3615 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
3616 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
3617 * infcmd.c (strip_bg_char): Likewise.
3618 * linespec.c (copy_token_string): Likewise.
3619 * mi/mi-main.c (output_cores): Likewise.
3620 * psymtab.c (psymtab_search_name):
3621 * symfile.c (test_set_ext_lang_command): Likewise.
3622 * target.c (target_fileio_read_stralloc): Likewise.
3623 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
3624 * value.c (complete_internalvar): Likewise.
3625
e1f2e1a2
CB
36262019-06-04 Christian Biesinger <cbiesinger@google.com>
3627
3628 Add objfile property to gdb.Type.
d3238f7d
PA
3629 * NEWS: Mention Python API addition.
3630 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 3631
e664d728
PW
36322019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3633
3634 * NEWS: Mention the new set|show style [title|highlight].
3635 Mention changes to "show style", "help" and "apropos".
3636
66d8c862
PW
36372019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3638
3639 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
3640 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
3641 instead of print_help_for_command.
3642 (print_doc_of_command): New function.
3643 (help_list): Add 'apropos -v word' suggestion.
3644 (print_help_for_command): Style the command name using title style.
3645 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
3646 (_initialize_cli_cmds): Describe -v in apropos_command help.
3647
9303eb2f
PW
36482019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3649
3650 * cli/cli-style.h (cli_style_option): Add name in constructor,
3651 add m_name class member, add constructor with intensity,
3652 add name class function.
3653 (cli_style_option::add_setshow_commands): Remove name argument.
3654 (highlight_style, title_style): New styles.
3655 * cli/cli-style.c (do_show): New function that shows a style
3656 characteristic styling the style name with itself.
3657 (set_style_name): New function.
3658 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
3659 Update all callers according to the changes in cli/cli-style.h.
3660 * utils.h (fputs_highlighted): New function.
3661 * utils.c (fputs_highlighted): Likewise.
3662
e2c52041
PW
36632019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3664
3665 * NEWS: Mention new pipe command and new convenience variables.
3666
947d3946
PW
36672019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3668
3669 * cli/cli-cmds.c (pipe_command): New function.
3670 (_initialize_cli_cmds): Call add_com for pipe_command.
3671 Define | as an alias for pipe.
3672 (exit_status_set_internal_vars): New function.
3673 (shell_escape): Call exit_status_set_internal_vars.
3674 cli/cli-decode.c (find_command_name_length): Recognize | as
3675 a single character command.
3676
b8fd0918
PW
36772019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3678
3679 * gdbcmd.h (execute_command_to_ui_file): New declaration.
3680 top.c (execute_command_to_ui_file): New function, mostly a copy
3681 of execute_command_to_string.
3682 (execute_command_to_string): Implement by calling
3683 execute_command_to_ui_file.
3684
68bb5386
PW
36852019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3686
3687 * top.h (saved_command_line): Remove declaration.
3688 * top.c (previous_saved_command_line, previous_repeat_arguments):
3689 New variables.
3690 (saved_command_line): Make static, define together with other
3691 'repeat variables'.
3692 (dont_repeat): Clear repeat_arguments.
3693 (repeat_previous, get_saved_command_line, save_command_line):
3694 New functions.
3695 (gdb_init): Initialize saved_command_line
3696 and previous_saved_command_line.
3697 * main.c (captured_main_1): Remove saved_command_line initialization.
3698 * event-top.c (handle_line_of_input): Update to use
3699 the new 'repeat' related functions instead of direct access to
3700 saved_command_line.
3701 * command.h (repeat_previous, get_saved_command_line,
3702 save_command_line): New declarations.
3703 (dont_repeat): Add comment.
3704
bfcdb852
TT
37052019-05-30 Tom Tromey <tromey@adacore.com>
3706
3707 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
3708 Fix comment.
3709 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
3710
0ef209f2
JV
37112019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
3712
3713 PR cli/24587
3714 * completer.c (complete): Initialize variable word.
3715
955b06fa
SDJ
37162019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
3717
3718 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
3719 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
3720 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
3721 'body' is NULL to the outter 'if', protecting the '!is_define'
3722 situation as well.
3723
fa9c3fa0
TT
37242019-05-29 Tom Tromey <tromey@adacore.com>
3725
3726 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
3727 (dwarf_unknown): New function.
3728 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
3729 (dwarf_type_encoding_name): Use dwarf_unknown.
3730
4330d61d
TT
37312019-05-29 Tom Tromey <tromey@adacore.com>
3732
3733 PR c++/20020:
3734 * cp-valprint.c (cp_print_value_fields): Call
3735 cp_print_static_field inside "try".
3736
33a6bc35
TT
37372019-05-29 Tom Tromey <tromey@adacore.com>
3738
3739 * inflow.c (struct terminal_info): Add default operator=.
3740 * configure: Rebuild.
3741 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
3742 -Wdeprecated-copy-dtor, -Wredundant-move.
3743
000439d5
TT
37442019-05-29 Tom Tromey <tromey@adacore.com>
3745
3746 * NEWS: Add entry.
3747 * infcmd.c (print_return_value_1): Handle finish_print
3748 option.
3749 (show_print_finish): New function.
3750 (_initialize_infcmd): Add "set/show print finish" commands.
3751 * valprint.c (user_print_options): Initialize new member.
3752 * valprint.h (struct value_print_options) <finish_print>: New
3753 member.
3754
c0e70c62
TT
37552019-05-28 Tom Tromey <tromey@adacore.com>
3756
3757 * ada-lang.c (ada_remove_Xbn_suffix)
3758 (find_old_style_renaming_symbol)
3759 (parse_old_style_renaming): Remove.
3760 (ada_find_renaming_symbol): Don't call
3761 find_old_style_renaming_symbol.
3762 (ada_is_renaming_symbol): Rename from
3763 ada_find_renaming_symbol. Remove "block" parameter. Return
3764 bool. Now static.
3765 (ada_read_var_value): Update and simplify.
3766 * ada-exp.y (write_var_or_type): Remove old code.
3767
766f8836
AH
37682019-05-28 Alan Hayward <alan.hayward@arm.com>
3769
3770 * event-top.c: Remove include comment.
3771 * inflow.c (class scoped_ignore_sigttou): Move from here...
3772 * inflow.h (class scoped_ignore_sigttou): ...to here.
3773 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
3774 * top.c: Remove include comment.
3775
eb41253a
TT
37762019-05-27 Tom Tromey <tom@tromey.com>
3777
3778 * NEWS: Fix typo.
3779
4ca51187
TT
37802019-05-22 Tom Tromey <tromey@adacore.com>
3781
3782 * target.c (target_follow_exec): Constify parameter.
3783 * target-delegates.c: Rebuild.
3784 * remote.c (remote_target::follow_exec): Constify parameter.
3785 * infrun.c (follow_exec): Constify parameter.
3786 * target.h (struct target_ops) <follow_exec>: Constify parameter.
3787 (target_follow_exec): Likewise.
3788
8fca4da0
AH
37892019-05-22 Alan Hayward <alan.hayward@arm.com>
3790
3791 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
3792 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
3793
b7060614
AH
37942019-05-22 Alan Hayward <alan.hayward@arm.com>
3795
3796 * NEWS: Add debugredirect and testsuite sections.
3797
0a5954bd
SC
37982019-05-22 Simon Cook <simon.cook@embecosm.com>
3799
3800 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
3801 target descriptions using exclusively floating point register name
3802 aliases.
3803
dc42e902
AB
38042019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
3805
3806 PR gdb/18644:
3807 * f-lang.c (build_fortran_types): Handle the case where
3808 gdbarch_floatformat_for_type returns a nullptr.
3809
fb7806c7
TV
38102019-05-21 Tom de Vries <tdevries@suse.de>
3811
3812 PR cli/24587
3813 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
3814
34d11c68
AB
38152019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
3816
3817 PR gdb/18644:
3818 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
3819 16-byte floats.
3820 * i386-tdep.c (i386_floatformat_for_type): Use
3821 floatformats_ia64_quad for the 16-byte floating point component
3822 within a fortran 32-byte complex number.
3823
122cf0f2
AB
38242019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
3827 delete default constructor.
3828 (find_partial_die): Update to return const struct.
3829 (partial_die_parent_scope): Move variable declaration into scope
3830 of its use and change its type to auto.
3831 (guess_partial_die_structure_name): Likewise.
3832 (partial_die_info::fixup): Likewise.
3833
33d0e35a
TT
38342019-05-17 Tom Tromey <tromey@adacore.com>
3835
3836 * source.c (find_and_open_source): Remove cast.
3837
a45575b0
TT
38382019-05-17 Tom Tromey <tromey@adacore.com>
3839
3840 * annotate.c (annotate_source): Make "filename" const.
3841 * annotate.h (annotate_source): Use const.
3842
81f47ac2
AH
38432019-05-17 Alan Hayward <alan.hayward@arm.com>
3844
3845 * disasm.c (set_disassembler_options): Send errors to stderr.
3846
ca1285d1
AH
38472019-05-17 Alan Hayward <alan.hayward@arm.com>
3848
3849 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
3850 (cli_interp_base::set_logging): Check debug_redirect.
3851 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
3852 * cli/cli-logging.c (debug_redirect): Add static variable.
3853 (pop_output_files): Add default param.
3854 (handle_redirections): Print debug setting.
3855 (show_logging_command): Likewise.
3856 (_initialize_cli_logging): Add debugredirect command.
3857 * interps.c (current_interp_set_logging): Add debug_redirect
3858 parameter.
3859 * interps.h (set_logging): Add debug_redirect parameter.
3860 (current_interp_set_logging): Likewise.
3861 * mi/mi-common.h: Likewise.
3862 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
3863
38642019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
3865 Tom Tromey <tromey@adacore.com>
3866
3867 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
3868 directly.
3869 * cli/cli-interp.h (make_logging_output): Remove declaration.
3870 * cli/cli-logging.c (make_logging_output): Remove function.
3871 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
3872 directly.
3873 * ui-file.c (tee_file::tee_file): Remove bools.
3874 (tee_file::~tee_file): Remove deletes.
3875 * ui-file.h (tee_file): Remove bools.
3876
26648588
JV
38772019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
3878
3879 * mi/mi-cmds.h (mi_cmd_complete): New function.
3880 * mi/mi-main.c (mi_cmd_complete): Likewise.
3881 * mi/mi-cmds.c: Define new MI command -complete.
3882 * NEWS: Mention new -complete command.
3883
6e035501
JV
38842019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
3885
3886 * completer.h (complete): New function.
3887 * completer.c (complete): Likewise.
3888 * cli/cli-cmds.c: (complete_command): Update to use new complete()
3889 function defined in completer.h.
3890
7d0e2ece
JV
38912019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
3892
e79be6e5 3893 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 3894
fb816e8b
TV
38952019-05-17 Tom de Vries <tdevries@suse.de>
3896
3897 PR gdb/24094
3898 * dwarf2read.c (struct cu_partial_die_info): New struct.
3899 (find_partial_die): Return cu_partial_die_info.
3900 (partial_die_parent_scope, guess_partial_die_structure_name)
3901 (partial_die_info::fixup): Handle new return type of find_partial_die.
3902
677052f2
SDJ
39032019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3904
3905 * stap-probe.c (stap_parse_register_operand): Make "regname" an
3906 "std::string", simplifying the algorithm.
3907
f3da9116
SDJ
39082019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3909
3910 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
3911 (stap_static_probe_ops::get_probes): Likewise.
3912
f1bb75ab
SDJ
39132019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3914
3915 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
3916 '-')" and "else if".
3917 (stap_parse_single_operand): Join checks for
3918 "gdbarch_stap_parse_special_token_p" and
3919 "gdbarch_stap_parse_special_token" in the same "if" statement.
3920 Invert check when verifying for operation on register
3921 displacement.
3922
3ca58cde
SDJ
39232019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3924
3925 * stap-probe.c (stap_get_opcode): Update comment.
3926 (stap_get_expected_argument_type): Likewise.
3927 (handle_stap_probe): Likewise.
3928
af2d9bee
SDJ
39292019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3930
3931 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
3932 return type to 'bool'. Adjust comment. Use 'bool' when
3933 appropriate.
3934 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3935 * stap-probe.c (stap_parse_argument_1): Likewise.
3936 (stap_is_operator): Likewise.
3937 (stap_is_generic_prefix): Likewise.
3938 (stap_is_register_prefix): Likewise.
3939 (stap_is_register_indirection_prefix): Likewise.
3940 (stap_is_integer_prefix): Likewise.
3941 (stap_generic_check_suffix): Likewise.
3942 (stap_check_integer_suffix): Likewise.
3943 (stap_check_register_suffix): Likewise.
3944 (stap_check_register_indirection_suffix): Likewise.
3945 (stap_parse_register_operand): Likewise.
3946 (stap_parse_single_operand): Likewise.
3947 (stap_parse_argument_1): Likewise.
3948 (stap_probe::get_argument_count): Likewise.
3949 (stap_is_operator): Likewise.
3950
61c9c421
TT
39512019-05-16 Tom Tromey <tromey@adacore.com>
3952
3953 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
3954 keyword to foreach.
3955
9ddc1af1
SM
39562019-05-15 Simon Marchi <simon.marchi@efficios.com>
3957
3958 * linux-thread-db.c (try_thread_db_load_1): Change return type
3959 to bool.
3960 (try_thread_db_load): Likewise.
3961 (try_thread_db_load_from_pdir_1): Likewise.
3962 (try_thread_db_load_from_pdir): Likewise.
3963 (try_thread_db_load_from_sdir): Likewise.
3964 (try_thread_db_load_from_dir): Likewise.
3965 (thread_db_load_search): Likewise.
3966 (has_libpthread): Likewise.
3967 (thread_db_load): Likewise.
3968
7bede828
SDJ
39692019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
3970
3971 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
3972 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
3973 NULL, and complain/return if that's the case.
3974
c5358db4
JD
39752019-05-15 John Darrington <john@darrington.wattle.id.au>
3976
3977 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
3978 (advance, posn, abstract_read_memory): New functions.
3979 [struct mem_read_abstraction]: New struct.
3980 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
3981
c408a94f
TT
39822019-05-14 Tom Tromey <tromey@adacore.com>
3983
3984 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
3985 value is not lval_memory.
3986
e7bd7fba
TT
39872019-05-14 Tom Tromey <tromey@adacore.com>
3988
3989 * solib.c (info_sharedlibrary_command): Style the file name.
3990
a6d0f249
AH
39912019-05-14 Alan Hayward <alan.hayward@arm.com>
3992
3993 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
3994 (aarch64_vnv_type): Likewise.
3995 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
3996 * common/tdesc.c: Likewise.
3997 * common/tdesc.h (enum tdesc_type_kind): Likewise.
3998 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
3999 * features/aarch64-fpu.xml: Add ieee half view.
4000 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4001 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4002 * gdbtypes.h (struct builtin_type): Likewise.
4003 (struct objfile_type): Likewise.
4004
66b8bb74
SM
40052019-05-12 Paul Naert <paul.naert@polymtl.ca>
4006
4007 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4008 typo.
4009 * location.h (string_to_event_location): Likewise.
4010
21c219fd
JB
40112019-05-11 Joel Brobecker <brobecker@adacore.com>
4012
4013 GDB 8.3 released.
4014
13674803
SM
40152019-05-10 Simon Marchi <simon.marchi@efficios.com>
4016
4017 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4018 New variable declaration.
4019 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4020 New variable.
4021 (print_one_breakpoint): Use ui_out::test_flags and new global
4022 variable to compute use_fixed_output.
4023 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4024 Remove.
4025 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4026 (mi_multi_location_breakpoint_output_fixed): Remove.
4027 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4028 new variable.
4029 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4030 fix_multi_location_breakpoint_output flag if version >= 3.
4031 * ui-out.h (enum ui_out_flag)
4032 <fix_multi_location_breakpoint_output>: New enumerator.
4033
a9eac7f9
SM
40342019-05-10 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4037
71bed2db
TT
40382019-05-10 Tom Tromey <tromey@adacore.com>
4039
4040 * ada-lang.c (catch_ada_completer): New function.
4041 (_initialize_ada_language): Use it.
4042
24c54127
TT
40432019-05-10 Tom Tromey <tromey@adacore.com>
4044
4045 * thread.c (print_thread_info): Make "requested_threads" const.
4046 * gdbthread.h (print_thread_info): Make "requested_threads"
4047 const.
4048 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4049 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4050
7a102139
TT
40512019-05-08 Tom Tromey <tom@tromey.com>
4052
4053 * gdbtypes.c (objfile_type_data): Change type.
4054 (objfile_type, _initialize_gdbtypes): Update.
4055
924d79e2
TT
40562019-05-08 Tom Tromey <tom@tromey.com>
4057
4058 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4059 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4060 (_initialize_dwarf2_frame): Update.
4061
4c58e337
TT
40622019-05-08 Tom Tromey <tom@tromey.com>
4063
4064 * objc-lang.c (objc_objfile_data): Change type.
4065 (find_methods): Update.
4066 (_initialize_objc_lang): Remove.
4067
d772d2ab
TT
40682019-05-08 Tom Tromey <tom@tromey.com>
4069
4070 * stabsread.c (rs6000_builtin_type_data): Change type.
4071 (rs6000_builtin_type, _initialize_stabsread): Update.
4072
d11d83f4
TT
40732019-05-08 Tom Tromey <tom@tromey.com>
4074
4075 * mips-tdep.c (mips_pdr_data): Remove.
4076 (_initialize_mips_tdep): Update.
4077
9a73f0ad
TT
40782019-05-08 Tom Tromey <tom@tromey.com>
4079
4080 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4081 (hppa_init_objfile_priv_data, read_unwind_info)
4082 (find_unwind_entry, _initialize_hppa_tdep): Update.
4083
8127a2fa
TT
40842019-05-08 Tom Tromey <tom@tromey.com>
4085
4086 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4087 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4088 on obstack.
4089 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4090
91d3055d
TT
40912019-05-08 Tom Tromey <tom@tromey.com>
4092
4093 * mdebugread.c (basic_type_data): Change type.
4094 (basic_type, _initialize_mdebugread): Update.
4095
31930bd3
TT
40962019-05-08 Tom Tromey <tom@tromey.com>
4097
4098 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4099
bdb3ed9e
TT
41002019-05-08 Tom Tromey <tom@tromey.com>
4101
4102 * nto-tdep.c (nto_inferior_data_reg): Change type.
4103 (nto_inferior_data): Update.
4104 (nto_inferior_data_cleanup, nto_new_inferior_data)
4105 (_initialize_nto_tdep): Remove.
4106 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4107
f37b313d
TT
41082019-05-08 Tom Tromey <tom@tromey.com>
4109
4110 * ada-lang.c (struct ada_inferior_data): Add initializers.
4111 (ada_inferior_data): Change type.
4112 (ada_inferior_data_cleanup): Remove.
4113 (get_ada_inferior_data, ada_inferior_exit)
4114 (struct ada_pspace_data): Add initializers, destructor.
4115 (ada_pspace_data_handle): Change type.
4116 (get_ada_pspace_data): Update.
4117 (ada_pspace_data_cleanup): Remove.
4118
24699405
TT
41192019-05-08 Tom Tromey <tom@tromey.com>
4120
4121 * coffread.c (struct coff_symfile_info): Add initializers.
4122 (coff_objfile_data_key): Move lower. Change type.
4123 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4124 Update.
4125 (coff_free_info): Remove.
4126
d4e05d2f
TT
41272019-05-08 Tom Tromey <tom@tromey.com>
4128
4129 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4130 (fbsd_pspace_data_handle): Move lower. Change type.
4131 (get_fbsd_pspace_data): Update.
4132 (fbsd_pspace_data_cleanup): Remove.
4133 (_initialize_fbsd_tdep): Update.
4134
14ef6690
TT
41352019-05-08 Tom Tromey <tom@tromey.com>
4136
4137 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4138 (get_ada_tasks_pspace_data): Update.
4139 (ada_tasks_pspace_data_cleanup): Remove.
4140 (_initialize_tasks): Update.
4141 (ada_tasks_inferior_data_handle): Change type.
4142 (get_ada_tasks_inferior_data): Update.
4143 (ada_tasks_inferior_data_cleanup): Remove.
4144 (struct ada_tasks_pspace_data): Add initializers.
4145
814cf43a
TT
41462019-05-08 Tom Tromey <tom@tromey.com>
4147
4148 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4149 * symfile-debug.c (debug_sym_get_probes): Change type.
4150 * stap-probe.c (handle_stap_probe):
4151 (stap_static_probe_ops::get_probes): Change type.
4152 * probe.h (class static_probe_ops) <get_probes>: Change type.
4153 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4154 (parse_probes_in_pspace): Update.
4155 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4156 Update.
4157 (any_static_probe_ops::get_probes): Change type.
4158 * elfread.c (elfread_data): New typedef.
4159 (probe_key): Change type.
4160 (elf_get_probes): Likewise. Update.
4161 (probe_key_free): Remove.
4162 (_initialize_elfread): Update.
4163 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4164 Change type.
4165 (dtrace_process_dof_probe, dtrace_process_dof)
4166 (dtrace_static_probe_ops::get_probe): Change type.
4167
02dc647e
TT
41682019-05-08 Tom Tromey <tom@tromey.com>
4169
4170 * xcoffread.c (struct xcoff_symfile_info): Rename from
4171 coff_symfile_info. Add initializers.
4172 (xcoff_objfile_data_key): Move lower. Change type.
4173 (XCOFF_DATA): Rewrite.
4174 (xcoff_free_info): Remove.
4175 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4176 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4177 (xcoff_initial_scan): Update.
4178
09232438
TT
41792019-05-08 Tom Tromey <tom@tromey.com>
4180
4181 * solib-svr4.c (struct svr4_info): Add initializers and
4182 destructor.
4183 <probes_table>: Now an htab_up.
4184 (solib_svr4_pspace_data): Change type.
4185 (free_probes_table): Simplify.
4186 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4187 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4188 (probes_table_remove_objfile_probes, register_solib_event_probe)
4189 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4190 (_initialize_svr4_solib): Update.
4191
7b4a314f
TT
41922019-05-08 Tom Tromey <tom@tromey.com>
4193
4194 * remote.c (remote_pspace_data): Change type.
4195 (remote_pspace_data_cleanup): Remove.
4196 (get_remote_exec_file, set_pspace_remote_exec_file)
4197 (_initialize_remote): Update.
4198
51d3063a
TT
41992019-05-08 Tom Tromey <tom@tromey.com>
4200
4201 * breakpoint.c (breakpoint_objfile_key): Change type.
4202 (get_breakpoint_objfile_data): Update.
4203 (free_breakpoint_objfile_data): Remove.
4204 (_initialize_breakpoint): Update.
4205
89fb8848
TT
42062019-05-08 Tom Tromey <tom@tromey.com>
4207
4208 * linux-tdep.c (struct linux_info): Add initializers.
4209 (linux_inferior_data): Move. Change type.
4210 (invalidate_linux_cache_inf): Update.
4211 (linux_inferior_data_cleanup): Remove.
4212 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4213
e9b89e2d
TT
42142019-05-08 Tom Tromey <tom@tromey.com>
4215
4216 * auxv.c (auxv_inferior_data): Move. Change type.
4217 (auxv_inferior_data_cleanup): Remove.
4218 (invalidate_auxv_cache_inf): Rewrite.
4219 (get_auxv_inferior_data, _initialize_auxv): Update.
4220
8c42777c
TT
42212019-05-08 Tom Tromey <tom@tromey.com>
4222
4223 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4224 (symfile_debug_objfile_data_key): Change type.
4225 (symfile_debug_installed, debug_qf_has_symbols)
4226 (debug_qf_find_last_source_symtab)
4227 (debug_qf_forget_cached_source_info)
4228 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4229 (debug_qf_print_stats, debug_qf_dump)
4230 (debug_qf_expand_symtabs_for_function)
4231 (debug_qf_expand_all_symtabs)
4232 (debug_qf_expand_symtabs_with_fullname)
4233 (debug_qf_map_matching_symbols)
4234 (debug_qf_expand_symtabs_matching)
4235 (debug_qf_find_pc_sect_compunit_symtab)
4236 (debug_qf_map_symbol_filenames)
4237 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4238 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4239 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4240 (debug_sym_read_linetable, debug_sym_relocate): Update.
4241 (symfile_debug_free_objfile): Remove.
4242 (install_symfile_debug_logging, _initialize_symfile_debug):
4243 Update.
4244
5bfd760d
TT
42452019-05-08 Tom Tromey <tom@tromey.com>
4246
4247 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4248 allocate_on_obstack.
4249 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4250 (get_dwarf2_per_objfile): Update.
4251 (set_dwarf2_per_objfile): Remove.
4252 (dwarf2_has_info, dwarf2_get_section_info): Update.
4253 (dwarf2_free_objfile): Remove.
4254 (_initialize_dwarf2_read): Update.
4255
e85e19b4
TT
42562019-05-08 Tom Tromey <tom@tromey.com>
4257
4258 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4259 initializers.
4260 <unsupported_script_warning_printed,
4261 script_not_found_warning_printed>: Now bool.
4262 (auto_load_pspace_data): Change type.
4263 (~auto_load_pspace_info): Rename from
4264 auto_load_pspace_data_cleanup.
4265 (get_auto_load_pspace_data, init_loaded_scripts_info)
4266 (clear_section_scripts, maybe_print_unsupported_script_warning)
4267 (maybe_print_script_not_found_warning, _initialize_auto_load):
4268 Update.
4269
f6aa7436
TT
42702019-05-08 Tom Tromey <tom@tromey.com>
4271
4272 * objfiles.c (objfile_pspace_info): Add destructor and
4273 initializers.
4274 (objfiles_pspace_data): Change type.
4275 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4276 (get_objfile_pspace_data): Update.
4277 (objfiles_bfd_data): Change type.
4278 (get_objfile_bfd_data): Update.
4279 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4280
6ae614f6
TT
42812019-05-08 Tom Tromey <tom@tromey.com>
4282
4283 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4284 Change type.
4285 (get_catch_syscall_inferior_data): Update.
4286 (catch_syscall_inferior_data_cleanup): Remove.
4287 (_initialize_break_catch_syscall): Update.
4288
6509b8eb
TT
42892019-05-08 Tom Tromey <tom@tromey.com>
4290
4291 * inflow.c (struct terminal_info): Add destructor and
4292 initializers.
4293 (inflow_inferior_data): Change type.
4294 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4295 (get_inflow_inferior_data, inflow_inferior_exit)
4296 (swap_terminal_info, _initialize_inflow): Update.
4297
35632941
TT
42982019-05-08 Tom Tromey <tom@tromey.com>
4299
4300 * target-dcache.c (target_dcache_cleanup): Remove.
4301 (target_dcache_aspace_key): Change type.
4302 (target_dcache_init_p, target_dcache_invalidate)
4303 (target_dcache_get, target_dcache_get_or_init)
4304 (_initialize_target_dcache): Update.
4305 * dcache.h (struct dcache_deleter): New.
4306
3017b94d
TT
43072019-05-08 Tom Tromey <tom@tromey.com>
4308
4309 * symtab.c (struct symbol_cache): Add destructor and
4310 initializers.
4311 (symbol_cache_key): Move. Change type.
4312 (make_symbol_cache, free_symbol_cache): Remove.
4313 (get_symbol_cache): Update.
4314 (symbol_cache_cleanup): Remove.
4315 (ALL_PSPACES, symbol_cache_flush)
4316 (maintenance_print_symbol_cache)
4317 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4318 Update.
4319
a32ad8c5
TT
43202019-05-08 Tom Tromey <tom@tromey.com>
4321
4322 * symtab.c (struct main_info): Add destructor and initializers.
4323 (main_progspace_key): Move. Change type.
4324 (get_main_info): Update.
4325 (main_info_cleanup): Remove.
4326 (_initialize_symtab): Update.
4327
5f6e90a0
TT
43282019-05-08 Tom Tromey <tom@tromey.com>
4329
4330 * registry.h (DECLARE_REGISTRY): Define the _key class.
4331
1bd0c6e4
AB
43322019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4333
4334 * NEWS: Merge two 'New commands' sections.
4335
2228ef77
XR
43362019-05-08 Joel Brobecker <brobecker@adacore.com>
4337
4338 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4339 parameter and use Ada language definition instead.
4340 (ada_val_print_ptr): Remove unused language parameter.
4341 (ada_val_print_num): Remove language parameter and use Ada language
4342 definition instead.
4343 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4344 parameter.
4345 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4346 parameter and use Ada language definition instead.
4347 (ada_val_print_1): Update all ada_val_print_xxx calls.
4348 Remove language parameter.
4349 (ada_val_print): Update ada_val_print_1 call.
4350
60fcc1c3
TT
43512019-05-08 Tom Tromey <tromey@adacore.com>
4352
4353 * remote.c (remote_hw_watchpoint_limit)
4354 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4355 Now static.
4356
ed2b7c17
TT
43572019-05-08 Tom Tromey <tromey@adacore.com>
4358
4359 * maint.c (_initialize_maint_cmds): Move initialization code to
4360 remote.c.
4361 (watchdog, show_watchdog): Move to remote.c.
4362 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4363 "watchdog" static.
4364 (_initialize_remote): Move initialization code from maint.c.
4365 * defs.h (watchdog): Don't declare.
4366
b0be6c91
TT
43672019-05-08 Tom Tromey <tromey@adacore.com>
4368
4369 * tui/tui-interp.c: Include main.h.
4370 * interps.c: Include main.h.
4371 * main.h (interpreter_p): Declare.
4372 * defs.h (interpreter_p): Don't declare.
4373
587ee17b
TT
43742019-05-08 Tom Tromey <tromey@adacore.com>
4375
4376 * dwarf2loc.c: Include dwarf2read.h.
4377 * defs.h (read_unsigned_leb128): Don't declare.
4378 * dwarf2read.h (read_unsigned_leb128): Declare.
4379
ca1df239
TT
43802019-05-08 Tom Tromey <tromey@adacore.com>
4381
4382 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4383 method.
4384
99f20f08
TT
43852019-05-08 Tom Tromey <tromey@adacore.com>
4386
4387 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4388 when no wrap column is set.
4389
80e55b13
TT
43902019-05-08 Tom Tromey <tromey@adacore.com>
4391
4392 * c-lang.c (c_get_string): Handle non-C-style arrays.
4393
9d3421af
TT
43942019-05-08 Tom Tromey <tromey@adacore.com>
4395
4396 * typeprint.c (print_offset_data::update): Print the bit offset,
4397 not the number of bits remaining.
4398
844333e2
TT
43992019-05-08 Tom Tromey <tromey@adacore.com>
4400
4401 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4402 padding at end of comment.
4403
988915ee
TT
44042019-05-08 Tom Tromey <tromey@adacore.com>
4405
4406 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4407 Compare main types.
4408
26bfd823
TT
44092019-05-06 Tom Tromey <tom@tromey.com>
4410
4411 * common/scoped_mmap.c: Include common-defs.h.
4412 * common/scoped_mmap.h: Don't include config.h.
4413
89055eaa
TT
44142019-05-04 Tom Tromey <tom@tromey.com>
4415
4416 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4417 (struct aarch64_call_info): Add initializers.
4418 <si>: Now a std::vector.
4419 (pass_on_stack, aarch64_push_dummy_call): Update.
4420
5da01df5
TT
44212019-05-04 Simon Marchi <simon.marchi@efficios.com>
4422 Tom Tromey <tom@tromey.com>
4423
4424 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4425 (ppc_threads): Now a std::vector. Now static.
4426 (hwdebug_find_thread_points_by_tid)
4427 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4428 Update.
4429
fbdf05a1
TT
44302019-05-04 Tom Tromey <tom@tromey.com>
4431
4432 * arc-tdep.c (arc_tdesc_init): Return bool.
4433
06d16ec9
TT
44342019-05-04 Tom Tromey <tom@tromey.com>
4435
4436 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4437 Use gdb_assert_not_reached.
4438
9c056022
TT
44392019-05-04 Tom Tromey <tom@tromey.com>
4440
4441 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4442 "false".
4443
fa9c2a59
TT
44442019-05-04 Tom Tromey <tom@tromey.com>
4445
4446 * arc-tdep.c (arc_tdesc_init): Use bool.
4447
e2eb806a
TT
44482019-05-04 Tom Tromey <tom@tromey.com>
4449
4450 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4451
6fe87677
TT
44522019-05-04 Tom Tromey <tom@tromey.com>
4453
4454 * cli/cli-cmds.c (valid_command_p): Return bool.
4455
7f008c9e
TT
44562019-05-04 Tom Tromey <tom@tromey.com>
4457
4458 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4459 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4460
b6484282
RT
44612019-05-04 Raul Tambre <raul@tambre.ee>
4462
4463 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4464 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4465 operator for comparison.
4466
af97b416
TT
44672019-05-04 Tom Tromey <tom@tromey.com>
4468
4469 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4470 (lookup_partial_symbol, print_partial_symbols)
4471 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4472 (psymbol_compare): Update.
4473 (add_psymbol_to_bcache): Clear the entire psymbol.
4474 (maintenance_check_psymtabs): Update.
4475 * psympriv.h (struct partial_symbol): Don't derive from
4476 general_symbol_info.
4477 <obj_section, unrelocated_address, address,
4478 set_unrelocated_address>: Update.
4479 <ginfo>: New member.
4480 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4481 (debug_names::write_psymbols): Update.
4482
9d6d4be8
TV
44832019-05-04 Tom de Vries <tdevries@suse.de>
4484
4485 * contrib/cc-with-tweaks.sh: Support -n arg.
4486
66452beb
PW
44872019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4488
4489 * corelow.c (core_target::detach): Ensure frame cache and
4490 register caches are cleared.
4491 inferior.c (exit_inferior_1): Likewise.
4492
bde09ab7
TT
44932019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4494 Tom Tromey <tom@tromey.com>
4495
4496 * dictionary.c (collate_pending_symbols_by_language): Remove
4497 "struct" from foreach.
4498 * symtab.c (lookup_global_symbol_from_objfile)
4499 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4500 foreach.
4501 * ser-tcp.c (net_open): Remove "struct" from foreach.
4502 * objfiles.c (objfile_relocate, objfile_rebase)
4503 (objfile_has_symbols): Remove "struct" from foreach.
4504 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4505 from foreach.
4506 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4507 foreach.
4508 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4509 "struct" from foreach.
4510 * ada-lang.c (create_excep_cond_exprs)
4511 (ada_exception_catchpoint_cond_string): Remove "struct" from
4512 foreach.
4513
222a8d25
TT
45142019-05-03 Tom Tromey <tromey@adacore.com>
4515
4516 * ada-exp.y (convert_char_literal): Check suffix of each
4517 enumerator.
4518
fcd60b84
DP
45192019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4520
4521 PR ada/21406:
4522 * ada-exp.y (yywrap): Don't define.
4523 * ada-lex.l (%option): Add noyywrap
4524 (yywrap): Remove.
4525
5f2459c2
EZ
45262019-05-03 Eli Zaretskii <eliz@gnu.org>
4527
353ea2d1
EZ
4528 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4529 _WIN32_WINNT to the XP level, unless already defined to a higher
4530 level.
4531
4532 * unittests/parse-connection-spec-selftests.c:
4533 * ser-tcp.c:
4534 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4535 override.
4536
5f2459c2
EZ
4537 * symfile.c (find_separate_debug_file): Remove colon from the
4538 drive spec of DOS/Windows file names of the target, so that the
4539 file name produced from DEBUGDIR and the target's directory will
4540 be valid on DOS/Windows systems.
4541
80062eb9
AB
45422019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4543
4544 * rust-lang.c (val_print_struct): Handle printing structures
4545 containing strings.
4546
b8c05e85
TT
45472019-05-02 Tom Tromey <tromey@adacore.com>
4548
4549 * valarith.c (_initialize_valarith): Remove.
4550
4504bbde
TT
45512019-05-01 Tom Tromey <tromey@adacore.com>
4552
4553 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4554 bitfields.
4555
d48e62f4
TT
45562019-05-01 Tom Tromey <tromey@adacore.com>
4557
4558 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4559 for big-endian copies.
4560
15f18d14
AT
45612019-04-30 Ali Tamur <tamur@google.com>
4562 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4563 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4564 (read_3_bytes): New function.
4565
ab4ee614
JB
45662019-04-30 Joel Brobecker <brobecker@adacore.com>
4567
4568 * windows-nat.c (main_thread_id): Delete.
4569 (handle_output_debug_string): Replace main_thread_id by
4570 current_event.dwThreadId.
4571 (fake_create_process): Likewise.
4572 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4573 Do not set main_thread_id.
4574 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4575 current_event.dwThreadId.
4576 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
4577
8ed5b76e
JB
45782019-04-30 Joel Brobecker <brobecker@adacore.com>
4579
4580 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
4581 Use current_event.dwThreadId instead of main_thread_id.
4582
2ff0a947
TT
45832019-04-30 Tom Tromey <tromey@adacore.com>
4584
4585 * ada-lang.c (ada_lookup_simple_minsyms): New function.
4586 (create_excep_cond_exprs): Iterate over program spaces.
4587 (ada_exception_catchpoint_cond_string): Examine all minimal
4588 symbols for exception types.
4589
a776957c
TT
45902019-04-30 Tom Tromey <tromey@adacore.com>
4591
4592 PR c++/24470:
4593 * dwarf2read.c (process_structure_scope): Handle case where type
4594 has template parameters but no symbol was created.
4595
bc68014d
AB
45962019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4597 Chris January <chris.january@arm.com>
4598
4599 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
4600 qualifier.
4601 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
4602
f1fdc960
AB
46032019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * f-typeprint.c (f_print_type): Update rules for printing
4606 whitespace.
4607 (f_type_print_varspec_suffix): Likewise.
4608
bf7a4de1
AB
46092019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4610 Chris January <chris.january@arm.com>
4611
4612 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
4613 function arguments.
4614
bbe75b9d
AB
46152019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4616
4617 * f-lang.c (build_fortran_types): Change name of void type to
4618 lower case.
4619 * f-typeprint.c (f_type_print_base): Print the name of the void
4620 type, rather than a fixed string.
4621 * f-valprint.c (f_decorations): Use lower case void string.
4622
1db455a7
AB
46232019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4624 Chris January <chris.january@arm.com>
4625
4626 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
4627 types for Fortran.
4628
b6d03bb2
AB
46292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4630 Chris January <chris.january@arm.com>
4631 David Lecomber <david.lecomber@arm.com>
4632
4633 * f-exp.y (BINOP_INTRINSIC): New token.
4634 (exp): New parser rule handling BINOP_INTRINSIC.
4635 (f77_keywords): Add new builtin procedures.
4636 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
4637 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4638 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
4639 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4640 (print_unop_subexp_f): New function.
4641 (print_binop_subexp_f): New function.
4642 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4643 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4644 (dump_subexp_body_f): Likewise.
4645 (operator_check_f): Likewise.
4646 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4647 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
4648
83228e93
AB
46492019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4650
4651 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
4652 UNOP_KIND.
4653 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
4654 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
4655 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
4656 (operator_length_f): New fuction.
4657 (print_subexp_f): New function.
4658 (op_name_f): New function.
4659 (dump_subexp_body_f): New function.
4660 (operator_check_f): New function.
4661 (exp_descriptor_f): Replace standard expression handling functions
4662 with new functions.
4663 * gdb/fortran-operator.def: New file.
4664 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
4665 * gdb/std-operator.def: Remove UNOP_KIND.
4666
6fdcd7cc
AB
46672019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4668
4669 * std-operator.def: Remove unbalanced, stray double quote
4670 character.
4671
2e62ab40
AB
46722019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4673 Chris January <chris.january@arm.com>
4674 Daniel Everett <daniel.everett@arm.com>
4675 Nick Forrington <nick.forrington@arm.com>
4676 Richard Bunt <richard.bunt@arm.com>
4677
4678 * cp-valprint.c (cp_print_value_fields): Allow an additional level
4679 of depth when printing anonymous structs or unions.
4680 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4681 Don't print either the top-level value, or the children if the
4682 max-depth is exceeded.
4683 (ppscm_print_children): When printing the key of a map, allow one
4684 extra level of depth.
4685 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
4686 print either the top-level value, or the children if the max-depth
4687 is exceeded.
4688 (print_children): When printing the key of a map, allow one extra
4689 level of depth.
4690 * python/py-value.c (valpy_format_string): Add max_depth keyword.
4691 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
4692 (user_print_options): Initialise max_depth field.
4693 (val_print_scalar_or_string_type_p): New function.
4694 (val_print): Check to see if the max depth has been reached.
4695 (val_print_check_max_depth): Define new function.
4696 (show_print_max_depth): New function.
4697 (_initialize_valprint): Add 'print max-depth' option.
4698 * valprint.h (struct value_print_options) <max_depth>: New field.
4699 (val_print_check_max_depth): Declare new function.
4700 * NEWS: Document new feature.
4701
4be290b2
AB
47022019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * ada-lang.c (ada_language_defn): Initialise new field.
4705 * c-lang.c (c_is_string_type_p): New function.
4706 (c_language_defn): Initialise new field.
4707 (cplus_language_defn): Initialise new field.
4708 (asm_language_defn): Initialise new field.
4709 (minimal_language_defn): Initialise new field.
4710 * c-lang.h (c_is_string_type_p): Declare new function.
4711 * d-lang.c (d_language_defn): Initialise new field.
4712 * f-lang.c (f_is_string_type_p): New function.
4713 (f_language_defn): Initialise new field.
4714 * go-lang.c (go_is_string_type_p): New function.
4715 (go_language_defn): Initialise new field.
4716 * language.c (default_is_string_type_p): New function.
4717 (unknown_language_defn): Initialise new field.
4718 (auto_language_defn): Initialise new field.
4719 * language.h (struct language_defn) <la_is_string_type_p>: New
4720 member variable.
4721 (default_is_string_type_p): Declare new function.
4722 * m2-lang.c (m2_language_defn): Initialise new field.
4723 * objc-lang.c (objc_language_defn): Initialise new field.
4724 * opencl-lang.c (opencl_language_defn): Initialise new field.
4725 * p-lang.c (pascal_is_string_type_p): New function.
4726 (pascal_language_defn): Initialise new field.
4727 * rust-lang.c (rust_is_string_type_p): New function.
4728 (rust_language_defn): Initialise new field.
4729
721b08c6
AB
47302019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4731
4732 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
4733 New field.
4734 * ada-lang.c (ada_language_defn): Initialise new field.
4735 * c-lang.c (c_language_defn): Likewise.
4736 (cplus_language_defn): Likewise.
4737 (asm_language_defn): Likewise.
4738 (minimal_language_defn): Likewise.
4739 * d-lang.c (d_language_defn): Likewise.
4740 * f-lang.c (f_language_defn): Likewise.
4741 * go-lang.c (go_language_defn): Likewise.
4742 * language.c (unknown_language_defn): Likewise.
4743 (auto_language_defn): Likewise.
4744 * m2-lang.c (m2_language_defn): Likewise.
4745 * objc-lang.c (objc_language_defn): Likewise.
4746 * opencl-lang.c (opencl_language_defn): Likewise.
4747 * p-lang.c (pascal_language_defn): Likewise.
4748 * rust-lang.c (rust_language_defn): Likewise.
4749
fc913e53
AB
47502019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4751
4752 * ada-lang.c (ada_is_character_type): Change return type to bool.
4753 (ada_is_string_type): Likewise.
4754 * ada-lang.h (ada_is_character_type): Update declaration
4755 (ada_is_string_type): Likewise.
4756
fa731fa0
PW
47572019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4758
4759 Support style in 'frame|thread apply'
4760
4761 * gdbcmd.h (execute_command_to_string): New term_out parameter.
4762 * record.c (record_start, record_stop): Update callers of
4763 execute_command_to_string with false.
4764 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
4765 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
4766 methods.
4767 (class string_file): New constructor with term_out parameter.
4768 Override methods term_out and can_emit_style_escape. New member
4769 term_out.
4770 (class stdio_file): Override can_emit_style_escape.
4771 (class tee_file): Override term_out and can_emit_style_escape.
4772 * utils.h (can_emit_style_escape): Remove.
4773 * utils.c (can_emit_style_escape): Likewise.
4774 Update all callers of can_emit_style_escape (SOMESTREAM) to
4775 SOMESTREAM->can_emit_style_escape.
4776 * source-cache.c (source_cache::get_source_lines): Likewise.
4777 * stack.c (frame_apply_command_count): Call execute_command_to_string
4778 passing the term_out characteristic of the current gdb_stdout.
4779 * thread.c (thr_try_catch_cmd): Likewise.
4780 * top.c (execute_command_to_string): pass term_out parameter
4781 to construct the string_file for the command output.
4782 * ui-file.c (term_cli_styling): New function (most code moved
4783 from utils.c can_emit_style_escape).
4784 (string_file::string_file, string_file::can_emit_style_escape,
4785 stdio_file::can_emit_style_escape, tee_file::term_out,
4786 tee_file::can_emit_style_escape): New functions.
4787
136afab8
PW
47882019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4789
4790 * NEWS: Mention the new set|show may-call-functions.
4791 * infcall.c (may_call_functions_p): New variable.
4792 (show_may_call_functions_p): New function.
4793 (call_function_by_hand_dummy): Throws an error if not
4794 may-call-functions.
4795 (_initialize_infcall): Call add_setshow_boolean_cmd for
4796 may-call-functions.
4797
725cbb63
KS
47982019-04-25 Keith Seitz <keiths@redhat.com>
4799
4800 PR c++/24367
4801 * cp-support.c (inspect_type): Don't attempt substitutions
4802 of symbol with the same name.
4803
3d1cbb78
TT
48042019-04-25 Tom Tromey <tromey@adacore.com>
4805
4806 PR gdb/24475:
4807 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
4808 static.
4809
94aeb44b
TT
48102019-04-25 Tom Tromey <tromey@adacore.com>
4811
4812 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
4813 rvalue reference.
4814 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
4815 (gdb_xml_parser::parse): Use std::move.
4816 * python/python-internal.h (gdbpy_convert_exception): Take a const
4817 reference.
4818 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
4819 std::move.
4820 * python/py-utils.c (gdbpy_convert_exception): Take a const
4821 reference.
4822 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
4823 Use std::move.
4824 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
4825 Use std::move.
4826 * mi/mi-main.c (mi_print_exception): Take a const reference.
4827 * main.c (handle_command_errors): Take a const reference.
4828 * linespec.c (parse_linespec): Use std::move.
4829 * infcall.c (run_inferior_call): Use std::move.
4830 (call_function_by_hand_dummy): Use std::move.
4831 * exec.c (try_open_exec_file): Use std::move.
4832 * exceptions.h (exception_print, exception_fprintf)
4833 (exception_print_same): Update.
4834 * exceptions.c (print_exception, exception_print)
4835 (exception_fprintf, exception_print_same): Change parameters to
4836 const reference.
4837 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
4838 * common/new-op.c: Use std::move.
4839 * common/common-exceptions.h (struct gdb_exception): Add move
4840 constructor.
4841 (struct gdb_exception_error, struct gdb_exception_quit, struct
4842 gdb_quit_bad_alloc): Change constructor to move constructor.
4843 (throw_exception): Change parameter to rvalue reference.
4844 * common/common-exceptions.c (throw_exception): Take rvalue
4845 reference.
4846 * cli/cli-interp.c (safe_execute_command): Use std::move.
4847 * breakpoint.c (insert_bp_location, location_to_sals): Use
4848 std::move.
4849
680d7fd5
TT
48502019-04-25 Tom Tromey <tromey@adacore.com>
4851
4852 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
4853 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
4854 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
4855 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
4856 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
4857 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
4858 guile/scm-value.c: Use unpack.
4859 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
4860 gdbscm_gdb_exception.
4861 (gdbscm_throw_gdb_exception): Likewise.
4862 (struct gdbscm_gdb_exception): New.
4863 (unpack): New function.
4864 (gdbscm_wrap): Use unpack.
4865
c6fdd8b2
TT
48662019-04-25 Tom Tromey <tromey@adacore.com>
4867
4868 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
4869 (gdb_rl_callback_handler): Use std::move.
4870 * common/common-exceptions.h (struct gdb_exception): Add move
4871 assignment operator.
4872 (throw_exception_sjlj): Change "exception" to const reference.
4873 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
4874 (throw_exception_sjlj): Change "exception" to const reference.
4875
cc06b668
TT
48762019-04-25 Tom Tromey <tromey@adacore.com>
4877
4878 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
4879 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
4880 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
4881 Update.
4882 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
4883 Update.
4884 * mi/mi-interp.c (mi_interp::exec): Update.
4885 * linespec.c (parse_linespec): Update.
4886 * infcall.c (run_inferior_call): Update.
4887 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
4888 * guile/scm-symbol.c (gdbscm_lookup_symbol)
4889 (gdbscm_lookup_global_symbol): Update.
4890 * guile/scm-param.c (gdbscm_parameter_value): Update.
4891 * guile/scm-frame.c (gdbscm_frame_read_register)
4892 (gdbscm_frame_read_var): Update.
4893 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
4894 * exec.c (try_open_exec_file): Update.
4895 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
4896 (gdb_rl_callback_handler): Update.
4897 * common/common-exceptions.h (exception_none): Don't declare.
4898 * common/common-exceptions.c (exception_none): Don't define.
4899 (struct catcher) <exception>: Update.
4900 * cli/cli-interp.c (safe_execute_command): Update.
4901 * breakpoint.c (insert_bp_location, location_to_sals): Update.
4902
cf532bd1
AT
49032019-04-25 Ali Tamur <tamur@google.com>
4904
4905 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
4906 (read_attribute_value): Likewise.
4907 (dwarf2_read_addr_index): Update comment.
4908 (read_str_index): Add DW_FORM_strx.
4909 (dwarf2_string_attr): Likewise.
4910 (dwarf2_const_value_attr): Likewise.
4911 (dump_die_shallow): Likewise.
4912 (dwarf2_fetch_constant_bytes): Likewise.
4913 (skip_form_bytes): Likewise.
4914 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
4915
82433e3e
SDJ
49162019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4917
4918 PR corefiles/11608
4919 PR corefiles/18187
4920 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
4921 OFFSET. Verify if current mapping contains an ELF header.
4922 (linux_find_memory_regions_full): Adjust call to
4923 dump_mapping_p.
4924
723adb65
SL
49252019-04-25 Sandra Loosemore <sandra@codesourcery.com>
4926 Kang Li <kanglictf@gmail.com>
4927
4928 PR gdb/21600
4929
4930 * dwarf2-frame.c (read_initial_length): Be consistent about using
4931 unsigned representation of length.
4932 (decode_frame_entry_1): Likewise. Check for wraparound of
4933 end pointer as well as buffer overflow.
4934
596179f7
SDJ
49352019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4936
4937 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
4938 "vq".
4939
a59240a4
TT
49402019-04-24 Tom Tromey <tromey@adacore.com>
4941
4942 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
4943
f872fdbb
AB
49442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4945
4946 * s12z-tdep.c (s12z_unwind_pc): Delete.
4947 (s12z_unwind_sp): Delete.
4948 (s12z_gdbarch_init): Don't register deleted functions with
4949 gdbarch.
4950
b614e6f3
AB
49512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4952
4953 * rl78-tdep.c (rl78_unwind_sp): Delete.
4954 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
4955
14faed38
AB
49562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4957
4958 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
4959 (xstormy16_unwind_pc): Delete.
4960 (xstormy16_dummy_id): Delete.
4961 (xstormy16_gdbarch_init): Don't register deleted functions with
4962 gdbarch.
4963
541aad8a
AB
49642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4965
4966 * vax-tdep.c (vax_unwind_pc): Delete.
4967 (vax_gdbarch_init): Don't register deleted function with gdbarch.
4968
29222070
AB
49692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4970
4971 * v850-tdep.c (v850_unwind_sp): Delete.
4972 (v850_unwind_pc): Delete.
4973 (v850_dummy_id): Delete.
4974 (v850_gdbarch_init): Don't register deleted functions with
4975 gdbarch.
4976
0f534d76
AB
49772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4978
4979 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
4980 (tilegx_unwind_pc): Delete.
4981 (tilegx_unwind_dummy_id): Delete.
4982 (tilegx_gdbarch_init): Don't register deleted functions with
4983 gdbarch.
4984
1ba7b7f9
AB
49852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4986
4987 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
4988 (tic6x_dummy_id): Delete.
4989 (tic6x_gdbarch_init): Don't register deleted functions with
4990 gdbarch.
4991
d31f262c
AB
49922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4993
4994 * sparc-tdep.c (sparc_unwind_pc): Delete.
4995 (sparc32_gdbarch_init): Don't register deleted function with
4996 gdbarch.
4997
6d14d64d
AB
49982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * sh-tdep.c (sh_unwind_sp): Delete.
5001 (sh_unwind_pc): Delete.
5002 (sh_dummy_id): Delete.
5003 (sh_gdbarch_init): Don't register deleted functions with
5004 gdbarch.
5005
a40dde9d
AB
50062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5007
5008 * score-tdep.c (score_unwind_sp): Delete.
5009 (score_unwind_pc): Delete.
5010 (score_dummy_id): Delete.
5011 (score_gdbarch_init): Don't register deleted functions with
5012 gdbarch.
5013
47c47d69
AB
50142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5015
5016 * rx-tdep.c (rx_unwind_pc): Delete.
5017 (rx_unwind_sp): Delete.
5018 (rx_dummy_id): Delete.
5019 (rx_gdbarch_init): Don't register deleted functions with
5020 gdbarch. Update comment.
5021
833a4480
AB
50222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5023
5024 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5025 (rs6000_dummy_id): Delete.
5026 (rs6000_gdbarch_init): Don't register deleted functions with
5027 gdbarch.
5028
3f2cef49
AB
50292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5030
5031 * or1k-tdep.c (or1k_dummy_id): Delete.
5032 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5033
96acf884
AB
50342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5035
5036 * nios2-tdep.c (nios2_dummy_id): Delete.
5037 (nios2_unwind_sp): Delete.
5038 (nios2_gdbarch_init): Don't register deleted functions with
5039 gdbarch.
5040
ca0ab0aa
AB
50412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5042
5043 * nds32-tdep.c (nds32_dummy_id): Delete.
5044 (nds32_unwind_pc): Delete.
5045 (nds32_unwind_sp): Delete.
5046 (nds32_gdbarch_init): Don't register deleted functions with
5047 gdbarch.
5048
c8259044
AB
50492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5050
5051 * msp430-tdep.c (msp430_unwind_pc): Delete.
5052 (msp430_unwind_sp): Delete.
5053 (msp430_dummy_id): Delete.
5054 (msp430_gdbarch_init): Don't register deleted functions with
5055 gdbarch.
5056
27f113c8
AB
50572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5058
5059 * moxie-tdep.c (moxie_unwind_sp): Delete.
5060 (moxie_unwind_pc): Delete.
5061 (moxie_dummy_id): Delete.
5062 (moxie_gdbarch_init): Don't register deleted functions with
5063 gdbarch.
5064
aee6c3cd
AB
50652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5066
5067 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5068 (mn10300_unwind_pc): Delete.
5069 (mn10300_unwind_sp): Delete.
5070 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5071 mn10300_unwind_sp.
5072 (mn10300_frame_unwind_init): Don't register deleted functions with
5073 gdbarch.
5074
8e2b5aea
AB
50752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5076
5077 * mep-tdep.c (mep_unwind_pc): Delete.
5078 (mep_unwind_sp): Delete.
5079 (mep_dummy_id): Delete.
5080 (mep_gdbarch_init): Don't register deleted functions with
5081 gdbarch.
5082
43cf3ede
AB
50832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5084
5085 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5086 (m68hc11_unwind_sp): Delete.
5087 (m68hc11_gdbarch_init): Don't register deleted functions with
5088 gdbarch.
5089
5e79b7bb
AB
50902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5091
5092 * m32r-tdep.c (m32r_unwind_sp): Delete.
5093 (m32r_unwind_pc): Delete.
5094 (m32r_dummy_id): Delete.
5095 (m32r_gdbarch_init): Don't register deleted functions with
5096 gdbarch.
5097
89b268d8
AB
50982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5099
5100 * m32c-tdep.c (m32c_unwind_pc): Delete.
5101 (m32c_unwind_sp): Delete.
5102 (m32c_dummy_id): Delete.
5103 (m32c_gdbarch_init): Don't register deleted functions with
5104 gdbarch.
5105
946c28d2
AB
51062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5107
5108 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5109 (lm32_unwind_pc): Delete.
5110 (lm32_dummy_id): Delete.
5111 (lm32_gdbarch_init): Don't register deleted functions with
5112 gdbarch.
5113
bf12844a
AB
51142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5115
5116 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5117 (iq2000_unwind_pc): Delete.
5118 (iq2000_dummy_id): Delete.
5119 (iq2000_gdbarch_init): Don't register deleted functions with
5120 gdbarch.
5121
ecbc06d2
AB
51222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5123
5124 * nds32-tdep.c (nds32_type_align): Delete.
5125 (nds32_push_dummy_call): Use type_align instead.
5126
030197b4
AB
51272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5128
5129 * arm-tdep.c (arm_type_align): Only handle vector override case.
5130 (arm_push_dummy_call): Use type_align.
5131 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5132
b907456c
AB
51332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5134
5135 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5136 case.
5137 (pass_on_stack): Use type_align.
5138 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5139 function.
5140
9e97ba43
TT
51412019-04-23 Tom Tromey <tromey@adacore.com>
5142
5143 * dwarf2read.c (line_header::file_name_at): Remove unused
5144 overload.
5145
6892f601
TV
51462019-04-23 Tom de Vries <tdevries@suse.de>
5147
5148 PR gdb/24438
5149 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5150 invocation.
5151
336d760d
AT
5152
51532019-03-27 Ali Tamur <tamur@google.com>
5154
5155 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5156 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5157 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5158 (dwarf_expr_context::get_addr_index): Likewise
5159 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5160 (symbol_needs_eval_context::get_addr_index): Likewise
5161 (disassemble_dwarf_expression): Add DW_OP_addrx
5162 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5163 (read_cutu_die_from_dwo): Update comment
5164 (skip_one_die): Add DW_FORM_addrx
5165 (read_attribute_value): Likewise
5166 (var_decode_location): Add DW_OP_addrx
5167 (dwarf2_const_value_attr): Add DW_FORM_addrx
5168 (dump_die_shallow): Likewise
5169 (dwarf2_fetch_constant_bytes): Likewise
5170 (decode_locdesc): Add DW_OP_addrx
5171 (skip_form_bytes): Add DW_FORM_addrx
5172
ad9d13f8
AT
51732019-04-22 Ali Tamur <tamur@google.com>
5174
5175 * MAINTAINERS (Write After Approval): Add self.
5176
d70cc3ba
SM
51772019-04-22 Simon Marchi <simon.marchi@efficios.com>
5178
5179 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5180 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5181 (open_symbol_file_object): Likewise.
5182 (svr4_default_sos): Add info parameter.
5183 (svr4_read_so_list): Likewise.
5184 (svr4_current_sos_direct): Adjust functions calls to pass down
5185 info.
5186 (svr4_current_sos_1): Add info parameter.
5187 (svr4_current_sos): Call get_svr4_info, pass info down to
5188 svr4_current_sos_1.
5189 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5190 get_svr4_info.
5191 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5192 get_svr4_info.
5193 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5194 to get_svr4_info.
5195 (probes_table_remove_objfile_probes): Likewise.
5196 (register_solib_event_probe): Add info parameter.
5197 (solist_update_incremental): Pass info parameter down to
5198 svr4_read_so_list.
5199 (disable_probes_interface): Add info parameter.
5200 (svr4_handle_solib_event): Pass current_program_space to
5201 get_svr4_info. Adjust disable_probes_interface cleanup.
5202 (svr4_create_probe_breakpoints): Add info parameter, pass it
5203 down to register_solib_event_probe.
5204 (svr4_create_solib_event_breakpoints): Add info parameter,
5205 pass it down to svr4_create_probe_breakpoints.
5206 (enable_break): Pass info down to
5207 svr4_create_solib_event_breakpoints.
5208 (svr4_solib_create_inferior_hook): Pass current_program_space to
5209 get_svr4_info.
5210 (svr4_clear_solib): Likewise.
5211
7905fc35
PA
52122019-04-22 Pedro Alves <palves@redhat.com>
5213
5214 * solib-svr4.c (svr4_free_objfile_observer): New.
5215 (probe_and_action::objfile): New field.
5216 (probes_table_htab_remove_objfile_probes)
5217 (probes_table_remove_objfile_probes): New functions.
5218 (register_solib_event_probe): Add 'objfile' parameter. Store it
5219 in the new probe_and_action. Don't store the probe in 'lookup'.
5220 (svr4_create_probe_breakpoints): Pass objfile to
5221 register_solib_event_probe.
5222 (_initialize_svr4_solib): Register a free_objfile observer.
5223
fb881986
TT
52242019-04-19 Tom Tromey <tom@tromey.com>
5225
5226 * common/queue.h: Remove.
5227
8732db6c
TT
52282019-04-19 Tom Tromey <tom@tromey.com>
5229
5230 * event-loop.c: Don't include "common/queue.h".
5231
97dfbadd
TT
52322019-04-19 Tom Tromey <tom@tromey.com>
5233
5234 * remote.c (remote_target): Use delete.
5235 * remote-notif.h: Include <list>, not "common/queue.h".
5236 (notif_client_p): Remove typedef.
5237 (remote_notif_state): Add constructor, destructor, initializer.
5238 <notif_queue>: Now a std::list.
5239 (remote_notif_state_xfree): Don't declare.
5240 * remote-notif.c (remote_notif_process, handle_notification)
5241 (remote_notif_state_allocate): Update.
5242 (~remote_notif_state): Rename from remote_notif_state_xfree.
5243
cf250e36
TT
52442019-04-19 Tom Tromey <tom@tromey.com>
5245
5246 * symfile.c (reread_symbols): Update.
5247 * objfiles.c (objfile_register_static_link)
5248 (objfile_lookup_static_link): Update
5249 (~objfile) Don't delete static_links.
5250 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5251
61f4b350
TT
52522019-04-19 Tom Tromey <tom@tromey.com>
5253
5254 * type-stack.h (struct type_stack) <insert>: Constify string.
5255 * type-stack.c (type_stack::insert): Constify string.
5256 * gdbtypes.h (lookup_template_type): Update.
5257 (address_space_name_to_int): Update.
5258 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5259 const.
5260 (lookup_template_type): Make name const.
5261 * c-exp.y: Update rules.
5262 (lex_one_token, classify_name, classify_inner_name)
5263 (c_print_token): Update.
5264 * p-exp.y: Update rules.
5265 (yylex): Update.
5266 * f-exp.y: Update rules.
5267 (yylex): Update.
5268 * d-exp.y: Update rules.
5269 (lex_one_token, classify_name, classify_inner_name): Update.
5270 * parse.c (write_dollar_variable, copy_name): Return std::string.
5271 * parser-defs.h (copy_name): Change return type.
5272 * m2-exp.y: Update rules.
5273 (yylex): Update.
5274 * go-exp.y (lex_one_token): Update.
5275 Update rules.
5276 (classify_unsafe_function, classify_packaged_name)
5277 (classify_name, yylex): Update.
5278
189b8c2e
ST
52792019-04-19 Sergei Trofimovich <siarheit@google.com>
5280
5281 * configure.ac: add --enable-source-highlight switch.
5282 * configure: Regenerate.
5283 * top.c (print_gdb_version): plumb --enable-source-highlight
5284 status to "show configuration".
5285
8ecb59f8
TT
52862019-04-19 Tom Tromey <tromey@adacore.com>
5287
5288 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5289 Check ADA_TYPE_P.
5290 (empty_record, ada_template_to_fixed_record_type_1)
5291 (template_to_static_fixed_type)
5292 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5293 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5294 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5295 macros.
5296
62160ec9
TT
52972019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5298
5299 PR symtab/24423:
5300 * source.c (print_source_lines_base): Advance "iter" when a
5301 control character is seen.
5302
f2ae8bc8
PW
53032019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5304
5305 * inferior.h (struct infcall_suspend_state_deleter):
5306 Catch exception in destructor to avoid crash.
5307
d563b953
PW
53082019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5309
5310 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5311 close to the add_com "shell".
5312
dc34c897
TT
53132019-04-18 Tom Tromey <tromey@adacore.com>
5314
5315 * process-stratum-target.h (class process_stratum_target)
5316 <stratum>: Add "final".
5317
a12e5744
TT
53182019-04-17 Tom Tromey <tromey@adacore.com>
5319
5320 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5321 against nullptr before use.
5322
a7e559cc
AH
53232019-04-17 Alan Hayward <alan.hayward@arm.com>
5324
5325 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5326
c01660c6
AB
53272019-04-17 Jim Wilson <jimw@sifive.com>
5328 Andrew Burgess <andrew.burgess@embecosm.com>
5329
5330 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5331 code read might fail, assume 4-byte breakpoint in that case.
5332
4aa866af
LS
53332019-04-15 Leszek Swirski <leszeks@google.com>
5334
5335 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5336 rather than a hand-rolled POD check when checking for forced MEMORY
5337 classification.
5338
48574d91
AH
53392019-04-15 Alan Hayward <alan.hayward@arm.com>
5340
5341 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5342 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5343 function.
5344 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5345 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5346 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5347 declaration.
5348
4da037ef
AH
53492019-04-15 Alan Hayward <alan.hayward@arm.com>
5350
5351 * aarch64-linux-nat.c
5352 (aarch64_linux_nat_target::thread_architecture): Add override.
5353 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5354 each VQ.
5355
ccb8d7e8
AH
53562019-04-15 Alan Hayward <alan.hayward@arm.com>
5357
5358 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5359
35add35e
AB
53602019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5361
5362 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5363 target types of size 96-bits, add some additional comments, and
5364 check that the builtin type we found was the correct size.
5365
51196bbc
EZ
53662019-04-12 Eli Zaretskii <eliz@gnu.org>
5367
5368 * utils.c (prompt_for_continue): Don't restore the styling at the
5369 end, as applied_style has the wrong value. This fixes styling in
5370 long lists of file names that are interrupted by the "Continue?"
5371 prompt.
5372
62253a61
AB
53732019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5374
5375 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5376 * c-lang.c (c_language_defn): Likewise.
5377 (cplus_language_defn): Likewise.
5378 (asm_language_defn): Likewise.
5379 (minimal_language_defn): Likewise.
5380 * d-lang.c (d_language_defn): Likewise.
5381 * f-lang.c (f_language_defn): Likewise.
5382 * go-lang.c (go_language_defn): Likewise.
5383 * language.c (unknown_language_defn): Likewise.
5384 (auto_language_defn): Likewise.
5385 * language.h (struct language_defn): Remove la_magic field.
5386 (LANG_MAGIC): Delete.
5387 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5388 * objc-lang.c (objc_language_defn): Likewise.
5389 * opencl-lang.c (opencl_language_defn): Likewise.
5390 * p-lang.c (pascal_language_defn): Likewise.
5391 * rust-lang.c (rust_language_defn): Likewise.
5392
a9158a86
AB
53932019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5394
5395 * riscv-tdep.c (riscv_type_align): New function.
5396 (riscv_type_alignment): Delete.
5397 (riscv_arg_location): Use 'type_align'.
5398 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5399
41077b66
AB
54002019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5401
5402 * gdbtypes.c (type_align): A struct with no non-static fields also
5403 has alignment of 1.
5404
9f0272f8
AB
54052019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5406
5407 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5408 component to 0.
5409 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5410 member.
5411 (riscv_struct_info::analyse): New implementation using new
5412 analyse_inner member function.
5413 (riscv_struct_info::field_offset): New member function.
5414 (riscv_struct_info::m_offsets): New member variable.
5415 (riscv_struct_info::analyse_inner): New private member function,
5416 takes the old implementation of riscv_struct_info::analyse but
5417 extended to track field offsets.
5418 (riscv_call_arg_struct): Update the struct folding special cases
5419 to handle cases where empty C++ structs, which are non-zero
5420 length, are found.
5421 (riscv_arg_location): Initialise the length of each location, a
5422 non-zero length now indicates the location is in use.
5423 (riscv_push_dummy_call): Allow for the first location having a
5424 non-zero offset when setting up arguments.
5425 (riscv_return_value): Likewise, but for return values.
5426
02cf60c7
TT
54272019-04-11 Tom Tromey <tromey@adacore.com>
5428
5429 * utils.c (internal_vproblem): Make "msg" const.
5430
68811f8f
AH
54312019-04-11 Alan Hayward <alan.hayward@arm.com>
5432
5433 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5434 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5435 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5436 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5437
3f52fdbc
KB
54382019-04-10 Kevin Buettner <kevinb@redhat.com>
5439
5440 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5441 function.
5442 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5443 of amd64_collect_native_gregset.
5444 (amd64_linux_nat_target::store_registers): Likewise.
5445
e9ad22ee
TT
54462019-04-10 Tom Tromey <tom@tromey.com>
5447
5448 * symtab.c (lookup_global_symbol_from_objfile)
5449 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5450 * objfiles.h (class separate_debug_iterator): New.
5451 (class separate_debug_range): New.
5452 (struct objfile) <separate_debug_objfiles>: New method.
5453 (objfile_separate_debug_iterate): Don't declare.
5454 * objfiles.c (separate_debug_iterator::operator++): Rename from
5455 objfile_separate_debug_iterate.
5456 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5457 iterator.
5458 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5459 iterator.
5460
ee371134
TT
54612019-04-10 Tom Tromey <tom@tromey.com>
5462
5463 * symfile.c (reread_symbols): Remove old comment.
5464 * objfiles.c (free_all_objfiles): Fix a typo.
5465
bf227d61
TT
54662019-04-10 Tom Tromey <tom@tromey.com>
5467
5468 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5469 * minsyms.c (lookup_minimal_symbol): Use foreach.
5470 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5471 (lookup_minimal_symbol_solib_trampoline): Likewise.
5472 * symfile.c (reread_symbols): Use foreach.
5473
8dc433a0
TT
54742019-04-09 Ivan Begert <ivanbegert@gmail.com>
5475 Tom Tromey <tromey@adacore.com>
5476
5477 PR rust/24414:
5478 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5479 (rust_lex_int_test): Change "value" to be LONGEST.
5480 (rust_lex_tests): Add test for long integer literal.
5481
9ab8741a
TT
54822019-04-09 Tom Tromey <tromey@adacore.com>
5483
5484 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5485 to bool.
5486 (extended_remote_target::attach): Update.
5487 (remote_target::remote_notice_new_inferior): Update.
5488 (remote_target::add_current_inferior_and_thread): Update.
5489 * inferior.c (exit_inferior_1): Use "false".
5490 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5491
e242fd12
SM
54922019-04-09 Simon Marchi <simon.marchi@efficios.com>
5493
9ca1957f 5494 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
5495 the "start" command.
5496
2b0c8b01
KB
54972019-04-08 Kevin Buettner <kevinb@redhat.com>
5498
5499 * python/py-inferior.c (infpy_thread_from_thread_handle):
5500 Adjust comments to reflect renaming of thread_from_thread_handle
5501 to thread_from_handle. Adjust keywords. Fix type error message.
5502 (inferior_object_methods): Add thread_from_handle. Retain
5503 thread_from_thread_handle, but mark it as deprecated.
5504
50a82723
KB
55052019-04-08 Kevin Buettner <kevinb@redhat.com>
5506
5507 * gdbthread.h (find_thread_by_handle): Revise declaration.
5508 * thread.c (find_thread_by_handle): Likewise. Adjust
5509 implementation too.
5510 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5511 support for buffer objects as handles.
5512
cf63b016
KB
55132019-04-08 Kevin Buettner <kevinb@redhat.com>
5514
5515 * python/py-infthread.c (thpy_thread_handle): New function.
5516 (thread_object_methods): Register thpy_thread_handle.
5517
3d6c6204
KB
55182019-04-08 Kevin Buettner <kevinb@redhat.com>
5519
5520 * gdbthread.h (thread_to_thread_handle): Declare.
5521 * thread.c (gdbtypes.h): Include.
5522 (thread_to_thread_handle): New function.
5523
5524 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5525 (target_thread_info_to_thread_handle): Declare.
5526 * target.c (target_thread_info_to_thread_handle): New function.
5527 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5528 * target-delegates.c: Regenerate.
5529
5530 * linux-thread-db.c (class thread_db_target): Add method
5531 thread_info_to_thread_handle.
5532 (thread_db_target::thread_info_to_thread_handle): Define.
5533 * remote.c (class remote_target): Add new method
5534 thread_info_to_thread_handle.
5535 (remote_target::thread_info_to_thread_handle): Define.
5536
56be6ea8
PA
55372019-04-08 Pedro Alves <palves@redhat.com>
5538
5539 * common/common-exceptions.c (throw_exception): Don't create
5540 named object to throw; throw directly.
5541 (throw_it): Likewise. Don't initialize gdb_exception::message
5542 here, with new; pass FMT and AP to the ctor instead.
5543 * common/common-exceptions.h: Include <string>.
5544 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5545 const char *, va_list)): New ctor. Use std::make_shared.
5546 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5547 errors)): Delete.
5548 (gdb_exception_error::gdb_exception_error(enum errors, const char
5549 *, va_list)): New.
5550 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5551 Add assertion.
5552 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5553 errors)): Delete.
5554 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5555 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5556 Add assertion.
5557
eedc3f4f
TT
55582019-04-08 Tom Tromey <tom@tromey.com>
5559
5560 * valops.c (value_rtti_indirect_type): Replace throw_exception
5561 with throw.
5562 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5563 with throw.
5564 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5565 throw.
5566 * target.c (target_translate_tls_address): Replace throw_exception
5567 with throw.
5568 * stack.c (frame_apply_command_count): Replace throw_exception
5569 with throw.
5570 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5571 throw.
5572 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5573 with throw.
5574 * rs6000-tdep.c (rs6000_frame_cache)
5575 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5576 * remote.c: Replace throw_exception with throw.
5577 * record-full.c (record_full_message, record_full_wait_1)
5578 (record_full_restore): Replace throw_exception with throw.
5579 * record-btrace.c:
5580 (get_thread_current_frame_id, record_btrace_start_replaying)
5581 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
5582 (cmd_record_btrace_start): Replace throw_exception with throw.
5583 * parse.c (parse_exp_in_context_1): Replace throw_exception with
5584 throw.
5585 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
5586 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
5587 * linespec.c:
5588 (find_linespec_symbols): Replace throw_exception with throw.
5589 * infrun.c (displaced_step_prepare, resume): Replace
5590 throw_exception with throw.
5591 * infcmd.c (post_create_inferior): Replace throw_exception with
5592 throw.
5593 * inf-loop.c (inferior_event_handler): Replace throw_exception
5594 with throw.
5595 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5596 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
5597 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
5598 (get_prev_frame_always, get_frame_pc_if_available)
5599 (get_frame_address_in_block_if_available, get_frame_language):
5600 Replace throw_exception with throw.
5601 * frame-unwind.c (frame_unwind_try_unwinder): Replace
5602 throw_exception with throw.
5603 * eval.c (fetch_subexp_value, evaluate_var_value)
5604 (evaluate_funcall, evaluate_subexp_standard): Replace
5605 throw_exception with throw.
5606 * dwarf2loc.c (call_site_find_chain)
5607 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
5608 Replace throw_exception with throw.
5609 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
5610 with throw.
5611 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
5612 throw.
5613 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
5614 * completer.c (complete_line_internal): Replace throw_exception
5615 with throw.
5616 * compile/compile-object-run.c (compile_object_run): Replace
5617 throw_exception with throw.
5618 * cli/cli-script.c (process_next_line): Replace throw_exception
5619 with throw.
5620 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
5621 (btrace_enable, btrace_maint_update_pt_packets): Replace
5622 throw_exception with throw.
5623 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
5624 throw_exception with throw.
5625 * break-catch-throw.c (re_set_exception_catchpoint): Replace
5626 throw_exception with throw.
5627 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5628 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
5629 * aarch64-tdep.c (aarch64_make_prologue_cache)
5630 (aarch64_make_stub_cache): Replace throw_exception with throw.
5631
26003a20
TT
56322019-04-08 Tom Tromey <tom@tromey.com>
5633
5634 * common/common-exceptions.c (throw_exception): Rename from
5635 throw_exception_cxx. Remove old copy. Make argument const.
5636 (throw_it): Create and throw exception objects directly.
5637 * common/common-exceptions.h (throw_exception): Make argument
5638 const.
5639 (struct gdb_exception_error): Add constructor.
5640 (struct gdb_exception_quit): Add constructor.
5641
d272eb37
TT
56422019-04-08 Tom Tromey <tom@tromey.com>
5643
5644 * common/common-exceptions.h (exception_rethrow): Don't declare.
5645 (TRY_SJLJ): Update comment.
5646 (TRY, CATCH, END_CATCH): Remove.
5647 * common/common-exceptions.c (exception_rethrow): Remove.
5648
230d2906
TT
56492019-04-08 Tom Tromey <tom@tromey.com>
5650
5651 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
5652 Remove.
5653 (gdb_exception_error): Rename from
5654 gdb_exception_RETURN_MASK_ERROR.
5655 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
5656 (gdb_quit_bad_alloc): Update.
5657 * aarch64-tdep.c: Update.
5658 * ada-lang.c: Update.
5659 * ada-typeprint.c: Update.
5660 * ada-valprint.c: Update.
5661 * amd64-tdep.c: Update.
5662 * arch-utils.c: Update.
5663 * break-catch-throw.c: Update.
5664 * breakpoint.c: Update.
5665 * btrace.c: Update.
5666 * c-varobj.c: Update.
5667 * cli/cli-cmds.c: Update.
5668 * cli/cli-interp.c: Update.
5669 * cli/cli-script.c: Update.
5670 * common/common-exceptions.c: Update.
5671 * common/new-op.c: Update.
5672 * common/selftest.c: Update.
5673 * compile/compile-c-symbols.c: Update.
5674 * compile/compile-cplus-symbols.c: Update.
5675 * compile/compile-object-load.c: Update.
5676 * compile/compile-object-run.c: Update.
5677 * completer.c: Update.
5678 * corelow.c: Update.
5679 * cp-abi.c: Update.
5680 * cp-support.c: Update.
5681 * cp-valprint.c: Update.
5682 * darwin-nat.c: Update.
5683 * disasm-selftests.c: Update.
5684 * dtrace-probe.c: Update.
5685 * dwarf-index-cache.c: Update.
5686 * dwarf-index-write.c: Update.
5687 * dwarf2-frame-tailcall.c: Update.
5688 * dwarf2-frame.c: Update.
5689 * dwarf2loc.c: Update.
5690 * dwarf2read.c: Update.
5691 * eval.c: Update.
5692 * event-loop.c: Update.
5693 * event-top.c: Update.
5694 * exec.c: Update.
5695 * f-valprint.c: Update.
5696 * fbsd-tdep.c: Update.
5697 * frame-unwind.c: Update.
5698 * frame.c: Update.
5699 * gdbtypes.c: Update.
5700 * gnu-v3-abi.c: Update.
5701 * guile/guile-internal.h: Update.
5702 * guile/scm-block.c: Update.
5703 * guile/scm-breakpoint.c: Update.
5704 * guile/scm-cmd.c: Update.
5705 * guile/scm-disasm.c: Update.
5706 * guile/scm-frame.c: Update.
5707 * guile/scm-lazy-string.c: Update.
5708 * guile/scm-math.c: Update.
5709 * guile/scm-param.c: Update.
5710 * guile/scm-ports.c: Update.
5711 * guile/scm-pretty-print.c: Update.
5712 * guile/scm-symbol.c: Update.
5713 * guile/scm-symtab.c: Update.
5714 * guile/scm-type.c: Update.
5715 * guile/scm-value.c: Update.
5716 * i386-linux-tdep.c: Update.
5717 * i386-tdep.c: Update.
5718 * inf-loop.c: Update.
5719 * infcall.c: Update.
5720 * infcmd.c: Update.
5721 * infrun.c: Update.
5722 * jit.c: Update.
5723 * language.c: Update.
5724 * linespec.c: Update.
5725 * linux-fork.c: Update.
5726 * linux-nat.c: Update.
5727 * linux-tdep.c: Update.
5728 * linux-thread-db.c: Update.
5729 * main.c: Update.
5730 * mi/mi-cmd-break.c: Update.
5731 * mi/mi-cmd-stack.c: Update.
5732 * mi/mi-interp.c: Update.
5733 * mi/mi-main.c: Update.
5734 * objc-lang.c: Update.
5735 * p-valprint.c: Update.
5736 * parse.c: Update.
5737 * ppc-linux-tdep.c: Update.
5738 * printcmd.c: Update.
5739 * python/py-arch.c: Update.
5740 * python/py-breakpoint.c: Update.
5741 * python/py-cmd.c: Update.
5742 * python/py-finishbreakpoint.c: Update.
5743 * python/py-frame.c: Update.
5744 * python/py-framefilter.c: Update.
5745 * python/py-gdb-readline.c: Update.
5746 * python/py-inferior.c: Update.
5747 * python/py-infthread.c: Update.
5748 * python/py-lazy-string.c: Update.
5749 * python/py-linetable.c: Update.
5750 * python/py-objfile.c: Update.
5751 * python/py-param.c: Update.
5752 * python/py-prettyprint.c: Update.
5753 * python/py-progspace.c: Update.
5754 * python/py-record-btrace.c: Update.
5755 * python/py-record.c: Update.
5756 * python/py-symbol.c: Update.
5757 * python/py-type.c: Update.
5758 * python/py-unwind.c: Update.
5759 * python/py-utils.c: Update.
5760 * python/py-value.c: Update.
5761 * python/python.c: Update.
5762 * record-btrace.c: Update.
5763 * record-full.c: Update.
5764 * remote-fileio.c: Update.
5765 * remote.c: Update.
5766 * riscv-tdep.c: Update.
5767 * rs6000-aix-tdep.c: Update.
5768 * rs6000-tdep.c: Update.
5769 * rust-exp.y: Update.
5770 * rust-lang.c: Update.
5771 * s390-tdep.c: Update.
5772 * selftest-arch.c: Update.
5773 * solib-dsbt.c: Update.
5774 * solib-frv.c: Update.
5775 * solib-spu.c: Update.
5776 * solib-svr4.c: Update.
5777 * solib.c: Update.
5778 * sparc64-linux-tdep.c: Update.
5779 * stack.c: Update.
5780 * symfile-mem.c: Update.
5781 * symmisc.c: Update.
5782 * target.c: Update.
5783 * thread.c: Update.
5784 * top.c: Update.
5785 * tracefile-tfile.c: Update.
5786 * tui/tui.c: Update.
5787 * typeprint.c: Update.
5788 * unittests/cli-utils-selftests.c: Update.
5789 * unittests/parse-connection-spec-selftests.c: Update.
5790 * valops.c: Update.
5791 * valprint.c: Update.
5792 * value.c: Update.
5793 * varobj.c: Update.
5794 * windows-nat.c: Update.
5795 * x86-linux-nat.c: Update.
5796 * xml-support.c: Update.
5797
a70b8144
TT
57982019-04-08 Tom Tromey <tom@tromey.com>
5799
5800 * xml-support.c: Use C++ exception handling.
5801 * x86-linux-nat.c: Use C++ exception handling.
5802 * windows-nat.c: Use C++ exception handling.
5803 * varobj.c: Use C++ exception handling.
5804 * value.c: Use C++ exception handling.
5805 * valprint.c: Use C++ exception handling.
5806 * valops.c: Use C++ exception handling.
5807 * unittests/parse-connection-spec-selftests.c: Use C++ exception
5808 handling.
5809 * unittests/cli-utils-selftests.c: Use C++ exception handling.
5810 * typeprint.c: Use C++ exception handling.
5811 * tui/tui.c: Use C++ exception handling.
5812 * tracefile-tfile.c: Use C++ exception handling.
5813 * top.c: Use C++ exception handling.
5814 * thread.c: Use C++ exception handling.
5815 * target.c: Use C++ exception handling.
5816 * symmisc.c: Use C++ exception handling.
5817 * symfile-mem.c: Use C++ exception handling.
5818 * stack.c: Use C++ exception handling.
5819 * sparc64-linux-tdep.c: Use C++ exception handling.
5820 * solib.c: Use C++ exception handling.
5821 * solib-svr4.c: Use C++ exception handling.
5822 * solib-spu.c: Use C++ exception handling.
5823 * solib-frv.c: Use C++ exception handling.
5824 * solib-dsbt.c: Use C++ exception handling.
5825 * selftest-arch.c: Use C++ exception handling.
5826 * s390-tdep.c: Use C++ exception handling.
5827 * rust-lang.c: Use C++ exception handling.
5828 * rust-exp.y: Use C++ exception handling.
5829 * rs6000-tdep.c: Use C++ exception handling.
5830 * rs6000-aix-tdep.c: Use C++ exception handling.
5831 * riscv-tdep.c: Use C++ exception handling.
5832 * remote.c: Use C++ exception handling.
5833 * remote-fileio.c: Use C++ exception handling.
5834 * record-full.c: Use C++ exception handling.
5835 * record-btrace.c: Use C++ exception handling.
5836 * python/python.c: Use C++ exception handling.
5837 * python/py-value.c: Use C++ exception handling.
5838 * python/py-utils.c: Use C++ exception handling.
5839 * python/py-unwind.c: Use C++ exception handling.
5840 * python/py-type.c: Use C++ exception handling.
5841 * python/py-symbol.c: Use C++ exception handling.
5842 * python/py-record.c: Use C++ exception handling.
5843 * python/py-record-btrace.c: Use C++ exception handling.
5844 * python/py-progspace.c: Use C++ exception handling.
5845 * python/py-prettyprint.c: Use C++ exception handling.
5846 * python/py-param.c: Use C++ exception handling.
5847 * python/py-objfile.c: Use C++ exception handling.
5848 * python/py-linetable.c: Use C++ exception handling.
5849 * python/py-lazy-string.c: Use C++ exception handling.
5850 * python/py-infthread.c: Use C++ exception handling.
5851 * python/py-inferior.c: Use C++ exception handling.
5852 * python/py-gdb-readline.c: Use C++ exception handling.
5853 * python/py-framefilter.c: Use C++ exception handling.
5854 * python/py-frame.c: Use C++ exception handling.
5855 * python/py-finishbreakpoint.c: Use C++ exception handling.
5856 * python/py-cmd.c: Use C++ exception handling.
5857 * python/py-breakpoint.c: Use C++ exception handling.
5858 * python/py-arch.c: Use C++ exception handling.
5859 * printcmd.c: Use C++ exception handling.
5860 * ppc-linux-tdep.c: Use C++ exception handling.
5861 * parse.c: Use C++ exception handling.
5862 * p-valprint.c: Use C++ exception handling.
5863 * objc-lang.c: Use C++ exception handling.
5864 * mi/mi-main.c: Use C++ exception handling.
5865 * mi/mi-interp.c: Use C++ exception handling.
5866 * mi/mi-cmd-stack.c: Use C++ exception handling.
5867 * mi/mi-cmd-break.c: Use C++ exception handling.
5868 * main.c: Use C++ exception handling.
5869 * linux-thread-db.c: Use C++ exception handling.
5870 * linux-tdep.c: Use C++ exception handling.
5871 * linux-nat.c: Use C++ exception handling.
5872 * linux-fork.c: Use C++ exception handling.
5873 * linespec.c: Use C++ exception handling.
5874 * language.c: Use C++ exception handling.
5875 * jit.c: Use C++ exception handling.
5876 * infrun.c: Use C++ exception handling.
5877 * infcmd.c: Use C++ exception handling.
5878 * infcall.c: Use C++ exception handling.
5879 * inf-loop.c: Use C++ exception handling.
5880 * i386-tdep.c: Use C++ exception handling.
5881 * i386-linux-tdep.c: Use C++ exception handling.
5882 * guile/scm-value.c: Use C++ exception handling.
5883 * guile/scm-type.c: Use C++ exception handling.
5884 * guile/scm-symtab.c: Use C++ exception handling.
5885 * guile/scm-symbol.c: Use C++ exception handling.
5886 * guile/scm-pretty-print.c: Use C++ exception handling.
5887 * guile/scm-ports.c: Use C++ exception handling.
5888 * guile/scm-param.c: Use C++ exception handling.
5889 * guile/scm-math.c: Use C++ exception handling.
5890 * guile/scm-lazy-string.c: Use C++ exception handling.
5891 * guile/scm-frame.c: Use C++ exception handling.
5892 * guile/scm-disasm.c: Use C++ exception handling.
5893 * guile/scm-cmd.c: Use C++ exception handling.
5894 * guile/scm-breakpoint.c: Use C++ exception handling.
5895 * guile/scm-block.c: Use C++ exception handling.
5896 * guile/guile-internal.h: Use C++ exception handling.
5897 * gnu-v3-abi.c: Use C++ exception handling.
5898 * gdbtypes.c: Use C++ exception handling.
5899 * frame.c: Use C++ exception handling.
5900 * frame-unwind.c: Use C++ exception handling.
5901 * fbsd-tdep.c: Use C++ exception handling.
5902 * f-valprint.c: Use C++ exception handling.
5903 * exec.c: Use C++ exception handling.
5904 * event-top.c: Use C++ exception handling.
5905 * event-loop.c: Use C++ exception handling.
5906 * eval.c: Use C++ exception handling.
5907 * dwarf2read.c: Use C++ exception handling.
5908 * dwarf2loc.c: Use C++ exception handling.
5909 * dwarf2-frame.c: Use C++ exception handling.
5910 * dwarf2-frame-tailcall.c: Use C++ exception handling.
5911 * dwarf-index-write.c: Use C++ exception handling.
5912 * dwarf-index-cache.c: Use C++ exception handling.
5913 * dtrace-probe.c: Use C++ exception handling.
5914 * disasm-selftests.c: Use C++ exception handling.
5915 * darwin-nat.c: Use C++ exception handling.
5916 * cp-valprint.c: Use C++ exception handling.
5917 * cp-support.c: Use C++ exception handling.
5918 * cp-abi.c: Use C++ exception handling.
5919 * corelow.c: Use C++ exception handling.
5920 * completer.c: Use C++ exception handling.
5921 * compile/compile-object-run.c: Use C++ exception handling.
5922 * compile/compile-object-load.c: Use C++ exception handling.
5923 * compile/compile-cplus-symbols.c: Use C++ exception handling.
5924 * compile/compile-c-symbols.c: Use C++ exception handling.
5925 * common/selftest.c: Use C++ exception handling.
5926 * common/new-op.c: Use C++ exception handling.
5927 * cli/cli-script.c: Use C++ exception handling.
5928 * cli/cli-interp.c: Use C++ exception handling.
5929 * cli/cli-cmds.c: Use C++ exception handling.
5930 * c-varobj.c: Use C++ exception handling.
5931 * btrace.c: Use C++ exception handling.
5932 * breakpoint.c: Use C++ exception handling.
5933 * break-catch-throw.c: Use C++ exception handling.
5934 * arch-utils.c: Use C++ exception handling.
5935 * amd64-tdep.c: Use C++ exception handling.
5936 * ada-valprint.c: Use C++ exception handling.
5937 * ada-typeprint.c: Use C++ exception handling.
5938 * ada-lang.c: Use C++ exception handling.
5939 * aarch64-tdep.c: Use C++ exception handling.
5940
3d6e9d23
TT
59412019-04-08 Tom Tromey <tom@tromey.com>
5942
5943 * xml-support.c (gdb_xml_parser::parse): Update.
5944 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
5945 * value.c (show_convenience): Update.
5946 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
5947 (test_parse_flags_qcs): Update.
5948 * thread.c (thr_try_catch_cmd): Update.
5949 * target.c (target_translate_tls_address): Update.
5950 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5951 (info_frame_command_core, frame_apply_command_count): Update.
5952 * rust-exp.y (rust_lex_exception_test): Update.
5953 * riscv-tdep.c (riscv_print_one_register_info): Update.
5954 * remote.c (remote_target::enable_btrace): Update.
5955 * record-btrace.c (record_btrace_enable_warn): Update.
5956 * python/py-utils.c (gdbpy_convert_exception): Update.
5957 * printcmd.c (do_one_display, print_variable_and_value): Update.
5958 * mi/mi-main.c (mi_print_exception): Update.
5959 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
5960 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5961 * linux-nat.c (linux_nat_target::attach): Update.
5962 * linux-fork.c (class scoped_switch_fork_info): Update.
5963 * infrun.c (displaced_step_prepare): Update.
5964 * infcall.c (call_function_by_hand_dummy): Update.
5965 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
5966 * gnu-v3-abi.c (print_one_vtable): Update.
5967 * frame.c (get_prev_frame_always): Update.
5968 * f-valprint.c (info_common_command_for_block): Update.
5969 * exec.c (try_open_exec_file): Update.
5970 * exceptions.c (print_exception, exception_print)
5971 (exception_fprintf, exception_print_same): Update.
5972 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
5973 * dwarf-index-cache.c (index_cache::store)
5974 (index_cache::lookup_gdb_index): Update.
5975 * darwin-nat.c (maybe_cache_shell): Update.
5976 * cp-valprint.c (cp_print_value_fields): Update.
5977 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
5978 (gcc_cplus_symbol_address): Update.
5979 * compile/compile-c-symbols.c (gcc_convert_symbol)
5980 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
5981 * common/selftest.c: Update.
5982 * common/common-exceptions.h (struct gdb_exception) <message>: Now
5983 a std::string.
5984 (exception_try_scope_entry, exception_try_scope_exit): Don't
5985 declare.
5986 (struct exception_try_scope): Remove.
5987 (TRY): Don't use exception_try_scope.
5988 (struct gdb_exception): Add constructor, operator=.
5989 <what>: New method.
5990 (struct gdb_exception_RETURN_MASK_ALL)
5991 (struct gdb_exception_RETURN_MASK_ERROR)
5992 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
5993 (struct gdb_quit_bad_alloc): Update.
5994 * common/common-exceptions.c (exception_none): Change
5995 initializer.
5996 (struct catcher) <state, exception>: Initialize inline.
5997 <prev>: Remove member.
5998 (current_catcher): Remove.
5999 (catchers): New global.
6000 (exceptions_state_mc_init): Simplify.
6001 (catcher_pop): Remove.
6002 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6003 (try_scope_depth, exception_try_scope_entry)
6004 (exception_try_scope_exit): Remove.
6005 (throw_exception_sjlj): Update.
6006 (exception_messages, exception_messages_size): Remove.
6007 (throw_it): Simplify.
6008 (gdb_exception_sliced_copy): Remove.
6009 (throw_exception_cxx): Update.
6010 * cli/cli-script.c (script_from_file): Update.
6011 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6012 Update.
6013 * ada-valprint.c (ada_val_print): Update.
6014 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6015 (create_excep_cond_exprs): Update.
6016
c5c10118
TT
60172019-04-08 Tom Tromey <tom@tromey.com>
6018
6019 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6020 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6021 (TRY, CATCH, END_CATCH): Remove some definitions.
6022 * common/common-exceptions.c: Don't use GDB_XCPT.
6023 (catcher_list_size): Remove.
6024 (throw_exception, throw_it): Simplify.
6025
4de283e4
TT
60262019-04-05 Tom Tromey <tom@tromey.com>
6027
6028 Revert the header-sorting patch.
6029 * ft32-tdep.c: Revert.
6030 * frv-tdep.c: Revert.
6031 * frv-linux-tdep.c: Revert.
6032 * frame.c: Revert.
6033 * frame-unwind.c: Revert.
6034 * frame-base.c: Revert.
6035 * fork-child.c: Revert.
6036 * findvar.c: Revert.
6037 * findcmd.c: Revert.
6038 * filesystem.c: Revert.
6039 * filename-seen-cache.h: Revert.
6040 * filename-seen-cache.c: Revert.
6041 * fbsd-tdep.c: Revert.
6042 * fbsd-nat.h: Revert.
6043 * fbsd-nat.c: Revert.
6044 * f-valprint.c: Revert.
6045 * f-typeprint.c: Revert.
6046 * f-lang.c: Revert.
6047 * extension.h: Revert.
6048 * extension.c: Revert.
6049 * extension-priv.h: Revert.
6050 * expprint.c: Revert.
6051 * exec.h: Revert.
6052 * exec.c: Revert.
6053 * exceptions.c: Revert.
6054 * event-top.c: Revert.
6055 * event-loop.c: Revert.
6056 * eval.c: Revert.
6057 * elfread.c: Revert.
6058 * dwarf2read.h: Revert.
6059 * dwarf2read.c: Revert.
6060 * dwarf2loc.c: Revert.
6061 * dwarf2expr.h: Revert.
6062 * dwarf2expr.c: Revert.
6063 * dwarf2-frame.c: Revert.
6064 * dwarf2-frame-tailcall.c: Revert.
6065 * dwarf-index-write.h: Revert.
6066 * dwarf-index-write.c: Revert.
6067 * dwarf-index-common.c: Revert.
6068 * dwarf-index-cache.h: Revert.
6069 * dwarf-index-cache.c: Revert.
6070 * dummy-frame.c: Revert.
6071 * dtrace-probe.c: Revert.
6072 * disasm.h: Revert.
6073 * disasm.c: Revert.
6074 * disasm-selftests.c: Revert.
6075 * dictionary.c: Revert.
6076 * dicos-tdep.c: Revert.
6077 * demangle.c: Revert.
6078 * dcache.h: Revert.
6079 * dcache.c: Revert.
6080 * darwin-nat.h: Revert.
6081 * darwin-nat.c: Revert.
6082 * darwin-nat-info.c: Revert.
6083 * d-valprint.c: Revert.
6084 * d-namespace.c: Revert.
6085 * d-lang.c: Revert.
6086 * ctf.c: Revert.
6087 * csky-tdep.c: Revert.
6088 * csky-linux-tdep.c: Revert.
6089 * cris-tdep.c: Revert.
6090 * cris-linux-tdep.c: Revert.
6091 * cp-valprint.c: Revert.
6092 * cp-support.c: Revert.
6093 * cp-namespace.c: Revert.
6094 * cp-abi.c: Revert.
6095 * corelow.c: Revert.
6096 * corefile.c: Revert.
6097 * continuations.c: Revert.
6098 * completer.h: Revert.
6099 * completer.c: Revert.
6100 * complaints.c: Revert.
6101 * coffread.c: Revert.
6102 * coff-pe-read.c: Revert.
6103 * cli-out.h: Revert.
6104 * cli-out.c: Revert.
6105 * charset.c: Revert.
6106 * c-varobj.c: Revert.
6107 * c-valprint.c: Revert.
6108 * c-typeprint.c: Revert.
6109 * c-lang.c: Revert.
6110 * buildsym.c: Revert.
6111 * buildsym-legacy.c: Revert.
6112 * build-id.h: Revert.
6113 * build-id.c: Revert.
6114 * btrace.c: Revert.
6115 * bsd-uthread.c: Revert.
6116 * breakpoint.h: Revert.
6117 * breakpoint.c: Revert.
6118 * break-catch-throw.c: Revert.
6119 * break-catch-syscall.c: Revert.
6120 * break-catch-sig.c: Revert.
6121 * blockframe.c: Revert.
6122 * block.c: Revert.
6123 * bfin-tdep.c: Revert.
6124 * bfin-linux-tdep.c: Revert.
6125 * bfd-target.c: Revert.
6126 * bcache.c: Revert.
6127 * ax-general.c: Revert.
6128 * ax-gdb.h: Revert.
6129 * ax-gdb.c: Revert.
6130 * avr-tdep.c: Revert.
6131 * auxv.c: Revert.
6132 * auto-load.c: Revert.
6133 * arm-wince-tdep.c: Revert.
6134 * arm-tdep.c: Revert.
6135 * arm-symbian-tdep.c: Revert.
6136 * arm-pikeos-tdep.c: Revert.
6137 * arm-obsd-tdep.c: Revert.
6138 * arm-nbsd-tdep.c: Revert.
6139 * arm-nbsd-nat.c: Revert.
6140 * arm-linux-tdep.c: Revert.
6141 * arm-linux-nat.c: Revert.
6142 * arm-fbsd-tdep.c: Revert.
6143 * arm-fbsd-nat.c: Revert.
6144 * arm-bsd-tdep.c: Revert.
6145 * arch-utils.c: Revert.
6146 * arc-tdep.c: Revert.
6147 * arc-newlib-tdep.c: Revert.
6148 * annotate.h: Revert.
6149 * annotate.c: Revert.
6150 * amd64-windows-tdep.c: Revert.
6151 * amd64-windows-nat.c: Revert.
6152 * amd64-tdep.c: Revert.
6153 * amd64-sol2-tdep.c: Revert.
6154 * amd64-obsd-tdep.c: Revert.
6155 * amd64-obsd-nat.c: Revert.
6156 * amd64-nbsd-tdep.c: Revert.
6157 * amd64-nbsd-nat.c: Revert.
6158 * amd64-nat.c: Revert.
6159 * amd64-linux-tdep.c: Revert.
6160 * amd64-linux-nat.c: Revert.
6161 * amd64-fbsd-tdep.c: Revert.
6162 * amd64-fbsd-nat.c: Revert.
6163 * amd64-dicos-tdep.c: Revert.
6164 * amd64-darwin-tdep.c: Revert.
6165 * amd64-bsd-nat.c: Revert.
6166 * alpha-tdep.c: Revert.
6167 * alpha-obsd-tdep.c: Revert.
6168 * alpha-nbsd-tdep.c: Revert.
6169 * alpha-mdebug-tdep.c: Revert.
6170 * alpha-linux-tdep.c: Revert.
6171 * alpha-linux-nat.c: Revert.
6172 * alpha-bsd-tdep.c: Revert.
6173 * alpha-bsd-nat.c: Revert.
6174 * aix-thread.c: Revert.
6175 * agent.c: Revert.
6176 * addrmap.c: Revert.
6177 * ada-varobj.c: Revert.
6178 * ada-valprint.c: Revert.
6179 * ada-typeprint.c: Revert.
6180 * ada-tasks.c: Revert.
6181 * ada-lang.c: Revert.
6182 * aarch64-tdep.c: Revert.
6183 * aarch64-ravenscar-thread.c: Revert.
6184 * aarch64-newlib-tdep.c: Revert.
6185 * aarch64-linux-tdep.c: Revert.
6186 * aarch64-linux-nat.c: Revert.
6187 * aarch64-fbsd-tdep.c: Revert.
6188 * aarch64-fbsd-nat.c: Revert.
6189 * aarch32-linux-nat.c: Revert.
6190
d55e5aa6
TT
61912019-04-05 Tom Tromey <tom@tromey.com>
6192
6193 * ft32-tdep.c: Sort headers.
6194 * frv-tdep.c: Sort headers.
6195 * frv-linux-tdep.c: Sort headers.
6196 * frame.c: Sort headers.
6197 * frame-unwind.c: Sort headers.
6198 * frame-base.c: Sort headers.
6199 * fork-child.c: Sort headers.
6200 * findvar.c: Sort headers.
6201 * findcmd.c: Sort headers.
6202 * filesystem.c: Sort headers.
6203 * filename-seen-cache.h: Sort headers.
6204 * filename-seen-cache.c: Sort headers.
6205 * fbsd-tdep.c: Sort headers.
6206 * fbsd-nat.h: Sort headers.
6207 * fbsd-nat.c: Sort headers.
6208 * f-valprint.c: Sort headers.
6209 * f-typeprint.c: Sort headers.
6210 * f-lang.c: Sort headers.
6211 * extension.h: Sort headers.
6212 * extension.c: Sort headers.
6213 * extension-priv.h: Sort headers.
6214 * expprint.c: Sort headers.
6215 * exec.h: Sort headers.
6216 * exec.c: Sort headers.
6217 * exceptions.c: Sort headers.
6218 * event-top.c: Sort headers.
6219 * event-loop.c: Sort headers.
6220 * eval.c: Sort headers.
6221 * elfread.c: Sort headers.
6222 * dwarf2read.h: Sort headers.
6223 * dwarf2read.c: Sort headers.
6224 * dwarf2loc.c: Sort headers.
6225 * dwarf2expr.h: Sort headers.
6226 * dwarf2expr.c: Sort headers.
6227 * dwarf2-frame.c: Sort headers.
6228 * dwarf2-frame-tailcall.c: Sort headers.
6229 * dwarf-index-write.h: Sort headers.
6230 * dwarf-index-write.c: Sort headers.
6231 * dwarf-index-common.c: Sort headers.
6232 * dwarf-index-cache.h: Sort headers.
6233 * dwarf-index-cache.c: Sort headers.
6234 * dummy-frame.c: Sort headers.
6235 * dtrace-probe.c: Sort headers.
6236 * disasm.h: Sort headers.
6237 * disasm.c: Sort headers.
6238 * disasm-selftests.c: Sort headers.
6239 * dictionary.c: Sort headers.
6240 * dicos-tdep.c: Sort headers.
6241 * demangle.c: Sort headers.
6242 * dcache.h: Sort headers.
6243 * dcache.c: Sort headers.
6244 * darwin-nat.h: Sort headers.
6245 * darwin-nat.c: Sort headers.
6246 * darwin-nat-info.c: Sort headers.
6247 * d-valprint.c: Sort headers.
6248 * d-namespace.c: Sort headers.
6249 * d-lang.c: Sort headers.
6250 * ctf.c: Sort headers.
6251 * csky-tdep.c: Sort headers.
6252 * csky-linux-tdep.c: Sort headers.
6253 * cris-tdep.c: Sort headers.
6254 * cris-linux-tdep.c: Sort headers.
6255 * cp-valprint.c: Sort headers.
6256 * cp-support.c: Sort headers.
6257 * cp-namespace.c: Sort headers.
6258 * cp-abi.c: Sort headers.
6259 * corelow.c: Sort headers.
6260 * corefile.c: Sort headers.
6261 * continuations.c: Sort headers.
6262 * completer.h: Sort headers.
6263 * completer.c: Sort headers.
6264 * complaints.c: Sort headers.
6265 * coffread.c: Sort headers.
6266 * coff-pe-read.c: Sort headers.
6267 * cli-out.h: Sort headers.
6268 * cli-out.c: Sort headers.
6269 * charset.c: Sort headers.
6270 * c-varobj.c: Sort headers.
6271 * c-valprint.c: Sort headers.
6272 * c-typeprint.c: Sort headers.
6273 * c-lang.c: Sort headers.
6274 * buildsym.c: Sort headers.
6275 * buildsym-legacy.c: Sort headers.
6276 * build-id.h: Sort headers.
6277 * build-id.c: Sort headers.
6278 * btrace.c: Sort headers.
6279 * bsd-uthread.c: Sort headers.
6280 * breakpoint.h: Sort headers.
6281 * breakpoint.c: Sort headers.
6282 * break-catch-throw.c: Sort headers.
6283 * break-catch-syscall.c: Sort headers.
6284 * break-catch-sig.c: Sort headers.
6285 * blockframe.c: Sort headers.
6286 * block.c: Sort headers.
6287 * bfin-tdep.c: Sort headers.
6288 * bfin-linux-tdep.c: Sort headers.
6289 * bfd-target.c: Sort headers.
6290 * bcache.c: Sort headers.
6291 * ax-general.c: Sort headers.
6292 * ax-gdb.h: Sort headers.
6293 * ax-gdb.c: Sort headers.
6294 * avr-tdep.c: Sort headers.
6295 * auxv.c: Sort headers.
6296 * auto-load.c: Sort headers.
6297 * arm-wince-tdep.c: Sort headers.
6298 * arm-tdep.c: Sort headers.
6299 * arm-symbian-tdep.c: Sort headers.
6300 * arm-pikeos-tdep.c: Sort headers.
6301 * arm-obsd-tdep.c: Sort headers.
6302 * arm-nbsd-tdep.c: Sort headers.
6303 * arm-nbsd-nat.c: Sort headers.
6304 * arm-linux-tdep.c: Sort headers.
6305 * arm-linux-nat.c: Sort headers.
6306 * arm-fbsd-tdep.c: Sort headers.
6307 * arm-fbsd-nat.c: Sort headers.
6308 * arm-bsd-tdep.c: Sort headers.
6309 * arch-utils.c: Sort headers.
6310 * arc-tdep.c: Sort headers.
6311 * arc-newlib-tdep.c: Sort headers.
6312 * annotate.h: Sort headers.
6313 * annotate.c: Sort headers.
6314 * amd64-windows-tdep.c: Sort headers.
6315 * amd64-windows-nat.c: Sort headers.
6316 * amd64-tdep.c: Sort headers.
6317 * amd64-sol2-tdep.c: Sort headers.
6318 * amd64-obsd-tdep.c: Sort headers.
6319 * amd64-obsd-nat.c: Sort headers.
6320 * amd64-nbsd-tdep.c: Sort headers.
6321 * amd64-nbsd-nat.c: Sort headers.
6322 * amd64-nat.c: Sort headers.
6323 * amd64-linux-tdep.c: Sort headers.
6324 * amd64-linux-nat.c: Sort headers.
6325 * amd64-fbsd-tdep.c: Sort headers.
6326 * amd64-fbsd-nat.c: Sort headers.
6327 * amd64-dicos-tdep.c: Sort headers.
6328 * amd64-darwin-tdep.c: Sort headers.
6329 * amd64-bsd-nat.c: Sort headers.
6330 * alpha-tdep.c: Sort headers.
6331 * alpha-obsd-tdep.c: Sort headers.
6332 * alpha-nbsd-tdep.c: Sort headers.
6333 * alpha-mdebug-tdep.c: Sort headers.
6334 * alpha-linux-tdep.c: Sort headers.
6335 * alpha-linux-nat.c: Sort headers.
6336 * alpha-bsd-tdep.c: Sort headers.
6337 * alpha-bsd-nat.c: Sort headers.
6338 * aix-thread.c: Sort headers.
6339 * agent.c: Sort headers.
6340 * addrmap.c: Sort headers.
6341 * ada-varobj.c: Sort headers.
6342 * ada-valprint.c: Sort headers.
6343 * ada-typeprint.c: Sort headers.
6344 * ada-tasks.c: Sort headers.
6345 * ada-lang.c: Sort headers.
6346 * aarch64-tdep.c: Sort headers.
6347 * aarch64-ravenscar-thread.c: Sort headers.
6348 * aarch64-newlib-tdep.c: Sort headers.
6349 * aarch64-linux-tdep.c: Sort headers.
6350 * aarch64-linux-nat.c: Sort headers.
6351 * aarch64-fbsd-tdep.c: Sort headers.
6352 * aarch64-fbsd-nat.c: Sort headers.
6353 * aarch32-linux-nat.c: Sort headers.
6354
699bd4cf
TT
63552019-04-04 Tom Tromey <tom@tromey.com>
6356
6357 * varobj.c (varobj_create): Update.
6358 * rust-exp.y (struct rust_parser) <update_innermost_block,
6359 lookup_symbol>: New methods.
6360 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6361 Rename.
6362 (rust_parser::rust_lookup_type)
6363 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6364 * printcmd.c (display_command, do_one_display): Update.
6365 * parser-defs.h (struct parser_state) <parser_state>: Add
6366 "tracker" parameter.
6367 (block_tracker): New member.
6368 (class innermost_block_tracker) <innermost_block_tracker>: Add
6369 "types" parameter.
6370 <reset>: Remove method.
6371 (innermost_block): Don't declare.
6372 (null_post_parser): Update.
6373 * parse.c (innermost_block): Remove global.
6374 (write_dollar_variable): Update.
6375 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6376 Remove "tracker_types" parameter.
6377 (parse_expression): Add "tracker" parameter.
6378 (parse_expression_for_completion): Update.
6379 (null_post_parser): Add "tracker" parameter.
6380 * p-exp.y: Update rules.
6381 * m2-exp.y: Update rules.
6382 * language.h (struct language_defn) <la_post_parser>: Add
6383 "tracker" parameter.
6384 * go-exp.y: Update rules.
6385 * f-exp.y: Update rules.
6386 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6387 parameter.
6388 * d-exp.y: Update rules.
6389 * c-exp.y: Update rules.
6390 * breakpoint.c (set_breakpoint_condition): Create an
6391 innermost_block_tracker.
6392 (watch_command_1): Likewise.
6393 * ada-lang.c (resolve): Add "tracker" parameter.
6394 (resolve_subexp): Likewise.
6395 * ada-exp.y (write_var_from_sym): Update.
6396
dac43e32
TT
63972019-04-04 Tom Tromey <tom@tromey.com>
6398
6399 * type-stack.h: New file.
6400 * type-stack.c: New file.
6401 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6402 type-stack.h.
6403 (insert_into_type_stack, insert_type, push_type, push_type_int)
6404 (insert_type_address_space, pop_type, pop_type_int)
6405 (pop_typelist, pop_type_stack, append_type_stack)
6406 (push_type_stack, get_type_stack, push_typelist)
6407 (follow_type_instance_flags, follow_types): Don't declare.
6408 * parse.c (type_stack): Remove global.
6409 (parse_exp_in_context): Update.
6410 (insert_into_type_stack, insert_type, push_type, push_type_int)
6411 (insert_type_address_space, pop_type, pop_type_int)
6412 (pop_typelist, pop_type_stack, append_type_stack)
6413 (push_type_stack, get_type_stack, push_typelist)
6414 (follow_type_instance_flags, follow_types): Remove (moved to
6415 type-stack.c).
6416 * f-exp.y (type_stack): New global.
6417 Update rules.
6418 (push_kind_type, f_parse): Update.
6419 * d-exp.y (type_stack): New global.
6420 Update rules.
6421 (d_parse): Update.
6422 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6423 Update rules.
6424 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6425 (HFILES_NO_SRCDIR): Add type-stack.h.
6426
2a612529
TT
64272019-04-04 Tom Tromey <tom@tromey.com>
6428
6429 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6430 (rust_parser::convert_ast_to_expression, rust_parse)
6431 (rust_lex_test_completion, rust_lex_tests): Update.
6432 * parser-defs.h (struct expr_completion_state): New.
6433 (struct parser_state) <parser_state>: Add completion parameter.
6434 <mark_struct_expression, mark_completion_tag>: New methods.
6435 <parse_completion, m_completion_state>: New members.
6436 (prefixify_expression, null_post_parser): Update.
6437 (mark_struct_expression, mark_completion_tag): Don't declare.
6438 * parse.c (parse_completion, expout_last_struct)
6439 (expout_tag_completion_type, expout_completion_name): Remove
6440 globals.
6441 (parser_state::mark_struct_expression)
6442 (parser_state::mark_completion_tag): Now methods.
6443 (prefixify_expression): Add last_struct parameter.
6444 (prefixify_subexp): Likewise.
6445 (parse_exp_1): Update.
6446 (parse_exp_in_context): Add cstate parameter. Update.
6447 (parse_expression_for_completion): Create an
6448 expr_completion_state.
6449 (null_post_parser): Add "completion" parameter.
6450 * p-exp.y: Update rules.
6451 (yylex): Update.
6452 * language.h (struct language_defn) <la_post_parser>: Add
6453 "completing" parameter.
6454 * go-exp.y: Update rules.
6455 (lex_one_token): Update.
6456 * expression.h (parse_completion): Don't declare.
6457 * d-exp.y: Update rules.
6458 (lex_one_token): Update rules.
6459 * c-exp.y: Update rules.
6460 (lex_one_token): Update.
6461 * ada-lang.c (resolve): Add "parse_completion" parameter.
6462 (resolve_subexp): Likewise.
6463 (ada_resolve_function): Likewise.
6464
43476f0b
TT
64652019-04-04 Tom Tromey <tom@tromey.com>
6466
6467 * parser-defs.h (struct parser_state) <start_arglist,
6468 end_arglist>: New methods.
6469 <arglist_len, m_funcall_chain>: New members.
6470 (arglist_len, start_arglist, end_arglist): Don't declare.
6471 * parse.c (arglist_len, funcall_chain): Remove global.
6472 (start_arglist, end_arglist): Remove functions.
6473 (parse_exp_in_context): Update.
6474 * p-exp.y: Update rules.
6475 * m2-exp.y: Update rules.
6476 * go-exp.y: Update rules.
6477 * f-exp.y: Update rules.
6478 * d-exp.y: Update rules.
6479 * c-exp.y: Update rules.
6480
5776fca3
TT
64812019-04-04 Tom Tromey <tom@tromey.com>
6482
6483 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6484 lex_operator, push_back>: New methods.
6485 Update all rules.
6486 (rust_parser::lex_hex, lex_escape): Rename and update.
6487 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6488 (rust_parser::lex_operator): Rename and update.
6489 (rust_parser::lex_number, rustyylex, rustyyerror)
6490 (rust_lex_test_init, rust_lex_test_sequence)
6491 (rust_lex_test_push_back, rust_lex_tests): Update.
6492 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6493 parameter.
6494 <lexptr, prev_lexptr>: New members.
6495 (lexptr, prev_lexptr): Don't declare.
6496 * parse.c (lexptr, prev_lexptr): Remove globals.
6497 (parse_exp_in_context): Update.
6498 * p-exp.y (yylex, yyerror): Update.
6499 * m2-exp.y (parse_number, yylex, yyerror): Update.
6500 * go-exp.y (lex_one_token, yyerror): Update.
6501 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6502 * d-exp.y (lex_one_token, yyerror): Update.
6503 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6504 (lex_one_token, yyerror): Update.
6505 * ada-lex.l (YY_INPUT): Update.
6506 (rewind_to_char): Update.
6507 * ada-exp.y (yyerror): Update.
6508
8621b685
TT
65092019-04-04 Tom Tromey <tom@tromey.com>
6510
6511 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6512 * parser-defs.h (struct parser_state) <parser_state>: Add new
6513 parameter.
6514 <comma_terminates>: New member.
6515 (comma_terminates): Don't declare global.
6516 * parse.c (comma_terminates): Remove global.
6517 (parse_exp_in_context): Update.
6518 * p-exp.y (yylex): Update.
6519 * m2-exp.y (yylex): Update.
6520 * go-exp.y (lex_one_token): Update.
6521 * f-exp.y (yylex): Update.
6522 * d-exp.y (lex_one_token): Update.
6523 * c-exp.y (lex_one_token): Update.
6524 * ada-lex.l: Update.
6525
28aaf3fd
TT
65262019-04-04 Tom Tromey <tom@tromey.com>
6527
6528 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6529 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6530 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6531 * parser-defs.h (paren_depth): Don't declare.
6532 * parse.c (paren_depth): Remove global.
6533 (parse_exp_in_context): Update.
6534 * p-exp.y (paren_depth): New global.
6535 (pascal_parse): Initialize it.
6536 * m2-exp.y (paren_depth): New global.
6537 (m2_parse): Initialize it.
6538 * go-exp.y (paren_depth): New global.
6539 (go_parse): Initialize it.
6540 * f-exp.y (paren_depth): New global.
6541 (f_parse): Initialize it.
6542 * d-exp.y (paren_depth): New global.
6543 (d_parse): Initialize it.
6544 * c-exp.y (paren_depth): New global.
6545 (c_parse): Initialize it.
6546 * ada-lex.l (paren_depth): New global.
6547 (lexer_init): Initialize it.
6548
1e58a4a4
TT
65492019-04-04 Tom Tromey <tom@tromey.com>
6550
6551 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6552 (rust_parser::convert_ast_to_type)
6553 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6554 * parser-defs.h (struct parser_state) <parser_state>: Add
6555 parameters. Initialize new members.
6556 <expression_context_block, expression_context_pc>: New members.
6557 * parse.c (expression_context_block, expression_context_pc):
6558 Remove globals.
6559 (parse_exp_in_context): Update.
6560 * p-exp.y: Update all rules.
6561 (yylex): Update.
6562 * m2-exp.y: Update all rules.
6563 (yylex): Update.
6564 * go-exp.y (yylex): Update.
6565 * f-exp.y (yylex): Update.
6566 * d-exp.y: Update all rules.
6567 (yylex): Update.
6568 * c-exp.y: Update all rules.
6569 (lex_one_token, classify_name, yylex, c_parse): Update.
6570 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6571
37eedb39
TT
65722019-04-04 Tom Tromey <tom@tromey.com>
6573
6574 * gdbarch.h, gdbarch.c: Rebuild.
6575 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6576 * stap-probe.h:
6577 (struct stap_parse_info): Replace "parser_state" with
6578 "expr_builder".
6579 * parser-defs.h (struct expr_builder): Rename from "parser_state".
6580 (parser_state): New class.
6581 * parse.c (expr_builder): Rename.
6582 (expr_builder::release): Rename.
6583 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
6584 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
6585 (write_exp_elt_longcst, write_exp_elt_floatcst)
6586 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
6587 (write_exp_string_vector, write_exp_bitstring)
6588 (write_exp_msymbol, mark_struct_expression)
6589 (write_dollar_variable)
6590 (insert_type_address_space, increase_expout_size): Replace
6591 "parser_state" with "expr_builder".
6592 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
6593 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
6594 "parser_state" with "expr_builder".
6595
73923d7e
TT
65962019-04-04 Tom Tromey <tom@tromey.com>
6597
6598 * rust-exp.y: Replace "parse_language" with method call.
6599 * p-exp.y:
6600 (yylex): Replace "parse_language" with method call.
6601 * m2-exp.y:
6602 (yylex): Replace "parse_language" with method call.
6603 * go-exp.y (classify_name): Replace "parse_language" with method
6604 call.
6605 * f-exp.y (yylex): Replace "parse_language" with method call.
6606 * d-exp.y (lex_one_token): Replace "parse_language" with method
6607 call.
6608 * c-exp.y:
6609 (lex_one_token, classify_name, yylex): Replace "parse_language"
6610 with method call.
6611 * ada-exp.y (find_primitive_type, type_char)
6612 (type_system_address): Replace "parse_language" with method call.
6613
fa9f5be6
TT
66142019-04-04 Tom Tromey <tom@tromey.com>
6615
6616 * rust-exp.y: Replace "parse_gdbarch" with method call.
6617 * parse.c (write_dollar_variable, insert_type_address_space):
6618 Replace "parse_gdbarch" with method call.
6619 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
6620 call.
6621 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
6622 call.
6623 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
6624 "parse_gdbarch" with method call.
6625 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
6626 with method call.
6627 * f-exp.y (parse_type, parse_f_type, yylex): Replace
6628 "parse_gdbarch" with method call.
6629 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
6630 "parse_gdbarch" with method call.
6631 * c-exp.y (parse_type, parse_number, classify_name): Replace
6632 "parse_gdbarch" with method call.
6633 * ada-lex.l: Replace "parse_gdbarch" with method call.
6634 * ada-exp.y (parse_type, find_primitive_type, type_char)
6635 (type_system_address): Replace "parse_gdbarch" with method call.
6636
1201a264
TT
66372019-04-04 Tom Tromey <tom@tromey.com>
6638
6639 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
6640 * stap-probe.c (stap_parse_argument): Update.
6641 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
6642 initial_size parameter.
6643 * rust-exp.y (rust_lex_tests): Update.
6644 * parse.c (parser_state): Update.
6645 (parse_exp_in_context): Update.
6646 * parser-defs.h (struct parser_state) <parser_state>: Remove
6647 "initial_size" parameter.
6648
e3980ce2
TT
66492019-04-04 Tom Tromey <tom@tromey.com>
6650
6651 * parser-defs.h (increase_expout_size): Don't declare.
6652 * parse.c (increase_expout_size): Now static.
6653
e9f8e3f1
TS
66542019-04-04 Thomas Schwinge <thomas@codesourcery.com>
6655
6656 * gnu-nat.c (gnu_nat_target::wait): Fix
6657 target_waitstatus_to_string call.
6658
d7df6549
AB
66592019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
6660
6661 * eval.c (evaluate_subexp_standard): Handle internal functions
6662 during Fortran function call handling.
6663
8bdc1658
AB
66642019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
6665
6666 * NEWS: Mention new internal functions.
6667 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
6668 (read_base_type): Use dwarf2_init_complex_target_type.
6669 * value.c (creal_internal_fn): New function.
6670 (cimag_internal_fn): New function.
6671 (_initialize_values): Register new internal functions.
6672
c29705b7
PW
66732019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6674
6675 * infrun.c (stop_all_threads): If debug_infrun, always
6676 trace the wait status after wait_one, using
6677 target_waitstatus_to_string and target_pid_to_str.
6678 (handle_inferior_event): Replace various trace of
6679 wait status kind by a single trace.
6680 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
6681 wait status kind image by target_waitstatus_to_string.
6682 * target/waitstatus.c (target_waitstatus_to_string): Fix
6683 obsolete comment.
6684
05caa1d2
TT
66852019-04-01 Tom Tromey <tromey@adacore.com>
6686
6687 PR symtab/23331:
6688 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
6689
9d1447e0
SDJ
66902019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
6691 Pedro Alves <palves@redhat.com>
6692
6693 * top.c (quit_force): Call 'finalize_values'.
6694 * value.c (finalize_values): New function.
6695 * value.h (finalize_values): Declare.
6696
7734102d
EZ
66972019-03-30 Eli Zaretskii <eliz@gnu.org>
6698
6699 * NEWS: Announce $_gdb_major and $_gdb_minor.
6700
6701 * top.c (init_gdb_version_vars): New function.
6702 (gdb_init): Call init_gdb_version_vars.
6703
188e1fa9
TT
67042019-03-29 Tom Tromey <tromey@adacore.com>
6705
6706 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
6707 help text. Remove dead code.
6708
2880242d
KS
67092019-03-29 Keith Seitz <keiths@redhat.com>
6710
6711 From Siddhesh Poyarekar:
6712 * f-lang.h (f77_get_upperbound): Return LONGEST.
6713 (f77_get_lowerbound): Likewise.
6714 * f-typeprint.c (f_type_print_varspec_suffix): Expand
6715 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
6716 print them.
6717 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
6718 plongest to format print it.
6719 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
6720 (f77_get_upperbound): Likewise.
6721 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
6722 LOWER_BOUND to LONGEST.
6723 (f77_create_arrayprint_offset_tbl): Likewise.
6724
cc1defb1
KS
67252019-03-29 Keith Seitz <keiths@redhat.com>
6726
6727 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6728 %s/pulongest for TYPE_LENGTH instead of %d in format
6729 strings.
6730 * ada-typerint.c (ada_print_type): Likewise.
6731 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
6732 * compile/compile-c-support.c (generate_register_struct): Likewise.
6733 * gdbtypes.c (recursive_dump_type): Likewise.
6734 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
6735 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
6736 instead of %d in format strings.
6737 * riscv-tdep.c (riscv_type_alignment): Cast second argument
6738 to std::min to ULONGEST.
6739 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
6740 instead of %d in format strings.
6741 * tracepoint.c (info_scope_command): Likewise.
6742 * typeprint.c (print_offset_data::update)
6743 (print_offset_data::finish): Likewise.
6744 * xtensa-tdep.c (xtensa_store_return_value)
6745 (xtensa_push_dummy_call): Likewise.
6746
e432ccf1
JT
67472019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
6748
6749 * windows-nat.c (display_selector): Fixed format specifications
6750 for 64-bit Cygwin.
6751
65d2b333
PW
67522019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6753
6754 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
6755
f489207e
SL
67562019-03-28 Sandra Loosemore <sandra@codesourcery.com>
6757
6758 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
6759 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
6760 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
6761 (nios2_linux_init_abi): Install it.
6762
bffa1015
AH
67632019-03-28 Alan Hayward <alan.hayward@arm.com>
6764
6765 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
6766
fc96163a
AH
67672019-03-28 Alan Hayward <alan.hayward@arm.com>
6768
6769 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
6770
20dc7e9b
PW
67712019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6772 Tom Tromey <tromey@adacore.com>
6773
6774 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
6775
7f5331a8
JB
67762019-03-26 Joel Brobecker <brobecker@adacore.com>
6777
6778 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
6779 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
6780 method to compute the bounds of range types. Also print "[evaluated]"
6781 if the bounds' values come from a dynamic evaluation.
6782
18c77628
AB
67832019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
6784
6785 * cp-valprint.c (cp_print_value_fields): Don't print trailing
6786 whitespace when pretty printing is on.
6787
53c973f2
AH
67882019-03-26 Alan Hayward <alan.hayward@arm.com>
6789
e79be6e5 6790 * ppc-linux-nat.c: Add include.
53c973f2 6791
d851aa71
AH
67922019-03-26 Alan Hayward <alan.hayward@arm.com>
6793
e79be6e5 6794 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 6795
2fe7bab7
AH
67962019-03-26 Alan Hayward <alan.hayward@arm.com>
6797
e79be6e5 6798 * arm-linux-nat.c: Add include.
2fe7bab7 6799
068ef30e
SM
68002019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
6801
6802 * source-cache.c (source_cache::get_source_lines): Re-read
6803 fullname after calling open_source_file.
6804
81a24d04
JB
68052019-03-25 John Baldwin <jhb@FreeBSD.org>
6806
6807 * NEWS: Mention TLS support for FreeBSD.
6808
79e7ae11
TT
68092019-03-25 Tom Tromey <tromey@adacore.com>
6810
6811 * minsyms.c (BUNCH_SIZE): Update comment.
6812 (~minimal_symbol_reader): Remove old comment.
6813 (compact_minimal_symbols): Update comment.
6814 (minimal_symbol_reader::install): Remove old comment. Update
6815 other comments.
6816
d45963c2
AH
68172019-03-25 Alan Hayward <alan.hayward@arm.com>
6818
6819 * s390-linux-nat.c: Add include.
6820
0f83012e
AH
68212019-03-25 Alan Hayward <alan.hayward@arm.com>
6822
6823 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6824 Call linux_get_hwcap.
6825 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6826 Likewise.
6827 (aarch64_linux_get_hwcap): Remove function.
6828 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
6829 declaration.
6830 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
6831 linux_get_hwcap.
6832 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6833 * linux-tdep.c (linux_get_hwcap): Add function.
6834 (linux_get_hwcap2): Likewise.
6835 * linux-tdep.h (linux_get_hwcap): Add declaration.
6836 (linux_get_hwcap2): Likewise.
6837 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
6838 (ppc_linux_get_hwcap2): Likewise.
6839 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
6840 linux_get_hwcap.
6841 (ppc_linux_nat_target::insert_watchpoint): Likewise.
6842 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
6843 (ppc_linux_nat_target::read_description): Likewise.
6844 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
6845 * s390-linux-nat.c: Likewise.
6846 * s390-linux-tdep.c (s390_core_read_description): Likewise.
6847
6640a367
TT
68482019-03-24 Tom Tromey <tom@tromey.com>
6849
6850 * ada-lang.c (standard_lookup): Simplify initialization.
6851 (ada_lookup_symbol_nonlocal): Simplify return.
6852 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
6853 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
6854 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
6855 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
6856 initialization.
6857 * solib.c (solib_global_lookup): Simplify.
6858 * symtab.c (null_block_symbol): Remove.
6859 (symbol_cache_lookup): Simplify returns.
6860 (lookup_language_this): Simplify returns.
6861 (lookup_symbol_aux): Simplify return.
6862 (lookup_local_symbol): Simplify returns.
6863 (lookup_global_symbol_from_objfile): Simplify return.
6864 (lookup_symbol_in_objfile_symtabs)
6865 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
6866 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
6867 (lookup_static_symbol, lookup_global_symbol): Simplify return.
6868 * cp-namespace.c (cp_lookup_bare_symbol)
6869 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
6870 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
6871 (cp_lookup_nested_symbol): Don't use null_block_symbol.
6872 (cp_lookup_symbol_via_imports): Simplify initialization.
6873 (find_symbol_in_baseclass): Likewise.
6874 * symtab.h (null_block_symbol): Remove.
6875 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
6876 (d_lookup_nested_symbol, d_lookup_symbol_imports)
6877 (d_lookup_symbol_module): Likewise.
6878 (find_symbol_in_baseclass): Simplify initialization.
6879
a930ebcd
TT
68802019-03-24 Tom Tromey <tom@tromey.com>
6881
6882 * expression.h: Don't include symtab.h.
6883 (struct block): Forward declare.
6884
582942f4
TT
68852019-03-24 Tom Tromey <tom@tromey.com>
6886
6887 * c-exp.y (typebase): Remove casts.
6888 * gdbtypes.c (lookup_unsigned_typename, )
6889 (lookup_signed_typename): Remove cast.
6890 * eval.c (parse_to_comma_and_eval): Remove cast.
6891 * parse.c (write_dollar_variable): Remove cast.
6892 * block.h (struct block) <superblock>: Now const.
6893 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
6894 * psymtab.c (psym_map_matching_symbols): Make "block" const.
6895 (map_block): Make "block" const.
6896 * symfile.h (struct quick_symbol_functions)
6897 <map_matching_symbols>: Constify block argument to "callback".
6898 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
6899 const.
6900 (find_pc_sect_compunit_symtab): Make "b" const.
6901 (find_symbol_at_address): Likewise.
6902 (search_symbols): Likewise.
6903 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
6904 (dw2_debug_names_lookup_symbol): Likewise.
6905 (dw2_map_matching_symbols): Update.
6906 * p-valprint.c (pascal_val_print): Remove "block".
6907 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
6908 (aux_add_nonlocal_symbols): Make "block" const.
6909 (resolve_subexp): Remove cast.
6910 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
6911 const.
6912 (iterate_over_file_blocks): Likewise.
6913 * f-exp.y (%union) <bval>: Remove.
6914 * coffread.c (patch_opaque_types): Make "b" const.
6915 * spu-tdep.c (spu_catch_start): Make "block" const.
6916 * c-valprint.c (print_unpacked_pointer): Remove "block".
6917 * symmisc.c (dump_symtab_1): Make "b" const.
6918 (block_depth): Make "block" const.
6919 * d-exp.y (%union) <bval>: Remove.
6920 * cp-support.h (cp_lookup_rtti_type): Update.
6921 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
6922 * psymtab.c (psym_lookup_symbol): Make "block" const.
6923 (maintenance_check_psymtabs): Make "b" const.
6924 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
6925 (enumerate_locals, enumerate_args): Update.
6926 * python/py-symtab.c (stpy_global_block): Make "block" const.
6927 (stpy_static_block): Likewise.
6928 * inline-frame.c (block_starting_point_at): Make "new_block"
6929 const.
6930 * block.c (find_block_in_blockvector): Make return type const.
6931 (blockvector_for_pc_sect): Make "b" const.
6932 (find_block_in_blockvector): Make "b" const.
6933
7ad417dd
TT
69342019-03-23 Tom Tromey <tom@tromey.com>
6935
6936 * varobj.c (varobj_create): Update.
6937 * symfile.c (clear_symtab_users): Don't reset innermost_block.
6938 * printcmd.c (display_command, do_one_display): Don't reset
6939 innermost_block.
6940 * parser-defs.h (enum innermost_block_tracker_type): Move to
6941 expression.h.
6942 (innermost_block): Update comment.
6943 * parse.c (parse_exp_1): Add tracker_types parameter.
6944 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
6945 tracker_types parameter. Reset innermost_block.
6946 (parse_exp_in_context): Remove.
6947 (parse_expression_for_completion): Update.
6948 * objfiles.c (~objfile): Don't reset expression_context_block or
6949 innermost_block.
6950 * expression.h (enum innermost_block_tracker_type): Move from
6951 parser-defs.h.
6952 (parse_exp_1): Add tracker_types parameter.
6953 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
6954 reset innermost_block.
6955
b366c208
TT
69562019-03-23 Tom Tromey <tom@tromey.com>
6957
6958 * objfiles.h: Include bcache.h.
6959
9bb9b2f9
TT
69602019-03-23 Tom Tromey <tom@tromey.com>
6961
6962 * linespec.c (get_current_search_block): Use
6963 scoped_restore_current_language.
6964 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
6965
59c28372
AH
69662019-03-22 Alan Hayward <alan.hayward@arm.com>
6967 Jiong Wang <jiong.wang@arm.com>
6968
6969 * aarch64-linux-tdep.c
6970 (aarch64_linux_iterate_over_regset_sections): Check for pauth
6971 section.
6972 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
6973
17e116a7
AH
69742019-03-22 Alan Hayward <alan.hayward@arm.com>
6975 Jiong Wang <jiong.wang@arm.com>
6976
6977 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
6978 instructions.
6979 (aarch64_analyze_prologue_test): Add PACIASP test.
6980 (aarch64_prologue_prev_register): Unmask PC value.
6981
11e1b75f
AH
69822019-03-22 Alan Hayward <alan.hayward@arm.com>
6983 Jiong Wang <jiong.wang@arm.com>
6984
6985 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
6986 (aarch64_dwarf2_prev_register): Unmask PC value.
6987 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
6988 (aarch64_execute_dwarf_cfa_vendor_op): Check for
6989 DW_CFA_AARCH64_negate_ra_state.
6990 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
6991
34dcc7cf
AH
69922019-03-22 Alan Hayward <alan.hayward@arm.com>
6993 Jiong Wang <jiong.wang@arm.com>
6994
6995 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
6996 registers.
6997 (aarch64_pseudo_register_name): Likewise.
6998 (aarch64_pseudo_register_type): Likewise.
6999 (aarch64_pseudo_register_reggroup_p): Likewise.
7000 (aarch64_gdbarch_init): Add pauth registers.
7001 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7002 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7003 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7004 (struct gdbarch_tdep): Add regnum for ra_state.
7005
1ef53e6b
AH
70062019-03-22 Alan Hayward <alan.hayward@arm.com>
7007 Jiong Wang <jiong.wang@arm.com>
7008
7009 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7010
76bed0fd
AH
70112019-03-22 Alan Hayward <alan.hayward@arm.com>
7012 Jiong Wang <jiong.wang@arm.com>
7013
7014 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7015 function.
7016 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7017 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7018 (aarch64_gdbarch_init): Add puth registers.
7019 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7020 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7021 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7022
ee4fbcfa
AH
70232019-03-22 Alan Hayward <alan.hayward@arm.com>
7024 Jiong Wang <jiong.wang@arm.com>
7025
7026 * aarch64-linux-nat.c
7027 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7028 * aarch64-linux-tdep.c
7029 (aarch64_linux_core_read_description): Likewise.
7030 (aarch64_linux_get_hwcap): New function.
7031 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7032 (aarch64_linux_get_hwcap): New declaration.
7033
6dc0ebde
AH
70342019-03-22 Alan Hayward <alan.hayward@arm.com>
7035 Jiong Wang <jiong.wang@arm.com>
7036
7037 * aarch64-linux-nat.c
7038 (aarch64_linux_nat_target::read_description): Add pauth param.
7039 * aarch64-linux-tdep.c
7040 (aarch64_linux_core_read_description): Likewise.
7041 * aarch64-tdep.c (struct target_desc): Add in pauth.
7042 (aarch64_read_description): Add pauth param.
7043 (aarch64_gdbarch_init): Likewise.
7044 * aarch64-tdep.h (aarch64_read_description): Likewise.
7045 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7046 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7047 * features/Makefile: Add new files.
7048 * features/aarch64-pauth.c: New file.
7049 * features/aarch64-pauth.xml: New file.
7050
595915c1
TT
70512019-03-20 Tom Tromey <tromey@adacore.com>
7052
7053 * infrun.c (handle_inferior_event): Rename from
7054 handle_inferior_event_1. Create a scoped_value_mark.
7055 (handle_inferior_event): Remove.
7056
4c7d57e7
TT
70572019-03-19 Tom Tromey <tromey@adacore.com>
7058
7059 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7060 * infrun.h (print_stop_event): Add "displays" parameter.
7061 * infrun.c (print_stop_event): Add "displays" parameter.
7062
cb246234
PA
70632019-03-19 Pedro Alves <palves@redhat.com>
7064
7065 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7066 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7067 to -1. Fix TABs vs spaces.
7068 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7069 * tui/tui-out.h (tui_ui_out) Add intro comments.
7070 <m_line, m_start_of_line>: In-class initialize, and add describing
7071 comment.
7072
3a0e45b2
AH
70732019-03-18 Alan Hayward <alan.hayward@arm.com>
7074
7075 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7076 variable names.
7077 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7078
5371b850
PA
70792019-03-18 Pedro Alves <palves@redhat.com>
7080 Eli Zaretskii <eliz@gnu.org>
7081
7082 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7083 m_line and m_start_of_line.
7084
b17c4cd0
EZ
70852019-03-18 Eli Zaretskii <eliz@gnu.org>
7086
7087 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7088 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7089 it returns a newline. This fixes a regression in TU mode, whereby
7090 the next line is output on the same screen line as the user input.
7091
4bd56d18
TT
70922019-03-18 Tom Tromey <tromey@adacore.com>
7093
7094 * minsyms.c (minimal_symbol_reader::install): Remove call to
7095 obstack_blank.
7096
55c10aca
PA
70972019-03-18 Pedro Alves <palves@redhat.com>
7098
7099 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7100 New globals.
7101 (apply_style): New, factored out from ...
7102 (apply_ansi_escape): ... this. Handle reverse video mode.
7103 (tui_set_reverse_mode): New function.
7104 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7105 * tui/tui-winsource.c (tui_show_source_line): Use
7106 tui_set_reverse_mode instead of setting A_STANDOUT.
7107 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7108 New setter methods.
7109
647bb750
HD
71102019-03-18 Hannes Domani <ssbssa@yahoo.de>
7111
7112 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7113 Handle tabs.
7114
bff8c71f
TT
71152019-03-18 Tom Tromey <tromey@adacore.com>
7116
7117 * ada-lang.c (empty_array): Add "high" parameter.
7118 (ada_evaluate_subexp): Update.
7119
58785d98
ST
71202019-03-17 Sergei Trofimovich <siarheit@google.com>
7121
7122 * unittests/string_view-selftests.c: Define
7123 _initialize_string_view_selftests unconditionally.
7124
d4cbef22
ВМ
71252019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7126
7127 PR gdb/24350
7128 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7129
fce4c071
ВМ
71302019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7131
7132 PR gdb/24351
7133 * windows-nat.c (display_selector): Fix format specifiers.
7134
f7f0a123
EZ
71352019-03-17 Eli Zaretskii <eliz@gnu.org>
7136
7137 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7138 tui_refill_source_window instead of tui_refresh_win, to update the
7139 current execution line. This fixes redisplay of the current line
7140 when stepping through the code with "next" or "step".
7141
ab42892f
EZ
71422019-03-16 Eli Zaretskii <eliz@gnu.org>
7143
7144 * source-cache.c (source_cache::get_source_lines): Call
7145 find_source_lines to initialize s->nlines. This fixes vertical
7146 scrolling of TUI source window when the DOWN arrow is pressed.
7147
8d8c087f
PW
71482019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7149
7150 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7151 linux-thread-db.c (_initialize_thread_db): Likewise.
7152
798e1c30
EZ
71532019-03-16 Eli Zaretskii <eliz@gnu.org>
7154
7155 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7156 wclrtoeol in tui_show_source_line". This reverts changes made in
7157 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7158
eefba3da
TT
71592019-03-15 Tom Tromey <tom@tromey.com>
7160
7161 * symtab.h (struct minimal_symbol): Derive from
7162 general_symbol_info.
7163 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7164 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7165 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7166 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7167 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7168 (MSYMBOL_SEARCH_NAME): Update.
7169 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7170 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7171 * minsyms.c (minimal_symbol_reader::record_full): Update.
7172
0de2420c
TT
71732019-03-15 Tom Tromey <tom@tromey.com>
7174
7175 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7176
042d75e4
TT
71772019-03-15 Tom Tromey <tom@tromey.com>
7178
7179 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7180 unique_xmalloc_ptr.
7181 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7182 Update.
7183 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7184 (build_minimal_symbol_hash_tables)
7185 (minimal_symbol_reader::install): Update.
7186
db92718b
TT
71872019-03-15 Tom Tromey <tom@tromey.com>
7188
7189 * symtab.c (create_demangled_names_hash): Update.
7190 (symbol_set_names): Update.
7191 * objfiles.h (struct objfile_per_bfd_storage)
7192 <demangled_names_hash>: Now an htab_up.
7193 * objfiles.c (objfile_per_bfd_storage): Simplify.
7194
d6797f46
TT
71952019-03-15 Tom Tromey <tom@tromey.com>
7196
7197 * objfiles.h (struct objfile_per_bfd_storage): Declare
7198 destructor.
7199 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7200 New.
7201 (get_objfile_bfd_data): Use new. Don't initialize
7202 language_of_main.
7203 (free_objfile_per_bfd_storage): Remove.
7204 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7205
741d7538
TT
72062019-03-15 Tom Tromey <tom@tromey.com>
7207
7208 * symfile.c (reread_symbols): Update.
7209 * objfiles.c (objfile::objfile): Update.
7210 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7211 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7212 comment.
7213 (minimal_symbol_reader::install): Update.
7214 (terminate_minimal_symbol_table): Remove.
7215 * jit.c (jit_object_close_impl): Update.
7216
788c80d1
TT
72172019-03-15 Tom Tromey <tom@tromey.com>
7218
7219 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7220 initializations.
7221
1b7a07cb
TT
72222019-03-15 Tom Tromey <tom@tromey.com>
7223
7224 * objfiles.h (struct objfile_per_bfd_storage)
7225 <demangled_hash_languages>: Now a bitset.
7226 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7227 (lookup_minimal_symbol): Update.
7228
3db066bc
TT
72292019-03-15 Tom Tromey <tom@tromey.com>
7230
7231 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7232 Don't return the symbol.
7233 * coffread.c (record_minimal_symbol): Use record_full.
7234
3fff2c37
EZ
72352019-03-14 Eli Zaretskii <eliz@gnu.org>
7236
7237 The MS-Windows port of ncurses fails to switch to a color pair if
7238 one or both of the colors are the implicit default colors. This
7239 change records the default colors when TUI is initialized, and
7240 then specifies them explicitly when a color pair uses the default
7241 colors. This allows color styling in TUI mode on MS-Windows.
7242
7243 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7244 ncurses_norm_attr.
7245 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7246 colors in ncurses_norm_attr.
7247 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7248 "none", replace it with the default color recorded in
7249 ncurses_norm_attr.
7250
3b336828
TT
72512019-03-14 Tom Tromey <tromey@adacore.com>
7252
7253 * source-cache.h (class source_cache) <get_source_lines>: Return
7254 std::string.
7255 * source-cache.c (source_cache::extract_lines): Handle case where
7256 first_pos==npos. Return std::string.
7257 (source_cache::get_source_lines): Update.
7258
d085f989
TT
72592019-03-14 Tom Tromey <tromey@adacore.com>
7260
7261 * NEWS: Add item for "style sources" commands.
7262 * source-cache.c (source_cache::get_source_lines): Check
7263 source_styling.
7264 * cli/cli-style.c (source_styling): New global.
7265 (_initialize_cli_style): Add "style sources" commands.
7266 (show_style_sources): New function.
7267 * cli/cli-style.h (source_styling): Declare.
7268
6f11e682
TT
72692019-03-14 Pedro Alves <palves@redhat.com>
7270 Tom Tromey <tromey@adacore.com>
7271
7272 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7273 * tui/tui-winsource.c (tui_refill_source_window): New function,
7274 from...
7275 (tui_horizontal_source_scroll): ... here. Move some logic.
7276 * cli/cli-style.c (set_style_enabled): Notify new observable.
7277 * tui/tui-hooks.c (tui_redisplay_source): New function.
7278 (tui_attach_detach_observers): Attach or detach
7279 tui_redisplay_source.
7280 * observable.h (source_styling_changed): New observable.
7281 * observable.c: Define source_styling_changed observable.
7282
a068643d
TT
72832019-03-13 Tom Tromey <tromey@adacore.com>
7284
7285 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7286 (i386_gnu_nat_target::store_registers): Update.
7287 * target-debug.h (target_debug_print_std_string): New macro.
7288 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7289 * windows-tdep.c (display_one_tib): Update.
7290 * tui/tui-stack.c (tui_make_status_line): Update.
7291 * top.c (print_inferior_quit_action): Update.
7292 * thread.c (thr_try_catch_cmd): Update.
7293 (add_thread_with_info): Update.
7294 (thread_target_id_str): Update.
7295 (thr_try_catch_cmd): Update.
7296 (thread_command): Update.
7297 (thread_find_command): Update.
7298 * record-btrace.c (record_btrace_target::info_record)
7299 (record_btrace_resume_thread, record_btrace_target::resume)
7300 (record_btrace_cancel_resume, record_btrace_step_thread)
7301 (record_btrace_target::wait, record_btrace_target::wait)
7302 (record_btrace_target::wait, record_btrace_target::stop): Update.
7303 * progspace.c (print_program_space): Update.
7304 * process-stratum-target.c
7305 (process_stratum_target::thread_address_space): Update.
7306 * linux-fork.c (linux_fork_mourn_inferior)
7307 (detach_checkpoint_command, info_checkpoints_command)
7308 (linux_fork_context): Update.
7309 (linux_fork_detach): Update.
7310 (class scoped_switch_fork_info): Update.
7311 (delete_checkpoint_command): Update.
7312 * infrun.c (follow_fork_inferior): Update.
7313 (follow_fork_inferior): Update.
7314 (proceed_after_vfork_done): Update.
7315 (handle_vfork_child_exec_or_exit): Update.
7316 (follow_exec): Update.
7317 (displaced_step_prepare_throw): Update.
7318 (displaced_step_restore): Update.
7319 (start_step_over): Update.
7320 (resume_1): Update.
7321 (clear_proceed_status_thread): Update.
7322 (proceed): Update.
7323 (print_target_wait_results): Update.
7324 (do_target_wait): Update.
7325 (context_switch): Update.
7326 (stop_all_threads): Update.
7327 (restart_threads): Update.
7328 (finish_step_over): Update.
7329 (handle_signal_stop): Update.
7330 (switch_back_to_stepped_thread): Update.
7331 (keep_going_pass_signal): Update.
7332 (print_exited_reason): Update.
7333 (normal_stop): Update.
7334 * inferior.c (inferior_pid_to_str): Change return type.
7335 (print_selected_inferior): Update.
7336 (add_inferior): Update.
7337 (detach_inferior): Update.
7338 * dummy-frame.c (fprint_dummy_frames): Update.
7339 * dcache.c (dcache_info_1): Update.
7340 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7341 (btrace_fetch, btrace_clear): Update.
7342 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7343 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7344 type.
7345 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7346 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7347 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7348 * gdbarch.c, gdbarch.h: Rebuild.
7349 * gdbarch.sh (core_pid_to_str): Change return type.
7350 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7351 return type.
7352 (windows_nat_target::pid_to_str): Change return type.
7353 (windows_delete_thread): Update.
7354 (windows_nat_target::attach): Update.
7355 (windows_nat_target::files_info): Update.
7356 * target-delegates.c: Rebuild.
7357 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7358 return type.
7359 (sol_thread_target::pid_to_str): Change return type.
7360 * remote.c (class remote_target) <pid_to_str>: Change return
7361 type.
7362 (remote_target::pid_to_str): Change return type.
7363 (extended_remote_target::attach, remote_target::remote_stop_ns)
7364 (remote_target::remote_notif_remove_queued_reply)
7365 (remote_target::push_stop_reply, remote_target::disable_btrace):
7366 Update.
7367 (extended_remote_target::attach): Update.
7368 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7369 type.
7370 (gdbsim_target::pid_to_str): Change return type.
7371 * ravenscar-thread.c (struct ravenscar_thread_target)
7372 <pid_to_str>: Change return type.
7373 (ravenscar_thread_target::pid_to_str): Change return type.
7374 * procfs.c (class procfs_target) <pid_to_str>: Change return
7375 type.
7376 (procfs_target::pid_to_str): Change return type.
7377 (procfs_target::attach): Update.
7378 (procfs_target::detach): Update.
7379 (procfs_target::fetch_registers): Update.
7380 (procfs_target::store_registers): Update.
7381 (procfs_target::wait): Update.
7382 (procfs_target::files_info): Update.
7383 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7384 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7385 return type.
7386 (nto_procfs_target::pid_to_str): Change return type.
7387 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7388 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7389 return type.
7390 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7391 (exit_lwp): Update.
7392 (attach_proc_task_lwp_callback, get_detach_signal)
7393 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7394 (linux_nat_target::resume, wait_lwp, stop_callback)
7395 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7396 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7397 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7398 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7399 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7400 type.
7401 (inf_ptrace_target::attach): Update.
7402 (inf_ptrace_target::files_info): Update.
7403 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7404 type.
7405 (go32_nat_target::pid_to_str): Change return type.
7406 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7407 (gnu_nat_target::wait): Update.
7408 (gnu_nat_target::wait): Update.
7409 (gnu_nat_target::resume): Update.
7410 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7411 (fbsd_nat_target::wait): Update.
7412 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7413 type.
7414 (darwin_nat_target::attach): Update.
7415 * corelow.c (class core_target) <pid_to_str>: Change return type.
7416 (core_target::pid_to_str): Change return type.
7417 * target.c (normal_pid_to_str): Change return type.
7418 (default_pid_to_str): Likewise.
7419 (target_pid_to_str): Change return type.
7420 (target_translate_tls_address): Update.
7421 (target_announce_detach): Update.
7422 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7423 return type.
7424 (bsd_uthread_target::pid_to_str): Change return type.
7425 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7426 type.
7427 (bsd_kvm_target::pid_to_str): Change return type.
7428 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7429 return type.
7430 (aix_thread_target::pid_to_str): Change return type.
7431 * target.h (struct target_ops) <pid_to_str>: Change return type.
7432 (target_pid_to_str, normal_pid_to_str): Likewise.
7433 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7434 type.
7435 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7436 type.
7437 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7438 return type.
7439 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7440 type.
7441 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7442 type.
7443 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7444 return type.
7445
b4be1b06
SM
74462019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7447
7448 * NEWS: Mention that the new default MI version is 3. Mention
7449 changes to the output of commands and events that deal with
7450 multi-location breakpoints.
7451 * breakpoint.c: Include "mi/mi-out.h".
7452 (print_one_breakpoint): Change output syntax if using MI version
7453 >= 3.
7454 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7455 New.
7456 (mi_multi_location_breakpoint_output_fixed): New.
7457 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7458 (mi_cmd_fix_multi_location_breakpoint_output): New.
7459 (mi_multi_location_breakpoint_output_fixed): New.
7460 * mi/mi-cmds.c (mi_cmds): Register command
7461 -fix-multi-location-breakpoint-output.
7462 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7463 interpreter "mi".
7464
8e5e5494
SM
74652019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7466
7467 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7468 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7469 instantiate mi_ui_out based on interpreter name.
7470 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7471 * mi/mi-main.c (mi_load_progress): Likewise.
7472
197df35e
JB
74732019-03-12 John Baldwin <jhb@FreeBSD.org>
7474
7475 * NEWS: Combine separate "New targets" sections for 8.3.
7476
8399425f
JB
74772019-03-12 John Baldwin <jhb@FreeBSD.org>
7478
7479 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7480 (ppcfbsd_init_abi): Install gdbarch
7481 "fetch_tls_load_module_address" and "get_thread_local_address"
7482 methods.
7483
b0f87ed0
JB
74842019-03-12 John Baldwin <jhb@FreeBSD.org>
7485
7486 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7487 (riscv_fbsd_init_abi): Install gdbarch
7488 "fetch_tls_load_module_address" and "get_thread_local_address"
7489 methods.
7490
ce25aa57
JB
74912019-03-12 John Baldwin <jhb@FreeBSD.org>
7492
7493 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7494 (i386fbsd_init_abi): Install gdbarch
7495 "fetch_tls_load_module_address" and "get_thread_local_address"
7496 methods.
7497
f5424cfa
JB
74982019-03-12 John Baldwin <jhb@FreeBSD.org>
7499
7500 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7501 (amd64fbsd_init_abi): Install gdbarch
7502 "fetch_tls_load_module_address" and "get_thread_local_address"
7503 methods.
7504
945f3901
JB
75052019-03-12 John Baldwin <jhb@FreeBSD.org>
7506
7507 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7508 (struct fbsd_pspace_data): New type.
7509 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7510 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7511 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7512 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7513 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7514
ef0bd204
JB
75152019-03-12 John Baldwin <jhb@FreeBSD.org>
7516
7517 * gdbtypes.c (lookup_struct_elt): New function.
7518 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7519 * gdbtypes.h (struct struct_elt): New type.
7520 (lookup_struct_elt): New prototype.
7521
36c53a02
JB
75222019-03-12 John Baldwin <jhb@FreeBSD.org>
7523
7524 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7525 remove disabled code block.
7526
6e056c81
JB
75272019-03-12 John Baldwin <jhb@FreeBSD.org>
7528
7529 * gdbarch.sh (get_thread_local_address): New method.
7530 * gdbarch.h, gdbarch.c: Regenerate.
7531 * target.c (target_translate_tls_address): Use
7532 gdbarch_get_thread_local_address if present instead of
7533 target::get_thread_local_address.
7534
cd250a18
JB
75352019-03-12 John Baldwin <jhb@FreeBSD.org>
7536
7537 * target.h (target::get_thread_local_address): Update comment.
7538
df22c1e5
JB
75392019-03-12 John Baldwin <jhb@FreeBSD.org>
7540
7541 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7542 objfile->separate_debug_objfile_backlink if not NULL.
7543
dd6876c9
JB
75442019-03-12 John Baldwin <jhb@FreeBSD.org>
7545
7546 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7547 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7548 (amd64bsd_store_inferior_registers): Likewise.
7549 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7550 Enable segment base registers.
7551 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7552 PT_GETFSBASE and PT_GETGSBASE.
7553 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7554 PT_SETGSBASE.
7555 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7556 segment base registers.
7557 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7558
1163a4b7
JB
75592019-03-12 John Baldwin <jhb@FreeBSD.org>
7560
7561 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7562 Update calls to i386_target_description to add 'segments'
7563 parameter.
7564 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7565 add segment base registers.
7566 * arch/i386.c (i386_create_target_description): Add 'segments'
7567 parameter to enable segment base registers.
7568 * arch/i386.h (i386_create_target_description): Likewise.
7569 * features/i386/32bit-segments.xml: New file.
7570 * features/i386/32bit-segments.c: Generate.
7571 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7572 call to i386_target_description to add 'segments' parameter.
7573 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7574 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7575 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7576 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
7577 if feature is present.
7578 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
7579 Add 'segments' parameter to call to i386_target_description.
7580 (i386_target_description): Add 'segments' parameter to enable
7581 segment base registers.
7582 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
7583 to call to i386_target_description.
7584 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
7585 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
7586 Define I386_NUM_REGS.
7587 (i386_target_description): Add 'segments' parameter to enable
7588 segment base registers.
7589
3a350822
EZ
75902019-03-12 Eli Zaretskii <eliz@gnu.org>
7591
7592 PR/24325
7593 * source-cache.c: #undef open and close, to avoid unresolved
7594 externals during linking.
7595
ffdd69cf
TT
75962019-03-12 Tom Tromey <tromey@adacore.com>
7597
7598 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
7599 const. Add initializers.
7600 (_initialize_remote): Don't initialize ptid globals.
7601
ec148c57
PA
76022019-03-12 Pedro Alves <palves@redhat.com>
7603
7604 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
7605
32764270
PA
76062019-03-12 Pedro Alves <palves@redhat.com>
7607
7608 * cp-name-parser.y (main): Remove unused 'len' variable.
7609
17547186
TT
76102019-03-12 Tom Tromey <tromey@adacore.com>
7611
7612 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
7613 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
7614
d3a70e03
TT
76152019-03-12 Tom Tromey <tromey@adacore.com>
7616
7617 * linux-nat.c (iterate_over_lwps): Update.
7618 (stop_callback): Remove parameter.
7619 (stop_wait_callback, detach_callback, resume_set_callback)
7620 (select_singlestep_lwp_callback, set_ignore_sigint)
7621 (status_callback, resumed_callback, resume_clear_callback)
7622 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
7623 data parameter.
7624 (linux_nat_target::detach, linux_nat_target::resume)
7625 (linux_stop_and_wait_all_lwps, select_event_lwp)
7626 (linux_nat_filter_event, linux_nat_wait_1)
7627 (linux_nat_target::kill, linux_nat_target::stop)
7628 (linux_nat_target::stop): Update.
7629 (linux_nat_resume_callback): Change type.
7630 (resume_stopped_resumed_lwps, count_events_callback)
7631 (select_event_lwp_callback): Likewise.
7632 (linux_stop_lwp, linux_nat_stop_lwp): Update.
7633 * arm-linux-nat.c (struct update_registers_data): Remove.
7634 (update_registers_callback): Change type.
7635 (arm_linux_insert_hw_breakpoint1): Update.
7636 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
7637 parameter.
7638 (x86_linux_dr_set_addr): Update.
7639 (x86_linux_dr_set_control): Update.
7640 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
7641 (iterate_over_lwps): Use gdb::function_view.
7642 * nat/aarch64-linux-hw-point.c (struct
7643 aarch64_dr_update_callback_param): Remove.
7644 (debug_reg_change_callback): Change type.
7645 (aarch64_notify_debug_reg_change): Update.
7646 * s390-linux-nat.c (s390_refresh_per_info): Update.
7647
82cb27ff
TT
76482019-03-11 Tom Tromey <tromey@adacore.com>
7649
7650 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
7651 redundant assignment to "this_cu".
7652
568c0683
SM
76532019-03-08 Simon Marchi <simon.marchi@efficios.com>
7654
7655 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
7656
f09ce22d
SM
76572019-03-08 Simon Marchi <simon.marchi@efficios.com>
7658
7659 * gdbtypes.c (rank_one_type_parm_set): New function extracted
7660 from...
7661 (rank_one_type): ... this.
7662
595f96a9
SM
76632019-03-08 Simon Marchi <simon.marchi@efficios.com>
7664
7665 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
7666 from...
7667 (rank_one_type): ... this.
7668
2598a94b
SM
76692019-03-08 Simon Marchi <simon.marchi@efficios.com>
7670
7671 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
7672 from...
7673 (rank_one_type): ... this.
7674
7f17b20d
SM
76752019-03-08 Simon Marchi <simon.marchi@efficios.com>
7676
7677 * gdbtypes.c (rank_one_type_parm_float): New function extracted
7678 from...
7679 (rank_one_type): ... this.
7680
2c509035
SM
76812019-03-08 Simon Marchi <simon.marchi@efficios.com>
7682
7683 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
7684 from...
7685 (rank_one_type): ... this.
7686
0dd322dc
SM
76872019-03-08 Simon Marchi <simon.marchi@efficios.com>
7688
7689 * gdbtypes.c (rank_one_type_parm_range): New function extracted
7690 from...
7691 (rank_one_type): ... this.
7692
41ea4728
SM
76932019-03-08 Simon Marchi <simon.marchi@efficios.com>
7694
7695 * gdbtypes.c (rank_one_type_parm_char): New function extracted
7696 from...
7697 (rank_one_type): ... this.
7698
793cd1d2
SM
76992019-03-08 Simon Marchi <simon.marchi@efficios.com>
7700
7701 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
7702 from...
7703 (rank_one_type): ... this.
7704
34910087
SM
77052019-03-08 Simon Marchi <simon.marchi@efficios.com>
7706
7707 * gdbtypes.c (rank_one_type_parm_int): New function extracted
7708 from...
7709 (rank_one_type): ... this.
7710
f1f832d6
SM
77112019-03-08 Simon Marchi <simon.marchi@efficios.com>
7712
7713 * gdbtypes.c (rank_one_type_parm_func): New function extracted
7714 from...
7715 (rank_one_type): ... this.
7716
b9f4512f
SM
77172019-03-08 Simon Marchi <simon.marchi@efficios.com>
7718
7719 * gdbtypes.c (rank_one_type_parm_array): New function extracted
7720 from...
7721 (rank_one_type): ... this.
7722
9293fc63
SM
77232019-03-08 Simon Marchi <simon.marchi@efficios.com>
7724
7725 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
7726 from...
7727 (rank_one_type): ... this.
7728
e3abbe7e
PW
77292019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7730
7731 * inferior.c (initialize_inferiors): Ensure 'help set/show print
7732 inferior-events' shows the example events.
7733
e4adb939
EZ
77342019-03-08 Eli Zaretskii <eliz@gnu.org>
7735
7736 Support styling on native MS-Windows console
7737
7738 PR/24315
7739 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
7740 on MS-Windows if $TERM is not defined.
7741
7742 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
7743
7744 * posix-hdep.c (gdb_console_fputs):
7745 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
7746 functions.
7747 * ui-file.h (gdb_console_fputs): Add prototype.
7748
7749 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
7750 back to fputs only if the former returns zero.
7751
25629dfd
TT
77522019-03-07 Tom Tromey <tom@tromey.com>
7753
7754 * symmisc.c (print_symbol_bcache_statistics): Update.
7755 (print_objfile_statistics): Update.
7756 * symfile.c (allocate_symtab): Update.
7757 * stabsread.c: Don't include bcache.h.
7758 * psymtab.h (struct psymbol_bcache): Don't declare.
7759 (class psymtab_storage) <psymbol_cache>: Now a bcache.
7760 (psymbol_bcache_init, psymbol_bcache_free)
7761 (psymbol_bcache_get_bcache): Don't declare.
7762 * psymtab.c (struct psymbol_bcache): Remove.
7763 (psymtab_storage::psymtab_storage): Update.
7764 (psymtab_storage::~psymtab_storage): Update.
7765 (psymbol_bcache_init, psymbol_bcache_free)
7766 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
7767 (add_psymbol_to_bcache): Update.
7768 (allocate_psymtab): Update.
7769 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7770 macro_cache>: No longer pointers.
7771 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
7772 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
7773 * macrotab.c (macro_bcache): Update.
7774 * macroexp.c: Don't include bcache.h.
7775 * gdbtypes.c (check_types_worklist): Update.
7776 (types_deeply_equal): Remove TRY/CATCH. Update.
7777 * elfread.c (elf_symtab_read): Update.
7778 * dwarf2read.c: Don't include bcache.h.
7779 * buildsym.c (buildsym_compunit::get_macro_table): Update.
7780 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
7781 (print_bcache_statistics, bcache_memory_used): Don't declare.
7782 (struct bcache): Move from bcache.c. Add constructor, destructor,
7783 methods. Rename all data members.
7784 * bcache.c (struct bcache): Move to bcache.h.
7785 (bcache::expand_hash_table): Rename from expand_hash_table.
7786 (bcache): Remove.
7787 (bcache::insert): Rename from bcache_full.
7788 (bcache::compare): Rename from bcache_compare.
7789 (bcache_xmalloc): Remove.
7790 (bcache::~bcache): Rename from bcache_xfree.
7791 (bcache::print_statistics): Rename from print_bcache_statistics.
7792 (bcache::memory_used): Rename from bcache_memory_used.
7793
fe726667
PA
77942019-03-07 Pedro Alves <palves@redhat.com>
7795
7796 * infrun.c (normal_stop): Also check for
7797 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
7798
7584bb30
AB
77992019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
7800
7801 * f-lang.c (value_from_host_double): Moved to...
7802 * value.c (value_from_host_double): ...here.
7803 * value.h (value_from_host_double): Declare.
7804 * guile/scm-math.c (vlscm_convert_typed_number): Use
7805 value_from_host_double.
7806 (vlscm_convert_number): Likewise.
7807 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
7808 * python/py-value.c (convert_value_from_python): Likewise.
7809
a7b1986e
TT
78102019-03-06 Tom Tromey <tom@tromey.com>
7811
7812 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
7813
0ccf4211
TT
78142019-03-06 Tom Tromey <tom@tromey.com>
7815
7816 * utils.h (free_current_contents): Don't declare.
7817 * utils.c (free_current_contents): Remove.
7818
fe7b42e5
TT
78192019-03-06 Tom Tromey <tom@tromey.com>
7820
7821 * top.c (quit_force): Update.
7822 * main.c (captured_command_loop): Update.
7823 * common/new-op.c (operator new): Update.
7824 * common/common-exceptions.c (struct catcher)
7825 <save_cleanup_chain>: Remove member.
7826 (exceptions_state_mc_init): Update.
7827 (exception_try_scope_entry): Return nullptr.
7828 (exception_try_scope_exit, exception_rethrow)
7829 (throw_exception_sjlj, throw_exception_cxx): Update.
7830 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
7831 (all_cleanups, do_cleanups, discard_cleanups)
7832 (discard_final_cleanups, save_cleanups, save_final_cleanups)
7833 (restore_cleanups, restore_final_cleanups): Don't declare.
7834 (do_final_cleanups): Remove parameter.
7835 * common/cleanups.c (cleanup_chain, make_cleanup)
7836 (make_cleanup_dtor, all_cleanups, do_cleanups)
7837 (discard_my_cleanups, discard_cleanups)
7838 (discard_final_cleanups, save_my_cleanups, save_cleanups)
7839 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
7840 (null_cleanup): Remove.
7841 (do_final_cleanups): Remove parameter.
7842
c6321f19
TT
78432019-03-06 Tom Tromey <tom@tromey.com>
7844
7845 * remote.c (remote_target::remote_parse_stop_reply): Use
7846 unique_xmalloc_ptr.
7847
61b30099
TT
78482019-03-06 Tom Tromey <tom@tromey.com>
7849
7850 * stabsread.c (struct stabs_field_info): Rename from field_info.
7851 <list, fnlist>: Add initializers.
7852 <obstack>: New member.
7853 (read_member_functions, read_struct_fields, read_baseclasses):
7854 Allocate on obstack. Don't use cleanups.
7855 (read_one_struct_field, read_member_functions, read_struct_fields)
7856 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
7857 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
7858 (read_struct_type): Update.
7859
6cceac94
TT
78602019-03-06 Tom Tromey <tom@tromey.com>
7861
7862 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
7863 * common/filestuff.h (make_cleanup_close): Don't declare.
7864 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
7865 Remove.
7866
72412762
TT
78672019-03-06 Tom Tromey <tom@tromey.com>
7868
7869 * solib-aix.c: Use make_scope_exit.
7870
2b6ff1c0
TT
78712019-03-06 Tom Tromey <tom@tromey.com>
7872
7873 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
7874 Use make_scope_exit.
7875
d01c5877
TT
78762019-03-06 Tom Tromey <tom@tromey.com>
7877
7878 * solib-svr4.c (disable_probes_interface): Remove parameter.
7879 (svr4_handle_solib_event): Use make_scope_exit.
7880
32603266
TT
78812019-03-06 Tom Tromey <tom@tromey.com>
7882
7883 * remote.c (struct stop_reply_deleter): Remove.
7884 (stop_reply_up): Update.
7885 (struct stop_reply): Derive from notif_event. Don't typedef.
7886 <regcache>: Now a std::vector.
7887 (stop_reply_xfree): Remove.
7888 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
7889 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
7890 (remote_target::discard_pending_stop_replies): Use delete.
7891 (remote_target::remote_parse_stop_reply): Update.
7892 (remote_target::process_stop_reply): Update.
7893 * remote-notif.h (struct notif_event): Add virtual destructor.
7894 Remove "dtr" member.
7895 (struct notif_client) <alloc_event>: Return a unique_ptr.
7896 (notif_event_xfree): Don't declare.
7897 (notif_event_up): New typedef.
7898 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
7899 (notif_event_xfree, do_notif_event_xfree): Remove.
7900 (remote_notif_state_xfree): Update.
7901
9799571e
TT
79022019-03-06 Tom Tromey <tom@tromey.com>
7903
7904 * infrun.c (displaced_step_clear_cleanup): Now a
7905 forward_scope_exit type.
7906 (displaced_step_prepare_throw): Update.
7907 (displaced_step_fixup): Update.
7908
09e3c4ca
TT
79092019-03-06 Tom Tromey <tom@tromey.com>
7910
7911 * inferior.h (class inferior): Update comment.
7912 * gdbthread.h (class thread_info): Update comment.
7913
e2a03548
TT
79142019-03-06 Joel Brobecker <brobecker@adacore.com>
7915 Tom Tromey <tom@tromey.com>
7916
7917 * stabsread.h (struct stab_section_list): Remove.
7918 (coffstab_build_psymtabs): Update.
7919 * dbxread.c (symbuf_sections): Now a std::vector.
7920 (sect_idx): New global.
7921 (fill_symbuf): Update.
7922 (coffstab_build_psymtabs): Change type of stabsects parameter.
7923 Update.
7924 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
7925 std::vector.
7926 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
7927 (coff_locate_sections): Update.
7928 (coff_symfile_read): Remove cleanups. Update.
7929 (init_stringtab): Add storage parameter.
7930 (free_stringtab, free_stringtab_cleanup): Remove.
7931 (init_lineno): Add storage parameter.
7932 (free_linetab, free_linetab_cleanup): Remove.
7933
b7e60d85
PA
79342019-03-06 Pedro Alves <palves@redhat.com>
7935
7936 * linux-fork.c (fork_info::clobber_regs): Delete.
7937 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
7938 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
7939 comment. Adjust.
7940 (scoped_switch_fork_info::scoped_switch_fork_info)
7941 (checkpoint_command, linux_fork_context): Adjust
7942 fork_save_infrun_state calls.
7943
e52c971f
PA
79442019-03-06 Pedro Alves <palves@redhat.com>
7945
7946 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
7947 (inf_has_multiple_threads): Return 'bool' and rewrite using
7948 inferior_info::threads().
7949
06974e6c
PA
79502019-03-06 Pedro Alves <palves@redhat.com>
7951
7952 * linux-fork.c: Include <list>.
7953 (fork_list): Now a std::list instance.
7954 (fork_info): Add ctor, dtor, and in-class initialize all fields.
7955 (forks_exist_p, find_last_fork): Adjust.
7956 (new_fork): Delete.
7957 (one_fork_p): New.
7958 (add_fork): Adjust.
7959 (free_fork): Delete, folded into fork_info::~fork_info().
7960 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
7961 Adjust.
7962 (init_fork_list): Delete.
7963 (linux_fork_killall, linux_fork_mourn_inferior)
7964 (linux_fork_detach, info_checkpoints_command): Adjust.
7965 (_initialize_linux_fork): No longer call init_fork_list.
7966
72f31aea
PA
79672019-03-06 Pedro Alves <palves@redhat.com>
7968
7969 * linux-fork.c (new_fork): New, split out of ...
7970 (add_fork): ... this. Return void. Move "first fork" special
7971 case from here, to ...
7972 (checkpoint_command): ... here.
7973 * linux-linux.h (add_fork): Return void.
7974
efbecbc1
AB
79752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7976
7977 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
7978
0841c79a
AB
79792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7980 Chris January <chris.january@arm.com>
7981 David Lecomber <david.lecomber@arm.com>
7982
7983 * f-exp.y: New token, UNOP_INTRINSIC.
7984 (exp): New pattern using UNOP_INTRINSIC token.
7985 (f77_keywords): Add 'abs' keyword.
7986 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
7987 (value_from_host_double): New function.
7988 (evaluate_subexp_f): Support UNOP_ABS.
7989
4a270568
AB
79902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7991
7992 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
7993 types.
7994
067630bd
AB
79952019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7996
7997 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
7998 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
7999 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8000
3be47f7a
AB
80012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8002
8003 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8004
4d00f5d8
AB
80052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8006 Chris January <chris.january@arm.com>
8007
8008 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8009 * f-exp.y: Define 'KIND' token.
8010 (exp): New pattern for KIND expressions.
8011 (ptype): Handle types with a kind extension.
8012 (direct_abs_decl): Extend to spot kind extensions.
8013 (f77_keywords): Add 'kind' to the list.
8014 (push_kind_type): New function.
8015 (convert_to_kind_type): New function.
8016 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8017 * parse.c (operator_length_standard): Likewise.
8018 * parser-defs.h (enum type_pieces): Add tp_kind.
8019 * std-operator.def: Add UNOP_KIND.
8020
e454224f
AB
80212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8022
8023 * f-exp.y (f_parse): Set yydebug.
8024
9dad4a58
AB
80252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8026
8027 * f-lang.c (evaluate_subexp_f): New function.
8028 (exp_descriptor_f): New global.
8029 (f_language_defn): Use exp_descriptor_f instead of
8030 exp_descriptor_standard.
8031
c8f91604
AB
80322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8033
8034 * f-exp.y (struct token): Add comments.
8035 (dot_ops): Remove uppercase versions and the end marker.
8036 (f77_keywords): Likewise.
8037 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8038 entries in the dot_ops array are case insensitive, and use
8039 strncasecmp to compare strings. Also some whitespace cleanup in
8040 this area. Similar for the f77_keywords array, except entries in
8041 this list might be case sensitive.
8042
dd9f2c76
AB
80432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8044
8045 * f-exp.y (struct f77_boolean_val): Add comments.
8046 (boolean_values): Remove uppercase versions, and end marker.
8047 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8048 and use strncasecmp to achieve case insensitivity. Additionally,
8049 perform whitespace cleanup around this code.
8050
67a3048c
TT
80512019-03-06 Tom Tromey <tromey@adacore.com>
8052
8053 * remote-sim.c (gdbsim_target_open): Use result of
8054 gdb_argv::release.
8055
aa3cfbda
RB
80562019-03-06 Richard Bunt <richard.bunt@arm.com>
8057 Dirk Schubert <dirk.schubert@arm.com>
8058 Chris January <chris.january@arm.com>
8059
8060 * eval.c (evaluate_subexp_standard): Call Fortran argument
8061 wrapping logic.
8062 * f-lang.c (struct value): A value which can be passed into a
8063 Fortran function call.
8064 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8065 where appropriate.
8066 (struct type): Value ready for a Fortran function call.
8067 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8068 is needed.
8069 * f-lang.h (fortran_argument_convert): Declaration.
8070 (fortran_preserve_arg_pointer): Declaration.
8071 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8072
ea38e5df
TT
80732019-03-05 Tom Tromey <tromey@adacore.com>
8074
8075 * python/py-prettyprint.c (print_string_repr): Remove #if.
8076 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8077
06b5b831
TT
80782019-03-05 Tom Tromey <tromey@adacore.com>
8079
8080 * target.c (the_dummy_target): Move later. Change type to
8081 "dummy_target".
8082 (initialize_targets): Don't initialize the_dummy_target.
8083
edbd9e45
TT
80842019-03-05 Tom Tromey <tromey@adacore.com>
8085
8086 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8087 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8088
c119e040
TT
80892019-03-05 Tom Tromey <tromey@adacore.com>
8090
8091 * windows-nat.c (windows_nat_target::attach)
8092 (windows_nat_target::detach): Don't call gdb_flush.
8093 * valprint.c (generic_val_print, val_print, val_print_string):
8094 Don't call gdb_flush.
8095 * utils.c (defaulted_query): Don't call gdb_flush.
8096 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8097 * target.c (target_announce_detach): Don't call gdb_flush.
8098 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8099 * remote.c (extended_remote_target::attach): Don't call
8100 gdb_flush.
8101 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8102 * printcmd.c (do_examine): Don't call gdb_flush.
8103 (info_display_command): Don't call gdb_flush.
8104 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8105 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8106 * memattr.c (info_mem_command): Don't call gdb_flush.
8107 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8108 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8109 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8110 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8111 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8112 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8113 (gnu_nat_target::detach): Don't call gdb_flush.
8114 * f-valprint.c (f_val_print): Don't call gdb_flush.
8115 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8116 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8117 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8118 gdb_flush.
8119 * c-valprint.c (c_val_print): Don't call gdb_flush.
8120 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8121
895dafa6
TT
81222019-03-05 Tom Tromey <tromey@adacore.com>
8123
8124 * varobj.c (update_dynamic_varobj_children): Update.
8125 (install_default_visualizer): Use reset, not release.
8126 * value.c (set_internalvar): Update.
8127 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8128 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8129 ATTRIBUTE_UNUSED_RESULT.
8130
88a774b9
TT
81312019-03-05 Tom Tromey <tromey@adacore.com>
8132
8133 * remote.c (class scoped_remote_fd) <release>: Add
8134 ATTRIBUTE_UNUSED_RESULT.
8135
4e4a8b93
TT
81362019-03-05 Tom Tromey <tromey@adacore.com>
8137
8138 * macroexp.c (struct macro_buffer) <release>: Add
8139 ATTRIBUTE_UNUSED_RESULT.
8140
083eef1f
TT
81412019-03-05 Tom Tromey <tromey@adacore.com>
8142
8143 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8144 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8145 ATTRIBUTE_UNUSED_RESULT.
8146
3cabd438
TT
81472019-03-05 Tom Tromey <tromey@adacore.com>
8148
8149 * common/scoped_fd.h (class scoped_fd) <release>: Add
8150 ATTRIBUTE_UNUSED_RESULT.
8151
41e3300a
TT
81522019-03-05 Tom Tromey <tromey@adacore.com>
8153
8154 * parser-defs.h (struct parser_state) <release>: Add
8155 ATTRIBUTE_UNUSED_RESULT.
8156
18cb7c9f
TT
81572019-03-05 Tom Tromey <tromey@adacore.com>
8158
8159 * utils.h (class gdb_argv) <release>: Add
8160 ATTRIBUTE_UNUSED_RESULT.
8161 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8162
41fa577f
EZ
81632019-03-02 Eli Zaretskii <eliz@gnu.org>
8164
a6a4b2c6
EZ
8165 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8166 for-loop range, to avoid compiler warnings.
8167
8168 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8169 avoid compiler warnings about unused variables.
8170
742a7df5
EZ
8171 * NEWS: Mention end of support for native debugging on MS-Windows
8172 before XP.
8173
41fa577f
EZ
8174 PR gdb/24292
8175 * common/netstuff.c:
8176 * gdbserver/gdbreplay.c
8177 * gdbserver/remote-utils.c:
8178 * ser-tcp.c:
8179 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8180 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8181 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8182 'getaddrinfo' and 'freeaddrinfo' were not available before
8183 Windows XP, and mingw.org's MinGW headers by default define
8184 _WIN32_WINNT to 0x500.
8185
827f438f
GB
81862019-03-01 Gary Benson <gbenson@redhat.com>
8187
8188 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8189
92137da0
RO
81902019-02-28 Brian Vandenberg <phantall@gmail.com>
8191 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8192
8193 PR gdb/8527
8194 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8195 set_sigint_trap, clear_sigint_trap.
8196
799efbe8
PW
81972019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8198
8199 * target.c (target_detach): Clear the regcache and the
8200 frame cache.
8201
8ed25214
PA
82022019-02-27 Pedro Alves <palves@redhat.com>
8203
8204 * utils.c (set_screen_size): When we cap the height/width sizes,
8205 tweak the corresponding command variable to show "unlimited":
8206
23031e31
SJ
82072019-02-27 Saagar Jha <saagar@saagarjha.com>
8208 Pedro Alves <palves@redhat.com>
8209
8210 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8211 before calling rl_set_screen_size.
8212
6c28e44a
TT
82132019-02-27 Tom Tromey <tromey@adacore.com>
8214
8215 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8216 define.
8217 * python/py-value.c: Remove Python 2.4 workaround.
8218 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8219 workaround.
8220 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8221 Python 2.4 workaround.
8222 * python/python-internal.h: Remove Python 2.4 comment.
8223 (Py_ssize_t): Don't define.
8224 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8225 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8226 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8227 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8228 * python/python.c (do_start_initialization): Remove Python 2.4
8229 workaround.
8230 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8231 (print_children): Remove Python 2.4 workaround.
8232 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8233 workaround.
8234 (CHARBUFFERPROC_NAME): Remove.
8235 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8236 Python 2.4 workaround.
8237
2c3fc25d 82382019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8239
2c3fc25d
KB
8240 * NEWS: Note minimum Python version.
8241
6ca62222
KB
82422019-02-27 Kevin Buettner <kevinb@redhat.com>
8243
8244 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8245 code from these functions. Remove corresponding ifdefs. Use
8246 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8247 Remove gotos and target of gotos.
8248 (infpy_search_memory): Likewise.
8249
f4bc7d2c
AB
82502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8251
8252 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8253 (hppa_gdbarch_init): Don't register deleted functions with
8254 gdbarch.
8255
9734a586
AB
82562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8257
8258 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8259 (h8300_unwind_sp): Delete.
8260 (h8300_dummy_id): Delete.
8261 (h8300_gdbarch_init): Don't register deleted functions with
8262 gdbarch.
8263
68b867f3
AB
82642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8265
8266 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8267 (ft32_unwind_pc): Delete.
8268 (ft32_unwind_sp): Delete.
8269 (ft32_gdbarch_init): Don't register deleted functions with
8270 gdbarch.
8271
2fbe7ad0
AB
82722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8273
8274 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8275 (frv_unwind_pc): Delete.
8276 (frv_unwind_sp): Delete.
8277 (frv_gdbarch_init): Don't register deleted functions with
8278 gdbarch.
8279
76055cbe
AB
82802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8281
8282 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8283 (riscv_unwind_pc): Delete.
8284 (riscv_unwind_sp): Delete.
8285 (riscv_gdbarch_init): Don't register deleted functions with
8286 gdbarch.
8287
4133e5a1
AB
82882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8289
8290 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8291 (csky_unwind_pc): Delete.
8292 (csky_unwind_sp): Delete.
8293 (csky_gdbarch_init): Don't register deleted functions with
8294 gdbarch.
8295
8010f576
AB
82962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8297
8298 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8299 (cris_unwind_pc): Delete.
8300 (cris_unwind_sp): Delete.
8301 (cris_gdbarch_init): Don't register deleted functions with
8302 gdbarch.
8303
b56bf084
AB
83042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8305
8306 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8307 (bfin_unwind_pc): Delete.
8308 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8309
a19a650f
AB
83102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8311
8312 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8313 (arm_unwind_pc): Delete.
8314 (arm_unwind_sp): Delete.
8315 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8316
f8278c3c
AB
83172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8318
8319 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8320 (arc_unwind_pc): Delete.
8321 (arc_unwind_sp): Delete.
8322 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8323
480e46cf
AB
83242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8325
8326 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8327 (alpha_unwind_pc): Delete.
8328 (alpha_gdbarch_init): Don't register deleted functions with
8329 gdbarch.
8330
7a995095
AB
83312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8332
8333 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8334 (aarch64_unwind_pc): Delete.
8335 (aarch64_unwind_sp): Delete.
8336 (aarch64_gdbarch_init): Don't register deleted functions with
8337 gdbarch.
8338
bf9a735e
AB
83392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8340
8341 * gdbtypes.c (type_align): Don't consider static members when
8342 computing structure alignment.
8343
5561fc30
AB
83442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8345
8346 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8347 return 0 for other types.
8348 * arch-utils.c (default_type_align): Always return 0.
8349 * gdbarch.h: Regenerate.
8350 * gdbarch.sh (type_align): Extend comment.
8351 * gdbtypes.c (type_align): Add additional comments, always call
8352 gdbarch_type_align before applying the default rules.
8353 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8354 generic code will then apply a suitable default.
8355 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8356 types, return 0 for other types.
8357
9335e75a
JB
83582019-02-27 Joel Brobecker <brobecker@adacore.com>
8359
8360 * NEWS: Create a new section for the next release branch.
8361 Rename the section of the current branch, now that it has
8362 been cut.
8363
3d34d8de
JB
83642019-02-27 Joel Brobecker <brobecker@adacore.com>
8365
8366 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8367 * version.in: Bump version to 8.3.50.DATE-git.
8368
143420fb
SM
83692019-02-26 Simon Marchi <simon.marchi@efficios.com>
8370
8371 * aix-thread.c (ptid_cmp): Remove unused variable.
8372 (get_signaled_thread): Likewise.
8373 (store_regs_user_thread): Likewise.
8374 (store_regs_kernel_thread): Likewise.
8375 (fetch_regs_kernel_thread): Remove shadowed variable.
8376
172fb711
AB
83772019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8378
8379 * features/riscv/32bit-cpu.xml: Add register numbers.
8380 * features/riscv/32bit-fpu.c: Regenerate.
8381 * features/riscv/32bit-fpu.xml: Add register numbers.
8382 * features/riscv/64bit-cpu.xml: Add register numbers.
8383 * features/riscv/64bit-fpu.c: Regenerate.
8384 * features/riscv/64bit-fpu.xml: Add register numbers.
8385
26c89782
KB
83862019-02-26 Kevin Buettner <kevinb@redhat.com>
8387
af54ade9 8388 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
8389 * python/py-value.c (convert_buffer_and_type_to_value): New
8390 function.
8391 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8392 Add support for handling an optional second argument. Call
8393 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
8394 * python/python-internal.h (Py_buffer_deleter): New struct.
8395 (Py_buffer_up): New typedef.
8396
0f58c9e8
JB
83972019-02-25 John Baldwin <jhb@FreeBSD.org>
8398
8399 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8400 instead of releasing ownership.
8401
0a0f4c01
JR
84022019-02-25 Jordan Rupprecht <rupprecht@google.com>
8403
8404 * dwarf2read.c (open_and_init_dwp_file): Call
8405 elf_numsections instead of bfd_count_sections to initialize
8406 dwp_file->num_sections.
8407
cd5a152c
TT
84082019-02-25 Tom Tromey <tromey@adacore.com>
8409
8410 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8411
8a6a8513
SDJ
84122019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8413
8414 * gcore.in: Add '--readnever' option when invoking GDB.
8415
04dcda9c
SM
84162019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8417
8418 * MAINTAINERS: Update my email address.
8419
07bc701d
SM
84202019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8421
8422 * build-id.c (build_id_to_debug_bfd_1): New function.
8423 (build_id_to_debug_bfd): Look for separate debug file in
8424 sysroot.
8425
c6f4a5d0
AB
84262019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8427
8428 * gdbarch.sh: Update the copyright year range that is placed into
8429 generated files.
8430
9600246d
KS
84312019-02-22 Keith Seitz <keiths@redhat.com>
8432
8433 PR symtab/23853
8434 * linespec.c (create_sals_line_offset): Search for the default
8435 symtab's filename instead of its fullname.
8436
7557a514
AH
84372019-02-21 Alan Hayward <alan.hayward@arm.com>
8438
8439 * NEWS: Update style defaults.
8440
ee2bcb0c
AH
84412019-02-21 Alan Hayward <alan.hayward@arm.com>
8442
8443 * main.c (captured_main_1): Disable styling in batch mode.
8444
0c95f9ed
TT
84452019-02-20 Tom Tromey <tom@tromey.com>
8446
8447 * symtab.c (symtab_symbol_info): Fix typos.
8448
c763b894
TT
84492019-02-20 Tom Tromey <tromey@adacore.com>
8450
8451 * findcmd.c (_initialize_mem_search): Use upper case for
8452 metasyntactic variables.
8453
0ef8a082
AH
84542019-02-20 Alan Hayward <alan.hayward@arm.com>
8455
8456 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8457 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8458
6caa91b6
SM
84592019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8460
8461 * top.h (source_file_name): Change to std::string.
8462 * top.c (source_file_name): Likewise.
8463 (command_line_input): Adjust.
8464 * cli/cli-script.c (script_from_file): Adjust.
8465
98814c6c
TT
84662019-02-19 Tom Tromey <tromey@adacore.com>
8467
8468 * ravenscar-thread.c
8469 (ravenscar_thread_target::update_thread_list): Don't call
8470 ada_build_task_list.
8471 * ada-lang.h (ada_build_task_list): Don't declare.
8472 * ada-tasks.c (struct ada_tasks_inferior_data)
8473 <task_list_valid_p>: Now bool.
8474 (read_known_tasks, ada_task_list_changed)
8475 (ada_tasks_invalidate_inferior_data): Update.
8476 (read_known_tasks_array): Return bool.
8477 (read_known_tasks_list): Likewise.
8478 (read_known_tasks): Return void.
8479 (ada_build_task_list): Now static.
8480
70cd633e
AB
84812019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8482
8483 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8484 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8485
040b3e95
PW
84862019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8487
8488 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8489 variant for ada_tasks_pspace_data_handle and
8490 ada_tasks_inferior_data_handle.
8491 (ada_tasks_pspace_data_cleanup): New function.
8492 (ada_tasks_inferior_data_cleanup): New function.
8493
9409233b
TT
84942019-02-17 Tom Tromey <tom@tromey.com>
8495
8496 * macrotab.h (macro_source_fullname): Return a std::string.
8497 * macrotab.c (macro_include, check_for_redefinition)
8498 (macro_undef, macro_lookup_definition, foreach_macro)
8499 (foreach_macro_in_scope): Update.
8500 (macro_source_fullname): Return a std::string.
8501 * macrocmd.c (show_pp_source_pos): Update.
8502
6506371f
TT
85032019-02-17 Tom Tromey <tom@tromey.com>
8504
8505 * macrocmd.c (show_pp_source_pos): Style the file names.
8506
0c820d67
TT
85072019-02-17 Tom Tromey <tom@tromey.com>
8508
8509 PR tui/24197:
8510 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8511
a0087920
TT
85122019-02-17 Tom Tromey <tom@tromey.com>
8513
8514 * ada-lang.c (user_select_syms): Use filtered printing.
8515 * utils.c (wrap_style): New global.
8516 (desired_style): Remove.
8517 (emit_style_escape): Add stream parameter.
8518 (set_output_style, reset_terminal_style, prompt_for_continue):
8519 Update.
8520 (flush_wrap_buffer): Only flush gdb_stdout.
8521 (wrap_here): Set wrap_style.
8522 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8523 treat escape sequences as a character. Change when wrap buffer is
8524 flushed.
8525 (fputs_styled): Do not set the output style when the default is
8526 requested.
8527 * ui-style.h (struct ui_file_style) <is_default>: New method.
8528 * source.c (print_source_lines_base): Emit escape sequences in one
8529 piece.
8530
75ba10dc
JB
85312019-02-17 Joel Brobecker <brobecker@adacore.com>
8532
8533 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8534 integers and enumeration types.
8535
a2cd4f14
JB
85362019-02-17 Joel Brobecker <brobecker@adacore.com>
8537
8538 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8539 instead of lookup_symbol_in_language
8540 (do_exact_match): New function.
8541 (ada_get_symbol_name_matcher): Return do_exact_match when
8542 doing a verbatim match.
8543
485b851b
TT
85442019-02-15 Tom Tromey <tromey@adacore.com>
8545
8546 * ravenscar-thread.c (ravenscar_thread_target::resume)
8547 (ravenscar_thread_target::wait): Special case wildcard requests.
8548
0b790b1e
TT
85492019-02-15 Tom Tromey <tromey@adacore.com>
8550
8551 * ravenscar-thread.c (base_ptid): Remove.
8552 (struct ravenscar_thread_target) <close>: New method.
8553 <m_base_ptid>: New member.
8554 <update_inferior_ptid, active_task, task_is_currently_active,
8555 runtime_initialized>: Declare methods.
8556 <ravenscar_thread_target>: Add constructor.
8557 (ravenscar_thread_target::task_is_currently_active)
8558 (ravenscar_thread_target::update_inferior_ptid)
8559 (ravenscar_runtime_initialized): Rename. Now methods.
8560 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8561 (ravenscar_thread_target::update_thread_list): Update.
8562 (ravenscar_thread_target::active_task): Now method.
8563 (ravenscar_thread_target::store_registers)
8564 (ravenscar_thread_target::prepare_to_store)
8565 (ravenscar_thread_target::prepare_to_store)
8566 (ravenscar_thread_target::mourn_inferior): Update.
8567 (ravenscar_inferior_created): Use "new" to create target.
8568 (ravenscar_thread_target::get_ada_task_ptid): Update.
8569 (_initialize_ravenscar): Don't initialize base_ptid.
8570 (ravenscar_ops): Remove global.
8571
dea57a62
TT
85722019-02-15 Tom Tromey <tromey@adacore.com>
8573
8574 * target.h (push_target): Declare new overload.
8575 * target.c (push_target): New overload, taking an rvalue reference.
8576 * remote.c (remote_target::open_1): Use push_target overload.
8577 * corelow.c (core_target_open): Use push_target overload.
8578
989f3c58
TT
85792019-02-15 Tom Tromey <tromey@adacore.com>
8580
8581 * ravenscar-thread.c (is_ravenscar_task)
8582 (ravenscar_task_is_currently_active): Return bool.
8583 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
8584 (_initialize_ravenscar): Remove "(void)".
8585 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
8586 Return bool.
8587
6cbcc006
TT
85882019-02-15 Tom Tromey <tromey@adacore.com>
8589
8590 * ravenscar-thread.c (ravenscar_runtime_initializer)
8591 (has_ravenscar_runtime, get_running_thread_id)
8592 (ravenscar_thread_target::resume): Fix indentation.
8593
7657f14d
TT
85942019-02-15 Tom Tromey <tromey@adacore.com>
8595
8596 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
8597 from ravenscar_arch_ops.
8598 (sparc_ravenscar_ops::fetch_registers)
8599 (sparc_ravenscar_ops::store_registers): Now methods.
8600 (sparc_ravenscar_prepare_to_store): Remove.
8601 (sparc_ravenscar_ops): Redefine.
8602 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
8603 methods and destructor. Remove members.
8604 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
8605 (ravenscar_thread_target::store_registers)
8606 (ravenscar_thread_target::prepare_to_store): Update.
8607 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
8608 Remove.
8609 (struct ppc_ravenscar_powerpc_ops): Derive from
8610 ravenscar_arch_ops.
8611 (ppc_ravenscar_powerpc_ops::fetch_registers)
8612 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
8613 (ppc_ravenscar_powerpc_ops): Redefine.
8614 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
8615 (ppc_ravenscar_e500_ops::fetch_registers)
8616 (ppc_ravenscar_e500_ops::store_registers): Now methods.
8617 (ppc_ravenscar_e500_ops): Redefine.
8618 * aarch64-ravenscar-thread.c
8619 (aarch64_ravenscar_generic_prepare_to_store): Remove.
8620 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
8621 (aarch64_ravenscar_fetch_registers)
8622 (aarch64_ravenscar_store_registers): Now methods.
8623 (aarch64_ravenscar_ops): Redefine.
8624
5b6ea500
TT
86252019-02-15 Tom Tromey <tromey@adacore.com>
8626
8627 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
8628 (ravenscar_thread_target::stopped_by_hw_breakpoint)
8629 (ravenscar_thread_target::stopped_by_watchpoint)
8630 (ravenscar_thread_target::stopped_data_address)
8631 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
8632
e397fd39
TT
86332019-02-15 Tom Tromey <tromey@adacore.com>
8634
8635 * ravenscar-thread.c: Fix some typos.
8636
cc12f4a8
TT
86372019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8638 Tom Tromey <tromey@adacore.com>
8639
8640 * ada-lang.c (ada_exception_sal): Change addr_string to a
8641 std::string.
8642 (create_ada_exception_catchpoint): Update.
8643
5f486660
TT
86442019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8645 Tom Tromey <tromey@adacore.com>
8646
8647 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
8648 (bp_location_ops): Remove.
8649 (base_breakpoint_allocate_location): Update.
8650 (free_bp_location): Update.
8651 * ada-lang.c (class ada_catchpoint_location)
8652 <ada_catchpoint_location>: Remove ops parameter.
8653 (ada_catchpoint_location_dtor): Remove.
8654 (ada_catchpoint_location_ops): Remove.
8655 (allocate_location_exception): Update.
8656 * breakpoint.h (struct bp_location_ops): Remove.
8657 (class bp_location) <bp_location>: Remove bp_location_ops
8658 parameter.
8659 <~bp_location>: Add destructor.
8660 <ops>: Remove.
8661
b671c7fb
TS
86622019-02-14 Thomas Schwinge <thomas@codesourcery.com>
8663 Pedro Alves <palves@redhat.com>
8664
8665 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
8666 'PATH_MAX'.
8667
8071c5ce
DM
86682019-02-14 David Michael <fedora.dm0@gmail.com>
8669 Samuel Thibault <samuel.thibault@gnu.org>
8670 Thomas Schwinge <thomas@codesourcery.com>
8671
8672 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
8673 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
8674
b1041ae0
TS
86752019-02-14 Thomas Schwinge <thomas@codesourcery.com>
8676
924514e1
TS
8677 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
8678 (check_empty): Use "const char *".
8679
c29ee8d4
TS
8680 * gnu-nat.c (gnu_nat_target::detach): Instead of
8681 'detach_inferior (pid)' call
8682 'detach_inferior (find_inferior_pid (pid))'.
8683
6c6ef69f
TS
8684 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
8685 'nat/fork-inferior.o'.
8686 * gnu-nat.c: #include "nat/fork-inferior.h".
8687
2d0a338c
TS
8688 * gnu-nat.c (gnu_nat_target::detach): Instead of
8689 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
8690 * gnu-nat.h: #include "inf-child.h".
8691 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
8692 'i386_gnu_nat_target::fetch_registers'.
8693 (gnu_store_registers): Rename/move to
8694 'i386_gnu_nat_target::store_registers'.
8695
cabb5f06
TS
8696 * config/i386/nm-i386gnu.h: Don't "#include" any files.
8697 * gnu-nat.h (mach_thread_info): New function.
8698 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
8699
b1041ae0
TS
8700 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
8701
2988d01e
KF
87022019-02-14 Frederic Konrad <konrad@adacore.com>
8703
8704 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
8705
c559d709
JB
87062019-02-14 Joel Brobecker <brobecker@adacore.com>
8707
8708 * windows-nat.c (windows_add_thread): Add new parameter
8709 "main_thread_p" with default value set to false. Update
8710 function documentation as well as all callers.
8711 (windows_delete_thread): Likewise.
8712 (fake_create_process): Update call to windows_add_thread.
8713 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
8714 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
8715 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
8716 call to windows_delete_thread.
8717
007024cc
SM
87182019-02-13 Simon Marchi <simon.marchi@ericsson.com>
8719
8720 * MAINTAINERS: Add Andrew Burgess as global maintainer.
8721
f62318e9
JB
87222019-02-12 John Baldwin <jhb@FreeBSD.org>
8723
8724 * symfile.c (find_separate_debug_file): Use canonical path of
8725 sysroot with child_path instead of gdb_sysroot if it is valid.
8726
cd4b7848
JB
87272019-02-12 John Baldwin <jhb@FreeBSD.org>
8728
8729 * symfile.c (find_separate_debug_file): Use child_path to
8730 determine if an object file is under a sysroot.
8731
efac4bfe
JB
87322019-02-12 John Baldwin <jhb@FreeBSD.org>
8733
8734 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8735 unittests/child-path-selftests.c.
8736 * common/pathstuff.c (child_path): New function.
8737 * common/pathstuff.h (child_path): New prototype.
8738 * unittests/child-path-selftests.c: New file.
8739
402d2bfe
JB
87402019-02-12 John Baldwin <jhb@FreeBSD.org>
8741
8742 * symfile.c (find_separate_debug_file): Look for separate debug
8743 files in debug directories under the sysroot.
8744
1ed9f74e
PW
87452019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8746
8747 * symtab.h (struct minimal_symbol data_p): New const method.
8748 (struct minimal_symbol text_p): Likewise.
8749 * symtab.c (output_source_filename): Use file name style
8750 to print file name.
8751 (print_symbol_info): Likewise.
8752 (print_msymbol_info): Use address style to print addresses.
8753 Use function name style to print executable text symbols.
8754 (expand_symtab_containing_pc): Use data_p.
8755 (find_pc_sect_compunit_symtab): Likewise.
8756
2636d81d
PW
87572019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8758
8759 * breakpoint.c (describe_other_breakpoints): Use address style
8760 to print addresses.
8761 (say_where): Likewise.
8762
ac8c53cc
PW
87632019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8764
8765 * ada-typeprint.c (print_func_type): Print function name
8766 style to print function name.
8767 * c-typeprint.c (c_print_type_1): Likewise.
8768
ea638c43
AH
87692019-02-11 Alan Hayward <alan.hayward@arm.com>
8770
8771 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
8772 for execve.
8773
ab759ca8
PW
87742019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8775
8776 * c-exp.y (direct_abs_decl): Use emplace_back to record the
8777 type_stack.
8778
aff29d1c
JB
87792019-02-10 Joel Brobecker <brobecker@adacore.com>
8780
8781 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
8782 TYPE_CODE_REF types.
8783
617126bc
JW
87842019-02-08 Jim Wilson <jimw@sifive.com>
8785
8786 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
8787 (riscv_linux_fregset): New.
8788 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
8789
46e3ed7f
TT
87902019-02-07 Tom Tromey <tom@tromey.com>
8791
8792 * thread.c (thread_cancel_execution_command): Update.
8793 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
8794 methods.
8795 (struct thread_fsm_ops): Remove.
8796 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
8797 (thread_fsm_should_stop, thread_fsm_return_value)
8798 (thread_fsm_set_finished, thread_fsm_finished_p)
8799 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
8800 Don't declare.
8801 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
8802 * infrun.c (clear_proceed_status_thread)
8803 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
8804 (print_stop_event): Update.
8805 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
8806 Add constructor.
8807 (step_command_fsm_ops): Remove.
8808 (new_step_command_fsm): Remove.
8809 (step_1): Update.
8810 (step_command_fsm::should_stop): Rename from
8811 step_command_fsm_should_stop.
8812 (step_command_fsm::clean_up): Rename from
8813 step_command_fsm_clean_up.
8814 (step_command_fsm::do_async_reply_reason): Rename from
8815 step_command_fsm_async_reply_reason.
8816 (struct until_next_fsm): Inherit from thread_fsm. Add
8817 constructor.
8818 (until_next_fsm_ops): Remove.
8819 (new_until_next_fsm): Remove.
8820 (until_next_fsm::should_stop): Rename from
8821 until_next_fsm_should_stop.
8822 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
8823 (until_next_fsm::do_async_reply_reason): Rename from
8824 until_next_fsm_async_reply_reason.
8825 (struct finish_command_fsm): Inherit from thread_fsm. Add
8826 constructor. Change type of breakpoint.
8827 (finish_command_fsm_ops): Remove.
8828 (new_finish_command_fsm): Remove.
8829 (finish_command_fsm::should_stop): Rename from
8830 finish_command_fsm_should_stop.
8831 (finish_command_fsm::clean_up): Rename from
8832 finish_command_fsm_clean_up.
8833 (finish_command_fsm::return_value): Rename from
8834 finish_command_fsm_return_value.
8835 (finish_command_fsm::do_async_reply_reason): Rename from
8836 finish_command_fsm_async_reply_reason.
8837 (finish_command): Update.
8838 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
8839 Add constructor.
8840 (call_thread_fsm_ops): Remove.
8841 (call_thread_fsm::call_thread_fsm): Rename from
8842 new_call_thread_fsm.
8843 (call_thread_fsm::should_stop): Rename from
8844 call_thread_fsm_should_stop.
8845 (call_thread_fsm::should_notify_stop): Rename from
8846 call_thread_fsm_should_notify_stop.
8847 (run_inferior_call, call_function_by_hand_dummy): Update.
8848 * cli/cli-interp.c (should_print_stop_to_console): Update.
8849 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
8850 Add constructor. Change type of location_breakpoint,
8851 caller_breakpoint.
8852 (until_break_fsm_ops): Remove.
8853 (new_until_break_fsm): Remove.
8854 (until_break_fsm::should_stop): Rename from
8855 until_break_fsm_should_stop.
8856 (until_break_fsm::clean_up): Rename from
8857 until_break_fsm_clean_up.
8858 (until_break_fsm::do_async_reply_reason): Rename from
8859 until_break_fsm_async_reply_reason.
8860 (until_break_command): Update.
8861 * thread-fsm.c: Remove.
8862 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
8863
1a5c2598
TT
88642019-02-07 Tom Tromey <tom@tromey.com>
8865
8866 * yy-remap.h: Add include guard.
8867 * xtensa-tdep.h: Add include guard.
8868 * xcoffread.h: Rename include guard.
8869 * varobj-iter.h: Add include guard.
8870 * tui/tui.h: Rename include guard.
8871 * tui/tui-winsource.h: Rename include guard.
8872 * tui/tui-wingeneral.h: Rename include guard.
8873 * tui/tui-windata.h: Rename include guard.
8874 * tui/tui-win.h: Rename include guard.
8875 * tui/tui-stack.h: Rename include guard.
8876 * tui/tui-source.h: Rename include guard.
8877 * tui/tui-regs.h: Rename include guard.
8878 * tui/tui-out.h: Rename include guard.
8879 * tui/tui-layout.h: Rename include guard.
8880 * tui/tui-io.h: Rename include guard.
8881 * tui/tui-hooks.h: Rename include guard.
8882 * tui/tui-file.h: Rename include guard.
8883 * tui/tui-disasm.h: Rename include guard.
8884 * tui/tui-data.h: Rename include guard.
8885 * tui/tui-command.h: Rename include guard.
8886 * tic6x-tdep.h: Add include guard.
8887 * target/waitstatus.h: Rename include guard.
8888 * target/wait.h: Rename include guard.
8889 * target/target.h: Rename include guard.
8890 * target/resume.h: Rename include guard.
8891 * target-float.h: Rename include guard.
8892 * stabsread.h: Add include guard.
8893 * rs6000-tdep.h: Add include guard.
8894 * riscv-fbsd-tdep.h: Add include guard.
8895 * regformats/regdef.h: Rename include guard.
8896 * record.h: Rename include guard.
8897 * python/python.h: Rename include guard.
8898 * python/python-internal.h: Rename include guard.
8899 * python/py-stopevent.h: Rename include guard.
8900 * python/py-ref.h: Rename include guard.
8901 * python/py-record.h: Rename include guard.
8902 * python/py-record-full.h: Rename include guard.
8903 * python/py-record-btrace.h: Rename include guard.
8904 * python/py-instruction.h: Rename include guard.
8905 * python/py-events.h: Rename include guard.
8906 * python/py-event.h: Rename include guard.
8907 * procfs.h: Add include guard.
8908 * proc-utils.h: Add include guard.
8909 * p-lang.h: Add include guard.
8910 * or1k-tdep.h: Rename include guard.
8911 * observable.h: Rename include guard.
8912 * nto-tdep.h: Rename include guard.
8913 * nat/x86-linux.h: Rename include guard.
8914 * nat/x86-linux-dregs.h: Rename include guard.
8915 * nat/x86-gcc-cpuid.h: Add include guard.
8916 * nat/x86-dregs.h: Rename include guard.
8917 * nat/x86-cpuid.h: Rename include guard.
8918 * nat/ppc-linux.h: Rename include guard.
8919 * nat/mips-linux-watch.h: Rename include guard.
8920 * nat/linux-waitpid.h: Rename include guard.
8921 * nat/linux-ptrace.h: Rename include guard.
8922 * nat/linux-procfs.h: Rename include guard.
8923 * nat/linux-osdata.h: Rename include guard.
8924 * nat/linux-nat.h: Rename include guard.
8925 * nat/linux-namespaces.h: Rename include guard.
8926 * nat/linux-btrace.h: Rename include guard.
8927 * nat/glibc_thread_db.h: Rename include guard.
8928 * nat/gdb_thread_db.h: Rename include guard.
8929 * nat/gdb_ptrace.h: Rename include guard.
8930 * nat/fork-inferior.h: Rename include guard.
8931 * nat/amd64-linux-siginfo.h: Rename include guard.
8932 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
8933 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
8934 * nat/aarch64-linux.h: Rename include guard.
8935 * nat/aarch64-linux-hw-point.h: Rename include guard.
8936 * mn10300-tdep.h: Add include guard.
8937 * mips-linux-tdep.h: Add include guard.
8938 * mi/mi-parse.h: Rename include guard.
8939 * mi/mi-out.h: Rename include guard.
8940 * mi/mi-main.h: Rename include guard.
8941 * mi/mi-interp.h: Rename include guard.
8942 * mi/mi-getopt.h: Rename include guard.
8943 * mi/mi-console.h: Rename include guard.
8944 * mi/mi-common.h: Rename include guard.
8945 * mi/mi-cmds.h: Rename include guard.
8946 * mi/mi-cmd-break.h: Rename include guard.
8947 * m2-lang.h: Add include guard.
8948 * location.h: Rename include guard.
8949 * linux-record.h: Rename include guard.
8950 * linux-nat.h: Add include guard.
8951 * linux-fork.h: Add include guard.
8952 * i386-darwin-tdep.h: Rename include guard.
8953 * hppa-linux-offsets.h: Add include guard.
8954 * guile/guile.h: Rename include guard.
8955 * guile/guile-internal.h: Rename include guard.
8956 * gnu-nat.h: Rename include guard.
8957 * gdb-stabs.h: Rename include guard.
8958 * frv-tdep.h: Add include guard.
8959 * f-lang.h: Add include guard.
8960 * event-loop.h: Add include guard.
8961 * darwin-nat.h: Rename include guard.
8962 * cp-abi.h: Rename include guard.
8963 * config/sparc/nm-sol2.h: Rename include guard.
8964 * config/nm-nto.h: Rename include guard.
8965 * config/nm-linux.h: Add include guard.
8966 * config/i386/nm-i386gnu.h: Rename include guard.
8967 * config/djgpp/nl_types.h: Rename include guard.
8968 * config/djgpp/langinfo.h: Rename include guard.
8969 * compile/gcc-cp-plugin.h: Add include guard.
8970 * compile/gcc-c-plugin.h: Add include guard.
8971 * compile/compile.h: Rename include guard.
8972 * compile/compile-object-run.h: Rename include guard.
8973 * compile/compile-object-load.h: Rename include guard.
8974 * compile/compile-internal.h: Rename include guard.
8975 * compile/compile-cplus.h: Rename include guard.
8976 * compile/compile-c.h: Rename include guard.
8977 * common/xml-utils.h: Rename include guard.
8978 * common/x86-xstate.h: Rename include guard.
8979 * common/version.h: Rename include guard.
8980 * common/vec.h: Rename include guard.
8981 * common/tdesc.h: Rename include guard.
8982 * common/selftest.h: Rename include guard.
8983 * common/scoped_restore.h: Rename include guard.
8984 * common/scoped_mmap.h: Rename include guard.
8985 * common/scoped_fd.h: Rename include guard.
8986 * common/safe-iterator.h: Rename include guard.
8987 * common/run-time-clock.h: Rename include guard.
8988 * common/refcounted-object.h: Rename include guard.
8989 * common/queue.h: Rename include guard.
8990 * common/ptid.h: Rename include guard.
8991 * common/print-utils.h: Rename include guard.
8992 * common/preprocessor.h: Rename include guard.
8993 * common/pathstuff.h: Rename include guard.
8994 * common/observable.h: Rename include guard.
8995 * common/netstuff.h: Rename include guard.
8996 * common/job-control.h: Rename include guard.
8997 * common/host-defs.h: Rename include guard.
8998 * common/gdb_wait.h: Rename include guard.
8999 * common/gdb_vecs.h: Rename include guard.
9000 * common/gdb_unlinker.h: Rename include guard.
9001 * common/gdb_unique_ptr.h: Rename include guard.
9002 * common/gdb_tilde_expand.h: Rename include guard.
9003 * common/gdb_sys_time.h: Rename include guard.
9004 * common/gdb_string_view.h: Rename include guard.
9005 * common/gdb_splay_tree.h: Rename include guard.
9006 * common/gdb_setjmp.h: Rename include guard.
9007 * common/gdb_ref_ptr.h: Rename include guard.
9008 * common/gdb_optional.h: Rename include guard.
9009 * common/gdb_locale.h: Rename include guard.
9010 * common/gdb_assert.h: Rename include guard.
9011 * common/filtered-iterator.h: Rename include guard.
9012 * common/filestuff.h: Rename include guard.
9013 * common/fileio.h: Rename include guard.
9014 * common/environ.h: Rename include guard.
9015 * common/common-utils.h: Rename include guard.
9016 * common/common-types.h: Rename include guard.
9017 * common/common-regcache.h: Rename include guard.
9018 * common/common-inferior.h: Rename include guard.
9019 * common/common-gdbthread.h: Rename include guard.
9020 * common/common-exceptions.h: Rename include guard.
9021 * common/common-defs.h: Rename include guard.
9022 * common/common-debug.h: Rename include guard.
9023 * common/cleanups.h: Rename include guard.
9024 * common/buffer.h: Rename include guard.
9025 * common/btrace-common.h: Rename include guard.
9026 * common/break-common.h: Rename include guard.
9027 * cli/cli-utils.h: Rename include guard.
9028 * cli/cli-style.h: Rename include guard.
9029 * cli/cli-setshow.h: Rename include guard.
9030 * cli/cli-script.h: Rename include guard.
9031 * cli/cli-interp.h: Rename include guard.
9032 * cli/cli-decode.h: Rename include guard.
9033 * cli/cli-cmds.h: Rename include guard.
9034 * charset-list.h: Add include guard.
9035 * buildsym-legacy.h: Rename include guard.
9036 * bfin-tdep.h: Add include guard.
9037 * ax.h: Rename include guard.
9038 * arm-linux-tdep.h: Add include guard.
9039 * arm-fbsd-tdep.h: Add include guard.
9040 * arch/xtensa.h: Rename include guard.
9041 * arch/tic6x.h: Add include guard.
9042 * arch/i386.h: Add include guard.
9043 * arch/arm.h: Rename include guard.
9044 * arch/arm-linux.h: Rename include guard.
9045 * arch/arm-get-next-pcs.h: Rename include guard.
9046 * arch/amd64.h: Add include guard.
9047 * arch/aarch64-insn.h: Rename include guard.
9048 * arch-utils.h: Rename include guard.
9049 * annotate.h: Add include guard.
9050 * amd64-darwin-tdep.h: Rename include guard.
9051 * aarch64-linux-tdep.h: Add include guard.
9052 * aarch64-fbsd-tdep.h: Add include guard.
9053 * aarch32-linux-nat.h: Add include guard.
9054
ab9268d2
PW
90552019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9056
9057 * macrotab.c (macro_define_internal): New function that
9058 factorizes macro_define_object_internal and macro_define_function
9059 code.
9060 (macro_define_object_internal): Use macro_define_internal.
9061 (macro_define_function): Likewise.
9062
bb0da2b4
PW
90632019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9064
9065 * macrocmd.c (extract_identifier): Return
9066 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9067 callers.
9068
424eb552
JB
90692019-02-06 John Baldwin <jhb@FreeBSD.org>
9070
9071 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9072
1688cb29
TT
90732019-02-05 Tom Tromey <tom@tromey.com>
9074
9075 * target.c (target_stack::unpush): Move assertion earlier.
9076
b5eba2d8
TT
90772019-01-30 Tom Tromey <tom@tromey.com>
9078
9079 PR python/23615:
9080 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9081 (gdbpy_parse_and_eval): Likewise.
9082 * python/python-internal.h (gdbpy_allow_threads): New class.
9083
7054e2ff
JB
90842019-01-28 John Baldwin <jhb@FreeBSD.org>
9085
9086 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9087 (aarch64_fbsd_fpregmap): Move earlier.
9088 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9089 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9090 instead of individual calls to trad_frame_set_reg_addr.
9091 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9092 earlier.
9093 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9094 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9095 instead of individual calls to trad_frame_set_reg_addr.
9096
36c25ffa
AH
90972019-01-28 Alan Hayward <alan.hayward@arm.com>
9098
9099 * CONTRIBUTE: Replace contribution list with wiki link.
9100
a0707f3c
TT
91012019-01-25 Tom Tromey <tom@tromey.com>
9102
9103 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9104
0747795c
TT
91052019-01-25 Tom Tromey <tom@tromey.com>
9106
9107 * xtensa-linux-nat.c: Fix common/ includes.
9108 * xml-support.h: Fix common/ includes.
9109 * xml-support.c: Fix common/ includes.
9110 * x86-linux-nat.c: Fix common/ includes.
9111 * windows-nat.c: Fix common/ includes.
9112 * varobj.h: Fix common/ includes.
9113 * varobj.c: Fix common/ includes.
9114 * value.c: Fix common/ includes.
9115 * valops.c: Fix common/ includes.
9116 * utils.c: Fix common/ includes.
9117 * unittests/xml-utils-selftests.c: Fix common/ includes.
9118 * unittests/utils-selftests.c: Fix common/ includes.
9119 * unittests/unpack-selftests.c: Fix common/ includes.
9120 * unittests/tracepoint-selftests.c: Fix common/ includes.
9121 * unittests/style-selftests.c: Fix common/ includes.
9122 * unittests/string_view-selftests.c: Fix common/ includes.
9123 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9124 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9125 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9126 * unittests/rsp-low-selftests.c: Fix common/ includes.
9127 * unittests/parse-connection-spec-selftests.c: Fix common/
9128 includes.
9129 * unittests/optional-selftests.c: Fix common/ includes.
9130 * unittests/offset-type-selftests.c: Fix common/ includes.
9131 * unittests/observable-selftests.c: Fix common/ includes.
9132 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9133 * unittests/memrange-selftests.c: Fix common/ includes.
9134 * unittests/memory-map-selftests.c: Fix common/ includes.
9135 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9136 * unittests/function-view-selftests.c: Fix common/ includes.
9137 * unittests/environ-selftests.c: Fix common/ includes.
9138 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9139 * unittests/common-utils-selftests.c: Fix common/ includes.
9140 * unittests/cli-utils-selftests.c: Fix common/ includes.
9141 * unittests/array-view-selftests.c: Fix common/ includes.
9142 * ui-file.c: Fix common/ includes.
9143 * tui/tui-io.c: Fix common/ includes.
9144 * tracepoint.h: Fix common/ includes.
9145 * tracepoint.c: Fix common/ includes.
9146 * tracefile-tfile.c: Fix common/ includes.
9147 * top.h: Fix common/ includes.
9148 * top.c: Fix common/ includes.
9149 * thread.c: Fix common/ includes.
9150 * target/waitstatus.h: Fix common/ includes.
9151 * target/waitstatus.c: Fix common/ includes.
9152 * target.h: Fix common/ includes.
9153 * target.c: Fix common/ includes.
9154 * target-memory.c: Fix common/ includes.
9155 * target-descriptions.c: Fix common/ includes.
9156 * symtab.h: Fix common/ includes.
9157 * symfile.c: Fix common/ includes.
9158 * stap-probe.c: Fix common/ includes.
9159 * spu-linux-nat.c: Fix common/ includes.
9160 * sparc-nat.c: Fix common/ includes.
9161 * source.c: Fix common/ includes.
9162 * solib.c: Fix common/ includes.
9163 * solib-target.c: Fix common/ includes.
9164 * ser-unix.c: Fix common/ includes.
9165 * ser-tcp.c: Fix common/ includes.
9166 * ser-pipe.c: Fix common/ includes.
9167 * ser-base.c: Fix common/ includes.
9168 * selftest-arch.c: Fix common/ includes.
9169 * s12z-tdep.c: Fix common/ includes.
9170 * rust-exp.y: Fix common/ includes.
9171 * rs6000-aix-tdep.c: Fix common/ includes.
9172 * riscv-tdep.c: Fix common/ includes.
9173 * remote.c: Fix common/ includes.
9174 * remote-notif.h: Fix common/ includes.
9175 * remote-fileio.h: Fix common/ includes.
9176 * remote-fileio.c: Fix common/ includes.
9177 * regcache.h: Fix common/ includes.
9178 * regcache.c: Fix common/ includes.
9179 * record-btrace.c: Fix common/ includes.
9180 * python/python.c: Fix common/ includes.
9181 * python/py-type.c: Fix common/ includes.
9182 * python/py-inferior.c: Fix common/ includes.
9183 * progspace.h: Fix common/ includes.
9184 * producer.c: Fix common/ includes.
9185 * procfs.c: Fix common/ includes.
9186 * proc-api.c: Fix common/ includes.
9187 * printcmd.c: Fix common/ includes.
9188 * ppc-linux-nat.c: Fix common/ includes.
9189 * parser-defs.h: Fix common/ includes.
9190 * osdata.c: Fix common/ includes.
9191 * obsd-nat.c: Fix common/ includes.
9192 * nat/x86-linux.c: Fix common/ includes.
9193 * nat/x86-linux-dregs.c: Fix common/ includes.
9194 * nat/x86-dregs.h: Fix common/ includes.
9195 * nat/x86-dregs.c: Fix common/ includes.
9196 * nat/ppc-linux.c: Fix common/ includes.
9197 * nat/mips-linux-watch.h: Fix common/ includes.
9198 * nat/mips-linux-watch.c: Fix common/ includes.
9199 * nat/linux-waitpid.c: Fix common/ includes.
9200 * nat/linux-ptrace.h: Fix common/ includes.
9201 * nat/linux-ptrace.c: Fix common/ includes.
9202 * nat/linux-procfs.c: Fix common/ includes.
9203 * nat/linux-personality.c: Fix common/ includes.
9204 * nat/linux-osdata.c: Fix common/ includes.
9205 * nat/linux-namespaces.c: Fix common/ includes.
9206 * nat/linux-btrace.h: Fix common/ includes.
9207 * nat/linux-btrace.c: Fix common/ includes.
9208 * nat/fork-inferior.c: Fix common/ includes.
9209 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9210 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9211 * nat/aarch64-linux.c: Fix common/ includes.
9212 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9213 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9214 * namespace.h: Fix common/ includes.
9215 * mips-linux-tdep.c: Fix common/ includes.
9216 * minsyms.c: Fix common/ includes.
9217 * mi/mi-parse.h: Fix common/ includes.
9218 * mi/mi-main.c: Fix common/ includes.
9219 * mi/mi-cmd-env.c: Fix common/ includes.
9220 * memrange.h: Fix common/ includes.
9221 * memattr.c: Fix common/ includes.
9222 * maint.h: Fix common/ includes.
9223 * maint.c: Fix common/ includes.
9224 * main.c: Fix common/ includes.
9225 * machoread.c: Fix common/ includes.
9226 * location.c: Fix common/ includes.
9227 * linux-thread-db.c: Fix common/ includes.
9228 * linux-nat.c: Fix common/ includes.
9229 * linux-fork.c: Fix common/ includes.
9230 * inline-frame.c: Fix common/ includes.
9231 * infrun.c: Fix common/ includes.
9232 * inflow.c: Fix common/ includes.
9233 * inferior.h: Fix common/ includes.
9234 * inferior.c: Fix common/ includes.
9235 * infcmd.c: Fix common/ includes.
9236 * inf-ptrace.c: Fix common/ includes.
9237 * inf-child.c: Fix common/ includes.
9238 * ia64-linux-nat.c: Fix common/ includes.
9239 * i387-tdep.c: Fix common/ includes.
9240 * i386-tdep.c: Fix common/ includes.
9241 * i386-linux-tdep.c: Fix common/ includes.
9242 * i386-linux-nat.c: Fix common/ includes.
9243 * i386-go32-tdep.c: Fix common/ includes.
9244 * i386-fbsd-tdep.c: Fix common/ includes.
9245 * i386-fbsd-nat.c: Fix common/ includes.
9246 * guile/scm-type.c: Fix common/ includes.
9247 * guile/guile.c: Fix common/ includes.
9248 * go32-nat.c: Fix common/ includes.
9249 * gnu-nat.c: Fix common/ includes.
9250 * gdbthread.h: Fix common/ includes.
9251 * gdbarch-selftests.c: Fix common/ includes.
9252 * gdb_usleep.c: Fix common/ includes.
9253 * gdb_select.h: Fix common/ includes.
9254 * gdb_bfd.c: Fix common/ includes.
9255 * gcore.c: Fix common/ includes.
9256 * fork-child.c: Fix common/ includes.
9257 * findvar.c: Fix common/ includes.
9258 * fbsd-nat.c: Fix common/ includes.
9259 * event-top.c: Fix common/ includes.
9260 * event-loop.c: Fix common/ includes.
9261 * dwarf2read.c: Fix common/ includes.
9262 * dwarf2loc.c: Fix common/ includes.
9263 * dwarf2-frame.c: Fix common/ includes.
9264 * dwarf-index-cache.c: Fix common/ includes.
9265 * dtrace-probe.c: Fix common/ includes.
9266 * disasm-selftests.c: Fix common/ includes.
9267 * defs.h: Fix common/ includes.
9268 * csky-tdep.c: Fix common/ includes.
9269 * cp-valprint.c: Fix common/ includes.
9270 * cp-support.h: Fix common/ includes.
9271 * cp-support.c: Fix common/ includes.
9272 * corelow.c: Fix common/ includes.
9273 * completer.h: Fix common/ includes.
9274 * completer.c: Fix common/ includes.
9275 * compile/compile.c: Fix common/ includes.
9276 * compile/compile-loc2c.c: Fix common/ includes.
9277 * compile/compile-cplus-types.c: Fix common/ includes.
9278 * compile/compile-cplus-symbols.c: Fix common/ includes.
9279 * command.h: Fix common/ includes.
9280 * cli/cli-dump.c: Fix common/ includes.
9281 * cli/cli-cmds.c: Fix common/ includes.
9282 * charset.c: Fix common/ includes.
9283 * build-id.c: Fix common/ includes.
9284 * btrace.h: Fix common/ includes.
9285 * btrace.c: Fix common/ includes.
9286 * breakpoint.h: Fix common/ includes.
9287 * breakpoint.c: Fix common/ includes.
9288 * ax.h:
9289 (enum agent_op): Fix common/ includes.
9290 * ax-general.c (struct aop_map): Fix common/ includes.
9291 * ax-gdb.c: Fix common/ includes.
9292 * auxv.c: Fix common/ includes.
9293 * auto-load.c: Fix common/ includes.
9294 * arm-tdep.c: Fix common/ includes.
9295 * arch/riscv.c: Fix common/ includes.
9296 * arch/ppc-linux-common.c: Fix common/ includes.
9297 * arch/i386.c: Fix common/ includes.
9298 * arch/arm.c: Fix common/ includes.
9299 * arch/arm-linux.c: Fix common/ includes.
9300 * arch/arm-get-next-pcs.c: Fix common/ includes.
9301 * arch/amd64.c: Fix common/ includes.
9302 * arch/aarch64.c: Fix common/ includes.
9303 * arch/aarch64-insn.c: Fix common/ includes.
9304 * arch-utils.c: Fix common/ includes.
9305 * amd64-windows-tdep.c: Fix common/ includes.
9306 * amd64-tdep.c: Fix common/ includes.
9307 * amd64-sol2-tdep.c: Fix common/ includes.
9308 * amd64-obsd-tdep.c: Fix common/ includes.
9309 * amd64-nbsd-tdep.c: Fix common/ includes.
9310 * amd64-linux-tdep.c: Fix common/ includes.
9311 * amd64-linux-nat.c: Fix common/ includes.
9312 * amd64-fbsd-tdep.c: Fix common/ includes.
9313 * amd64-fbsd-nat.c: Fix common/ includes.
9314 * amd64-dicos-tdep.c: Fix common/ includes.
9315 * amd64-darwin-tdep.c: Fix common/ includes.
9316 * agent.c: Fix common/ includes.
9317 * ada-lang.h: Fix common/ includes.
9318 * ada-lang.c: Fix common/ includes.
9319 * aarch64-tdep.c: Fix common/ includes.
9320
2f5c153e
TT
93212019-01-25 Tom Tromey <tom@tromey.com>
9322
9323 * common/create-version.sh: Use common/version.h.
9324
adc6a863
PA
93252019-01-24 Pedro Alves <palves@redhat.com>
9326
9327 * infrun.c (signal_stop, signal_print, signal_program)
9328 (signal_catch, signal_pass): Now arrays instead of pointers.
9329 (update_signals_program_target, do_target_resume)
9330 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9331 * linux-nat.c (linux_nat_target::pass_signals)
9332 (linux_nat_target::create_inferior, linux_nat_target::attach):
9333 Adjust.
9334 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9335 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9336 * procfs.c (procfs_target::pass_signals): Adjust.
9337 * record-full.c (record_full_target::resume): Adjust.
9338 * remote.c (remote_target::pass_signals)
9339 (remote_target::program_signals): Adjust.
9340 * target-debug.h (target_debug_print_signals): Now takes a
9341 gdb::array_view as parameter. Adjust.
9342 * target.h (target_ops) <pass_signals, program_signals>: Replace
9343 pointer and length parameters with gdb::array_view.
9344 (target_pass_signals, target_program_signals): Likewise.
9345 * target-delegates.c: Regenerate.
9346
3046d67a
PA
93472019-01-24 Pedro Alves <palves@redhat.com>
9348
9349 * common/forward-scope-exit.h
9350 (forward_scope_exit::forward_scope_exit): Pass arguments to
9351 m_bind_function directly, instead of creating a std::bind and
9352 copying that.
9353
353229bf
AH
93542019-01-24 Alan Hayward <alan.hayward@arm.com>
9355
9356 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9357 for static members.
9358 (pass_in_v_vfp_candidate): Likewise.
9359
311dc83a
TT
93602019-01-23 Tom Tromey <tom@tromey.com>
9361 Pedro Alves <palves@redhat.com>
9362
9363 * regcache.c (class regcache_invalidator): Remove.
9364 (regcache::raw_write): Use make_scope_exit.
9365
296bd123
TT
93662019-01-23 Tom Tromey <tom@tromey.com>
9367
9368 * ui-out.h (class ui_out_emit_type): Update comment.
9369
979a0d13
TT
93702019-01-23 Tom Tromey <tom@tromey.com>
9371
9372 * infrun.c (fetch_inferior_event): Update comment.
9373
d238133d
TT
93742019-01-23 Tom Tromey <tom@tromey.com>
9375 Pedro Alves <palves@redhat.com>
9376
9377 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9378 parameter.
9379 (fetch_inferior_event): Use SCOPE_EXIT.
9380
9381
9885e6bb
TT
93822019-01-23 Tom Tromey <tom@tromey.com>
9383 Pedro Alves <palves@redhat.com>
9384
9385 * infrun.c (disable_thread_events): Delete.
9386 (stop_all_threads): Use SCOPE_EXIT.
9387
286526c1
TT
93882019-01-23 Tom Tromey <tom@tromey.com>
9389 Pedro Alves <palves@redhat.com>
9390
9391 * symfile.c: Include forward-scope-exit.h.
9392 (clear_symtab_users_cleanup): Replace forward declaration with
9393 a FORWARD_SCOPE_EXIT.
9394 (syms_from_objfile_1): Use the forward_scope_exit and
9395 gdb::optional instead of cleanup_function.
9396 (reread_symbols): Use the forward_scope_exit instead of
9397 cleanup_function.
9398 (clear_symtab_users_cleanup): Remove function.
9399
1db93f14
TT
94002019-01-23 Tom Tromey <tom@tromey.com>
9401 Pedro Alves <palves@redhat.com>
9402
9403 * linux-nat.c: Include scope-exit.h.
9404 (cleanup_target_stop): Remove.
9405 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9406 SCOPE_EXIT.
9407
2cc83d1e
TT
94082019-01-23 Tom Tromey <tom@tromey.com>
9409 Pedro Alves <palves@redhat.com>
9410
9411 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9412 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9413
694c6bf5
TT
94142019-01-23 Tom Tromey <tom@tromey.com>
9415 Andrew Burgess <andrew.burgess@embecosm.com>
9416 Pedro Alves <palves@redhat.com>
9417
9418 * infrun.c (fetch_inferior_event): Use scope_exit.
9419 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9420 * top.c (execute_command): Use scope_exit.
9421 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9422 * utils.c (do_bpstat_clear_actions_cleanup)
9423 (make_bpstat_clear_actions_cleanup): Remove.
9424
4c41382a
TT
94252019-01-23 Tom Tromey <tom@tromey.com>
9426 Pedro Alves <palves@redhat.com>
9427
9428 * infrun.c: Include "common/scope-exit.h"
9429 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9430 (wait_for_inferior): Use SCOPE_EXIT.
9431 (fetch_inferior_event): Use scope_exit.
9432
89f8fb50
TT
94332019-01-23 Tom Tromey <tom@tromey.com>
9434 Pedro Alves <palves@redhat.com>
9435
9436 * breakpoint.c (create_breakpoint): Remove cleanup.
9437
5419bdae
TT
94382019-01-23 Tom Tromey <tom@tromey.com>
9439 Andrew Burgess <andrew.burgess@embecosm.com>
9440 Pedro Alves <palves@redhat.com>
9441
e587ef42
PA
94422019-01-23 Pedro Alves <palves@redhat.com>
9443
9444 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9445
77f0e74c
PA
94462019-01-23 Pedro Alves <palves@redhat.com>
9447 Andrew Burgess <andrew.burgess@embecosm.com>
9448
9449 * gdbthread.h: Include "common/forward-scope-exit.h".
9450 (scoped_finish_thread_state): Redefine custom class in terms of
9451 forward_scope_exit.
9452
5b9b3e53
PA
94532019-01-23 Pedro Alves <palves@redhat.com>
9454 Andrew Burgess <andrew.burgess@embecosm.com>
9455
9456 * common/forward-scope-exit.h: New file.
9457
54b65c9b
PA
94582019-01-23 Pedro Alves <palves@redhat.com>
9459 Andrew Burgess <andrew.burgess@embecosm.com>
9460 Tom Tromey <tom@tromey.com>
9461
9462 * common/scope-exit.h: New file.
9463
cf08fb29
PA
94642019-01-23 Pedro Alves <palves@redhat.com>
9465
9466 * common/preprocessor.h (ESC): Rename to ...
9467 (ESC_PARENS): ... this.
9468 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9469 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9470
ae73e2e2
TT
94712019-01-23 Tom Tromey <tom@tromey.com>
9472
9473 * language.h (class scoped_switch_to_sym_language_if_auto):
9474 Initialize m_lang in both cases.
9475
6594e122
AH
94762019-01-23 Alan Hayward <alan.hayward@arm.com>
9477
9478 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9479 with XCNEW.
9480
a7c9855d
TT
94812019-01-22 Tom Tromey <tom@tromey.com>
9482
9483 * corelow.c: Do not include sys/file.h.
9484
93cc1d53
TT
94852019-01-22 Tom Tromey <tom@tromey.com>
9486
9487 * tui/tui-wingeneral.h: Include gdb_curses.h.
9488
38561778
TT
94892019-01-22 Tom Tromey <tom@tromey.com>
9490
9491 * source-cache.h (class source_cache) <get_source_lines,
9492 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9493
37b3ab5b
TT
94942019-01-22 Tom Tromey <tom@tromey.com>
9495
9496 * remote-fileio.h (struct remote_target): Declare.
9497
3fabc016
TT
94982019-01-22 Tom Tromey <tom@tromey.com>
9499
9500 * python/py-arch.c: Do not include py-ref.h.
9501 * python/py-bpevent.c: Do not include py-ref.h.
9502 * python/py-cmd.c: Do not include py-ref.h.
9503 * python/py-continueevent.c: Do not include py-ref.h.
9504 * python/py-event.h: Do not include py-ref.h.
9505 * python/py-evtregistry.c: Do not include py-ref.h.
9506 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9507 * python/py-frame.c: Do not include py-ref.h.
9508 * python/py-framefilter.c: Do not include py-ref.h.
9509 * python/py-function.c: Do not include py-ref.h.
9510 * python/py-infevents.c: Do not include py-ref.h.
9511 * python/py-linetable.c: Do not include py-ref.h.
9512 * python/py-objfile.c: Do not include py-ref.h.
9513 * python/py-param.c: Do not include py-ref.h.
9514 * python/py-prettyprint.c: Do not include py-ref.h.
9515 * python/py-progspace.c: Do not include py-ref.h.
9516 * python/py-symbol.c: Do not include py-ref.h.
9517 * python/py-symtab.c: Do not include py-ref.h.
9518 * python/py-type.c: Do not include py-ref.h.
9519 * python/py-unwind.c: Do not include py-ref.h.
9520 * python/py-utils.c: Do not include py-ref.h.
9521 * python/py-value.c: Do not include py-ref.h.
9522 * python/py-varobj.c: Do not include py-ref.h.
9523 * python/py-xmethods.c: Do not include py-ref.h.
9524 * python/python.c: Do not include py-ref.h.
9525 * varobj.c: Do not include py-ref.h.
9526
6b4d7774
TT
95272019-01-22 Tom Tromey <tom@tromey.com>
9528
9529 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9530 keyword for bcache.
9531
7af7e9b5
TT
95322019-01-22 Tom Tromey <tom@tromey.com>
9533
9534 * compile/compile-cplus-types.c: Remove a comment by #include.
9535
951d1049
TT
95362019-01-22 Tom Tromey <tom@tromey.com>
9537
9538 * compile/gcc-c-plugin.h: Include compile-internal.h.
9539
d65d5705
TT
95402019-01-22 Tom Tromey <tom@tromey.com>
9541
9542 * stabsread.c (EXTERN): Do not define.
9543 (symnum, next_symbol_text_func, processing_gcc_compilation)
9544 (within_function, global_sym_chain, global_stabs)
9545 (previous_stab_code, this_object_header_files)
9546 (n_this_object_header_files)
9547 (n_allocated_this_object_header_files): Define.
9548 * stabsread.h (EXTERN): Never define. Use "extern".
9549
b6fb1ee5
PW
95502019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9551
9552 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9553 history_value.
9554
be6d4f74
TT
95552019-01-21 Tom Tromey <tom@tromey.com>
9556
9557 * ui-out.c: Fix includes.
9558 * tui/tui-source.c: Fix includes.
9559 * target.c: Fix includes.
9560 * remote.c: Fix includes.
9561 * regcache.c: Fix includes.
9562 * python/py-block.c: Fix includes.
9563 * printcmd.c: Fix includes.
9564 * or1k-tdep.c: Fix includes.
9565 * mi/mi-main.c: Fix includes.
9566 * m32r-tdep.c: Fix includes.
9567 * csky-tdep.c: Fix includes.
9568 * compile/compile-cplus-types.c: Fix includes.
9569 * cli/cli-interp.c: Fix includes.
9570
73021deb
AH
95712019-01-21 Alan Hayward <alan.hayward@arm.com>
9572
9573 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9574 for padding.
9575
7932255d
TT
95762019-01-16 Tom Tromey <tom@tromey.com>
9577
9578 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
9579 earlier.
9580 (struct objfile) <msymbols_range>: Move from top level.
9581 <msymbols>: New method.
9582 (class objfile_msymbols): Remove.
9583 * symtab.c (default_collect_symbol_completion_matches_break_on):
9584 Update.
9585 * symmisc.c (dump_msymbols): Update.
9586 * stabsread.c (scan_file_globals): Update.
9587 * objc-lang.c (info_selectors_command, info_classes_command)
9588 (find_methods): Update.
9589 * minsyms.c (find_solib_trampoline_target): Update.
9590 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
9591 * coffread.c (coff_symfile_read): Update.
9592 * ada-lang.c (ada_lookup_simple_minsym)
9593 (ada_collect_symbol_completion_matches): Update.
9594
604b1bfb
TT
95952019-01-16 Tom Tromey <tom@tromey.com>
9596
9597 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
9598 type. Remove no-argument constructor.
9599 <iterator::operator++>: Simplify.
9600 <begin>: Update.
9601 <end>: Use minimal_symbol_count.
9602
f252c6d5
TT
96032019-01-16 Tom Tromey <tom@tromey.com>
9604
9605 * objfiles.h (struct objfile) <psymtabs>: New method.
9606 (class objfile_psymtabs): Remove.
9607 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
9608 typedef.
9609 <range>: New method.
9610 (require_partial_symbols): Change return type.
9611 * psymtab.c (require_partial_symbols)
9612 (psym_expand_symtabs_matching): Update.
9613 * mdebugread.c (parse_partial_symbols): Update.
9614 * dbxread.c (dbx_end_psymtab): Update.
9615
b669c953
TT
96162019-01-15 Tom Tromey <tom@tromey.com>
9617
9618 * symtab.c (lookup_objfile_from_block)
9619 (lookup_symbol_in_objfile_symtabs)
9620 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
9621 (find_line_symtab, info_sources_command)
9622 (default_collect_symbol_completion_matches_break_on)
9623 (make_source_files_completion_list): Update.
9624 * symmisc.c (print_objfile_statistics, dump_objfile)
9625 (maintenance_print_symbols, maintenance_info_symtabs)
9626 (maintenance_check_symtabs, maintenance_info_line_tables):
9627 Update.
9628 * source.c (select_source_symtab)
9629 (forget_cached_source_info_for_objfile): Update.
9630 * objfiles.h (class objfile_compunits): Remove.
9631 (struct objfile) <compunits_range>: New typedef.
9632 (compunits): New method.
9633 * objfiles.c (objfile_relocate1): Update.
9634 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9635 * maint.c (count_symtabs_and_blocks): Update.
9636 * linespec.c (iterate_over_all_matching_symtabs): Update.
9637 * cp-support.c (add_symbol_overload_list_qualified): Update.
9638 * coffread.c (coff_symtab_read): Update.
9639 * ada-lang.c (add_nonlocal_symbols)
9640 (ada_collect_symbol_completion_matches)
9641 (ada_add_global_exceptions): Update.
9642
7e955d83
TT
96432019-01-15 Tom Tromey <tom@tromey.com>
9644
9645 * progspace.h (program_space) <objfiles_safe_range>: New
9646 typedef.
9647 <objfiles_safe>: New method.
9648 * objfiles.h (class all_objfiles_safe): Remove.
9649 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
9650 * jit.c (jit_inferior_exit_hook): Update.
9651
2030c079
TT
96522019-01-17 Tom Tromey <tom@tromey.com>
9653
9654 * progspace.h (program_space) <objfiles_range>: New typedef.
9655 <objfiles>: New method.
9656 <objfiles_head>: Rename from objfiles.
9657 (object_files): Update.
9658 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
9659 * guile/scm-pretty-print.c
9660 (ppscm_find_pretty_printer_from_objfiles): Update.
9661 * guile/scm-objfile.c (gdbscm_objfiles): Update.
9662 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
9663 Update.
9664 * python/py-progspace.c (pspy_get_objfiles): Update.
9665 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
9666 Update.
9667 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
9668 (objfpy_lookup_objfile_by_build_id): Update.
9669 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9670 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
9671 Update.
9672 * symtab.c (iterate_over_symtabs, matching_obj_sections)
9673 (expand_symtab_containing_pc, lookup_objfile_from_block)
9674 (lookup_static_symbol, basic_lookup_transparent_type)
9675 (find_pc_sect_compunit_symtab, find_symbol_at_address)
9676 (find_line_symtab, info_sources_command)
9677 (default_collect_symbol_completion_matches_break_on)
9678 (make_source_files_completion_list, find_main_name): Update.
9679 * symmisc.c (print_symbol_bcache_statistics)
9680 (print_objfile_statistics, maintenance_print_symbols)
9681 (maintenance_print_msymbols, maintenance_print_objfiles)
9682 (maintenance_info_symtabs, maintenance_check_symtabs)
9683 (maintenance_expand_symtabs, maintenance_info_line_tables):
9684 Update.
9685 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
9686 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
9687 (map_overlay_command, unmap_overlay_command)
9688 (simple_overlay_update, expand_symtabs_matching)
9689 (map_symbol_filenames): Update.
9690 * symfile-debug.c (set_debug_symfile): Update.
9691 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
9692 Update.
9693 * source.c (select_source_symtab, forget_cached_source_info):
9694 Update.
9695 * solib.c (solib_read_symbols): Update.
9696 * solib-spu.c (append_ocl_sos): Update.
9697 * psymtab.c (maintenance_print_psymbols)
9698 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
9699 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
9700 * printcmd.c (info_symbol_command): Update.
9701 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
9702 Update.
9703 * objfiles.h (class all_objfiles): Remove.
9704 * objfiles.c (have_partial_symbols, have_full_symbols)
9705 (have_minimal_symbols, qsort_cmp, update_section_map)
9706 (shared_objfile_contains_address_p)
9707 (default_iterate_over_objfiles_in_search_order): Update.
9708 * objc-lang.c (info_selectors_command, info_classes_command)
9709 (find_methods): Update.
9710 * minsyms.c (find_solib_trampoline_target): Update.
9711 * maint.c (maintenance_info_sections)
9712 (maintenance_translate_address, count_symtabs_and_blocks):
9713 Update.
9714 * main.c (captured_main_1): Update.
9715 * linux-thread-db.c (try_thread_db_load_from_pdir)
9716 (has_libpthread): Update.
9717 * linespec.c (iterate_over_all_matching_symtabs)
9718 (search_minsyms_for_name): Update.
9719 * jit.c (jit_find_objf_with_entry_addr): Update.
9720 * hppa-tdep.c (find_unwind_entry)
9721 (hppa_lookup_stub_minimal_symbol): Update.
9722 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
9723 Update.
9724 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
9725 (elf_gnu_ifunc_resolve_by_got): Update.
9726 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
9727 * dwarf-index-write.c (save_gdb_index_command): Update.
9728 * cp-support.c (add_symbol_overload_list_qualified): Update.
9729 * breakpoint.c (create_overlay_event_breakpoint)
9730 (create_longjmp_master_breakpoint)
9731 (create_std_terminate_master_breakpoint)
9732 (create_exception_master_breakpoint): Update.
9733 * blockframe.c (find_pc_partial_function): Update.
9734 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
9735 (ada_collect_symbol_completion_matches)
9736 (ada_add_global_exceptions): Update.
9737
776489e0
TT
97382019-01-17 Tom Tromey <tom@tromey.com>
9739
9740 * solib-target.c (lm_info_target_p): Remove typedef. Don't
9741 declare VEC.
9742 (solib_target_parse_libraries): Change return type.
9743 (library_list_start_segment, library_list_start_section)
9744 (library_list_end_library, library_list_start_library); Update.
9745 (solib_target_free_library_list): Remove.
9746 (solib_target_parse_libraries): Remove cleanup. Change return
9747 type.
9748 (solib_target_current_sos): Update.
9749
6471e7d2
TT
97502019-01-17 Tom Tromey <tromey@bapiya>
9751
9752 * valprint.c: Replace "the the" with "the".
9753 * symtab.c: Replace "the the" with "the".
9754 * solib.c: Replace "the the" with "the".
9755 * solib-dsbt.c: Replace "the the" with "the".
9756 * linespec.c: Replace "the the" with "the".
9757 * dwarf2loc.h: Replace "the the" with "the".
9758 * amd64-windows-tdep.c: Replace "the the" with "the".
9759 * aarch64-tdep.c: Replace "the the" with "the".
9760
c24bdb02
KS
97612019-01-16 Keith Seitz <keiths@redhat.com>
9762
9763 PR gdb/23773
9764 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
9765 <builder>: Rename to ..
9766 <m_builder>: ... this and make private.
9767 (dwarf2_cu::get_builder): New method. Change all users of
9768 `builder' to use this method.
9769 (dwarf2_start_symtab): Move to ...
9770 (dwarf2_cu::start_symtab): ... here. Update all callers
9771 (setup_type_unit_groups): Move to ...
9772 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
9773 callers.
9774 (dwarf2_cu::reset_builder): New method.
9775 (process_full_compunit, process_full_type_unit): Use
9776 dwarf2_cu::reset_builder.
9777 (follow_die_offset): Record the ancestor CU if it is different
9778 from the followed DIE's CU.
9779 (follow_die_sig_1): Likewise.
9780
8d64371b
TT
97812019-01-15 Tom Tromey <tom@tromey.com>
9782
9783 * remote.c (class remote_state) <buf>: Now a char_vector.
9784 <buf_size>: Remove.
9785 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
9786 parameter.
9787 (remote_target::getpkt_or_notif_sane_1)
9788 (remote_target::getpkt_sane)
9789 (remote_target::getpkt_or_notif_sane): Likewise.
9790 (class remote_target) <putpkt>: New overload.
9791 (remote_target::read_frame): Change type of "buf_p". Remove
9792 sizeof_p parameter.
9793 (packet_ok): New overload.
9794 (packet_check_result): New overload.
9795 Update all uses.
9796
bb277751
TT
97972019-01-14 Tom Tromey <tom@tromey.com>
9798
9799 * remote-notif.c (handle_notification, remote_notif_ack)
9800 (remote_notif_parse): Make "buf" const.
9801 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
9802 const.
9803 (remote_notif_parse, remote_notif_ack, handle_notification):
9804 Likewise.
9805 * remote.c (remote_notif_stop_parse): Make "buf" const.
9806 (remote_target::remote_parse_stop_reply): Make "buf" const.
9807 (remote_notif_stop_ack): Make "buf" const.
9808
05be00a8
TT
98092019-01-14 Tom Tromey <tom@tromey.com>
9810
9811 * remote.c (remote_console_output): Make parameter const.
9812
491adeca
TT
98132019-01-14 Tom Tromey <tom@tromey.com>
9814
9815 * target-debug.h (target_debug_print_signals): Constify.
9816 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
9817 * procfs.c (procfs_target::pass_signals): Update.
9818 * linux-nat.c (linux_nat_target::pass_signals): Update.
9819 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
9820 * target-delegates.c: Rebuild.
9821 * remote.c (remote_target::program_signals): Update.
9822 (remote_target::pass_signals): Update.
9823 * target.c (target_pass_signals): Constify argument.
9824 (target_program_signals): Likewise.
9825 * target.h (struct target_ops) <pass_signals, program_signals>:
9826 Constify argument.
9827 (target_pass_signals, target_program_signals): Constify argument.
9828
bbd94648
TT
98292019-01-14 Tom Tromey <tom@tromey.com>
9830
9831 PR tui/28819:
9832 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
9833
6f072a10
PFC
98342019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9835
9836 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
9837 field.
9838 * rs6000-tdep.c: Include reggroups.h.
9839 (IS_V_ALIAS_PSEUDOREG): Define.
9840 (rs6000_register_name): Return names for the "vX" aliases.
9841 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
9842 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
9843 aliases. Call default_register_reggroup_p for all other
9844 pseudo-registers.
9845 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
9846 New functions.
9847 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
9848 Handle "vX" aliases.
9849 (v_alias_pseudo_register_collect): New function.
9850 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
9851 (rs6000_gdbarch_init): Initialize "vX" aliases as
9852 pseudo-registers. Restore registration of
9853 rs6000_pseudo_register_reggroup_p with
9854 set_tdesc_pseudo_register_reggroup_p.
9855
1a782351
MF
98562019-01-13 Max Filippov <jcmvbkbc@gmail.com>
9857
9858 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
9859 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
9860 set_gdbarch_num_pseudo_regs.
9861
d73cff18
PW
98622019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9863
9864 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
9865 Remove arg prefixname, add do_set and do_show.
9866 Add member functions set_list and show_list.
9867 * cli/cli-style.c (class cli_style_option): Update accordingly.
9868 (style_set_list): Move to file scope.
9869 (style_show_list): Likewise.
9870 (set_style): Call help_list.
9871 (show_style): Call cmd_show_list.
9872 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
9873 Update to use the new macro.
9874
60a90376
JB
98752019-10-12 Joel Brobecker <brobecker@adacore.com>
9876
9877 * ada-lang.c (_initialize_ada_language): Expand the help text
9878 for the "catch exception" command.
9879
9d7c67bf
PW
98802019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9881
9882 * symtab.c (matching_obj_sections): Initialize obj,
9883 declare it closer to its usage.
9884
7cf47dc4
TT
98852019-01-10 Tom Tromey <tom@tromey.com>
9886
9887 * thread-iter.h (inf_threads_iterator): Use next_iterator.
9888 (basic_inf_threads_range): Remove.
9889 (inf_threads_range, inf_non_exited_threads_range)
9890 (safe_inf_threads_range): Use next_adapter.
9891
d3cb6808
KS
98922019-01-10 Keith Seitz <keiths@redhat.com>
9893
9894 PR gdb/23712
9895 PR symtab/23010
9896 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
9897 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
9898
63a20375
KS
98992019-01-10 Keith Seitz <keiths@redhat.com>
9900
9901 PR gdb/23712
9902 PR symtab/23010
9903 * dictionary.c (pending_to_vector): Remove.
9904 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
9905 Remove _1 suffix, replacing functions of the same name. Update
9906 all callers.
9907 (dict_create_hashed, dict_create_hashed_expandable)
9908 (dict_create_linear, dict_create_linear_expandable, dict_free)
9909 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
9910 Make functions static.
9911
b026f593
KS
99122019-01-10 Keith Seitz <keiths@redhat.com>
9913
9914 PR gdb/23712
9915 PR symtab/23010
9916 * dictionary.h (struct dictionary): Replace declaration with
9917 multidictionary.
9918 (dict_create_hashed, dict_create_hashed_expandable)
9919 (dict_create_linear, dict_create_linear_expandable)
9920 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
9921 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
9922 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
9923 taking multidictionary argument.
9924 [ALL_DICT_SYMBOLS]: Update for multidictionary.
9925 * block.h (struct block) <dict>: Change to multidictionary
9926 and rename `multidict'.
9927 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
9928 symmisc.c: Update all dictionary references to multidictionary.
9929
c7748ee9
KS
99302019-01-10 Keith Seitz <keiths@redhat.com>
9931
9932 PR gdb/23712
9933 PR symtab/23010
9934 * dictionary.c: Include unordered_map.
9935 (pending_to_vector): New function.
9936 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
9937 Rewrite the non-"_1" functions to take vector instead
9938 of linked list.
9939 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
9940 "new" _1 versions of the same name.
9941 (multidictionary): Define.
9942 (std::hash<enum language): New definition.
9943 (collate_pending_symbols_by_language, mdict_create_hashed)
9944 (mdict_create_hashed_expandable, mdict_create_linear)
9945 (mdict_create_linear_expandable, mdict_free)
9946 (find_language_dictionary, create_new_language_dictionary)
9947 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
9948 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
9949 (mdict_size, mdict_empty): New functions.
9950 * dictionary.h (mdict_iterator): Define.
9951
67aa1f3c
PA
99522019-01-10 Pedro Alves <palves@redhat.com>
9953
9954 * breakpoint.c (read_uploaded_action)
9955 (create_tracepoint_from_upload): Adjust to use
9956 gdb::unique_xmalloc_ptr.
9957 * ctf.c (ctf_write_uploaded_tp):
9958 (SET_ARRAY_FIELD): Use emplace_back.
9959 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
9960 * tracefile-tfile.c (tfile_write_uploaded_tp):
9961 * tracepoint.c (parse_tracepoint_definition): Adjust to use
9962 gdb::unique_xmalloc_ptr.
9963 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
9964 at_string, cond_string, cmd_strings>: Replace char pointers
9965 with gdb::unique_xmalloc_ptr.
9966
2f667667
PA
99672019-01-10 Pedro Alves <palves@redhat.com>
9968
9969 * solib-target.c (library_list_start_library): Don't xstrdup name.
9970
36cb7237
PA
99712019-01-10 Pedro Alves <palves@redhat.com>
9972
9973 * mdebugread.c (parse_partial_symbols): Use
9974 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
9975
da584958
AB
99762019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
9977
9978 * linux-fork.c (scoped_switch_fork_info)
9979 <~scoped_switch_fork_info>: Fix incorrect variable name.
9980
1ef8573c
AB
99812019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
9982
9983 * linux-fork.c (scoped_switch_fork_info)
9984 <scoped_switch_fork_info>: Make explicit.
9985 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
9986
8d7bcccb
TT
99872019-01-10 Tom Tromey <tom@tromey.com>
9988
9989 * objfiles.h (objfile::reset_psymtabs): Update.
9990 * objfiles.c (objfile::objfile): Update.
9991 * psymtab.h (psymtab_storage::obstack): Update.
9992 (psymtab_storage::m_obstack): Use gdb::optional.
9993 (class psymtab_storage): Update comment. Remove objfile
9994 parameter.
9995 * psymtab.c (psymtab_storage::psymtab_storage): Update.
9996
b596a3c7
TT
99972019-01-10 Tom Tromey <tom@tromey.com>
9998
9999 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10000 <free_psymtabs>: Now private.
10001 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10002 (allocate_psymtab): Use new method.
10003
a9342b62
TT
100042019-01-10 Tom Tromey <tom@tromey.com>
10005
10006 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10007 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10008 * mdebugread.c (parse_partial_symbols): Use
10009 allocate_dependencies.
10010 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10011 allocate_dependencies.
10012 (process_psymtab_comp_unit_reader)
10013 (build_type_psymtab_dependencies): Likewise.
10014 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10015
5af70966
TT
100162019-01-10 Tom Tromey <tom@tromey.com>
10017
10018 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10019 PSYMBOL_SET_LANGUAGE.
10020 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10021
5923a04c
TT
100222019-01-10 Tom Tromey <tom@tromey.com>
10023
10024 * psymtab.h (psymtab_storage::obstack): New method.
10025 <m_obstack>: Rename from obstack; now private.
10026 * psymtab.c (psymtab_storage): Update.
10027 * dwarf2read.c (create_addrmap_from_index)
10028 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10029 Update.
10030
6d6a12bf
TT
100312019-01-10 Tom Tromey <tom@tromey.com>
10032
10033 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10034 * objfiles.h (objfile::reset_psymtabs): New method.
10035
d320c2b5
TT
100362019-01-10 Tom Tromey <tom@tromey.com>
10037
10038 * symmisc.c (print_symbol_bcache_statistics): Update.
10039 (print_objfile_statistics): Update.
10040 * symfile.c (reread_symbols): Update.
10041 * psymtab.h (class psymtab_storage): New.
10042 * psymtab.c (psymtab_storage): New constructor.
10043 (~psymtab_storage): New destructor.
10044 (require_partial_symbols): Update.
10045 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10046 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10047 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10048 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10049 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10050 (start_psymtab_common, end_psymtab_common)
10051 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10052 (allocate_psymtab): Update.
10053 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10054 Update.
10055 (dump_psymtab_addrmap, maintenance_print_psymbols)
10056 (maintenance_check_psymtabs): Update.
10057 (class objfile_psymtabs): Move to objfiles.h.
10058 * psympriv.h (discard_psymtab): Now inline.
10059 (psymtab_discarder::psymtab_discarder): Update.
10060 (psymtab_discarder::~psymtab_discarder): Update.
10061 (ALL_OBJFILE_PSYMTABS): Rewrite.
10062 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10063 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10064 Remove fields.
10065 <partial_symtabs>: New field.
10066 (class objfile_psymtabs): Move from psymtab.h. Update.
10067 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10068 psymbol_cache.
10069 (objfile::~objfile): Don't destroy psymbol_cache.
10070 * mdebugread.c (parse_partial_symbols): Update.
10071 * dwarf2read.c (create_addrmap_from_index)
10072 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10073 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10074 (add_partial_subprogram, dwarf2_ranges_read): Update.
10075 * dwarf-index-write.c (write_address_map)
10076 (write_one_signatured_type, recursively_write_psymbols)
10077 (class debug_names, class debug_names, write_psymtabs_to_index):
10078 Update.
10079
1d94a5a3
TT
100802019-01-10 Tom Tromey <tom@tromey.com>
10081
10082 * symtab.h (SYMBOL_SET_NAMES): Update.
10083 (symbol_set_names): Update.
10084 (MSYMBOL_SET_NAMES): Update.
10085 * symtab.c (symbol_set_names): Change argument to be an
10086 objfile_per_bfd_storage.
10087 * psymtab.c (add_psymbol_to_bcache): Update.
10088 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10089
0f14768a
TT
100902019-01-10 Tom Tromey <tom@tromey.com>
10091
10092 * symtab.c (create_demangled_names_hash): Change argument to be an
10093 objfile_per_bfd_storage.
10094 (symbol_set_names): Update.
10095
6eee24ce
TT
100962019-01-10 Tom Tromey <tom@tromey.com>
10097
10098 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10099 init_psymbol_list.
10100 * psymtab.c (init_psymbol_list): Do nothing if already called.
10101 * psympriv.h (init_psymbol_list): Add comment.
10102 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10103 init_psymbol_list.
10104 * dbxread.c (dbx_symfile_read): Unconditionally call
10105 init_psymbol_list.
10106
75aedd27
TT
101072019-01-10 Tom Tromey <tom@tromey.com>
10108
10109 * xcoffread.c (scan_xcoff_symtab): Update.
10110 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10111 "where".
10112 * mdebugread.c (parse_partial_symbols)
10113 (handle_psymbol_enumerators): Update.
10114 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10115 * dbxread.c (read_dbx_symtab): Update.
10116 * psympriv.h (psymbol_placement): New enum.
10117 (add_psymbol_to_list): Update.
10118
939652a5
TT
101192019-01-10 Tom Tromey <tom@tromey.com>
10120
10121 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10122 static_psymbols parameters.
10123 (scan_xcoff_symtab): Update.
10124 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10125 static_psymbols parameters.
10126 * psympriv.h (start_psymtab_common): Update.
10127 * mdebugread.c (parse_partial_symbols): Update.
10128 * dwarf2read.c (create_partial_symtab): Update.
10129 * dbxread.c (read_dbx_symtab): Update.
10130 (start_psymtab): Remove global_psymbols and static_psymbols
10131 parameters.
10132
baa62830
TT
101332019-01-10 Tom Tromey <tom@tromey.com>
10134
10135 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10136 * psymtab.c (allocate_psymtab): Add comment.
10137 * psympriv.h (allocate_psymtab): Add comment.
10138 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10139 initializations.
10140 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10141
0e8f53ba
TT
101422019-01-10 Tom Tromey <tom@tromey.com>
10143
10144 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10145 Don't declare.
10146 * mipsread.c: Include mdebugread.h.
10147 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10148 Declare.
10149 * elfread.c: Include mdebugread.h.
10150
b22a7c6a
TT
101512019-01-09 Tom Tromey <tom@tromey.com>
10152
10153 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10154 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10155 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10156 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10157 (psym_lookup_symbol, psym_find_last_source_symtab)
10158 (psym_forget_cached_source_info, psym_print_stats)
10159 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10160 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10161 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10162 (psym_find_compunit_symtab_by_address)
10163 (maintenance_print_psymbols, maintenance_info_psymtabs)
10164 (maintenance_check_psymtabs): Use ranged for.
10165 * psymtab.h (class objfile_psymtabs): New.
10166 (require_partial_symbols): Return objfile_psymtabs.
10167 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10168
3b9d3ac2
TT
101692019-01-09 Tom Tromey <tom@tromey.com>
10170
10171 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10172 (find_pc_mapped_section, list_overlays_command)
10173 (map_overlay_command, unmap_overlay_command)
10174 (simple_overlay_update): Use all_objfiles.
10175 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10176 * printcmd.c (info_symbol_command): Use all_objfiles.
10177 * objfiles.h (ALL_OBJSECTIONS): Remove.
10178 * maint.c (maintenance_translate_address): Use all_objfiles.
10179 * gcore.c (gcore_create_callback): Use all_objfiles.
10180 (objfile_find_memory_regions): Likewise.
10181
8b31193a
TT
101822019-01-09 Tom Tromey <tom@tromey.com>
10183
10184 * symtab.c (find_line_symtab, info_sources_command)
10185 (make_source_files_completion_list): Use objfile_compunits.
10186 * source.c (select_source_symtab): Use objfile_compunits.
10187 * objfiles.h (struct objfile): Update comment.
10188 (ALL_OBJFILES): Remove.
10189 (ALL_FILETABS): Remove.
10190 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10191 objfile_compunits.
10192
d5da8b3c
TT
101932019-01-09 Tom Tromey <tom@tromey.com>
10194
10195 * symmisc.c (print_objfile_statistics, dump_objfile)
10196 (maintenance_print_symbols): Use compunit_filetabs.
10197 * source.c (forget_cached_source_info_for_objfile): Use
10198 compunit_filetabs.
10199 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10200 (ALL_FILETABS): Use compunit_filetabs.
10201 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10202 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10203
5accd1a0
TT
102042019-01-09 Tom Tromey <tom@tromey.com>
10205
10206 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10207 (compunit_filetabs): New.
10208 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10209 compunit_filetabs.
10210 (info_sources_command, make_source_files_completion_list): Remove
10211 declaration.
10212 * symmisc.c (print_objfile_statistics, dump_objfile)
10213 (maintenance_print_symbols): Remove declaration.
10214 (maintenance_info_symtabs): Use compunit_filetabs.
10215 (maintenance_info_line_tables): Likewise.
10216 * source.c (select_source_symtab): Change local variable name.
10217 (forget_cached_source_info_for_objfile): Remove declaration.
10218 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10219 * objfiles.c (objfile_relocate1): Remove declaration.
10220 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10221 declaration.
10222 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10223 * coffread.c (coff_symtab_read): Remove declaration.
10224 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10225 compunit_filetabs.
10226
d8aeb77f
TT
102272019-01-09 Tom Tromey <tom@tromey.com>
10228
10229 * symtab.c (lookup_objfile_from_block)
10230 (find_pc_sect_compunit_symtab, search_symbols)
10231 (default_collect_symbol_completion_matches_break_on): Use
10232 objfile_compunits.
10233 * objfiles.h (ALL_COMPUNITS): Remove.
10234 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10235 * cp-support.c (add_symbol_overload_list_qualified): Use
10236 objfile_compunits.
10237 * ada-lang.c (ada_collect_symbol_completion_matches)
10238 (ada_add_global_exceptions): Use objfile_compunits.
10239
592553c4
TT
102402019-01-09 Tom Tromey <tom@tromey.com>
10241
10242 * source.c (select_source_symtab)
10243 (forget_cached_source_info_for_objfile): Remove declaration.
10244 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10245 declaration.
10246 * maint.c (count_symtabs_and_blocks): Remove declaration.
10247 * cp-support.c (add_symbol_overload_list_qualified): Remove
10248 declaration.
10249 * coffread.c (coff_symtab_read): Remove declaration.
10250 * symtab.c (lookup_symbol_in_objfile_symtabs)
10251 (basic_lookup_transparent_type_1): Use objfile_compunits.
10252 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10253 (info_sources_command, search_symbols)
10254 (default_collect_symbol_completion_matches_break_on)
10255 (make_source_files_completion_list): Remove declaration.
10256 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10257 (ada_collect_symbol_completion_matches)
10258 (ada_add_global_exceptions): Remove declaration.
10259 * linespec.c (iterate_over_all_matching_symtabs): Use
10260 objfile_compunits.
10261 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10262 (class objfile_compunits): New.
10263 (ALL_COMPUNITS): Use objfile_compunits.
10264 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10265 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10266 objfile_compunits.
10267 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10268
5325b9bf
TT
102692019-01-09 Tom Tromey <tom@tromey.com>
10270
10271 * symtab.c (search_symbols)
10272 (default_collect_symbol_completion_matches_break_on): Use
10273 objfile_msymbols.
10274 * ada-lang.c (ada_lookup_simple_minsym)
10275 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10276 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10277 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10278 objfile_msymbols.
10279 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10280 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10281 * objc-lang.c (find_methods): Use objfile_msymbols.
10282 (info_selectors_command, info_classes_command): Likewise.
10283 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10284 * objfiles.h (class objfile_msymbols): New.
10285 (ALL_OBJFILE_MSYMBOLS): Remove.
10286 (ALL_MSYMBOLS): Remove.
10287
cac85af2
TT
102882019-01-09 Tom Tromey <tom@tromey.com>
10289
10290 * common/next-iterator.h (next_adapter): Add Iterator template
10291 parameter.
10292 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10293 (class all_objfiles_safe): New.
10294 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10295 * objfiles.c (put_objfile_before): Update comment.
10296 (add_separate_debug_objfile): Likewise.
10297 (free_all_objfiles): Use all_objfiles_safe.
10298 (objfile_purge_solibs): Likewise.
10299
aed57c53
TT
103002019-01-09 Tom Tromey <tom@tromey.com>
10301
10302 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10303 (expand_symtab_containing_pc, lookup_static_symbol)
10304 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10305 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10306 all_objfiles.
10307 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10308 * breakpoint.c (create_overlay_event_breakpoint)
10309 (create_longjmp_master_breakpoint)
10310 (create_std_terminate_master_breakpoint)
10311 (create_exception_master_breakpoint): Use all_objfiles.
10312 * linux-thread-db.c (try_thread_db_load_from_pdir)
10313 (has_libpthread): Use all_objfiles.
10314 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10315 * linespec.c (iterate_over_all_matching_symtabs)
10316 (search_minsyms_for_name): Use all_objfiles.
10317 * maint.c (maintenance_info_sections): Use all_objfiles.
10318 * main.c (captured_main_1): Use all_objfiles.
10319 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10320 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10321 * guile/scm-pretty-print.c
10322 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10323 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10324 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10325 (maintenance_print_msymbols): Use all_objfiles.
10326 * source.c (select_source_symtab): Use all_objfiles.
10327 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10328 * symfile.c (remove_symbol_file_command)
10329 (expand_symtabs_matching, map_symbol_filenames): Use
10330 all_objfiles.
10331 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10332 all_objfiles.
10333 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10334 * objc-lang.c (find_methods): Use all_objfiles.
10335 * objfiles.c (have_partial_symbols, have_full_symbols)
10336 (have_minimal_symbols, qsort_cmp)
10337 (default_iterate_over_objfiles_in_search_order): Use
10338 all_objfiles.
10339 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10340 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10341 (maintenance_check_psymtabs): Use all_objfiles.
10342 (ALL_PSYMTABS): Remove.
10343 * compile/compile-object-run.c (do_module_cleanup): Use
10344 all_objfiles.
10345 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10346 * cp-support.c (add_symbol_overload_list_qualified): Use
10347 all_objfiles.
10348 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10349 Use all_objfiles.
10350 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10351 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10352 all_objfiles.
10353 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10354 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10355 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10356 Uses all_objfiles.
10357 * solib.c (solib_read_symbols): Use all_objfiles
10358
99d89cde
TT
103592019-01-09 Tom Tromey <tom@tromey.com>
10360
10361 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10362 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10363 all_objfiles.
10364 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10365 * symmisc.c (print_symbol_bcache_statistics)
10366 (print_objfile_statistics, maintenance_print_objfiles)
10367 (maintenance_info_symtabs, maintenance_check_symtabs)
10368 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10369 all_objfiles.
10370 * source.c (forget_cached_source_info): Use all_objfiles.
10371 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10372 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10373 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10374 * objfiles.c (update_section_map): Use all_objfiles.
10375 (shared_objfile_contains_address_p): Likewise.
10376 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10377 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10378
21708325
TT
103792019-01-09 Tom Tromey <tom@tromey.com>
10380
10381 * common/next-iterator.h: New file.
10382 * objfiles.h (class all_objfiles): New.
10383 (struct objfile_iterator): New.
10384
669e09f6
PW
103852019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10386
10387 * NEWS: Move the description of the changed "frame", "select-frame",
10388 and "info frame" commands to the Changed commands section.
10389
041be526
SM
103902019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10391
10392 * gdbtypes.c (check_stub_method_group): Remove handling of old
10393 mangling schemes.
10394 * linespec.c (find_methods): Likewise.
10395 * stabsread.c (read_member_functions): Likewise.
10396 * valops.c (search_struct_method): Likewise.
10397 (value_struct_elt_for_reference): Likewise.
10398 * NEWS: Mention this change.
10399
0e2a2133
AB
104002019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10401
10402 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10403 print_source_lines.
10404 * source.c (print_source_lines_base): Update line number check.
10405 (print_source_lines): New function.
10406 (source_lines_range::source_lines_range): New function.
10407 * source.h (class source_lines_range): New class.
10408 (print_source_lines): New declaration.
10409
1055a3b4
PW
104102019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10411
10412 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10413
cfeadda5
TT
104142019-01-08 Tom Tromey <tom@tromey.com>
10415 Simon Marchi <simon.marchi@ericsson.com>
10416
10417 PR gdb/24060
10418 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10419 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10420 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10421 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10422 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10423 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10424
583068ca
AB
104252019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10426
10427 * source.c (select_source_symtab): Move header comment to
10428 declaration in source.h.
10429 (forget_cached_source_info_for_objfile): Likewise.
10430 (forget_cached_source_info): Likewise.
10431 (identify_source_line): Likewise.
10432 * source.h (identify_source_line): Move declaration from symtab.h
10433 and add comment from source.c
10434 (print_source_lines): Likewise.
10435 (forget_cached_source_info_for_objfile): Likewise.
10436 (forget_cached_source_info): Likewise.
10437 (select_source_symtab): Likewise.
10438 (enum print_source_lines_flag): Move definition from symtab.h.
10439 * symtab.h (identify_source_line): Move declaration to source.h.
10440 (print_source_lines): Likewise.
10441 (forget_cached_source_info_for_objfile): Likewise.
10442 (forget_cached_source_info): Likewise.
10443 (select_source_symtab): Likewise.
10444 (enum print_source_lines_flag): Move definition to source.h.
10445 * tui/tui-hooks.c: Add 'source.h' include.
10446
ec98a4ad
AB
104472019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10448
10449 * source.c (print_source_lines_base): Handle requests to print
10450 reverse line number sequences, and guard against empty lines
10451 string.
10452
62ea19c1
AB
104532019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10454
10455 * source.c (print_source_lines_base): Fix skip of '\r' if next
10456 character is '\n'.
10457
9d30e1fd
TT
104582019-01-06 Tom Tromey <tom@tromey.com>
10459
10460 * c-exp.y (struct c_parse_state) <macro_original_text,
10461 expansion_obstack>: New member.
10462 (macro_original_text, expansion_obstack): Remove globals.
10463 (scan_macro_expansion, scanning_macro_expansion)
10464 (finished_macro_expansion): Update.
10465 (scan_macro_cleanup): Remove.
10466 (yylex, c_parse): Update.
10467
c65bac38
TT
104682019-01-06 Tom Tromey <tom@tromey.com>
10469
10470 * c-exp.y (struct c_parse_state) <strings>: New member.
10471 (operator_stoken): Update.
10472
02e12e38
TT
104732019-01-06 Tom Tromey <tom@tromey.com>
10474
10475 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10476 (union type_stack_elt) <typelist_val>: Now a pointer to
10477 std::vector.
10478 (type_stack_cleanup): Don't declare.
10479 (push_typelist): Update.
10480 * parse.c (pop_typelist): Return a std::vector.
10481 (push_typelist): Take a std::vector.
10482 (follow_types): Update. Do not free args.
10483 (type_stack_cleanup): Remove.
10484 * c-exp.y (struct c_parse_state): New.
10485 (cpstate): New global.
10486 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10487 (nonempty_typelist): Update.
10488 (func_mod): Create a new vector.
10489 (c_parse): Create a c_parse_state.
10490 (check_parameter_typelist): Do not delete params.
10491 (function_method): Update. Do not delete type_list.
10492
f097f5ad
TT
104932019-01-06 Tom Tromey <tom@tromey.com>
10494
10495 PR gdb/28155:
10496 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10497 check_typedef.
10498 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10499 (print_return_value): Likewise.
10500
d2adf9f1
TT
105012019-01-05 Tom Tromey <tom@tromey.com>
10502
10503 * contrib/cleanup_check.py: Remove.
10504 * contrib/gcc-with-excheck: Remove.
10505 * contrib/exsummary.py: Remove.
10506 * contrib/excheck.py: Remove.
10507
2eab46b1
JB
105082019-01-05 Joel Brobecker <brobecker@adacore.com>
10509
10510 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10511 NULL. Initialize tpprev to NULL instead of assigning it
10512 to NULL on the next statement.
10513 * windows-nat.c (windows_delete_thread): Remove check for
10514 main_thread_id before printing thread exit notifications.
10515 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10516 Remove thread ID check against main_thread_id.
10517 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10518 windows_delete_thread.
10519 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10520
48c5e7e2
TT
105212019-01-04 Tom Tromey <tom@tromey.com>
10522
10523 * compile/compile.c (_initialize_compile): Use upper case for
10524 metasyntactic variables.
10525 * symmisc.c (_initialize_symmisc): Use upper case for
10526 metasyntactic variables.
10527 * psymtab.c (_initialize_psymtab): Use upper case for
10528 metasyntactic variables.
10529 * demangle.c (demangle_command): Use upper case for metasyntactic
10530 variables.
10531 (_initialize_demangler): Likewise.
10532 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10533 variables.
10534
986041cd
TT
105352019-01-03 Tom Tromey <tom@tromey.com>
10536
10537 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10538
7c711119
TT
105392019-01-03 Tom Tromey <tom@tromey.com>
10540
10541 * python/py-symtab.c (salpy_str): Update.
10542 (struct salpy_sal_object) <symtab>: Now a PyObject.
10543 (salpy_dealloc): Update.
10544 (del_objfile_sal): Use gdbpy_ref.
10545
1b20edf0
TT
105462019-01-03 Tom Tromey <tom@tromey.com>
10547
10548 * python/py-type.c (convert_field): Use new_reference. Return
10549 gdbpy_ref.
10550 (make_fielditem): Return gdbpy_ref.
10551 (typy_fields): Update.
10552 (typy_getitem): Update.
10553 (field_name): Return gdbpy_ref. Use new_reference.
10554 (typy_iterator_iternext): Update.
10555
ea41325b
TT
105562019-01-03 Tom Tromey <tom@tromey.com>
10557
10558 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10559
2a3c71d6
TT
105602019-01-03 Tom Tromey <tom@tromey.com>
10561
10562 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10563 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10564 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10565 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10566 (pspy_set_type_printers): Likewise.
10567 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10568 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10569 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10570 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10571 (objfpy_set_type_printers): Likewise.
10572
5c329e6a
TT
105732019-01-03 Tom Tromey <tom@tromey.com>
10574
10575 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10576 (gdbpy_print_stack): Use gdbpy_err_fetch.
10577 * python/python-internal.h (class gdbpy_err_fetch): New class.
10578 (class gdbpy_enter) <m_error_type, m_error_value,
10579 m_error_traceback>: Remove.
10580 <m_error>: New member.
10581 (gdbpy_exception_to_string): Don't declare.
10582 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
10583 * python/py-value.c (convert_value_from_python): Use
10584 gdbpy_err_fetch.
10585 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
10586 gdbpy_exception_to_string.
10587 (gdbpy_handle_exception): Use gdbpy_err_fetch.
10588 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
10589 gdbpy_err_fetch.
10590
169bb27b
AB
105912019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10592
10593 * linux-nat.c (delete_lwp_cleanup): Delete.
10594 (struct lwp_deleter): New struct.
10595 (lwp_info_up): New typedef.
10596 (linux_nat_target::follow_fork): Delete cleanup, and make use of
10597 lwp_info_up.
10598
a07c8880
AB
105992019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10600
10601 * linux-fork.c (class scoped_switch_fork_info): New class.
10602 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
10603
26089c49
AB
106042019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10605
10606 * valops.c (find_overload_match): Remove use of null_cleanup, and
10607 calls to do_cleanups.
10608
06d3e5b0
AB
106092019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10610
10611 * compile/compile-cplus-types.c
10612 (compile_cplus_instance::decl_name): Handle changes to
10613 cp_func_name.
10614 * cp-support.c (cp_func_name): Update header comment, update
10615 return type.
10616 * cp-support.h (cp_func_name): Update return type in declaration.
10617 * valops.c (find_overload_match): Move temp_func local to top
10618 level of function and change its type. Use temp_func to hold and
10619 delete temporary string obtained from cp_func_name.
10620
66644cd3
AB
106212019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10622
10623 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
10624 gdb::char_vector, remove cleanup, and update uses of `msg`.
10625
592d8c0a
JW
106262019-01-03 Jim Wilson <jimw@sifive.com>
10627
10628 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
10629
c55d06ec
TT
106302019-01-02 Tom Tromey <tom@tromey.com>
10631
10632 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
10633 (tdesc_parse_xml): Remove cleanups.
10634 * target-descriptions.h (make_cleanup_free_target_description):
10635 Don't declare.
10636 (target_desc_deleter): New struct.
10637 (target_desc_up): New typedef.
10638 * target-descriptions.c (target_desc_deleter::operator()): Rename
10639 from free_target_description.
10640 (make_cleanup_free_target_description): Remove.
10641
3a6ae42d
TT
106422019-01-02 Tom Tromey <tom@tromey.com>
10643
10644 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
10645 constructor, destructor.
10646 (linespec_parser): Remove typedef.
10647 (~linespec_parser): Rename from linespec_parser_delete.
10648 (linespec_lex_to_end, linespec_complete_label)
10649 (linespec_complete): Update.
10650 (decode_line_full): Remove cleanups.
10651 (decode_line_1): Update.
10652
61fd3e73
TT
106532019-01-02 Tom Tromey <tom@tromey.com>
10654
10655 * python/python-internal.h (inferior_to_inferior_object): Change
10656 return type.
10657 * python/py-exitedevent.c (create_exited_event_object): Update.
10658 * python/py-inferior.c (inferior_to_inferior_object): Return
10659 gdbpy_ref.
10660 (python_new_inferior, python_inferior_deleted)
10661 (thread_to_thread_object, delete_thread_object)
10662 (build_inferior_list, gdbpy_selected_inferior): Update.
10663 * python/py-infthread.c (create_thread_object): Update. Also fail
10664 if inferior_to_inferior_object fails.
10665
d20172fc
SM
106662019-01-02 Simon Marchi <simon.marchi@ericsson.com>
10667
10668 * inferior.h (class inferior) <displaced_step_state>: New field.
10669 * infrun.h (struct displaced_step_state): Move here from
10670 infrun.c. Initialize fields, add constructor.
10671 <inf>: Remove field.
10672 <reset>: New method.
10673 * infrun.c (struct displaced_step_inferior_state): Move to
10674 infrun.h.
10675 (displaced_step_inferior_states): Remove.
10676 (get_displaced_stepping_state): Adust.
10677 (displaced_step_in_progress_any_inferior): Adjust.
10678 (displaced_step_in_progress_thread): Adjust.
10679 (displaced_step_in_progress): Adjust.
10680 (add_displaced_stepping_state): Remove.
10681 (get_displaced_step_closure_by_addr): Adjust.
10682 (remove_displaced_stepping_state): Remove.
10683 (infrun_inferior_exit): Call displaced_step_state.reset.
10684 (use_displaced_stepping): Don't check for NULL.
10685 (displaced_step_prepare_throw): Call
10686 get_displaced_stepping_state.
10687 (displaced_step_fixup): Don't check for NULL.
10688 (prepare_for_detach): Don't check for NULL.
10689
e3319240
PW
106902019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10691
10692 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
10693 in case of call that did not complete.
10694
5d36dfb9
AU
106952019-01-02 Andrey Utkin <autkin@undo.io>
10696
10697 * symfile.c (find_separate_debug_file): Fix search of debug files for
10698 remote debuggee.
10699
8833fbf0
TT
107002019-01-02 Tom Tromey <tom@tromey.com>
10701
10702 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
10703 indentation.
10704 * python/py-frame.c (frapy_older): Remove cast.
10705 (frapy_newer): Likewise.
10706 * python/py-breakpoint.c (local_setattro): Remove cast.
10707 * python/py-arch.c (archpy_name): Remove local variable.
10708 * python/py-type.c (gdbpy_lookup_type): Remove cast.
10709
4ada3dfd
JB
107102019-01-02 Joel Brobecker <brobecker@adacore.com>
10711
10712 * unittests/basic_string_view/element_access/char/empty.cc:
10713 Fix year range in copyright header.
10714
113b7b81
AB
107152019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
10716
10717 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
10718 Delete.
10719 <operator==>: Update with for removed field.
10720 <hash>: Likewise.
10721 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
10722 <isa_features>: ...this.
10723 <abi_features>: New field.
10724 (riscv_isa_flen): Update comment.
10725 (riscv_abi_xlen): New declaration.
10726 (riscv_abi_flen): New declaration.
10727 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
10728 isa_features.
10729 (riscv_abi_xlen): New function.
10730 (riscv_isa_flen): Update to get answer from isa_features.
10731 (riscv_abi_flen): New function.
10732 (riscv_has_fp_abi): Update to get answer from abi_features.
10733 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
10734 xlen and flen.
10735 (riscv_call_info) <xlen, flen>: Update comment.
10736 (riscv_call_arg_struct): Remove invalid assertions
10737 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
10738 is removed.
10739 (riscv_gdbarch_init): Gather isa features and abi features
10740 separately, ensure both match on the gdbarch when reusing an old
10741 gdbarch. Relax an error check to allow 32-bit abi float to run on
10742 a target with 64-bit float hardware.
10743
b18ca514
PW
107442019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10745
10746 * source.c (search_command_helper): Stop reverse search
10747 when line 1 has been searched.
10748
ec70d8db
PW
107492019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10750
10751 * record-full.c (record_full_base_target::close): Rewrite
10752 record_full_core_buf_list free logic.
10753
5b38f9c1
PW
107542019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10755
10756 * break-catch-syscall.c (print_one_catch_syscall): xfree
10757 the last text.
10758
66d91b39
JB
107592019-01-01 Joel Brobecker <brobecker@adacore.com>
10760
10761 * top.c (print_gdb_version): Update Copyright year in version
10762 message.
10763
42a4f53d
JB
107642019-01-01 Joel Brobecker <brobecker@adacore.com>
10765
10766 Update copyright year range in all GDB files.
10767
7e955d83 107682019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 10769
5bbd631d 10770 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 10771
5bbd631d 10772For older changes see ChangeLog-2018.
c906108c
SS
10773\f
10774Local Variables:
10775mode: change-log
10776left-margin: 8
10777fill-column: 74
10778version-control: never
57da7796 10779coding: utf-8
c906108c 10780End:
5bbd631d 10781
This page took 2.819879 seconds and 4 git commands to generate.