]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove tui_clear_source_content
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c398c3d0
TT
12019-08-15 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5 tui_clear_source_content.
6 (tui_clear_source_content): Remove.
7 (tui_source_window_base::do_erase_source_content): Hoist call to
8 content.clear().
9 * tui/tui-stack.c (tui_show_frame_info): Don't call
10 tui_clear_source_content.
11
e25d2004
TT
122019-08-15 Tom Tromey <tom@tromey.com>
13
14 * tui/tui-winsource.h (struct tui_source_window_base)
15 <do_erase_source_content>: New method.
16 <erase_source_content>: New method.
17 (tui_erase_source_content): Don't declare.
18 * tui/tui-winsource.c (tui_clear_source_content): Update.
19 (tui_source_window_base::do_erase_source_content): Rename from
20 tui_erase_source_content.
21 (tui_source_window_base::show_source_content): Update.
22 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
23 * tui/tui-source.h (struct tui_source_window)
24 <erase_source_content>: New method.
25 * tui/tui-disasm.h (struct tui_disasm_window)
26 <erase_source_content>: New method.
27
002f15c2
TT
282019-08-15 Tom Tromey <tom@tromey.com>
29
30 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
31 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
32 constructor.
33 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
34 * tui/tui-source.c (tui_set_source_content): Update.
35 * tui/tui-disasm.c (tui_set_disassem_content): Update.
36
c9033fe8
TT
372019-08-15 Tom Tromey <tom@tromey.com>
38
39 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
40 * tui/tui-winsource.c (tui_line_is_displayed): Move to
41 tui-source.c.
42 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
43 Declare.
44 * tui/tui-source.c (tui_source_window::line_is_displayed): New
45 method.
46 (tui_source_window::maybe_update): Update.
47
088f37dd
TT
482019-08-15 Tom Tromey <tom@tromey.com>
49
50 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
51 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
52 tui-disasm.c.
53 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
54 Declare.
55 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
56 method.
57 (tui_disasm_window::maybe_update): Update.
58
a54700c6
TT
592019-08-15 Tom Tromey <tom@tromey.com>
60
61 * tui/tui-winsource.h (struct tui_source_window_base)
62 <maybe_update>: Declare.
63 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
64 method.
65 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
66 Declare.
67 * tui/tui-source.c (tui_source_window::maybe_update): New method.
68 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
69 Declare.
70 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
71
e2a678a5
TT
722019-08-15 Tom Tromey <tom@tromey.com>
73
74 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
75
f2dda477
TT
762019-08-15 Tom Tromey <tom@tromey.com>
77
78 * tui/tui-wingeneral.c: Include tui-stack.h.
79 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
80 (struct tui_locator_window): Move from tui-data.h.
81 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
82 (tui_initialize_static_data): Move from tui-data.c.
83 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
84 (struct tui_locator_window): Move to tui-stack.c.
85 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
86 (tui_initialize_static_data): Move to tui-stack.c.
87
ed4a1084
TT
882019-08-15 Tom Tromey <tom@tromey.com>
89
90 * tui/tui-layout.c (show_source_disasm_command)
91 (show_source_or_disasm_and_command): Use make_visible method, not
92 tui_make_window.
93 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
94 Remove.
95
65962b20
TT
962019-08-15 Tom Tromey <tom@tromey.com>
97
98 * tui/tui-wingeneral.h (tui_make_window): Update.
99 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
100 parameter.
101 (tui_gen_win_info::make_visible): Update.
102 * tui/tui-regs.c (tui_data_window::display_registers_from):
103 Update.
104 * tui/tui-layout.c (show_source_disasm_command)
105 (show_source_or_disasm_and_command): Update.
106 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
107 (enum tui_box): Remove.
108 (struct tui_win_info) <can_box>: New method.
109 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
110 method.
111
2208ee91
TV
1122019-08-15 Tom de Vries <tdevries@suse.de>
113
114 * linux-nat-trad.c: Include gdbarch.h.
115
75faf5c4
AH
1162019-08-14 Alan Hayward <alan.hayward@arm.com>
117
118 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
119 register sizes.
120
b1c896b3
TT
1212019-08-14 Tom Tromey <tromey@adacore.com>
122
123 * darwin-nat.c: Include gdbarch.h.
124 * darwin-nat-info.c: Include gdbarch.h.
125
6405cd73
TT
1262019-08-13 Tom Tromey <tom@tromey.com>
127
128 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
129 Remove.
130 * tui/tui-data.c (tui_initialize_static_data): Update.
131
5216580d
TT
1322019-08-13 Tom Tromey <tom@tromey.com>
133
134 * tui/tui-winsource.h (struct tui_exec_info_window)
135 <~tui_exec_info_window, maybe_allocate_content, get_content,
136 m_content>: Remove.
137 (struct tui_source_window_base) <set_exec_info_content,
138 show_exec_info_content>: Don't declare.
139 * tui/tui-winsource.c
140 (tui_exec_info_window::maybe_allocate_content): Remove.
141 (tui_source_window_base::update_exec_info): Rename from
142 set_exec_info_content.
143 (tui_source_window_base::show_exec_info_content)
144 (tui_source_window_base::update_exec_info): Remove.
145
93858ad3
TT
1462019-08-13 Tom Tromey <tom@tromey.com>
147
148 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
149 declare.
150 * tui/tui-winsource.c (tui_update_source_window_as_is)
151 (tui_update_source_windows_with_addr, tui_erase_source_content):
152 Update.
153 (tui_clear_exec_info_content): Remove.
154
e321e7ce
TT
1552019-08-13 Tom Tromey <tom@tromey.com>
156
157 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
158 declare.
159 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
160 call tui_erase_exec_info_content.
161 (tui_clear_exec_info_content): Rename from
162 tui_erase_exec_info_content.
163 (tui_clear_exec_info_content): Delete.
164
8270ac62
TT
1652019-08-13 Tom Tromey <tom@tromey.com>
166
167 * tui/tui-winsource.h (struct tui_source_window_base)
168 <show_exec_info_content>: Declare.
169 (tui_show_exec_info_content): Don't declare.
170 * tui/tui-winsource.c
171 (tui_source_window_base::show_exec_info_content): Rename from
172 tui_show_exec_info_content.
173 (tui_source_window_base::update_exec_info): Update.
174
7b56485d
TT
1752019-08-13 Tom Tromey <tom@tromey.com>
176
177 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
178 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
179 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
180 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
181 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
182 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
183 ... here.
184
7ba913dc
TT
1852019-08-13 Tom Tromey <tom@tromey.com>
186
187 * tui/tui-winsource.h (struct tui_source_window_base)
188 <update_exec_info>: Declare.
189 (tui_update_exec_info): Don't declare.
190 * tui/tui-winsource.c (tui_update_source_window_as_is)
191 (tui_source_window_base::refresh_all)
192 (tui_update_all_breakpoint_info): Update.
193 (tui_source_window_base::update_exec_info): Rename from
194 tui_update_exec_info.
195 * tui/tui-stack.c (tui_show_frame_info): Update.
196
37a4a131
TT
1972019-08-13 Tom Tromey <tom@tromey.com>
198
199 * tui/tui-winsource.h (struct tui_source_window_base)
200 <set_exec_info_content>: Declare.
201 (tui_set_exec_info_content): Don't declare.
202 * tui/tui-winsource.c
203 (tui_source_window_base::set_exec_info_content): Rename from
204 tui_set_exec_info_content.
205 (tui_update_exec_info): Update.
206
0bd27e07
TT
2072019-08-13 Tom Tromey <tom@tromey.com>
208
209 * tui/tui-winsource.h (struct tui_source_window_base)
210 <show_source_content>: Declare.
211 (tui_show_source_content): Don't declare.
212 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
213 (tui_source_window_base::show_source_content): Rename from
214 tui_show_source_content.
215 (tui_source_window_base::refresh_all): Update.
216 * tui/tui-layout.c (show_source_disasm_command)
217 (show_source_or_disasm_and_command): Update.
218
b4ef5aeb
TT
2192019-08-13 Tom Tromey <tom@tromey.com>
220
221 * tui/tui-winsource.c (tui_erase_source_content)
222 (tui_show_source_content, tui_source_window_base::refresh_all):
223 Update.
224 * tui/tui-wingeneral.h
225 (tui_check_and_display_highlight_if_needed): Don't declare.
226 * tui/tui-wingeneral.c
227 (tui_win_info::check_and_display_highlight_if_needed): Rename from
228 check_and_display_highlight_if_needed.
229 * tui/tui-win.c (tui_rehighlight_all)
230 (tui_win_info::make_visible_with_new_height): Update.
231 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
232 (tui_data_window::erase_data_content)
233 (tui_data_window::display_all_data): Update.
234 * tui/tui-data.h (struct tui_win_info)
235 <check_and_display_highlight_if_needed>: Declare.
236
fede5273
TT
2372019-08-13 Tom Tromey <tom@tromey.com>
238
239 * tui/tui-win.c (tui_resize_all): Call
240 tui_delete_invisible_windows.
241 * tui/tui-layout.c (show_layout): Call
242 tui_delete_invisible_windows.
243 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
244 * tui/tui-data.c (tui_delete_invisible_windows): New function.
245
22c3f490
TT
2462019-08-13 Tom Tromey <tom@tromey.com>
247
248 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
249 tui_add_win_to_layout.
250
16cb7910
TT
2512019-08-13 Tom Tromey <tom@tromey.com>
252
253 * tui/tui-layout.h (tui_default_win_height): Don't declare.
254 * tui/tui-layout.c (tui_default_win_height): Now static.
255
cc0c3ffb
TT
2562019-08-13 Tom Tromey <tom@tromey.com>
257
258 * tui/tui-layout.c (show_layout): Unify all layout cases into a
259 single switch.
260 (show_source_disasm_command, show_source_or_disasm_and_command):
261 Don't check current layout.
262
3f3ffe54
TT
2632019-08-13 Tom Tromey <tom@tromey.com>
264
265 * tui/tui-wingeneral.c (make_all_visible): Remove.
266 (tui_make_all_invisible): Simplify.
267 * tui/tui-layout.c (tui_make_all_invisible): Move from
268 tui-wingeneral.c; simplify.
269 (show_layout): Hoist call to tui_make_all_invisible.
270 (show_data): Don't call tui_make_all_invisible.
271
69258091
TT
2722019-08-13 Tom Tromey <tom@tromey.com>
273
274 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
275 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
276
62cf57fe
TT
2772019-08-13 Tom Tromey <tom@tromey.com>
278
279 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
280 tui-data.c.
281 (show_source_disasm_command, show_data)
282 (show_source_or_disasm_and_command): Don't use
283 tui_set_current_layout_to.
284 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
285 * tui/tui-data.c (current_layout, tui_current_layout): Move to
286 tui-layout.c.
287 (tui_set_current_layout_to): Remove.
288
2afade5d
TT
2892019-08-13 Tom Tromey <tom@tromey.com>
290
291 * tui/tui-layout.c (tui_set_layout): Update.
292 * tui/tui-data.h (struct tui_layout_def): Remove.
293 (tui_layout_def): Don't declare.
294 * tui/tui-data.c (layout_def): Remove.
295 (tui_layout_def): Remove.
296
a3504e96
TT
2972019-08-13 Tom Tromey <tom@tromey.com>
298
299 * tui/tui-winsource.h (struct tui_source_window_base)
300 <clear_detail>: No longer "override".
301 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
302 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
303 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
304 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
305 Remove.
306 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
307
29c92911
TT
3082019-08-13 Tom Tromey <tromey@adacore.com>
309
310 * tracepoint.c: Don't include readline.h or history.h.
311
86c6b807
TT
3122019-08-12 Tom Tromey <tom@tromey.com>
313
314 * configure: Rebuild.
315 * configure.ac: Check for readline 7.
316 * NEWS: Mention readline 7 requirement.
317 * README: Update.
318
5db2718c
TT
3192019-08-12 Tom Tromey <tom@tromey.com>
320
321 * mingw-hdep.c (gdb_select): Remove readline hack.
322
dac36daf
PFC
3232019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
324
325 * blockframe.c (find_pc_partial_function): Set *block to nullptr
326 when the function fails.
327
1022c627
AA
3282019-08-09 Andreas Arnez <arnez@linux.ibm.com>
329
330 * s390-tdep.c (s390_type_align): New function.
331 (s390_gdbarch_init): Set it as type_align gdbarch method.
332
eba4caf2
TV
3332019-08-09 Tom de Vries <tdevries@suse.de>
334
335 PR gdb/24591
336 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
337 pc_low with relocation offset.
338
123cd851
TT
3392019-08-07 Tom Tromey <tromey@adacore.com>
340
341 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
342 (print_frame_args): Update.
343 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
344 Update.
345 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
346 * frame.h (struct frame_arg): Add initializers.
347 <error>: Now a unique_xmalloc_ptr.
348
3d31bc39
AH
3492019-08-07 Alan Hayward <alan.hayward@arm.com>
350
351 * NEWS: Expand the Pointer Authentication entry.
352 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
353 (aarch64_frame_unmask_lr): ... to this.
354 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
355 Call aarch64_frame_unmask_lr.
356 * frame.c (struct frame_info): Add "masked" variable.
357 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
358 (fprint_frame): Check for masked pc.
359 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
360 declarations.
361 * python/py-framefilter.c (py_print_frame): Check for masked pc.
362 * stack.c (print_frame): Check for masked pc.
363
0cf9feb9
TT
3642019-08-06 Tom Tromey <tom@tromey.com>
365
366 * stabsread.c (patch_block_stabs, read_one_struct_field)
367 (read_enum_type): Use obstack_strndup.
368 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
369 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
370 * dwarf2read.c (guess_full_die_structure_name)
371 (anonymous_struct_prefix): Use obstack_strndup.
372 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
373 * c-exp.y (yylex): Use obstack_strndup.
374 * ada-exp.y (write_object_renaming, write_ambiguous_var)
375 (write_var_or_type): Use obstack_strndup.
376
efba19b0
TT
3772019-08-06 Tom Tromey <tom@tromey.com>
378
379 * symfile.c (reread_symbols): Use obstack_strdup.
380 * stabsread.c (read_type): Use obstack_strdup.
381 * gdb_obstack.h (obstack_strdup): New overload.
382 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
383 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
384 (dwarf2_canonicalize_name): Use obstack_strdup.
385 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
386 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
387 Use obstack_strdup.
388
f25102f7
TT
3892019-08-06 Tom Tromey <tom@tromey.com>
390
391 * gdb_obstack.h (obstack_strdup): Define.
392 * gdb_obstack.c (obstack_strdup): Don't define.
393
021887d8
TT
3942019-08-06 Tom Tromey <tom@tromey.com>
395
396 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
397 obstack_strdup.
398 * typeprint.c (typedef_hash_table::find_global_typedef): Use
399 obstack_strdup.
400 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
401 * stabsread.c (common_block_start): Use obstack_strdup.
402 * objfiles.c (set_objfile_main_name, objfile): Use
403 obstack_strdup.
404 * namespace.c (add_using_directive): Use obstack_strdup.
405 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
406 * jit.c (finalize_symtab): Use obstack_strdup.
407 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
408 (guess_partial_die_structure_name, partial_die_info::fixup)
409 (dwarf2_name): Use obstack_strdup.
410 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
411 obstack_strdup.
412 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
413 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
414 obstack_strdup.
415 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
416
d2834edc
PW
4172019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
418
419 * unittests/help-doc-selftests.c: New file.
420 * Makefile.in: Add the new file.
421
590042fc
PW
4222019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
423
424 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
425 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
426 the full first line, except when FOR_VALUE_PREFIX. In this case,
427 the trailing '.' is not output, and the first character is uppercased.
428 (print_help_for_command): Update call to print_doc_line.
429 (print_doc_of_command): Likewise.
430 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
431 * cli/cli-option.c (append_indented_doc): Do not append newline.
432 (build_help_option): Append newline after first appended_indented_doc
433 only if a second call is done.
434 (build_help): Append 2 new lines before each option, except the first
435 one.
436 * compile/compile.c (_initialize_compile): Add new lines after
437 %OPTIONS%, when not at the end of the help.
438 Change help doc or code
439 producing the help doc to respect the invariants.
440 * maint-test-options.c (_initialize_maint_test_options): Likewise.
441 Also removed the new line after 'Options:', as all other commands
442 do not put an empty line between 'Options:' and the first option.
443 * printcmd.c (_initialize_printcmd): Likewise.
444 * stack.c (_initialize_stack): Likewise.
445 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
446 incorrectly telling COMMAND is optional.
447 * ada-lang.c (_initialize_ada_language): Change help doc or code
448 producing the help doc to respect the invariants.
449 * ada-tasks.c (_initialize_ada_tasks): Likewise.
450 * breakpoint.c (_initialize_breakpoint): Likewise.
451 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
452 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
453 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
454 * cli/cli-style.c (cli_style_option::add_setshow_commands,
455 _initialize_cli_style): Likewise.
456 * corelow.c (core_target_info): Likewise.
457 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
458 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
459 * filesystem.c (_initialize_filesystem): Likewise.
460 * frame.c (_initialize_frame): Likewise.
461 * gnu-nat.c (add_task_commands): Likewise.
462 * infcall.c (_initialize_infcall): Likewise.
463 * infcmd.c (_initialize_infcmd): Likewise.
464 * interps.c (_initialize_interpreter): Likewise.
465 * language.c (_initialize_language): Likewise.
466 * linux-fork.c (_initialize_linux_fork): Likewise.
467 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
468 * maint.c (_initialize_maint_cmds): Likewise.
469 * memattr.c (_initialize_mem): Likewise.
470 * printcmd.c (_initialize_printcmd): Likewise.
471 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
472 _RegEx): Likewise.
473 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
474 * record-btrace.c (_initialize_record_btrace): Likewise.
475 * record-full.c (_initialize_record_full): Likewise.
476 * record.c (_initialize_record): Likewise.
477 * regcache-dump.c (_initialize_regcache_dump): Likewise.
478 * regcache.c (_initialize_regcache): Likewise.
479 * remote.c (add_packet_config_cmd, init_remote_threadtests,
480 _initialize_remote): Likewise.
481 * ser-tcp.c (_initialize_ser_tcp): Likewise.
482 * serial.c (_initialize_serial): Likewise.
483 * skip.c (_initialize_step_skip): Likewise.
484 * source.c (_initialize_source): Likewise.
485 * stack.c (_initialize_stack): Likewise.
486 * symfile.c (_initialize_symfile): Likewise.
487 * symtab.c (_initialize_symtab): Likewise.
488 * target-descriptions.c (_initialize_target_descriptions): Likewise.
489 * top.c (init_main): Likewise.
490 * tracefile-tfile.c (tfile_target_info): Likewise.
491 * tracepoint.c (_initialize_tracepoint): Likewise.
492 * tui/tui-win.c (_initialize_tui_win): Likewise.
493 * utils.c (add_internal_problem_command): Likewise.
494 * valprint.c (value_print_option_defs): Likewise.
495
404f2902
FCE
4962019-08-06 Frank Ch. Eigler <fche@redhat.com>
497
498 PR build/24886
499 * configure.ac: Drop enable-libmcheck support.
500 * configure, config.in: Rebuild.
501 * libmcheck.m4: Remove.
502 * acinclude.m4: Don't include it.
503 * Makefile.in: Don't distribute it.
504 * top.c (print_gdb_configuration): Don't mention it.
505
046bebe1
TT
5062019-08-06 Tom Tromey <tom@tromey.com>
507
508 * utils.c (set_output_style): Sometimes pass stream to
509 emit_style_escape.
510 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
511 * record-btrace.c (btrace_insn_history): Update.
512 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
513 method.
514 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
515 Update initializers.
516 <m_uiout>: New field.
517 <m_di>: Move lower.
518 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
519 Remove "uiout" parameter.
520 (dump_insns): Update.
521 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
522 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
523
ddbcedf5
CB
5242019-08-06 Christian Biesinger <cbiesinger@google.com>
525
526 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
527 (error_in_psymtab_expansion): Likewise.
528 (lookup_symbol_via_quick_fns): Likewise.
529 (basic_lookup_transparent_type_quick): Likewise.
530 (basic_lookup_transparent_type_1): Likewise.
531
b08b16c8
TT
5322019-08-06 Tom Tromey <tromey@adacore.com>
533
534 * source.c (last_source_error): Now bool.
535 (print_source_lines_base): Make "noprint" bool. Only open
536 source file when last_source_visited changes.
537
cb44333d
TT
5382019-08-06 Tom Tromey <tromey@adacore.com>
539
540 * annotate.c (annotate_source_line): Use g_source_cache.
541 * source-cache.c (source_cache::get_plain_source_lines): Change
542 parameters. Populate m_offset_cache.
543 (source_cache::ensure): New method.
544 (source_cache::get_line_charpos): New method.
545 (extract_lines): Move lower. Change parameters.
546 (source_cache::get_source_lines): Move lower.
547 * source-cache.h (class source_cache): Update comment.
548 <get_line_charpos>: New method.
549 <get_source_lines>: Update comment.
550 <clear>: Clear m_offset_cache.
551 <get_plain_source_lines>: Change parameters.
552 <ensure>: New method
553 <m_offset_cache>: New member.
554 * source.c (forget_cached_source_info_for_objfile): Update.
555 (info_source_command): Use g_source_cache.
556 (find_source_lines, open_source_file_with_line_charpos): Remove.
557 (print_source_lines_base, search_command_helper): Use g_source_cache.
558 * source.h (open_source_file_with_line_charpos): Don't declare.
559 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
560 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
561 Use g_source_cache.
562
872dceaa
TT
5632019-08-06 Tom Tromey <tromey@adacore.com>
564
565 * source-cache.c (source_cache::get_plain_source_lines):
566 Remove "first_line" and "last_line" parameters.
567 (source_cache::get_source_lines): Cache plain text.
568 * source-cache.h (class source_cache)
569 <get_plain_source_lines>: Update.
570
269249d9
TT
5712019-08-06 Tom Tromey <tromey@adacore.com>
572
573 * source-cache.c (extract_lines): No longer a method.
574 Changed type of parameter. Include final newline.
575 (selftests::extract_lines_test): New function.
576 (_initialize_source_cache): Likewise.
577 * source-cache.h (class source_cache)
578 <extract_lines>: Don't declare.
579
c0e8dcd8
TT
5802019-08-06 Tom Tromey <tromey@adacore.com>
581
582 * breakpoint.c (init_breakpoint_sal): Update.
583 (breakpoint): Update.
584 * breakpoint.h (struct breakpoint) <filter>: Now a
585 unique_xmalloc_ptr.
586
0b27c27d
CB
5872019-08-05 Christian Biesinger <cbiesinger@google.com>
588
589 * NEWS: Mention dictionary access on blocks.
590 * python/py-block.c (blpy_getitem): New function.
591 (block_object_as_mapping): New struct.
592 (block_object_type): Use new struct for tp_as_mapping field.
593
4ee94178
CB
5942019-08-05 Christian Biesinger <cbiesinger@google.com>
595
596 * objfiles.h (objfile): Add a comment describing partial symbols.
597
8abfcabc
TT
5982019-08-05 Tom Tromey <tromey@adacore.com>
599
600 * compile/compile.c (_initialize_compile): Use _(), not N_().
601 * thread.c (_initialize_thread): Use _(), not N_().
602 * stack.c (_initialize_stack): Use _(), not N_().
603 * printcmd.c (_initialize_printcmd): Use _(), not N_().
604
2b79f376
SM
6052019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * dwarf2read.c (struct dw2_symtab_iterator):
608 <want_specific_block>: Remove.
609 <block_index>: Change type to gdb::optional.
610 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
611 change type of BLOCK_INDEX parameter to gdb::optional.
612 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
613 (dw2_lookup_symbol): Don't pass argument for
614 WANT_SPECIFIC_BLOCK.
615 (dw2_expand_symtabs_for_function): Don't pass argument for
616 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
617 (class dw2_debug_names_iterator)
618 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
619 parameter, change BLOCK_INDEX type to gdb::optional.
620 <m_want_specific_block>: Remove.
621 <m_block_index>: Change type to gdb::optional.
622 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
623 gdb::optional. Re-write in function of gdb::optional.
624 (dw2_debug_names_lookup_symbol): Don't pass argument for
625 WANT_SPECIFIC_BLOCK.
626 (dw2_debug_names_expand_symtabs_for_function): Don't pass
627 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
628 BLOCK_INDEX.
629
ae60f04e
PW
6302019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
631
632 * NEWS: Mention changes to "info sources" command.
633
28cd9371
PW
6342019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
635
636 * symtab.c (filename_partial_match_opts): New struct type.
637 (struct output_source_filename_data): New members
638 regexp, c_regexp, partial_match.
639 (output_source_filename): Use new members to decide to print file.
640 (info_sources_option_defs): New variable.
641 (make_info_sources_options_def_group, print_info_sources_header,
642 info_sources_command_completer):
643 New functions.
644 (info_sources_command): Read new optional arguments.
645 (_initialize_symtab): Update info sources help.
646
ca683e3a
AO
6472019-08-02 Alexandre Oliva <oliva@adacore.com>
648
649 * ada-lang.c (exception_support_info_v0): Renamed from...
650 (default_exception_support_info): ... this. Create new
651 definition for v1.
652 (ada_has_this_exception_support): Look up catch_handlers_sym.
653 (ada_exception_support_info_sniffer): Try v0 after default.
654
f1264162
TT
6552019-08-01 Tom Tromey <tromey@adacore.com>
656
657 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
658 gdbarch.h.
659
0a7b2485
CB
6602019-08-01 Christian Biesinger <cbiesinger@google.com>
661
662 * s12z-tdep.c: Fix include path for s12z-opc.h.
663
c6bdbeb7
AH
6642019-08-01 Alan Hayward <alan.hayward@arm.com>
665
666 * NEWS: Require GNU make 3.82.
667
a2bd7b82
TT
6682019-07-16 Tom Tromey <tom@tromey.com>
669
670 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
671 declare.
672
aa3b6533
TT
6732019-07-30 Tom Tromey <tromey@adacore.com>
674
675 * block.c (contained_in): Remove BLOCK_FUNCTION check.
676
a1530dc7
KB
6772019-07-30 Kevin Buettner <kevinb@redhat.com>
678
679 * printcmd.c (print_address_symbolic): Print negative offsets.
680 (build_address_symbolic): Force signed arithmetic when computing
681 offset.
682
2906593f
CB
6832019-07-30 Christian Biesinger <cbiesinger@google.com>
684
685 PR/24474: Add a function to lookup static variables.
686 * NEWS: Mention this new function.
687 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
688 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
689 * python/python.c (python_GdbMethods): Add new function.
690
c620ed88
CB
6912019-07-29 Christian Biesinger <cbiesinger@google.com>
692
693 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
694 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
695 (objfpy_lookup_static_symbol): New function.
696 (objfile_object_methods): Add new functions.
697
bc4268a5
PW
6982019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
699
700 * NEWS: Mention 'set|show print frame-info'. Mention new
701 'presence' value for 'frame-arguments'. Mention new '-frame-info'
702 backtrace argument. Mention that python frame filtering code
703 is now consistent with what 'backtrace' command prints.
704
4b5e8d19
PW
7052019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
706
707 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
708 comments.
709 (print_frame_info_auto, print_frame_info_source_line,
710 print_frame_info_location, print_frame_info_source_and_location,
711 print_frame_info_location_and_address, print_frame_info_short_location):
712 New declarations.
713 (struct frame_print_options): New member print_frame_info.
714 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
715 * stack.h (get_user_print_what_frame_info): New declaration.
716 (frame_show_address): New declaration.
717 * stack.c (print_frame_arguments_choices): New value 'presence'.
718 (print_frame_info_auto, print_frame_info_source_line,
719 print_frame_info_location, print_frame_info_source_and_location,
720 print_frame_info_location_and_address, print_frame_info_short_location,
721 print_frame_info_choices, print_frame_info_print_what): New definitions.
722 (print_frame_args): Only print dots for args if print frame-arguments
723 is 'presence'.
724 (frame_print_option_defs): New element for "frame-info".
725 (get_user_print_what_frame_info): New function.
726 (frame_show_address): Make non static. Move comment to stack.h.
727 (print_frame_info_to_print_what): New function.
728 (print_frame_info): Update comment. Use fp_opts.print_frame_info
729 to decide what to print.
730 (backtrace_command_1): Handle the new print_frame_arguments_presence
731 value.
732 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
733 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
734 (py_print_frame): In non-mi mode, use LOCATION as default for
735 print_what, similarly to frame information printed directly by
736 backtrace command. Handle frame-info user option in non MI mode.
737
6bdfee81
KB
7382019-07-27 Kevin Buettner <kevinb@redhat.com>
739
740 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
741 Add case for debugging 32-bit target on 64-bit host. Revise
742 comment.
743
98a617f8
KB
7442019-07-27 Kevin Buettner <kevinb@redhat.com>
745
746 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
747 instead of find_function_entry_range_from_pc.
748
567238c9
KB
7492019-07-27 Kevin Buettner <kevinb@redhat.com>
750
751 * stack.c (find_frame_funname): Remove code which preferred
752 minsym over symtab sym in "certain pathological cases".
753
2dc80cf8
KB
754 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
755 parameter. Change type of "do_demangle" to bool.
756 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
757 Pass suitable "prefer_sym_over_minsym" flag to
758 build_address_symbolic(). Don't output "+" for negative offsets.
759 * printcmd.c (print_address_symbolic): Update invocation of
760 build_address_symbolic to include a "prefer_sym_over_minsym"
761 flag.
762 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
763 Restrict cases in which use of minimal symbol is preferred to that
764 of a found symbol. Update comments.
765
1aff7173
KB
766 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
767 for entry pc when entry pc is out of range for that FDE.
768
89b085ac
BC
7692019-07-26 Brian Callahan <bcallah@openbsd.org>
770
771 PR gdb/24839:
772 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
773 type.
774
f32feb4a
CB
7752019-07-25 Christian Biesinger <cbiesinger@google.com>
776
777 * python/py-objfile.c (add_separate_debug_file): Fix comment about
778 this function's Python signature.
779
780
7812019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
782
783 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
784 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
785 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
786 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
787 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
788
789
c54e4253
YS
7902019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
791
792 * h8300-tdep.c (h8300_register_name_common): New.
793 h8300_register_name): Use h8300_register_name_common.
794 (h8300s_register_name): Likewise.
795 (h8300sx_register_name): Likewise.
796 (h8300h_register_nam): New.
797 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
798
799
40eadf04
SP
8002019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
801
802 * arm-tdep.c (arm_skip_cmse_entry): New function.
803 (arm_is_sgstubs_section): New function.
804 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
805
bfa2a36d
TT
8062019-07-22 Tom Tromey <tom@tromey.com>
807
808 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
809 Don't self-assign.
810
a8e9d247
AB
8112019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
812
813 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
814 type_print.
815
eb86c5e2
AB
8162019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
817
818 * symtab.c (search_symbols): Adjust msymbol matching type arrays
819 so that GDB doesn't match any msymbols when searching in the
820 TYPES_DOMAIN.
821 (print_symbol_info): Print using typedef_print or type_print based
822 on the type of the symbol. Add updated FIXME comment moved from...
823 (_initialize_symtab): ... move and update FIXME comment to above.
824
a8eab7c6
AB
8252019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
826
827 * NEWS: Mention adding -q option to "info types".
828 * symtab.c (struct info_types_options): New struct.
829 (info_types_options_defs): New variable.
830 (make_info_types_options_def_group): New function.
831 (info_types_command): Use gdb::option framework to parse options.
832 (info_types_command_completer): New function.
833 (_initialize_symtab): Extend the help text on "info types" and
834 register command completer.
835
b4603c34
CB
8362019-07-21 Christian Biesinger <cbiesinger@google.com>
837
838 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
839 (lookup_symbol_in_objfile): Change int to block_enum and add a
840 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
841
c8cdc1e0
CB
8422019-07-20 Christian Biesinger <cbiesinger@google.com>
843
844 * MAINTAINERS (Write After Approval): Add self.
845
01e175fe
AB
8462019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
847
848 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
849 instruction to the dummy code region.
850
56f79b63
TT
8512019-07-19 Tom Tromey <tromey@adacore.com>
852
853 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
854 (ARGSUSED, PARAMS, __func__): Remove rules.
855
4c5aa8e0
AH
8562019-07-19 Alan Hayward <alan.hayward@arm.com>
857
858 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
859 * features/arm/arm-with-iwmmxt.c: Remove.
860 * features/arm/arm-with-iwmmxt.xml: Remove.
861 * features/arm/arm-with-m-fpa-layout.c: Remove.
862 * features/arm/arm-with-m-fpa-layout.xml: Remove.
863 * features/arm/arm-with-m-vfp-d16.c: Remove.
864 * features/arm/arm-with-m-vfp-d16.xml: Remove.
865 * features/arm/arm-with-m.c: Remove.
866 * features/arm/arm-with-m.xml: Remove.
867 * features/arm/arm-with-neon.c: Remove.
868 * features/arm/arm-with-neon.xml: Remove.
869 * features/arm/arm-with-vfpv2.c: Remove.
870 * features/arm/arm-with-vfpv2.xml: Remove.
871 * features/arm/arm-with-vfpv3.c: Remove.
872 * features/arm/arm-with-vfpv3.xml: Remove.
873
f42b2617
AH
8742019-07-19 Alan Hayward <alan.hayward@arm.com>
875
876 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
877
f29ec966
AH
8782019-07-19 Alan Hayward <alan.hayward@arm.com>
879
880 * arch/aarch32.c (aarch32_create_target_description): Create
881 target descriptions using features.
882 * arch/arm.c (arm_create_target_description)
883 (arm_create_mprofile_target_description): Likewise.
884 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
885
d105cce5
AH
8862019-07-19 Alan Hayward <alan.hayward@arm.com>
887
888 * Makefile.in: Add new files.
889 * aarch32-tdep.c: New file.
890 * aarch32-tdep.h: New file.
891 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
892 Call aarch32_read_description.
893 * arch/aarch32.c: New file.
894 * arch/aarch32.h: New file.
895 * arch/arm.c (arm_create_target_description)
896 (arm_create_mprofile_target_description): New function.
897 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
898 (arm_create_target_description)
899 (arm_create_mprofile_target_description): New declaration.
900 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
901 read_description functions.
902 * arm-linux-nat.c (arm_linux_nat_target::read_description):
903 Likewise.
904 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
905 * arm-tdep.c (tdesc_arm_list): New variable.
906 (arm_register_g_packet_guesses): Call create description functions.
907 (arm_read_description) (arm_read_mprofile_description): New
908 function.
909 * arm-tdep.h (arm_read_description)
910 (arm_read_mprofile_description): Add declaration.
911 * configure.tgt: Add new files.
912
afe09f0b
GL
9132019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
914
915 * top.c (new_ui_command): Open specified terminal just once.
916
cd215b2e
TT
9172019-07-18 Tom Tromey <tromey@adacore.com>
918
919 * symtab.c (main_name): Constify return type.
920 * symfile.c (set_initial_language): Update.
921 * symtab.h (main_name): Constify return type.
922
d8f68fcb
TT
9232019-07-17 Tom Tromey <tom@tromey.com>
924
925 * tui/tui-winsource.c (tui_update_source_window)
926 (tui_update_source_window_as_is)
927 (tui_update_source_windows_with_line): Remove return.
928 * tui/tui-disasm.c (tui_show_disassem)
929 (tui_show_disassem_and_update_source): Remove return.
930 * tui/tui.c (tui_reset): Remove return.
931 * tui/tui-wingeneral.c
932 (tui_check_and_display_highlight_if_needed): Remove return.
933
ca5af91e
TT
9342019-07-17 Tom Tromey <tom@tromey.com>
935
936 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
937
5104fe36
TT
9382019-07-17 Tom Tromey <tom@tromey.com>
939
940 * tui/tui-winsource.h (struct tui_exec_info_window)
941 (struct tui_source_window_base): Move from tui-data.h.
942 * tui/tui-winsource.c: Move many method definitions from
943 elsewhere. Remove "structuring" comments.
944 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
945 (tui_source_window_base::refresh_window): Move to
946 tui-winsource.c.
947 * tui/tui-win.c (tui_source_window_base::refresh_all)
948 (tui_source_window_base::update_tab_width)
949 (tui_source_window_base::set_new_height)
950 (tui_source_window_base::do_make_visible_with_new_height): Move to
951 tui-winsource.c.
952 * tui/tui-source.h: Update.
953 * tui/tui-source.c (tui_source_window_base::reset): Move to
954 tui-winsource.c.
955 * tui/tui-disasm.h: Update.
956 * tui/tui-data.h (struct tui_exec_info_window): Move to
957 tui-winsource.h.
958 (struct tui_source_window_base): Likewise.
959 * tui/tui-data.c (tui_source_window_base::clear_detail)
960 (tui_source_window_base, ~tui_source_window_base): Move to
961 tui-winsource.c.
962
daa15dde
TT
9632019-07-17 Tom Tromey <tom@tromey.com>
964
965 * tui/tui-win.c (tui_resize_all)
966 (tui_source_window_base::update_tab_width)
967 (tui_adjust_win_heights): Update.
968 (tui_win_info::make_invisible_and_set_new_height): Rename from
969 make_invisible_and_set_new_height.
970 * tui/tui-data.h (struct tui_win_info)
971 <make_invisible_and_set_new_height>: New method.
972
bfad4537
TT
9732019-07-17 Tom Tromey <tom@tromey.com>
974
975 * tui/tui.c: Update.
976 * tui/tui-source.h (struct tui_source_window): Move from
977 tui-data.h.
978 * tui/tui-layout.c: Update.
979 * tui/tui-disasm.c: Update.
980 * tui/tui-data.h (struct tui_source_window): Move to
981 tui-source.h.
982
88f7e873
TT
9832019-07-17 Tom Tromey <tom@tromey.com>
984
985 * tui/tui-disasm.h (struct tui_disasm_window): Move from
986 tui-data.h.
987 * tui/tui-data.h (struct tui_disasm_window): Move to
988 tui-disasm.h.
989
96bd6233
TT
9902019-07-17 Tom Tromey <tom@tromey.com>
991
992 * tui/tui-regs.h (struct tui_data_item_window): Move from
993 tui-data.h.
994 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
995 * tui/tui-data.h (struct tui_data_item_window): Move to
996 tui-regs.h.
997 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
998
ce38393b
TT
9992019-07-17 Tom Tromey <tom@tromey.com>
1000
1001 * tui/tui.c: Update.
1002 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1003 (tui_cmd_window::max_height): Move to tui-command.c.
1004 * tui/tui-layout.c: Update.
1005 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1006 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1007 tui-command.c.
1008 * tui/tui-command.h (struct tui_cmd_window): Move from
1009 tui-data.h.
1010 * tui/tui-command.c: Remove "structuring" comments.
1011 (tui_cmd_window::clear_detail)
1012 (tui_cmd_window::do_make_visible_with_new_height)
1013 (tui_cmd_window::max_height): Move from elsewhere.
1014
2d8b51cb
TT
10152019-07-17 Tom Tromey <tom@tromey.com>
1016
1017 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1018 Now static.
1019 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1020 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1021
18ab23af
TT
10222019-07-17 Tom Tromey <tom@tromey.com>
1023
1024 * tui/tui.c: Update.
1025 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1026 tui-regs.c.
1027 * tui/tui-windata.h: Remove file.
1028 * tui/tui-windata.c: Remove file.
1029 * tui/tui-win.c (tui_data_window::set_new_height)
1030 (tui_data_window::do_make_visible_with_new_height): Move to
1031 tui-regs.c.
1032 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1033 * tui/tui-regs.c: Remove "structuring" comments.
1034 (tui_data_window::first_data_item_displayed)
1035 (tui_data_window::delete_data_content_windows)
1036 (tui_data_window::erase_data_content)
1037 (tui_data_window::display_all_data)
1038 (tui_data_window::refresh_all)
1039 (tui_data_window::do_scroll_vertical)
1040 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1041 (tui_data_window::do_make_visible_with_new_height)
1042 (tui_data_window::refresh_window): Move from elsewhere.
1043 (_initialize_tui_regs): Move to end of file.
1044 * tui/tui-layout.c: Update.
1045 * tui/tui-hooks.c: Update.
1046 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1047 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1048 tui-regs.c.
1049 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1050
88b7e7cc
TT
10512019-07-17 Tom Tromey <tom@tromey.com>
1052
1053 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1054 seen.
1055
0fcd3711
TT
10562019-07-17 Tom Tromey <tom@tromey.com>
1057
1058 * tui/tui-win.c (tui_source_window_base::set_new_height)
1059 (tui_source_window_base::do_make_visible_with_new_height): Use
1060 m_has_locator field directly.
1061 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1062 method.
1063 (struct tui_source_window_base) <has_locator>: Likewise.
1064
4a38112d
TT
10652019-07-17 Tom Tromey <tom@tromey.com>
1066
1067 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1068 Don't declare.
1069 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1070 Remove.
1071 * tui/tui-win.c (tui_source_window_base::set_new_height)
1072 (tui_source_window_base::set_new_height)
1073 (make_invisible_and_set_new_height)
1074 (tui_source_window_base::do_make_visible_with_new_height)
1075 (tui_source_window_base::do_make_visible_with_new_height):
1076 Update.
1077 * tui/tui-layout.c (show_source_disasm_command, show_data)
1078 (show_source_or_disasm_and_command): Update.
1079 * tui/tui-layout.c (show_layout): Update.
1080
09129226
TT
10812019-07-17 Tom Tromey <tom@tromey.com>
1082
1083 * tui/tui-layout.c (make_data_window): Remove.
1084 (show_data): Unify creation and re-initialization cases.
1085
4a8a5e84
TT
10862019-07-17 Tom Tromey <tom@tromey.com>
1087
1088 * tui/tui-layout.c (make_source_window, make_disasm_window):
1089 Remove.
1090 (show_data): Unify creation and re-initialization cases.
1091
76d2be8e
TT
10922019-07-17 Tom Tromey <tom@tromey.com>
1093
1094 * tui/tui-layout.c (make_command_window): Remove.
1095 (show_source_disasm_command, show_source_or_disasm_and_command):
1096 Unify creation and re-initialization cases.
1097
890b8bde
TT
10982019-07-17 Tom Tromey <tom@tromey.com>
1099
1100 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1101 creation and re-initialization cases.
1102
2cdfa113
TT
11032019-07-17 Tom Tromey <tom@tromey.com>
1104
1105 * tui/tui-regs.c (tui_get_register): Return void.
1106
8e3cfd09
TT
11072019-07-17 Tom Tromey <tom@tromey.com>
1108
1109 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1110 Simplify.
1111
f4e04977
TT
11122019-07-17 Tom Tromey <tom@tromey.com>
1113
1114 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1115 resetting.
1116
0379b883
TT
11172019-07-17 Tom Tromey <tom@tromey.com>
1118
1119 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1120 * tui/tui-regs.c (tui_reg_layout): New function.
1121 (tui_show_registers, tui_reg_command): Use it.
1122 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1123 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1124 parameters.
1125 (tui_layout_command): Remove.
1126
b7fbad91
TT
11272019-07-17 Tom Tromey <tom@tromey.com>
1128
1129 * tui/tui-layout.h (tui/tui-layout): Return void.
1130 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1131
4e1e56b9
TT
11322019-07-17 Tom Tromey <tom@tromey.com>
1133
1134 * tui/tui-layout.c (show_source_disasm_command, show_data):
1135 Update.
1136 (reset_locator): Remove.
1137 (show_source_or_disasm_and_command): Update.
1138
1e0c09ba
TT
11392019-07-17 Tom Tromey <tom@tromey.com>
1140
1141 * tui/tui-source.c (tui_source_window_base::reset): Remove
1142 win_type parameter.
1143 * tui/tui-layout.c (make_command_window, make_source_window)
1144 (make_disasm_window, make_data_window)
1145 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1146 (reset_locator, show_source_or_disasm_and_command): Update.
1147 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1148 win_type parameter.
1149 (struct tui_source_window_base) <reset>: Likewise.
1150
1bf605de
TT
11512019-07-17 Tom Tromey <tom@tromey.com>
1152
1153 * tui/tui-layout.c (show_source_disasm_command): Use
1154 reset_locator.
1155 (reset_locator): New function.
1156 (init_and_make_win): Remove.
1157 (show_source_or_disasm_and_command): Use reset_locator.
1158
098f9ed4
TT
11592019-07-17 Tom Tromey <tom@tromey.com>
1160
1161 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1162 condition.
1163 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1164 Remove condition.
1165 * tui/tui-source.c (tui_source_window_base::reset): New method.
1166 * tui/tui-layout.c (make_command_window): Don't call
1167 init_and_make_win.
1168 (make_source_window, make_disasm_window): Don't call
1169 make_source_or_disasm_window.
1170 (make_data_window): Don't call init_and_make_win. Change calling
1171 convention.
1172 (show_source_disasm_command, show_data): Simplify.
1173 (make_source_or_disasm_window): Remove.
1174 (show_source_or_disasm_and_command): Simplify.
1175 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1176 (struct tui_source_window_base) <reset>: Likewise.
1177 <execution_info>: Remove initializer.
1178 * tui/tui-data.c (tui_source_window_base): Initialize
1179 execution_info.
1180
80110957
TT
11812019-07-17 Tom Tromey <tom@tromey.com>
1182
1183 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1184 variable.
1185
cf82af05
TT
11862019-07-17 Tom Tromey <tom@tromey.com>
1187
1188 * tui/tui.c (tui_rl_other_window): Update.
1189 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1190 superclass method first. Always iterate over regs_content.
1191 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1192 method.
1193 * tui/tui-win.c (tui_set_focus_command): Update.
1194
01aeb396
TT
11952019-07-17 Tom Tromey <tom@tromey.com>
1196
1197 * tui/tui-win.c (tui_set_focus_command): Rename from
1198 tui_set_focus. Call tui_enable.
1199 (tui_set_focus_command): Remove.
1200
fd6c75ee
TT
12012019-07-17 Tom Tromey <tom@tromey.com>
1202
1203 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1204 refresh_window.
1205 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1206 touchwin.
1207 (tui_data_window::refresh_window): Call refresh_window on data
1208 items. Always call superclass refresh_window.
1209 (tui_win_info::refresh): Remove.
1210 (tui_source_window_base::refresh_window): Update.
1211 (tui_refresh_all): Update.
1212 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1213 refresh_window.
1214 (show_source_or_disasm_and_command): Likewise.
1215 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1216 (struct tui_source_window_base) <refresh>: Likewise.
1217
f6cc34a9
TT
12182019-07-17 Tom Tromey <tom@tromey.com>
1219
1220 * tui/tui-winsource.c (tui_clear_source_content)
1221 (tui_show_source_content): Update.
1222 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1223 whether content is empty.
1224 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1225 Remove.
1226
f31ec9af
TT
12272019-07-17 Tom Tromey <tom@tromey.com>
1228
1229 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1230 window's contents.
1231 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1232 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1233
d1b6f1e5
TT
12342019-07-17 Tom Tromey <tom@tromey.com>
1235
1236 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1237 (struct tui_data_item_window): Update.
1238
d9743a13
TT
12392019-07-17 Tom Tromey <tom@tromey.com>
1240
1241 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1242 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1243 defines.
1244
caf0bc4e
TT
12452019-07-17 Tom Tromey <tom@tromey.com>
1246
1247 * tui/tui-winsource.h (tui_erase_source_content)
1248 (tui_clear_source_content): Remove "display_prompt" parameter.
1249 * tui/tui-winsource.c (tui_update_source_window_as_is)
1250 (tui_update_source_windows_with_addr): Update.
1251 (tui_clear_source_content): Remove "display_prompt" parameter.
1252 (tui_erase_source_content): Likewise. Simplify.
1253 (tui_show_source_content): Update.
1254 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1255 * tui/tui-stack.c (tui_show_frame_info): Update.
1256 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1257 Remove defines.
1258
9d391078
TT
12592019-07-17 Tom Tromey <tom@tromey.com>
1260
1261 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1262 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1263 parameter.
1264 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1265 parameter.
1266
a38da35d
TT
12672019-07-17 Tom Tromey <tom@tromey.com>
1268
1269 * tui/tui-winsource.c (tui_clear_source_content)
1270 (tui_show_source_content, tui_show_exec_info_content)
1271 (tui_clear_exec_info_content): Update.
1272 * tui/tui-stack.c (tui_show_locator_content): Update.
1273 (tui_show_frame_info): Update.
1274 * tui/tui-source.h (tui_source_window): Don't declare.
1275 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1276 from tui_source_is_displayed.
1277 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1278 Remove field.
1279 (struct tui_source_window_base) <content_in_use>: New field. Now
1280 bool.
1281 (struct tui_source_window) <showing_source_p>: New method.
1282 (TUI_SRC_WIN): Change cast.
1283 * tui/tui-data.c (tui_initialize_static_data): Update.
1284
c2cd8994
TT
12852019-07-17 Tom Tromey <tom@tromey.com>
1286
1287 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1288 location_matches_p.
1289 * tui/tui-source.c (tui_source_window::location_matches_p): New
1290 method.
1291 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1292 method.
1293 * tui/tui-data.h (struct tui_source_window_base)
1294 <location_matches_p>: New method.
1295 (struct tui_source_window, struct tui_disasm_window)
1296 <location_matches_p>: Likewise.
1297
4dde7b34
TT
12982019-07-17 Tom Tromey <tom@tromey.com>
1299
1300 * tui/tui-win.c (tui_set_win_height_command): Rename from
1301 tui_set_win_height.
1302 (tui_set_win_height_command): Remove.
1303
b73dd877
TT
13042019-07-17 Tom Tromey <tom@tromey.com>
1305
1306 * tui/tui-source.c (tui_source_window): New constructor. Add
1307 observer.
1308 (~tui_source_window): New destructor.
1309 (tui_source_window::style_changed): New method.
1310 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1311 (tui_attach_detach_observers): Update.
1312 * tui/tui-data.h (struct tui_source_window): Make constructor not
1313 inline. Add destructor.
1314 (struct tui_source_window) <style_changed>: New method.
1315 <m_observable>: New member.
1316
ae2b5380
TT
13172019-07-17 Tom Tromey <tom@tromey.com>
1318
1319 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1320 * tui/tui-win.c (tui_resize_all): Fix typo.
1321
1ce3e844
TT
13222019-07-17 Tom Tromey <tom@tromey.com>
1323
1324 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1325 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1326 (tui_refresh_all): Remove "list" parameter. Use foreach.
1327 * tui/tui-win.c (window_name_completer): Use foreach.
1328 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1329 (update_tab_width): Likewise.
1330 * tui/tui-layout.c (show_layout): Update.
1331 * tui/tui-data.h (class tui_window_iterator): New.
1332 (struct all_tui_windows): New.
1333 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1334
fe3eaf1c
TT
13352019-07-17 Tom Tromey <tom@tromey.com>
1336
1337 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1338 parameter. Don't reference globals.
1339 (tui_reg_command): Update.
1340
368c1354
TT
13412019-07-17 Tom Tromey <tom@tromey.com>
1342
1343 * tui/tui-regs.c (tui_show_registers): Simplify.
1344
e80cd204
TT
13452019-07-17 Tom Tromey <tom@tromey.com>
1346
1347 * tui/tui-regs.c (tui_show_registers): Update.
1348 (tui_show_register_group): Add win_info parameter.
1349
aca2dd16
TT
13502019-07-17 Tom Tromey <tom@tromey.com>
1351
1352 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1353 Rename from tui_display_reg_element_at_line.
1354 (tui_data_window::display_registers_from_line): Update.
1355 * tui/tui-data.h (struct tui_data_window)
1356 <display_reg_element_at_line>: New method.
1357
517e9505
TT
13582019-07-17 Tom Tromey <tom@tromey.com>
1359
1360 * tui/tui-regs.h (tui_display_registers_from)
1361 (tui_display_registers_from_line): Don't declare.
1362 * tui/tui-windata.c (tui_data_window::display_all_data)
1363 (tui_data_window::refresh_all)
1364 (tui_data_window::do_scroll_vertical): Update.
1365 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1366 from tui_display_registers_from.
1367 (tui_display_reg_element_at_line): Update.
1368 (tui_data_window::display_registers_from_line): Rename from
1369 tui_display_registers_from_line.
1370 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1371 display_registers_from_line>: New methods.
1372
f76d8b19
TT
13732019-07-17 Tom Tromey <tom@tromey.com>
1374
1375 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1376 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1377 from tui_erase_data_content.
1378 (tui_data_window::display_all_data)
1379 (tui_data_window::refresh_all)
1380 (tui_data_window::do_scroll_vertical): Update.
1381 * tui/tui-regs.c (tui_show_registers): Update.
1382 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1383 New method.
1384
b4094625
TT
13852019-07-17 Tom Tromey <tom@tromey.com>
1386
1387 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1388 declare.
1389 * tui/tui-windata.c
1390 (tui_data_window::delete_data_content_windows): Rename from
1391 tui_delete_data_content_windows.
1392 (tui_data_window::display_all_data)
1393 (tui_data_window::do_scroll_vertical): Update.
1394 * tui/tui-data.h (struct tui_data_window)
1395 <delete_data_content_windows>: New method.
1396
c223a729
TT
13972019-07-17 Tom Tromey <tom@tromey.com>
1398
1399 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1400 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1401
50daf268
TT
14022019-07-17 Tom Tromey <tom@tromey.com>
1403
1404 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1405 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1406 from tui_display_all_data.
1407 * tui/tui-win.c
1408 (tui_data_window::do_make_visible_with_new_height): Update.
1409 * tui/tui-regs.c (tui_show_registers): Update.
1410 * tui/tui-layout.c (tui_set_layout): Update.
1411 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1412 method.
1413
df5f8cab
TT
14142019-07-17 Tom Tromey <tom@tromey.com>
1415
1416 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1417 * tui/tui-windata.c (tui_display_data_from): Remove.
1418 (tui_data_window::refresh_all): Update.
1419
80cb6c27
TT
14202019-07-17 Tom Tromey <tom@tromey.com>
1421
1422 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1423 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1424 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1425 tui_display_registers_from_line.
1426 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1427 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1428 "force_display" parameter.
1429
baff0c28
TT
14302019-07-17 Tom Tromey <tom@tromey.com>
1431
1432 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1433 declare.
1434 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1435 Rename from tui_first_reg_element_no_inline.
1436 (tui_display_reg_element_at_line)
1437 (tui_display_registers_from_line): Update.
1438 * tui/tui-data.h (struct tui_data_window)
1439 <first_reg_element_no_inline>: New method.
1440
3b23c5f2
TT
14412019-07-17 Tom Tromey <tom@tromey.com>
1442
1443 * tui/tui-windata.c (tui_display_data_from)
1444 (tui_data_window::do_scroll_vertical): Update.
1445 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1446 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1447 Rename from tui_line_from_reg_element_no.
1448 (tui_display_registers_from_line): Update.
1449 * tui/tui-data.h (struct tui_data_window)
1450 <line_from_reg_element_no>: New method.
1451
0b5ec218
TT
14522019-07-17 Tom Tromey <tom@tromey.com>
1453
1454 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1455 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1456 tui_last_regs_line_no.
1457 (tui_display_reg_element_at_line)
1458 (tui_display_registers_from_line): Update.
1459 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1460 method.
1461
0807ab7b
TT
14622019-07-17 Tom Tromey <tom@tromey.com>
1463
1464 PR tui/24722:
1465 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1466 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1467 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1468 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1469 (tui_update_breakpoint_info): Likewise.
1470 * tui/tui-hooks.c (tui_event_create_breakpoint)
1471 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1472 Update.
1473
9ad7fdef
TT
14742019-07-17 Tom Tromey <tom@tromey.com>
1475
1476 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1477
5813316f
TT
14782019-07-17 Tom Tromey <tom@tromey.com>
1479
1480 * tui/tui-winsource.c (tui_update_source_window_as_is)
1481 (tui_update_source_windows_with_addr): Update.
1482 * tui/tui-source.h (tui_set_source_content)
1483 (tui_show_symtab_source): Add "win_info" parameter.
1484 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1485 parameter.
1486 (tui_show_symtab_source): Likewise.
1487
00e264e7
TT
14882019-07-17 Tom Tromey <tom@tromey.com>
1489
1490 * tui/tui-wingeneral.c
1491 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1492
06210ce4
TT
14932019-07-17 Tom Tromey <tom@tromey.com>
1494
1495 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1496 (struct tui_cmd_window) <can_scroll>: New method.
1497 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1498 method.
1499
381befee
TT
15002019-07-17 Tom Tromey <tromey@adacore.com>
1501
1502 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1503 do_field_signed>: Rename. Change type of "value".
1504 * ui-out.c (ui_out::field_signed): Rename from field_int.
1505 Change type of "value".
1506 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1507 type of "value".
1508 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1509 do_field_int. Change type of "value".
1510 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1511 do_field_int. Change type of "value".
1512 * tracepoint.c (trace_status_mi, tfind_1)
1513 (print_one_static_tracepoint_marker): Update.
1514 * thread.c (print_thread_info_1, print_selected_thread_frame):
1515 Update.
1516 * stack.c (print_frame, print_frame_info): Update.
1517 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1518 Update.
1519 * source.c (print_source_lines_base): Update.
1520 * skip.c (info_skip_command): Update.
1521 * record-btrace.c (btrace_ui_out_decode_error)
1522 (btrace_call_history_src_line): Update.
1523 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1524 Update.
1525 * progspace.c (print_program_space): Update.
1526 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1527 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1528 do_field_int. Change type of "value".
1529 * mi/mi-out.c (mi_ui_out::do_table_begin)
1530 (mi_ui_out::do_table_header): Update.
1531 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1532 type of "value".
1533 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1534 (mi_cmd_data_list_changed_registers, output_register)
1535 (mi_cmd_data_read_memory, mi_load_progress)
1536 (mi_cmd_trace_frame_collected): Update.
1537 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1538 Update.
1539 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1540 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1541 (mi_cmd_var_list_children, varobj_update_one): Update.
1542 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1543 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1544 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1545 * inferior.c (print_inferior): Update.
1546 * gdb_bfd.c (print_one_bfd): Update.
1547 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1548 Update.
1549 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1550 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1551 do_field_int. Change type of "value".
1552 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1553 do_field_int. Change type of "value".
1554 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1555 (print_one_breakpoint_location, print_it_catch_fork)
1556 (print_one_catch_fork, print_it_catch_vfork)
1557 (print_one_catch_vfork, print_it_catch_solib)
1558 (print_it_catch_exec, print_it_ranged_breakpoint)
1559 (print_mention_watchpoint, print_mention_masked_watchpoint)
1560 (bkpt_print_it, update_static_tracepoint): Update.
1561 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1562 * break-catch-syscall.c (print_it_catch_syscall): Update.
1563 * ada-tasks.c (print_ada_task_info): Update.
1564 * ada-lang.c (print_it_exception, print_mention_exception):
1565 Update.
1566
6b78c3f8
AB
15672019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 PR breakpoints/24541
1570 * gdbarch.c: Regenerate.
1571 * gdbarch.h: Regenerate.
1572 * gdbarch.sh: Adjust return type and parameter types for
1573 'stap_adjust_register'.
1574 (i386_stap_adjust_register): Adjust signature and return new
1575 register name.
1576 * stap-probe.c (stap_parse_register_operand): Adjust use of
1577 'gdbarch_stap_adjust_register'.
1578
d72a9b85
TT
15792019-07-17 Tom Tromey <tromey@adacore.com>
1580
1581 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1582 declare VEC.
1583 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1584 std::vector.
1585 (struct s390_process_info): Add initializers.
1586 (s390_add_process): Use new.
1587 (s390_linux_nat_target::low_forget_process): Use delete.
1588 (s390_linux_nat_target::low_new_fork)
1589 (s390_linux_nat_target::stopped_by_watchpoint)
1590 (s390_linux_nat_target::low_prepare_to_resume)
1591 (s390_linux_nat_target::insert_watchpoint)
1592 (s390_linux_nat_target::insert_hw_breakpoint)
1593 (s390_linux_nat_target::remove_watchpoint)
1594 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1595
206e6c58
JB
15962019-07-16 John Baldwin <jhb@FreeBSD.org>
1597
1598 * aarch64-fbsd-nat.c: Include regcache.h.
1599 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1600 argument.
1601 (aarch64_fbsd_nat_target::fetch_registers)
1602 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1603 variable.
1604 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1605
cbde90f2
JB
16062019-07-16 John Baldwin <jhb@FreeBSD.org>
1607
1608 * fbsd-nat.c: Include gdbarch.h.
1609
07128006
TT
16102019-07-15 Tom Tromey <tromey@adacore.com>
1611
1612 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1613
1f77b012
TT
16142019-07-15 Tom Tromey <tromey@adacore.com>
1615
1616 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1617 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1618 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1619 * cli-out.c (cli_ui_out::do_field_int): New method.
1620 * ui-out.c (ui_out::field_unsigned): New method.
1621 * symfile.c (generic_load): Use field_unsigned.
1622 (print_transfer_performance): Likewise.
1623 * record-btrace.c (ui_out_field_uint): Remove.
1624 (btrace_call_history_insn_range, btrace_call_history): Use
1625 field_unsigned.
1626 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1627 field_unsigned.
1628 * ui-out.h (class ui_out) <field_unsigned>: New method.
1629 <do_field_unsigned>: Likewise.
1630
33eca680
TT
16312019-07-15 Tom Tromey <tromey@adacore.com>
1632
1633 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1634 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1635 * target.c (flash_erase_command): Use field_string.
1636 * infrun.c (print_signal_received_reason): Use field_string.
1637 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1638 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1639 field_string.
1640 * ada-tasks.c (print_ada_task_info): Use field_string.
1641
ca8d69be
TT
16422019-07-15 Tom Tromey <tromey@adacore.com>
1643
1644 * target.c (flash_erase_command): Use field_core_addr.
1645 * symfile.c (generic_load): Use field_core_addr.
1646 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1647 Use field_core_addr.
1648 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1649 field_core_addr.
1650
0d4e84ed
AB
16512019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1652
1653 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1654 value if its desired type is smaller than a CORE_ADDR and signed.
1655
9a49df9d
AB
16562019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1659 of changes to field names, and use new is_reference field to
1660 decide if a property is a reference or not.
1661 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1662 field.
1663 (struct dwarf2_property_baton): Update header comment, rename
1664 'referenced_type' to 'property_type' and update comments.
1665 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1666 default property type, store in property baton, update to take
1667 accound of renamed field.
1668 (read_func_scope): Update call to attr_to_dynamic_prop.
1669 (read_array_type): Likewise.
1670 (dwarf2_per_cu_addr_sized_int_type): New function.
1671 (read_subrange_index_type): Move type finding code to
1672 dwarf2_per_cu_addr_sized_int_type.
1673 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1674 (dwarf2_per_cu_addr_type): New function.
1675 (set_die_type): Update calls to attr_to_dynamic_prop.
1676
b86352cf
AB
16772019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * dwarf2read.c (read_subrange_index_type): New function.
1680 (read_subrange_type): Move code into new function and call it.
1681 * gdbtypes.c (create_range_type): Add some asserts.
1682
603490bf
AB
16832019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1686 update return statements.
1687 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1688 declaration, and update comment to match.
1689 * gdbtypes.c (resolve_dynamic_array): Update call to
1690 dwarf2_evaluate_property to match new return type.
1691
592f9d27
AB
16922019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1693
1694 * valarith.c (value_subscripted_rvalue): Change lowerbound
1695 parameter type from int to LONGEST.
1696 * value.h (value_subscripted_rvalue): Likewise in declaration.
1697
60cfcb20
AB
16982019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * cli/cli-utils.c (info_print_command_completer): New function.
1701 * cli/cli-utils.h: Add 'completer.h' include, and forward
1702 declaration for 'struct cmd_list_element'.
1703 (info_print_command_completer): Declare.
1704 * stack.c (_initialize_stack): Add completer for 'info locals' and
1705 'info args'.
1706 * symtab.c (_initialize_symtab): Add completer for 'info
1707 variables' and 'info functions'.
1708 * NEWS: Mention completion for additional info commands.
1709
b16507e0
AB
17102019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 * cli/cli-utils.c (extract_info_print_args): Delete.
1713 (extract_arg_maybe_quoted): Delete.
1714 (info_print_options_defs): New variable.
1715 (make_info_print_options_def_group): New function.
1716 (extract_info_print_options): Define new function.
1717 * cli/cli-utils.h (extract_info_print_args): Delete.
1718 (struct info_print_options): New structure.
1719 (extract_info_print_options): Declare new function.
1720 * stack.c (info_locals_command): Update to use new
1721 extract_info_print_options, also add a header comment.
1722 (info_args_command): Likewise.
1723 * symtab.c (info_variables_command): Likewise.
1724 (info_functions_command): Likewise.
1725
021d8588
AB
17262019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1729 to extract string arguments.
1730 * common/common-utils.c (extract_string_maybe_quoted): New function.
1731 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1732
b777eb6d
TT
17332019-07-11 Tom Tromey <tromey@adacore.com>
1734
1735 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1736 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1737 * top.h (gdbinit): Don't declare.
1738 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1739 into...
1740 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1741 * top.c (gdb_init): Don't call init_cli_cmds.
1742 (gdbinit): Remove.
1743 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1744
72ee03ff
TT
17452019-07-11 Tom Tromey <tromey@adacore.com>
1746
1747 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1748 after it has been moved.
1749
00db9531
SM
17502019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1751
1752 * valops.c (value_must_coerce_to_target): Change return type to
1753 bool.
1754 * value.h (value_must_coerce_to_target): Likewise.
1755
f2478a7e
SM
17562019-07-10 Simon Marchi <simon.marchi@efficios.com>
1757
1758 * breakpoint.c (is_hardware_watchpoint): Remove
1759 forward-declaration.
1760 (is_masked_watchpoint): Change return type to bool.
1761 (is_tracepoint): Likewise.
1762 (is_breakpoint): Likewise.
1763 (is_hardware_watchpoint): Likewise.
1764 (is_watchpoint): Likewise.
1765 (is_no_memory_software_watchpoint): Likewise.
1766 (is_catchpoint): Likewise.
1767 (breakpoint_1): Make FILTER parameter's return type bool.
1768 is_masked_watchpoint): Change return type to bool.
1769 (save_breakpoints): Make FILTER parameter's return type bool.
1770 * breakpoint.h (is_breakpoint): Change return type to bool.
1771 (is_watchpoint): Likewise.
1772 (is_catchpoint): Likewise.
1773 (is_tracepoint): Likewise.
1774
0d12e84c
TT
17752019-07-10 Tom Tromey <tom@tromey.com>
1776
1777 * defs.h: Don't include gdbarch.h.
1778 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1779 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1780 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1781 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1782 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1783 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1784 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1785 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1786 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1787 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1788 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1789 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1790 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1791 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1792 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1793 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1794 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1795 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1796 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1797 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1798 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1799 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1800 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1801 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1802 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1803 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1804 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1805
f06f1252
TT
18062019-07-10 Tom Tromey <tromey@adacore.com>
1807
1808 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1809 * breakpoint.c (init_ada_exception_breakpoint): Register as
1810 bp_catchpoint.
1811 (print_one_breakpoint_location, print_one_breakpoint): Use
1812 is_ada_exception_catchpoint.
1813 * ada-lang.c (class ada_catchpoint_location): Pass
1814 bp_loc_software_breakpoint to bp_location constructor.
1815 (is_ada_exception_catchpoint): New function.
1816
7a5d944b
TT
18172019-07-10 Tom Tromey <tromey@adacore.com>
1818
1819 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1820 VEC.
1821 (struct arm_exidx_entry): New method operator<.
1822 (struct arm_exidx_data) <section_maps>: Change type.
1823 (arm_exidx_data_free): Remove.
1824 (arm_exidx_data_key): Change type. Move lower.
1825 (arm_exidx_new_objfile): Update.
1826 (arm_compare_exidx_entries): Remove.
1827 (arm_find_exidx_entry, _initialize_arm_tdep)
1828
48c66e1d
TT
18292019-07-10 Tom Tromey <tromey@adacore.com>
1830
1831 * solib-spu.c (ocl_program_data_key): Change type.
1832 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1833 Update.
1834
a269fbf1
TT
18352019-07-10 Tom Tromey <tromey@adacore.com>
1836
1837 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1838 (struct solib_aix_inferior_data) <library_list>: Change type.
1839 (solib_aix_inferior_data_handle): Change type.
1840 (get_solib_aix_inferior_data): Update.
1841 (solib_aix_free_library_list): Remove.
1842 (library_list_start_library): Update.
1843 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1844 return type.
1845 (solib_aix_get_library_list)
1846 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1847 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1848
c294730c
TT
18492019-07-10 Tom Tromey <tromey@adacore.com>
1850
1851 * solib-dsbt.c (struct dsbt_info): Add initializers.
1852 (solib_dsbt_pspace_data): Change type.
1853 (dsbt_pspace_data_cleanup): Remove.
1854 (get_dsbt_info, _initialize_dsbt_solib): Update.
1855
9d52077d
TT
18562019-07-10 Tom Tromey <tromey@adacore.com>
1857
1858 * spu-tdep.c (spu_overlay_data): Change type.
1859 (spu_get_overlay_table, spu_overlay_new_objfile)
1860 (_initialize_spu_tdep): Update.
1861
22a20dca
TT
18622019-07-10 Tom Tromey <tromey@adacore.com>
1863
1864 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1865 destructor.
1866 (dbx_objfile_data_key): Change type and declare later.
1867 (DBX_SYMFILE_INFO): Rewrite.
1868 * dbxread.c (dbx_objfile_data_key): Change type.
1869 (dbx_symfile_init): Update.
1870 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1871 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1872 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1873
cb60f420
TT
18742019-07-10 Tom Tromey <tromey@adacore.com>
1875
1876 * jit.c (jit_program_space_key): Change type. Move lower.
1877 (get_jit_program_space_data): Update.
1878 (jit_program_space_data_cleanup): Remove.
1879 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1880 Update.
1881 (struct jit_program_space_data): Add initializers.
1882
51df2ae3
TT
18832019-07-10 Tom Tromey <tromey@adacore.com>
1884
1885 * solib-darwin.c (struct darwin_info): Add initializers.
1886 (solib_darwin_pspace_data): Change type.
1887 (darwin_pspace_data_cleanup): Remove.
1888 (get_darwin_info, _initialize_darwin_solib): Update.
1889
18101a35
TT
18902019-07-10 Tom Tromey <tromey@adacore.com>
1891
1892 * remote-sim.c (struct sim_inferior_data): Add initializers,
1893 constructor, and destructor.
1894 (sim_inferior_data_key): Change type. Move lower.
1895 (check_for_duplicate_sim_descriptor): Update.
1896 (get_sim_inferior_data): Use new. Update.
1897 (~sim_inferior_data_cleanup): Rename from
1898 sim_inferior_data_cleanup. Simplify.
1899 (gdbsim_close_inferior, simulator_command)
1900 (sim_command_completer, _initialize_remote_sim): Update.
1901 (next_pid, INITIAL_PID): Move earlier.
1902
05b08ac1
TT
19032019-07-10 Tom Tromey <tromey@adacore.com>
1904
1905 * python/python-internal.h (create_thread_object): Return
1906 gdbpy_ref.
1907 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1908 * python/py-inferior.c (struct threadlist_entry): Add
1909 constructor.
1910 <thread_obj>: Now a gdbpy_ref.
1911 (thread_to_thread_object): Update.
1912 (add_thread_object): Use new.
1913 (delete_thread_object): Use delete.
1914 (infpy_threads): Update.
1915 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1916 GIL.
1917
32372d80
TT
19182019-07-10 Tom Tromey <tromey@adacore.com>
1919
1920 * valops.c (value_cast): Specialize error message for Ada.
1921
5c458ae8
SM
19222019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1923
1924 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1925
4c462cb0
SM
19262019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1927
1928 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1929 bpstat_should_step): Return bool, adjust comments.
1930 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1931 bpstat_should_step): Likewise.
1932
89abbcc2
AH
19332019-07-10 Alan Hayward <alan.hayward@arm.com>
1934
1935 * features/Makefile: Use feature target descriptions for Arm.
1936 * features/arm/arm-core.c: Generate new file.
1937 * features/arm/arm-fpa.c: Likewise.
1938 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1939 * features/arm/arm-m-profile.c: Likewise.
1940 * features/arm/arm-vfpv2.c: Likewise.
1941 * features/arm/arm-vfpv3.c: Likewise.
1942 * features/arm/xscale-iwmmxt.c: Likewise.
1943 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1944
166a82be
AH
19452019-07-10 Alan Hayward <alan.hayward@arm.com>
1946
1947 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1948 ptrace earlier.
1949
9fb4c7e9
AH
19502019-07-10 Alan Hayward <alan.hayward@arm.com>
1951
1952 * features/aarch64-pauth.c: Regenerate.
1953
e2d0f980
SM
19542019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1955
1956 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1957 bool.
1958 (bpstat_what): Use false instead of 0.
1959
a38118e5
PA
19602019-07-09 Pedro Alves <palves@redhat.com>
1961
1962 * break-catch-throw.c (is_exception_catchpoint): New.
1963 * breakpoint.c (print_one_breakpoint_location): New parameter
1964 'raw_loc'. Handle it. Use
1965 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1966 looking at the breakpoint's type.
1967 (print_one_breakpoint): If handling "maint info breakpoints", also
1968 print locations of exception catchpoints.
1969 * breakpoint.h (is_exception_catchpoint): Declare.
1970
cb1e4e32
PA
19712019-07-09 Pedro Alves <palves@redhat.com>
1972
1973 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1974 "addr" field.
1975 (allocate_location_exception_catchpoint): New.
1976 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1977 (initialize_throw_catchpoint_ops): Install
1978 allocate_location_exception_catchpoint as allocate_location
1979 method.
1980 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1981 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1982 bp_loc_other.
1983 (breakpoint_address_is_meaningful): Delete.
1984 (bl_address_is_meaningful): New.
1985 (breakpoint_locations_match): Adjust comment.
1986 (bp_location_from_bp_type): New, factored out of...
1987 (bp_location::bp_location(breakpoint *)): ... this.
1988 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1989 factored out of...
1990 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1991 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1992 breakpoint_address_is_meaningful.
1993 (bp_locations_compare): Adjust comment.
1994 (update_global_location_list): Use bl_address_is_meaningful
1995 instead of breakpoint_address_is_meaningful.
1996 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1997 explicit.
1998 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1999 * python/py-breakpoint.c (bppy_get_location): No longer check
2000 whether location is null.
2001
b58a68fe
PA
20022019-07-09 Pedro Alves <palves@redhat.com>
2003
2004 PR c++/15468
2005 * breakpoint.c (print_one_breakpoint_location): Remove
2006 single-location assert.
2007
268a13a5
TT
20082019-07-09 Tom Tromey <tom@tromey.com>
2009
2010 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2011 * configure: Rebuild.
2012 * configure.ac: Change common to gdbsupport.
2013 * gdbsupport: Rename from common.
2014 * acinclude.m4: Change common to gdbsupport.
2015 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2016 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2017 gdbsupport.
2018 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2019 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2020 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2021 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2022 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2023 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2024 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2025 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2026 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2027 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2028 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2029 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2030 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2031 coff-pe-read.c, command.h, compile/compile-c-support.c,
2032 compile/compile-c.h, compile/compile-cplus-symbols.c,
2033 compile/compile-cplus-types.c, compile/compile-cplus.h,
2034 compile/compile-loc2c.c, compile/compile.c, completer.c,
2035 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2036 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2037 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2038 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2039 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2040 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2041 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2042 features/aarch64-core.c, features/aarch64-fpu.c,
2043 features/aarch64-pauth.c, features/aarch64-sve.c,
2044 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2045 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2046 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2047 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2048 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2049 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2050 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2051 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2052 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2053 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2054 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2055 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2056 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2057 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2058 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2059 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2060 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2061 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2062 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2063 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2064 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2065 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2066 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2067 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2068 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2069 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2070 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2071 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2072 minsyms.c, mips-linux-tdep.c, namespace.h,
2073 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2074 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2075 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2076 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2077 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2078 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2079 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2080 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2081 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2082 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2083 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2084 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2085 procfs.c, producer.c, progspace.h, psymtab.h,
2086 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2087 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2088 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2089 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2090 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2091 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2092 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2093 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2094 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2095 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2096 target-memory.c, target.c, target.h, target/waitstatus.c,
2097 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2098 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2099 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2100 unittests/array-view-selftests.c,
2101 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2102 unittests/common-utils-selftests.c,
2103 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2104 unittests/format_pieces-selftests.c,
2105 unittests/function-view-selftests.c,
2106 unittests/lookup_name_info-selftests.c,
2107 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2108 unittests/mkdir-recursive-selftests.c,
2109 unittests/observable-selftests.c,
2110 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2111 unittests/parse-connection-spec-selftests.c,
2112 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2113 unittests/scoped_fd-selftests.c,
2114 unittests/scoped_mmap-selftests.c,
2115 unittests/scoped_restore-selftests.c,
2116 unittests/string_view-selftests.c, unittests/style-selftests.c,
2117 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2118 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2119 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2120 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2121 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2122 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2123
5b0e2db4
AB
21242019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2127 bool value.
2128 (decode_digits_ordinary): Set explicit_line field in sal.
2129 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2130 symtab_and_line that was set on an explicit line number in
2131 assembler code. Do always update the recorded symtab and line if
2132 we do skip the prologue.
2133
0ba852ab
AB
21342019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2135
2136 * breakpoint.c (set_breakpoint_location_function): Remove
2137 explicit_loc parameter.
2138 (momentary_breakpoint_from_master): Update call to
2139 set_breakpoint_location_function.
2140 (add_location_to_breakpoint): Likewise.
2141
b3a7d171
AB
21422019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2145 required features based on default bfd type when no specific bfd
2146 is present.
2147
1f6f6e21
PW
21482019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2149
2150 * NEWS: Mention that GDB printf and eval commands can now print
2151 C-style and Ada-style convenience var strings without
2152 calling the inferior.
2153 * printcmd.c (printf_c_string): Locally print GDB internal var
2154 instead of transiting via the inferior.
2155 (printf_wide_c_string): Likewise.
2156
21572019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2158
2159 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2160
0598af48
TT
21612019-07-04 Tom Tromey <tom@tromey.com>
2162
2163 PR tui/24724:
2164 * tui/tui-winsource.c (tui_clear_source_content): Update.
2165 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2166 (tui_update_breakpoint_info): Update.
2167 (tui_set_exec_info_content): Update.
2168 * tui/tui-source.c (tui_set_source_content_nil): Update.
2169 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2170 has_break.
2171 * tui/tui-data.h (enum tui_bp_flag): New.
2172 (tui_bp_flags): New enum flags type.
2173 (struct tui_source_element) <break_mode>: Change type. Rename
2174 from has_break.
2175 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2176 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2177 constants.
2178 * tui/tui-winsource.h: Fix comment.
2179
350fab54
AH
21802019-07-04 Alan Hayward <alan.hayward@arm.com>
2181
2182 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2183 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2184 (store_fpregs_to_thread)
2185 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2186 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2187 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2188 (IWMMXT_REGS_SIZE): Add define.
2189 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2190 (fetch_vfp_regs, store_vfp_regs)
2191 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2192 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2193
f0452268
AH
21942019-07-04 Alan Hayward <alan.hayward@arm.com>
2195
2196 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2197 defines.
2198 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2199 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2200 (ARM_INT_REGISTER_SIZE): ...to this.
2201 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2202 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2203 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2204 (arm_linux_collect_gregset, supply_nwfpe_register)
2205 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2206 defines.
2207 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2208 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2209 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2210 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2211 (arm_return_in_memory, arm_store_return_value)
2212 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2213 (arm_record_ld_st_multiple): Likewise.
2214 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2215 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2216
e935475c
AH
22172019-07-04 Alan Hayward <alan.hayward@arm.com>
2218
2219 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2220 AARCH64_DISPLACED_MODIFIED_INSNS.
2221 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2222 (aarch64_displaced_step_copy_insn): Likewise.
2223 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2224 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2225 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2226 ARM_DISPLACED_MODIFIED_INSNS.
2227 * arm-tdep.c (arm_gdbarch_init): Likewise.
2228 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2229 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2230 (struct arm_displaced_step_closure): Use
2231 ARM_DISPLACED_MODIFIED_INSNS.
2232
df0bb381
AH
22332019-07-04 Alan Hayward <alan.hayward@arm.com>
2234
2235 * features/Makefile: Remove unused xml files.
2236 * features/aarch64.xml: Remove.
2237 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2238 * features/i386/amd64-avx-avx512.xml: Remove.
2239 * features/i386/amd64-avx-linux.xml: Remove.
2240 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2241 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2242 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2243 * features/i386/amd64-avx-mpx.xml: Remove.
2244 * features/i386/amd64-avx.xml: Remove.
2245 * features/i386/amd64-linux.xml: Remove.
2246 * features/i386/amd64-mpx-linux.xml: Remove.
2247 * features/i386/amd64-mpx.xml: Remove.
2248 * features/i386/amd64.xml: Remove.
2249 * features/i386/i386-avx-avx512-linux.xml: Remove.
2250 * features/i386/i386-avx-avx512.xml: Remove.
2251 * features/i386/i386-avx-linux.xml: Remove.
2252 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2253 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2254 * features/i386/i386-avx-mpx-linux.xml: Remove.
2255 * features/i386/i386-avx-mpx.xml: Remove.
2256 * features/i386/i386-avx.xml: Remove.
2257 * features/i386/i386-linux.xml: Remove.
2258 * features/i386/i386-mmx-linux.xml: Remove.
2259 * features/i386/i386-mmx.xml: Remove.
2260 * features/i386/i386-mpx-linux.xml: Remove.
2261 * features/i386/i386-mpx.xml: Remove.
2262 * features/i386/i386.xml: Remove.
2263 * features/i386/x32-avx-avx512-linux.xml: Remove.
2264 * features/i386/x32-avx-linux.xml: Remove.
2265 * features/i386/x32-linux.xml: Remove.
2266
edd6266a
AH
22672019-07-04 Alan Hayward <alan.hayward@arm.com>
2268
2269 * regformats/aarch64.dat: Remove.
2270 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2271 * regformats/i386/amd64-avx-linux.dat: Remove.
2272 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2273 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2274 * regformats/i386/amd64-linux.dat: Remove.
2275 * regformats/i386/amd64-mpx-linux.dat: Remove.
2276 * regformats/i386/amd64.dat: Remove.
2277 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2278 * regformats/i386/i386-avx-linux.dat: Remove.
2279 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2280 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2281 * regformats/i386/i386-linux.dat: Remove.
2282 * regformats/i386/i386-mmx-linux.dat: Remove.
2283 * regformats/i386/i386-mpx-linux.dat: Remove.
2284 * regformats/i386/i386.dat: Remove.
2285 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2286 * regformats/i386/x32-avx-linux.dat: Remove.
2287 * regformats/i386/x32-linux.dat: Remove.
2288
2b40fda7
AH
22892019-07-04 Alan Hayward <alan.hayward@arm.com>
2290
2291 * aarch64-tdep.c: Remove xml self tests.
2292 * amd64-linux-tdep.c: Likewise.
2293 * amd64-tdep.c: Likewise.
2294 * i386-linux-tdep.c: Likewise.
2295 * i386-tdep.c: Likewise.
2296
5f4ba3e7
PA
22972019-07-03 Pedro Alves <palves@redhat.com>
2298
2299 PR cli/24732
2300 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2301 (pipe_cmd_option_defs): New.
2302 (make_pipe_cmd_options_def_group): New.
2303 (pipe_command): Use gdb::option::process_options.
2304 (pipe_command_completer): New function.
2305 (_initialize_cli_cmds): Install completer for "pipe" command.
2306
3d9be6f5
PA
23072019-07-03 Pedro Alves <palves@redhat.com>
2308
2309 * cli/cli-option.c (union option_value) <string>: New field.
2310 (struct option_def_and_value): Add ctor, move ctor, dtor and
2311 use DISABLE_COPY_AND_ASSIGN.
2312 (option_def_and_value::clear_value): New.
2313 (parse_option, save_option_value_in_ctx, get_val_type_str)
2314 (add_setshow_cmds_for_options): Handle var_string.
2315 * cli-option.h (union option_def::var_address) <string>: New
2316 field.
2317 (struct string_option_def): New.
2318 * maint-test-options.c (struct test_options_opts): Add default
2319 ctor and use DISABLE_COPY_AND_ASSIGN.
2320 <string_opt>: New field.
2321 (test_options_opts::~test_options_opts): New.
2322 (test_options_opts::dump): Also dump "-string".
2323 (test_options_option_defs): Install "string.
2324
41fc454c
PA
23252019-07-03 Pedro Alves <palves@redhat.com>
2326
2327 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2328 option_value with a null enumeration.
2329 (complete_options): Save the option values in the context.
2330 (save_option_value_in_ctx): New, factored out from ...
2331 (process_options): ... here.
2332 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2333 of the function.
2334 * maint-test-options.c (test_options_opts::dump): New, factored
2335 out from ...
2336 (maintenance_test_options_command_mode): ... here.
2337 (maintenance_test_options_command_completion_result): Delete.
2338 (maintenance_test_options_command_completion_text): Update
2339 comment.
2340 (maintenance_show_test_options_completion_result): Change
2341 prototype. Just print
2342 maintenance_test_options_command_completion_text.
2343 (save_completion_result): New.
2344 (maintenance_test_options_completer_mode): Pass options context to
2345 complete_options, and then save a dump.
2346 (_initialize_maint_test_options): Use add_cmd to install "maint
2347 show test-options-completion-result".
2348
fdbc9870
PA
23492019-07-03 Pedro Alves <palves@redhat.com>
2350
2351 * NEWS (New commands): Mention "with" and "maint with".
2352 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2353 (with_command, with_command_completer): New.
2354 (pipe_command): Adjust to new repeat_previous
2355 interface.
2356 (_initialize_cli_cmds): Install the "with" command and its "w"
2357 alias.
2358 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2359 declarations.
2360 * cli/cli-setshow.c (parse_cli_var_uinteger)
2361 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2362 argument strings for all var_types.
2363 (get_setshow_command_value_string): New, factored out from ...
2364 (do_show_command): ... this.
2365 * cli/cli-setshow.h: Include <string>.
2366 (get_setshow_command_value_string): Declare.
2367 * command.h (repeat_previous): Now returns const char *. Adjust
2368 comment.
2369 * maint.c: Include "cli/cli-cmds.h".
2370 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2371 (_initialize_maint_cmds): Register the "maintenance with" command.
2372 * top.c (repeat_previous): Move bits from pipe_command here:
2373 Return the saved command line, if any; error out if there's no
2374 command to relaunch.
2375
c6ac8931
PA
23762019-07-03 Pedro Alves <palves@redhat.com>
2377
2378 * NEWS (New commands): Mention "maint set/show test-settings"
2379 instead of "maint test-settings".
2380 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2381 (maintenance_test_settings_set_list): Rename to ...
2382 (maintenance_set_test_settings_list): ... this.
2383 (maintenance_test_settings_show_list): Rename to ...
2384 (maintenance_show_test_settings_list): ... this.
2385 (maintenance_test_settings_cmd): Delete.
2386 (maintenance_test_settings_set_cmd): ...
2387 (maintenance_set_test_settings_cmd): ... this.
2388 (maintenance_test_settings_show_cmd): ...
2389 (maintenance_show_test_settings_cmd): ... this.
2390 (maintenance_test_settings_show_value_cmd):
2391 (maintenance_show_test_settings_value_cmd): ... this.
2392 (_initialize_maint_test_settings): No longer install the "maint
2393 test-settings" prefix command. Rename "maint test-settings set"
2394 to "maint set test-settings", and "maint test-settings show" to
2395 "maint show test-settings". Adjust all subcommands.
2396
d1fcf2fd
PA
23972019-07-03 Pedro Alves <palves@redhat.com>
2398
2399 * maint-test-settings.c: Fix file's intro comment. Replace all
2400 references to "test-options" with references to "test-settings",
2401 in comments.
2402
970f9d09
PA
24032019-07-03 Pedro Alves <palves@redhat.com>
2404
2405 * maint-test-settings.c (maintenance_test_settings_xxx)
2406 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2407 New.
2408 (maintenance_test_settings_enums): Use them.
2409 (maintenance_test_settings_enum): Default to
2410 maintenance_test_settings_xxx.
2411 (_initialize_maint_test_settings): Initialize
2412 MAINTENANCE_TEST_SETTINGS_FILENAME.
2413
f3869b1a
SM
24142019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2415
2416 * breakpoint.h (remove_breakpoints_inf): Change return type to
2417 void, move function documentation here.
2418 * breakpoint.c (remove_breakpoints_inf): Change return type to
2419 void, move function documentation to header.
2420
54d66006
PA
24212019-07-02 Pedro Alves <palves@redhat.com>
2422
2423 * NEWS (Completion improvements): Mention "info threads".
2424 * thread.c (struct info_threads_opts, info_threads_option_defs)
2425 (make_info_threads_options_def_group): New.
2426 (info_threads_command): Use gdb::option::process_options.
2427 (info_threads_command_completer): New.
2428 (_initialize_thread): Use gdb::option::build_help to build the
2429 help text for "info threads".
2430
854f6088
SM
24312019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * defs.h (generic_load): Move from here...
2434 * symfile.h (generic_load): ... to here. Rename name parameter
2435 to args.
2436 * symfile.c (generic_load): Add comment.
2437
54ee4252
TT
24382019-07-01 Tom Tromey <tromey@adacore.com>
2439
2440 * dwarf2read.c
2441 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2442 declaration of without_params. Fix formatting.
2443
65392b3e
TT
24442019-07-01 Tom Tromey <tromey@adacore.com>
2445
2446 * ada-exp.y (find_primitive_type): Update.
2447 * ada-lang.h (ada_lookup_symbol): Update.
2448 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2449 parameter.
2450 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2451
7d7571f0
SDJ
24522019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2453
2454 PR breakpoints/24541
2455 * gdbarch.c: Regenerate.
2456 * gdbarch.h: Regenerate.
2457 * gdbarch.sh: Add 'stap_adjust_register'.
2458 * i386-tdep.c: Include '<unordered_set>'.
2459 (i386_stap_adjust_register): New function.
2460 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2461 * stap-probe.c (stap_parse_register_operand): Call
2462 'gdbarch_stap_adjust_register'.
2463
5af5392a
SDJ
24642019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2465
2466 PR python/24742
2467 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2468 * python/python.c (do_start_initialization): Use 'xmalloc'
2469 instead of 'PyMem_Malloc'.
2470
10d06d82
TT
24712019-06-28 Tom Tromey <tromey@adacore.com>
2472
2473 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2474 for Ada.
2475
1b7f24cd
TT
24762019-06-27 Tom Tromey <tromey@adacore.com>
2477
2478 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2479 objfile_key.
2480 (arm_find_mapping_symbol, arm_record_special_symbol)
2481 (_initialize_arm_tdep): Update.
2482 (arm_objfile_data_free): Remove.
2483
3d507ff2
TT
24842019-06-27 Tom Tromey <tromey@adacore.com>
2485
2486 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2487 to cp_print_static_field.
2488
762c164d
TT
24892019-06-26 Tom Tromey <tromey@adacore.com>
2490
2491 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2492 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2493 declare.
2494
aa2f9bcf
AH
24952019-06-26 Alan Hayward <alan.hayward@arm.com>
2496
2497 * features/aarch64-core.c (create_feature_aarch64_core):
2498 Regenerate.
2499 * features/aarch64-core.xml: Add cpsr flags.
2500
3426ae57
AH
25012019-06-26 Alan Hayward <alan.hayward@arm.com>
2502
2503 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2504 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2505
4838e44c
SM
25062019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2509 field.
2510 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2511 use.
2512 (arm_record_special_symbol): Don't insert new symbol in sorted
2513 position, push it at the end.
2514
54cc7474
SM
25152019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2516
2517 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2518 (arm_mapping_symbol_s): Remove.
2519 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2520 (arm_mapping_symbol_vec): New typedef.
2521 (struct arm_per_objfile): Add constructor.
2522 <section_maps>: Change type to
2523 std::unique_ptr<arm_mapping_symbol_vec[]>.
2524 (arm_compare_mapping_symbols): Remove.
2525 (arm_find_mapping_symbol): Adjust to section_maps type change.
2526 (arm_objfile_data_free): Call delete on arm_per_objfile.
2527 (arm_record_special_symbol): Adjust to section_maps type change.
2528 Allocate arm_per_objfile with new.
2529
b65b566c
PW
25302019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2531
2532 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2533 with the command prefix.
2534
c2fc64f5
TT
25352019-06-25 Tom Tromey <tom@tromey.com>
2536
2537 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2538 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2539
fb54fa76
TT
25402019-06-25 Tom Tromey <tom@tromey.com>
2541
2542 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2543 type.
2544 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2545 protected.
2546
f7952c57
TT
25472019-06-25 Tom Tromey <tom@tromey.com>
2548
2549 * tui/tui-winsource.c
2550 (tui_source_window_base::set_is_exec_point_at): Add check against
2551 LOA_ADDRESS.
2552
17568d78
TT
25532019-06-25 Tom Tromey <tom@tromey.com>
2554
2555 * tui/tui-source.c (tui_set_source_content): Don't check before
2556 xfree.
2557 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2558
53e7cdba
TT
25592019-06-25 Tom Tromey <tom@tromey.com>
2560
2561 * tui/tui-winsource.h (tui_update_source_window_as_is)
2562 (tui_alloc_source_buffer, tui_line_is_displayed)
2563 (tui_addr_is_displayed): Change type of win_info.
2564 * tui/tui-winsource.c (tui_update_source_window_as_is)
2565 (tui_clear_source_content, tui_show_source_line)
2566 (tui_show_source_content, tui_source_window_base::refill)
2567 (tui_source_window_base::set_is_exec_point_at)
2568 (tui_source_window_base::set_is_exec_point_at)
2569 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2570 (tui_alloc_source_buffer, tui_line_is_displayed)
2571 (tui_addr_is_displayed): Change type of win_info. Update.
2572 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2573 (tui_source_window_base::do_make_visible_with_new_height):
2574 Update.
2575 * tui/tui-source.c (tui_set_source_content)
2576 (tui_set_source_content_nil)
2577 (tui_source_window::do_scroll_vertical): Update.
2578 * tui/tui-layout.c (show_layout): Update.
2579 * tui/tui-disasm.c (tui_set_disassem_content)
2580 (tui_disasm_window::do_scroll_vertical): Update.
2581 * tui/tui-data.h (tui_win_content): Remove.
2582 (struct tui_gen_win_info) <content, content_size>: Remove.
2583 (struct tui_source_element): Add initializers and destructor.
2584 (union tui_which_element, struct tui_win_element): Remove.
2585 (struct tui_source_window_base) <content>: New field.
2586 (struct tui_data_window): Remove destructor.
2587 (tui_alloc_content, tui_free_win_content)
2588 (tui_free_all_source_wins_content): Don't declare.
2589 * tui/tui-data.c (tui_initialize_static_data): Update.
2590 (init_content_element, tui_alloc_content): Remove.
2591 (~tui_gen_win_info): Update.
2592 (~tui_data_window, tui_free_all_source_wins_content)
2593 (tui_free_win_content, free_content, free_content_elements):
2594 Remove.
2595
7908abbf
TT
25962019-06-25 Tom Tromey <tom@tromey.com>
2597
2598 * tui/tui-winsource.h (tui_clear_source_content)
2599 (tui_erase_source_content, tui_show_source_content): Change type
2600 of win_info.
2601 * tui/tui-winsource.c (tui_clear_source_content)
2602 (tui_erase_source_content, tui_show_source_content): Change type
2603 of win_info.
2604 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2605 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2606 win_info.
2607 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2608 win_info.
2609 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2610
02c28df0
TT
26112019-06-25 Tom Tromey <tom@tromey.com>
2612
2613 * tui/tui-winsource.c (tui_clear_source_content)
2614 (tui_source_window_base::set_is_exec_point_at): Update.
2615 * tui/tui-source.c (tui_set_source_content_nil): Update.
2616 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2617 a bool.
2618 * tui/tui-data.c (init_content_element): Update.
2619
6658b1bf
TT
26202019-06-25 Tom Tromey <tom@tromey.com>
2621
2622 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2623 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2624 * tui/tui-layout.c (init_and_make_win): Update.
2625 * tui/tui.h (enum tui_win_type): Update.
2626 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2627 tui_win_is_auxillary.
2628 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2629 tui_win_is_auxillary.
2630
21e1c91e
TT
26312019-06-25 Tom Tromey <tom@tromey.com>
2632
2633 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2634 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2635 (tui_delete_data_content_windows, tui_display_all_data)
2636 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2637 Update.
2638 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2639 * tui/tui-regs.c (tui_last_regs_line_no)
2640 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2641 (tui_show_registers): Update.
2642 (tui_show_register_group): Return void. Update.
2643 (tui_display_registers_from, tui_display_reg_element_at_line)
2644 (tui_display_registers_from_line, tui_check_register_values):
2645 Update.
2646 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2647 member.
2648 (struct tui_data_window) <regs_content>: Now a std::vector.
2649 <regs_content_count>: Remove.
2650 (tui_add_content_elements, tui_free_data_content): Don't declare.
2651 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2652 (init_content_element): Remove DATA_WIN case. Add assert.
2653 (tui_add_content_elements): Remove.
2654 (tui_data_window): Update.
2655 (tui_free_data_content): Remove.
2656 (free_content_elements): Remove DATA_WIN case.
2657
115ac53b
TT
26582019-06-25 Tom Tromey <tom@tromey.com>
2659
2660 * tui/tui-data.c (tui_data_item_window): Update.
2661 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2662 * tui/tui-windata.c (tui_display_all_data)
2663 (tui_display_data_from_line): Update.
2664 (tui_check_data_values): Remove.
2665 * tui/tui-regs.c (tui_show_register_group)
2666 (tui_display_reg_element_at_line): Update.
2667 * tui/tui-hooks.c (tui_register_changed)
2668 (tui_refresh_frame_and_register_information): Call
2669 tui_check_register_values.
2670 * tui/tui-data.h (struct tui_data_window) <data_content,
2671 data_content_count, data_type>: Remove.
2672 (enum tui_data_type): Remove.
2673
2674 * tui/tui-data.c (tui_data_window::clear_detail)
2675 (~tui_data_window): Update.
2676
eaf9738b
TT
26772019-06-25 Tom Tromey <tom@tromey.com>
2678
2679 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2680 declare.
2681 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2682 Rename from tui_first_data_item_displayed. Update.
2683 (tui_data_window::refresh_all)
2684 (tui_data_window::do_scroll_vertical): Update.
2685 * tui/tui-data.h (struct tui_data_window)
2686 <first_data_item_displayed>: Declare new method.
2687
31ca4723
TT
26882019-06-25 Tom Tromey <tom@tromey.com>
2689
2690 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2691 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2692 contents...
2693 (tui_initialize_static_data): ...here.
2694
41bcff7f
TT
26952019-06-25 Tom Tromey <tom@tromey.com>
2696
2697 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2698 (tui_display_registers_from, tui_check_register_values): Update.
2699 (tui_display_register): Remove win_info parameter; update.
2700 (tui_get_register): Change type of parameters.
2701 * tui/tui-data.h (struct tui_data_element): Remove.
2702 (union tui_which_element) <data>: Remove.
2703 <data_window>: Change type.
2704 (struct tui_data_item_window): New.
2705 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2706 case. Add assert.
2707 (~tui_data_item_window): New destructor.
2708 (free_content_elements): Remove DATA_ITEM_WIN case.
2709
d2802c33
TT
27102019-06-25 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2713 Remove.
2714
dd835f8b
TT
27152019-06-25 Tom Tromey <tom@tromey.com>
2716
2717 * tui/tui-data.h (struct tui_command_element): Remove.
2718 (union tui_which_element) <command>: Remove.
2719 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2720 assert.
2721 (free_content_elements): Remove CMD_WIN case.
2722
bd7db367
TT
27232019-06-25 Tom Tromey <tom@tromey.com>
2724
2725 * tui/tui-layout.c (tui_set_layout): Update.
2726 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2727 * tui/tui-data.c (layout_def): Update.
2728
3add462f
TT
27292019-06-25 Tom Tromey <tom@tromey.com>
2730
2731 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2732 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2733 (tui_source_window_base::set_new_height): Update.
2734 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2735 Update.
2736 (tui_set_locator_fullname, tui_set_locator_info)
2737 (tui_show_frame_info): Update.
2738 * tui/tui-source.c (tui_set_source_content)
2739 (tui_source_is_displayed): Update.
2740 * tui/tui-layout.c (show_source_disasm_command, show_data)
2741 (show_source_or_disasm_and_command): Update.
2742 * tui/tui-disasm.c (tui_set_disassem_content)
2743 (tui_get_begin_asm_address): Update.
2744 * tui/tui-data.h (struct tui_locator_element): Remove.
2745 (union tui_which_element) <locator>: Remove.
2746 (struct tui_locator_window): New.
2747 (tui_locator_win_info_ptr): Change return type.
2748 * tui/tui-data.c (_locator): Change type.
2749 (tui_locator_win_info_ptr): Change return type.
2750 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2751 (tui_alloc_content): Add assert.
2752
489e9d8b
TT
27532019-06-25 Tom Tromey <tom@tromey.com>
2754
2755 * tui/tui-winsource.c
2756 (tui_exec_info_window::maybe_allocate_content): New method.
2757 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2758 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2759 (make_source_or_disasm_window): Add cast.
2760 * tui/tui-data.h (union tui_which_element) <simple_string>:
2761 Remove.
2762 (struct tui_source_info): New.
2763 (struct tui_source_window_base) <execution_info>: Change type.
2764 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2765 case, and add assert.
2766 (tui_alloc_content): Add assert.
2767
c3fabb7d
TT
27682019-06-25 Tom Tromey <tom@tromey.com>
2769
2770 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2771 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2772 * tui/tui-data.c (tui_alloc_win_info): Remove.
2773
bbc228ee
TT
27742019-06-25 Tom Tromey <tom@tromey.com>
2775
2776 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2777 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2778 can_highlight.
2779
5fcee43a
TT
27802019-06-25 Tom Tromey <tom@tromey.com>
2781
2782 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2783 make_visible_with_new_height method.
2784 (tui_win_info::make_visible_with_new_height): New method.
2785 (tui_source_window_base::do_make_visible_with_new_height)
2786 (tui_data_window::do_make_visible_with_new_height)
2787 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2788 (make_visible_with_new_height): Remove.
2789 (tui_resize_all, tui_adjust_win_heights): Use
2790 make_visible_with_new_height method.
2791 * tui/tui-data.h (struct tui_win_info)
2792 <do_make_visible_with_new_height, make_visible_with_new_height>:
2793 New methods.
2794 (struct tui_source_window_base, struct tui_data_window)
2795 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2796 methods.
2797
d83f1fe6
TT
27982019-06-25 Tom Tromey <tom@tromey.com>
2799
2800 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2801 method.
2802 (update_tab_width): Call update_tab_width method.
2803 * tui/tui-data.h (struct tui_win_info)
2804 (struct tui_source_window_base) <update_tab_width>: New methods.
2805
17374de4
TT
28062019-06-25 Tom Tromey <tom@tromey.com>
2807
2808 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2809 parameter.
2810 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2811 parameter.
2812 (tui_gen_win_info::make_visible): Update.
2813 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2814 parameter.
2815 * tui/tui-data.h (enum tui_box): New enum.
2816 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2817
f936bca2
TT
28182019-06-25 Tom Tromey <tom@tromey.com>
2819
2820 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2821 init_and_make_win for EXEC_INFO_WIN.
2822 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2823 longer inline.
2824 (struct tui_win_info) <~tui_win_info>: Inline.
2825 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2826 Don't declare.
2827 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2828 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2829 Remove.
2830 (tui_initialize_static_data): Update.
2831 (~tui_gen_win_info): Handle more cleanup here.
2832 (~tui_source_window_base): Delete "execution_info".
2833 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2834
d6ba6a11
TT
28352019-06-25 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui-layout.c (make_command_window): Don't set
2838 can_highlight.
2839 (show_source_disasm_command): Call the reset method.
2840 (show_data): Don't set can_highlight. Call the reset method.
2841 (tui_gen_win_info::reset): Rename from init_gen_win_info
2842 (init_and_make_win): Simplify. Return tui_gen_win_info.
2843 (show_source_or_disasm_and_command): Call the reset method.
2844 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2845 (struct tui_cmd_window): Set can_highlight.
2846
48a3bd16
TT
28472019-06-25 Tom Tromey <tom@tromey.com>
2848
2849 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2850 from make_visible.
2851 (tui_make_visible, tui_make_invisible): Rewrite.
2852 (tui_win_info::make_visible): Remove.
2853 (tui_source_window_base::make_visible): Update.
2854 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2855 method. Moved from...
2856 (struct tui_win_info) <make_visible>: ...here.
2857
c3bd716f
TT
28582019-06-25 Tom Tromey <tom@tromey.com>
2859
2860 * tui/tui-winsource.c
2861 (tui_source_window_base::do_scroll_horizontal): Remove direction
2862 parameter.
2863 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2864 direction parameter.
2865 * tui/tui-win.c (tui_win_info::forward_scroll)
2866 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2867 (tui_win_info::right_scroll): Update.
2868 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2869 direction parameter.
2870 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2871 direction parameter.
2872 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2873 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2874 Remove direction parameter.
2875 (struct tui_source_window_base, struct tui_source_window)
2876 (struct tui_disasm_window, struct tui_data_window)
2877 (struct tui_cmd_window): Update.
2878
21c32dca
TT
28792019-06-25 Tom Tromey <tom@tromey.com>
2880
2881 * tui/tui-winsource.h (tui_set_exec_info_content)
2882 (tui_show_exec_info_content, tui_erase_exec_info_content)
2883 (tui_clear_exec_info_content, tui_update_exec_info): Change
2884 argument to tui_source_window_base.
2885 * tui/tui-winsource.c (tui_set_exec_info_content)
2886 (tui_show_exec_info_content, tui_erase_exec_info_content)
2887 (tui_clear_exec_info_content, tui_update_exec_info): Change
2888 argument to tui_source_window_base.
2889
73fbdc65
TT
28902019-06-25 Tom Tromey <tom@tromey.com>
2891
2892 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2893 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2894
33325343
TT
28952019-06-25 Tom Tromey <tom@tromey.com>
2896
2897 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2898 check.
2899
29d2c474
TT
29002019-06-25 Tom Tromey <tom@tromey.com>
2901
2902 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2903 type to void.
2904 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2905 type to void.
2906 * tui/tui-source.c (tui_set_source_content): Update.
2907 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2908
152f3f4b
TT
29092019-06-25 Tom Tromey <tom@tromey.com>
2910
2911 * tui/tui-win.c (window_name_completer, tui_set_focus)
2912 (tui_all_windows_info): Use name method.
2913 * tui/tui-data.h (struct tui_gen_win_info)
2914 (struct tui_source_window, struct tui_disasm_window)
2915 (struct tui_data_window, struct tui_cmd_window) <name>: New
2916 method.
2917 (tui_win_name): Don't declare.
2918 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2919 (tui_win_name): Remove.
2920
be4da588
TT
29212019-06-25 Tom Tromey <tom@tromey.com>
2922
2923 * tui/tui-winsource.h (tui_update_source_window)
2924 (tui_update_source_window_as_is): Change parameter type.
2925 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2926 to be a tui_source_window_base.
2927 (tui_update_source_window_as_is): Likewise.
2928 * tui/tui-win.c (make_visible_with_new_height): Update.
2929
5b81daba
TT
29302019-06-25 Tom Tromey <tom@tromey.com>
2931
2932 * tui/tui-winsource.c (tui_erase_source_content)
2933 (tui_show_source_content, tui_show_exec_info_content)
2934 (tui_erase_exec_info_content): Use refresh_window method.
2935 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2936 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2937 from tui_refresh_win.
2938 (tui_data_window::refresh_window): New method.
2939 (tui_win_info::refresh, tui_source_window_base::refresh)
2940 (tui_refresh_all): Use refresh_window method.
2941 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2942 method.
2943 * tui/tui-regs.c (tui_display_register): Call refresh_window
2944 method.
2945 * tui/tui-layout.c (show_source_disasm_command)
2946 (show_source_or_disasm_and_command): Call refresh_window method.
2947 * tui/tui-data.h (struct tui_gen_win_info)
2948 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2949 New method.
2950
cb2ce893
TT
29512019-06-25 Tom Tromey <tom@tromey.com>
2952
2953 * tui/tui.c (tui_rl_other_window, tui_enable)
2954 (tui_is_window_visible, tui_get_command_dimension): Update.
2955 * tui/tui-winsource.c (tui_update_source_window_as_is)
2956 (tui_clear_source_content, tui_erase_source_content)
2957 (tui_show_source_line, tui_source_window_base::refill)
2958 (tui_source_window_base::do_scroll_horizontal)
2959 (tui_source_window_base::set_is_exec_point_at)
2960 (tui_update_breakpoint_info, tui_set_exec_info_content)
2961 (tui_alloc_source_buffer, tui_line_is_displayed)
2962 (tui_addr_is_displayed): Update.
2963 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2964 (tui_check_and_display_highlight_if_needed)
2965 (tui_win_info::make_visible, tui_win_info::refresh)
2966 (tui_refresh_all): Update.
2967 * tui/tui-windata.c (tui_first_data_item_displayed)
2968 (tui_delete_data_content_windows, tui_erase_data_content)
2969 (tui_display_all_data, tui_data_window::refresh_all)
2970 (tui_check_data_values): Update.
2971 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2972 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2973 (tui_win_info::backward_scroll, tui_refresh_all_win)
2974 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2975 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2976 (tui_source_window_base::set_new_height)
2977 (tui_data_window::set_new_height)
2978 (make_invisible_and_set_new_height)
2979 (make_visible_with_new_height, new_height_ok)
2980 (parse_scrolling_args): Update.
2981 * tui/tui-stack.c (tui_show_frame_info): Update.
2982 * tui/tui-source.c (tui_set_source_content)
2983 (tui_set_source_content_nil, tui_source_is_displayed)
2984 (tui_source_window::do_scroll_vertical): Update.
2985 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2986 (tui_display_registers_from, tui_display_reg_element_at_line)
2987 (tui_check_register_values, tui_reg_command): Update.
2988 * tui/tui-layout.c (tui_default_win_height)
2989 (show_source_disasm_command, show_data, init_and_make_win)
2990 (show_source_or_disasm_and_command): Update.
2991 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2992 (tui_redisplay_readline, tui_mld_flush)
2993 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2994 (tui_getc): Update.
2995 * tui/tui-disasm.c (tui_set_disassem_content)
2996 (tui_disasm_window::do_scroll_vertical): Update.
2997 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2998 Now virtual.
2999 (struct tui_win_info): Derive from tui_gen_win_info.
3000 <~tui_win_info>: Mark as override.
3001 <generic>: Remove member.
3002 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3003 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3004 (~tui_data_window, ~tui_win_info)
3005 (tui_free_all_source_wins_content): Update.
3006 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3007
ab313b35
TT
30082019-06-25 Tom Tromey <tom@tromey.com>
3009
3010 * tui/tui-layout.c (init_and_make_win): Use new.
3011 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3012 destructor, initializers.
3013 (tui_alloc_generic_win_info): Don't declare.
3014 * tui/tui-data.c (_locator): Add argument to constructor.
3015 (source_win, disasm_win): New globals.
3016 (exec_info): Remove.
3017 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3018 Update.
3019 (tui_alloc_generic_win_info): Remove.
3020 (init_content_element): Use new.
3021 (tui_win_info::tui_win_info): Update.
3022 (free_content_elements) <case DATA_WIN>: Use delete.
3023
dc2c33e4
TT
30242019-06-25 Tom Tromey <tom@tromey.com>
3025
3026 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3027 * tui/tui-windata.c (tui_first_data_item_displayed)
3028 (tui_delete_data_content_windows): Update.
3029 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3030 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3031 (tui_display_registers_from, tui_check_register_values): Update.
3032 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3033 pointer.
3034 * tui/tui-data.c (init_content_element): Update. Allocate the new
3035 window.
3036 (tui_free_data_content): Update.
3037 (free_content_elements) <case DATA_WIN>: Free the window.
3038
214a5cbe
TT
30392019-06-25 Tom Tromey <tom@tromey.com>
3040
3041 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3042 Update.
3043 * tui/tui-layout.c (make_command_window)
3044 (show_source_disasm_command, show_data, init_and_make_win)
3045 (show_source_or_disasm_and_command): Update.
3046 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3047 method.
3048 <can_highight, is_highlighted>: Now bool.
3049 (tui_set_win_highlight): Don't declare.
3050 * tui/tui-data.c (tui_set_win_highlight): Remove.
3051
8e2daf15
TT
30522019-06-25 Tom Tromey <tom@tromey.com>
3053
3054 * tui/tui-wingeneral.c (make_visible): Remove check of window
3055 type.
3056
8903bd8a
TT
30572019-06-25 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-win.c (tui_win_info::max_height)
3060 (tui_cmd_window::max_height): New methods.
3061 (new_height_ok): Call max_height.
3062 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3063 <max_height>: New method.
3064
3f02ce1e
TT
30652019-06-25 Tom Tromey <tom@tromey.com>
3066
3067 * tui/tui-win.c (tui_source_window_base::set_new_height)
3068 (tui_data_window::set_new_height): New methods.
3069 (make_invisible_and_set_new_height): Call set_new_height method.
3070 * tui/tui-data.h (struct tui_win_info)
3071 (struct tui_source_window_base, struct tui_data_window)
3072 <set_new_height>: New method.
3073
1825f487
TT
30742019-06-25 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3077 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3078 tui_refresh_data_win.
3079 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3080 method.
3081 (tui_refresh_all_win): Call the refresh_all method.
3082 (tui_set_focus): Likewise.
3083 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3084 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3085 Likewise.
3086
ad54d15b
TT
30872019-06-25 Tom Tromey <tom@tromey.com>
3088
3089 * tui/tui-winsource.h (tui_refill_source_window)
3090 (tui_set_is_exec_point_at): Don't declare.
3091 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3092 (tui_source_window_base::refill): Rename from
3093 tui_refill_source_window.
3094 (tui_source_window_base::do_scroll_horizontal): Update.
3095 (tui_source_window_base::set_is_exec_point_at): Rename from
3096 tui_set_is_exec_point_at.
3097 (tui_update_all_breakpoint_info): Update.
3098 * tui/tui-stack.c (tui_show_frame_info): Update.
3099 * tui/tui-layout.c (show_data): Add cast.
3100 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3101 * tui/tui-data.h (struct tui_source_window_base) <refill,
3102 set_is_exec_point_at>: New methods.
3103 (tui_source_windows, tui_add_to_source_windows): Update types.
3104 (tui_add_to_source_windows): Remove redundant declaration.
3105 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3106 (tui_source_windows): Change return type.
3107 (tui_clear_source_windows_detail): Update.
3108 (tui_add_to_source_windows): Change type of parameter.
3109 (tui_free_all_source_wins_content): Update.
3110
2042b506
TT
31112019-06-25 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-wingeneral.c (tui_win_info::refresh)
3114 (tui_source_window_base::refresh): New methods.
3115 (tui_refresh_all): Call the refresh method.
3116 * tui/tui-data.h (struct tui_win_info)
3117 (struct tui_source_window_base) <refresh>: New method.
3118
56122977
TT
31192019-06-25 Tom Tromey <tom@tromey.com>
3120
3121 * tui/tui.h (tui_is_window_visible): Return bool.
3122 * tui/tui.c (tui_is_window_visible): Return bool.
3123 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3124 (tui_make_visible, tui_make_invisible)
3125 (tui_win_info::make_visible)
3126 (tui_source_window_base::make_visible, make_all_visible)
3127 (tui_make_all_visible, tui_make_all_invisible): Update.
3128 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3129 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3130 bool.
3131 (struct tui_win_info, struct tui_source_window_base)
3132 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3133 * tui/tui-data.c (tui_init_generic_part): Update.
3134
cda37efb
TT
31352019-06-25 Tom Tromey <tom@tromey.com>
3136
3137 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3138 (tui_source_window_base::make_visible): New methods.
3139 (make_all_visible): Make method call.
3140 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3141 (struct tui_source_window_base, struct tui_cmd_window): Override
3142 make_visible.
3143 (tui_win_is_source_type): Don't declare.
3144 * tui/tui-data.c (tui_win_is_source_type): Remove.
3145
6a0ee02c
TT
31462019-06-25 Tom Tromey <tom@tromey.com>
3147
3148 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3149 NULL check.
3150
63901aec
TT
31512019-06-25 Tom Tromey <tom@tromey.com>
3152
3153 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3154 Inline constructor. Add initializers for members.
3155 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3156 constructors; now inline in class.
3157
ceb13a13
TT
31582019-06-25 Tom Tromey <tom@tromey.com>
3159
3160 * tui/tui-regs.c (tui_show_registers): Update.
3161 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3162 bool.
3163 * tui/tui-data.c (tui_data_window::clear_detail)
3164 (tui_data_window): Update.
3165
238eb706
TT
31662019-06-25 Tom Tromey <tom@tromey.com>
3167
3168 * tui/tui-windata.c (tui_display_all_data)
3169 (tui_display_data_from_line, tui_display_data_from)
3170 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3171 Update.
3172 * tui/tui-regs.c (tui_last_regs_line_no)
3173 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3174 (tui_show_registers, tui_show_register_group)
3175 (tui_display_registers_from, tui_display_reg_element_at_line)
3176 (tui_display_registers_from_line, tui_check_register_values)
3177 (tui_reg_next, tui_reg_prev): Update.
3178 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3179 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3180 tui_data_window.
3181 (struct tui_win_info) <detail>: Remove. Add new fields from
3182 tui_data_info.
3183 (TUI_DATA_WIN): Add cast.
3184 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3185 (~tui_data_window): Simplify.
3186
81491aa0
TT
31872019-06-25 Tom Tromey <tom@tromey.com>
3188
3189 * tui/tui-layout.c (show_source_disasm_command)
3190 (show_source_or_disasm_and_command): Update.
3191 * tui/tui-io.c (update_cmdwin_start_line)
3192 (tui_redisplay_readline): Update.
3193 * tui/tui-data.h (struct tui_command_info): Remove.
3194 (struct tui_win_info) <detail>: Remove command_info member.
3195 (struct tui_data_window) <start_line>: New member, from
3196 tui_command_info.
3197 (TUI_CMD_WIN): Add casts.
3198
e6e41501
TT
31992019-06-25 Tom Tromey <tom@tromey.com>
3200
3201 * tui/tui-winsource.c (tui_update_source_window)
3202 (tui_refill_source_window)
3203 (tui_source_window_base::do_scroll_horizontal)
3204 (tui_update_breakpoint_info, tui_set_exec_info_content)
3205 (tui_show_exec_info_content, tui_erase_exec_info_content)
3206 (tui_clear_exec_info_content): Update.
3207 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3208 Update.
3209 * tui/tui-win.c (make_invisible_and_set_new_height)
3210 (make_visible_with_new_height): Update.
3211 * tui/tui-source.c (tui_set_source_content)
3212 (tui_show_symtab_source): Update.
3213 * tui/tui-layout.c (extract_display_start_addr)
3214 (show_source_disasm_command, show_data)
3215 (make_source_or_disasm_window)
3216 (show_source_or_disasm_and_command): Update.
3217 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3218 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3219 "gdbarch".
3220 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3221 to tui_source_window_base.
3222 (struct tui_win_info) <detail>: Remove source_info member.
3223 (struct tui_source_window_base) <has_locator>: Inline.
3224 Move contents from tui_source_info; rename has_locator member to
3225 m_has_locator.
3226 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3227 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3228 header file.
3229 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3230 Simplify.
3231 (tui_free_all_source_wins_content): Cast to
3232 tui_source_window_base.
3233
44f0e208
TT
32342019-06-25 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-win.c (make_invisible_and_set_new_height)
3237 (make_visible_with_new_height): Call has_locator method.
3238 * tui/tui-layout.c (show_source_disasm_command, show_data)
3239 (show_source_or_disasm_and_command): Update for bool change.
3240 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3241 (tui_win_info) <has_locator>: New method.
3242 (struct tui_source_window_base) <has_locator>: New method.
3243 (tui_win_has_locator): Don't declare.
3244 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3245 from tui_win_has_locator.
3246 (tui_source_window_base): Use false, not FALSE.
3247
7778b912
TT
32482019-06-25 Tom Tromey <tom@tromey.com>
3249
3250 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3251 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3252 clear_detail method directly.
3253 (tui_clear_win_detail): Remove.
3254
f83d391c
TT
32552019-06-25 Tom Tromey <tom@tromey.com>
3256
3257 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3258 "this", not TUI_DISASM_WIN.
3259
13446e05
TT
32602019-06-25 Tom Tromey <tom@tromey.com>
3261
3262 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3263 declare.
3264 * tui/tui-winsource.c
3265 (tui_source_window_base::do_scroll_horizontal): Rename from
3266 tui_horizontal_source_scroll.
3267 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3268 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3269 from tui_vertical_data_scroll.
3270 * tui/tui-win.h (tui_scroll): Don't declare.
3271 * tui/tui-win.c (tui_win_info::forward_scroll)
3272 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3273 (tui_win_info::right_scroll): Rename and update.
3274 (tui_scroll_forward_command, tui_scroll_backward_command)
3275 (tui_scroll_left_command, tui_scroll_right_command): Update.
3276 (tui_scroll): Remove.
3277 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3278 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3279 from tui_vertical_source_scroll.
3280 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3281 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3282 from tui_vertical_disassem_scroll.
3283 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3284 do_scroll_horizontal>: New methods.
3285 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3286 Likewise.
3287 (struct tui_source_window_base): Add do_scroll_horizontal.
3288 (struct tui_source_window, struct tui_disasm_window): Add
3289 do_scroll_vertical.
3290 (struct tui_data_window, struct tui_cmd_window): Add
3291 do_scroll_horizontal and do_scroll_vertical.
3292 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3293
5cf82909
TT
32942019-06-25 Tom Tromey <tom@tromey.com>
3295
3296 * tui/tui-data.h (struct tui_source_window_base): New struct.
3297 (struct tui_source_window): Derive from tui_source_window_base.
3298 (struct tui_disasm_window): New struct.
3299 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3300 from tui_source_window::clear_detail.
3301 (tui_source_window_base): Rename from tui_source_window.
3302 (~tui_source_window_base): Rename from ~tui_source_window.
3303 (tui_alloc_win_info): Create a tui_disasm_window.
3304
ee1d42d6
TT
33052019-06-25 Tom Tromey <tom@tromey.com>
3306
3307 * tui/tui-data.h (struct tui_source_window)
3308 (struct tui_data_window): Declare destructors.
3309 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3310 destructors.
3311 (tui_win_info): Simplify.
3312
b4eb2452
TT
33132019-06-25 Tom Tromey <tom@tromey.com>
3314
3315 * tui/tui-winsource.c (tui_display_main)
3316 (tui_update_source_windows_with_addr)
3317 (tui_update_all_breakpoint_info): Update.
3318 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3319 (new_height_ok, parse_scrolling_args): Update.
3320 * tui/tui-stack.c (tui_show_frame_info): Update.
3321 * tui/tui-data.h (struct tui_list): Remove.
3322 (tui_source_windows): Return a reference to a std::vector.
3323 * tui/tui-data.c (source_windows): Now a std::vector.
3324 (tui_source_windows): Change return type.
3325 (tui_clear_source_windows): Rewrite.
3326 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3327 (tui_free_all_source_wins_content): Rewrite.
3328
8761a91b
TT
33292019-06-25 Tom Tromey <tom@tromey.com>
3330
3331 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3332 (struct tui_data_window, struct tui_cmd_window): Declare
3333 clear_detail method.
3334 * tui/tui-data.c (tui_source_window::clear_detail)
3335 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3336 methods.
3337 (tui_clear_win_detail): Simplify.
3338
0ed69eda
TT
33392019-06-25 Tom Tromey <tom@tromey.com>
3340
3341 * tui/tui-layout.c (make_source_window, make_disasm_window)
3342 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3343 Return the new window.
3344 (show_source_disasm_command, show_data)
3345 (show_source_or_disasm_and_command): Update.
3346
82432e10
TT
33472019-06-25 Tom Tromey <tom@tromey.com>
3348
3349 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3350 parameter. Return the new window.
3351 (show_source_disasm_command): Update and remove NULL check.
3352 (show_source_or_disasm_and_command): Update.
3353
ec328aa5
TT
33542019-06-25 Tom Tromey <tom@tromey.com>
3355
3356 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3357
33b906ab
TT
33582019-06-25 Tom Tromey <tom@tromey.com>
3359
3360 * tui/tui-data.h (struct tui_win_info): Make constructor
3361 protected. Make destructor virtual. Add initializers.
3362 (tui_source_window, tui_data_window, tui_cmd_window): New
3363 classes.
3364 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3365 constructor. Add "type" parameter.
3366 (tui_source_window, tui_data_window, tui_cmd_window): New
3367 constructors.
3368 (tui_alloc_win_info): Instantiate the appropriate subclass.
3369
e7e11af4
TT
33702019-06-25 Tom Tromey <tom@tromey.com>
3371
3372 * tui/tui-win.c (tui_resize_all): Use delete.
3373 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3374 destructor.
3375 (tui_free_window): Don't declare.
3376 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3377 Update.
3378
6792b55e
TT
33792019-06-25 Tom Tromey <tom@tromey.com>
3380
3381 * tui/tui-data.h (struct tui_win_info): Add constructor.
3382 * tui/tui-data.c (tui_alloc_win_info): Use new.
3383 (tui_free_window): Use delete.
3384
f95675e1
TT
33852019-06-22 Tom Tromey <tom@tromey.com>
3386
3387 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3388 declare.
3389 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3390
5bff081c
TT
33912019-06-22 Tom Tromey <tom@tromey.com>
3392
3393 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3394 declare.
3395 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3396
47e3f474
TV
33972019-06-22 Tom de Vries <tdevries@suse.de>
3398
3399 * dwarf2read.c (create_addrmap_from_aranges)
3400 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3401 instead of '%zu'.
3402
fd5866f6
SM
34032019-06-21 Simon Marchi <simon.marchi@efficios.com>
3404
3405 * dwarf2read.h (dwarf2_section_info_def): Remove.
3406 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3407 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3408 std::vector<dwarf2_section_info>.
3409 (struct dwo_file) <~dwo_file>: Remove.
3410 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3411 types field.
3412 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3413 (dwarf2_read_debug_names): Likewise.
3414 (create_debug_types_hash_table): Change parameter type to
3415 array_view, adjust code accordingly.
3416 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3417 (partial_die_info::fixup): Likewise.
3418 (determine_prefix): Likewise.
3419 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3420
fb1eb2f9
SM
34212019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3422
3423 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3424 gdb_bfd_ref_ptr.
3425 <~dwo_file>: Remove call to gdb_bfd_unref.
3426 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3427 gdb_bfd_ref_ptr::get.
3428
51ac9db5
SM
34292019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3430
3431 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3432 type to htab_up.
3433 * dwarf2read.c (struct dwo_file): Initialize fields.
3434 <~dwo_file>: New.
3435 (free_dwo_file): Remove, move content to ~dwo_file.
3436 (struct dwo_file_deleter): Remove.
3437 (dwo_file_up>: Remove custom deleter.
3438 (free_dwo_files): Remove.
3439 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3440 dwo_files.
3441 (process_skeletonless_type_units): Call unique_ptr::get.
3442 (allocate_dwo_file_hash_table): Add deleter to created hash
3443 table. Change return type to htab_up.
3444 (lookup_dwo_file_slot): Don't memset dwo_file, call
3445 unique_ptr::get.
3446 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3447 (create_dwo_unit_in_dwp_v2): Likewise.
3448 (open_and_init_dwo_file): Likewise.
3449 (free_dwo_file_from_slot): Remove.
3450
dc4ccb6f
SM
34512019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3452
3453 * dwarf2read.h (struct dwarf2_section_info) <readin,
3454 is_virtual>: Change type to bool.
3455 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3456 true instead of 1.
3457
e6a1c5cb
TT
34582019-06-19 Tom Tromey <tom@tromey.com>
3459
3460 * tui/tui-data.h (tui_init_content_element): Don't declare.
3461
6f6ffbeb
TT
34622019-06-19 Tom Tromey <tom@tromey.com>
3463
3464 * tui/tui-data.h (tui_init_win_info): Don't declare.
3465
f23f598e
TV
34662019-06-19 Tom de Vries <tdevries@suse.de>
3467
3468 * dwarf2read.h (abstract_to_concrete): Change type to
3469 std::unordered_map<sect_offset, std::vector<sect_offset>,
3470 gdb::hash_enum<sect_offset>>.
3471
680e1bee
TT
34722019-06-19 Tom Tromey <tromey@adacore.com>
3473
3474 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3475 EVAL_AVOID_SIDE_EFFECTS specially.
3476
dcf37923
TT
34772019-06-19 Tom Tromey <tromey@adacore.com>
3478
3479 * source-cache.c (highlighter): New global.
3480 (source_cache::get_source_lines): Create a highlighter on demand.
3481
494986d5
AB
34822019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3483
3484 * defs.h (deprecated_interactive_hook): Delete declaration.
3485 * interps.c (clear_interpreter_hooks): Remove use of
3486 deprecated_interactive_hook.
3487 * top.c (deprecated_interactive_hook): Delete definition.
3488 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3489
3360b6e7
TV
34902019-06-18 Tom de Vries <tdevries@suse.de>
3491
3492 PR gdb/24515
3493 * dwarf2read.h (abstract_to_concrete): Change type from
3494 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3495 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3496 * dwarf2read.c (read_variable): Update.
3497 (dwarf2_fetch_die_loc_sect_off): Update.
3498
310b3441
TV
34992019-06-17 Tom de Vries <tdevries@suse.de>
3500
3501 PR gdb/24617
3502 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3503 accessing parent[parent_len - 1].
3504
ba9777be
PP
35052019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3506
3507 PR gdb/24364
3508 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3509 call dtrace_process_dof with NULL dof.
3510
2b9f6e89
TV
35112019-06-16 Tom de Vries <tdevries@suse.de>
3512
3513 PR gdb/24445
3514 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3515
431b3ead
TT
35162019-06-16 Tom Tromey <tom@tromey.com>
3517
3518 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3519 (make_all_visible): Use address of member.
3520
d04b44a1
TT
35212019-06-16 Tom Tromey <tom@tromey.com>
3522
3523 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3524 (tui_free_window, free_content, free_content_elements): Remove
3525 unnecessary cast.
3526 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3527 cast.
3528 * tui/tui-regs.c (tui_show_register_group)
3529 (tui_display_registers_from, tui_display_reg_element_at_line):
3530 Remove unnecessary cast.
3531
bf5142e7
AB
35322019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3533
3534 * linux-nat.c (normal_mask): Delete.
3535 (_initialize_linux_nat): Don't initialise normal_mask.
3536
c4973306
SM
35372019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3538
3539 PR gdb/24445
3540 * dwarf-index-write.h (write_psymtabs_to_index): Add
3541 dwz_basename parameter.
3542 * dwarf-index-write.c (write_gdbindex): Move file writing to
3543 write_gdbindex_1. Change return type void.
3544 (assert_file_size): Move up, remove filename parameter.
3545 (write_gdbindex_1): New function.
3546 (write_debug_names): Change return type to void, call
3547 assert_file_size.
3548 (struct index_wip_file): New struct.
3549 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3550 file logic to index_wip_file. Write index for dwz file if
3551 needed.
3552 (save_gdb_index_command): Pass basename of dwz file, if present.
3553 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3554 build-id of dwz file, if present.
3555 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3556 (dwarf2_get_dwz_file): Likewise.
3557 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3558 (dwarf2_get_dwz_file): Likewise.
3559
395f9c91
TT
35602019-06-16 Tom Tromey <tom@tromey.com>
3561
3562 * coffread.c (process_coff_symbol): Use xstrdup.
3563 * value.c (create_internalvar): Use xstrdup.
3564
cafb3438
TT
35652019-06-16 Tom Tromey <tom@tromey.com>
3566
3567 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3568 * breakpoint.c (stopin_command, stopat_command)
3569 (until_break_command, decode_location_default): Remove unnecessary
3570 cast.
3571 * utils.c (subset_compare): Remove unnecessary cast.
3572 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3573 cast.
3574 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3575 cast.
3576 * infcmd.c (path_command): Remove unnecessary cast.
3577 * coffread.c (decode_type): Remove unnecessary cast.
3578 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3579 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3580 * tui/tui-stack.c (tui_show_locator_content)
3581 (tui_show_frame_info): Remove unnecessary cast.
3582 * tui/tui-win.c (tui_scroll_forward_command)
3583 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3584 (parse_scrolling_args): Remove unnecessary cast.
3585 * tui/tui-data.c (init_win_info, tui_del_window)
3586 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3587 (free_content_elements): Remove unnecessary cast.
3588 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3589 unnecessary cast.
3590 * tui/tui-source.c (tui_set_source_content)
3591 (tui_vertical_source_scroll): Remove unnecessary cast.
3592 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3593 cast.
3594 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3595 * tui/tui-regs.c (tui_display_registers_from)
3596 (tui_display_register): Remove unnecessary cast.
3597 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3598 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3599 (make_visible): Remove unnecessary cast.
3600 * tui/tui-winsource.c (tui_erase_source_content)
3601 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3602 unnecessary cast.
3603 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3604 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3605 * stabsread.c (read_type, read_array_type, read_range_type):
3606 Remove unnecessary cast.
3607 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3608 (parse_symbol, parse_type, upgrade_type, parse_external)
3609 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3610 unnecessary cast.
3611 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3612
730ead81
TT
36132019-06-16 Tom Tromey <tom@tromey.com>
3614
3615 * tui/tui-data.c (tui_alloc_generic_win_info)
3616 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3617 checks.
3618
584a927c
AB
36192019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3620 Andrew Burgess <andrew.burgess@embecosm.com>
3621
3622 * f-typeprint.c (f_print_type): Don't return early for not
3623 associated or not allocated types.
3624 (f_type_print_varspec_suffix): Add print_rank parameter and print
3625 ranks of array types in case they dangling.
3626 (f_type_print_base): Add print_rank parameter.
3627
30056ea0
AB
36282019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * NEWS: Mention new MI commands.
3631 * break-catch-throw.c (enum exception_event_kind): Move to
3632 breakpoint.h.
3633 (print_mention_exception_catchpoint): Output text as a single
3634 message.
3635 (catch_exception_command_1): Rename to...
3636 (catch_exception_event): ...this, make non-static, update header
3637 command, and change some parameter types.
3638 (catch_catch_command): Update for changes to
3639 catch_exception_command_1.
3640 (catch_throw_command): Likewise.
3641 (catch_rethrow_command): Likewise.
3642 * breakpoint.c (enum exception_event_kind): Delete.
3643 * breakpoint.h (enum exception_event_kind): Moved here from
3644 break-catch-throw.c.
3645 (catch_exception_event): Declare.
3646 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3647 (mi_cmd_catch_throw): New function.
3648 (mi_cmd_catch_rethrow): New function.
3649 (mi_cmd_catch_catch): New function.
3650 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3651 'catch-catch' entries.
3652 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3653 (mi_cmd_catch_rethrow): Declare.
3654 (mi_cmd_catch_catch): Declare.
3655
ec8e2b6d
AB
36562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * annotate.c (annotate_source_line): Change return type to void,
3659 update implementation to match.
3660 * annotate.h (annotate_source_line): Change return type to void,
3661 update header comment.
3662 * stack.c (print_frame_info): Don't change what frame information
3663 is printed based on whether annotations are on or not.
3664
0d3abd8c
AB
36652019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3666
3667 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3668 (annotate_source): Make static.
3669 (annotate_source_line): Moved from source.c and renamed from
3670 identify_source_line. Update the return type.
3671 * annotate.h (annotate_source): Delete declaration.
3672 (annotate_source_line): Declaration moved from source.h, and
3673 renamed from identify_source_line. Return type updated.
3674 * source.c (identify_source_line): Moved to annotate.c and renamed
3675 to annotate_source_line.
3676 (info_line_command): Remove check of annotation_level.
3677 * source.h (identify_source_line): Move declaration to annotate.h
3678 and rename to annotate_source_line.
3679 * stack.c: Add 'annotate.h' include.
3680 (print_frame_info): Remove check of annotation_level before
3681 calling annotate_source_line.
3682
00df30ae
AB
36832019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3684
3685 * source-cache.c (source_cache::get_plain_source_lines): Use
3686 open_source_file_with_line_charpos instead of just
3687 open_source_file, remove call to find_source_lines.
3688 (source_cache::get_source_lines): Likewise.
3689 * source.c (find_source_lines): Make static.
3690 (get_filename_and_charpos): Renamed into...
3691 (open_source_file_with_line_charpos): ..this along with changes to
3692 return a scoped_fd, and some other minor clean ups.
3693 (identify_source_line): Use open_source_file_with_line_charpos.
3694 (search_command_helper): Use open_source_file_with_line_charpos
3695 instead of just open_source_file, remove call to
3696 find_source_lines.
3697 * source.h (open_source_file_with_line_charpos): Declare new
3698 function.
3699 (find_source_lines): Delete declaration.
3700
afda45a2
AB
37012019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * source.c (get_filename_and_charpos): Remove fullname
3704 parameter.
3705 (identify_source_line): Update call to get_filename_and_charpos.
3706
0735b091
TT
37072019-06-14 Tom Tromey <tromey@adacore.com>
3708
3709 PR gdb/24502:
3710 * ui-style.h (skip_ansi_escape): Update comment.
3711 * ui-file.h (class no_terminal_escape_file): New class.
3712 * ui-file.c (no_terminal_escape_file::write)
3713 (no_terminal_escape_file::puts): New methods.
3714 * cli/cli-logging.c (handle_redirections): Use
3715 no_terminal_escape_file.
3716
52ce35e2
TT
37172019-06-14 Tom Tromey <tromey@adacore.com>
3718
3719 * NEWS: Move convenience variable news above Python news.
3720
73cc7272
TT
37212019-06-14 Tom Tromey <tom@tromey.com>
3722
3723 * gnulib: Move directory to top-level.
3724 * configure.ac: Don't configure gnulib.
3725 * configure: Rebuild.
3726 * common/common-defs.h: Use new path to gnulib.
3727 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3728 (GNULIB_H): Remove.
3729 (INCGNU): Look in new gnulib location.
3730 (HFILES_NO_SRCDIR): Remove gnulib files.
3731 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3732 (generated_files): Remove GNULIB_H.
3733 ($(LIBGNU), all-lib): Remove targets.
3734 (distclean): Don't mention GNULIB_BUILDDIR.
3735 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3736
f5686554
TT
37372019-06-14 Tom Tromey <tromey@adacore.com>
3738
3739 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3740 Warn if symbol file does not provide any symbols.
3741
a0c1ffed
TT
37422019-06-14 Tom Tromey <tromey@adacore.com>
3743
3744 * source.c (find_and_open_source): Respect basenames_may_differ.
3745
7c39e397
AB
37462019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3747
3748 * annotate.c (annotate_breakpoints_invalid): Make use of
3749 scoped_restore_terminal_state.
3750 (annotate_frames_invalid): Likewise.
3751
f411722c
TT
37522019-06-14 Tom Tromey <tromey@adacore.com>
3753
3754 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3755 allow assignment to an internalvar.
3756
4268ec18
TT
37572019-06-14 Tom Tromey <tromey@adacore.com>
3758
3759 * ada-lex.l: Allow "_" in attribute names.
3760
abdb711e
TT
37612019-06-14 Tom Tromey <tromey@adacore.com>
3762
3763 PR gdb/24653:
3764 * regcache.c (registers_changed): Don't call alloca.
3765 * top.c (execute_command): Don't call alloca.
3766
4c048731
PA
37672019-06-13 Pedro Alves <palves@redhat.com>
3768
3769 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3770 'expression'. When parsing an expression, error out if there's
3771 junk after "unlimited".
3772 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3773 (do_set_command): Adjust calls to is_unlimited_literal.
3774
66eb1ed3
PA
37752019-06-13 Pedro Alves <palves@redhat.com>
3776
3777 * compile/compile.c (make_compile_options_def_group): Add braces
3778 around array_view initializer.
3779 * thread.c (make_thread_apply_all_options_def_group)
3780 (make_thread_apply_all_options_def_group): Likewise.
3781
3345721a
PA
37822019-06-13 Pedro Alves <palves@redhat.com>
3783
3784 * NEWS (New commands): Mention "maint test-options
3785 require-delimiter", "maint test-options unknown-is-error", "maint
3786 test-options unknown-is-operand" and "maint show
3787 test-options-completion-result".
3788 (New command options, command completion): New section.
3789 (Completion improvements): New section.
3790 Mention that you can abbreviate "unlimited".
3791
6206060d
PA
37922019-06-13 Pedro Alves <palves@redhat.com>
3793
3794 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3795 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3796 * unittests/cli-utils-selftests.c (test_parse_flags)
3797 (test_parse_flags_qcs): Delete.
3798 (test_cli_utils): Don't call deleted functions.
3799
6665660a
PA
38002019-06-13 Pedro Alves <palves@redhat.com>
3801
3802 * thread.c: Include "cli/cli-option.h".
3803 (tp_array_compar_ascending): Global.
3804 (tp_array_compar): Delete function.
3805 (tp_array_compar_ascending, tp_array_compar_descending): New
3806 functions.
3807 (ascending_option_def, qcs_flag_option_def)
3808 (thr_qcs_flags_option_defs)
3809 (make_thread_apply_all_options_def_group)
3810 (make_thread_apply_options_def_group): New.
3811 (thread_apply_all_command): Use gdb::option::process_options.
3812 (thread_apply_command_completer)
3813 (thread_apply_all_command_completer): New.
3814 (thread_apply_command): Use gdb::option::process_options.
3815 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3816 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3817 to generate help text of "thread apply". Adjust "taas"'s help.
3818 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3819 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3820
f7e13587
PA
38212019-06-13 Pedro Alves <palves@redhat.com>
3822
3823 * thread.c (thread_apply_command): Check for invalid TID with
3824 isdigit instead of !isalpha.
3825
5d707134
PA
38262019-06-13 Pedro Alves <palves@redhat.com>
3827
3828 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3829 (validate_flags_qcs): New.
3830 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3831 (validate_flags_qcs): Declare.
3832 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3833 (make_frame_apply_options_def_group): New.
3834 (frame_apply_command_count): Process options with
3835 gdb::option::process_options.
3836 (frame_apply_completer): New.
3837 (frame_apply_level_completer, frame_apply_all_completer)
3838 (frame_apply_completer): New.
3839 (_initialize_stack): Update help of "frame apply", "frame apply
3840 level", "frame apply all" and "faas" to mention supported options
3841 and install command completers.
3842 * stack.h (frame_apply_all_completer): Declare.
3843 * thread.c: Include "stack.h".
3844 (tfaas_command): Add "--".
3845 (_initialize_thread): Update help "tfaas" to mention supported
3846 options and install command completer.
3847
272d4594
PA
38482019-06-13 Pedro Alves <palves@redhat.com>
3849
3850 * completer.c (complete_nested_command_line): New.
3851 (gdb_completion_word_break_characters_throw): Add assertion.
3852 * completer.h (complete_nested_command_line): Declare.
3853
90a1ef87
PA
38542019-06-13 Pedro Alves <palves@redhat.com>
3855
3856 * stack.c (parse_backtrace_qualifiers): New.
3857 (backtrace_command): Use it.
3858 (backtrace_command_completer): Complete on qualifiers.
3859
d4c16835
PA
38602019-06-13 Pedro Alves <palves@redhat.com>
3861
3862 * frame.c: Include "cli/cli-option.h.
3863 (user_set_backtrace_options): New.
3864 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3865 Delete.
3866 (get_prev_frame): Adjust.
3867 (boolean_option_def, uinteger_option_def)
3868 (set_backtrace_option_defs): New.
3869 (_initialize_frame): Adjust and use
3870 gdb::option::add_setshow_cmds_for_options to install "set
3871 backtrace past-main" and "set backtrace past-entry".
3872 * frame.h: Include "cli/cli-option.h".
3873 (struct frame_print_options): Forward declare.
3874 (print_frame_arguments_all, print_frame_arguments_scalars)
3875 (print_frame_arguments_none): Declare.
3876 (print_entry_values): Delete declaration.
3877 (struct frame_print_options, user_frame_print_options): New.
3878 (struct set_backtrace_options): New.
3879 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3880 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3881 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3882 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3883 (list_args_or_locals): Add frame_print_options parameter.
3884 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3885 * python/py-framefilter.c (enumerate_args): Pass down
3886 USER_FRAME_PRINT_OPTIONS.
3887 * stack.c: Include "cli/cli-option.h".
3888 (print_frame_arguments_all, print_frame_arguments_scalars)
3889 (print_frame_arguments_none): Declare.
3890 (print_raw_frame_arguments, print_entry_values): Delete.
3891 (user_frame_print_options): New.
3892 (boolean_option_def, enum_option_def, frame_print_option_defs):
3893 New.
3894 (struct backtrace_cmd_options): New.
3895 (bt_flag_option_def): New.
3896 (backtrace_command_option_defs): New.
3897 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3898 (print_frame_arg, read_frame_arg, print_frame_args)
3899 (print_frame_info, print_frame): Add frame_print_options parameter
3900 and use it.
3901 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3902 (backtrace_command_1): Add frame_print_options and
3903 backtrace_cmd_options parameters and use them.
3904 (make_backtrace_options_def_group): New.
3905 (backtrace_command): Process command options with
3906 gdb::option::process_options.
3907 (backtrace_command_completer): New.
3908 (_initialize_stack): Extend "backtrace"'s help to mention
3909 supported options. Install completer for "backtrace".
3910 Install some settings commands with add_setshow_cmds_for_options.
3911
2daf894e
PA
39122019-06-13 Pedro Alves <palves@redhat.com>
3913
3914 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3915 and that "set/show print raw frame-arguments" are now deprecated.
3916
3917 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3918 command.
3919 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3920 * stack.c (_initialize_stack): Install "set/show print
3921 raw-frame-arguments", and deprecate "set/show print raw
3922 frame-arguments".
3923 * valprint.c (_initialize_valprint): Deprecate "set/show print
3924 raw".
3925
e6ed716c
PA
39262019-06-13 Pedro Alves <palves@redhat.com>
3927
3928 * compile/compile.c (struct compile_options): New.
3929 (compile_flag_option_def, compile_command_option_defs)
3930 (make_compile_options_def_group): New.
3931 (compile_file_command): Handle options with
3932 gdb::option::process_options.
3933 (compile_file_command_completer): New function.
3934 (compile_code_command): Handle options with
3935 gdb::option::process_options.
3936 (compile_code_command_completer): New function.
3937 (_initialize_compiler): Install completers for "compile code" and
3938 "compile file". Mention available options in "compile code" and
3939 "compile code"'s help.
3940 * completer.c (advance_to_completion_word): New, factored out from
3941 ...
3942 (advance_to_expression_complete_word_point): ... this.
3943 (advance_to_filename_complete_word_point): New.
3944 * completer.h (advance_to_filename_complete_word_point): New
3945 declaration.
3946
7d8062de
PA
39472019-06-13 Pedro Alves <palves@redhat.com>
3948
3949 * compile/compile.c: Include "cli/cli-option.h".
3950 (compile_print_value): Scope data pointer is now a
3951 value_print_options pointer; adjust.
3952 (compile_print_command): Process options. Scope data pointer is
3953 now a value_print_options pointer; adjust.
3954 (_initialize_compile): Update "compile print"'s help to include
3955 supported options. Install a completer for "compile print".
3956 * cp-valprint.c (show_vtblprint, show_objectprint)
3957 (show_static_field_print): Delete.
3958 (_initialize_cp_valprint): Don't install "set print
3959 static-members", "set print vtbl", "set print object" here.
3960 * printcmd.c: Include "cli/cli-option.h" and
3961 "common/gdb_optional.h".
3962 (print_command_parse_format): Rework to fill in a
3963 value_print_options instead of a format_data.
3964 (print_value): Change parameter type from format_data pointer to
3965 value_print_options reference. Adjust.
3966 (print_command_1): Process options. Adjust to pass down a
3967 value_print_options.
3968 (print_command_completer): New.
3969 (_initialize_printcmd): Install print_command_completer as
3970 handle_brkchars completer for the "print" command. Update
3971 "print"'s help to include supported options.
3972 * valprint.c: Include "cli/cli-option.h".
3973 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3974 here from cp-valprint.c.
3975 (boolean_option_def, uinteger_option_def)
3976 (value_print_option_defs, make_value_print_options_def_group):
3977 New. Use gdb::option::add_setshow_cmds_for_options to install
3978 "set print elements", "set print null-stop", "set print repeats",
3979 "set print pretty", "set print union", "set print array", "set
3980 print address", "set print symbol", "set print array-indexes".
3981 * valprint.h: Include <string> and "cli/cli-option.h".
3982 (make_value_print_options_def_group): Declare.
3983 (print_value): Change parameter type from format_data pointer to
3984 value_print_options reference.
3985 (print_command_completer): Declare.
3986
9d0faba9
PA
39872019-06-13 Pedro Alves <palves@redhat.com>
3988
3989 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3990 (COMMON_SFILES): Add maint-test-settings.c.
3991 * cli/cli-decode.c (boolean_enums): New global, factored out from
3992 ...
3993 (add_setshow_boolean_cmd): ... here.
3994 * cli/cli-decode.h (boolean_enums): Declare.
3995 * cli/cli-option.c: New file.
3996 * cli/cli-option.h: New file.
3997 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3998 factored out from ...
3999 (parse_cli_boolean_value(const char *)): ... this.
4000 (is_unlimited_literal): Change parameter type to pointer to
4001 pointer. Adjust and advance ARG pointer.
4002 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4003 (parse_cli_var_enum): New, factored out from ...
4004 (do_set_command): ... this. Adjust.
4005 * cli/cli-setshow.h (parse_cli_boolean_value)
4006 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4007 (parse_cli_var_enum): Declare.
4008 * cli/cli-utils.c: Include "cli/cli-option.h".
4009 (get_ulongest): New.
4010 * cli/cli-utils.h (get_ulongest): Declare.
4011 (check_for_argument): New overloads.
4012 * maint-test-options.c: New file.
4013
2c722807
PA
40142019-06-13 Pedro Alves <palves@redhat.com>
4015
4016 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4017 parse a range if "-" is at the end of the string.
4018
dee7b4c8
PA
40192019-06-13 Pedro Alves <palves@redhat.com>
4020
4021 * cli/cli-setshow.c (parse_auto_binary_operation)
4022 (parse_cli_boolean_value): Don't allow "o".
4023
dca0f6c0
PA
40242019-06-13 Pedro Alves <palves@redhat.com>
4025
4026 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4027 * NEWS: Mention maint test-settings KIND.
4028 * maint-test-settings.c: New file.
4029
597bf39d
PA
40302019-06-13 Pedro Alves <palves@redhat.com>
4031
4032 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4033 completer.
4034 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4035 "set" completers.
4036
48c410fb
PA
40372019-06-13 Pedro Alves <palves@redhat.com>
4038
4039 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4040 after item.
4041
93bcb043
PA
40422019-06-13 Pedro Alves <palves@redhat.com>
4043
4044 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4045
cbba3ecd
PA
40462019-06-13 Pedro Alves <palves@redhat.com>
4047
4048 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4049 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4050 call.
4051 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4052 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4053 calls.
4054 (check_for_argument): Skip spaces after argument.
4055
b9a3f842
PA
40562019-06-13 Pedro Alves <palves@redhat.com>
4057
4058 * thread.c (thread_apply_command): Adjust TID parsing.
4059 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4060 detected before end of string.
4061 (tid_is_in_list): Error out if LIST is invalid.
4062
3844e605
PA
40632019-06-13 Pedro Alves <palves@redhat.com>
4064
4065 * completer.c (complete_line_internal_1): Rewind completion word
4066 point.
4067 (completion_tracker::advance_custom_word_point_by): Change
4068 parameter type to int.
4069 * completer.h (completion_tracker::advance_custom_word_point_by):
4070 Likewise.
4071
00b56dbe
PA
40722019-06-13 Pedro Alves <palves@redhat.com>
4073
4074 * completer.c (advance_to_completion_word): Handle delimiters.
4075
d106773e
PA
40762019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4077
4078 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4079
08f10e02
TT
40802019-06-11 Tom Tromey <tom@tromey.com>
4081
4082 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4083 (xmalloc_failed): Move to alloc.c.
4084 * alloc.c: New file.
4085 * Makefile.in (COMMON_SFILES): Add alloc.c.
4086
1c7fe951
TT
40872019-06-11 Tom Tromey <tom@tromey.com>
4088
4089 * nat/linux-waitpid.c: Don't include server.h.
4090 (linux_debug): Remove.
4091 (my_waitpid): Update.
4092
89549d7f
TT
40932019-06-11 Tom Tromey <tromey@adacore.com>
4094
4095 * infcall.c (_initialize_infcall): Remove trailing newline from
4096 help.
4097 * user-regs.c (_initialize_user_regs): Remove trailing newline
4098 from help.
4099 * typeprint.c (_initialize_typeprint): Remove trailing newline
4100 from help.
4101 * reverse.c (_initialize_reverse): Remove trailing newlines from
4102 help.
4103 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4104 from help.
4105 * language.c (add_set_language_command): Remove trailing newline
4106 from help.
4107 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4108 help.
4109 * disasm.c (_initialize_disasm): Remove trailing newline from
4110 help.
4111 * top.c (init_main): Remove trailing newline from help.
4112 * interps.c (_initialize_interpreter): Remove trailing newline
4113 from help.
4114 * btrace.c (_initialize_btrace): Remove trailing newlines from
4115 help.
4116 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4117 from help.
4118 * python/python.c (_initialize_python): Remove trailing newline
4119 from help.
4120 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4121 help.
4122 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4123 from help. Reformat some text.
4124 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4125 from help.
4126 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4127 newline from help.
4128
86108c13
TT
41292019-06-11 Tom Tromey <tromey@adacore.com>
4130
4131 * darwin-nat.c (darwin_decode_exception_message)
4132 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4133
a7067863
AB
41342019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4135
4136 * valops.c (value_slice): Check for not allocated or not
4137 associated values.
4138
9ab08412
TV
41392019-06-10 Tom de Vries <tdevries@suse.de>
4140
4141 PR gdb/24618
4142 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4143 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4144 invalid.
4145
f19e22e9
TV
41462019-06-10 Tom de Vries <tdevries@suse.de>
4147
4148 PR gdb/24611
4149 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4150 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4151
e99f9db0
TV
41522019-06-10 Tom de Vries <tdevries@suse.de>
4153
4154 PR symtab/24545
4155 * symtab.c (struct demangled_name_entry): Add language field.
4156 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4157 static minimal symbol". Set and use language field.
4158
9bf7038b
TT
41592019-06-10 Tom Tromey <tromey@adacore.com>
4160
4161 * ada-lang.c (_initialize_ada_language): Update help text.
4162
422186a9
TT
41632019-06-10 Tom Tromey <tromey@adacore.com>
4164
4165 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4166 with a newline.
4167 * guile/guile.c (handle_boot_error): Don't end warning with a
4168 newline.
4169 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4170 warning with a newline.
4171 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4172 newline.
4173 (s12z_frame_cache): Likewise.
4174 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4175 a newline.
4176 * solib-svr4.c (disable_probes_interface): Don't end warning with
4177 a newline.
4178 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4179 newline.
4180 * python/python.c (do_finish_initialization): Don't end warning
4181 with a newline.
4182
25ce02ee
TT
41832019-06-10 Tom Tromey <tom@tromey.com>
4184
4185 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4186 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4187 gdbpy_enter.
4188
caa429d8
TT
41892019-06-10 Tom Tromey <tromey@adacore.com>
4190
4191 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4192 data.
4193 (elf_new_init): Don't call stabsread_new_init.
4194 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4195 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4196 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4197
81873cc8
TV
41982019-06-10 Tom de Vries <tdevries@suse.de>
4199
4200 PR symtab/16264
4201 PR symtab/24517
4202 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4203
4fa0265e
РИ
42042019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4205
4206 * source.c (find_and_open_source): Also rewrite relative file
4207 names.
4208
1a3da2cd
AB
42092019-04-26 Amos Bird <amosbird@gmail.com>
4210
4211 * annotate.c (annotate_thread_exited): Add "thread-exited"
4212 annotation.
4213
3847a7bf
TT
42142019-06-06 Tom Tromey <tromey@adacore.com>
4215
4216 * maint.h (class scoped_command_stats): Use
4217 DISABLE_COPY_AND_ASSIGN.
4218 <print_time>: New method.
4219 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4220 print_time.
4221 (scoped_command_stats::print_time): New method.
4222
312617a3
AB
42232019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4224
4225 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4226 instructions of lengths 6 or 8 bytes.
4227
b02f78f9
PA
42282019-06-04 Pedro Alves <palves@redhat.com>
4229
4230 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4231
4232 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4233 * breakpoint.c (condition_completer): Likewise.
4234 * cli/cli-dump.c (scan_expression): Likewise.
4235 * common/filestuff.c (mkdir_recursive): Likewise.
4236 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4237 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4238 (gdb_abspath): Likewise.
4239 * compile/compile-cplus-types.c
4240 (compile_cplus_instance::decl_name): Likewise.
4241 * completer.c (complete_explicit_location):
4242 (signal_completer, reg_or_group_completer_1): Likewise.
4243 * cp-support.c (cp_remove_params_if_any): Likewise.
4244 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4245 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4246 * infcmd.c (strip_bg_char): Likewise.
4247 * linespec.c (copy_token_string): Likewise.
4248 * mi/mi-main.c (output_cores): Likewise.
4249 * psymtab.c (psymtab_search_name):
4250 * symfile.c (test_set_ext_lang_command): Likewise.
4251 * target.c (target_fileio_read_stralloc): Likewise.
4252 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4253 * value.c (complete_internalvar): Likewise.
4254
e1f2e1a2
CB
42552019-06-04 Christian Biesinger <cbiesinger@google.com>
4256
4257 Add objfile property to gdb.Type.
d3238f7d
PA
4258 * NEWS: Mention Python API addition.
4259 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4260
e664d728
PW
42612019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4262
4263 * NEWS: Mention the new set|show style [title|highlight].
4264 Mention changes to "show style", "help" and "apropos".
4265
66d8c862
PW
42662019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4267
4268 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4269 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4270 instead of print_help_for_command.
4271 (print_doc_of_command): New function.
4272 (help_list): Add 'apropos -v word' suggestion.
4273 (print_help_for_command): Style the command name using title style.
4274 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4275 (_initialize_cli_cmds): Describe -v in apropos_command help.
4276
9303eb2f
PW
42772019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4278
4279 * cli/cli-style.h (cli_style_option): Add name in constructor,
4280 add m_name class member, add constructor with intensity,
4281 add name class function.
4282 (cli_style_option::add_setshow_commands): Remove name argument.
4283 (highlight_style, title_style): New styles.
4284 * cli/cli-style.c (do_show): New function that shows a style
4285 characteristic styling the style name with itself.
4286 (set_style_name): New function.
4287 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4288 Update all callers according to the changes in cli/cli-style.h.
4289 * utils.h (fputs_highlighted): New function.
4290 * utils.c (fputs_highlighted): Likewise.
4291
e2c52041
PW
42922019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4293
4294 * NEWS: Mention new pipe command and new convenience variables.
4295
947d3946
PW
42962019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4297
4298 * cli/cli-cmds.c (pipe_command): New function.
4299 (_initialize_cli_cmds): Call add_com for pipe_command.
4300 Define | as an alias for pipe.
4301 (exit_status_set_internal_vars): New function.
4302 (shell_escape): Call exit_status_set_internal_vars.
4303 cli/cli-decode.c (find_command_name_length): Recognize | as
4304 a single character command.
4305
b8fd0918
PW
43062019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4307
4308 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4309 top.c (execute_command_to_ui_file): New function, mostly a copy
4310 of execute_command_to_string.
4311 (execute_command_to_string): Implement by calling
4312 execute_command_to_ui_file.
4313
68bb5386
PW
43142019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4315
4316 * top.h (saved_command_line): Remove declaration.
4317 * top.c (previous_saved_command_line, previous_repeat_arguments):
4318 New variables.
4319 (saved_command_line): Make static, define together with other
4320 'repeat variables'.
4321 (dont_repeat): Clear repeat_arguments.
4322 (repeat_previous, get_saved_command_line, save_command_line):
4323 New functions.
4324 (gdb_init): Initialize saved_command_line
4325 and previous_saved_command_line.
4326 * main.c (captured_main_1): Remove saved_command_line initialization.
4327 * event-top.c (handle_line_of_input): Update to use
4328 the new 'repeat' related functions instead of direct access to
4329 saved_command_line.
4330 * command.h (repeat_previous, get_saved_command_line,
4331 save_command_line): New declarations.
4332 (dont_repeat): Add comment.
4333
bfcdb852
TT
43342019-05-30 Tom Tromey <tromey@adacore.com>
4335
4336 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4337 Fix comment.
4338 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4339
0ef209f2
JV
43402019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4341
4342 PR cli/24587
4343 * completer.c (complete): Initialize variable word.
4344
955b06fa
SDJ
43452019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4346
4347 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4348 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4349 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4350 'body' is NULL to the outter 'if', protecting the '!is_define'
4351 situation as well.
4352
fa9c3fa0
TT
43532019-05-29 Tom Tromey <tromey@adacore.com>
4354
4355 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4356 (dwarf_unknown): New function.
4357 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4358 (dwarf_type_encoding_name): Use dwarf_unknown.
4359
4330d61d
TT
43602019-05-29 Tom Tromey <tromey@adacore.com>
4361
4362 PR c++/20020:
4363 * cp-valprint.c (cp_print_value_fields): Call
4364 cp_print_static_field inside "try".
4365
33a6bc35
TT
43662019-05-29 Tom Tromey <tromey@adacore.com>
4367
4368 * inflow.c (struct terminal_info): Add default operator=.
4369 * configure: Rebuild.
4370 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4371 -Wdeprecated-copy-dtor, -Wredundant-move.
4372
000439d5
TT
43732019-05-29 Tom Tromey <tromey@adacore.com>
4374
4375 * NEWS: Add entry.
4376 * infcmd.c (print_return_value_1): Handle finish_print
4377 option.
4378 (show_print_finish): New function.
4379 (_initialize_infcmd): Add "set/show print finish" commands.
4380 * valprint.c (user_print_options): Initialize new member.
4381 * valprint.h (struct value_print_options) <finish_print>: New
4382 member.
4383
c0e70c62
TT
43842019-05-28 Tom Tromey <tromey@adacore.com>
4385
4386 * ada-lang.c (ada_remove_Xbn_suffix)
4387 (find_old_style_renaming_symbol)
4388 (parse_old_style_renaming): Remove.
4389 (ada_find_renaming_symbol): Don't call
4390 find_old_style_renaming_symbol.
4391 (ada_is_renaming_symbol): Rename from
4392 ada_find_renaming_symbol. Remove "block" parameter. Return
4393 bool. Now static.
4394 (ada_read_var_value): Update and simplify.
4395 * ada-exp.y (write_var_or_type): Remove old code.
4396
766f8836
AH
43972019-05-28 Alan Hayward <alan.hayward@arm.com>
4398
4399 * event-top.c: Remove include comment.
4400 * inflow.c (class scoped_ignore_sigttou): Move from here...
4401 * inflow.h (class scoped_ignore_sigttou): ...to here.
4402 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4403 * top.c: Remove include comment.
4404
eb41253a
TT
44052019-05-27 Tom Tromey <tom@tromey.com>
4406
4407 * NEWS: Fix typo.
4408
4ca51187
TT
44092019-05-22 Tom Tromey <tromey@adacore.com>
4410
4411 * target.c (target_follow_exec): Constify parameter.
4412 * target-delegates.c: Rebuild.
4413 * remote.c (remote_target::follow_exec): Constify parameter.
4414 * infrun.c (follow_exec): Constify parameter.
4415 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4416 (target_follow_exec): Likewise.
4417
8fca4da0
AH
44182019-05-22 Alan Hayward <alan.hayward@arm.com>
4419
4420 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4421 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4422
b7060614
AH
44232019-05-22 Alan Hayward <alan.hayward@arm.com>
4424
4425 * NEWS: Add debugredirect and testsuite sections.
4426
0a5954bd
SC
44272019-05-22 Simon Cook <simon.cook@embecosm.com>
4428
4429 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4430 target descriptions using exclusively floating point register name
4431 aliases.
4432
dc42e902
AB
44332019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 PR gdb/18644:
4436 * f-lang.c (build_fortran_types): Handle the case where
4437 gdbarch_floatformat_for_type returns a nullptr.
4438
fb7806c7
TV
44392019-05-21 Tom de Vries <tdevries@suse.de>
4440
4441 PR cli/24587
4442 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4443
34d11c68
AB
44442019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4445
4446 PR gdb/18644:
4447 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4448 16-byte floats.
4449 * i386-tdep.c (i386_floatformat_for_type): Use
4450 floatformats_ia64_quad for the 16-byte floating point component
4451 within a fortran 32-byte complex number.
4452
122cf0f2
AB
44532019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4454
4455 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4456 delete default constructor.
4457 (find_partial_die): Update to return const struct.
4458 (partial_die_parent_scope): Move variable declaration into scope
4459 of its use and change its type to auto.
4460 (guess_partial_die_structure_name): Likewise.
4461 (partial_die_info::fixup): Likewise.
4462
33d0e35a
TT
44632019-05-17 Tom Tromey <tromey@adacore.com>
4464
4465 * source.c (find_and_open_source): Remove cast.
4466
a45575b0
TT
44672019-05-17 Tom Tromey <tromey@adacore.com>
4468
4469 * annotate.c (annotate_source): Make "filename" const.
4470 * annotate.h (annotate_source): Use const.
4471
81f47ac2
AH
44722019-05-17 Alan Hayward <alan.hayward@arm.com>
4473
4474 * disasm.c (set_disassembler_options): Send errors to stderr.
4475
ca1285d1
AH
44762019-05-17 Alan Hayward <alan.hayward@arm.com>
4477
4478 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4479 (cli_interp_base::set_logging): Check debug_redirect.
4480 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4481 * cli/cli-logging.c (debug_redirect): Add static variable.
4482 (pop_output_files): Add default param.
4483 (handle_redirections): Print debug setting.
4484 (show_logging_command): Likewise.
4485 (_initialize_cli_logging): Add debugredirect command.
4486 * interps.c (current_interp_set_logging): Add debug_redirect
4487 parameter.
4488 * interps.h (set_logging): Add debug_redirect parameter.
4489 (current_interp_set_logging): Likewise.
4490 * mi/mi-common.h: Likewise.
4491 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4492
44932019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4494 Tom Tromey <tromey@adacore.com>
4495
4496 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4497 directly.
4498 * cli/cli-interp.h (make_logging_output): Remove declaration.
4499 * cli/cli-logging.c (make_logging_output): Remove function.
4500 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4501 directly.
4502 * ui-file.c (tee_file::tee_file): Remove bools.
4503 (tee_file::~tee_file): Remove deletes.
4504 * ui-file.h (tee_file): Remove bools.
4505
26648588
JV
45062019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4507
4508 * mi/mi-cmds.h (mi_cmd_complete): New function.
4509 * mi/mi-main.c (mi_cmd_complete): Likewise.
4510 * mi/mi-cmds.c: Define new MI command -complete.
4511 * NEWS: Mention new -complete command.
4512
6e035501
JV
45132019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4514
4515 * completer.h (complete): New function.
4516 * completer.c (complete): Likewise.
4517 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4518 function defined in completer.h.
4519
7d0e2ece
JV
45202019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4521
e79be6e5 4522 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4523
fb816e8b
TV
45242019-05-17 Tom de Vries <tdevries@suse.de>
4525
4526 PR gdb/24094
4527 * dwarf2read.c (struct cu_partial_die_info): New struct.
4528 (find_partial_die): Return cu_partial_die_info.
4529 (partial_die_parent_scope, guess_partial_die_structure_name)
4530 (partial_die_info::fixup): Handle new return type of find_partial_die.
4531
677052f2
SDJ
45322019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4533
4534 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4535 "std::string", simplifying the algorithm.
4536
f3da9116
SDJ
45372019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4538
4539 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4540 (stap_static_probe_ops::get_probes): Likewise.
4541
f1bb75ab
SDJ
45422019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4543
4544 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4545 '-')" and "else if".
4546 (stap_parse_single_operand): Join checks for
4547 "gdbarch_stap_parse_special_token_p" and
4548 "gdbarch_stap_parse_special_token" in the same "if" statement.
4549 Invert check when verifying for operation on register
4550 displacement.
4551
3ca58cde
SDJ
45522019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4553
4554 * stap-probe.c (stap_get_opcode): Update comment.
4555 (stap_get_expected_argument_type): Likewise.
4556 (handle_stap_probe): Likewise.
4557
af2d9bee
SDJ
45582019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4559
4560 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4561 return type to 'bool'. Adjust comment. Use 'bool' when
4562 appropriate.
4563 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4564 * stap-probe.c (stap_parse_argument_1): Likewise.
4565 (stap_is_operator): Likewise.
4566 (stap_is_generic_prefix): Likewise.
4567 (stap_is_register_prefix): Likewise.
4568 (stap_is_register_indirection_prefix): Likewise.
4569 (stap_is_integer_prefix): Likewise.
4570 (stap_generic_check_suffix): Likewise.
4571 (stap_check_integer_suffix): Likewise.
4572 (stap_check_register_suffix): Likewise.
4573 (stap_check_register_indirection_suffix): Likewise.
4574 (stap_parse_register_operand): Likewise.
4575 (stap_parse_single_operand): Likewise.
4576 (stap_parse_argument_1): Likewise.
4577 (stap_probe::get_argument_count): Likewise.
4578 (stap_is_operator): Likewise.
4579
61c9c421
TT
45802019-05-16 Tom Tromey <tromey@adacore.com>
4581
4582 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4583 keyword to foreach.
4584
9ddc1af1
SM
45852019-05-15 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * linux-thread-db.c (try_thread_db_load_1): Change return type
4588 to bool.
4589 (try_thread_db_load): Likewise.
4590 (try_thread_db_load_from_pdir_1): Likewise.
4591 (try_thread_db_load_from_pdir): Likewise.
4592 (try_thread_db_load_from_sdir): Likewise.
4593 (try_thread_db_load_from_dir): Likewise.
4594 (thread_db_load_search): Likewise.
4595 (has_libpthread): Likewise.
4596 (thread_db_load): Likewise.
4597
7bede828
SDJ
45982019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4599
4600 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4601 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4602 NULL, and complain/return if that's the case.
4603
c5358db4
JD
46042019-05-15 John Darrington <john@darrington.wattle.id.au>
4605
4606 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4607 (advance, posn, abstract_read_memory): New functions.
4608 [struct mem_read_abstraction]: New struct.
4609 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4610
c408a94f
TT
46112019-05-14 Tom Tromey <tromey@adacore.com>
4612
4613 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4614 value is not lval_memory.
4615
e7bd7fba
TT
46162019-05-14 Tom Tromey <tromey@adacore.com>
4617
4618 * solib.c (info_sharedlibrary_command): Style the file name.
4619
a6d0f249
AH
46202019-05-14 Alan Hayward <alan.hayward@arm.com>
4621
4622 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4623 (aarch64_vnv_type): Likewise.
4624 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4625 * common/tdesc.c: Likewise.
4626 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4627 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4628 * features/aarch64-fpu.xml: Add ieee half view.
4629 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4630 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4631 * gdbtypes.h (struct builtin_type): Likewise.
4632 (struct objfile_type): Likewise.
4633
66b8bb74
SM
46342019-05-12 Paul Naert <paul.naert@polymtl.ca>
4635
4636 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4637 typo.
4638 * location.h (string_to_event_location): Likewise.
4639
21c219fd
JB
46402019-05-11 Joel Brobecker <brobecker@adacore.com>
4641
4642 GDB 8.3 released.
4643
13674803
SM
46442019-05-10 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4647 New variable declaration.
4648 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4649 New variable.
4650 (print_one_breakpoint): Use ui_out::test_flags and new global
4651 variable to compute use_fixed_output.
4652 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4653 Remove.
4654 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4655 (mi_multi_location_breakpoint_output_fixed): Remove.
4656 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4657 new variable.
4658 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4659 fix_multi_location_breakpoint_output flag if version >= 3.
4660 * ui-out.h (enum ui_out_flag)
4661 <fix_multi_location_breakpoint_output>: New enumerator.
4662
a9eac7f9
SM
46632019-05-10 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4666
71bed2db
TT
46672019-05-10 Tom Tromey <tromey@adacore.com>
4668
4669 * ada-lang.c (catch_ada_completer): New function.
4670 (_initialize_ada_language): Use it.
4671
24c54127
TT
46722019-05-10 Tom Tromey <tromey@adacore.com>
4673
4674 * thread.c (print_thread_info): Make "requested_threads" const.
4675 * gdbthread.h (print_thread_info): Make "requested_threads"
4676 const.
4677 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4678 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4679
7a102139
TT
46802019-05-08 Tom Tromey <tom@tromey.com>
4681
4682 * gdbtypes.c (objfile_type_data): Change type.
4683 (objfile_type, _initialize_gdbtypes): Update.
4684
924d79e2
TT
46852019-05-08 Tom Tromey <tom@tromey.com>
4686
4687 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4688 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4689 (_initialize_dwarf2_frame): Update.
4690
4c58e337
TT
46912019-05-08 Tom Tromey <tom@tromey.com>
4692
4693 * objc-lang.c (objc_objfile_data): Change type.
4694 (find_methods): Update.
4695 (_initialize_objc_lang): Remove.
4696
d772d2ab
TT
46972019-05-08 Tom Tromey <tom@tromey.com>
4698
4699 * stabsread.c (rs6000_builtin_type_data): Change type.
4700 (rs6000_builtin_type, _initialize_stabsread): Update.
4701
d11d83f4
TT
47022019-05-08 Tom Tromey <tom@tromey.com>
4703
4704 * mips-tdep.c (mips_pdr_data): Remove.
4705 (_initialize_mips_tdep): Update.
4706
9a73f0ad
TT
47072019-05-08 Tom Tromey <tom@tromey.com>
4708
4709 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4710 (hppa_init_objfile_priv_data, read_unwind_info)
4711 (find_unwind_entry, _initialize_hppa_tdep): Update.
4712
8127a2fa
TT
47132019-05-08 Tom Tromey <tom@tromey.com>
4714
4715 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4716 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4717 on obstack.
4718 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4719
91d3055d
TT
47202019-05-08 Tom Tromey <tom@tromey.com>
4721
4722 * mdebugread.c (basic_type_data): Change type.
4723 (basic_type, _initialize_mdebugread): Update.
4724
31930bd3
TT
47252019-05-08 Tom Tromey <tom@tromey.com>
4726
4727 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4728
bdb3ed9e
TT
47292019-05-08 Tom Tromey <tom@tromey.com>
4730
4731 * nto-tdep.c (nto_inferior_data_reg): Change type.
4732 (nto_inferior_data): Update.
4733 (nto_inferior_data_cleanup, nto_new_inferior_data)
4734 (_initialize_nto_tdep): Remove.
4735 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4736
f37b313d
TT
47372019-05-08 Tom Tromey <tom@tromey.com>
4738
4739 * ada-lang.c (struct ada_inferior_data): Add initializers.
4740 (ada_inferior_data): Change type.
4741 (ada_inferior_data_cleanup): Remove.
4742 (get_ada_inferior_data, ada_inferior_exit)
4743 (struct ada_pspace_data): Add initializers, destructor.
4744 (ada_pspace_data_handle): Change type.
4745 (get_ada_pspace_data): Update.
4746 (ada_pspace_data_cleanup): Remove.
4747
24699405
TT
47482019-05-08 Tom Tromey <tom@tromey.com>
4749
4750 * coffread.c (struct coff_symfile_info): Add initializers.
4751 (coff_objfile_data_key): Move lower. Change type.
4752 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4753 Update.
4754 (coff_free_info): Remove.
4755
d4e05d2f
TT
47562019-05-08 Tom Tromey <tom@tromey.com>
4757
4758 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4759 (fbsd_pspace_data_handle): Move lower. Change type.
4760 (get_fbsd_pspace_data): Update.
4761 (fbsd_pspace_data_cleanup): Remove.
4762 (_initialize_fbsd_tdep): Update.
4763
14ef6690
TT
47642019-05-08 Tom Tromey <tom@tromey.com>
4765
4766 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4767 (get_ada_tasks_pspace_data): Update.
4768 (ada_tasks_pspace_data_cleanup): Remove.
4769 (_initialize_tasks): Update.
4770 (ada_tasks_inferior_data_handle): Change type.
4771 (get_ada_tasks_inferior_data): Update.
4772 (ada_tasks_inferior_data_cleanup): Remove.
4773 (struct ada_tasks_pspace_data): Add initializers.
4774
814cf43a
TT
47752019-05-08 Tom Tromey <tom@tromey.com>
4776
4777 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4778 * symfile-debug.c (debug_sym_get_probes): Change type.
4779 * stap-probe.c (handle_stap_probe):
4780 (stap_static_probe_ops::get_probes): Change type.
4781 * probe.h (class static_probe_ops) <get_probes>: Change type.
4782 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4783 (parse_probes_in_pspace): Update.
4784 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4785 Update.
4786 (any_static_probe_ops::get_probes): Change type.
4787 * elfread.c (elfread_data): New typedef.
4788 (probe_key): Change type.
4789 (elf_get_probes): Likewise. Update.
4790 (probe_key_free): Remove.
4791 (_initialize_elfread): Update.
4792 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4793 Change type.
4794 (dtrace_process_dof_probe, dtrace_process_dof)
4795 (dtrace_static_probe_ops::get_probe): Change type.
4796
02dc647e
TT
47972019-05-08 Tom Tromey <tom@tromey.com>
4798
4799 * xcoffread.c (struct xcoff_symfile_info): Rename from
4800 coff_symfile_info. Add initializers.
4801 (xcoff_objfile_data_key): Move lower. Change type.
4802 (XCOFF_DATA): Rewrite.
4803 (xcoff_free_info): Remove.
4804 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4805 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4806 (xcoff_initial_scan): Update.
4807
09232438
TT
48082019-05-08 Tom Tromey <tom@tromey.com>
4809
4810 * solib-svr4.c (struct svr4_info): Add initializers and
4811 destructor.
4812 <probes_table>: Now an htab_up.
4813 (solib_svr4_pspace_data): Change type.
4814 (free_probes_table): Simplify.
4815 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4816 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4817 (probes_table_remove_objfile_probes, register_solib_event_probe)
4818 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4819 (_initialize_svr4_solib): Update.
4820
7b4a314f
TT
48212019-05-08 Tom Tromey <tom@tromey.com>
4822
4823 * remote.c (remote_pspace_data): Change type.
4824 (remote_pspace_data_cleanup): Remove.
4825 (get_remote_exec_file, set_pspace_remote_exec_file)
4826 (_initialize_remote): Update.
4827
51d3063a
TT
48282019-05-08 Tom Tromey <tom@tromey.com>
4829
4830 * breakpoint.c (breakpoint_objfile_key): Change type.
4831 (get_breakpoint_objfile_data): Update.
4832 (free_breakpoint_objfile_data): Remove.
4833 (_initialize_breakpoint): Update.
4834
89fb8848
TT
48352019-05-08 Tom Tromey <tom@tromey.com>
4836
4837 * linux-tdep.c (struct linux_info): Add initializers.
4838 (linux_inferior_data): Move. Change type.
4839 (invalidate_linux_cache_inf): Update.
4840 (linux_inferior_data_cleanup): Remove.
4841 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4842
e9b89e2d
TT
48432019-05-08 Tom Tromey <tom@tromey.com>
4844
4845 * auxv.c (auxv_inferior_data): Move. Change type.
4846 (auxv_inferior_data_cleanup): Remove.
4847 (invalidate_auxv_cache_inf): Rewrite.
4848 (get_auxv_inferior_data, _initialize_auxv): Update.
4849
8c42777c
TT
48502019-05-08 Tom Tromey <tom@tromey.com>
4851
4852 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4853 (symfile_debug_objfile_data_key): Change type.
4854 (symfile_debug_installed, debug_qf_has_symbols)
4855 (debug_qf_find_last_source_symtab)
4856 (debug_qf_forget_cached_source_info)
4857 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4858 (debug_qf_print_stats, debug_qf_dump)
4859 (debug_qf_expand_symtabs_for_function)
4860 (debug_qf_expand_all_symtabs)
4861 (debug_qf_expand_symtabs_with_fullname)
4862 (debug_qf_map_matching_symbols)
4863 (debug_qf_expand_symtabs_matching)
4864 (debug_qf_find_pc_sect_compunit_symtab)
4865 (debug_qf_map_symbol_filenames)
4866 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4867 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4868 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4869 (debug_sym_read_linetable, debug_sym_relocate): Update.
4870 (symfile_debug_free_objfile): Remove.
4871 (install_symfile_debug_logging, _initialize_symfile_debug):
4872 Update.
4873
5bfd760d
TT
48742019-05-08 Tom Tromey <tom@tromey.com>
4875
4876 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4877 allocate_on_obstack.
4878 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4879 (get_dwarf2_per_objfile): Update.
4880 (set_dwarf2_per_objfile): Remove.
4881 (dwarf2_has_info, dwarf2_get_section_info): Update.
4882 (dwarf2_free_objfile): Remove.
4883 (_initialize_dwarf2_read): Update.
4884
e85e19b4
TT
48852019-05-08 Tom Tromey <tom@tromey.com>
4886
4887 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4888 initializers.
4889 <unsupported_script_warning_printed,
4890 script_not_found_warning_printed>: Now bool.
4891 (auto_load_pspace_data): Change type.
4892 (~auto_load_pspace_info): Rename from
4893 auto_load_pspace_data_cleanup.
4894 (get_auto_load_pspace_data, init_loaded_scripts_info)
4895 (clear_section_scripts, maybe_print_unsupported_script_warning)
4896 (maybe_print_script_not_found_warning, _initialize_auto_load):
4897 Update.
4898
f6aa7436
TT
48992019-05-08 Tom Tromey <tom@tromey.com>
4900
4901 * objfiles.c (objfile_pspace_info): Add destructor and
4902 initializers.
4903 (objfiles_pspace_data): Change type.
4904 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4905 (get_objfile_pspace_data): Update.
4906 (objfiles_bfd_data): Change type.
4907 (get_objfile_bfd_data): Update.
4908 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4909
6ae614f6
TT
49102019-05-08 Tom Tromey <tom@tromey.com>
4911
4912 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4913 Change type.
4914 (get_catch_syscall_inferior_data): Update.
4915 (catch_syscall_inferior_data_cleanup): Remove.
4916 (_initialize_break_catch_syscall): Update.
4917
6509b8eb
TT
49182019-05-08 Tom Tromey <tom@tromey.com>
4919
4920 * inflow.c (struct terminal_info): Add destructor and
4921 initializers.
4922 (inflow_inferior_data): Change type.
4923 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4924 (get_inflow_inferior_data, inflow_inferior_exit)
4925 (swap_terminal_info, _initialize_inflow): Update.
4926
35632941
TT
49272019-05-08 Tom Tromey <tom@tromey.com>
4928
4929 * target-dcache.c (target_dcache_cleanup): Remove.
4930 (target_dcache_aspace_key): Change type.
4931 (target_dcache_init_p, target_dcache_invalidate)
4932 (target_dcache_get, target_dcache_get_or_init)
4933 (_initialize_target_dcache): Update.
4934 * dcache.h (struct dcache_deleter): New.
4935
3017b94d
TT
49362019-05-08 Tom Tromey <tom@tromey.com>
4937
4938 * symtab.c (struct symbol_cache): Add destructor and
4939 initializers.
4940 (symbol_cache_key): Move. Change type.
4941 (make_symbol_cache, free_symbol_cache): Remove.
4942 (get_symbol_cache): Update.
4943 (symbol_cache_cleanup): Remove.
4944 (ALL_PSPACES, symbol_cache_flush)
4945 (maintenance_print_symbol_cache)
4946 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4947 Update.
4948
a32ad8c5
TT
49492019-05-08 Tom Tromey <tom@tromey.com>
4950
4951 * symtab.c (struct main_info): Add destructor and initializers.
4952 (main_progspace_key): Move. Change type.
4953 (get_main_info): Update.
4954 (main_info_cleanup): Remove.
4955 (_initialize_symtab): Update.
4956
5f6e90a0
TT
49572019-05-08 Tom Tromey <tom@tromey.com>
4958
4959 * registry.h (DECLARE_REGISTRY): Define the _key class.
4960
1bd0c6e4
AB
49612019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4962
4963 * NEWS: Merge two 'New commands' sections.
4964
2228ef77
XR
49652019-05-08 Joel Brobecker <brobecker@adacore.com>
4966
4967 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4968 parameter and use Ada language definition instead.
4969 (ada_val_print_ptr): Remove unused language parameter.
4970 (ada_val_print_num): Remove language parameter and use Ada language
4971 definition instead.
4972 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4973 parameter.
4974 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4975 parameter and use Ada language definition instead.
4976 (ada_val_print_1): Update all ada_val_print_xxx calls.
4977 Remove language parameter.
4978 (ada_val_print): Update ada_val_print_1 call.
4979
60fcc1c3
TT
49802019-05-08 Tom Tromey <tromey@adacore.com>
4981
4982 * remote.c (remote_hw_watchpoint_limit)
4983 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4984 Now static.
4985
ed2b7c17
TT
49862019-05-08 Tom Tromey <tromey@adacore.com>
4987
4988 * maint.c (_initialize_maint_cmds): Move initialization code to
4989 remote.c.
4990 (watchdog, show_watchdog): Move to remote.c.
4991 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4992 "watchdog" static.
4993 (_initialize_remote): Move initialization code from maint.c.
4994 * defs.h (watchdog): Don't declare.
4995
b0be6c91
TT
49962019-05-08 Tom Tromey <tromey@adacore.com>
4997
4998 * tui/tui-interp.c: Include main.h.
4999 * interps.c: Include main.h.
5000 * main.h (interpreter_p): Declare.
5001 * defs.h (interpreter_p): Don't declare.
5002
587ee17b
TT
50032019-05-08 Tom Tromey <tromey@adacore.com>
5004
5005 * dwarf2loc.c: Include dwarf2read.h.
5006 * defs.h (read_unsigned_leb128): Don't declare.
5007 * dwarf2read.h (read_unsigned_leb128): Declare.
5008
ca1df239
TT
50092019-05-08 Tom Tromey <tromey@adacore.com>
5010
5011 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5012 method.
5013
99f20f08
TT
50142019-05-08 Tom Tromey <tromey@adacore.com>
5015
5016 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5017 when no wrap column is set.
5018
80e55b13
TT
50192019-05-08 Tom Tromey <tromey@adacore.com>
5020
5021 * c-lang.c (c_get_string): Handle non-C-style arrays.
5022
9d3421af
TT
50232019-05-08 Tom Tromey <tromey@adacore.com>
5024
5025 * typeprint.c (print_offset_data::update): Print the bit offset,
5026 not the number of bits remaining.
5027
844333e2
TT
50282019-05-08 Tom Tromey <tromey@adacore.com>
5029
5030 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5031 padding at end of comment.
5032
988915ee
TT
50332019-05-08 Tom Tromey <tromey@adacore.com>
5034
5035 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5036 Compare main types.
5037
26bfd823
TT
50382019-05-06 Tom Tromey <tom@tromey.com>
5039
5040 * common/scoped_mmap.c: Include common-defs.h.
5041 * common/scoped_mmap.h: Don't include config.h.
5042
89055eaa
TT
50432019-05-04 Tom Tromey <tom@tromey.com>
5044
5045 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5046 (struct aarch64_call_info): Add initializers.
5047 <si>: Now a std::vector.
5048 (pass_on_stack, aarch64_push_dummy_call): Update.
5049
5da01df5
TT
50502019-05-04 Simon Marchi <simon.marchi@efficios.com>
5051 Tom Tromey <tom@tromey.com>
5052
5053 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5054 (ppc_threads): Now a std::vector. Now static.
5055 (hwdebug_find_thread_points_by_tid)
5056 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5057 Update.
5058
fbdf05a1
TT
50592019-05-04 Tom Tromey <tom@tromey.com>
5060
5061 * arc-tdep.c (arc_tdesc_init): Return bool.
5062
06d16ec9
TT
50632019-05-04 Tom Tromey <tom@tromey.com>
5064
5065 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5066 Use gdb_assert_not_reached.
5067
9c056022
TT
50682019-05-04 Tom Tromey <tom@tromey.com>
5069
5070 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5071 "false".
5072
fa9c2a59
TT
50732019-05-04 Tom Tromey <tom@tromey.com>
5074
5075 * arc-tdep.c (arc_tdesc_init): Use bool.
5076
e2eb806a
TT
50772019-05-04 Tom Tromey <tom@tromey.com>
5078
5079 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5080
6fe87677
TT
50812019-05-04 Tom Tromey <tom@tromey.com>
5082
5083 * cli/cli-cmds.c (valid_command_p): Return bool.
5084
7f008c9e
TT
50852019-05-04 Tom Tromey <tom@tromey.com>
5086
5087 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5088 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5089
b6484282
RT
50902019-05-04 Raul Tambre <raul@tambre.ee>
5091
5092 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5093 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5094 operator for comparison.
5095
af97b416
TT
50962019-05-04 Tom Tromey <tom@tromey.com>
5097
5098 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5099 (lookup_partial_symbol, print_partial_symbols)
5100 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5101 (psymbol_compare): Update.
5102 (add_psymbol_to_bcache): Clear the entire psymbol.
5103 (maintenance_check_psymtabs): Update.
5104 * psympriv.h (struct partial_symbol): Don't derive from
5105 general_symbol_info.
5106 <obj_section, unrelocated_address, address,
5107 set_unrelocated_address>: Update.
5108 <ginfo>: New member.
5109 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5110 (debug_names::write_psymbols): Update.
5111
9d6d4be8
TV
51122019-05-04 Tom de Vries <tdevries@suse.de>
5113
5114 * contrib/cc-with-tweaks.sh: Support -n arg.
5115
66452beb
PW
51162019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5117
5118 * corelow.c (core_target::detach): Ensure frame cache and
5119 register caches are cleared.
5120 inferior.c (exit_inferior_1): Likewise.
5121
bde09ab7
TT
51222019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5123 Tom Tromey <tom@tromey.com>
5124
5125 * dictionary.c (collate_pending_symbols_by_language): Remove
5126 "struct" from foreach.
5127 * symtab.c (lookup_global_symbol_from_objfile)
5128 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5129 foreach.
5130 * ser-tcp.c (net_open): Remove "struct" from foreach.
5131 * objfiles.c (objfile_relocate, objfile_rebase)
5132 (objfile_has_symbols): Remove "struct" from foreach.
5133 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5134 from foreach.
5135 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5136 foreach.
5137 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5138 "struct" from foreach.
5139 * ada-lang.c (create_excep_cond_exprs)
5140 (ada_exception_catchpoint_cond_string): Remove "struct" from
5141 foreach.
5142
222a8d25
TT
51432019-05-03 Tom Tromey <tromey@adacore.com>
5144
5145 * ada-exp.y (convert_char_literal): Check suffix of each
5146 enumerator.
5147
fcd60b84
DP
51482019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5149
5150 PR ada/21406:
5151 * ada-exp.y (yywrap): Don't define.
5152 * ada-lex.l (%option): Add noyywrap
5153 (yywrap): Remove.
5154
5f2459c2
EZ
51552019-05-03 Eli Zaretskii <eliz@gnu.org>
5156
353ea2d1
EZ
5157 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5158 _WIN32_WINNT to the XP level, unless already defined to a higher
5159 level.
5160
5161 * unittests/parse-connection-spec-selftests.c:
5162 * ser-tcp.c:
5163 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5164 override.
5165
5f2459c2
EZ
5166 * symfile.c (find_separate_debug_file): Remove colon from the
5167 drive spec of DOS/Windows file names of the target, so that the
5168 file name produced from DEBUGDIR and the target's directory will
5169 be valid on DOS/Windows systems.
5170
80062eb9
AB
51712019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5172
5173 * rust-lang.c (val_print_struct): Handle printing structures
5174 containing strings.
5175
b8c05e85
TT
51762019-05-02 Tom Tromey <tromey@adacore.com>
5177
5178 * valarith.c (_initialize_valarith): Remove.
5179
4504bbde
TT
51802019-05-01 Tom Tromey <tromey@adacore.com>
5181
5182 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5183 bitfields.
5184
d48e62f4
TT
51852019-05-01 Tom Tromey <tromey@adacore.com>
5186
5187 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5188 for big-endian copies.
5189
15f18d14
AT
51902019-04-30 Ali Tamur <tamur@google.com>
5191 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5192 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5193 (read_3_bytes): New function.
5194
ab4ee614
JB
51952019-04-30 Joel Brobecker <brobecker@adacore.com>
5196
5197 * windows-nat.c (main_thread_id): Delete.
5198 (handle_output_debug_string): Replace main_thread_id by
5199 current_event.dwThreadId.
5200 (fake_create_process): Likewise.
5201 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5202 Do not set main_thread_id.
5203 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5204 current_event.dwThreadId.
5205 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5206
8ed5b76e
JB
52072019-04-30 Joel Brobecker <brobecker@adacore.com>
5208
5209 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5210 Use current_event.dwThreadId instead of main_thread_id.
5211
2ff0a947
TT
52122019-04-30 Tom Tromey <tromey@adacore.com>
5213
5214 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5215 (create_excep_cond_exprs): Iterate over program spaces.
5216 (ada_exception_catchpoint_cond_string): Examine all minimal
5217 symbols for exception types.
5218
a776957c
TT
52192019-04-30 Tom Tromey <tromey@adacore.com>
5220
5221 PR c++/24470:
5222 * dwarf2read.c (process_structure_scope): Handle case where type
5223 has template parameters but no symbol was created.
5224
bc68014d
AB
52252019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5226 Chris January <chris.january@arm.com>
5227
5228 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5229 qualifier.
5230 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5231
f1fdc960
AB
52322019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5233
5234 * f-typeprint.c (f_print_type): Update rules for printing
5235 whitespace.
5236 (f_type_print_varspec_suffix): Likewise.
5237
bf7a4de1
AB
52382019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5239 Chris January <chris.january@arm.com>
5240
5241 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5242 function arguments.
5243
bbe75b9d
AB
52442019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5245
5246 * f-lang.c (build_fortran_types): Change name of void type to
5247 lower case.
5248 * f-typeprint.c (f_type_print_base): Print the name of the void
5249 type, rather than a fixed string.
5250 * f-valprint.c (f_decorations): Use lower case void string.
5251
1db455a7
AB
52522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5253 Chris January <chris.january@arm.com>
5254
5255 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5256 types for Fortran.
5257
b6d03bb2
AB
52582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5259 Chris January <chris.january@arm.com>
5260 David Lecomber <david.lecomber@arm.com>
5261
5262 * f-exp.y (BINOP_INTRINSIC): New token.
5263 (exp): New parser rule handling BINOP_INTRINSIC.
5264 (f77_keywords): Add new builtin procedures.
5265 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5266 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5267 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5268 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5269 (print_unop_subexp_f): New function.
5270 (print_binop_subexp_f): New function.
5271 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5272 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5273 (dump_subexp_body_f): Likewise.
5274 (operator_check_f): Likewise.
5275 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5276 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5277
83228e93
AB
52782019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5279
5280 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5281 UNOP_KIND.
5282 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5283 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5284 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5285 (operator_length_f): New fuction.
5286 (print_subexp_f): New function.
5287 (op_name_f): New function.
5288 (dump_subexp_body_f): New function.
5289 (operator_check_f): New function.
5290 (exp_descriptor_f): Replace standard expression handling functions
5291 with new functions.
5292 * gdb/fortran-operator.def: New file.
5293 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5294 * gdb/std-operator.def: Remove UNOP_KIND.
5295
6fdcd7cc
AB
52962019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5297
5298 * std-operator.def: Remove unbalanced, stray double quote
5299 character.
5300
2e62ab40
AB
53012019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5302 Chris January <chris.january@arm.com>
5303 Daniel Everett <daniel.everett@arm.com>
5304 Nick Forrington <nick.forrington@arm.com>
5305 Richard Bunt <richard.bunt@arm.com>
5306
5307 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5308 of depth when printing anonymous structs or unions.
5309 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5310 Don't print either the top-level value, or the children if the
5311 max-depth is exceeded.
5312 (ppscm_print_children): When printing the key of a map, allow one
5313 extra level of depth.
5314 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5315 print either the top-level value, or the children if the max-depth
5316 is exceeded.
5317 (print_children): When printing the key of a map, allow one extra
5318 level of depth.
5319 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5320 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5321 (user_print_options): Initialise max_depth field.
5322 (val_print_scalar_or_string_type_p): New function.
5323 (val_print): Check to see if the max depth has been reached.
5324 (val_print_check_max_depth): Define new function.
5325 (show_print_max_depth): New function.
5326 (_initialize_valprint): Add 'print max-depth' option.
5327 * valprint.h (struct value_print_options) <max_depth>: New field.
5328 (val_print_check_max_depth): Declare new function.
5329 * NEWS: Document new feature.
5330
4be290b2
AB
53312019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5332
5333 * ada-lang.c (ada_language_defn): Initialise new field.
5334 * c-lang.c (c_is_string_type_p): New function.
5335 (c_language_defn): Initialise new field.
5336 (cplus_language_defn): Initialise new field.
5337 (asm_language_defn): Initialise new field.
5338 (minimal_language_defn): Initialise new field.
5339 * c-lang.h (c_is_string_type_p): Declare new function.
5340 * d-lang.c (d_language_defn): Initialise new field.
5341 * f-lang.c (f_is_string_type_p): New function.
5342 (f_language_defn): Initialise new field.
5343 * go-lang.c (go_is_string_type_p): New function.
5344 (go_language_defn): Initialise new field.
5345 * language.c (default_is_string_type_p): New function.
5346 (unknown_language_defn): Initialise new field.
5347 (auto_language_defn): Initialise new field.
5348 * language.h (struct language_defn) <la_is_string_type_p>: New
5349 member variable.
5350 (default_is_string_type_p): Declare new function.
5351 * m2-lang.c (m2_language_defn): Initialise new field.
5352 * objc-lang.c (objc_language_defn): Initialise new field.
5353 * opencl-lang.c (opencl_language_defn): Initialise new field.
5354 * p-lang.c (pascal_is_string_type_p): New function.
5355 (pascal_language_defn): Initialise new field.
5356 * rust-lang.c (rust_is_string_type_p): New function.
5357 (rust_language_defn): Initialise new field.
5358
721b08c6
AB
53592019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5360
5361 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5362 New field.
5363 * ada-lang.c (ada_language_defn): Initialise new field.
5364 * c-lang.c (c_language_defn): Likewise.
5365 (cplus_language_defn): Likewise.
5366 (asm_language_defn): Likewise.
5367 (minimal_language_defn): Likewise.
5368 * d-lang.c (d_language_defn): Likewise.
5369 * f-lang.c (f_language_defn): Likewise.
5370 * go-lang.c (go_language_defn): Likewise.
5371 * language.c (unknown_language_defn): Likewise.
5372 (auto_language_defn): Likewise.
5373 * m2-lang.c (m2_language_defn): Likewise.
5374 * objc-lang.c (objc_language_defn): Likewise.
5375 * opencl-lang.c (opencl_language_defn): Likewise.
5376 * p-lang.c (pascal_language_defn): Likewise.
5377 * rust-lang.c (rust_language_defn): Likewise.
5378
fc913e53
AB
53792019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5380
5381 * ada-lang.c (ada_is_character_type): Change return type to bool.
5382 (ada_is_string_type): Likewise.
5383 * ada-lang.h (ada_is_character_type): Update declaration
5384 (ada_is_string_type): Likewise.
5385
fa731fa0
PW
53862019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5387
5388 Support style in 'frame|thread apply'
5389
5390 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5391 * record.c (record_start, record_stop): Update callers of
5392 execute_command_to_string with false.
5393 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5394 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5395 methods.
5396 (class string_file): New constructor with term_out parameter.
5397 Override methods term_out and can_emit_style_escape. New member
5398 term_out.
5399 (class stdio_file): Override can_emit_style_escape.
5400 (class tee_file): Override term_out and can_emit_style_escape.
5401 * utils.h (can_emit_style_escape): Remove.
5402 * utils.c (can_emit_style_escape): Likewise.
5403 Update all callers of can_emit_style_escape (SOMESTREAM) to
5404 SOMESTREAM->can_emit_style_escape.
5405 * source-cache.c (source_cache::get_source_lines): Likewise.
5406 * stack.c (frame_apply_command_count): Call execute_command_to_string
5407 passing the term_out characteristic of the current gdb_stdout.
5408 * thread.c (thr_try_catch_cmd): Likewise.
5409 * top.c (execute_command_to_string): pass term_out parameter
5410 to construct the string_file for the command output.
5411 * ui-file.c (term_cli_styling): New function (most code moved
5412 from utils.c can_emit_style_escape).
5413 (string_file::string_file, string_file::can_emit_style_escape,
5414 stdio_file::can_emit_style_escape, tee_file::term_out,
5415 tee_file::can_emit_style_escape): New functions.
5416
136afab8
PW
54172019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5418
5419 * NEWS: Mention the new set|show may-call-functions.
5420 * infcall.c (may_call_functions_p): New variable.
5421 (show_may_call_functions_p): New function.
5422 (call_function_by_hand_dummy): Throws an error if not
5423 may-call-functions.
5424 (_initialize_infcall): Call add_setshow_boolean_cmd for
5425 may-call-functions.
5426
725cbb63
KS
54272019-04-25 Keith Seitz <keiths@redhat.com>
5428
5429 PR c++/24367
5430 * cp-support.c (inspect_type): Don't attempt substitutions
5431 of symbol with the same name.
5432
3d1cbb78
TT
54332019-04-25 Tom Tromey <tromey@adacore.com>
5434
5435 PR gdb/24475:
5436 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5437 static.
5438
94aeb44b
TT
54392019-04-25 Tom Tromey <tromey@adacore.com>
5440
5441 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5442 rvalue reference.
5443 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5444 (gdb_xml_parser::parse): Use std::move.
5445 * python/python-internal.h (gdbpy_convert_exception): Take a const
5446 reference.
5447 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5448 std::move.
5449 * python/py-utils.c (gdbpy_convert_exception): Take a const
5450 reference.
5451 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5452 Use std::move.
5453 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5454 Use std::move.
5455 * mi/mi-main.c (mi_print_exception): Take a const reference.
5456 * main.c (handle_command_errors): Take a const reference.
5457 * linespec.c (parse_linespec): Use std::move.
5458 * infcall.c (run_inferior_call): Use std::move.
5459 (call_function_by_hand_dummy): Use std::move.
5460 * exec.c (try_open_exec_file): Use std::move.
5461 * exceptions.h (exception_print, exception_fprintf)
5462 (exception_print_same): Update.
5463 * exceptions.c (print_exception, exception_print)
5464 (exception_fprintf, exception_print_same): Change parameters to
5465 const reference.
5466 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5467 * common/new-op.c: Use std::move.
5468 * common/common-exceptions.h (struct gdb_exception): Add move
5469 constructor.
5470 (struct gdb_exception_error, struct gdb_exception_quit, struct
5471 gdb_quit_bad_alloc): Change constructor to move constructor.
5472 (throw_exception): Change parameter to rvalue reference.
5473 * common/common-exceptions.c (throw_exception): Take rvalue
5474 reference.
5475 * cli/cli-interp.c (safe_execute_command): Use std::move.
5476 * breakpoint.c (insert_bp_location, location_to_sals): Use
5477 std::move.
5478
680d7fd5
TT
54792019-04-25 Tom Tromey <tromey@adacore.com>
5480
5481 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5482 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5483 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5484 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5485 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5486 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5487 guile/scm-value.c: Use unpack.
5488 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5489 gdbscm_gdb_exception.
5490 (gdbscm_throw_gdb_exception): Likewise.
5491 (struct gdbscm_gdb_exception): New.
5492 (unpack): New function.
5493 (gdbscm_wrap): Use unpack.
5494
c6fdd8b2
TT
54952019-04-25 Tom Tromey <tromey@adacore.com>
5496
5497 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5498 (gdb_rl_callback_handler): Use std::move.
5499 * common/common-exceptions.h (struct gdb_exception): Add move
5500 assignment operator.
5501 (throw_exception_sjlj): Change "exception" to const reference.
5502 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5503 (throw_exception_sjlj): Change "exception" to const reference.
5504
cc06b668
TT
55052019-04-25 Tom Tromey <tromey@adacore.com>
5506
5507 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5508 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5509 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5510 Update.
5511 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5512 Update.
5513 * mi/mi-interp.c (mi_interp::exec): Update.
5514 * linespec.c (parse_linespec): Update.
5515 * infcall.c (run_inferior_call): Update.
5516 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5517 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5518 (gdbscm_lookup_global_symbol): Update.
5519 * guile/scm-param.c (gdbscm_parameter_value): Update.
5520 * guile/scm-frame.c (gdbscm_frame_read_register)
5521 (gdbscm_frame_read_var): Update.
5522 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5523 * exec.c (try_open_exec_file): Update.
5524 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5525 (gdb_rl_callback_handler): Update.
5526 * common/common-exceptions.h (exception_none): Don't declare.
5527 * common/common-exceptions.c (exception_none): Don't define.
5528 (struct catcher) <exception>: Update.
5529 * cli/cli-interp.c (safe_execute_command): Update.
5530 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5531
cf532bd1
AT
55322019-04-25 Ali Tamur <tamur@google.com>
5533
5534 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5535 (read_attribute_value): Likewise.
5536 (dwarf2_read_addr_index): Update comment.
5537 (read_str_index): Add DW_FORM_strx.
5538 (dwarf2_string_attr): Likewise.
5539 (dwarf2_const_value_attr): Likewise.
5540 (dump_die_shallow): Likewise.
5541 (dwarf2_fetch_constant_bytes): Likewise.
5542 (skip_form_bytes): Likewise.
5543 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5544
82433e3e
SDJ
55452019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5546
5547 PR corefiles/11608
5548 PR corefiles/18187
5549 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5550 OFFSET. Verify if current mapping contains an ELF header.
5551 (linux_find_memory_regions_full): Adjust call to
5552 dump_mapping_p.
5553
723adb65
SL
55542019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5555 Kang Li <kanglictf@gmail.com>
5556
5557 PR gdb/21600
5558
5559 * dwarf2-frame.c (read_initial_length): Be consistent about using
5560 unsigned representation of length.
5561 (decode_frame_entry_1): Likewise. Check for wraparound of
5562 end pointer as well as buffer overflow.
5563
596179f7
SDJ
55642019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5565
5566 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5567 "vq".
5568
a59240a4
TT
55692019-04-24 Tom Tromey <tromey@adacore.com>
5570
5571 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5572
f872fdbb
AB
55732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5574
5575 * s12z-tdep.c (s12z_unwind_pc): Delete.
5576 (s12z_unwind_sp): Delete.
5577 (s12z_gdbarch_init): Don't register deleted functions with
5578 gdbarch.
5579
b614e6f3
AB
55802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5581
5582 * rl78-tdep.c (rl78_unwind_sp): Delete.
5583 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5584
14faed38
AB
55852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5586
5587 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5588 (xstormy16_unwind_pc): Delete.
5589 (xstormy16_dummy_id): Delete.
5590 (xstormy16_gdbarch_init): Don't register deleted functions with
5591 gdbarch.
5592
541aad8a
AB
55932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5594
5595 * vax-tdep.c (vax_unwind_pc): Delete.
5596 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5597
29222070
AB
55982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5599
5600 * v850-tdep.c (v850_unwind_sp): Delete.
5601 (v850_unwind_pc): Delete.
5602 (v850_dummy_id): Delete.
5603 (v850_gdbarch_init): Don't register deleted functions with
5604 gdbarch.
5605
0f534d76
AB
56062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5607
5608 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5609 (tilegx_unwind_pc): Delete.
5610 (tilegx_unwind_dummy_id): Delete.
5611 (tilegx_gdbarch_init): Don't register deleted functions with
5612 gdbarch.
5613
1ba7b7f9
AB
56142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5615
5616 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5617 (tic6x_dummy_id): Delete.
5618 (tic6x_gdbarch_init): Don't register deleted functions with
5619 gdbarch.
5620
d31f262c
AB
56212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5622
5623 * sparc-tdep.c (sparc_unwind_pc): Delete.
5624 (sparc32_gdbarch_init): Don't register deleted function with
5625 gdbarch.
5626
6d14d64d
AB
56272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5628
5629 * sh-tdep.c (sh_unwind_sp): Delete.
5630 (sh_unwind_pc): Delete.
5631 (sh_dummy_id): Delete.
5632 (sh_gdbarch_init): Don't register deleted functions with
5633 gdbarch.
5634
a40dde9d
AB
56352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5636
5637 * score-tdep.c (score_unwind_sp): Delete.
5638 (score_unwind_pc): Delete.
5639 (score_dummy_id): Delete.
5640 (score_gdbarch_init): Don't register deleted functions with
5641 gdbarch.
5642
47c47d69
AB
56432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5644
5645 * rx-tdep.c (rx_unwind_pc): Delete.
5646 (rx_unwind_sp): Delete.
5647 (rx_dummy_id): Delete.
5648 (rx_gdbarch_init): Don't register deleted functions with
5649 gdbarch. Update comment.
5650
833a4480
AB
56512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5652
5653 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5654 (rs6000_dummy_id): Delete.
5655 (rs6000_gdbarch_init): Don't register deleted functions with
5656 gdbarch.
5657
3f2cef49
AB
56582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5659
5660 * or1k-tdep.c (or1k_dummy_id): Delete.
5661 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5662
96acf884
AB
56632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 * nios2-tdep.c (nios2_dummy_id): Delete.
5666 (nios2_unwind_sp): Delete.
5667 (nios2_gdbarch_init): Don't register deleted functions with
5668 gdbarch.
5669
ca0ab0aa
AB
56702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5671
5672 * nds32-tdep.c (nds32_dummy_id): Delete.
5673 (nds32_unwind_pc): Delete.
5674 (nds32_unwind_sp): Delete.
5675 (nds32_gdbarch_init): Don't register deleted functions with
5676 gdbarch.
5677
c8259044
AB
56782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5679
5680 * msp430-tdep.c (msp430_unwind_pc): Delete.
5681 (msp430_unwind_sp): Delete.
5682 (msp430_dummy_id): Delete.
5683 (msp430_gdbarch_init): Don't register deleted functions with
5684 gdbarch.
5685
27f113c8
AB
56862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5687
5688 * moxie-tdep.c (moxie_unwind_sp): Delete.
5689 (moxie_unwind_pc): Delete.
5690 (moxie_dummy_id): Delete.
5691 (moxie_gdbarch_init): Don't register deleted functions with
5692 gdbarch.
5693
aee6c3cd
AB
56942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5695
5696 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5697 (mn10300_unwind_pc): Delete.
5698 (mn10300_unwind_sp): Delete.
5699 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5700 mn10300_unwind_sp.
5701 (mn10300_frame_unwind_init): Don't register deleted functions with
5702 gdbarch.
5703
8e2b5aea
AB
57042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5705
5706 * mep-tdep.c (mep_unwind_pc): Delete.
5707 (mep_unwind_sp): Delete.
5708 (mep_dummy_id): Delete.
5709 (mep_gdbarch_init): Don't register deleted functions with
5710 gdbarch.
5711
43cf3ede
AB
57122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5713
5714 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5715 (m68hc11_unwind_sp): Delete.
5716 (m68hc11_gdbarch_init): Don't register deleted functions with
5717 gdbarch.
5718
5e79b7bb
AB
57192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * m32r-tdep.c (m32r_unwind_sp): Delete.
5722 (m32r_unwind_pc): Delete.
5723 (m32r_dummy_id): Delete.
5724 (m32r_gdbarch_init): Don't register deleted functions with
5725 gdbarch.
5726
89b268d8
AB
57272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5728
5729 * m32c-tdep.c (m32c_unwind_pc): Delete.
5730 (m32c_unwind_sp): Delete.
5731 (m32c_dummy_id): Delete.
5732 (m32c_gdbarch_init): Don't register deleted functions with
5733 gdbarch.
5734
946c28d2
AB
57352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5736
5737 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5738 (lm32_unwind_pc): Delete.
5739 (lm32_dummy_id): Delete.
5740 (lm32_gdbarch_init): Don't register deleted functions with
5741 gdbarch.
5742
bf12844a
AB
57432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5744
5745 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5746 (iq2000_unwind_pc): Delete.
5747 (iq2000_dummy_id): Delete.
5748 (iq2000_gdbarch_init): Don't register deleted functions with
5749 gdbarch.
5750
ecbc06d2
AB
57512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 * nds32-tdep.c (nds32_type_align): Delete.
5754 (nds32_push_dummy_call): Use type_align instead.
5755
030197b4
AB
57562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 * arm-tdep.c (arm_type_align): Only handle vector override case.
5759 (arm_push_dummy_call): Use type_align.
5760 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5761
b907456c
AB
57622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5763
5764 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5765 case.
5766 (pass_on_stack): Use type_align.
5767 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5768 function.
5769
9e97ba43
TT
57702019-04-23 Tom Tromey <tromey@adacore.com>
5771
5772 * dwarf2read.c (line_header::file_name_at): Remove unused
5773 overload.
5774
6892f601
TV
57752019-04-23 Tom de Vries <tdevries@suse.de>
5776
5777 PR gdb/24438
5778 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5779 invocation.
5780
336d760d
AT
5781
57822019-03-27 Ali Tamur <tamur@google.com>
5783
5784 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5785 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5786 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5787 (dwarf_expr_context::get_addr_index): Likewise
5788 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5789 (symbol_needs_eval_context::get_addr_index): Likewise
5790 (disassemble_dwarf_expression): Add DW_OP_addrx
5791 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5792 (read_cutu_die_from_dwo): Update comment
5793 (skip_one_die): Add DW_FORM_addrx
5794 (read_attribute_value): Likewise
5795 (var_decode_location): Add DW_OP_addrx
5796 (dwarf2_const_value_attr): Add DW_FORM_addrx
5797 (dump_die_shallow): Likewise
5798 (dwarf2_fetch_constant_bytes): Likewise
5799 (decode_locdesc): Add DW_OP_addrx
5800 (skip_form_bytes): Add DW_FORM_addrx
5801
ad9d13f8
AT
58022019-04-22 Ali Tamur <tamur@google.com>
5803
5804 * MAINTAINERS (Write After Approval): Add self.
5805
d70cc3ba
SM
58062019-04-22 Simon Marchi <simon.marchi@efficios.com>
5807
5808 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5809 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5810 (open_symbol_file_object): Likewise.
5811 (svr4_default_sos): Add info parameter.
5812 (svr4_read_so_list): Likewise.
5813 (svr4_current_sos_direct): Adjust functions calls to pass down
5814 info.
5815 (svr4_current_sos_1): Add info parameter.
5816 (svr4_current_sos): Call get_svr4_info, pass info down to
5817 svr4_current_sos_1.
5818 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5819 get_svr4_info.
5820 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5821 get_svr4_info.
5822 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5823 to get_svr4_info.
5824 (probes_table_remove_objfile_probes): Likewise.
5825 (register_solib_event_probe): Add info parameter.
5826 (solist_update_incremental): Pass info parameter down to
5827 svr4_read_so_list.
5828 (disable_probes_interface): Add info parameter.
5829 (svr4_handle_solib_event): Pass current_program_space to
5830 get_svr4_info. Adjust disable_probes_interface cleanup.
5831 (svr4_create_probe_breakpoints): Add info parameter, pass it
5832 down to register_solib_event_probe.
5833 (svr4_create_solib_event_breakpoints): Add info parameter,
5834 pass it down to svr4_create_probe_breakpoints.
5835 (enable_break): Pass info down to
5836 svr4_create_solib_event_breakpoints.
5837 (svr4_solib_create_inferior_hook): Pass current_program_space to
5838 get_svr4_info.
5839 (svr4_clear_solib): Likewise.
5840
7905fc35
PA
58412019-04-22 Pedro Alves <palves@redhat.com>
5842
5843 * solib-svr4.c (svr4_free_objfile_observer): New.
5844 (probe_and_action::objfile): New field.
5845 (probes_table_htab_remove_objfile_probes)
5846 (probes_table_remove_objfile_probes): New functions.
5847 (register_solib_event_probe): Add 'objfile' parameter. Store it
5848 in the new probe_and_action. Don't store the probe in 'lookup'.
5849 (svr4_create_probe_breakpoints): Pass objfile to
5850 register_solib_event_probe.
5851 (_initialize_svr4_solib): Register a free_objfile observer.
5852
fb881986
TT
58532019-04-19 Tom Tromey <tom@tromey.com>
5854
5855 * common/queue.h: Remove.
5856
8732db6c
TT
58572019-04-19 Tom Tromey <tom@tromey.com>
5858
5859 * event-loop.c: Don't include "common/queue.h".
5860
97dfbadd
TT
58612019-04-19 Tom Tromey <tom@tromey.com>
5862
5863 * remote.c (remote_target): Use delete.
5864 * remote-notif.h: Include <list>, not "common/queue.h".
5865 (notif_client_p): Remove typedef.
5866 (remote_notif_state): Add constructor, destructor, initializer.
5867 <notif_queue>: Now a std::list.
5868 (remote_notif_state_xfree): Don't declare.
5869 * remote-notif.c (remote_notif_process, handle_notification)
5870 (remote_notif_state_allocate): Update.
5871 (~remote_notif_state): Rename from remote_notif_state_xfree.
5872
cf250e36
TT
58732019-04-19 Tom Tromey <tom@tromey.com>
5874
5875 * symfile.c (reread_symbols): Update.
5876 * objfiles.c (objfile_register_static_link)
5877 (objfile_lookup_static_link): Update
5878 (~objfile) Don't delete static_links.
5879 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5880
61f4b350
TT
58812019-04-19 Tom Tromey <tom@tromey.com>
5882
5883 * type-stack.h (struct type_stack) <insert>: Constify string.
5884 * type-stack.c (type_stack::insert): Constify string.
5885 * gdbtypes.h (lookup_template_type): Update.
5886 (address_space_name_to_int): Update.
5887 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5888 const.
5889 (lookup_template_type): Make name const.
5890 * c-exp.y: Update rules.
5891 (lex_one_token, classify_name, classify_inner_name)
5892 (c_print_token): Update.
5893 * p-exp.y: Update rules.
5894 (yylex): Update.
5895 * f-exp.y: Update rules.
5896 (yylex): Update.
5897 * d-exp.y: Update rules.
5898 (lex_one_token, classify_name, classify_inner_name): Update.
5899 * parse.c (write_dollar_variable, copy_name): Return std::string.
5900 * parser-defs.h (copy_name): Change return type.
5901 * m2-exp.y: Update rules.
5902 (yylex): Update.
5903 * go-exp.y (lex_one_token): Update.
5904 Update rules.
5905 (classify_unsafe_function, classify_packaged_name)
5906 (classify_name, yylex): Update.
5907
189b8c2e
ST
59082019-04-19 Sergei Trofimovich <siarheit@google.com>
5909
5910 * configure.ac: add --enable-source-highlight switch.
5911 * configure: Regenerate.
5912 * top.c (print_gdb_version): plumb --enable-source-highlight
5913 status to "show configuration".
5914
8ecb59f8
TT
59152019-04-19 Tom Tromey <tromey@adacore.com>
5916
5917 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5918 Check ADA_TYPE_P.
5919 (empty_record, ada_template_to_fixed_record_type_1)
5920 (template_to_static_fixed_type)
5921 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5922 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5923 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5924 macros.
5925
62160ec9
TT
59262019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5927
5928 PR symtab/24423:
5929 * source.c (print_source_lines_base): Advance "iter" when a
5930 control character is seen.
5931
f2ae8bc8
PW
59322019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5933
5934 * inferior.h (struct infcall_suspend_state_deleter):
5935 Catch exception in destructor to avoid crash.
5936
d563b953
PW
59372019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5938
5939 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5940 close to the add_com "shell".
5941
dc34c897
TT
59422019-04-18 Tom Tromey <tromey@adacore.com>
5943
5944 * process-stratum-target.h (class process_stratum_target)
5945 <stratum>: Add "final".
5946
a12e5744
TT
59472019-04-17 Tom Tromey <tromey@adacore.com>
5948
5949 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5950 against nullptr before use.
5951
a7e559cc
AH
59522019-04-17 Alan Hayward <alan.hayward@arm.com>
5953
5954 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5955
c01660c6
AB
59562019-04-17 Jim Wilson <jimw@sifive.com>
5957 Andrew Burgess <andrew.burgess@embecosm.com>
5958
5959 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5960 code read might fail, assume 4-byte breakpoint in that case.
5961
4aa866af
LS
59622019-04-15 Leszek Swirski <leszeks@google.com>
5963
5964 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5965 rather than a hand-rolled POD check when checking for forced MEMORY
5966 classification.
5967
48574d91
AH
59682019-04-15 Alan Hayward <alan.hayward@arm.com>
5969
5970 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5971 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5972 function.
5973 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5974 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5975 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5976 declaration.
5977
4da037ef
AH
59782019-04-15 Alan Hayward <alan.hayward@arm.com>
5979
5980 * aarch64-linux-nat.c
5981 (aarch64_linux_nat_target::thread_architecture): Add override.
5982 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5983 each VQ.
5984
ccb8d7e8
AH
59852019-04-15 Alan Hayward <alan.hayward@arm.com>
5986
5987 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5988
35add35e
AB
59892019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5990
5991 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5992 target types of size 96-bits, add some additional comments, and
5993 check that the builtin type we found was the correct size.
5994
51196bbc
EZ
59952019-04-12 Eli Zaretskii <eliz@gnu.org>
5996
5997 * utils.c (prompt_for_continue): Don't restore the styling at the
5998 end, as applied_style has the wrong value. This fixes styling in
5999 long lists of file names that are interrupted by the "Continue?"
6000 prompt.
6001
62253a61
AB
60022019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6003
6004 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6005 * c-lang.c (c_language_defn): Likewise.
6006 (cplus_language_defn): Likewise.
6007 (asm_language_defn): Likewise.
6008 (minimal_language_defn): Likewise.
6009 * d-lang.c (d_language_defn): Likewise.
6010 * f-lang.c (f_language_defn): Likewise.
6011 * go-lang.c (go_language_defn): Likewise.
6012 * language.c (unknown_language_defn): Likewise.
6013 (auto_language_defn): Likewise.
6014 * language.h (struct language_defn): Remove la_magic field.
6015 (LANG_MAGIC): Delete.
6016 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6017 * objc-lang.c (objc_language_defn): Likewise.
6018 * opencl-lang.c (opencl_language_defn): Likewise.
6019 * p-lang.c (pascal_language_defn): Likewise.
6020 * rust-lang.c (rust_language_defn): Likewise.
6021
a9158a86
AB
60222019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6023
6024 * riscv-tdep.c (riscv_type_align): New function.
6025 (riscv_type_alignment): Delete.
6026 (riscv_arg_location): Use 'type_align'.
6027 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6028
41077b66
AB
60292019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6030
6031 * gdbtypes.c (type_align): A struct with no non-static fields also
6032 has alignment of 1.
6033
9f0272f8
AB
60342019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6035
6036 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6037 component to 0.
6038 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6039 member.
6040 (riscv_struct_info::analyse): New implementation using new
6041 analyse_inner member function.
6042 (riscv_struct_info::field_offset): New member function.
6043 (riscv_struct_info::m_offsets): New member variable.
6044 (riscv_struct_info::analyse_inner): New private member function,
6045 takes the old implementation of riscv_struct_info::analyse but
6046 extended to track field offsets.
6047 (riscv_call_arg_struct): Update the struct folding special cases
6048 to handle cases where empty C++ structs, which are non-zero
6049 length, are found.
6050 (riscv_arg_location): Initialise the length of each location, a
6051 non-zero length now indicates the location is in use.
6052 (riscv_push_dummy_call): Allow for the first location having a
6053 non-zero offset when setting up arguments.
6054 (riscv_return_value): Likewise, but for return values.
6055
02cf60c7
TT
60562019-04-11 Tom Tromey <tromey@adacore.com>
6057
6058 * utils.c (internal_vproblem): Make "msg" const.
6059
68811f8f
AH
60602019-04-11 Alan Hayward <alan.hayward@arm.com>
6061
6062 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6063 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6064 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6065 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6066
3f52fdbc
KB
60672019-04-10 Kevin Buettner <kevinb@redhat.com>
6068
6069 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6070 function.
6071 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6072 of amd64_collect_native_gregset.
6073 (amd64_linux_nat_target::store_registers): Likewise.
6074
e9ad22ee
TT
60752019-04-10 Tom Tromey <tom@tromey.com>
6076
6077 * symtab.c (lookup_global_symbol_from_objfile)
6078 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6079 * objfiles.h (class separate_debug_iterator): New.
6080 (class separate_debug_range): New.
6081 (struct objfile) <separate_debug_objfiles>: New method.
6082 (objfile_separate_debug_iterate): Don't declare.
6083 * objfiles.c (separate_debug_iterator::operator++): Rename from
6084 objfile_separate_debug_iterate.
6085 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6086 iterator.
6087 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6088 iterator.
6089
ee371134
TT
60902019-04-10 Tom Tromey <tom@tromey.com>
6091
6092 * symfile.c (reread_symbols): Remove old comment.
6093 * objfiles.c (free_all_objfiles): Fix a typo.
6094
bf227d61
TT
60952019-04-10 Tom Tromey <tom@tromey.com>
6096
6097 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6098 * minsyms.c (lookup_minimal_symbol): Use foreach.
6099 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6100 (lookup_minimal_symbol_solib_trampoline): Likewise.
6101 * symfile.c (reread_symbols): Use foreach.
6102
8dc433a0
TT
61032019-04-09 Ivan Begert <ivanbegert@gmail.com>
6104 Tom Tromey <tromey@adacore.com>
6105
6106 PR rust/24414:
6107 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6108 (rust_lex_int_test): Change "value" to be LONGEST.
6109 (rust_lex_tests): Add test for long integer literal.
6110
9ab8741a
TT
61112019-04-09 Tom Tromey <tromey@adacore.com>
6112
6113 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6114 to bool.
6115 (extended_remote_target::attach): Update.
6116 (remote_target::remote_notice_new_inferior): Update.
6117 (remote_target::add_current_inferior_and_thread): Update.
6118 * inferior.c (exit_inferior_1): Use "false".
6119 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6120
e242fd12
SM
61212019-04-09 Simon Marchi <simon.marchi@efficios.com>
6122
9ca1957f 6123 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
6124 the "start" command.
6125
2b0c8b01
KB
61262019-04-08 Kevin Buettner <kevinb@redhat.com>
6127
6128 * python/py-inferior.c (infpy_thread_from_thread_handle):
6129 Adjust comments to reflect renaming of thread_from_thread_handle
6130 to thread_from_handle. Adjust keywords. Fix type error message.
6131 (inferior_object_methods): Add thread_from_handle. Retain
6132 thread_from_thread_handle, but mark it as deprecated.
6133
50a82723
KB
61342019-04-08 Kevin Buettner <kevinb@redhat.com>
6135
6136 * gdbthread.h (find_thread_by_handle): Revise declaration.
6137 * thread.c (find_thread_by_handle): Likewise. Adjust
6138 implementation too.
6139 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6140 support for buffer objects as handles.
6141
cf63b016
KB
61422019-04-08 Kevin Buettner <kevinb@redhat.com>
6143
6144 * python/py-infthread.c (thpy_thread_handle): New function.
6145 (thread_object_methods): Register thpy_thread_handle.
6146
3d6c6204
KB
61472019-04-08 Kevin Buettner <kevinb@redhat.com>
6148
6149 * gdbthread.h (thread_to_thread_handle): Declare.
6150 * thread.c (gdbtypes.h): Include.
6151 (thread_to_thread_handle): New function.
6152
6153 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6154 (target_thread_info_to_thread_handle): Declare.
6155 * target.c (target_thread_info_to_thread_handle): New function.
6156 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6157 * target-delegates.c: Regenerate.
6158
6159 * linux-thread-db.c (class thread_db_target): Add method
6160 thread_info_to_thread_handle.
6161 (thread_db_target::thread_info_to_thread_handle): Define.
6162 * remote.c (class remote_target): Add new method
6163 thread_info_to_thread_handle.
6164 (remote_target::thread_info_to_thread_handle): Define.
6165
56be6ea8
PA
61662019-04-08 Pedro Alves <palves@redhat.com>
6167
6168 * common/common-exceptions.c (throw_exception): Don't create
6169 named object to throw; throw directly.
6170 (throw_it): Likewise. Don't initialize gdb_exception::message
6171 here, with new; pass FMT and AP to the ctor instead.
6172 * common/common-exceptions.h: Include <string>.
6173 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6174 const char *, va_list)): New ctor. Use std::make_shared.
6175 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6176 errors)): Delete.
6177 (gdb_exception_error::gdb_exception_error(enum errors, const char
6178 *, va_list)): New.
6179 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6180 Add assertion.
6181 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6182 errors)): Delete.
6183 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6184 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6185 Add assertion.
6186
eedc3f4f
TT
61872019-04-08 Tom Tromey <tom@tromey.com>
6188
6189 * valops.c (value_rtti_indirect_type): Replace throw_exception
6190 with throw.
6191 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6192 with throw.
6193 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6194 throw.
6195 * target.c (target_translate_tls_address): Replace throw_exception
6196 with throw.
6197 * stack.c (frame_apply_command_count): Replace throw_exception
6198 with throw.
6199 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6200 throw.
6201 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6202 with throw.
6203 * rs6000-tdep.c (rs6000_frame_cache)
6204 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6205 * remote.c: Replace throw_exception with throw.
6206 * record-full.c (record_full_message, record_full_wait_1)
6207 (record_full_restore): Replace throw_exception with throw.
6208 * record-btrace.c:
6209 (get_thread_current_frame_id, record_btrace_start_replaying)
6210 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6211 (cmd_record_btrace_start): Replace throw_exception with throw.
6212 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6213 throw.
6214 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6215 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6216 * linespec.c:
6217 (find_linespec_symbols): Replace throw_exception with throw.
6218 * infrun.c (displaced_step_prepare, resume): Replace
6219 throw_exception with throw.
6220 * infcmd.c (post_create_inferior): Replace throw_exception with
6221 throw.
6222 * inf-loop.c (inferior_event_handler): Replace throw_exception
6223 with throw.
6224 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6225 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6226 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6227 (get_prev_frame_always, get_frame_pc_if_available)
6228 (get_frame_address_in_block_if_available, get_frame_language):
6229 Replace throw_exception with throw.
6230 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6231 throw_exception with throw.
6232 * eval.c (fetch_subexp_value, evaluate_var_value)
6233 (evaluate_funcall, evaluate_subexp_standard): Replace
6234 throw_exception with throw.
6235 * dwarf2loc.c (call_site_find_chain)
6236 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6237 Replace throw_exception with throw.
6238 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6239 with throw.
6240 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6241 throw.
6242 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6243 * completer.c (complete_line_internal): Replace throw_exception
6244 with throw.
6245 * compile/compile-object-run.c (compile_object_run): Replace
6246 throw_exception with throw.
6247 * cli/cli-script.c (process_next_line): Replace throw_exception
6248 with throw.
6249 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6250 (btrace_enable, btrace_maint_update_pt_packets): Replace
6251 throw_exception with throw.
6252 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6253 throw_exception with throw.
6254 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6255 throw_exception with throw.
6256 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6257 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6258 * aarch64-tdep.c (aarch64_make_prologue_cache)
6259 (aarch64_make_stub_cache): Replace throw_exception with throw.
6260
26003a20
TT
62612019-04-08 Tom Tromey <tom@tromey.com>
6262
6263 * common/common-exceptions.c (throw_exception): Rename from
6264 throw_exception_cxx. Remove old copy. Make argument const.
6265 (throw_it): Create and throw exception objects directly.
6266 * common/common-exceptions.h (throw_exception): Make argument
6267 const.
6268 (struct gdb_exception_error): Add constructor.
6269 (struct gdb_exception_quit): Add constructor.
6270
d272eb37
TT
62712019-04-08 Tom Tromey <tom@tromey.com>
6272
6273 * common/common-exceptions.h (exception_rethrow): Don't declare.
6274 (TRY_SJLJ): Update comment.
6275 (TRY, CATCH, END_CATCH): Remove.
6276 * common/common-exceptions.c (exception_rethrow): Remove.
6277
230d2906
TT
62782019-04-08 Tom Tromey <tom@tromey.com>
6279
6280 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6281 Remove.
6282 (gdb_exception_error): Rename from
6283 gdb_exception_RETURN_MASK_ERROR.
6284 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6285 (gdb_quit_bad_alloc): Update.
6286 * aarch64-tdep.c: Update.
6287 * ada-lang.c: Update.
6288 * ada-typeprint.c: Update.
6289 * ada-valprint.c: Update.
6290 * amd64-tdep.c: Update.
6291 * arch-utils.c: Update.
6292 * break-catch-throw.c: Update.
6293 * breakpoint.c: Update.
6294 * btrace.c: Update.
6295 * c-varobj.c: Update.
6296 * cli/cli-cmds.c: Update.
6297 * cli/cli-interp.c: Update.
6298 * cli/cli-script.c: Update.
6299 * common/common-exceptions.c: Update.
6300 * common/new-op.c: Update.
6301 * common/selftest.c: Update.
6302 * compile/compile-c-symbols.c: Update.
6303 * compile/compile-cplus-symbols.c: Update.
6304 * compile/compile-object-load.c: Update.
6305 * compile/compile-object-run.c: Update.
6306 * completer.c: Update.
6307 * corelow.c: Update.
6308 * cp-abi.c: Update.
6309 * cp-support.c: Update.
6310 * cp-valprint.c: Update.
6311 * darwin-nat.c: Update.
6312 * disasm-selftests.c: Update.
6313 * dtrace-probe.c: Update.
6314 * dwarf-index-cache.c: Update.
6315 * dwarf-index-write.c: Update.
6316 * dwarf2-frame-tailcall.c: Update.
6317 * dwarf2-frame.c: Update.
6318 * dwarf2loc.c: Update.
6319 * dwarf2read.c: Update.
6320 * eval.c: Update.
6321 * event-loop.c: Update.
6322 * event-top.c: Update.
6323 * exec.c: Update.
6324 * f-valprint.c: Update.
6325 * fbsd-tdep.c: Update.
6326 * frame-unwind.c: Update.
6327 * frame.c: Update.
6328 * gdbtypes.c: Update.
6329 * gnu-v3-abi.c: Update.
6330 * guile/guile-internal.h: Update.
6331 * guile/scm-block.c: Update.
6332 * guile/scm-breakpoint.c: Update.
6333 * guile/scm-cmd.c: Update.
6334 * guile/scm-disasm.c: Update.
6335 * guile/scm-frame.c: Update.
6336 * guile/scm-lazy-string.c: Update.
6337 * guile/scm-math.c: Update.
6338 * guile/scm-param.c: Update.
6339 * guile/scm-ports.c: Update.
6340 * guile/scm-pretty-print.c: Update.
6341 * guile/scm-symbol.c: Update.
6342 * guile/scm-symtab.c: Update.
6343 * guile/scm-type.c: Update.
6344 * guile/scm-value.c: Update.
6345 * i386-linux-tdep.c: Update.
6346 * i386-tdep.c: Update.
6347 * inf-loop.c: Update.
6348 * infcall.c: Update.
6349 * infcmd.c: Update.
6350 * infrun.c: Update.
6351 * jit.c: Update.
6352 * language.c: Update.
6353 * linespec.c: Update.
6354 * linux-fork.c: Update.
6355 * linux-nat.c: Update.
6356 * linux-tdep.c: Update.
6357 * linux-thread-db.c: Update.
6358 * main.c: Update.
6359 * mi/mi-cmd-break.c: Update.
6360 * mi/mi-cmd-stack.c: Update.
6361 * mi/mi-interp.c: Update.
6362 * mi/mi-main.c: Update.
6363 * objc-lang.c: Update.
6364 * p-valprint.c: Update.
6365 * parse.c: Update.
6366 * ppc-linux-tdep.c: Update.
6367 * printcmd.c: Update.
6368 * python/py-arch.c: Update.
6369 * python/py-breakpoint.c: Update.
6370 * python/py-cmd.c: Update.
6371 * python/py-finishbreakpoint.c: Update.
6372 * python/py-frame.c: Update.
6373 * python/py-framefilter.c: Update.
6374 * python/py-gdb-readline.c: Update.
6375 * python/py-inferior.c: Update.
6376 * python/py-infthread.c: Update.
6377 * python/py-lazy-string.c: Update.
6378 * python/py-linetable.c: Update.
6379 * python/py-objfile.c: Update.
6380 * python/py-param.c: Update.
6381 * python/py-prettyprint.c: Update.
6382 * python/py-progspace.c: Update.
6383 * python/py-record-btrace.c: Update.
6384 * python/py-record.c: Update.
6385 * python/py-symbol.c: Update.
6386 * python/py-type.c: Update.
6387 * python/py-unwind.c: Update.
6388 * python/py-utils.c: Update.
6389 * python/py-value.c: Update.
6390 * python/python.c: Update.
6391 * record-btrace.c: Update.
6392 * record-full.c: Update.
6393 * remote-fileio.c: Update.
6394 * remote.c: Update.
6395 * riscv-tdep.c: Update.
6396 * rs6000-aix-tdep.c: Update.
6397 * rs6000-tdep.c: Update.
6398 * rust-exp.y: Update.
6399 * rust-lang.c: Update.
6400 * s390-tdep.c: Update.
6401 * selftest-arch.c: Update.
6402 * solib-dsbt.c: Update.
6403 * solib-frv.c: Update.
6404 * solib-spu.c: Update.
6405 * solib-svr4.c: Update.
6406 * solib.c: Update.
6407 * sparc64-linux-tdep.c: Update.
6408 * stack.c: Update.
6409 * symfile-mem.c: Update.
6410 * symmisc.c: Update.
6411 * target.c: Update.
6412 * thread.c: Update.
6413 * top.c: Update.
6414 * tracefile-tfile.c: Update.
6415 * tui/tui.c: Update.
6416 * typeprint.c: Update.
6417 * unittests/cli-utils-selftests.c: Update.
6418 * unittests/parse-connection-spec-selftests.c: Update.
6419 * valops.c: Update.
6420 * valprint.c: Update.
6421 * value.c: Update.
6422 * varobj.c: Update.
6423 * windows-nat.c: Update.
6424 * x86-linux-nat.c: Update.
6425 * xml-support.c: Update.
6426
a70b8144
TT
64272019-04-08 Tom Tromey <tom@tromey.com>
6428
6429 * xml-support.c: Use C++ exception handling.
6430 * x86-linux-nat.c: Use C++ exception handling.
6431 * windows-nat.c: Use C++ exception handling.
6432 * varobj.c: Use C++ exception handling.
6433 * value.c: Use C++ exception handling.
6434 * valprint.c: Use C++ exception handling.
6435 * valops.c: Use C++ exception handling.
6436 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6437 handling.
6438 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6439 * typeprint.c: Use C++ exception handling.
6440 * tui/tui.c: Use C++ exception handling.
6441 * tracefile-tfile.c: Use C++ exception handling.
6442 * top.c: Use C++ exception handling.
6443 * thread.c: Use C++ exception handling.
6444 * target.c: Use C++ exception handling.
6445 * symmisc.c: Use C++ exception handling.
6446 * symfile-mem.c: Use C++ exception handling.
6447 * stack.c: Use C++ exception handling.
6448 * sparc64-linux-tdep.c: Use C++ exception handling.
6449 * solib.c: Use C++ exception handling.
6450 * solib-svr4.c: Use C++ exception handling.
6451 * solib-spu.c: Use C++ exception handling.
6452 * solib-frv.c: Use C++ exception handling.
6453 * solib-dsbt.c: Use C++ exception handling.
6454 * selftest-arch.c: Use C++ exception handling.
6455 * s390-tdep.c: Use C++ exception handling.
6456 * rust-lang.c: Use C++ exception handling.
6457 * rust-exp.y: Use C++ exception handling.
6458 * rs6000-tdep.c: Use C++ exception handling.
6459 * rs6000-aix-tdep.c: Use C++ exception handling.
6460 * riscv-tdep.c: Use C++ exception handling.
6461 * remote.c: Use C++ exception handling.
6462 * remote-fileio.c: Use C++ exception handling.
6463 * record-full.c: Use C++ exception handling.
6464 * record-btrace.c: Use C++ exception handling.
6465 * python/python.c: Use C++ exception handling.
6466 * python/py-value.c: Use C++ exception handling.
6467 * python/py-utils.c: Use C++ exception handling.
6468 * python/py-unwind.c: Use C++ exception handling.
6469 * python/py-type.c: Use C++ exception handling.
6470 * python/py-symbol.c: Use C++ exception handling.
6471 * python/py-record.c: Use C++ exception handling.
6472 * python/py-record-btrace.c: Use C++ exception handling.
6473 * python/py-progspace.c: Use C++ exception handling.
6474 * python/py-prettyprint.c: Use C++ exception handling.
6475 * python/py-param.c: Use C++ exception handling.
6476 * python/py-objfile.c: Use C++ exception handling.
6477 * python/py-linetable.c: Use C++ exception handling.
6478 * python/py-lazy-string.c: Use C++ exception handling.
6479 * python/py-infthread.c: Use C++ exception handling.
6480 * python/py-inferior.c: Use C++ exception handling.
6481 * python/py-gdb-readline.c: Use C++ exception handling.
6482 * python/py-framefilter.c: Use C++ exception handling.
6483 * python/py-frame.c: Use C++ exception handling.
6484 * python/py-finishbreakpoint.c: Use C++ exception handling.
6485 * python/py-cmd.c: Use C++ exception handling.
6486 * python/py-breakpoint.c: Use C++ exception handling.
6487 * python/py-arch.c: Use C++ exception handling.
6488 * printcmd.c: Use C++ exception handling.
6489 * ppc-linux-tdep.c: Use C++ exception handling.
6490 * parse.c: Use C++ exception handling.
6491 * p-valprint.c: Use C++ exception handling.
6492 * objc-lang.c: Use C++ exception handling.
6493 * mi/mi-main.c: Use C++ exception handling.
6494 * mi/mi-interp.c: Use C++ exception handling.
6495 * mi/mi-cmd-stack.c: Use C++ exception handling.
6496 * mi/mi-cmd-break.c: Use C++ exception handling.
6497 * main.c: Use C++ exception handling.
6498 * linux-thread-db.c: Use C++ exception handling.
6499 * linux-tdep.c: Use C++ exception handling.
6500 * linux-nat.c: Use C++ exception handling.
6501 * linux-fork.c: Use C++ exception handling.
6502 * linespec.c: Use C++ exception handling.
6503 * language.c: Use C++ exception handling.
6504 * jit.c: Use C++ exception handling.
6505 * infrun.c: Use C++ exception handling.
6506 * infcmd.c: Use C++ exception handling.
6507 * infcall.c: Use C++ exception handling.
6508 * inf-loop.c: Use C++ exception handling.
6509 * i386-tdep.c: Use C++ exception handling.
6510 * i386-linux-tdep.c: Use C++ exception handling.
6511 * guile/scm-value.c: Use C++ exception handling.
6512 * guile/scm-type.c: Use C++ exception handling.
6513 * guile/scm-symtab.c: Use C++ exception handling.
6514 * guile/scm-symbol.c: Use C++ exception handling.
6515 * guile/scm-pretty-print.c: Use C++ exception handling.
6516 * guile/scm-ports.c: Use C++ exception handling.
6517 * guile/scm-param.c: Use C++ exception handling.
6518 * guile/scm-math.c: Use C++ exception handling.
6519 * guile/scm-lazy-string.c: Use C++ exception handling.
6520 * guile/scm-frame.c: Use C++ exception handling.
6521 * guile/scm-disasm.c: Use C++ exception handling.
6522 * guile/scm-cmd.c: Use C++ exception handling.
6523 * guile/scm-breakpoint.c: Use C++ exception handling.
6524 * guile/scm-block.c: Use C++ exception handling.
6525 * guile/guile-internal.h: Use C++ exception handling.
6526 * gnu-v3-abi.c: Use C++ exception handling.
6527 * gdbtypes.c: Use C++ exception handling.
6528 * frame.c: Use C++ exception handling.
6529 * frame-unwind.c: Use C++ exception handling.
6530 * fbsd-tdep.c: Use C++ exception handling.
6531 * f-valprint.c: Use C++ exception handling.
6532 * exec.c: Use C++ exception handling.
6533 * event-top.c: Use C++ exception handling.
6534 * event-loop.c: Use C++ exception handling.
6535 * eval.c: Use C++ exception handling.
6536 * dwarf2read.c: Use C++ exception handling.
6537 * dwarf2loc.c: Use C++ exception handling.
6538 * dwarf2-frame.c: Use C++ exception handling.
6539 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6540 * dwarf-index-write.c: Use C++ exception handling.
6541 * dwarf-index-cache.c: Use C++ exception handling.
6542 * dtrace-probe.c: Use C++ exception handling.
6543 * disasm-selftests.c: Use C++ exception handling.
6544 * darwin-nat.c: Use C++ exception handling.
6545 * cp-valprint.c: Use C++ exception handling.
6546 * cp-support.c: Use C++ exception handling.
6547 * cp-abi.c: Use C++ exception handling.
6548 * corelow.c: Use C++ exception handling.
6549 * completer.c: Use C++ exception handling.
6550 * compile/compile-object-run.c: Use C++ exception handling.
6551 * compile/compile-object-load.c: Use C++ exception handling.
6552 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6553 * compile/compile-c-symbols.c: Use C++ exception handling.
6554 * common/selftest.c: Use C++ exception handling.
6555 * common/new-op.c: Use C++ exception handling.
6556 * cli/cli-script.c: Use C++ exception handling.
6557 * cli/cli-interp.c: Use C++ exception handling.
6558 * cli/cli-cmds.c: Use C++ exception handling.
6559 * c-varobj.c: Use C++ exception handling.
6560 * btrace.c: Use C++ exception handling.
6561 * breakpoint.c: Use C++ exception handling.
6562 * break-catch-throw.c: Use C++ exception handling.
6563 * arch-utils.c: Use C++ exception handling.
6564 * amd64-tdep.c: Use C++ exception handling.
6565 * ada-valprint.c: Use C++ exception handling.
6566 * ada-typeprint.c: Use C++ exception handling.
6567 * ada-lang.c: Use C++ exception handling.
6568 * aarch64-tdep.c: Use C++ exception handling.
6569
3d6e9d23
TT
65702019-04-08 Tom Tromey <tom@tromey.com>
6571
6572 * xml-support.c (gdb_xml_parser::parse): Update.
6573 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6574 * value.c (show_convenience): Update.
6575 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6576 (test_parse_flags_qcs): Update.
6577 * thread.c (thr_try_catch_cmd): Update.
6578 * target.c (target_translate_tls_address): Update.
6579 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6580 (info_frame_command_core, frame_apply_command_count): Update.
6581 * rust-exp.y (rust_lex_exception_test): Update.
6582 * riscv-tdep.c (riscv_print_one_register_info): Update.
6583 * remote.c (remote_target::enable_btrace): Update.
6584 * record-btrace.c (record_btrace_enable_warn): Update.
6585 * python/py-utils.c (gdbpy_convert_exception): Update.
6586 * printcmd.c (do_one_display, print_variable_and_value): Update.
6587 * mi/mi-main.c (mi_print_exception): Update.
6588 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6589 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6590 * linux-nat.c (linux_nat_target::attach): Update.
6591 * linux-fork.c (class scoped_switch_fork_info): Update.
6592 * infrun.c (displaced_step_prepare): Update.
6593 * infcall.c (call_function_by_hand_dummy): Update.
6594 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6595 * gnu-v3-abi.c (print_one_vtable): Update.
6596 * frame.c (get_prev_frame_always): Update.
6597 * f-valprint.c (info_common_command_for_block): Update.
6598 * exec.c (try_open_exec_file): Update.
6599 * exceptions.c (print_exception, exception_print)
6600 (exception_fprintf, exception_print_same): Update.
6601 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6602 * dwarf-index-cache.c (index_cache::store)
6603 (index_cache::lookup_gdb_index): Update.
6604 * darwin-nat.c (maybe_cache_shell): Update.
6605 * cp-valprint.c (cp_print_value_fields): Update.
6606 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6607 (gcc_cplus_symbol_address): Update.
6608 * compile/compile-c-symbols.c (gcc_convert_symbol)
6609 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6610 * common/selftest.c: Update.
6611 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6612 a std::string.
6613 (exception_try_scope_entry, exception_try_scope_exit): Don't
6614 declare.
6615 (struct exception_try_scope): Remove.
6616 (TRY): Don't use exception_try_scope.
6617 (struct gdb_exception): Add constructor, operator=.
6618 <what>: New method.
6619 (struct gdb_exception_RETURN_MASK_ALL)
6620 (struct gdb_exception_RETURN_MASK_ERROR)
6621 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6622 (struct gdb_quit_bad_alloc): Update.
6623 * common/common-exceptions.c (exception_none): Change
6624 initializer.
6625 (struct catcher) <state, exception>: Initialize inline.
6626 <prev>: Remove member.
6627 (current_catcher): Remove.
6628 (catchers): New global.
6629 (exceptions_state_mc_init): Simplify.
6630 (catcher_pop): Remove.
6631 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6632 (try_scope_depth, exception_try_scope_entry)
6633 (exception_try_scope_exit): Remove.
6634 (throw_exception_sjlj): Update.
6635 (exception_messages, exception_messages_size): Remove.
6636 (throw_it): Simplify.
6637 (gdb_exception_sliced_copy): Remove.
6638 (throw_exception_cxx): Update.
6639 * cli/cli-script.c (script_from_file): Update.
6640 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6641 Update.
6642 * ada-valprint.c (ada_val_print): Update.
6643 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6644 (create_excep_cond_exprs): Update.
6645
c5c10118
TT
66462019-04-08 Tom Tromey <tom@tromey.com>
6647
6648 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6649 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6650 (TRY, CATCH, END_CATCH): Remove some definitions.
6651 * common/common-exceptions.c: Don't use GDB_XCPT.
6652 (catcher_list_size): Remove.
6653 (throw_exception, throw_it): Simplify.
6654
4de283e4
TT
66552019-04-05 Tom Tromey <tom@tromey.com>
6656
6657 Revert the header-sorting patch.
6658 * ft32-tdep.c: Revert.
6659 * frv-tdep.c: Revert.
6660 * frv-linux-tdep.c: Revert.
6661 * frame.c: Revert.
6662 * frame-unwind.c: Revert.
6663 * frame-base.c: Revert.
6664 * fork-child.c: Revert.
6665 * findvar.c: Revert.
6666 * findcmd.c: Revert.
6667 * filesystem.c: Revert.
6668 * filename-seen-cache.h: Revert.
6669 * filename-seen-cache.c: Revert.
6670 * fbsd-tdep.c: Revert.
6671 * fbsd-nat.h: Revert.
6672 * fbsd-nat.c: Revert.
6673 * f-valprint.c: Revert.
6674 * f-typeprint.c: Revert.
6675 * f-lang.c: Revert.
6676 * extension.h: Revert.
6677 * extension.c: Revert.
6678 * extension-priv.h: Revert.
6679 * expprint.c: Revert.
6680 * exec.h: Revert.
6681 * exec.c: Revert.
6682 * exceptions.c: Revert.
6683 * event-top.c: Revert.
6684 * event-loop.c: Revert.
6685 * eval.c: Revert.
6686 * elfread.c: Revert.
6687 * dwarf2read.h: Revert.
6688 * dwarf2read.c: Revert.
6689 * dwarf2loc.c: Revert.
6690 * dwarf2expr.h: Revert.
6691 * dwarf2expr.c: Revert.
6692 * dwarf2-frame.c: Revert.
6693 * dwarf2-frame-tailcall.c: Revert.
6694 * dwarf-index-write.h: Revert.
6695 * dwarf-index-write.c: Revert.
6696 * dwarf-index-common.c: Revert.
6697 * dwarf-index-cache.h: Revert.
6698 * dwarf-index-cache.c: Revert.
6699 * dummy-frame.c: Revert.
6700 * dtrace-probe.c: Revert.
6701 * disasm.h: Revert.
6702 * disasm.c: Revert.
6703 * disasm-selftests.c: Revert.
6704 * dictionary.c: Revert.
6705 * dicos-tdep.c: Revert.
6706 * demangle.c: Revert.
6707 * dcache.h: Revert.
6708 * dcache.c: Revert.
6709 * darwin-nat.h: Revert.
6710 * darwin-nat.c: Revert.
6711 * darwin-nat-info.c: Revert.
6712 * d-valprint.c: Revert.
6713 * d-namespace.c: Revert.
6714 * d-lang.c: Revert.
6715 * ctf.c: Revert.
6716 * csky-tdep.c: Revert.
6717 * csky-linux-tdep.c: Revert.
6718 * cris-tdep.c: Revert.
6719 * cris-linux-tdep.c: Revert.
6720 * cp-valprint.c: Revert.
6721 * cp-support.c: Revert.
6722 * cp-namespace.c: Revert.
6723 * cp-abi.c: Revert.
6724 * corelow.c: Revert.
6725 * corefile.c: Revert.
6726 * continuations.c: Revert.
6727 * completer.h: Revert.
6728 * completer.c: Revert.
6729 * complaints.c: Revert.
6730 * coffread.c: Revert.
6731 * coff-pe-read.c: Revert.
6732 * cli-out.h: Revert.
6733 * cli-out.c: Revert.
6734 * charset.c: Revert.
6735 * c-varobj.c: Revert.
6736 * c-valprint.c: Revert.
6737 * c-typeprint.c: Revert.
6738 * c-lang.c: Revert.
6739 * buildsym.c: Revert.
6740 * buildsym-legacy.c: Revert.
6741 * build-id.h: Revert.
6742 * build-id.c: Revert.
6743 * btrace.c: Revert.
6744 * bsd-uthread.c: Revert.
6745 * breakpoint.h: Revert.
6746 * breakpoint.c: Revert.
6747 * break-catch-throw.c: Revert.
6748 * break-catch-syscall.c: Revert.
6749 * break-catch-sig.c: Revert.
6750 * blockframe.c: Revert.
6751 * block.c: Revert.
6752 * bfin-tdep.c: Revert.
6753 * bfin-linux-tdep.c: Revert.
6754 * bfd-target.c: Revert.
6755 * bcache.c: Revert.
6756 * ax-general.c: Revert.
6757 * ax-gdb.h: Revert.
6758 * ax-gdb.c: Revert.
6759 * avr-tdep.c: Revert.
6760 * auxv.c: Revert.
6761 * auto-load.c: Revert.
6762 * arm-wince-tdep.c: Revert.
6763 * arm-tdep.c: Revert.
6764 * arm-symbian-tdep.c: Revert.
6765 * arm-pikeos-tdep.c: Revert.
6766 * arm-obsd-tdep.c: Revert.
6767 * arm-nbsd-tdep.c: Revert.
6768 * arm-nbsd-nat.c: Revert.
6769 * arm-linux-tdep.c: Revert.
6770 * arm-linux-nat.c: Revert.
6771 * arm-fbsd-tdep.c: Revert.
6772 * arm-fbsd-nat.c: Revert.
6773 * arm-bsd-tdep.c: Revert.
6774 * arch-utils.c: Revert.
6775 * arc-tdep.c: Revert.
6776 * arc-newlib-tdep.c: Revert.
6777 * annotate.h: Revert.
6778 * annotate.c: Revert.
6779 * amd64-windows-tdep.c: Revert.
6780 * amd64-windows-nat.c: Revert.
6781 * amd64-tdep.c: Revert.
6782 * amd64-sol2-tdep.c: Revert.
6783 * amd64-obsd-tdep.c: Revert.
6784 * amd64-obsd-nat.c: Revert.
6785 * amd64-nbsd-tdep.c: Revert.
6786 * amd64-nbsd-nat.c: Revert.
6787 * amd64-nat.c: Revert.
6788 * amd64-linux-tdep.c: Revert.
6789 * amd64-linux-nat.c: Revert.
6790 * amd64-fbsd-tdep.c: Revert.
6791 * amd64-fbsd-nat.c: Revert.
6792 * amd64-dicos-tdep.c: Revert.
6793 * amd64-darwin-tdep.c: Revert.
6794 * amd64-bsd-nat.c: Revert.
6795 * alpha-tdep.c: Revert.
6796 * alpha-obsd-tdep.c: Revert.
6797 * alpha-nbsd-tdep.c: Revert.
6798 * alpha-mdebug-tdep.c: Revert.
6799 * alpha-linux-tdep.c: Revert.
6800 * alpha-linux-nat.c: Revert.
6801 * alpha-bsd-tdep.c: Revert.
6802 * alpha-bsd-nat.c: Revert.
6803 * aix-thread.c: Revert.
6804 * agent.c: Revert.
6805 * addrmap.c: Revert.
6806 * ada-varobj.c: Revert.
6807 * ada-valprint.c: Revert.
6808 * ada-typeprint.c: Revert.
6809 * ada-tasks.c: Revert.
6810 * ada-lang.c: Revert.
6811 * aarch64-tdep.c: Revert.
6812 * aarch64-ravenscar-thread.c: Revert.
6813 * aarch64-newlib-tdep.c: Revert.
6814 * aarch64-linux-tdep.c: Revert.
6815 * aarch64-linux-nat.c: Revert.
6816 * aarch64-fbsd-tdep.c: Revert.
6817 * aarch64-fbsd-nat.c: Revert.
6818 * aarch32-linux-nat.c: Revert.
6819
d55e5aa6
TT
68202019-04-05 Tom Tromey <tom@tromey.com>
6821
6822 * ft32-tdep.c: Sort headers.
6823 * frv-tdep.c: Sort headers.
6824 * frv-linux-tdep.c: Sort headers.
6825 * frame.c: Sort headers.
6826 * frame-unwind.c: Sort headers.
6827 * frame-base.c: Sort headers.
6828 * fork-child.c: Sort headers.
6829 * findvar.c: Sort headers.
6830 * findcmd.c: Sort headers.
6831 * filesystem.c: Sort headers.
6832 * filename-seen-cache.h: Sort headers.
6833 * filename-seen-cache.c: Sort headers.
6834 * fbsd-tdep.c: Sort headers.
6835 * fbsd-nat.h: Sort headers.
6836 * fbsd-nat.c: Sort headers.
6837 * f-valprint.c: Sort headers.
6838 * f-typeprint.c: Sort headers.
6839 * f-lang.c: Sort headers.
6840 * extension.h: Sort headers.
6841 * extension.c: Sort headers.
6842 * extension-priv.h: Sort headers.
6843 * expprint.c: Sort headers.
6844 * exec.h: Sort headers.
6845 * exec.c: Sort headers.
6846 * exceptions.c: Sort headers.
6847 * event-top.c: Sort headers.
6848 * event-loop.c: Sort headers.
6849 * eval.c: Sort headers.
6850 * elfread.c: Sort headers.
6851 * dwarf2read.h: Sort headers.
6852 * dwarf2read.c: Sort headers.
6853 * dwarf2loc.c: Sort headers.
6854 * dwarf2expr.h: Sort headers.
6855 * dwarf2expr.c: Sort headers.
6856 * dwarf2-frame.c: Sort headers.
6857 * dwarf2-frame-tailcall.c: Sort headers.
6858 * dwarf-index-write.h: Sort headers.
6859 * dwarf-index-write.c: Sort headers.
6860 * dwarf-index-common.c: Sort headers.
6861 * dwarf-index-cache.h: Sort headers.
6862 * dwarf-index-cache.c: Sort headers.
6863 * dummy-frame.c: Sort headers.
6864 * dtrace-probe.c: Sort headers.
6865 * disasm.h: Sort headers.
6866 * disasm.c: Sort headers.
6867 * disasm-selftests.c: Sort headers.
6868 * dictionary.c: Sort headers.
6869 * dicos-tdep.c: Sort headers.
6870 * demangle.c: Sort headers.
6871 * dcache.h: Sort headers.
6872 * dcache.c: Sort headers.
6873 * darwin-nat.h: Sort headers.
6874 * darwin-nat.c: Sort headers.
6875 * darwin-nat-info.c: Sort headers.
6876 * d-valprint.c: Sort headers.
6877 * d-namespace.c: Sort headers.
6878 * d-lang.c: Sort headers.
6879 * ctf.c: Sort headers.
6880 * csky-tdep.c: Sort headers.
6881 * csky-linux-tdep.c: Sort headers.
6882 * cris-tdep.c: Sort headers.
6883 * cris-linux-tdep.c: Sort headers.
6884 * cp-valprint.c: Sort headers.
6885 * cp-support.c: Sort headers.
6886 * cp-namespace.c: Sort headers.
6887 * cp-abi.c: Sort headers.
6888 * corelow.c: Sort headers.
6889 * corefile.c: Sort headers.
6890 * continuations.c: Sort headers.
6891 * completer.h: Sort headers.
6892 * completer.c: Sort headers.
6893 * complaints.c: Sort headers.
6894 * coffread.c: Sort headers.
6895 * coff-pe-read.c: Sort headers.
6896 * cli-out.h: Sort headers.
6897 * cli-out.c: Sort headers.
6898 * charset.c: Sort headers.
6899 * c-varobj.c: Sort headers.
6900 * c-valprint.c: Sort headers.
6901 * c-typeprint.c: Sort headers.
6902 * c-lang.c: Sort headers.
6903 * buildsym.c: Sort headers.
6904 * buildsym-legacy.c: Sort headers.
6905 * build-id.h: Sort headers.
6906 * build-id.c: Sort headers.
6907 * btrace.c: Sort headers.
6908 * bsd-uthread.c: Sort headers.
6909 * breakpoint.h: Sort headers.
6910 * breakpoint.c: Sort headers.
6911 * break-catch-throw.c: Sort headers.
6912 * break-catch-syscall.c: Sort headers.
6913 * break-catch-sig.c: Sort headers.
6914 * blockframe.c: Sort headers.
6915 * block.c: Sort headers.
6916 * bfin-tdep.c: Sort headers.
6917 * bfin-linux-tdep.c: Sort headers.
6918 * bfd-target.c: Sort headers.
6919 * bcache.c: Sort headers.
6920 * ax-general.c: Sort headers.
6921 * ax-gdb.h: Sort headers.
6922 * ax-gdb.c: Sort headers.
6923 * avr-tdep.c: Sort headers.
6924 * auxv.c: Sort headers.
6925 * auto-load.c: Sort headers.
6926 * arm-wince-tdep.c: Sort headers.
6927 * arm-tdep.c: Sort headers.
6928 * arm-symbian-tdep.c: Sort headers.
6929 * arm-pikeos-tdep.c: Sort headers.
6930 * arm-obsd-tdep.c: Sort headers.
6931 * arm-nbsd-tdep.c: Sort headers.
6932 * arm-nbsd-nat.c: Sort headers.
6933 * arm-linux-tdep.c: Sort headers.
6934 * arm-linux-nat.c: Sort headers.
6935 * arm-fbsd-tdep.c: Sort headers.
6936 * arm-fbsd-nat.c: Sort headers.
6937 * arm-bsd-tdep.c: Sort headers.
6938 * arch-utils.c: Sort headers.
6939 * arc-tdep.c: Sort headers.
6940 * arc-newlib-tdep.c: Sort headers.
6941 * annotate.h: Sort headers.
6942 * annotate.c: Sort headers.
6943 * amd64-windows-tdep.c: Sort headers.
6944 * amd64-windows-nat.c: Sort headers.
6945 * amd64-tdep.c: Sort headers.
6946 * amd64-sol2-tdep.c: Sort headers.
6947 * amd64-obsd-tdep.c: Sort headers.
6948 * amd64-obsd-nat.c: Sort headers.
6949 * amd64-nbsd-tdep.c: Sort headers.
6950 * amd64-nbsd-nat.c: Sort headers.
6951 * amd64-nat.c: Sort headers.
6952 * amd64-linux-tdep.c: Sort headers.
6953 * amd64-linux-nat.c: Sort headers.
6954 * amd64-fbsd-tdep.c: Sort headers.
6955 * amd64-fbsd-nat.c: Sort headers.
6956 * amd64-dicos-tdep.c: Sort headers.
6957 * amd64-darwin-tdep.c: Sort headers.
6958 * amd64-bsd-nat.c: Sort headers.
6959 * alpha-tdep.c: Sort headers.
6960 * alpha-obsd-tdep.c: Sort headers.
6961 * alpha-nbsd-tdep.c: Sort headers.
6962 * alpha-mdebug-tdep.c: Sort headers.
6963 * alpha-linux-tdep.c: Sort headers.
6964 * alpha-linux-nat.c: Sort headers.
6965 * alpha-bsd-tdep.c: Sort headers.
6966 * alpha-bsd-nat.c: Sort headers.
6967 * aix-thread.c: Sort headers.
6968 * agent.c: Sort headers.
6969 * addrmap.c: Sort headers.
6970 * ada-varobj.c: Sort headers.
6971 * ada-valprint.c: Sort headers.
6972 * ada-typeprint.c: Sort headers.
6973 * ada-tasks.c: Sort headers.
6974 * ada-lang.c: Sort headers.
6975 * aarch64-tdep.c: Sort headers.
6976 * aarch64-ravenscar-thread.c: Sort headers.
6977 * aarch64-newlib-tdep.c: Sort headers.
6978 * aarch64-linux-tdep.c: Sort headers.
6979 * aarch64-linux-nat.c: Sort headers.
6980 * aarch64-fbsd-tdep.c: Sort headers.
6981 * aarch64-fbsd-nat.c: Sort headers.
6982 * aarch32-linux-nat.c: Sort headers.
6983
699bd4cf
TT
69842019-04-04 Tom Tromey <tom@tromey.com>
6985
6986 * varobj.c (varobj_create): Update.
6987 * rust-exp.y (struct rust_parser) <update_innermost_block,
6988 lookup_symbol>: New methods.
6989 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6990 Rename.
6991 (rust_parser::rust_lookup_type)
6992 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6993 * printcmd.c (display_command, do_one_display): Update.
6994 * parser-defs.h (struct parser_state) <parser_state>: Add
6995 "tracker" parameter.
6996 (block_tracker): New member.
6997 (class innermost_block_tracker) <innermost_block_tracker>: Add
6998 "types" parameter.
6999 <reset>: Remove method.
7000 (innermost_block): Don't declare.
7001 (null_post_parser): Update.
7002 * parse.c (innermost_block): Remove global.
7003 (write_dollar_variable): Update.
7004 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7005 Remove "tracker_types" parameter.
7006 (parse_expression): Add "tracker" parameter.
7007 (parse_expression_for_completion): Update.
7008 (null_post_parser): Add "tracker" parameter.
7009 * p-exp.y: Update rules.
7010 * m2-exp.y: Update rules.
7011 * language.h (struct language_defn) <la_post_parser>: Add
7012 "tracker" parameter.
7013 * go-exp.y: Update rules.
7014 * f-exp.y: Update rules.
7015 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7016 parameter.
7017 * d-exp.y: Update rules.
7018 * c-exp.y: Update rules.
7019 * breakpoint.c (set_breakpoint_condition): Create an
7020 innermost_block_tracker.
7021 (watch_command_1): Likewise.
7022 * ada-lang.c (resolve): Add "tracker" parameter.
7023 (resolve_subexp): Likewise.
7024 * ada-exp.y (write_var_from_sym): Update.
7025
dac43e32
TT
70262019-04-04 Tom Tromey <tom@tromey.com>
7027
7028 * type-stack.h: New file.
7029 * type-stack.c: New file.
7030 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7031 type-stack.h.
7032 (insert_into_type_stack, insert_type, push_type, push_type_int)
7033 (insert_type_address_space, pop_type, pop_type_int)
7034 (pop_typelist, pop_type_stack, append_type_stack)
7035 (push_type_stack, get_type_stack, push_typelist)
7036 (follow_type_instance_flags, follow_types): Don't declare.
7037 * parse.c (type_stack): Remove global.
7038 (parse_exp_in_context): Update.
7039 (insert_into_type_stack, insert_type, push_type, push_type_int)
7040 (insert_type_address_space, pop_type, pop_type_int)
7041 (pop_typelist, pop_type_stack, append_type_stack)
7042 (push_type_stack, get_type_stack, push_typelist)
7043 (follow_type_instance_flags, follow_types): Remove (moved to
7044 type-stack.c).
7045 * f-exp.y (type_stack): New global.
7046 Update rules.
7047 (push_kind_type, f_parse): Update.
7048 * d-exp.y (type_stack): New global.
7049 Update rules.
7050 (d_parse): Update.
7051 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7052 Update rules.
7053 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7054 (HFILES_NO_SRCDIR): Add type-stack.h.
7055
2a612529
TT
70562019-04-04 Tom Tromey <tom@tromey.com>
7057
7058 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7059 (rust_parser::convert_ast_to_expression, rust_parse)
7060 (rust_lex_test_completion, rust_lex_tests): Update.
7061 * parser-defs.h (struct expr_completion_state): New.
7062 (struct parser_state) <parser_state>: Add completion parameter.
7063 <mark_struct_expression, mark_completion_tag>: New methods.
7064 <parse_completion, m_completion_state>: New members.
7065 (prefixify_expression, null_post_parser): Update.
7066 (mark_struct_expression, mark_completion_tag): Don't declare.
7067 * parse.c (parse_completion, expout_last_struct)
7068 (expout_tag_completion_type, expout_completion_name): Remove
7069 globals.
7070 (parser_state::mark_struct_expression)
7071 (parser_state::mark_completion_tag): Now methods.
7072 (prefixify_expression): Add last_struct parameter.
7073 (prefixify_subexp): Likewise.
7074 (parse_exp_1): Update.
7075 (parse_exp_in_context): Add cstate parameter. Update.
7076 (parse_expression_for_completion): Create an
7077 expr_completion_state.
7078 (null_post_parser): Add "completion" parameter.
7079 * p-exp.y: Update rules.
7080 (yylex): Update.
7081 * language.h (struct language_defn) <la_post_parser>: Add
7082 "completing" parameter.
7083 * go-exp.y: Update rules.
7084 (lex_one_token): Update.
7085 * expression.h (parse_completion): Don't declare.
7086 * d-exp.y: Update rules.
7087 (lex_one_token): Update rules.
7088 * c-exp.y: Update rules.
7089 (lex_one_token): Update.
7090 * ada-lang.c (resolve): Add "parse_completion" parameter.
7091 (resolve_subexp): Likewise.
7092 (ada_resolve_function): Likewise.
7093
43476f0b
TT
70942019-04-04 Tom Tromey <tom@tromey.com>
7095
7096 * parser-defs.h (struct parser_state) <start_arglist,
7097 end_arglist>: New methods.
7098 <arglist_len, m_funcall_chain>: New members.
7099 (arglist_len, start_arglist, end_arglist): Don't declare.
7100 * parse.c (arglist_len, funcall_chain): Remove global.
7101 (start_arglist, end_arglist): Remove functions.
7102 (parse_exp_in_context): Update.
7103 * p-exp.y: Update rules.
7104 * m2-exp.y: Update rules.
7105 * go-exp.y: Update rules.
7106 * f-exp.y: Update rules.
7107 * d-exp.y: Update rules.
7108 * c-exp.y: Update rules.
7109
5776fca3
TT
71102019-04-04 Tom Tromey <tom@tromey.com>
7111
7112 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7113 lex_operator, push_back>: New methods.
7114 Update all rules.
7115 (rust_parser::lex_hex, lex_escape): Rename and update.
7116 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7117 (rust_parser::lex_operator): Rename and update.
7118 (rust_parser::lex_number, rustyylex, rustyyerror)
7119 (rust_lex_test_init, rust_lex_test_sequence)
7120 (rust_lex_test_push_back, rust_lex_tests): Update.
7121 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7122 parameter.
7123 <lexptr, prev_lexptr>: New members.
7124 (lexptr, prev_lexptr): Don't declare.
7125 * parse.c (lexptr, prev_lexptr): Remove globals.
7126 (parse_exp_in_context): Update.
7127 * p-exp.y (yylex, yyerror): Update.
7128 * m2-exp.y (parse_number, yylex, yyerror): Update.
7129 * go-exp.y (lex_one_token, yyerror): Update.
7130 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7131 * d-exp.y (lex_one_token, yyerror): Update.
7132 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7133 (lex_one_token, yyerror): Update.
7134 * ada-lex.l (YY_INPUT): Update.
7135 (rewind_to_char): Update.
7136 * ada-exp.y (yyerror): Update.
7137
8621b685
TT
71382019-04-04 Tom Tromey <tom@tromey.com>
7139
7140 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7141 * parser-defs.h (struct parser_state) <parser_state>: Add new
7142 parameter.
7143 <comma_terminates>: New member.
7144 (comma_terminates): Don't declare global.
7145 * parse.c (comma_terminates): Remove global.
7146 (parse_exp_in_context): Update.
7147 * p-exp.y (yylex): Update.
7148 * m2-exp.y (yylex): Update.
7149 * go-exp.y (lex_one_token): Update.
7150 * f-exp.y (yylex): Update.
7151 * d-exp.y (lex_one_token): Update.
7152 * c-exp.y (lex_one_token): Update.
7153 * ada-lex.l: Update.
7154
28aaf3fd
TT
71552019-04-04 Tom Tromey <tom@tromey.com>
7156
7157 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7158 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7159 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7160 * parser-defs.h (paren_depth): Don't declare.
7161 * parse.c (paren_depth): Remove global.
7162 (parse_exp_in_context): Update.
7163 * p-exp.y (paren_depth): New global.
7164 (pascal_parse): Initialize it.
7165 * m2-exp.y (paren_depth): New global.
7166 (m2_parse): Initialize it.
7167 * go-exp.y (paren_depth): New global.
7168 (go_parse): Initialize it.
7169 * f-exp.y (paren_depth): New global.
7170 (f_parse): Initialize it.
7171 * d-exp.y (paren_depth): New global.
7172 (d_parse): Initialize it.
7173 * c-exp.y (paren_depth): New global.
7174 (c_parse): Initialize it.
7175 * ada-lex.l (paren_depth): New global.
7176 (lexer_init): Initialize it.
7177
1e58a4a4
TT
71782019-04-04 Tom Tromey <tom@tromey.com>
7179
7180 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7181 (rust_parser::convert_ast_to_type)
7182 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7183 * parser-defs.h (struct parser_state) <parser_state>: Add
7184 parameters. Initialize new members.
7185 <expression_context_block, expression_context_pc>: New members.
7186 * parse.c (expression_context_block, expression_context_pc):
7187 Remove globals.
7188 (parse_exp_in_context): Update.
7189 * p-exp.y: Update all rules.
7190 (yylex): Update.
7191 * m2-exp.y: Update all rules.
7192 (yylex): Update.
7193 * go-exp.y (yylex): Update.
7194 * f-exp.y (yylex): Update.
7195 * d-exp.y: Update all rules.
7196 (yylex): Update.
7197 * c-exp.y: Update all rules.
7198 (lex_one_token, classify_name, yylex, c_parse): Update.
7199 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7200
37eedb39
TT
72012019-04-04 Tom Tromey <tom@tromey.com>
7202
7203 * gdbarch.h, gdbarch.c: Rebuild.
7204 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7205 * stap-probe.h:
7206 (struct stap_parse_info): Replace "parser_state" with
7207 "expr_builder".
7208 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7209 (parser_state): New class.
7210 * parse.c (expr_builder): Rename.
7211 (expr_builder::release): Rename.
7212 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7213 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7214 (write_exp_elt_longcst, write_exp_elt_floatcst)
7215 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7216 (write_exp_string_vector, write_exp_bitstring)
7217 (write_exp_msymbol, mark_struct_expression)
7218 (write_dollar_variable)
7219 (insert_type_address_space, increase_expout_size): Replace
7220 "parser_state" with "expr_builder".
7221 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7222 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7223 "parser_state" with "expr_builder".
7224
73923d7e
TT
72252019-04-04 Tom Tromey <tom@tromey.com>
7226
7227 * rust-exp.y: Replace "parse_language" with method call.
7228 * p-exp.y:
7229 (yylex): Replace "parse_language" with method call.
7230 * m2-exp.y:
7231 (yylex): Replace "parse_language" with method call.
7232 * go-exp.y (classify_name): Replace "parse_language" with method
7233 call.
7234 * f-exp.y (yylex): Replace "parse_language" with method call.
7235 * d-exp.y (lex_one_token): Replace "parse_language" with method
7236 call.
7237 * c-exp.y:
7238 (lex_one_token, classify_name, yylex): Replace "parse_language"
7239 with method call.
7240 * ada-exp.y (find_primitive_type, type_char)
7241 (type_system_address): Replace "parse_language" with method call.
7242
fa9f5be6
TT
72432019-04-04 Tom Tromey <tom@tromey.com>
7244
7245 * rust-exp.y: Replace "parse_gdbarch" with method call.
7246 * parse.c (write_dollar_variable, insert_type_address_space):
7247 Replace "parse_gdbarch" with method call.
7248 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7249 call.
7250 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7251 call.
7252 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7253 "parse_gdbarch" with method call.
7254 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7255 with method call.
7256 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7257 "parse_gdbarch" with method call.
7258 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7259 "parse_gdbarch" with method call.
7260 * c-exp.y (parse_type, parse_number, classify_name): Replace
7261 "parse_gdbarch" with method call.
7262 * ada-lex.l: Replace "parse_gdbarch" with method call.
7263 * ada-exp.y (parse_type, find_primitive_type, type_char)
7264 (type_system_address): Replace "parse_gdbarch" with method call.
7265
1201a264
TT
72662019-04-04 Tom Tromey <tom@tromey.com>
7267
7268 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7269 * stap-probe.c (stap_parse_argument): Update.
7270 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7271 initial_size parameter.
7272 * rust-exp.y (rust_lex_tests): Update.
7273 * parse.c (parser_state): Update.
7274 (parse_exp_in_context): Update.
7275 * parser-defs.h (struct parser_state) <parser_state>: Remove
7276 "initial_size" parameter.
7277
e3980ce2
TT
72782019-04-04 Tom Tromey <tom@tromey.com>
7279
7280 * parser-defs.h (increase_expout_size): Don't declare.
7281 * parse.c (increase_expout_size): Now static.
7282
e9f8e3f1
TS
72832019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7284
7285 * gnu-nat.c (gnu_nat_target::wait): Fix
7286 target_waitstatus_to_string call.
7287
d7df6549
AB
72882019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7289
7290 * eval.c (evaluate_subexp_standard): Handle internal functions
7291 during Fortran function call handling.
7292
8bdc1658
AB
72932019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7294
7295 * NEWS: Mention new internal functions.
7296 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7297 (read_base_type): Use dwarf2_init_complex_target_type.
7298 * value.c (creal_internal_fn): New function.
7299 (cimag_internal_fn): New function.
7300 (_initialize_values): Register new internal functions.
7301
c29705b7
PW
73022019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7303
7304 * infrun.c (stop_all_threads): If debug_infrun, always
7305 trace the wait status after wait_one, using
7306 target_waitstatus_to_string and target_pid_to_str.
7307 (handle_inferior_event): Replace various trace of
7308 wait status kind by a single trace.
7309 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7310 wait status kind image by target_waitstatus_to_string.
7311 * target/waitstatus.c (target_waitstatus_to_string): Fix
7312 obsolete comment.
7313
05caa1d2
TT
73142019-04-01 Tom Tromey <tromey@adacore.com>
7315
7316 PR symtab/23331:
7317 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7318
9d1447e0
SDJ
73192019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7320 Pedro Alves <palves@redhat.com>
7321
7322 * top.c (quit_force): Call 'finalize_values'.
7323 * value.c (finalize_values): New function.
7324 * value.h (finalize_values): Declare.
7325
7734102d
EZ
73262019-03-30 Eli Zaretskii <eliz@gnu.org>
7327
7328 * NEWS: Announce $_gdb_major and $_gdb_minor.
7329
7330 * top.c (init_gdb_version_vars): New function.
7331 (gdb_init): Call init_gdb_version_vars.
7332
188e1fa9
TT
73332019-03-29 Tom Tromey <tromey@adacore.com>
7334
7335 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7336 help text. Remove dead code.
7337
2880242d
KS
73382019-03-29 Keith Seitz <keiths@redhat.com>
7339
7340 From Siddhesh Poyarekar:
7341 * f-lang.h (f77_get_upperbound): Return LONGEST.
7342 (f77_get_lowerbound): Likewise.
7343 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7344 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7345 print them.
7346 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7347 plongest to format print it.
7348 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7349 (f77_get_upperbound): Likewise.
7350 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7351 LOWER_BOUND to LONGEST.
7352 (f77_create_arrayprint_offset_tbl): Likewise.
7353
cc1defb1
KS
73542019-03-29 Keith Seitz <keiths@redhat.com>
7355
7356 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7357 %s/pulongest for TYPE_LENGTH instead of %d in format
7358 strings.
7359 * ada-typerint.c (ada_print_type): Likewise.
7360 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7361 * compile/compile-c-support.c (generate_register_struct): Likewise.
7362 * gdbtypes.c (recursive_dump_type): Likewise.
7363 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7364 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7365 instead of %d in format strings.
7366 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7367 to std::min to ULONGEST.
7368 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7369 instead of %d in format strings.
7370 * tracepoint.c (info_scope_command): Likewise.
7371 * typeprint.c (print_offset_data::update)
7372 (print_offset_data::finish): Likewise.
7373 * xtensa-tdep.c (xtensa_store_return_value)
7374 (xtensa_push_dummy_call): Likewise.
7375
e432ccf1
JT
73762019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7377
7378 * windows-nat.c (display_selector): Fixed format specifications
7379 for 64-bit Cygwin.
7380
65d2b333
PW
73812019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7382
7383 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7384
f489207e
SL
73852019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7386
7387 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7388 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7389 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7390 (nios2_linux_init_abi): Install it.
7391
bffa1015
AH
73922019-03-28 Alan Hayward <alan.hayward@arm.com>
7393
7394 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7395
fc96163a
AH
73962019-03-28 Alan Hayward <alan.hayward@arm.com>
7397
7398 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7399
20dc7e9b
PW
74002019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7401 Tom Tromey <tromey@adacore.com>
7402
7403 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7404
7f5331a8
JB
74052019-03-26 Joel Brobecker <brobecker@adacore.com>
7406
7407 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7408 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7409 method to compute the bounds of range types. Also print "[evaluated]"
7410 if the bounds' values come from a dynamic evaluation.
7411
18c77628
AB
74122019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7413
7414 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7415 whitespace when pretty printing is on.
7416
53c973f2
AH
74172019-03-26 Alan Hayward <alan.hayward@arm.com>
7418
e79be6e5 7419 * ppc-linux-nat.c: Add include.
53c973f2 7420
d851aa71
AH
74212019-03-26 Alan Hayward <alan.hayward@arm.com>
7422
e79be6e5 7423 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7424
2fe7bab7
AH
74252019-03-26 Alan Hayward <alan.hayward@arm.com>
7426
e79be6e5 7427 * arm-linux-nat.c: Add include.
2fe7bab7 7428
068ef30e
SM
74292019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7430
7431 * source-cache.c (source_cache::get_source_lines): Re-read
7432 fullname after calling open_source_file.
7433
81a24d04
JB
74342019-03-25 John Baldwin <jhb@FreeBSD.org>
7435
7436 * NEWS: Mention TLS support for FreeBSD.
7437
79e7ae11
TT
74382019-03-25 Tom Tromey <tromey@adacore.com>
7439
7440 * minsyms.c (BUNCH_SIZE): Update comment.
7441 (~minimal_symbol_reader): Remove old comment.
7442 (compact_minimal_symbols): Update comment.
7443 (minimal_symbol_reader::install): Remove old comment. Update
7444 other comments.
7445
d45963c2
AH
74462019-03-25 Alan Hayward <alan.hayward@arm.com>
7447
7448 * s390-linux-nat.c: Add include.
7449
0f83012e
AH
74502019-03-25 Alan Hayward <alan.hayward@arm.com>
7451
7452 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7453 Call linux_get_hwcap.
7454 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7455 Likewise.
7456 (aarch64_linux_get_hwcap): Remove function.
7457 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7458 declaration.
7459 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7460 linux_get_hwcap.
7461 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7462 * linux-tdep.c (linux_get_hwcap): Add function.
7463 (linux_get_hwcap2): Likewise.
7464 * linux-tdep.h (linux_get_hwcap): Add declaration.
7465 (linux_get_hwcap2): Likewise.
7466 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7467 (ppc_linux_get_hwcap2): Likewise.
7468 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7469 linux_get_hwcap.
7470 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7471 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7472 (ppc_linux_nat_target::read_description): Likewise.
7473 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7474 * s390-linux-nat.c: Likewise.
7475 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7476
6640a367
TT
74772019-03-24 Tom Tromey <tom@tromey.com>
7478
7479 * ada-lang.c (standard_lookup): Simplify initialization.
7480 (ada_lookup_symbol_nonlocal): Simplify return.
7481 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7482 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7483 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7484 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7485 initialization.
7486 * solib.c (solib_global_lookup): Simplify.
7487 * symtab.c (null_block_symbol): Remove.
7488 (symbol_cache_lookup): Simplify returns.
7489 (lookup_language_this): Simplify returns.
7490 (lookup_symbol_aux): Simplify return.
7491 (lookup_local_symbol): Simplify returns.
7492 (lookup_global_symbol_from_objfile): Simplify return.
7493 (lookup_symbol_in_objfile_symtabs)
7494 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7495 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7496 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7497 * cp-namespace.c (cp_lookup_bare_symbol)
7498 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7499 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7500 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7501 (cp_lookup_symbol_via_imports): Simplify initialization.
7502 (find_symbol_in_baseclass): Likewise.
7503 * symtab.h (null_block_symbol): Remove.
7504 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7505 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7506 (d_lookup_symbol_module): Likewise.
7507 (find_symbol_in_baseclass): Simplify initialization.
7508
a930ebcd
TT
75092019-03-24 Tom Tromey <tom@tromey.com>
7510
7511 * expression.h: Don't include symtab.h.
7512 (struct block): Forward declare.
7513
582942f4
TT
75142019-03-24 Tom Tromey <tom@tromey.com>
7515
7516 * c-exp.y (typebase): Remove casts.
7517 * gdbtypes.c (lookup_unsigned_typename, )
7518 (lookup_signed_typename): Remove cast.
7519 * eval.c (parse_to_comma_and_eval): Remove cast.
7520 * parse.c (write_dollar_variable): Remove cast.
7521 * block.h (struct block) <superblock>: Now const.
7522 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7523 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7524 (map_block): Make "block" const.
7525 * symfile.h (struct quick_symbol_functions)
7526 <map_matching_symbols>: Constify block argument to "callback".
7527 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7528 const.
7529 (find_pc_sect_compunit_symtab): Make "b" const.
7530 (find_symbol_at_address): Likewise.
7531 (search_symbols): Likewise.
7532 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7533 (dw2_debug_names_lookup_symbol): Likewise.
7534 (dw2_map_matching_symbols): Update.
7535 * p-valprint.c (pascal_val_print): Remove "block".
7536 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7537 (aux_add_nonlocal_symbols): Make "block" const.
7538 (resolve_subexp): Remove cast.
7539 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7540 const.
7541 (iterate_over_file_blocks): Likewise.
7542 * f-exp.y (%union) <bval>: Remove.
7543 * coffread.c (patch_opaque_types): Make "b" const.
7544 * spu-tdep.c (spu_catch_start): Make "block" const.
7545 * c-valprint.c (print_unpacked_pointer): Remove "block".
7546 * symmisc.c (dump_symtab_1): Make "b" const.
7547 (block_depth): Make "block" const.
7548 * d-exp.y (%union) <bval>: Remove.
7549 * cp-support.h (cp_lookup_rtti_type): Update.
7550 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7551 * psymtab.c (psym_lookup_symbol): Make "block" const.
7552 (maintenance_check_psymtabs): Make "b" const.
7553 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7554 (enumerate_locals, enumerate_args): Update.
7555 * python/py-symtab.c (stpy_global_block): Make "block" const.
7556 (stpy_static_block): Likewise.
7557 * inline-frame.c (block_starting_point_at): Make "new_block"
7558 const.
7559 * block.c (find_block_in_blockvector): Make return type const.
7560 (blockvector_for_pc_sect): Make "b" const.
7561 (find_block_in_blockvector): Make "b" const.
7562
7ad417dd
TT
75632019-03-23 Tom Tromey <tom@tromey.com>
7564
7565 * varobj.c (varobj_create): Update.
7566 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7567 * printcmd.c (display_command, do_one_display): Don't reset
7568 innermost_block.
7569 * parser-defs.h (enum innermost_block_tracker_type): Move to
7570 expression.h.
7571 (innermost_block): Update comment.
7572 * parse.c (parse_exp_1): Add tracker_types parameter.
7573 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7574 tracker_types parameter. Reset innermost_block.
7575 (parse_exp_in_context): Remove.
7576 (parse_expression_for_completion): Update.
7577 * objfiles.c (~objfile): Don't reset expression_context_block or
7578 innermost_block.
7579 * expression.h (enum innermost_block_tracker_type): Move from
7580 parser-defs.h.
7581 (parse_exp_1): Add tracker_types parameter.
7582 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7583 reset innermost_block.
7584
b366c208
TT
75852019-03-23 Tom Tromey <tom@tromey.com>
7586
7587 * objfiles.h: Include bcache.h.
7588
9bb9b2f9
TT
75892019-03-23 Tom Tromey <tom@tromey.com>
7590
7591 * linespec.c (get_current_search_block): Use
7592 scoped_restore_current_language.
7593 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7594
59c28372
AH
75952019-03-22 Alan Hayward <alan.hayward@arm.com>
7596 Jiong Wang <jiong.wang@arm.com>
7597
7598 * aarch64-linux-tdep.c
7599 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7600 section.
7601 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7602
17e116a7
AH
76032019-03-22 Alan Hayward <alan.hayward@arm.com>
7604 Jiong Wang <jiong.wang@arm.com>
7605
7606 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7607 instructions.
7608 (aarch64_analyze_prologue_test): Add PACIASP test.
7609 (aarch64_prologue_prev_register): Unmask PC value.
7610
11e1b75f
AH
76112019-03-22 Alan Hayward <alan.hayward@arm.com>
7612 Jiong Wang <jiong.wang@arm.com>
7613
7614 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7615 (aarch64_dwarf2_prev_register): Unmask PC value.
7616 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7617 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7618 DW_CFA_AARCH64_negate_ra_state.
7619 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7620
34dcc7cf
AH
76212019-03-22 Alan Hayward <alan.hayward@arm.com>
7622 Jiong Wang <jiong.wang@arm.com>
7623
7624 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7625 registers.
7626 (aarch64_pseudo_register_name): Likewise.
7627 (aarch64_pseudo_register_type): Likewise.
7628 (aarch64_pseudo_register_reggroup_p): Likewise.
7629 (aarch64_gdbarch_init): Add pauth registers.
7630 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7631 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7632 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7633 (struct gdbarch_tdep): Add regnum for ra_state.
7634
1ef53e6b
AH
76352019-03-22 Alan Hayward <alan.hayward@arm.com>
7636 Jiong Wang <jiong.wang@arm.com>
7637
7638 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7639
76bed0fd
AH
76402019-03-22 Alan Hayward <alan.hayward@arm.com>
7641 Jiong Wang <jiong.wang@arm.com>
7642
7643 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7644 function.
7645 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7646 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7647 (aarch64_gdbarch_init): Add puth registers.
7648 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7649 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7650 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7651
ee4fbcfa
AH
76522019-03-22 Alan Hayward <alan.hayward@arm.com>
7653 Jiong Wang <jiong.wang@arm.com>
7654
7655 * aarch64-linux-nat.c
7656 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7657 * aarch64-linux-tdep.c
7658 (aarch64_linux_core_read_description): Likewise.
7659 (aarch64_linux_get_hwcap): New function.
7660 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7661 (aarch64_linux_get_hwcap): New declaration.
7662
6dc0ebde
AH
76632019-03-22 Alan Hayward <alan.hayward@arm.com>
7664 Jiong Wang <jiong.wang@arm.com>
7665
7666 * aarch64-linux-nat.c
7667 (aarch64_linux_nat_target::read_description): Add pauth param.
7668 * aarch64-linux-tdep.c
7669 (aarch64_linux_core_read_description): Likewise.
7670 * aarch64-tdep.c (struct target_desc): Add in pauth.
7671 (aarch64_read_description): Add pauth param.
7672 (aarch64_gdbarch_init): Likewise.
7673 * aarch64-tdep.h (aarch64_read_description): Likewise.
7674 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7675 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7676 * features/Makefile: Add new files.
7677 * features/aarch64-pauth.c: New file.
7678 * features/aarch64-pauth.xml: New file.
7679
595915c1
TT
76802019-03-20 Tom Tromey <tromey@adacore.com>
7681
7682 * infrun.c (handle_inferior_event): Rename from
7683 handle_inferior_event_1. Create a scoped_value_mark.
7684 (handle_inferior_event): Remove.
7685
4c7d57e7
TT
76862019-03-19 Tom Tromey <tromey@adacore.com>
7687
7688 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7689 * infrun.h (print_stop_event): Add "displays" parameter.
7690 * infrun.c (print_stop_event): Add "displays" parameter.
7691
cb246234
PA
76922019-03-19 Pedro Alves <palves@redhat.com>
7693
7694 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7695 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7696 to -1. Fix TABs vs spaces.
7697 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7698 * tui/tui-out.h (tui_ui_out) Add intro comments.
7699 <m_line, m_start_of_line>: In-class initialize, and add describing
7700 comment.
7701
3a0e45b2
AH
77022019-03-18 Alan Hayward <alan.hayward@arm.com>
7703
7704 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7705 variable names.
7706 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7707
5371b850
PA
77082019-03-18 Pedro Alves <palves@redhat.com>
7709 Eli Zaretskii <eliz@gnu.org>
7710
7711 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7712 m_line and m_start_of_line.
7713
b17c4cd0
EZ
77142019-03-18 Eli Zaretskii <eliz@gnu.org>
7715
7716 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7717 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7718 it returns a newline. This fixes a regression in TU mode, whereby
7719 the next line is output on the same screen line as the user input.
7720
4bd56d18
TT
77212019-03-18 Tom Tromey <tromey@adacore.com>
7722
7723 * minsyms.c (minimal_symbol_reader::install): Remove call to
7724 obstack_blank.
7725
55c10aca
PA
77262019-03-18 Pedro Alves <palves@redhat.com>
7727
7728 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7729 New globals.
7730 (apply_style): New, factored out from ...
7731 (apply_ansi_escape): ... this. Handle reverse video mode.
7732 (tui_set_reverse_mode): New function.
7733 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7734 * tui/tui-winsource.c (tui_show_source_line): Use
7735 tui_set_reverse_mode instead of setting A_STANDOUT.
7736 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7737 New setter methods.
7738
647bb750
HD
77392019-03-18 Hannes Domani <ssbssa@yahoo.de>
7740
7741 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7742 Handle tabs.
7743
bff8c71f
TT
77442019-03-18 Tom Tromey <tromey@adacore.com>
7745
7746 * ada-lang.c (empty_array): Add "high" parameter.
7747 (ada_evaluate_subexp): Update.
7748
58785d98
ST
77492019-03-17 Sergei Trofimovich <siarheit@google.com>
7750
7751 * unittests/string_view-selftests.c: Define
7752 _initialize_string_view_selftests unconditionally.
7753
d4cbef22
ВМ
77542019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7755
7756 PR gdb/24350
7757 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7758
fce4c071
ВМ
77592019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7760
7761 PR gdb/24351
7762 * windows-nat.c (display_selector): Fix format specifiers.
7763
f7f0a123
EZ
77642019-03-17 Eli Zaretskii <eliz@gnu.org>
7765
7766 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7767 tui_refill_source_window instead of tui_refresh_win, to update the
7768 current execution line. This fixes redisplay of the current line
7769 when stepping through the code with "next" or "step".
7770
ab42892f
EZ
77712019-03-16 Eli Zaretskii <eliz@gnu.org>
7772
7773 * source-cache.c (source_cache::get_source_lines): Call
7774 find_source_lines to initialize s->nlines. This fixes vertical
7775 scrolling of TUI source window when the DOWN arrow is pressed.
7776
8d8c087f
PW
77772019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7778
7779 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7780 linux-thread-db.c (_initialize_thread_db): Likewise.
7781
798e1c30
EZ
77822019-03-16 Eli Zaretskii <eliz@gnu.org>
7783
7784 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7785 wclrtoeol in tui_show_source_line". This reverts changes made in
7786 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7787
eefba3da
TT
77882019-03-15 Tom Tromey <tom@tromey.com>
7789
7790 * symtab.h (struct minimal_symbol): Derive from
7791 general_symbol_info.
7792 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7793 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7794 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7795 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7796 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7797 (MSYMBOL_SEARCH_NAME): Update.
7798 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7799 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7800 * minsyms.c (minimal_symbol_reader::record_full): Update.
7801
0de2420c
TT
78022019-03-15 Tom Tromey <tom@tromey.com>
7803
7804 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7805
042d75e4
TT
78062019-03-15 Tom Tromey <tom@tromey.com>
7807
7808 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7809 unique_xmalloc_ptr.
7810 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7811 Update.
7812 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7813 (build_minimal_symbol_hash_tables)
7814 (minimal_symbol_reader::install): Update.
7815
db92718b
TT
78162019-03-15 Tom Tromey <tom@tromey.com>
7817
7818 * symtab.c (create_demangled_names_hash): Update.
7819 (symbol_set_names): Update.
7820 * objfiles.h (struct objfile_per_bfd_storage)
7821 <demangled_names_hash>: Now an htab_up.
7822 * objfiles.c (objfile_per_bfd_storage): Simplify.
7823
d6797f46
TT
78242019-03-15 Tom Tromey <tom@tromey.com>
7825
7826 * objfiles.h (struct objfile_per_bfd_storage): Declare
7827 destructor.
7828 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7829 New.
7830 (get_objfile_bfd_data): Use new. Don't initialize
7831 language_of_main.
7832 (free_objfile_per_bfd_storage): Remove.
7833 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7834
741d7538
TT
78352019-03-15 Tom Tromey <tom@tromey.com>
7836
7837 * symfile.c (reread_symbols): Update.
7838 * objfiles.c (objfile::objfile): Update.
7839 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7840 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7841 comment.
7842 (minimal_symbol_reader::install): Update.
7843 (terminate_minimal_symbol_table): Remove.
7844 * jit.c (jit_object_close_impl): Update.
7845
788c80d1
TT
78462019-03-15 Tom Tromey <tom@tromey.com>
7847
7848 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7849 initializations.
7850
1b7a07cb
TT
78512019-03-15 Tom Tromey <tom@tromey.com>
7852
7853 * objfiles.h (struct objfile_per_bfd_storage)
7854 <demangled_hash_languages>: Now a bitset.
7855 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7856 (lookup_minimal_symbol): Update.
7857
3db066bc
TT
78582019-03-15 Tom Tromey <tom@tromey.com>
7859
7860 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7861 Don't return the symbol.
7862 * coffread.c (record_minimal_symbol): Use record_full.
7863
3fff2c37
EZ
78642019-03-14 Eli Zaretskii <eliz@gnu.org>
7865
7866 The MS-Windows port of ncurses fails to switch to a color pair if
7867 one or both of the colors are the implicit default colors. This
7868 change records the default colors when TUI is initialized, and
7869 then specifies them explicitly when a color pair uses the default
7870 colors. This allows color styling in TUI mode on MS-Windows.
7871
7872 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7873 ncurses_norm_attr.
7874 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7875 colors in ncurses_norm_attr.
7876 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7877 "none", replace it with the default color recorded in
7878 ncurses_norm_attr.
7879
3b336828
TT
78802019-03-14 Tom Tromey <tromey@adacore.com>
7881
7882 * source-cache.h (class source_cache) <get_source_lines>: Return
7883 std::string.
7884 * source-cache.c (source_cache::extract_lines): Handle case where
7885 first_pos==npos. Return std::string.
7886 (source_cache::get_source_lines): Update.
7887
d085f989
TT
78882019-03-14 Tom Tromey <tromey@adacore.com>
7889
7890 * NEWS: Add item for "style sources" commands.
7891 * source-cache.c (source_cache::get_source_lines): Check
7892 source_styling.
7893 * cli/cli-style.c (source_styling): New global.
7894 (_initialize_cli_style): Add "style sources" commands.
7895 (show_style_sources): New function.
7896 * cli/cli-style.h (source_styling): Declare.
7897
6f11e682
TT
78982019-03-14 Pedro Alves <palves@redhat.com>
7899 Tom Tromey <tromey@adacore.com>
7900
7901 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7902 * tui/tui-winsource.c (tui_refill_source_window): New function,
7903 from...
7904 (tui_horizontal_source_scroll): ... here. Move some logic.
7905 * cli/cli-style.c (set_style_enabled): Notify new observable.
7906 * tui/tui-hooks.c (tui_redisplay_source): New function.
7907 (tui_attach_detach_observers): Attach or detach
7908 tui_redisplay_source.
7909 * observable.h (source_styling_changed): New observable.
7910 * observable.c: Define source_styling_changed observable.
7911
a068643d
TT
79122019-03-13 Tom Tromey <tromey@adacore.com>
7913
7914 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7915 (i386_gnu_nat_target::store_registers): Update.
7916 * target-debug.h (target_debug_print_std_string): New macro.
7917 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7918 * windows-tdep.c (display_one_tib): Update.
7919 * tui/tui-stack.c (tui_make_status_line): Update.
7920 * top.c (print_inferior_quit_action): Update.
7921 * thread.c (thr_try_catch_cmd): Update.
7922 (add_thread_with_info): Update.
7923 (thread_target_id_str): Update.
7924 (thr_try_catch_cmd): Update.
7925 (thread_command): Update.
7926 (thread_find_command): Update.
7927 * record-btrace.c (record_btrace_target::info_record)
7928 (record_btrace_resume_thread, record_btrace_target::resume)
7929 (record_btrace_cancel_resume, record_btrace_step_thread)
7930 (record_btrace_target::wait, record_btrace_target::wait)
7931 (record_btrace_target::wait, record_btrace_target::stop): Update.
7932 * progspace.c (print_program_space): Update.
7933 * process-stratum-target.c
7934 (process_stratum_target::thread_address_space): Update.
7935 * linux-fork.c (linux_fork_mourn_inferior)
7936 (detach_checkpoint_command, info_checkpoints_command)
7937 (linux_fork_context): Update.
7938 (linux_fork_detach): Update.
7939 (class scoped_switch_fork_info): Update.
7940 (delete_checkpoint_command): Update.
7941 * infrun.c (follow_fork_inferior): Update.
7942 (follow_fork_inferior): Update.
7943 (proceed_after_vfork_done): Update.
7944 (handle_vfork_child_exec_or_exit): Update.
7945 (follow_exec): Update.
7946 (displaced_step_prepare_throw): Update.
7947 (displaced_step_restore): Update.
7948 (start_step_over): Update.
7949 (resume_1): Update.
7950 (clear_proceed_status_thread): Update.
7951 (proceed): Update.
7952 (print_target_wait_results): Update.
7953 (do_target_wait): Update.
7954 (context_switch): Update.
7955 (stop_all_threads): Update.
7956 (restart_threads): Update.
7957 (finish_step_over): Update.
7958 (handle_signal_stop): Update.
7959 (switch_back_to_stepped_thread): Update.
7960 (keep_going_pass_signal): Update.
7961 (print_exited_reason): Update.
7962 (normal_stop): Update.
7963 * inferior.c (inferior_pid_to_str): Change return type.
7964 (print_selected_inferior): Update.
7965 (add_inferior): Update.
7966 (detach_inferior): Update.
7967 * dummy-frame.c (fprint_dummy_frames): Update.
7968 * dcache.c (dcache_info_1): Update.
7969 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7970 (btrace_fetch, btrace_clear): Update.
7971 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7972 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7973 type.
7974 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7975 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7976 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7977 * gdbarch.c, gdbarch.h: Rebuild.
7978 * gdbarch.sh (core_pid_to_str): Change return type.
7979 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7980 return type.
7981 (windows_nat_target::pid_to_str): Change return type.
7982 (windows_delete_thread): Update.
7983 (windows_nat_target::attach): Update.
7984 (windows_nat_target::files_info): Update.
7985 * target-delegates.c: Rebuild.
7986 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7987 return type.
7988 (sol_thread_target::pid_to_str): Change return type.
7989 * remote.c (class remote_target) <pid_to_str>: Change return
7990 type.
7991 (remote_target::pid_to_str): Change return type.
7992 (extended_remote_target::attach, remote_target::remote_stop_ns)
7993 (remote_target::remote_notif_remove_queued_reply)
7994 (remote_target::push_stop_reply, remote_target::disable_btrace):
7995 Update.
7996 (extended_remote_target::attach): Update.
7997 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7998 type.
7999 (gdbsim_target::pid_to_str): Change return type.
8000 * ravenscar-thread.c (struct ravenscar_thread_target)
8001 <pid_to_str>: Change return type.
8002 (ravenscar_thread_target::pid_to_str): Change return type.
8003 * procfs.c (class procfs_target) <pid_to_str>: Change return
8004 type.
8005 (procfs_target::pid_to_str): Change return type.
8006 (procfs_target::attach): Update.
8007 (procfs_target::detach): Update.
8008 (procfs_target::fetch_registers): Update.
8009 (procfs_target::store_registers): Update.
8010 (procfs_target::wait): Update.
8011 (procfs_target::files_info): Update.
8012 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8013 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8014 return type.
8015 (nto_procfs_target::pid_to_str): Change return type.
8016 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8017 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8018 return type.
8019 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8020 (exit_lwp): Update.
8021 (attach_proc_task_lwp_callback, get_detach_signal)
8022 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8023 (linux_nat_target::resume, wait_lwp, stop_callback)
8024 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8025 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8026 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8027 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8028 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8029 type.
8030 (inf_ptrace_target::attach): Update.
8031 (inf_ptrace_target::files_info): Update.
8032 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8033 type.
8034 (go32_nat_target::pid_to_str): Change return type.
8035 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8036 (gnu_nat_target::wait): Update.
8037 (gnu_nat_target::wait): Update.
8038 (gnu_nat_target::resume): Update.
8039 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8040 (fbsd_nat_target::wait): Update.
8041 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8042 type.
8043 (darwin_nat_target::attach): Update.
8044 * corelow.c (class core_target) <pid_to_str>: Change return type.
8045 (core_target::pid_to_str): Change return type.
8046 * target.c (normal_pid_to_str): Change return type.
8047 (default_pid_to_str): Likewise.
8048 (target_pid_to_str): Change return type.
8049 (target_translate_tls_address): Update.
8050 (target_announce_detach): Update.
8051 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8052 return type.
8053 (bsd_uthread_target::pid_to_str): Change return type.
8054 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8055 type.
8056 (bsd_kvm_target::pid_to_str): Change return type.
8057 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8058 return type.
8059 (aix_thread_target::pid_to_str): Change return type.
8060 * target.h (struct target_ops) <pid_to_str>: Change return type.
8061 (target_pid_to_str, normal_pid_to_str): Likewise.
8062 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8063 type.
8064 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8065 type.
8066 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8067 return type.
8068 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8069 type.
8070 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8071 type.
8072 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8073 return type.
8074
b4be1b06
SM
80752019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8076
8077 * NEWS: Mention that the new default MI version is 3. Mention
8078 changes to the output of commands and events that deal with
8079 multi-location breakpoints.
8080 * breakpoint.c: Include "mi/mi-out.h".
8081 (print_one_breakpoint): Change output syntax if using MI version
8082 >= 3.
8083 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8084 New.
8085 (mi_multi_location_breakpoint_output_fixed): New.
8086 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8087 (mi_cmd_fix_multi_location_breakpoint_output): New.
8088 (mi_multi_location_breakpoint_output_fixed): New.
8089 * mi/mi-cmds.c (mi_cmds): Register command
8090 -fix-multi-location-breakpoint-output.
8091 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8092 interpreter "mi".
8093
8e5e5494
SM
80942019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8095
8096 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8097 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8098 instantiate mi_ui_out based on interpreter name.
8099 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8100 * mi/mi-main.c (mi_load_progress): Likewise.
8101
197df35e
JB
81022019-03-12 John Baldwin <jhb@FreeBSD.org>
8103
8104 * NEWS: Combine separate "New targets" sections for 8.3.
8105
8399425f
JB
81062019-03-12 John Baldwin <jhb@FreeBSD.org>
8107
8108 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8109 (ppcfbsd_init_abi): Install gdbarch
8110 "fetch_tls_load_module_address" and "get_thread_local_address"
8111 methods.
8112
b0f87ed0
JB
81132019-03-12 John Baldwin <jhb@FreeBSD.org>
8114
8115 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8116 (riscv_fbsd_init_abi): Install gdbarch
8117 "fetch_tls_load_module_address" and "get_thread_local_address"
8118 methods.
8119
ce25aa57
JB
81202019-03-12 John Baldwin <jhb@FreeBSD.org>
8121
8122 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8123 (i386fbsd_init_abi): Install gdbarch
8124 "fetch_tls_load_module_address" and "get_thread_local_address"
8125 methods.
8126
f5424cfa
JB
81272019-03-12 John Baldwin <jhb@FreeBSD.org>
8128
8129 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8130 (amd64fbsd_init_abi): Install gdbarch
8131 "fetch_tls_load_module_address" and "get_thread_local_address"
8132 methods.
8133
945f3901
JB
81342019-03-12 John Baldwin <jhb@FreeBSD.org>
8135
8136 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8137 (struct fbsd_pspace_data): New type.
8138 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8139 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8140 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8141 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8142 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8143
ef0bd204
JB
81442019-03-12 John Baldwin <jhb@FreeBSD.org>
8145
8146 * gdbtypes.c (lookup_struct_elt): New function.
8147 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8148 * gdbtypes.h (struct struct_elt): New type.
8149 (lookup_struct_elt): New prototype.
8150
36c53a02
JB
81512019-03-12 John Baldwin <jhb@FreeBSD.org>
8152
8153 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8154 remove disabled code block.
8155
6e056c81
JB
81562019-03-12 John Baldwin <jhb@FreeBSD.org>
8157
8158 * gdbarch.sh (get_thread_local_address): New method.
8159 * gdbarch.h, gdbarch.c: Regenerate.
8160 * target.c (target_translate_tls_address): Use
8161 gdbarch_get_thread_local_address if present instead of
8162 target::get_thread_local_address.
8163
cd250a18
JB
81642019-03-12 John Baldwin <jhb@FreeBSD.org>
8165
8166 * target.h (target::get_thread_local_address): Update comment.
8167
df22c1e5
JB
81682019-03-12 John Baldwin <jhb@FreeBSD.org>
8169
8170 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8171 objfile->separate_debug_objfile_backlink if not NULL.
8172
dd6876c9
JB
81732019-03-12 John Baldwin <jhb@FreeBSD.org>
8174
8175 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8176 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8177 (amd64bsd_store_inferior_registers): Likewise.
8178 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8179 Enable segment base registers.
8180 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8181 PT_GETFSBASE and PT_GETGSBASE.
8182 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8183 PT_SETGSBASE.
8184 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8185 segment base registers.
8186 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8187
1163a4b7
JB
81882019-03-12 John Baldwin <jhb@FreeBSD.org>
8189
8190 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8191 Update calls to i386_target_description to add 'segments'
8192 parameter.
8193 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8194 add segment base registers.
8195 * arch/i386.c (i386_create_target_description): Add 'segments'
8196 parameter to enable segment base registers.
8197 * arch/i386.h (i386_create_target_description): Likewise.
8198 * features/i386/32bit-segments.xml: New file.
8199 * features/i386/32bit-segments.c: Generate.
8200 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8201 call to i386_target_description to add 'segments' parameter.
8202 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8203 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8204 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8205 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8206 if feature is present.
8207 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8208 Add 'segments' parameter to call to i386_target_description.
8209 (i386_target_description): Add 'segments' parameter to enable
8210 segment base registers.
8211 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8212 to call to i386_target_description.
8213 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8214 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8215 Define I386_NUM_REGS.
8216 (i386_target_description): Add 'segments' parameter to enable
8217 segment base registers.
8218
3a350822
EZ
82192019-03-12 Eli Zaretskii <eliz@gnu.org>
8220
8221 PR/24325
8222 * source-cache.c: #undef open and close, to avoid unresolved
8223 externals during linking.
8224
ffdd69cf
TT
82252019-03-12 Tom Tromey <tromey@adacore.com>
8226
8227 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8228 const. Add initializers.
8229 (_initialize_remote): Don't initialize ptid globals.
8230
ec148c57
PA
82312019-03-12 Pedro Alves <palves@redhat.com>
8232
8233 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8234
32764270
PA
82352019-03-12 Pedro Alves <palves@redhat.com>
8236
8237 * cp-name-parser.y (main): Remove unused 'len' variable.
8238
17547186
TT
82392019-03-12 Tom Tromey <tromey@adacore.com>
8240
8241 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8242 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8243
d3a70e03
TT
82442019-03-12 Tom Tromey <tromey@adacore.com>
8245
8246 * linux-nat.c (iterate_over_lwps): Update.
8247 (stop_callback): Remove parameter.
8248 (stop_wait_callback, detach_callback, resume_set_callback)
8249 (select_singlestep_lwp_callback, set_ignore_sigint)
8250 (status_callback, resumed_callback, resume_clear_callback)
8251 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8252 data parameter.
8253 (linux_nat_target::detach, linux_nat_target::resume)
8254 (linux_stop_and_wait_all_lwps, select_event_lwp)
8255 (linux_nat_filter_event, linux_nat_wait_1)
8256 (linux_nat_target::kill, linux_nat_target::stop)
8257 (linux_nat_target::stop): Update.
8258 (linux_nat_resume_callback): Change type.
8259 (resume_stopped_resumed_lwps, count_events_callback)
8260 (select_event_lwp_callback): Likewise.
8261 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8262 * arm-linux-nat.c (struct update_registers_data): Remove.
8263 (update_registers_callback): Change type.
8264 (arm_linux_insert_hw_breakpoint1): Update.
8265 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8266 parameter.
8267 (x86_linux_dr_set_addr): Update.
8268 (x86_linux_dr_set_control): Update.
8269 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8270 (iterate_over_lwps): Use gdb::function_view.
8271 * nat/aarch64-linux-hw-point.c (struct
8272 aarch64_dr_update_callback_param): Remove.
8273 (debug_reg_change_callback): Change type.
8274 (aarch64_notify_debug_reg_change): Update.
8275 * s390-linux-nat.c (s390_refresh_per_info): Update.
8276
82cb27ff
TT
82772019-03-11 Tom Tromey <tromey@adacore.com>
8278
8279 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8280 redundant assignment to "this_cu".
8281
568c0683
SM
82822019-03-08 Simon Marchi <simon.marchi@efficios.com>
8283
8284 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8285
f09ce22d
SM
82862019-03-08 Simon Marchi <simon.marchi@efficios.com>
8287
8288 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8289 from...
8290 (rank_one_type): ... this.
8291
595f96a9
SM
82922019-03-08 Simon Marchi <simon.marchi@efficios.com>
8293
8294 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8295 from...
8296 (rank_one_type): ... this.
8297
2598a94b
SM
82982019-03-08 Simon Marchi <simon.marchi@efficios.com>
8299
8300 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8301 from...
8302 (rank_one_type): ... this.
8303
7f17b20d
SM
83042019-03-08 Simon Marchi <simon.marchi@efficios.com>
8305
8306 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8307 from...
8308 (rank_one_type): ... this.
8309
2c509035
SM
83102019-03-08 Simon Marchi <simon.marchi@efficios.com>
8311
8312 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8313 from...
8314 (rank_one_type): ... this.
8315
0dd322dc
SM
83162019-03-08 Simon Marchi <simon.marchi@efficios.com>
8317
8318 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8319 from...
8320 (rank_one_type): ... this.
8321
41ea4728
SM
83222019-03-08 Simon Marchi <simon.marchi@efficios.com>
8323
8324 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8325 from...
8326 (rank_one_type): ... this.
8327
793cd1d2
SM
83282019-03-08 Simon Marchi <simon.marchi@efficios.com>
8329
8330 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8331 from...
8332 (rank_one_type): ... this.
8333
34910087
SM
83342019-03-08 Simon Marchi <simon.marchi@efficios.com>
8335
8336 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8337 from...
8338 (rank_one_type): ... this.
8339
f1f832d6
SM
83402019-03-08 Simon Marchi <simon.marchi@efficios.com>
8341
8342 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8343 from...
8344 (rank_one_type): ... this.
8345
b9f4512f
SM
83462019-03-08 Simon Marchi <simon.marchi@efficios.com>
8347
8348 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8349 from...
8350 (rank_one_type): ... this.
8351
9293fc63
SM
83522019-03-08 Simon Marchi <simon.marchi@efficios.com>
8353
8354 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8355 from...
8356 (rank_one_type): ... this.
8357
e3abbe7e
PW
83582019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8359
8360 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8361 inferior-events' shows the example events.
8362
e4adb939
EZ
83632019-03-08 Eli Zaretskii <eliz@gnu.org>
8364
8365 Support styling on native MS-Windows console
8366
8367 PR/24315
8368 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8369 on MS-Windows if $TERM is not defined.
8370
8371 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8372
8373 * posix-hdep.c (gdb_console_fputs):
8374 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8375 functions.
8376 * ui-file.h (gdb_console_fputs): Add prototype.
8377
8378 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8379 back to fputs only if the former returns zero.
8380
25629dfd
TT
83812019-03-07 Tom Tromey <tom@tromey.com>
8382
8383 * symmisc.c (print_symbol_bcache_statistics): Update.
8384 (print_objfile_statistics): Update.
8385 * symfile.c (allocate_symtab): Update.
8386 * stabsread.c: Don't include bcache.h.
8387 * psymtab.h (struct psymbol_bcache): Don't declare.
8388 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8389 (psymbol_bcache_init, psymbol_bcache_free)
8390 (psymbol_bcache_get_bcache): Don't declare.
8391 * psymtab.c (struct psymbol_bcache): Remove.
8392 (psymtab_storage::psymtab_storage): Update.
8393 (psymtab_storage::~psymtab_storage): Update.
8394 (psymbol_bcache_init, psymbol_bcache_free)
8395 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8396 (add_psymbol_to_bcache): Update.
8397 (allocate_psymtab): Update.
8398 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8399 macro_cache>: No longer pointers.
8400 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8401 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8402 * macrotab.c (macro_bcache): Update.
8403 * macroexp.c: Don't include bcache.h.
8404 * gdbtypes.c (check_types_worklist): Update.
8405 (types_deeply_equal): Remove TRY/CATCH. Update.
8406 * elfread.c (elf_symtab_read): Update.
8407 * dwarf2read.c: Don't include bcache.h.
8408 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8409 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8410 (print_bcache_statistics, bcache_memory_used): Don't declare.
8411 (struct bcache): Move from bcache.c. Add constructor, destructor,
8412 methods. Rename all data members.
8413 * bcache.c (struct bcache): Move to bcache.h.
8414 (bcache::expand_hash_table): Rename from expand_hash_table.
8415 (bcache): Remove.
8416 (bcache::insert): Rename from bcache_full.
8417 (bcache::compare): Rename from bcache_compare.
8418 (bcache_xmalloc): Remove.
8419 (bcache::~bcache): Rename from bcache_xfree.
8420 (bcache::print_statistics): Rename from print_bcache_statistics.
8421 (bcache::memory_used): Rename from bcache_memory_used.
8422
fe726667
PA
84232019-03-07 Pedro Alves <palves@redhat.com>
8424
8425 * infrun.c (normal_stop): Also check for
8426 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8427
7584bb30
AB
84282019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * f-lang.c (value_from_host_double): Moved to...
8431 * value.c (value_from_host_double): ...here.
8432 * value.h (value_from_host_double): Declare.
8433 * guile/scm-math.c (vlscm_convert_typed_number): Use
8434 value_from_host_double.
8435 (vlscm_convert_number): Likewise.
8436 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8437 * python/py-value.c (convert_value_from_python): Likewise.
8438
a7b1986e
TT
84392019-03-06 Tom Tromey <tom@tromey.com>
8440
8441 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8442
0ccf4211
TT
84432019-03-06 Tom Tromey <tom@tromey.com>
8444
8445 * utils.h (free_current_contents): Don't declare.
8446 * utils.c (free_current_contents): Remove.
8447
fe7b42e5
TT
84482019-03-06 Tom Tromey <tom@tromey.com>
8449
8450 * top.c (quit_force): Update.
8451 * main.c (captured_command_loop): Update.
8452 * common/new-op.c (operator new): Update.
8453 * common/common-exceptions.c (struct catcher)
8454 <save_cleanup_chain>: Remove member.
8455 (exceptions_state_mc_init): Update.
8456 (exception_try_scope_entry): Return nullptr.
8457 (exception_try_scope_exit, exception_rethrow)
8458 (throw_exception_sjlj, throw_exception_cxx): Update.
8459 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8460 (all_cleanups, do_cleanups, discard_cleanups)
8461 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8462 (restore_cleanups, restore_final_cleanups): Don't declare.
8463 (do_final_cleanups): Remove parameter.
8464 * common/cleanups.c (cleanup_chain, make_cleanup)
8465 (make_cleanup_dtor, all_cleanups, do_cleanups)
8466 (discard_my_cleanups, discard_cleanups)
8467 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8468 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8469 (null_cleanup): Remove.
8470 (do_final_cleanups): Remove parameter.
8471
c6321f19
TT
84722019-03-06 Tom Tromey <tom@tromey.com>
8473
8474 * remote.c (remote_target::remote_parse_stop_reply): Use
8475 unique_xmalloc_ptr.
8476
61b30099
TT
84772019-03-06 Tom Tromey <tom@tromey.com>
8478
8479 * stabsread.c (struct stabs_field_info): Rename from field_info.
8480 <list, fnlist>: Add initializers.
8481 <obstack>: New member.
8482 (read_member_functions, read_struct_fields, read_baseclasses):
8483 Allocate on obstack. Don't use cleanups.
8484 (read_one_struct_field, read_member_functions, read_struct_fields)
8485 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8486 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8487 (read_struct_type): Update.
8488
6cceac94
TT
84892019-03-06 Tom Tromey <tom@tromey.com>
8490
8491 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8492 * common/filestuff.h (make_cleanup_close): Don't declare.
8493 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8494 Remove.
8495
72412762
TT
84962019-03-06 Tom Tromey <tom@tromey.com>
8497
8498 * solib-aix.c: Use make_scope_exit.
8499
2b6ff1c0
TT
85002019-03-06 Tom Tromey <tom@tromey.com>
8501
8502 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8503 Use make_scope_exit.
8504
d01c5877
TT
85052019-03-06 Tom Tromey <tom@tromey.com>
8506
8507 * solib-svr4.c (disable_probes_interface): Remove parameter.
8508 (svr4_handle_solib_event): Use make_scope_exit.
8509
32603266
TT
85102019-03-06 Tom Tromey <tom@tromey.com>
8511
8512 * remote.c (struct stop_reply_deleter): Remove.
8513 (stop_reply_up): Update.
8514 (struct stop_reply): Derive from notif_event. Don't typedef.
8515 <regcache>: Now a std::vector.
8516 (stop_reply_xfree): Remove.
8517 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8518 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8519 (remote_target::discard_pending_stop_replies): Use delete.
8520 (remote_target::remote_parse_stop_reply): Update.
8521 (remote_target::process_stop_reply): Update.
8522 * remote-notif.h (struct notif_event): Add virtual destructor.
8523 Remove "dtr" member.
8524 (struct notif_client) <alloc_event>: Return a unique_ptr.
8525 (notif_event_xfree): Don't declare.
8526 (notif_event_up): New typedef.
8527 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8528 (notif_event_xfree, do_notif_event_xfree): Remove.
8529 (remote_notif_state_xfree): Update.
8530
9799571e
TT
85312019-03-06 Tom Tromey <tom@tromey.com>
8532
8533 * infrun.c (displaced_step_clear_cleanup): Now a
8534 forward_scope_exit type.
8535 (displaced_step_prepare_throw): Update.
8536 (displaced_step_fixup): Update.
8537
09e3c4ca
TT
85382019-03-06 Tom Tromey <tom@tromey.com>
8539
8540 * inferior.h (class inferior): Update comment.
8541 * gdbthread.h (class thread_info): Update comment.
8542
e2a03548
TT
85432019-03-06 Joel Brobecker <brobecker@adacore.com>
8544 Tom Tromey <tom@tromey.com>
8545
8546 * stabsread.h (struct stab_section_list): Remove.
8547 (coffstab_build_psymtabs): Update.
8548 * dbxread.c (symbuf_sections): Now a std::vector.
8549 (sect_idx): New global.
8550 (fill_symbuf): Update.
8551 (coffstab_build_psymtabs): Change type of stabsects parameter.
8552 Update.
8553 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8554 std::vector.
8555 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8556 (coff_locate_sections): Update.
8557 (coff_symfile_read): Remove cleanups. Update.
8558 (init_stringtab): Add storage parameter.
8559 (free_stringtab, free_stringtab_cleanup): Remove.
8560 (init_lineno): Add storage parameter.
8561 (free_linetab, free_linetab_cleanup): Remove.
8562
b7e60d85
PA
85632019-03-06 Pedro Alves <palves@redhat.com>
8564
8565 * linux-fork.c (fork_info::clobber_regs): Delete.
8566 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8567 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8568 comment. Adjust.
8569 (scoped_switch_fork_info::scoped_switch_fork_info)
8570 (checkpoint_command, linux_fork_context): Adjust
8571 fork_save_infrun_state calls.
8572
e52c971f
PA
85732019-03-06 Pedro Alves <palves@redhat.com>
8574
8575 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8576 (inf_has_multiple_threads): Return 'bool' and rewrite using
8577 inferior_info::threads().
8578
06974e6c
PA
85792019-03-06 Pedro Alves <palves@redhat.com>
8580
8581 * linux-fork.c: Include <list>.
8582 (fork_list): Now a std::list instance.
8583 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8584 (forks_exist_p, find_last_fork): Adjust.
8585 (new_fork): Delete.
8586 (one_fork_p): New.
8587 (add_fork): Adjust.
8588 (free_fork): Delete, folded into fork_info::~fork_info().
8589 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8590 Adjust.
8591 (init_fork_list): Delete.
8592 (linux_fork_killall, linux_fork_mourn_inferior)
8593 (linux_fork_detach, info_checkpoints_command): Adjust.
8594 (_initialize_linux_fork): No longer call init_fork_list.
8595
72f31aea
PA
85962019-03-06 Pedro Alves <palves@redhat.com>
8597
8598 * linux-fork.c (new_fork): New, split out of ...
8599 (add_fork): ... this. Return void. Move "first fork" special
8600 case from here, to ...
8601 (checkpoint_command): ... here.
8602 * linux-linux.h (add_fork): Return void.
8603
efbecbc1
AB
86042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8605
8606 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8607
0841c79a
AB
86082019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8609 Chris January <chris.january@arm.com>
8610 David Lecomber <david.lecomber@arm.com>
8611
8612 * f-exp.y: New token, UNOP_INTRINSIC.
8613 (exp): New pattern using UNOP_INTRINSIC token.
8614 (f77_keywords): Add 'abs' keyword.
8615 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8616 (value_from_host_double): New function.
8617 (evaluate_subexp_f): Support UNOP_ABS.
8618
4a270568
AB
86192019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8620
8621 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8622 types.
8623
067630bd
AB
86242019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8625
8626 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8627 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8628 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8629
3be47f7a
AB
86302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8631
8632 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8633
4d00f5d8
AB
86342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8635 Chris January <chris.january@arm.com>
8636
8637 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8638 * f-exp.y: Define 'KIND' token.
8639 (exp): New pattern for KIND expressions.
8640 (ptype): Handle types with a kind extension.
8641 (direct_abs_decl): Extend to spot kind extensions.
8642 (f77_keywords): Add 'kind' to the list.
8643 (push_kind_type): New function.
8644 (convert_to_kind_type): New function.
8645 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8646 * parse.c (operator_length_standard): Likewise.
8647 * parser-defs.h (enum type_pieces): Add tp_kind.
8648 * std-operator.def: Add UNOP_KIND.
8649
e454224f
AB
86502019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8651
8652 * f-exp.y (f_parse): Set yydebug.
8653
9dad4a58
AB
86542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8655
8656 * f-lang.c (evaluate_subexp_f): New function.
8657 (exp_descriptor_f): New global.
8658 (f_language_defn): Use exp_descriptor_f instead of
8659 exp_descriptor_standard.
8660
c8f91604
AB
86612019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8662
8663 * f-exp.y (struct token): Add comments.
8664 (dot_ops): Remove uppercase versions and the end marker.
8665 (f77_keywords): Likewise.
8666 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8667 entries in the dot_ops array are case insensitive, and use
8668 strncasecmp to compare strings. Also some whitespace cleanup in
8669 this area. Similar for the f77_keywords array, except entries in
8670 this list might be case sensitive.
8671
dd9f2c76
AB
86722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8673
8674 * f-exp.y (struct f77_boolean_val): Add comments.
8675 (boolean_values): Remove uppercase versions, and end marker.
8676 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8677 and use strncasecmp to achieve case insensitivity. Additionally,
8678 perform whitespace cleanup around this code.
8679
67a3048c
TT
86802019-03-06 Tom Tromey <tromey@adacore.com>
8681
8682 * remote-sim.c (gdbsim_target_open): Use result of
8683 gdb_argv::release.
8684
aa3cfbda
RB
86852019-03-06 Richard Bunt <richard.bunt@arm.com>
8686 Dirk Schubert <dirk.schubert@arm.com>
8687 Chris January <chris.january@arm.com>
8688
8689 * eval.c (evaluate_subexp_standard): Call Fortran argument
8690 wrapping logic.
8691 * f-lang.c (struct value): A value which can be passed into a
8692 Fortran function call.
8693 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8694 where appropriate.
8695 (struct type): Value ready for a Fortran function call.
8696 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8697 is needed.
8698 * f-lang.h (fortran_argument_convert): Declaration.
8699 (fortran_preserve_arg_pointer): Declaration.
8700 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8701
ea38e5df
TT
87022019-03-05 Tom Tromey <tromey@adacore.com>
8703
8704 * python/py-prettyprint.c (print_string_repr): Remove #if.
8705 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8706
06b5b831
TT
87072019-03-05 Tom Tromey <tromey@adacore.com>
8708
8709 * target.c (the_dummy_target): Move later. Change type to
8710 "dummy_target".
8711 (initialize_targets): Don't initialize the_dummy_target.
8712
edbd9e45
TT
87132019-03-05 Tom Tromey <tromey@adacore.com>
8714
8715 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8716 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8717
c119e040
TT
87182019-03-05 Tom Tromey <tromey@adacore.com>
8719
8720 * windows-nat.c (windows_nat_target::attach)
8721 (windows_nat_target::detach): Don't call gdb_flush.
8722 * valprint.c (generic_val_print, val_print, val_print_string):
8723 Don't call gdb_flush.
8724 * utils.c (defaulted_query): Don't call gdb_flush.
8725 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8726 * target.c (target_announce_detach): Don't call gdb_flush.
8727 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8728 * remote.c (extended_remote_target::attach): Don't call
8729 gdb_flush.
8730 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8731 * printcmd.c (do_examine): Don't call gdb_flush.
8732 (info_display_command): Don't call gdb_flush.
8733 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8734 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8735 * memattr.c (info_mem_command): Don't call gdb_flush.
8736 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8737 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8738 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8739 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8740 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8741 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8742 (gnu_nat_target::detach): Don't call gdb_flush.
8743 * f-valprint.c (f_val_print): Don't call gdb_flush.
8744 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8745 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8746 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8747 gdb_flush.
8748 * c-valprint.c (c_val_print): Don't call gdb_flush.
8749 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8750
895dafa6
TT
87512019-03-05 Tom Tromey <tromey@adacore.com>
8752
8753 * varobj.c (update_dynamic_varobj_children): Update.
8754 (install_default_visualizer): Use reset, not release.
8755 * value.c (set_internalvar): Update.
8756 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8757 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8758 ATTRIBUTE_UNUSED_RESULT.
8759
88a774b9
TT
87602019-03-05 Tom Tromey <tromey@adacore.com>
8761
8762 * remote.c (class scoped_remote_fd) <release>: Add
8763 ATTRIBUTE_UNUSED_RESULT.
8764
4e4a8b93
TT
87652019-03-05 Tom Tromey <tromey@adacore.com>
8766
8767 * macroexp.c (struct macro_buffer) <release>: Add
8768 ATTRIBUTE_UNUSED_RESULT.
8769
083eef1f
TT
87702019-03-05 Tom Tromey <tromey@adacore.com>
8771
8772 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8773 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8774 ATTRIBUTE_UNUSED_RESULT.
8775
3cabd438
TT
87762019-03-05 Tom Tromey <tromey@adacore.com>
8777
8778 * common/scoped_fd.h (class scoped_fd) <release>: Add
8779 ATTRIBUTE_UNUSED_RESULT.
8780
41e3300a
TT
87812019-03-05 Tom Tromey <tromey@adacore.com>
8782
8783 * parser-defs.h (struct parser_state) <release>: Add
8784 ATTRIBUTE_UNUSED_RESULT.
8785
18cb7c9f
TT
87862019-03-05 Tom Tromey <tromey@adacore.com>
8787
8788 * utils.h (class gdb_argv) <release>: Add
8789 ATTRIBUTE_UNUSED_RESULT.
8790 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8791
41fa577f
EZ
87922019-03-02 Eli Zaretskii <eliz@gnu.org>
8793
a6a4b2c6
EZ
8794 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8795 for-loop range, to avoid compiler warnings.
8796
8797 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8798 avoid compiler warnings about unused variables.
8799
742a7df5
EZ
8800 * NEWS: Mention end of support for native debugging on MS-Windows
8801 before XP.
8802
41fa577f
EZ
8803 PR gdb/24292
8804 * common/netstuff.c:
8805 * gdbserver/gdbreplay.c
8806 * gdbserver/remote-utils.c:
8807 * ser-tcp.c:
8808 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8809 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8810 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8811 'getaddrinfo' and 'freeaddrinfo' were not available before
8812 Windows XP, and mingw.org's MinGW headers by default define
8813 _WIN32_WINNT to 0x500.
8814
827f438f
GB
88152019-03-01 Gary Benson <gbenson@redhat.com>
8816
8817 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8818
92137da0
RO
88192019-02-28 Brian Vandenberg <phantall@gmail.com>
8820 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8821
8822 PR gdb/8527
8823 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8824 set_sigint_trap, clear_sigint_trap.
8825
799efbe8
PW
88262019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8827
8828 * target.c (target_detach): Clear the regcache and the
8829 frame cache.
8830
8ed25214
PA
88312019-02-27 Pedro Alves <palves@redhat.com>
8832
8833 * utils.c (set_screen_size): When we cap the height/width sizes,
8834 tweak the corresponding command variable to show "unlimited":
8835
23031e31
SJ
88362019-02-27 Saagar Jha <saagar@saagarjha.com>
8837 Pedro Alves <palves@redhat.com>
8838
8839 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8840 before calling rl_set_screen_size.
8841
6c28e44a
TT
88422019-02-27 Tom Tromey <tromey@adacore.com>
8843
8844 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8845 define.
8846 * python/py-value.c: Remove Python 2.4 workaround.
8847 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8848 workaround.
8849 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8850 Python 2.4 workaround.
8851 * python/python-internal.h: Remove Python 2.4 comment.
8852 (Py_ssize_t): Don't define.
8853 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8854 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8855 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8856 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8857 * python/python.c (do_start_initialization): Remove Python 2.4
8858 workaround.
8859 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8860 (print_children): Remove Python 2.4 workaround.
8861 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8862 workaround.
8863 (CHARBUFFERPROC_NAME): Remove.
8864 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8865 Python 2.4 workaround.
8866
2c3fc25d 88672019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8868
2c3fc25d
KB
8869 * NEWS: Note minimum Python version.
8870
6ca62222
KB
88712019-02-27 Kevin Buettner <kevinb@redhat.com>
8872
8873 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8874 code from these functions. Remove corresponding ifdefs. Use
8875 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8876 Remove gotos and target of gotos.
8877 (infpy_search_memory): Likewise.
8878
f4bc7d2c
AB
88792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8880
8881 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8882 (hppa_gdbarch_init): Don't register deleted functions with
8883 gdbarch.
8884
9734a586
AB
88852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8886
8887 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8888 (h8300_unwind_sp): Delete.
8889 (h8300_dummy_id): Delete.
8890 (h8300_gdbarch_init): Don't register deleted functions with
8891 gdbarch.
8892
68b867f3
AB
88932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8894
8895 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8896 (ft32_unwind_pc): Delete.
8897 (ft32_unwind_sp): Delete.
8898 (ft32_gdbarch_init): Don't register deleted functions with
8899 gdbarch.
8900
2fbe7ad0
AB
89012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8902
8903 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8904 (frv_unwind_pc): Delete.
8905 (frv_unwind_sp): Delete.
8906 (frv_gdbarch_init): Don't register deleted functions with
8907 gdbarch.
8908
76055cbe
AB
89092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8910
8911 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8912 (riscv_unwind_pc): Delete.
8913 (riscv_unwind_sp): Delete.
8914 (riscv_gdbarch_init): Don't register deleted functions with
8915 gdbarch.
8916
4133e5a1
AB
89172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8918
8919 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8920 (csky_unwind_pc): Delete.
8921 (csky_unwind_sp): Delete.
8922 (csky_gdbarch_init): Don't register deleted functions with
8923 gdbarch.
8924
8010f576
AB
89252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8926
8927 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8928 (cris_unwind_pc): Delete.
8929 (cris_unwind_sp): Delete.
8930 (cris_gdbarch_init): Don't register deleted functions with
8931 gdbarch.
8932
b56bf084
AB
89332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8934
8935 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8936 (bfin_unwind_pc): Delete.
8937 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8938
a19a650f
AB
89392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8940
8941 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8942 (arm_unwind_pc): Delete.
8943 (arm_unwind_sp): Delete.
8944 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8945
f8278c3c
AB
89462019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8947
8948 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8949 (arc_unwind_pc): Delete.
8950 (arc_unwind_sp): Delete.
8951 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8952
480e46cf
AB
89532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8954
8955 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8956 (alpha_unwind_pc): Delete.
8957 (alpha_gdbarch_init): Don't register deleted functions with
8958 gdbarch.
8959
7a995095
AB
89602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8961
8962 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8963 (aarch64_unwind_pc): Delete.
8964 (aarch64_unwind_sp): Delete.
8965 (aarch64_gdbarch_init): Don't register deleted functions with
8966 gdbarch.
8967
bf9a735e
AB
89682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8969
8970 * gdbtypes.c (type_align): Don't consider static members when
8971 computing structure alignment.
8972
5561fc30
AB
89732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8974
8975 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8976 return 0 for other types.
8977 * arch-utils.c (default_type_align): Always return 0.
8978 * gdbarch.h: Regenerate.
8979 * gdbarch.sh (type_align): Extend comment.
8980 * gdbtypes.c (type_align): Add additional comments, always call
8981 gdbarch_type_align before applying the default rules.
8982 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8983 generic code will then apply a suitable default.
8984 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8985 types, return 0 for other types.
8986
9335e75a
JB
89872019-02-27 Joel Brobecker <brobecker@adacore.com>
8988
8989 * NEWS: Create a new section for the next release branch.
8990 Rename the section of the current branch, now that it has
8991 been cut.
8992
3d34d8de
JB
89932019-02-27 Joel Brobecker <brobecker@adacore.com>
8994
8995 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8996 * version.in: Bump version to 8.3.50.DATE-git.
8997
143420fb
SM
89982019-02-26 Simon Marchi <simon.marchi@efficios.com>
8999
9000 * aix-thread.c (ptid_cmp): Remove unused variable.
9001 (get_signaled_thread): Likewise.
9002 (store_regs_user_thread): Likewise.
9003 (store_regs_kernel_thread): Likewise.
9004 (fetch_regs_kernel_thread): Remove shadowed variable.
9005
172fb711
AB
90062019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9007
9008 * features/riscv/32bit-cpu.xml: Add register numbers.
9009 * features/riscv/32bit-fpu.c: Regenerate.
9010 * features/riscv/32bit-fpu.xml: Add register numbers.
9011 * features/riscv/64bit-cpu.xml: Add register numbers.
9012 * features/riscv/64bit-fpu.c: Regenerate.
9013 * features/riscv/64bit-fpu.xml: Add register numbers.
9014
26c89782
KB
90152019-02-26 Kevin Buettner <kevinb@redhat.com>
9016
af54ade9 9017 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
9018 * python/py-value.c (convert_buffer_and_type_to_value): New
9019 function.
9020 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9021 Add support for handling an optional second argument. Call
9022 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
9023 * python/python-internal.h (Py_buffer_deleter): New struct.
9024 (Py_buffer_up): New typedef.
9025
0f58c9e8
JB
90262019-02-25 John Baldwin <jhb@FreeBSD.org>
9027
9028 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9029 instead of releasing ownership.
9030
0a0f4c01
JR
90312019-02-25 Jordan Rupprecht <rupprecht@google.com>
9032
9033 * dwarf2read.c (open_and_init_dwp_file): Call
9034 elf_numsections instead of bfd_count_sections to initialize
9035 dwp_file->num_sections.
9036
cd5a152c
TT
90372019-02-25 Tom Tromey <tromey@adacore.com>
9038
9039 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9040
8a6a8513
SDJ
90412019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9042
9043 * gcore.in: Add '--readnever' option when invoking GDB.
9044
04dcda9c
SM
90452019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9046
9047 * MAINTAINERS: Update my email address.
9048
07bc701d
SM
90492019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9050
9051 * build-id.c (build_id_to_debug_bfd_1): New function.
9052 (build_id_to_debug_bfd): Look for separate debug file in
9053 sysroot.
9054
c6f4a5d0
AB
90552019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9056
9057 * gdbarch.sh: Update the copyright year range that is placed into
9058 generated files.
9059
9600246d
KS
90602019-02-22 Keith Seitz <keiths@redhat.com>
9061
9062 PR symtab/23853
9063 * linespec.c (create_sals_line_offset): Search for the default
9064 symtab's filename instead of its fullname.
9065
7557a514
AH
90662019-02-21 Alan Hayward <alan.hayward@arm.com>
9067
9068 * NEWS: Update style defaults.
9069
ee2bcb0c
AH
90702019-02-21 Alan Hayward <alan.hayward@arm.com>
9071
9072 * main.c (captured_main_1): Disable styling in batch mode.
9073
0c95f9ed
TT
90742019-02-20 Tom Tromey <tom@tromey.com>
9075
9076 * symtab.c (symtab_symbol_info): Fix typos.
9077
c763b894
TT
90782019-02-20 Tom Tromey <tromey@adacore.com>
9079
9080 * findcmd.c (_initialize_mem_search): Use upper case for
9081 metasyntactic variables.
9082
0ef8a082
AH
90832019-02-20 Alan Hayward <alan.hayward@arm.com>
9084
9085 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9086 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9087
6caa91b6
SM
90882019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9089
9090 * top.h (source_file_name): Change to std::string.
9091 * top.c (source_file_name): Likewise.
9092 (command_line_input): Adjust.
9093 * cli/cli-script.c (script_from_file): Adjust.
9094
98814c6c
TT
90952019-02-19 Tom Tromey <tromey@adacore.com>
9096
9097 * ravenscar-thread.c
9098 (ravenscar_thread_target::update_thread_list): Don't call
9099 ada_build_task_list.
9100 * ada-lang.h (ada_build_task_list): Don't declare.
9101 * ada-tasks.c (struct ada_tasks_inferior_data)
9102 <task_list_valid_p>: Now bool.
9103 (read_known_tasks, ada_task_list_changed)
9104 (ada_tasks_invalidate_inferior_data): Update.
9105 (read_known_tasks_array): Return bool.
9106 (read_known_tasks_list): Likewise.
9107 (read_known_tasks): Return void.
9108 (ada_build_task_list): Now static.
9109
70cd633e
AB
91102019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9111
9112 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9113 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9114
040b3e95
PW
91152019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9116
9117 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9118 variant for ada_tasks_pspace_data_handle and
9119 ada_tasks_inferior_data_handle.
9120 (ada_tasks_pspace_data_cleanup): New function.
9121 (ada_tasks_inferior_data_cleanup): New function.
9122
9409233b
TT
91232019-02-17 Tom Tromey <tom@tromey.com>
9124
9125 * macrotab.h (macro_source_fullname): Return a std::string.
9126 * macrotab.c (macro_include, check_for_redefinition)
9127 (macro_undef, macro_lookup_definition, foreach_macro)
9128 (foreach_macro_in_scope): Update.
9129 (macro_source_fullname): Return a std::string.
9130 * macrocmd.c (show_pp_source_pos): Update.
9131
6506371f
TT
91322019-02-17 Tom Tromey <tom@tromey.com>
9133
9134 * macrocmd.c (show_pp_source_pos): Style the file names.
9135
0c820d67
TT
91362019-02-17 Tom Tromey <tom@tromey.com>
9137
9138 PR tui/24197:
9139 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9140
a0087920
TT
91412019-02-17 Tom Tromey <tom@tromey.com>
9142
9143 * ada-lang.c (user_select_syms): Use filtered printing.
9144 * utils.c (wrap_style): New global.
9145 (desired_style): Remove.
9146 (emit_style_escape): Add stream parameter.
9147 (set_output_style, reset_terminal_style, prompt_for_continue):
9148 Update.
9149 (flush_wrap_buffer): Only flush gdb_stdout.
9150 (wrap_here): Set wrap_style.
9151 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9152 treat escape sequences as a character. Change when wrap buffer is
9153 flushed.
9154 (fputs_styled): Do not set the output style when the default is
9155 requested.
9156 * ui-style.h (struct ui_file_style) <is_default>: New method.
9157 * source.c (print_source_lines_base): Emit escape sequences in one
9158 piece.
9159
75ba10dc
JB
91602019-02-17 Joel Brobecker <brobecker@adacore.com>
9161
9162 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9163 integers and enumeration types.
9164
a2cd4f14
JB
91652019-02-17 Joel Brobecker <brobecker@adacore.com>
9166
9167 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9168 instead of lookup_symbol_in_language
9169 (do_exact_match): New function.
9170 (ada_get_symbol_name_matcher): Return do_exact_match when
9171 doing a verbatim match.
9172
485b851b
TT
91732019-02-15 Tom Tromey <tromey@adacore.com>
9174
9175 * ravenscar-thread.c (ravenscar_thread_target::resume)
9176 (ravenscar_thread_target::wait): Special case wildcard requests.
9177
0b790b1e
TT
91782019-02-15 Tom Tromey <tromey@adacore.com>
9179
9180 * ravenscar-thread.c (base_ptid): Remove.
9181 (struct ravenscar_thread_target) <close>: New method.
9182 <m_base_ptid>: New member.
9183 <update_inferior_ptid, active_task, task_is_currently_active,
9184 runtime_initialized>: Declare methods.
9185 <ravenscar_thread_target>: Add constructor.
9186 (ravenscar_thread_target::task_is_currently_active)
9187 (ravenscar_thread_target::update_inferior_ptid)
9188 (ravenscar_runtime_initialized): Rename. Now methods.
9189 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9190 (ravenscar_thread_target::update_thread_list): Update.
9191 (ravenscar_thread_target::active_task): Now method.
9192 (ravenscar_thread_target::store_registers)
9193 (ravenscar_thread_target::prepare_to_store)
9194 (ravenscar_thread_target::prepare_to_store)
9195 (ravenscar_thread_target::mourn_inferior): Update.
9196 (ravenscar_inferior_created): Use "new" to create target.
9197 (ravenscar_thread_target::get_ada_task_ptid): Update.
9198 (_initialize_ravenscar): Don't initialize base_ptid.
9199 (ravenscar_ops): Remove global.
9200
dea57a62
TT
92012019-02-15 Tom Tromey <tromey@adacore.com>
9202
9203 * target.h (push_target): Declare new overload.
9204 * target.c (push_target): New overload, taking an rvalue reference.
9205 * remote.c (remote_target::open_1): Use push_target overload.
9206 * corelow.c (core_target_open): Use push_target overload.
9207
989f3c58
TT
92082019-02-15 Tom Tromey <tromey@adacore.com>
9209
9210 * ravenscar-thread.c (is_ravenscar_task)
9211 (ravenscar_task_is_currently_active): Return bool.
9212 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9213 (_initialize_ravenscar): Remove "(void)".
9214 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9215 Return bool.
9216
6cbcc006
TT
92172019-02-15 Tom Tromey <tromey@adacore.com>
9218
9219 * ravenscar-thread.c (ravenscar_runtime_initializer)
9220 (has_ravenscar_runtime, get_running_thread_id)
9221 (ravenscar_thread_target::resume): Fix indentation.
9222
7657f14d
TT
92232019-02-15 Tom Tromey <tromey@adacore.com>
9224
9225 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9226 from ravenscar_arch_ops.
9227 (sparc_ravenscar_ops::fetch_registers)
9228 (sparc_ravenscar_ops::store_registers): Now methods.
9229 (sparc_ravenscar_prepare_to_store): Remove.
9230 (sparc_ravenscar_ops): Redefine.
9231 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9232 methods and destructor. Remove members.
9233 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9234 (ravenscar_thread_target::store_registers)
9235 (ravenscar_thread_target::prepare_to_store): Update.
9236 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9237 Remove.
9238 (struct ppc_ravenscar_powerpc_ops): Derive from
9239 ravenscar_arch_ops.
9240 (ppc_ravenscar_powerpc_ops::fetch_registers)
9241 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9242 (ppc_ravenscar_powerpc_ops): Redefine.
9243 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9244 (ppc_ravenscar_e500_ops::fetch_registers)
9245 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9246 (ppc_ravenscar_e500_ops): Redefine.
9247 * aarch64-ravenscar-thread.c
9248 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9249 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9250 (aarch64_ravenscar_fetch_registers)
9251 (aarch64_ravenscar_store_registers): Now methods.
9252 (aarch64_ravenscar_ops): Redefine.
9253
5b6ea500
TT
92542019-02-15 Tom Tromey <tromey@adacore.com>
9255
9256 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9257 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9258 (ravenscar_thread_target::stopped_by_watchpoint)
9259 (ravenscar_thread_target::stopped_data_address)
9260 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9261
e397fd39
TT
92622019-02-15 Tom Tromey <tromey@adacore.com>
9263
9264 * ravenscar-thread.c: Fix some typos.
9265
cc12f4a8
TT
92662019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9267 Tom Tromey <tromey@adacore.com>
9268
9269 * ada-lang.c (ada_exception_sal): Change addr_string to a
9270 std::string.
9271 (create_ada_exception_catchpoint): Update.
9272
5f486660
TT
92732019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9274 Tom Tromey <tromey@adacore.com>
9275
9276 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9277 (bp_location_ops): Remove.
9278 (base_breakpoint_allocate_location): Update.
9279 (free_bp_location): Update.
9280 * ada-lang.c (class ada_catchpoint_location)
9281 <ada_catchpoint_location>: Remove ops parameter.
9282 (ada_catchpoint_location_dtor): Remove.
9283 (ada_catchpoint_location_ops): Remove.
9284 (allocate_location_exception): Update.
9285 * breakpoint.h (struct bp_location_ops): Remove.
9286 (class bp_location) <bp_location>: Remove bp_location_ops
9287 parameter.
9288 <~bp_location>: Add destructor.
9289 <ops>: Remove.
9290
b671c7fb
TS
92912019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9292 Pedro Alves <palves@redhat.com>
9293
9294 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9295 'PATH_MAX'.
9296
8071c5ce
DM
92972019-02-14 David Michael <fedora.dm0@gmail.com>
9298 Samuel Thibault <samuel.thibault@gnu.org>
9299 Thomas Schwinge <thomas@codesourcery.com>
9300
9301 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9302 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9303
b1041ae0
TS
93042019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9305
924514e1
TS
9306 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9307 (check_empty): Use "const char *".
9308
c29ee8d4
TS
9309 * gnu-nat.c (gnu_nat_target::detach): Instead of
9310 'detach_inferior (pid)' call
9311 'detach_inferior (find_inferior_pid (pid))'.
9312
6c6ef69f
TS
9313 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9314 'nat/fork-inferior.o'.
9315 * gnu-nat.c: #include "nat/fork-inferior.h".
9316
2d0a338c
TS
9317 * gnu-nat.c (gnu_nat_target::detach): Instead of
9318 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9319 * gnu-nat.h: #include "inf-child.h".
9320 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9321 'i386_gnu_nat_target::fetch_registers'.
9322 (gnu_store_registers): Rename/move to
9323 'i386_gnu_nat_target::store_registers'.
9324
cabb5f06
TS
9325 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9326 * gnu-nat.h (mach_thread_info): New function.
9327 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9328
b1041ae0
TS
9329 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9330
2988d01e
KF
93312019-02-14 Frederic Konrad <konrad@adacore.com>
9332
9333 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9334
c559d709
JB
93352019-02-14 Joel Brobecker <brobecker@adacore.com>
9336
9337 * windows-nat.c (windows_add_thread): Add new parameter
9338 "main_thread_p" with default value set to false. Update
9339 function documentation as well as all callers.
9340 (windows_delete_thread): Likewise.
9341 (fake_create_process): Update call to windows_add_thread.
9342 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9343 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9344 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9345 call to windows_delete_thread.
9346
007024cc
SM
93472019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9348
9349 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9350
f62318e9
JB
93512019-02-12 John Baldwin <jhb@FreeBSD.org>
9352
9353 * symfile.c (find_separate_debug_file): Use canonical path of
9354 sysroot with child_path instead of gdb_sysroot if it is valid.
9355
cd4b7848
JB
93562019-02-12 John Baldwin <jhb@FreeBSD.org>
9357
9358 * symfile.c (find_separate_debug_file): Use child_path to
9359 determine if an object file is under a sysroot.
9360
efac4bfe
JB
93612019-02-12 John Baldwin <jhb@FreeBSD.org>
9362
9363 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9364 unittests/child-path-selftests.c.
9365 * common/pathstuff.c (child_path): New function.
9366 * common/pathstuff.h (child_path): New prototype.
9367 * unittests/child-path-selftests.c: New file.
9368
402d2bfe
JB
93692019-02-12 John Baldwin <jhb@FreeBSD.org>
9370
9371 * symfile.c (find_separate_debug_file): Look for separate debug
9372 files in debug directories under the sysroot.
9373
1ed9f74e
PW
93742019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9375
9376 * symtab.h (struct minimal_symbol data_p): New const method.
9377 (struct minimal_symbol text_p): Likewise.
9378 * symtab.c (output_source_filename): Use file name style
9379 to print file name.
9380 (print_symbol_info): Likewise.
9381 (print_msymbol_info): Use address style to print addresses.
9382 Use function name style to print executable text symbols.
9383 (expand_symtab_containing_pc): Use data_p.
9384 (find_pc_sect_compunit_symtab): Likewise.
9385
2636d81d
PW
93862019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9387
9388 * breakpoint.c (describe_other_breakpoints): Use address style
9389 to print addresses.
9390 (say_where): Likewise.
9391
ac8c53cc
PW
93922019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9393
9394 * ada-typeprint.c (print_func_type): Print function name
9395 style to print function name.
9396 * c-typeprint.c (c_print_type_1): Likewise.
9397
ea638c43
AH
93982019-02-11 Alan Hayward <alan.hayward@arm.com>
9399
9400 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9401 for execve.
9402
ab759ca8
PW
94032019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9404
9405 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9406 type_stack.
9407
aff29d1c
JB
94082019-02-10 Joel Brobecker <brobecker@adacore.com>
9409
9410 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9411 TYPE_CODE_REF types.
9412
617126bc
JW
94132019-02-08 Jim Wilson <jimw@sifive.com>
9414
9415 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9416 (riscv_linux_fregset): New.
9417 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9418
46e3ed7f
TT
94192019-02-07 Tom Tromey <tom@tromey.com>
9420
9421 * thread.c (thread_cancel_execution_command): Update.
9422 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9423 methods.
9424 (struct thread_fsm_ops): Remove.
9425 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9426 (thread_fsm_should_stop, thread_fsm_return_value)
9427 (thread_fsm_set_finished, thread_fsm_finished_p)
9428 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9429 Don't declare.
9430 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9431 * infrun.c (clear_proceed_status_thread)
9432 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9433 (print_stop_event): Update.
9434 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9435 Add constructor.
9436 (step_command_fsm_ops): Remove.
9437 (new_step_command_fsm): Remove.
9438 (step_1): Update.
9439 (step_command_fsm::should_stop): Rename from
9440 step_command_fsm_should_stop.
9441 (step_command_fsm::clean_up): Rename from
9442 step_command_fsm_clean_up.
9443 (step_command_fsm::do_async_reply_reason): Rename from
9444 step_command_fsm_async_reply_reason.
9445 (struct until_next_fsm): Inherit from thread_fsm. Add
9446 constructor.
9447 (until_next_fsm_ops): Remove.
9448 (new_until_next_fsm): Remove.
9449 (until_next_fsm::should_stop): Rename from
9450 until_next_fsm_should_stop.
9451 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9452 (until_next_fsm::do_async_reply_reason): Rename from
9453 until_next_fsm_async_reply_reason.
9454 (struct finish_command_fsm): Inherit from thread_fsm. Add
9455 constructor. Change type of breakpoint.
9456 (finish_command_fsm_ops): Remove.
9457 (new_finish_command_fsm): Remove.
9458 (finish_command_fsm::should_stop): Rename from
9459 finish_command_fsm_should_stop.
9460 (finish_command_fsm::clean_up): Rename from
9461 finish_command_fsm_clean_up.
9462 (finish_command_fsm::return_value): Rename from
9463 finish_command_fsm_return_value.
9464 (finish_command_fsm::do_async_reply_reason): Rename from
9465 finish_command_fsm_async_reply_reason.
9466 (finish_command): Update.
9467 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9468 Add constructor.
9469 (call_thread_fsm_ops): Remove.
9470 (call_thread_fsm::call_thread_fsm): Rename from
9471 new_call_thread_fsm.
9472 (call_thread_fsm::should_stop): Rename from
9473 call_thread_fsm_should_stop.
9474 (call_thread_fsm::should_notify_stop): Rename from
9475 call_thread_fsm_should_notify_stop.
9476 (run_inferior_call, call_function_by_hand_dummy): Update.
9477 * cli/cli-interp.c (should_print_stop_to_console): Update.
9478 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9479 Add constructor. Change type of location_breakpoint,
9480 caller_breakpoint.
9481 (until_break_fsm_ops): Remove.
9482 (new_until_break_fsm): Remove.
9483 (until_break_fsm::should_stop): Rename from
9484 until_break_fsm_should_stop.
9485 (until_break_fsm::clean_up): Rename from
9486 until_break_fsm_clean_up.
9487 (until_break_fsm::do_async_reply_reason): Rename from
9488 until_break_fsm_async_reply_reason.
9489 (until_break_command): Update.
9490 * thread-fsm.c: Remove.
9491 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9492
1a5c2598
TT
94932019-02-07 Tom Tromey <tom@tromey.com>
9494
9495 * yy-remap.h: Add include guard.
9496 * xtensa-tdep.h: Add include guard.
9497 * xcoffread.h: Rename include guard.
9498 * varobj-iter.h: Add include guard.
9499 * tui/tui.h: Rename include guard.
9500 * tui/tui-winsource.h: Rename include guard.
9501 * tui/tui-wingeneral.h: Rename include guard.
9502 * tui/tui-windata.h: Rename include guard.
9503 * tui/tui-win.h: Rename include guard.
9504 * tui/tui-stack.h: Rename include guard.
9505 * tui/tui-source.h: Rename include guard.
9506 * tui/tui-regs.h: Rename include guard.
9507 * tui/tui-out.h: Rename include guard.
9508 * tui/tui-layout.h: Rename include guard.
9509 * tui/tui-io.h: Rename include guard.
9510 * tui/tui-hooks.h: Rename include guard.
9511 * tui/tui-file.h: Rename include guard.
9512 * tui/tui-disasm.h: Rename include guard.
9513 * tui/tui-data.h: Rename include guard.
9514 * tui/tui-command.h: Rename include guard.
9515 * tic6x-tdep.h: Add include guard.
9516 * target/waitstatus.h: Rename include guard.
9517 * target/wait.h: Rename include guard.
9518 * target/target.h: Rename include guard.
9519 * target/resume.h: Rename include guard.
9520 * target-float.h: Rename include guard.
9521 * stabsread.h: Add include guard.
9522 * rs6000-tdep.h: Add include guard.
9523 * riscv-fbsd-tdep.h: Add include guard.
9524 * regformats/regdef.h: Rename include guard.
9525 * record.h: Rename include guard.
9526 * python/python.h: Rename include guard.
9527 * python/python-internal.h: Rename include guard.
9528 * python/py-stopevent.h: Rename include guard.
9529 * python/py-ref.h: Rename include guard.
9530 * python/py-record.h: Rename include guard.
9531 * python/py-record-full.h: Rename include guard.
9532 * python/py-record-btrace.h: Rename include guard.
9533 * python/py-instruction.h: Rename include guard.
9534 * python/py-events.h: Rename include guard.
9535 * python/py-event.h: Rename include guard.
9536 * procfs.h: Add include guard.
9537 * proc-utils.h: Add include guard.
9538 * p-lang.h: Add include guard.
9539 * or1k-tdep.h: Rename include guard.
9540 * observable.h: Rename include guard.
9541 * nto-tdep.h: Rename include guard.
9542 * nat/x86-linux.h: Rename include guard.
9543 * nat/x86-linux-dregs.h: Rename include guard.
9544 * nat/x86-gcc-cpuid.h: Add include guard.
9545 * nat/x86-dregs.h: Rename include guard.
9546 * nat/x86-cpuid.h: Rename include guard.
9547 * nat/ppc-linux.h: Rename include guard.
9548 * nat/mips-linux-watch.h: Rename include guard.
9549 * nat/linux-waitpid.h: Rename include guard.
9550 * nat/linux-ptrace.h: Rename include guard.
9551 * nat/linux-procfs.h: Rename include guard.
9552 * nat/linux-osdata.h: Rename include guard.
9553 * nat/linux-nat.h: Rename include guard.
9554 * nat/linux-namespaces.h: Rename include guard.
9555 * nat/linux-btrace.h: Rename include guard.
9556 * nat/glibc_thread_db.h: Rename include guard.
9557 * nat/gdb_thread_db.h: Rename include guard.
9558 * nat/gdb_ptrace.h: Rename include guard.
9559 * nat/fork-inferior.h: Rename include guard.
9560 * nat/amd64-linux-siginfo.h: Rename include guard.
9561 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9562 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9563 * nat/aarch64-linux.h: Rename include guard.
9564 * nat/aarch64-linux-hw-point.h: Rename include guard.
9565 * mn10300-tdep.h: Add include guard.
9566 * mips-linux-tdep.h: Add include guard.
9567 * mi/mi-parse.h: Rename include guard.
9568 * mi/mi-out.h: Rename include guard.
9569 * mi/mi-main.h: Rename include guard.
9570 * mi/mi-interp.h: Rename include guard.
9571 * mi/mi-getopt.h: Rename include guard.
9572 * mi/mi-console.h: Rename include guard.
9573 * mi/mi-common.h: Rename include guard.
9574 * mi/mi-cmds.h: Rename include guard.
9575 * mi/mi-cmd-break.h: Rename include guard.
9576 * m2-lang.h: Add include guard.
9577 * location.h: Rename include guard.
9578 * linux-record.h: Rename include guard.
9579 * linux-nat.h: Add include guard.
9580 * linux-fork.h: Add include guard.
9581 * i386-darwin-tdep.h: Rename include guard.
9582 * hppa-linux-offsets.h: Add include guard.
9583 * guile/guile.h: Rename include guard.
9584 * guile/guile-internal.h: Rename include guard.
9585 * gnu-nat.h: Rename include guard.
9586 * gdb-stabs.h: Rename include guard.
9587 * frv-tdep.h: Add include guard.
9588 * f-lang.h: Add include guard.
9589 * event-loop.h: Add include guard.
9590 * darwin-nat.h: Rename include guard.
9591 * cp-abi.h: Rename include guard.
9592 * config/sparc/nm-sol2.h: Rename include guard.
9593 * config/nm-nto.h: Rename include guard.
9594 * config/nm-linux.h: Add include guard.
9595 * config/i386/nm-i386gnu.h: Rename include guard.
9596 * config/djgpp/nl_types.h: Rename include guard.
9597 * config/djgpp/langinfo.h: Rename include guard.
9598 * compile/gcc-cp-plugin.h: Add include guard.
9599 * compile/gcc-c-plugin.h: Add include guard.
9600 * compile/compile.h: Rename include guard.
9601 * compile/compile-object-run.h: Rename include guard.
9602 * compile/compile-object-load.h: Rename include guard.
9603 * compile/compile-internal.h: Rename include guard.
9604 * compile/compile-cplus.h: Rename include guard.
9605 * compile/compile-c.h: Rename include guard.
9606 * common/xml-utils.h: Rename include guard.
9607 * common/x86-xstate.h: Rename include guard.
9608 * common/version.h: Rename include guard.
9609 * common/vec.h: Rename include guard.
9610 * common/tdesc.h: Rename include guard.
9611 * common/selftest.h: Rename include guard.
9612 * common/scoped_restore.h: Rename include guard.
9613 * common/scoped_mmap.h: Rename include guard.
9614 * common/scoped_fd.h: Rename include guard.
9615 * common/safe-iterator.h: Rename include guard.
9616 * common/run-time-clock.h: Rename include guard.
9617 * common/refcounted-object.h: Rename include guard.
9618 * common/queue.h: Rename include guard.
9619 * common/ptid.h: Rename include guard.
9620 * common/print-utils.h: Rename include guard.
9621 * common/preprocessor.h: Rename include guard.
9622 * common/pathstuff.h: Rename include guard.
9623 * common/observable.h: Rename include guard.
9624 * common/netstuff.h: Rename include guard.
9625 * common/job-control.h: Rename include guard.
9626 * common/host-defs.h: Rename include guard.
9627 * common/gdb_wait.h: Rename include guard.
9628 * common/gdb_vecs.h: Rename include guard.
9629 * common/gdb_unlinker.h: Rename include guard.
9630 * common/gdb_unique_ptr.h: Rename include guard.
9631 * common/gdb_tilde_expand.h: Rename include guard.
9632 * common/gdb_sys_time.h: Rename include guard.
9633 * common/gdb_string_view.h: Rename include guard.
9634 * common/gdb_splay_tree.h: Rename include guard.
9635 * common/gdb_setjmp.h: Rename include guard.
9636 * common/gdb_ref_ptr.h: Rename include guard.
9637 * common/gdb_optional.h: Rename include guard.
9638 * common/gdb_locale.h: Rename include guard.
9639 * common/gdb_assert.h: Rename include guard.
9640 * common/filtered-iterator.h: Rename include guard.
9641 * common/filestuff.h: Rename include guard.
9642 * common/fileio.h: Rename include guard.
9643 * common/environ.h: Rename include guard.
9644 * common/common-utils.h: Rename include guard.
9645 * common/common-types.h: Rename include guard.
9646 * common/common-regcache.h: Rename include guard.
9647 * common/common-inferior.h: Rename include guard.
9648 * common/common-gdbthread.h: Rename include guard.
9649 * common/common-exceptions.h: Rename include guard.
9650 * common/common-defs.h: Rename include guard.
9651 * common/common-debug.h: Rename include guard.
9652 * common/cleanups.h: Rename include guard.
9653 * common/buffer.h: Rename include guard.
9654 * common/btrace-common.h: Rename include guard.
9655 * common/break-common.h: Rename include guard.
9656 * cli/cli-utils.h: Rename include guard.
9657 * cli/cli-style.h: Rename include guard.
9658 * cli/cli-setshow.h: Rename include guard.
9659 * cli/cli-script.h: Rename include guard.
9660 * cli/cli-interp.h: Rename include guard.
9661 * cli/cli-decode.h: Rename include guard.
9662 * cli/cli-cmds.h: Rename include guard.
9663 * charset-list.h: Add include guard.
9664 * buildsym-legacy.h: Rename include guard.
9665 * bfin-tdep.h: Add include guard.
9666 * ax.h: Rename include guard.
9667 * arm-linux-tdep.h: Add include guard.
9668 * arm-fbsd-tdep.h: Add include guard.
9669 * arch/xtensa.h: Rename include guard.
9670 * arch/tic6x.h: Add include guard.
9671 * arch/i386.h: Add include guard.
9672 * arch/arm.h: Rename include guard.
9673 * arch/arm-linux.h: Rename include guard.
9674 * arch/arm-get-next-pcs.h: Rename include guard.
9675 * arch/amd64.h: Add include guard.
9676 * arch/aarch64-insn.h: Rename include guard.
9677 * arch-utils.h: Rename include guard.
9678 * annotate.h: Add include guard.
9679 * amd64-darwin-tdep.h: Rename include guard.
9680 * aarch64-linux-tdep.h: Add include guard.
9681 * aarch64-fbsd-tdep.h: Add include guard.
9682 * aarch32-linux-nat.h: Add include guard.
9683
ab9268d2
PW
96842019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9685
9686 * macrotab.c (macro_define_internal): New function that
9687 factorizes macro_define_object_internal and macro_define_function
9688 code.
9689 (macro_define_object_internal): Use macro_define_internal.
9690 (macro_define_function): Likewise.
9691
bb0da2b4
PW
96922019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9693
9694 * macrocmd.c (extract_identifier): Return
9695 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9696 callers.
9697
424eb552
JB
96982019-02-06 John Baldwin <jhb@FreeBSD.org>
9699
9700 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9701
1688cb29
TT
97022019-02-05 Tom Tromey <tom@tromey.com>
9703
9704 * target.c (target_stack::unpush): Move assertion earlier.
9705
b5eba2d8
TT
97062019-01-30 Tom Tromey <tom@tromey.com>
9707
9708 PR python/23615:
9709 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9710 (gdbpy_parse_and_eval): Likewise.
9711 * python/python-internal.h (gdbpy_allow_threads): New class.
9712
7054e2ff
JB
97132019-01-28 John Baldwin <jhb@FreeBSD.org>
9714
9715 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9716 (aarch64_fbsd_fpregmap): Move earlier.
9717 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9718 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9719 instead of individual calls to trad_frame_set_reg_addr.
9720 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9721 earlier.
9722 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9723 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9724 instead of individual calls to trad_frame_set_reg_addr.
9725
36c25ffa
AH
97262019-01-28 Alan Hayward <alan.hayward@arm.com>
9727
9728 * CONTRIBUTE: Replace contribution list with wiki link.
9729
a0707f3c
TT
97302019-01-25 Tom Tromey <tom@tromey.com>
9731
9732 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9733
0747795c
TT
97342019-01-25 Tom Tromey <tom@tromey.com>
9735
9736 * xtensa-linux-nat.c: Fix common/ includes.
9737 * xml-support.h: Fix common/ includes.
9738 * xml-support.c: Fix common/ includes.
9739 * x86-linux-nat.c: Fix common/ includes.
9740 * windows-nat.c: Fix common/ includes.
9741 * varobj.h: Fix common/ includes.
9742 * varobj.c: Fix common/ includes.
9743 * value.c: Fix common/ includes.
9744 * valops.c: Fix common/ includes.
9745 * utils.c: Fix common/ includes.
9746 * unittests/xml-utils-selftests.c: Fix common/ includes.
9747 * unittests/utils-selftests.c: Fix common/ includes.
9748 * unittests/unpack-selftests.c: Fix common/ includes.
9749 * unittests/tracepoint-selftests.c: Fix common/ includes.
9750 * unittests/style-selftests.c: Fix common/ includes.
9751 * unittests/string_view-selftests.c: Fix common/ includes.
9752 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9753 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9754 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9755 * unittests/rsp-low-selftests.c: Fix common/ includes.
9756 * unittests/parse-connection-spec-selftests.c: Fix common/
9757 includes.
9758 * unittests/optional-selftests.c: Fix common/ includes.
9759 * unittests/offset-type-selftests.c: Fix common/ includes.
9760 * unittests/observable-selftests.c: Fix common/ includes.
9761 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9762 * unittests/memrange-selftests.c: Fix common/ includes.
9763 * unittests/memory-map-selftests.c: Fix common/ includes.
9764 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9765 * unittests/function-view-selftests.c: Fix common/ includes.
9766 * unittests/environ-selftests.c: Fix common/ includes.
9767 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9768 * unittests/common-utils-selftests.c: Fix common/ includes.
9769 * unittests/cli-utils-selftests.c: Fix common/ includes.
9770 * unittests/array-view-selftests.c: Fix common/ includes.
9771 * ui-file.c: Fix common/ includes.
9772 * tui/tui-io.c: Fix common/ includes.
9773 * tracepoint.h: Fix common/ includes.
9774 * tracepoint.c: Fix common/ includes.
9775 * tracefile-tfile.c: Fix common/ includes.
9776 * top.h: Fix common/ includes.
9777 * top.c: Fix common/ includes.
9778 * thread.c: Fix common/ includes.
9779 * target/waitstatus.h: Fix common/ includes.
9780 * target/waitstatus.c: Fix common/ includes.
9781 * target.h: Fix common/ includes.
9782 * target.c: Fix common/ includes.
9783 * target-memory.c: Fix common/ includes.
9784 * target-descriptions.c: Fix common/ includes.
9785 * symtab.h: Fix common/ includes.
9786 * symfile.c: Fix common/ includes.
9787 * stap-probe.c: Fix common/ includes.
9788 * spu-linux-nat.c: Fix common/ includes.
9789 * sparc-nat.c: Fix common/ includes.
9790 * source.c: Fix common/ includes.
9791 * solib.c: Fix common/ includes.
9792 * solib-target.c: Fix common/ includes.
9793 * ser-unix.c: Fix common/ includes.
9794 * ser-tcp.c: Fix common/ includes.
9795 * ser-pipe.c: Fix common/ includes.
9796 * ser-base.c: Fix common/ includes.
9797 * selftest-arch.c: Fix common/ includes.
9798 * s12z-tdep.c: Fix common/ includes.
9799 * rust-exp.y: Fix common/ includes.
9800 * rs6000-aix-tdep.c: Fix common/ includes.
9801 * riscv-tdep.c: Fix common/ includes.
9802 * remote.c: Fix common/ includes.
9803 * remote-notif.h: Fix common/ includes.
9804 * remote-fileio.h: Fix common/ includes.
9805 * remote-fileio.c: Fix common/ includes.
9806 * regcache.h: Fix common/ includes.
9807 * regcache.c: Fix common/ includes.
9808 * record-btrace.c: Fix common/ includes.
9809 * python/python.c: Fix common/ includes.
9810 * python/py-type.c: Fix common/ includes.
9811 * python/py-inferior.c: Fix common/ includes.
9812 * progspace.h: Fix common/ includes.
9813 * producer.c: Fix common/ includes.
9814 * procfs.c: Fix common/ includes.
9815 * proc-api.c: Fix common/ includes.
9816 * printcmd.c: Fix common/ includes.
9817 * ppc-linux-nat.c: Fix common/ includes.
9818 * parser-defs.h: Fix common/ includes.
9819 * osdata.c: Fix common/ includes.
9820 * obsd-nat.c: Fix common/ includes.
9821 * nat/x86-linux.c: Fix common/ includes.
9822 * nat/x86-linux-dregs.c: Fix common/ includes.
9823 * nat/x86-dregs.h: Fix common/ includes.
9824 * nat/x86-dregs.c: Fix common/ includes.
9825 * nat/ppc-linux.c: Fix common/ includes.
9826 * nat/mips-linux-watch.h: Fix common/ includes.
9827 * nat/mips-linux-watch.c: Fix common/ includes.
9828 * nat/linux-waitpid.c: Fix common/ includes.
9829 * nat/linux-ptrace.h: Fix common/ includes.
9830 * nat/linux-ptrace.c: Fix common/ includes.
9831 * nat/linux-procfs.c: Fix common/ includes.
9832 * nat/linux-personality.c: Fix common/ includes.
9833 * nat/linux-osdata.c: Fix common/ includes.
9834 * nat/linux-namespaces.c: Fix common/ includes.
9835 * nat/linux-btrace.h: Fix common/ includes.
9836 * nat/linux-btrace.c: Fix common/ includes.
9837 * nat/fork-inferior.c: Fix common/ includes.
9838 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9839 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9840 * nat/aarch64-linux.c: Fix common/ includes.
9841 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9842 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9843 * namespace.h: Fix common/ includes.
9844 * mips-linux-tdep.c: Fix common/ includes.
9845 * minsyms.c: Fix common/ includes.
9846 * mi/mi-parse.h: Fix common/ includes.
9847 * mi/mi-main.c: Fix common/ includes.
9848 * mi/mi-cmd-env.c: Fix common/ includes.
9849 * memrange.h: Fix common/ includes.
9850 * memattr.c: Fix common/ includes.
9851 * maint.h: Fix common/ includes.
9852 * maint.c: Fix common/ includes.
9853 * main.c: Fix common/ includes.
9854 * machoread.c: Fix common/ includes.
9855 * location.c: Fix common/ includes.
9856 * linux-thread-db.c: Fix common/ includes.
9857 * linux-nat.c: Fix common/ includes.
9858 * linux-fork.c: Fix common/ includes.
9859 * inline-frame.c: Fix common/ includes.
9860 * infrun.c: Fix common/ includes.
9861 * inflow.c: Fix common/ includes.
9862 * inferior.h: Fix common/ includes.
9863 * inferior.c: Fix common/ includes.
9864 * infcmd.c: Fix common/ includes.
9865 * inf-ptrace.c: Fix common/ includes.
9866 * inf-child.c: Fix common/ includes.
9867 * ia64-linux-nat.c: Fix common/ includes.
9868 * i387-tdep.c: Fix common/ includes.
9869 * i386-tdep.c: Fix common/ includes.
9870 * i386-linux-tdep.c: Fix common/ includes.
9871 * i386-linux-nat.c: Fix common/ includes.
9872 * i386-go32-tdep.c: Fix common/ includes.
9873 * i386-fbsd-tdep.c: Fix common/ includes.
9874 * i386-fbsd-nat.c: Fix common/ includes.
9875 * guile/scm-type.c: Fix common/ includes.
9876 * guile/guile.c: Fix common/ includes.
9877 * go32-nat.c: Fix common/ includes.
9878 * gnu-nat.c: Fix common/ includes.
9879 * gdbthread.h: Fix common/ includes.
9880 * gdbarch-selftests.c: Fix common/ includes.
9881 * gdb_usleep.c: Fix common/ includes.
9882 * gdb_select.h: Fix common/ includes.
9883 * gdb_bfd.c: Fix common/ includes.
9884 * gcore.c: Fix common/ includes.
9885 * fork-child.c: Fix common/ includes.
9886 * findvar.c: Fix common/ includes.
9887 * fbsd-nat.c: Fix common/ includes.
9888 * event-top.c: Fix common/ includes.
9889 * event-loop.c: Fix common/ includes.
9890 * dwarf2read.c: Fix common/ includes.
9891 * dwarf2loc.c: Fix common/ includes.
9892 * dwarf2-frame.c: Fix common/ includes.
9893 * dwarf-index-cache.c: Fix common/ includes.
9894 * dtrace-probe.c: Fix common/ includes.
9895 * disasm-selftests.c: Fix common/ includes.
9896 * defs.h: Fix common/ includes.
9897 * csky-tdep.c: Fix common/ includes.
9898 * cp-valprint.c: Fix common/ includes.
9899 * cp-support.h: Fix common/ includes.
9900 * cp-support.c: Fix common/ includes.
9901 * corelow.c: Fix common/ includes.
9902 * completer.h: Fix common/ includes.
9903 * completer.c: Fix common/ includes.
9904 * compile/compile.c: Fix common/ includes.
9905 * compile/compile-loc2c.c: Fix common/ includes.
9906 * compile/compile-cplus-types.c: Fix common/ includes.
9907 * compile/compile-cplus-symbols.c: Fix common/ includes.
9908 * command.h: Fix common/ includes.
9909 * cli/cli-dump.c: Fix common/ includes.
9910 * cli/cli-cmds.c: Fix common/ includes.
9911 * charset.c: Fix common/ includes.
9912 * build-id.c: Fix common/ includes.
9913 * btrace.h: Fix common/ includes.
9914 * btrace.c: Fix common/ includes.
9915 * breakpoint.h: Fix common/ includes.
9916 * breakpoint.c: Fix common/ includes.
9917 * ax.h:
9918 (enum agent_op): Fix common/ includes.
9919 * ax-general.c (struct aop_map): Fix common/ includes.
9920 * ax-gdb.c: Fix common/ includes.
9921 * auxv.c: Fix common/ includes.
9922 * auto-load.c: Fix common/ includes.
9923 * arm-tdep.c: Fix common/ includes.
9924 * arch/riscv.c: Fix common/ includes.
9925 * arch/ppc-linux-common.c: Fix common/ includes.
9926 * arch/i386.c: Fix common/ includes.
9927 * arch/arm.c: Fix common/ includes.
9928 * arch/arm-linux.c: Fix common/ includes.
9929 * arch/arm-get-next-pcs.c: Fix common/ includes.
9930 * arch/amd64.c: Fix common/ includes.
9931 * arch/aarch64.c: Fix common/ includes.
9932 * arch/aarch64-insn.c: Fix common/ includes.
9933 * arch-utils.c: Fix common/ includes.
9934 * amd64-windows-tdep.c: Fix common/ includes.
9935 * amd64-tdep.c: Fix common/ includes.
9936 * amd64-sol2-tdep.c: Fix common/ includes.
9937 * amd64-obsd-tdep.c: Fix common/ includes.
9938 * amd64-nbsd-tdep.c: Fix common/ includes.
9939 * amd64-linux-tdep.c: Fix common/ includes.
9940 * amd64-linux-nat.c: Fix common/ includes.
9941 * amd64-fbsd-tdep.c: Fix common/ includes.
9942 * amd64-fbsd-nat.c: Fix common/ includes.
9943 * amd64-dicos-tdep.c: Fix common/ includes.
9944 * amd64-darwin-tdep.c: Fix common/ includes.
9945 * agent.c: Fix common/ includes.
9946 * ada-lang.h: Fix common/ includes.
9947 * ada-lang.c: Fix common/ includes.
9948 * aarch64-tdep.c: Fix common/ includes.
9949
2f5c153e
TT
99502019-01-25 Tom Tromey <tom@tromey.com>
9951
9952 * common/create-version.sh: Use common/version.h.
9953
adc6a863
PA
99542019-01-24 Pedro Alves <palves@redhat.com>
9955
9956 * infrun.c (signal_stop, signal_print, signal_program)
9957 (signal_catch, signal_pass): Now arrays instead of pointers.
9958 (update_signals_program_target, do_target_resume)
9959 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9960 * linux-nat.c (linux_nat_target::pass_signals)
9961 (linux_nat_target::create_inferior, linux_nat_target::attach):
9962 Adjust.
9963 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9964 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9965 * procfs.c (procfs_target::pass_signals): Adjust.
9966 * record-full.c (record_full_target::resume): Adjust.
9967 * remote.c (remote_target::pass_signals)
9968 (remote_target::program_signals): Adjust.
9969 * target-debug.h (target_debug_print_signals): Now takes a
9970 gdb::array_view as parameter. Adjust.
9971 * target.h (target_ops) <pass_signals, program_signals>: Replace
9972 pointer and length parameters with gdb::array_view.
9973 (target_pass_signals, target_program_signals): Likewise.
9974 * target-delegates.c: Regenerate.
9975
3046d67a
PA
99762019-01-24 Pedro Alves <palves@redhat.com>
9977
9978 * common/forward-scope-exit.h
9979 (forward_scope_exit::forward_scope_exit): Pass arguments to
9980 m_bind_function directly, instead of creating a std::bind and
9981 copying that.
9982
353229bf
AH
99832019-01-24 Alan Hayward <alan.hayward@arm.com>
9984
9985 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9986 for static members.
9987 (pass_in_v_vfp_candidate): Likewise.
9988
311dc83a
TT
99892019-01-23 Tom Tromey <tom@tromey.com>
9990 Pedro Alves <palves@redhat.com>
9991
9992 * regcache.c (class regcache_invalidator): Remove.
9993 (regcache::raw_write): Use make_scope_exit.
9994
296bd123
TT
99952019-01-23 Tom Tromey <tom@tromey.com>
9996
9997 * ui-out.h (class ui_out_emit_type): Update comment.
9998
979a0d13
TT
99992019-01-23 Tom Tromey <tom@tromey.com>
10000
10001 * infrun.c (fetch_inferior_event): Update comment.
10002
d238133d
TT
100032019-01-23 Tom Tromey <tom@tromey.com>
10004 Pedro Alves <palves@redhat.com>
10005
10006 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10007 parameter.
10008 (fetch_inferior_event): Use SCOPE_EXIT.
10009
10010
9885e6bb
TT
100112019-01-23 Tom Tromey <tom@tromey.com>
10012 Pedro Alves <palves@redhat.com>
10013
10014 * infrun.c (disable_thread_events): Delete.
10015 (stop_all_threads): Use SCOPE_EXIT.
10016
286526c1
TT
100172019-01-23 Tom Tromey <tom@tromey.com>
10018 Pedro Alves <palves@redhat.com>
10019
10020 * symfile.c: Include forward-scope-exit.h.
10021 (clear_symtab_users_cleanup): Replace forward declaration with
10022 a FORWARD_SCOPE_EXIT.
10023 (syms_from_objfile_1): Use the forward_scope_exit and
10024 gdb::optional instead of cleanup_function.
10025 (reread_symbols): Use the forward_scope_exit instead of
10026 cleanup_function.
10027 (clear_symtab_users_cleanup): Remove function.
10028
1db93f14
TT
100292019-01-23 Tom Tromey <tom@tromey.com>
10030 Pedro Alves <palves@redhat.com>
10031
10032 * linux-nat.c: Include scope-exit.h.
10033 (cleanup_target_stop): Remove.
10034 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10035 SCOPE_EXIT.
10036
2cc83d1e
TT
100372019-01-23 Tom Tromey <tom@tromey.com>
10038 Pedro Alves <palves@redhat.com>
10039
10040 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10041 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10042
694c6bf5
TT
100432019-01-23 Tom Tromey <tom@tromey.com>
10044 Andrew Burgess <andrew.burgess@embecosm.com>
10045 Pedro Alves <palves@redhat.com>
10046
10047 * infrun.c (fetch_inferior_event): Use scope_exit.
10048 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10049 * top.c (execute_command): Use scope_exit.
10050 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10051 * utils.c (do_bpstat_clear_actions_cleanup)
10052 (make_bpstat_clear_actions_cleanup): Remove.
10053
4c41382a
TT
100542019-01-23 Tom Tromey <tom@tromey.com>
10055 Pedro Alves <palves@redhat.com>
10056
10057 * infrun.c: Include "common/scope-exit.h"
10058 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10059 (wait_for_inferior): Use SCOPE_EXIT.
10060 (fetch_inferior_event): Use scope_exit.
10061
89f8fb50
TT
100622019-01-23 Tom Tromey <tom@tromey.com>
10063 Pedro Alves <palves@redhat.com>
10064
10065 * breakpoint.c (create_breakpoint): Remove cleanup.
10066
5419bdae
TT
100672019-01-23 Tom Tromey <tom@tromey.com>
10068 Andrew Burgess <andrew.burgess@embecosm.com>
10069 Pedro Alves <palves@redhat.com>
10070
e587ef42
PA
100712019-01-23 Pedro Alves <palves@redhat.com>
10072
10073 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10074
77f0e74c
PA
100752019-01-23 Pedro Alves <palves@redhat.com>
10076 Andrew Burgess <andrew.burgess@embecosm.com>
10077
10078 * gdbthread.h: Include "common/forward-scope-exit.h".
10079 (scoped_finish_thread_state): Redefine custom class in terms of
10080 forward_scope_exit.
10081
5b9b3e53
PA
100822019-01-23 Pedro Alves <palves@redhat.com>
10083 Andrew Burgess <andrew.burgess@embecosm.com>
10084
10085 * common/forward-scope-exit.h: New file.
10086
54b65c9b
PA
100872019-01-23 Pedro Alves <palves@redhat.com>
10088 Andrew Burgess <andrew.burgess@embecosm.com>
10089 Tom Tromey <tom@tromey.com>
10090
10091 * common/scope-exit.h: New file.
10092
cf08fb29
PA
100932019-01-23 Pedro Alves <palves@redhat.com>
10094
10095 * common/preprocessor.h (ESC): Rename to ...
10096 (ESC_PARENS): ... this.
10097 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10098 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10099
ae73e2e2
TT
101002019-01-23 Tom Tromey <tom@tromey.com>
10101
10102 * language.h (class scoped_switch_to_sym_language_if_auto):
10103 Initialize m_lang in both cases.
10104
6594e122
AH
101052019-01-23 Alan Hayward <alan.hayward@arm.com>
10106
10107 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10108 with XCNEW.
10109
a7c9855d
TT
101102019-01-22 Tom Tromey <tom@tromey.com>
10111
10112 * corelow.c: Do not include sys/file.h.
10113
93cc1d53
TT
101142019-01-22 Tom Tromey <tom@tromey.com>
10115
10116 * tui/tui-wingeneral.h: Include gdb_curses.h.
10117
38561778
TT
101182019-01-22 Tom Tromey <tom@tromey.com>
10119
10120 * source-cache.h (class source_cache) <get_source_lines,
10121 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10122
37b3ab5b
TT
101232019-01-22 Tom Tromey <tom@tromey.com>
10124
10125 * remote-fileio.h (struct remote_target): Declare.
10126
3fabc016
TT
101272019-01-22 Tom Tromey <tom@tromey.com>
10128
10129 * python/py-arch.c: Do not include py-ref.h.
10130 * python/py-bpevent.c: Do not include py-ref.h.
10131 * python/py-cmd.c: Do not include py-ref.h.
10132 * python/py-continueevent.c: Do not include py-ref.h.
10133 * python/py-event.h: Do not include py-ref.h.
10134 * python/py-evtregistry.c: Do not include py-ref.h.
10135 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10136 * python/py-frame.c: Do not include py-ref.h.
10137 * python/py-framefilter.c: Do not include py-ref.h.
10138 * python/py-function.c: Do not include py-ref.h.
10139 * python/py-infevents.c: Do not include py-ref.h.
10140 * python/py-linetable.c: Do not include py-ref.h.
10141 * python/py-objfile.c: Do not include py-ref.h.
10142 * python/py-param.c: Do not include py-ref.h.
10143 * python/py-prettyprint.c: Do not include py-ref.h.
10144 * python/py-progspace.c: Do not include py-ref.h.
10145 * python/py-symbol.c: Do not include py-ref.h.
10146 * python/py-symtab.c: Do not include py-ref.h.
10147 * python/py-type.c: Do not include py-ref.h.
10148 * python/py-unwind.c: Do not include py-ref.h.
10149 * python/py-utils.c: Do not include py-ref.h.
10150 * python/py-value.c: Do not include py-ref.h.
10151 * python/py-varobj.c: Do not include py-ref.h.
10152 * python/py-xmethods.c: Do not include py-ref.h.
10153 * python/python.c: Do not include py-ref.h.
10154 * varobj.c: Do not include py-ref.h.
10155
6b4d7774
TT
101562019-01-22 Tom Tromey <tom@tromey.com>
10157
10158 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10159 keyword for bcache.
10160
7af7e9b5
TT
101612019-01-22 Tom Tromey <tom@tromey.com>
10162
10163 * compile/compile-cplus-types.c: Remove a comment by #include.
10164
951d1049
TT
101652019-01-22 Tom Tromey <tom@tromey.com>
10166
10167 * compile/gcc-c-plugin.h: Include compile-internal.h.
10168
d65d5705
TT
101692019-01-22 Tom Tromey <tom@tromey.com>
10170
10171 * stabsread.c (EXTERN): Do not define.
10172 (symnum, next_symbol_text_func, processing_gcc_compilation)
10173 (within_function, global_sym_chain, global_stabs)
10174 (previous_stab_code, this_object_header_files)
10175 (n_this_object_header_files)
10176 (n_allocated_this_object_header_files): Define.
10177 * stabsread.h (EXTERN): Never define. Use "extern".
10178
b6fb1ee5
PW
101792019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10180
10181 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10182 history_value.
10183
be6d4f74
TT
101842019-01-21 Tom Tromey <tom@tromey.com>
10185
10186 * ui-out.c: Fix includes.
10187 * tui/tui-source.c: Fix includes.
10188 * target.c: Fix includes.
10189 * remote.c: Fix includes.
10190 * regcache.c: Fix includes.
10191 * python/py-block.c: Fix includes.
10192 * printcmd.c: Fix includes.
10193 * or1k-tdep.c: Fix includes.
10194 * mi/mi-main.c: Fix includes.
10195 * m32r-tdep.c: Fix includes.
10196 * csky-tdep.c: Fix includes.
10197 * compile/compile-cplus-types.c: Fix includes.
10198 * cli/cli-interp.c: Fix includes.
10199
73021deb
AH
102002019-01-21 Alan Hayward <alan.hayward@arm.com>
10201
10202 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10203 for padding.
10204
7932255d
TT
102052019-01-16 Tom Tromey <tom@tromey.com>
10206
10207 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10208 earlier.
10209 (struct objfile) <msymbols_range>: Move from top level.
10210 <msymbols>: New method.
10211 (class objfile_msymbols): Remove.
10212 * symtab.c (default_collect_symbol_completion_matches_break_on):
10213 Update.
10214 * symmisc.c (dump_msymbols): Update.
10215 * stabsread.c (scan_file_globals): Update.
10216 * objc-lang.c (info_selectors_command, info_classes_command)
10217 (find_methods): Update.
10218 * minsyms.c (find_solib_trampoline_target): Update.
10219 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10220 * coffread.c (coff_symfile_read): Update.
10221 * ada-lang.c (ada_lookup_simple_minsym)
10222 (ada_collect_symbol_completion_matches): Update.
10223
604b1bfb
TT
102242019-01-16 Tom Tromey <tom@tromey.com>
10225
10226 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10227 type. Remove no-argument constructor.
10228 <iterator::operator++>: Simplify.
10229 <begin>: Update.
10230 <end>: Use minimal_symbol_count.
10231
f252c6d5
TT
102322019-01-16 Tom Tromey <tom@tromey.com>
10233
10234 * objfiles.h (struct objfile) <psymtabs>: New method.
10235 (class objfile_psymtabs): Remove.
10236 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10237 typedef.
10238 <range>: New method.
10239 (require_partial_symbols): Change return type.
10240 * psymtab.c (require_partial_symbols)
10241 (psym_expand_symtabs_matching): Update.
10242 * mdebugread.c (parse_partial_symbols): Update.
10243 * dbxread.c (dbx_end_psymtab): Update.
10244
b669c953
TT
102452019-01-15 Tom Tromey <tom@tromey.com>
10246
10247 * symtab.c (lookup_objfile_from_block)
10248 (lookup_symbol_in_objfile_symtabs)
10249 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10250 (find_line_symtab, info_sources_command)
10251 (default_collect_symbol_completion_matches_break_on)
10252 (make_source_files_completion_list): Update.
10253 * symmisc.c (print_objfile_statistics, dump_objfile)
10254 (maintenance_print_symbols, maintenance_info_symtabs)
10255 (maintenance_check_symtabs, maintenance_info_line_tables):
10256 Update.
10257 * source.c (select_source_symtab)
10258 (forget_cached_source_info_for_objfile): Update.
10259 * objfiles.h (class objfile_compunits): Remove.
10260 (struct objfile) <compunits_range>: New typedef.
10261 (compunits): New method.
10262 * objfiles.c (objfile_relocate1): Update.
10263 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10264 * maint.c (count_symtabs_and_blocks): Update.
10265 * linespec.c (iterate_over_all_matching_symtabs): Update.
10266 * cp-support.c (add_symbol_overload_list_qualified): Update.
10267 * coffread.c (coff_symtab_read): Update.
10268 * ada-lang.c (add_nonlocal_symbols)
10269 (ada_collect_symbol_completion_matches)
10270 (ada_add_global_exceptions): Update.
10271
7e955d83
TT
102722019-01-15 Tom Tromey <tom@tromey.com>
10273
10274 * progspace.h (program_space) <objfiles_safe_range>: New
10275 typedef.
10276 <objfiles_safe>: New method.
10277 * objfiles.h (class all_objfiles_safe): Remove.
10278 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10279 * jit.c (jit_inferior_exit_hook): Update.
10280
2030c079
TT
102812019-01-17 Tom Tromey <tom@tromey.com>
10282
10283 * progspace.h (program_space) <objfiles_range>: New typedef.
10284 <objfiles>: New method.
10285 <objfiles_head>: Rename from objfiles.
10286 (object_files): Update.
10287 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10288 * guile/scm-pretty-print.c
10289 (ppscm_find_pretty_printer_from_objfiles): Update.
10290 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10291 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10292 Update.
10293 * python/py-progspace.c (pspy_get_objfiles): Update.
10294 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10295 Update.
10296 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10297 (objfpy_lookup_objfile_by_build_id): Update.
10298 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10299 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10300 Update.
10301 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10302 (expand_symtab_containing_pc, lookup_objfile_from_block)
10303 (lookup_static_symbol, basic_lookup_transparent_type)
10304 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10305 (find_line_symtab, info_sources_command)
10306 (default_collect_symbol_completion_matches_break_on)
10307 (make_source_files_completion_list, find_main_name): Update.
10308 * symmisc.c (print_symbol_bcache_statistics)
10309 (print_objfile_statistics, maintenance_print_symbols)
10310 (maintenance_print_msymbols, maintenance_print_objfiles)
10311 (maintenance_info_symtabs, maintenance_check_symtabs)
10312 (maintenance_expand_symtabs, maintenance_info_line_tables):
10313 Update.
10314 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10315 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10316 (map_overlay_command, unmap_overlay_command)
10317 (simple_overlay_update, expand_symtabs_matching)
10318 (map_symbol_filenames): Update.
10319 * symfile-debug.c (set_debug_symfile): Update.
10320 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10321 Update.
10322 * source.c (select_source_symtab, forget_cached_source_info):
10323 Update.
10324 * solib.c (solib_read_symbols): Update.
10325 * solib-spu.c (append_ocl_sos): Update.
10326 * psymtab.c (maintenance_print_psymbols)
10327 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10328 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10329 * printcmd.c (info_symbol_command): Update.
10330 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10331 Update.
10332 * objfiles.h (class all_objfiles): Remove.
10333 * objfiles.c (have_partial_symbols, have_full_symbols)
10334 (have_minimal_symbols, qsort_cmp, update_section_map)
10335 (shared_objfile_contains_address_p)
10336 (default_iterate_over_objfiles_in_search_order): Update.
10337 * objc-lang.c (info_selectors_command, info_classes_command)
10338 (find_methods): Update.
10339 * minsyms.c (find_solib_trampoline_target): Update.
10340 * maint.c (maintenance_info_sections)
10341 (maintenance_translate_address, count_symtabs_and_blocks):
10342 Update.
10343 * main.c (captured_main_1): Update.
10344 * linux-thread-db.c (try_thread_db_load_from_pdir)
10345 (has_libpthread): Update.
10346 * linespec.c (iterate_over_all_matching_symtabs)
10347 (search_minsyms_for_name): Update.
10348 * jit.c (jit_find_objf_with_entry_addr): Update.
10349 * hppa-tdep.c (find_unwind_entry)
10350 (hppa_lookup_stub_minimal_symbol): Update.
10351 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10352 Update.
10353 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10354 (elf_gnu_ifunc_resolve_by_got): Update.
10355 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10356 * dwarf-index-write.c (save_gdb_index_command): Update.
10357 * cp-support.c (add_symbol_overload_list_qualified): Update.
10358 * breakpoint.c (create_overlay_event_breakpoint)
10359 (create_longjmp_master_breakpoint)
10360 (create_std_terminate_master_breakpoint)
10361 (create_exception_master_breakpoint): Update.
10362 * blockframe.c (find_pc_partial_function): Update.
10363 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10364 (ada_collect_symbol_completion_matches)
10365 (ada_add_global_exceptions): Update.
10366
776489e0
TT
103672019-01-17 Tom Tromey <tom@tromey.com>
10368
10369 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10370 declare VEC.
10371 (solib_target_parse_libraries): Change return type.
10372 (library_list_start_segment, library_list_start_section)
10373 (library_list_end_library, library_list_start_library); Update.
10374 (solib_target_free_library_list): Remove.
10375 (solib_target_parse_libraries): Remove cleanup. Change return
10376 type.
10377 (solib_target_current_sos): Update.
10378
6471e7d2
TT
103792019-01-17 Tom Tromey <tromey@bapiya>
10380
10381 * valprint.c: Replace "the the" with "the".
10382 * symtab.c: Replace "the the" with "the".
10383 * solib.c: Replace "the the" with "the".
10384 * solib-dsbt.c: Replace "the the" with "the".
10385 * linespec.c: Replace "the the" with "the".
10386 * dwarf2loc.h: Replace "the the" with "the".
10387 * amd64-windows-tdep.c: Replace "the the" with "the".
10388 * aarch64-tdep.c: Replace "the the" with "the".
10389
c24bdb02
KS
103902019-01-16 Keith Seitz <keiths@redhat.com>
10391
10392 PR gdb/23773
10393 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10394 <builder>: Rename to ..
10395 <m_builder>: ... this and make private.
10396 (dwarf2_cu::get_builder): New method. Change all users of
10397 `builder' to use this method.
10398 (dwarf2_start_symtab): Move to ...
10399 (dwarf2_cu::start_symtab): ... here. Update all callers
10400 (setup_type_unit_groups): Move to ...
10401 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10402 callers.
10403 (dwarf2_cu::reset_builder): New method.
10404 (process_full_compunit, process_full_type_unit): Use
10405 dwarf2_cu::reset_builder.
10406 (follow_die_offset): Record the ancestor CU if it is different
10407 from the followed DIE's CU.
10408 (follow_die_sig_1): Likewise.
10409
8d64371b
TT
104102019-01-15 Tom Tromey <tom@tromey.com>
10411
10412 * remote.c (class remote_state) <buf>: Now a char_vector.
10413 <buf_size>: Remove.
10414 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10415 parameter.
10416 (remote_target::getpkt_or_notif_sane_1)
10417 (remote_target::getpkt_sane)
10418 (remote_target::getpkt_or_notif_sane): Likewise.
10419 (class remote_target) <putpkt>: New overload.
10420 (remote_target::read_frame): Change type of "buf_p". Remove
10421 sizeof_p parameter.
10422 (packet_ok): New overload.
10423 (packet_check_result): New overload.
10424 Update all uses.
10425
bb277751
TT
104262019-01-14 Tom Tromey <tom@tromey.com>
10427
10428 * remote-notif.c (handle_notification, remote_notif_ack)
10429 (remote_notif_parse): Make "buf" const.
10430 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10431 const.
10432 (remote_notif_parse, remote_notif_ack, handle_notification):
10433 Likewise.
10434 * remote.c (remote_notif_stop_parse): Make "buf" const.
10435 (remote_target::remote_parse_stop_reply): Make "buf" const.
10436 (remote_notif_stop_ack): Make "buf" const.
10437
05be00a8
TT
104382019-01-14 Tom Tromey <tom@tromey.com>
10439
10440 * remote.c (remote_console_output): Make parameter const.
10441
491adeca
TT
104422019-01-14 Tom Tromey <tom@tromey.com>
10443
10444 * target-debug.h (target_debug_print_signals): Constify.
10445 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10446 * procfs.c (procfs_target::pass_signals): Update.
10447 * linux-nat.c (linux_nat_target::pass_signals): Update.
10448 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10449 * target-delegates.c: Rebuild.
10450 * remote.c (remote_target::program_signals): Update.
10451 (remote_target::pass_signals): Update.
10452 * target.c (target_pass_signals): Constify argument.
10453 (target_program_signals): Likewise.
10454 * target.h (struct target_ops) <pass_signals, program_signals>:
10455 Constify argument.
10456 (target_pass_signals, target_program_signals): Constify argument.
10457
bbd94648
TT
104582019-01-14 Tom Tromey <tom@tromey.com>
10459
10460 PR tui/28819:
10461 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10462
6f072a10
PFC
104632019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10464
10465 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10466 field.
10467 * rs6000-tdep.c: Include reggroups.h.
10468 (IS_V_ALIAS_PSEUDOREG): Define.
10469 (rs6000_register_name): Return names for the "vX" aliases.
10470 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10471 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10472 aliases. Call default_register_reggroup_p for all other
10473 pseudo-registers.
10474 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10475 New functions.
10476 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10477 Handle "vX" aliases.
10478 (v_alias_pseudo_register_collect): New function.
10479 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10480 (rs6000_gdbarch_init): Initialize "vX" aliases as
10481 pseudo-registers. Restore registration of
10482 rs6000_pseudo_register_reggroup_p with
10483 set_tdesc_pseudo_register_reggroup_p.
10484
1a782351
MF
104852019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10486
10487 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10488 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10489 set_gdbarch_num_pseudo_regs.
10490
d73cff18
PW
104912019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10492
10493 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10494 Remove arg prefixname, add do_set and do_show.
10495 Add member functions set_list and show_list.
10496 * cli/cli-style.c (class cli_style_option): Update accordingly.
10497 (style_set_list): Move to file scope.
10498 (style_show_list): Likewise.
10499 (set_style): Call help_list.
10500 (show_style): Call cmd_show_list.
10501 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10502 Update to use the new macro.
10503
60a90376
JB
105042019-10-12 Joel Brobecker <brobecker@adacore.com>
10505
10506 * ada-lang.c (_initialize_ada_language): Expand the help text
10507 for the "catch exception" command.
10508
9d7c67bf
PW
105092019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10510
10511 * symtab.c (matching_obj_sections): Initialize obj,
10512 declare it closer to its usage.
10513
7cf47dc4
TT
105142019-01-10 Tom Tromey <tom@tromey.com>
10515
10516 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10517 (basic_inf_threads_range): Remove.
10518 (inf_threads_range, inf_non_exited_threads_range)
10519 (safe_inf_threads_range): Use next_adapter.
10520
d3cb6808
KS
105212019-01-10 Keith Seitz <keiths@redhat.com>
10522
10523 PR gdb/23712
10524 PR symtab/23010
10525 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10526 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10527
63a20375
KS
105282019-01-10 Keith Seitz <keiths@redhat.com>
10529
10530 PR gdb/23712
10531 PR symtab/23010
10532 * dictionary.c (pending_to_vector): Remove.
10533 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10534 Remove _1 suffix, replacing functions of the same name. Update
10535 all callers.
10536 (dict_create_hashed, dict_create_hashed_expandable)
10537 (dict_create_linear, dict_create_linear_expandable, dict_free)
10538 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10539 Make functions static.
10540
b026f593
KS
105412019-01-10 Keith Seitz <keiths@redhat.com>
10542
10543 PR gdb/23712
10544 PR symtab/23010
10545 * dictionary.h (struct dictionary): Replace declaration with
10546 multidictionary.
10547 (dict_create_hashed, dict_create_hashed_expandable)
10548 (dict_create_linear, dict_create_linear_expandable)
10549 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10550 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10551 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10552 taking multidictionary argument.
10553 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10554 * block.h (struct block) <dict>: Change to multidictionary
10555 and rename `multidict'.
10556 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10557 symmisc.c: Update all dictionary references to multidictionary.
10558
c7748ee9
KS
105592019-01-10 Keith Seitz <keiths@redhat.com>
10560
10561 PR gdb/23712
10562 PR symtab/23010
10563 * dictionary.c: Include unordered_map.
10564 (pending_to_vector): New function.
10565 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10566 Rewrite the non-"_1" functions to take vector instead
10567 of linked list.
10568 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10569 "new" _1 versions of the same name.
10570 (multidictionary): Define.
10571 (std::hash<enum language): New definition.
10572 (collate_pending_symbols_by_language, mdict_create_hashed)
10573 (mdict_create_hashed_expandable, mdict_create_linear)
10574 (mdict_create_linear_expandable, mdict_free)
10575 (find_language_dictionary, create_new_language_dictionary)
10576 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10577 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10578 (mdict_size, mdict_empty): New functions.
10579 * dictionary.h (mdict_iterator): Define.
10580
67aa1f3c
PA
105812019-01-10 Pedro Alves <palves@redhat.com>
10582
10583 * breakpoint.c (read_uploaded_action)
10584 (create_tracepoint_from_upload): Adjust to use
10585 gdb::unique_xmalloc_ptr.
10586 * ctf.c (ctf_write_uploaded_tp):
10587 (SET_ARRAY_FIELD): Use emplace_back.
10588 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10589 * tracefile-tfile.c (tfile_write_uploaded_tp):
10590 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10591 gdb::unique_xmalloc_ptr.
10592 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10593 at_string, cond_string, cmd_strings>: Replace char pointers
10594 with gdb::unique_xmalloc_ptr.
10595
2f667667
PA
105962019-01-10 Pedro Alves <palves@redhat.com>
10597
10598 * solib-target.c (library_list_start_library): Don't xstrdup name.
10599
36cb7237
PA
106002019-01-10 Pedro Alves <palves@redhat.com>
10601
10602 * mdebugread.c (parse_partial_symbols): Use
10603 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10604
da584958
AB
106052019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10606
10607 * linux-fork.c (scoped_switch_fork_info)
10608 <~scoped_switch_fork_info>: Fix incorrect variable name.
10609
1ef8573c
AB
106102019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10611
10612 * linux-fork.c (scoped_switch_fork_info)
10613 <scoped_switch_fork_info>: Make explicit.
10614 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10615
8d7bcccb
TT
106162019-01-10 Tom Tromey <tom@tromey.com>
10617
10618 * objfiles.h (objfile::reset_psymtabs): Update.
10619 * objfiles.c (objfile::objfile): Update.
10620 * psymtab.h (psymtab_storage::obstack): Update.
10621 (psymtab_storage::m_obstack): Use gdb::optional.
10622 (class psymtab_storage): Update comment. Remove objfile
10623 parameter.
10624 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10625
b596a3c7
TT
106262019-01-10 Tom Tromey <tom@tromey.com>
10627
10628 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10629 <free_psymtabs>: Now private.
10630 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10631 (allocate_psymtab): Use new method.
10632
a9342b62
TT
106332019-01-10 Tom Tromey <tom@tromey.com>
10634
10635 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10636 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10637 * mdebugread.c (parse_partial_symbols): Use
10638 allocate_dependencies.
10639 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10640 allocate_dependencies.
10641 (process_psymtab_comp_unit_reader)
10642 (build_type_psymtab_dependencies): Likewise.
10643 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10644
5af70966
TT
106452019-01-10 Tom Tromey <tom@tromey.com>
10646
10647 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10648 PSYMBOL_SET_LANGUAGE.
10649 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10650
5923a04c
TT
106512019-01-10 Tom Tromey <tom@tromey.com>
10652
10653 * psymtab.h (psymtab_storage::obstack): New method.
10654 <m_obstack>: Rename from obstack; now private.
10655 * psymtab.c (psymtab_storage): Update.
10656 * dwarf2read.c (create_addrmap_from_index)
10657 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10658 Update.
10659
6d6a12bf
TT
106602019-01-10 Tom Tromey <tom@tromey.com>
10661
10662 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10663 * objfiles.h (objfile::reset_psymtabs): New method.
10664
d320c2b5
TT
106652019-01-10 Tom Tromey <tom@tromey.com>
10666
10667 * symmisc.c (print_symbol_bcache_statistics): Update.
10668 (print_objfile_statistics): Update.
10669 * symfile.c (reread_symbols): Update.
10670 * psymtab.h (class psymtab_storage): New.
10671 * psymtab.c (psymtab_storage): New constructor.
10672 (~psymtab_storage): New destructor.
10673 (require_partial_symbols): Update.
10674 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10675 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10676 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10677 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10678 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10679 (start_psymtab_common, end_psymtab_common)
10680 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10681 (allocate_psymtab): Update.
10682 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10683 Update.
10684 (dump_psymtab_addrmap, maintenance_print_psymbols)
10685 (maintenance_check_psymtabs): Update.
10686 (class objfile_psymtabs): Move to objfiles.h.
10687 * psympriv.h (discard_psymtab): Now inline.
10688 (psymtab_discarder::psymtab_discarder): Update.
10689 (psymtab_discarder::~psymtab_discarder): Update.
10690 (ALL_OBJFILE_PSYMTABS): Rewrite.
10691 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10692 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10693 Remove fields.
10694 <partial_symtabs>: New field.
10695 (class objfile_psymtabs): Move from psymtab.h. Update.
10696 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10697 psymbol_cache.
10698 (objfile::~objfile): Don't destroy psymbol_cache.
10699 * mdebugread.c (parse_partial_symbols): Update.
10700 * dwarf2read.c (create_addrmap_from_index)
10701 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10702 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10703 (add_partial_subprogram, dwarf2_ranges_read): Update.
10704 * dwarf-index-write.c (write_address_map)
10705 (write_one_signatured_type, recursively_write_psymbols)
10706 (class debug_names, class debug_names, write_psymtabs_to_index):
10707 Update.
10708
1d94a5a3
TT
107092019-01-10 Tom Tromey <tom@tromey.com>
10710
10711 * symtab.h (SYMBOL_SET_NAMES): Update.
10712 (symbol_set_names): Update.
10713 (MSYMBOL_SET_NAMES): Update.
10714 * symtab.c (symbol_set_names): Change argument to be an
10715 objfile_per_bfd_storage.
10716 * psymtab.c (add_psymbol_to_bcache): Update.
10717 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10718
0f14768a
TT
107192019-01-10 Tom Tromey <tom@tromey.com>
10720
10721 * symtab.c (create_demangled_names_hash): Change argument to be an
10722 objfile_per_bfd_storage.
10723 (symbol_set_names): Update.
10724
6eee24ce
TT
107252019-01-10 Tom Tromey <tom@tromey.com>
10726
10727 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10728 init_psymbol_list.
10729 * psymtab.c (init_psymbol_list): Do nothing if already called.
10730 * psympriv.h (init_psymbol_list): Add comment.
10731 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10732 init_psymbol_list.
10733 * dbxread.c (dbx_symfile_read): Unconditionally call
10734 init_psymbol_list.
10735
75aedd27
TT
107362019-01-10 Tom Tromey <tom@tromey.com>
10737
10738 * xcoffread.c (scan_xcoff_symtab): Update.
10739 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10740 "where".
10741 * mdebugread.c (parse_partial_symbols)
10742 (handle_psymbol_enumerators): Update.
10743 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10744 * dbxread.c (read_dbx_symtab): Update.
10745 * psympriv.h (psymbol_placement): New enum.
10746 (add_psymbol_to_list): Update.
10747
939652a5
TT
107482019-01-10 Tom Tromey <tom@tromey.com>
10749
10750 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10751 static_psymbols parameters.
10752 (scan_xcoff_symtab): Update.
10753 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10754 static_psymbols parameters.
10755 * psympriv.h (start_psymtab_common): Update.
10756 * mdebugread.c (parse_partial_symbols): Update.
10757 * dwarf2read.c (create_partial_symtab): Update.
10758 * dbxread.c (read_dbx_symtab): Update.
10759 (start_psymtab): Remove global_psymbols and static_psymbols
10760 parameters.
10761
baa62830
TT
107622019-01-10 Tom Tromey <tom@tromey.com>
10763
10764 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10765 * psymtab.c (allocate_psymtab): Add comment.
10766 * psympriv.h (allocate_psymtab): Add comment.
10767 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10768 initializations.
10769 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10770
0e8f53ba
TT
107712019-01-10 Tom Tromey <tom@tromey.com>
10772
10773 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10774 Don't declare.
10775 * mipsread.c: Include mdebugread.h.
10776 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10777 Declare.
10778 * elfread.c: Include mdebugread.h.
10779
b22a7c6a
TT
107802019-01-09 Tom Tromey <tom@tromey.com>
10781
10782 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10783 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10784 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10785 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10786 (psym_lookup_symbol, psym_find_last_source_symtab)
10787 (psym_forget_cached_source_info, psym_print_stats)
10788 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10789 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10790 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10791 (psym_find_compunit_symtab_by_address)
10792 (maintenance_print_psymbols, maintenance_info_psymtabs)
10793 (maintenance_check_psymtabs): Use ranged for.
10794 * psymtab.h (class objfile_psymtabs): New.
10795 (require_partial_symbols): Return objfile_psymtabs.
10796 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10797
3b9d3ac2
TT
107982019-01-09 Tom Tromey <tom@tromey.com>
10799
10800 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10801 (find_pc_mapped_section, list_overlays_command)
10802 (map_overlay_command, unmap_overlay_command)
10803 (simple_overlay_update): Use all_objfiles.
10804 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10805 * printcmd.c (info_symbol_command): Use all_objfiles.
10806 * objfiles.h (ALL_OBJSECTIONS): Remove.
10807 * maint.c (maintenance_translate_address): Use all_objfiles.
10808 * gcore.c (gcore_create_callback): Use all_objfiles.
10809 (objfile_find_memory_regions): Likewise.
10810
8b31193a
TT
108112019-01-09 Tom Tromey <tom@tromey.com>
10812
10813 * symtab.c (find_line_symtab, info_sources_command)
10814 (make_source_files_completion_list): Use objfile_compunits.
10815 * source.c (select_source_symtab): Use objfile_compunits.
10816 * objfiles.h (struct objfile): Update comment.
10817 (ALL_OBJFILES): Remove.
10818 (ALL_FILETABS): Remove.
10819 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10820 objfile_compunits.
10821
d5da8b3c
TT
108222019-01-09 Tom Tromey <tom@tromey.com>
10823
10824 * symmisc.c (print_objfile_statistics, dump_objfile)
10825 (maintenance_print_symbols): Use compunit_filetabs.
10826 * source.c (forget_cached_source_info_for_objfile): Use
10827 compunit_filetabs.
10828 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10829 (ALL_FILETABS): Use compunit_filetabs.
10830 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10831 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10832
5accd1a0
TT
108332019-01-09 Tom Tromey <tom@tromey.com>
10834
10835 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10836 (compunit_filetabs): New.
10837 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10838 compunit_filetabs.
10839 (info_sources_command, make_source_files_completion_list): Remove
10840 declaration.
10841 * symmisc.c (print_objfile_statistics, dump_objfile)
10842 (maintenance_print_symbols): Remove declaration.
10843 (maintenance_info_symtabs): Use compunit_filetabs.
10844 (maintenance_info_line_tables): Likewise.
10845 * source.c (select_source_symtab): Change local variable name.
10846 (forget_cached_source_info_for_objfile): Remove declaration.
10847 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10848 * objfiles.c (objfile_relocate1): Remove declaration.
10849 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10850 declaration.
10851 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10852 * coffread.c (coff_symtab_read): Remove declaration.
10853 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10854 compunit_filetabs.
10855
d8aeb77f
TT
108562019-01-09 Tom Tromey <tom@tromey.com>
10857
10858 * symtab.c (lookup_objfile_from_block)
10859 (find_pc_sect_compunit_symtab, search_symbols)
10860 (default_collect_symbol_completion_matches_break_on): Use
10861 objfile_compunits.
10862 * objfiles.h (ALL_COMPUNITS): Remove.
10863 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10864 * cp-support.c (add_symbol_overload_list_qualified): Use
10865 objfile_compunits.
10866 * ada-lang.c (ada_collect_symbol_completion_matches)
10867 (ada_add_global_exceptions): Use objfile_compunits.
10868
592553c4
TT
108692019-01-09 Tom Tromey <tom@tromey.com>
10870
10871 * source.c (select_source_symtab)
10872 (forget_cached_source_info_for_objfile): Remove declaration.
10873 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10874 declaration.
10875 * maint.c (count_symtabs_and_blocks): Remove declaration.
10876 * cp-support.c (add_symbol_overload_list_qualified): Remove
10877 declaration.
10878 * coffread.c (coff_symtab_read): Remove declaration.
10879 * symtab.c (lookup_symbol_in_objfile_symtabs)
10880 (basic_lookup_transparent_type_1): Use objfile_compunits.
10881 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10882 (info_sources_command, search_symbols)
10883 (default_collect_symbol_completion_matches_break_on)
10884 (make_source_files_completion_list): Remove declaration.
10885 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10886 (ada_collect_symbol_completion_matches)
10887 (ada_add_global_exceptions): Remove declaration.
10888 * linespec.c (iterate_over_all_matching_symtabs): Use
10889 objfile_compunits.
10890 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10891 (class objfile_compunits): New.
10892 (ALL_COMPUNITS): Use objfile_compunits.
10893 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10894 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10895 objfile_compunits.
10896 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10897
5325b9bf
TT
108982019-01-09 Tom Tromey <tom@tromey.com>
10899
10900 * symtab.c (search_symbols)
10901 (default_collect_symbol_completion_matches_break_on): Use
10902 objfile_msymbols.
10903 * ada-lang.c (ada_lookup_simple_minsym)
10904 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10905 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10906 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10907 objfile_msymbols.
10908 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10909 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10910 * objc-lang.c (find_methods): Use objfile_msymbols.
10911 (info_selectors_command, info_classes_command): Likewise.
10912 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10913 * objfiles.h (class objfile_msymbols): New.
10914 (ALL_OBJFILE_MSYMBOLS): Remove.
10915 (ALL_MSYMBOLS): Remove.
10916
cac85af2
TT
109172019-01-09 Tom Tromey <tom@tromey.com>
10918
10919 * common/next-iterator.h (next_adapter): Add Iterator template
10920 parameter.
10921 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10922 (class all_objfiles_safe): New.
10923 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10924 * objfiles.c (put_objfile_before): Update comment.
10925 (add_separate_debug_objfile): Likewise.
10926 (free_all_objfiles): Use all_objfiles_safe.
10927 (objfile_purge_solibs): Likewise.
10928
aed57c53
TT
109292019-01-09 Tom Tromey <tom@tromey.com>
10930
10931 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10932 (expand_symtab_containing_pc, lookup_static_symbol)
10933 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10934 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10935 all_objfiles.
10936 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10937 * breakpoint.c (create_overlay_event_breakpoint)
10938 (create_longjmp_master_breakpoint)
10939 (create_std_terminate_master_breakpoint)
10940 (create_exception_master_breakpoint): Use all_objfiles.
10941 * linux-thread-db.c (try_thread_db_load_from_pdir)
10942 (has_libpthread): Use all_objfiles.
10943 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10944 * linespec.c (iterate_over_all_matching_symtabs)
10945 (search_minsyms_for_name): Use all_objfiles.
10946 * maint.c (maintenance_info_sections): Use all_objfiles.
10947 * main.c (captured_main_1): Use all_objfiles.
10948 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10949 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10950 * guile/scm-pretty-print.c
10951 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10952 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10953 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10954 (maintenance_print_msymbols): Use all_objfiles.
10955 * source.c (select_source_symtab): Use all_objfiles.
10956 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10957 * symfile.c (remove_symbol_file_command)
10958 (expand_symtabs_matching, map_symbol_filenames): Use
10959 all_objfiles.
10960 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10961 all_objfiles.
10962 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10963 * objc-lang.c (find_methods): Use all_objfiles.
10964 * objfiles.c (have_partial_symbols, have_full_symbols)
10965 (have_minimal_symbols, qsort_cmp)
10966 (default_iterate_over_objfiles_in_search_order): Use
10967 all_objfiles.
10968 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10969 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10970 (maintenance_check_psymtabs): Use all_objfiles.
10971 (ALL_PSYMTABS): Remove.
10972 * compile/compile-object-run.c (do_module_cleanup): Use
10973 all_objfiles.
10974 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10975 * cp-support.c (add_symbol_overload_list_qualified): Use
10976 all_objfiles.
10977 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10978 Use all_objfiles.
10979 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10980 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10981 all_objfiles.
10982 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10983 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10984 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10985 Uses all_objfiles.
10986 * solib.c (solib_read_symbols): Use all_objfiles
10987
99d89cde
TT
109882019-01-09 Tom Tromey <tom@tromey.com>
10989
10990 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10991 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10992 all_objfiles.
10993 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10994 * symmisc.c (print_symbol_bcache_statistics)
10995 (print_objfile_statistics, maintenance_print_objfiles)
10996 (maintenance_info_symtabs, maintenance_check_symtabs)
10997 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10998 all_objfiles.
10999 * source.c (forget_cached_source_info): Use all_objfiles.
11000 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11001 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11002 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11003 * objfiles.c (update_section_map): Use all_objfiles.
11004 (shared_objfile_contains_address_p): Likewise.
11005 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11006 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11007
21708325
TT
110082019-01-09 Tom Tromey <tom@tromey.com>
11009
11010 * common/next-iterator.h: New file.
11011 * objfiles.h (class all_objfiles): New.
11012 (struct objfile_iterator): New.
11013
669e09f6
PW
110142019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11015
11016 * NEWS: Move the description of the changed "frame", "select-frame",
11017 and "info frame" commands to the Changed commands section.
11018
041be526
SM
110192019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11020
11021 * gdbtypes.c (check_stub_method_group): Remove handling of old
11022 mangling schemes.
11023 * linespec.c (find_methods): Likewise.
11024 * stabsread.c (read_member_functions): Likewise.
11025 * valops.c (search_struct_method): Likewise.
11026 (value_struct_elt_for_reference): Likewise.
11027 * NEWS: Mention this change.
11028
0e2a2133
AB
110292019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11030
11031 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11032 print_source_lines.
11033 * source.c (print_source_lines_base): Update line number check.
11034 (print_source_lines): New function.
11035 (source_lines_range::source_lines_range): New function.
11036 * source.h (class source_lines_range): New class.
11037 (print_source_lines): New declaration.
11038
1055a3b4
PW
110392019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11040
11041 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11042
cfeadda5
TT
110432019-01-08 Tom Tromey <tom@tromey.com>
11044 Simon Marchi <simon.marchi@ericsson.com>
11045
11046 PR gdb/24060
11047 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11048 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11049 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11050 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11051 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11052 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11053
583068ca
AB
110542019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11055
11056 * source.c (select_source_symtab): Move header comment to
11057 declaration in source.h.
11058 (forget_cached_source_info_for_objfile): Likewise.
11059 (forget_cached_source_info): Likewise.
11060 (identify_source_line): Likewise.
11061 * source.h (identify_source_line): Move declaration from symtab.h
11062 and add comment from source.c
11063 (print_source_lines): Likewise.
11064 (forget_cached_source_info_for_objfile): Likewise.
11065 (forget_cached_source_info): Likewise.
11066 (select_source_symtab): Likewise.
11067 (enum print_source_lines_flag): Move definition from symtab.h.
11068 * symtab.h (identify_source_line): Move declaration to source.h.
11069 (print_source_lines): Likewise.
11070 (forget_cached_source_info_for_objfile): Likewise.
11071 (forget_cached_source_info): Likewise.
11072 (select_source_symtab): Likewise.
11073 (enum print_source_lines_flag): Move definition to source.h.
11074 * tui/tui-hooks.c: Add 'source.h' include.
11075
ec98a4ad
AB
110762019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11077
11078 * source.c (print_source_lines_base): Handle requests to print
11079 reverse line number sequences, and guard against empty lines
11080 string.
11081
62ea19c1
AB
110822019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11083
11084 * source.c (print_source_lines_base): Fix skip of '\r' if next
11085 character is '\n'.
11086
9d30e1fd
TT
110872019-01-06 Tom Tromey <tom@tromey.com>
11088
11089 * c-exp.y (struct c_parse_state) <macro_original_text,
11090 expansion_obstack>: New member.
11091 (macro_original_text, expansion_obstack): Remove globals.
11092 (scan_macro_expansion, scanning_macro_expansion)
11093 (finished_macro_expansion): Update.
11094 (scan_macro_cleanup): Remove.
11095 (yylex, c_parse): Update.
11096
c65bac38
TT
110972019-01-06 Tom Tromey <tom@tromey.com>
11098
11099 * c-exp.y (struct c_parse_state) <strings>: New member.
11100 (operator_stoken): Update.
11101
02e12e38
TT
111022019-01-06 Tom Tromey <tom@tromey.com>
11103
11104 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11105 (union type_stack_elt) <typelist_val>: Now a pointer to
11106 std::vector.
11107 (type_stack_cleanup): Don't declare.
11108 (push_typelist): Update.
11109 * parse.c (pop_typelist): Return a std::vector.
11110 (push_typelist): Take a std::vector.
11111 (follow_types): Update. Do not free args.
11112 (type_stack_cleanup): Remove.
11113 * c-exp.y (struct c_parse_state): New.
11114 (cpstate): New global.
11115 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11116 (nonempty_typelist): Update.
11117 (func_mod): Create a new vector.
11118 (c_parse): Create a c_parse_state.
11119 (check_parameter_typelist): Do not delete params.
11120 (function_method): Update. Do not delete type_list.
11121
f097f5ad
TT
111222019-01-06 Tom Tromey <tom@tromey.com>
11123
11124 PR gdb/28155:
11125 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11126 check_typedef.
11127 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11128 (print_return_value): Likewise.
11129
d2adf9f1
TT
111302019-01-05 Tom Tromey <tom@tromey.com>
11131
11132 * contrib/cleanup_check.py: Remove.
11133 * contrib/gcc-with-excheck: Remove.
11134 * contrib/exsummary.py: Remove.
11135 * contrib/excheck.py: Remove.
11136
2eab46b1
JB
111372019-01-05 Joel Brobecker <brobecker@adacore.com>
11138
11139 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11140 NULL. Initialize tpprev to NULL instead of assigning it
11141 to NULL on the next statement.
11142 * windows-nat.c (windows_delete_thread): Remove check for
11143 main_thread_id before printing thread exit notifications.
11144 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11145 Remove thread ID check against main_thread_id.
11146 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11147 windows_delete_thread.
11148 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11149
48c5e7e2
TT
111502019-01-04 Tom Tromey <tom@tromey.com>
11151
11152 * compile/compile.c (_initialize_compile): Use upper case for
11153 metasyntactic variables.
11154 * symmisc.c (_initialize_symmisc): Use upper case for
11155 metasyntactic variables.
11156 * psymtab.c (_initialize_psymtab): Use upper case for
11157 metasyntactic variables.
11158 * demangle.c (demangle_command): Use upper case for metasyntactic
11159 variables.
11160 (_initialize_demangler): Likewise.
11161 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11162 variables.
11163
986041cd
TT
111642019-01-03 Tom Tromey <tom@tromey.com>
11165
11166 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11167
7c711119
TT
111682019-01-03 Tom Tromey <tom@tromey.com>
11169
11170 * python/py-symtab.c (salpy_str): Update.
11171 (struct salpy_sal_object) <symtab>: Now a PyObject.
11172 (salpy_dealloc): Update.
11173 (del_objfile_sal): Use gdbpy_ref.
11174
1b20edf0
TT
111752019-01-03 Tom Tromey <tom@tromey.com>
11176
11177 * python/py-type.c (convert_field): Use new_reference. Return
11178 gdbpy_ref.
11179 (make_fielditem): Return gdbpy_ref.
11180 (typy_fields): Update.
11181 (typy_getitem): Update.
11182 (field_name): Return gdbpy_ref. Use new_reference.
11183 (typy_iterator_iternext): Update.
11184
ea41325b
TT
111852019-01-03 Tom Tromey <tom@tromey.com>
11186
11187 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11188
2a3c71d6
TT
111892019-01-03 Tom Tromey <tom@tromey.com>
11190
11191 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11192 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11193 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11194 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11195 (pspy_set_type_printers): Likewise.
11196 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11197 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11198 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11199 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11200 (objfpy_set_type_printers): Likewise.
11201
5c329e6a
TT
112022019-01-03 Tom Tromey <tom@tromey.com>
11203
11204 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11205 (gdbpy_print_stack): Use gdbpy_err_fetch.
11206 * python/python-internal.h (class gdbpy_err_fetch): New class.
11207 (class gdbpy_enter) <m_error_type, m_error_value,
11208 m_error_traceback>: Remove.
11209 <m_error>: New member.
11210 (gdbpy_exception_to_string): Don't declare.
11211 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11212 * python/py-value.c (convert_value_from_python): Use
11213 gdbpy_err_fetch.
11214 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11215 gdbpy_exception_to_string.
11216 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11217 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11218 gdbpy_err_fetch.
11219
169bb27b
AB
112202019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11221
11222 * linux-nat.c (delete_lwp_cleanup): Delete.
11223 (struct lwp_deleter): New struct.
11224 (lwp_info_up): New typedef.
11225 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11226 lwp_info_up.
11227
a07c8880
AB
112282019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11229
11230 * linux-fork.c (class scoped_switch_fork_info): New class.
11231 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11232
26089c49
AB
112332019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11234
11235 * valops.c (find_overload_match): Remove use of null_cleanup, and
11236 calls to do_cleanups.
11237
06d3e5b0
AB
112382019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11239
11240 * compile/compile-cplus-types.c
11241 (compile_cplus_instance::decl_name): Handle changes to
11242 cp_func_name.
11243 * cp-support.c (cp_func_name): Update header comment, update
11244 return type.
11245 * cp-support.h (cp_func_name): Update return type in declaration.
11246 * valops.c (find_overload_match): Move temp_func local to top
11247 level of function and change its type. Use temp_func to hold and
11248 delete temporary string obtained from cp_func_name.
11249
66644cd3
AB
112502019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11251
11252 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11253 gdb::char_vector, remove cleanup, and update uses of `msg`.
11254
592d8c0a
JW
112552019-01-03 Jim Wilson <jimw@sifive.com>
11256
11257 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11258
c55d06ec
TT
112592019-01-02 Tom Tromey <tom@tromey.com>
11260
11261 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11262 (tdesc_parse_xml): Remove cleanups.
11263 * target-descriptions.h (make_cleanup_free_target_description):
11264 Don't declare.
11265 (target_desc_deleter): New struct.
11266 (target_desc_up): New typedef.
11267 * target-descriptions.c (target_desc_deleter::operator()): Rename
11268 from free_target_description.
11269 (make_cleanup_free_target_description): Remove.
11270
3a6ae42d
TT
112712019-01-02 Tom Tromey <tom@tromey.com>
11272
11273 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11274 constructor, destructor.
11275 (linespec_parser): Remove typedef.
11276 (~linespec_parser): Rename from linespec_parser_delete.
11277 (linespec_lex_to_end, linespec_complete_label)
11278 (linespec_complete): Update.
11279 (decode_line_full): Remove cleanups.
11280 (decode_line_1): Update.
11281
61fd3e73
TT
112822019-01-02 Tom Tromey <tom@tromey.com>
11283
11284 * python/python-internal.h (inferior_to_inferior_object): Change
11285 return type.
11286 * python/py-exitedevent.c (create_exited_event_object): Update.
11287 * python/py-inferior.c (inferior_to_inferior_object): Return
11288 gdbpy_ref.
11289 (python_new_inferior, python_inferior_deleted)
11290 (thread_to_thread_object, delete_thread_object)
11291 (build_inferior_list, gdbpy_selected_inferior): Update.
11292 * python/py-infthread.c (create_thread_object): Update. Also fail
11293 if inferior_to_inferior_object fails.
11294
d20172fc
SM
112952019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11296
11297 * inferior.h (class inferior) <displaced_step_state>: New field.
11298 * infrun.h (struct displaced_step_state): Move here from
11299 infrun.c. Initialize fields, add constructor.
11300 <inf>: Remove field.
11301 <reset>: New method.
11302 * infrun.c (struct displaced_step_inferior_state): Move to
11303 infrun.h.
11304 (displaced_step_inferior_states): Remove.
11305 (get_displaced_stepping_state): Adust.
11306 (displaced_step_in_progress_any_inferior): Adjust.
11307 (displaced_step_in_progress_thread): Adjust.
11308 (displaced_step_in_progress): Adjust.
11309 (add_displaced_stepping_state): Remove.
11310 (get_displaced_step_closure_by_addr): Adjust.
11311 (remove_displaced_stepping_state): Remove.
11312 (infrun_inferior_exit): Call displaced_step_state.reset.
11313 (use_displaced_stepping): Don't check for NULL.
11314 (displaced_step_prepare_throw): Call
11315 get_displaced_stepping_state.
11316 (displaced_step_fixup): Don't check for NULL.
11317 (prepare_for_detach): Don't check for NULL.
11318
e3319240
PW
113192019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11320
11321 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11322 in case of call that did not complete.
11323
5d36dfb9
AU
113242019-01-02 Andrey Utkin <autkin@undo.io>
11325
11326 * symfile.c (find_separate_debug_file): Fix search of debug files for
11327 remote debuggee.
11328
8833fbf0
TT
113292019-01-02 Tom Tromey <tom@tromey.com>
11330
11331 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11332 indentation.
11333 * python/py-frame.c (frapy_older): Remove cast.
11334 (frapy_newer): Likewise.
11335 * python/py-breakpoint.c (local_setattro): Remove cast.
11336 * python/py-arch.c (archpy_name): Remove local variable.
11337 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11338
4ada3dfd
JB
113392019-01-02 Joel Brobecker <brobecker@adacore.com>
11340
11341 * unittests/basic_string_view/element_access/char/empty.cc:
11342 Fix year range in copyright header.
11343
113b7b81
AB
113442019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11345
11346 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11347 Delete.
11348 <operator==>: Update with for removed field.
11349 <hash>: Likewise.
11350 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11351 <isa_features>: ...this.
11352 <abi_features>: New field.
11353 (riscv_isa_flen): Update comment.
11354 (riscv_abi_xlen): New declaration.
11355 (riscv_abi_flen): New declaration.
11356 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11357 isa_features.
11358 (riscv_abi_xlen): New function.
11359 (riscv_isa_flen): Update to get answer from isa_features.
11360 (riscv_abi_flen): New function.
11361 (riscv_has_fp_abi): Update to get answer from abi_features.
11362 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11363 xlen and flen.
11364 (riscv_call_info) <xlen, flen>: Update comment.
11365 (riscv_call_arg_struct): Remove invalid assertions
11366 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11367 is removed.
11368 (riscv_gdbarch_init): Gather isa features and abi features
11369 separately, ensure both match on the gdbarch when reusing an old
11370 gdbarch. Relax an error check to allow 32-bit abi float to run on
11371 a target with 64-bit float hardware.
11372
b18ca514
PW
113732019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11374
11375 * source.c (search_command_helper): Stop reverse search
11376 when line 1 has been searched.
11377
ec70d8db
PW
113782019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11379
11380 * record-full.c (record_full_base_target::close): Rewrite
11381 record_full_core_buf_list free logic.
11382
5b38f9c1
PW
113832019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11384
11385 * break-catch-syscall.c (print_one_catch_syscall): xfree
11386 the last text.
11387
66d91b39
JB
113882019-01-01 Joel Brobecker <brobecker@adacore.com>
11389
11390 * top.c (print_gdb_version): Update Copyright year in version
11391 message.
11392
42a4f53d
JB
113932019-01-01 Joel Brobecker <brobecker@adacore.com>
11394
11395 Update copyright year range in all GDB files.
11396
7e955d83 113972019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11398
5bbd631d 11399 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11400
5bbd631d 11401For older changes see ChangeLog-2018.
c906108c
SS
11402\f
11403Local Variables:
11404mode: change-log
11405left-margin: 8
11406fill-column: 74
11407version-control: never
57da7796 11408coding: utf-8
c906108c 11409End:
5bbd631d 11410