Change tui_show_source_content to be a method
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0bd27e07
TT
12019-08-13 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.h (struct tui_source_window_base)
4 <show_source_content>: Declare.
5 (tui_show_source_content): Don't declare.
6 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7 (tui_source_window_base::show_source_content): Rename from
8 tui_show_source_content.
9 (tui_source_window_base::refresh_all): Update.
10 * tui/tui-layout.c (show_source_disasm_command)
11 (show_source_or_disasm_and_command): Update.
12
b4ef5aeb
TT
132019-08-13 Tom Tromey <tom@tromey.com>
14
15 * tui/tui-winsource.c (tui_erase_source_content)
16 (tui_show_source_content, tui_source_window_base::refresh_all):
17 Update.
18 * tui/tui-wingeneral.h
19 (tui_check_and_display_highlight_if_needed): Don't declare.
20 * tui/tui-wingeneral.c
21 (tui_win_info::check_and_display_highlight_if_needed): Rename from
22 check_and_display_highlight_if_needed.
23 * tui/tui-win.c (tui_rehighlight_all)
24 (tui_win_info::make_visible_with_new_height): Update.
25 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
26 (tui_data_window::erase_data_content)
27 (tui_data_window::display_all_data): Update.
28 * tui/tui-data.h (struct tui_win_info)
29 <check_and_display_highlight_if_needed>: Declare.
30
fede5273
TT
312019-08-13 Tom Tromey <tom@tromey.com>
32
33 * tui/tui-win.c (tui_resize_all): Call
34 tui_delete_invisible_windows.
35 * tui/tui-layout.c (show_layout): Call
36 tui_delete_invisible_windows.
37 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
38 * tui/tui-data.c (tui_delete_invisible_windows): New function.
39
22c3f490
TT
402019-08-13 Tom Tromey <tom@tromey.com>
41
42 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
43 tui_add_win_to_layout.
44
16cb7910
TT
452019-08-13 Tom Tromey <tom@tromey.com>
46
47 * tui/tui-layout.h (tui_default_win_height): Don't declare.
48 * tui/tui-layout.c (tui_default_win_height): Now static.
49
cc0c3ffb
TT
502019-08-13 Tom Tromey <tom@tromey.com>
51
52 * tui/tui-layout.c (show_layout): Unify all layout cases into a
53 single switch.
54 (show_source_disasm_command, show_source_or_disasm_and_command):
55 Don't check current layout.
56
3f3ffe54
TT
572019-08-13 Tom Tromey <tom@tromey.com>
58
59 * tui/tui-wingeneral.c (make_all_visible): Remove.
60 (tui_make_all_invisible): Simplify.
61 * tui/tui-layout.c (tui_make_all_invisible): Move from
62 tui-wingeneral.c; simplify.
63 (show_layout): Hoist call to tui_make_all_invisible.
64 (show_data): Don't call tui_make_all_invisible.
65
69258091
TT
662019-08-13 Tom Tromey <tom@tromey.com>
67
68 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
69 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
70
62cf57fe
TT
712019-08-13 Tom Tromey <tom@tromey.com>
72
73 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
74 tui-data.c.
75 (show_source_disasm_command, show_data)
76 (show_source_or_disasm_and_command): Don't use
77 tui_set_current_layout_to.
78 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
79 * tui/tui-data.c (current_layout, tui_current_layout): Move to
80 tui-layout.c.
81 (tui_set_current_layout_to): Remove.
82
2afade5d
TT
832019-08-13 Tom Tromey <tom@tromey.com>
84
85 * tui/tui-layout.c (tui_set_layout): Update.
86 * tui/tui-data.h (struct tui_layout_def): Remove.
87 (tui_layout_def): Don't declare.
88 * tui/tui-data.c (layout_def): Remove.
89 (tui_layout_def): Remove.
90
a3504e96
TT
912019-08-13 Tom Tromey <tom@tromey.com>
92
93 * tui/tui-winsource.h (struct tui_source_window_base)
94 <clear_detail>: No longer "override".
95 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
96 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
97 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
98 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
99 Remove.
100 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
101
29c92911
TT
1022019-08-13 Tom Tromey <tromey@adacore.com>
103
104 * tracepoint.c: Don't include readline.h or history.h.
105
86c6b807
TT
1062019-08-12 Tom Tromey <tom@tromey.com>
107
108 * configure: Rebuild.
109 * configure.ac: Check for readline 7.
110 * NEWS: Mention readline 7 requirement.
111 * README: Update.
112
5db2718c
TT
1132019-08-12 Tom Tromey <tom@tromey.com>
114
115 * mingw-hdep.c (gdb_select): Remove readline hack.
116
dac36daf
PFC
1172019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
118
119 * blockframe.c (find_pc_partial_function): Set *block to nullptr
120 when the function fails.
121
1022c627
AA
1222019-08-09 Andreas Arnez <arnez@linux.ibm.com>
123
124 * s390-tdep.c (s390_type_align): New function.
125 (s390_gdbarch_init): Set it as type_align gdbarch method.
126
eba4caf2
TV
1272019-08-09 Tom de Vries <tdevries@suse.de>
128
129 PR gdb/24591
130 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
131 pc_low with relocation offset.
132
123cd851
TT
1332019-08-07 Tom Tromey <tromey@adacore.com>
134
135 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
136 (print_frame_args): Update.
137 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
138 Update.
139 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
140 * frame.h (struct frame_arg): Add initializers.
141 <error>: Now a unique_xmalloc_ptr.
142
3d31bc39
AH
1432019-08-07 Alan Hayward <alan.hayward@arm.com>
144
145 * NEWS: Expand the Pointer Authentication entry.
146 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
147 (aarch64_frame_unmask_lr): ... to this.
148 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
149 Call aarch64_frame_unmask_lr.
150 * frame.c (struct frame_info): Add "masked" variable.
151 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
152 (fprint_frame): Check for masked pc.
153 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
154 declarations.
155 * python/py-framefilter.c (py_print_frame): Check for masked pc.
156 * stack.c (print_frame): Check for masked pc.
157
0cf9feb9
TT
1582019-08-06 Tom Tromey <tom@tromey.com>
159
160 * stabsread.c (patch_block_stabs, read_one_struct_field)
161 (read_enum_type): Use obstack_strndup.
162 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
163 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
164 * dwarf2read.c (guess_full_die_structure_name)
165 (anonymous_struct_prefix): Use obstack_strndup.
166 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
167 * c-exp.y (yylex): Use obstack_strndup.
168 * ada-exp.y (write_object_renaming, write_ambiguous_var)
169 (write_var_or_type): Use obstack_strndup.
170
efba19b0
TT
1712019-08-06 Tom Tromey <tom@tromey.com>
172
173 * symfile.c (reread_symbols): Use obstack_strdup.
174 * stabsread.c (read_type): Use obstack_strdup.
175 * gdb_obstack.h (obstack_strdup): New overload.
176 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
177 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
178 (dwarf2_canonicalize_name): Use obstack_strdup.
179 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
180 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
181 Use obstack_strdup.
182
f25102f7
TT
1832019-08-06 Tom Tromey <tom@tromey.com>
184
185 * gdb_obstack.h (obstack_strdup): Define.
186 * gdb_obstack.c (obstack_strdup): Don't define.
187
021887d8
TT
1882019-08-06 Tom Tromey <tom@tromey.com>
189
190 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
191 obstack_strdup.
192 * typeprint.c (typedef_hash_table::find_global_typedef): Use
193 obstack_strdup.
194 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
195 * stabsread.c (common_block_start): Use obstack_strdup.
196 * objfiles.c (set_objfile_main_name, objfile): Use
197 obstack_strdup.
198 * namespace.c (add_using_directive): Use obstack_strdup.
199 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
200 * jit.c (finalize_symtab): Use obstack_strdup.
201 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
202 (guess_partial_die_structure_name, partial_die_info::fixup)
203 (dwarf2_name): Use obstack_strdup.
204 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
205 obstack_strdup.
206 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
207 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
208 obstack_strdup.
209 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
210
d2834edc
PW
2112019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
212
213 * unittests/help-doc-selftests.c: New file.
214 * Makefile.in: Add the new file.
215
590042fc
PW
2162019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
217
218 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
219 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
220 the full first line, except when FOR_VALUE_PREFIX. In this case,
221 the trailing '.' is not output, and the first character is uppercased.
222 (print_help_for_command): Update call to print_doc_line.
223 (print_doc_of_command): Likewise.
224 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
225 * cli/cli-option.c (append_indented_doc): Do not append newline.
226 (build_help_option): Append newline after first appended_indented_doc
227 only if a second call is done.
228 (build_help): Append 2 new lines before each option, except the first
229 one.
230 * compile/compile.c (_initialize_compile): Add new lines after
231 %OPTIONS%, when not at the end of the help.
232 Change help doc or code
233 producing the help doc to respect the invariants.
234 * maint-test-options.c (_initialize_maint_test_options): Likewise.
235 Also removed the new line after 'Options:', as all other commands
236 do not put an empty line between 'Options:' and the first option.
237 * printcmd.c (_initialize_printcmd): Likewise.
238 * stack.c (_initialize_stack): Likewise.
239 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
240 incorrectly telling COMMAND is optional.
241 * ada-lang.c (_initialize_ada_language): Change help doc or code
242 producing the help doc to respect the invariants.
243 * ada-tasks.c (_initialize_ada_tasks): Likewise.
244 * breakpoint.c (_initialize_breakpoint): Likewise.
245 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
246 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
247 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
248 * cli/cli-style.c (cli_style_option::add_setshow_commands,
249 _initialize_cli_style): Likewise.
250 * corelow.c (core_target_info): Likewise.
251 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
252 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
253 * filesystem.c (_initialize_filesystem): Likewise.
254 * frame.c (_initialize_frame): Likewise.
255 * gnu-nat.c (add_task_commands): Likewise.
256 * infcall.c (_initialize_infcall): Likewise.
257 * infcmd.c (_initialize_infcmd): Likewise.
258 * interps.c (_initialize_interpreter): Likewise.
259 * language.c (_initialize_language): Likewise.
260 * linux-fork.c (_initialize_linux_fork): Likewise.
261 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
262 * maint.c (_initialize_maint_cmds): Likewise.
263 * memattr.c (_initialize_mem): Likewise.
264 * printcmd.c (_initialize_printcmd): Likewise.
265 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
266 _RegEx): Likewise.
267 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
268 * record-btrace.c (_initialize_record_btrace): Likewise.
269 * record-full.c (_initialize_record_full): Likewise.
270 * record.c (_initialize_record): Likewise.
271 * regcache-dump.c (_initialize_regcache_dump): Likewise.
272 * regcache.c (_initialize_regcache): Likewise.
273 * remote.c (add_packet_config_cmd, init_remote_threadtests,
274 _initialize_remote): Likewise.
275 * ser-tcp.c (_initialize_ser_tcp): Likewise.
276 * serial.c (_initialize_serial): Likewise.
277 * skip.c (_initialize_step_skip): Likewise.
278 * source.c (_initialize_source): Likewise.
279 * stack.c (_initialize_stack): Likewise.
280 * symfile.c (_initialize_symfile): Likewise.
281 * symtab.c (_initialize_symtab): Likewise.
282 * target-descriptions.c (_initialize_target_descriptions): Likewise.
283 * top.c (init_main): Likewise.
284 * tracefile-tfile.c (tfile_target_info): Likewise.
285 * tracepoint.c (_initialize_tracepoint): Likewise.
286 * tui/tui-win.c (_initialize_tui_win): Likewise.
287 * utils.c (add_internal_problem_command): Likewise.
288 * valprint.c (value_print_option_defs): Likewise.
289
404f2902
FCE
2902019-08-06 Frank Ch. Eigler <fche@redhat.com>
291
292 PR build/24886
293 * configure.ac: Drop enable-libmcheck support.
294 * configure, config.in: Rebuild.
295 * libmcheck.m4: Remove.
296 * acinclude.m4: Don't include it.
297 * Makefile.in: Don't distribute it.
298 * top.c (print_gdb_configuration): Don't mention it.
299
046bebe1
TT
3002019-08-06 Tom Tromey <tom@tromey.com>
301
302 * utils.c (set_output_style): Sometimes pass stream to
303 emit_style_escape.
304 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
305 * record-btrace.c (btrace_insn_history): Update.
306 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
307 method.
308 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
309 Update initializers.
310 <m_uiout>: New field.
311 <m_di>: Move lower.
312 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
313 Remove "uiout" parameter.
314 (dump_insns): Update.
315 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
316 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
317
ddbcedf5
CB
3182019-08-06 Christian Biesinger <cbiesinger@google.com>
319
320 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
321 (error_in_psymtab_expansion): Likewise.
322 (lookup_symbol_via_quick_fns): Likewise.
323 (basic_lookup_transparent_type_quick): Likewise.
324 (basic_lookup_transparent_type_1): Likewise.
325
b08b16c8
TT
3262019-08-06 Tom Tromey <tromey@adacore.com>
327
328 * source.c (last_source_error): Now bool.
329 (print_source_lines_base): Make "noprint" bool. Only open
330 source file when last_source_visited changes.
331
cb44333d
TT
3322019-08-06 Tom Tromey <tromey@adacore.com>
333
334 * annotate.c (annotate_source_line): Use g_source_cache.
335 * source-cache.c (source_cache::get_plain_source_lines): Change
336 parameters. Populate m_offset_cache.
337 (source_cache::ensure): New method.
338 (source_cache::get_line_charpos): New method.
339 (extract_lines): Move lower. Change parameters.
340 (source_cache::get_source_lines): Move lower.
341 * source-cache.h (class source_cache): Update comment.
342 <get_line_charpos>: New method.
343 <get_source_lines>: Update comment.
344 <clear>: Clear m_offset_cache.
345 <get_plain_source_lines>: Change parameters.
346 <ensure>: New method
347 <m_offset_cache>: New member.
348 * source.c (forget_cached_source_info_for_objfile): Update.
349 (info_source_command): Use g_source_cache.
350 (find_source_lines, open_source_file_with_line_charpos): Remove.
351 (print_source_lines_base, search_command_helper): Use g_source_cache.
352 * source.h (open_source_file_with_line_charpos): Don't declare.
353 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
354 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
355 Use g_source_cache.
356
872dceaa
TT
3572019-08-06 Tom Tromey <tromey@adacore.com>
358
359 * source-cache.c (source_cache::get_plain_source_lines):
360 Remove "first_line" and "last_line" parameters.
361 (source_cache::get_source_lines): Cache plain text.
362 * source-cache.h (class source_cache)
363 <get_plain_source_lines>: Update.
364
269249d9
TT
3652019-08-06 Tom Tromey <tromey@adacore.com>
366
367 * source-cache.c (extract_lines): No longer a method.
368 Changed type of parameter. Include final newline.
369 (selftests::extract_lines_test): New function.
370 (_initialize_source_cache): Likewise.
371 * source-cache.h (class source_cache)
372 <extract_lines>: Don't declare.
373
c0e8dcd8
TT
3742019-08-06 Tom Tromey <tromey@adacore.com>
375
376 * breakpoint.c (init_breakpoint_sal): Update.
377 (breakpoint): Update.
378 * breakpoint.h (struct breakpoint) <filter>: Now a
379 unique_xmalloc_ptr.
380
0b27c27d
CB
3812019-08-05 Christian Biesinger <cbiesinger@google.com>
382
383 * NEWS: Mention dictionary access on blocks.
384 * python/py-block.c (blpy_getitem): New function.
385 (block_object_as_mapping): New struct.
386 (block_object_type): Use new struct for tp_as_mapping field.
387
4ee94178
CB
3882019-08-05 Christian Biesinger <cbiesinger@google.com>
389
390 * objfiles.h (objfile): Add a comment describing partial symbols.
391
8abfcabc
TT
3922019-08-05 Tom Tromey <tromey@adacore.com>
393
394 * compile/compile.c (_initialize_compile): Use _(), not N_().
395 * thread.c (_initialize_thread): Use _(), not N_().
396 * stack.c (_initialize_stack): Use _(), not N_().
397 * printcmd.c (_initialize_printcmd): Use _(), not N_().
398
2b79f376
SM
3992019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
400
401 * dwarf2read.c (struct dw2_symtab_iterator):
402 <want_specific_block>: Remove.
403 <block_index>: Change type to gdb::optional.
404 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
405 change type of BLOCK_INDEX parameter to gdb::optional.
406 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
407 (dw2_lookup_symbol): Don't pass argument for
408 WANT_SPECIFIC_BLOCK.
409 (dw2_expand_symtabs_for_function): Don't pass argument for
410 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
411 (class dw2_debug_names_iterator)
412 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
413 parameter, change BLOCK_INDEX type to gdb::optional.
414 <m_want_specific_block>: Remove.
415 <m_block_index>: Change type to gdb::optional.
416 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
417 gdb::optional. Re-write in function of gdb::optional.
418 (dw2_debug_names_lookup_symbol): Don't pass argument for
419 WANT_SPECIFIC_BLOCK.
420 (dw2_debug_names_expand_symtabs_for_function): Don't pass
421 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
422 BLOCK_INDEX.
423
ae60f04e
PW
4242019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
425
426 * NEWS: Mention changes to "info sources" command.
427
28cd9371
PW
4282019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
429
430 * symtab.c (filename_partial_match_opts): New struct type.
431 (struct output_source_filename_data): New members
432 regexp, c_regexp, partial_match.
433 (output_source_filename): Use new members to decide to print file.
434 (info_sources_option_defs): New variable.
435 (make_info_sources_options_def_group, print_info_sources_header,
436 info_sources_command_completer):
437 New functions.
438 (info_sources_command): Read new optional arguments.
439 (_initialize_symtab): Update info sources help.
440
ca683e3a
AO
4412019-08-02 Alexandre Oliva <oliva@adacore.com>
442
443 * ada-lang.c (exception_support_info_v0): Renamed from...
444 (default_exception_support_info): ... this. Create new
445 definition for v1.
446 (ada_has_this_exception_support): Look up catch_handlers_sym.
447 (ada_exception_support_info_sniffer): Try v0 after default.
448
f1264162
TT
4492019-08-01 Tom Tromey <tromey@adacore.com>
450
451 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
452 gdbarch.h.
453
0a7b2485
CB
4542019-08-01 Christian Biesinger <cbiesinger@google.com>
455
456 * s12z-tdep.c: Fix include path for s12z-opc.h.
457
c6bdbeb7
AH
4582019-08-01 Alan Hayward <alan.hayward@arm.com>
459
460 * NEWS: Require GNU make 3.82.
461
a2bd7b82
TT
4622019-07-16 Tom Tromey <tom@tromey.com>
463
464 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
465 declare.
466
aa3b6533
TT
4672019-07-30 Tom Tromey <tromey@adacore.com>
468
469 * block.c (contained_in): Remove BLOCK_FUNCTION check.
470
a1530dc7
KB
4712019-07-30 Kevin Buettner <kevinb@redhat.com>
472
473 * printcmd.c (print_address_symbolic): Print negative offsets.
474 (build_address_symbolic): Force signed arithmetic when computing
475 offset.
476
2906593f
CB
4772019-07-30 Christian Biesinger <cbiesinger@google.com>
478
479 PR/24474: Add a function to lookup static variables.
480 * NEWS: Mention this new function.
481 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
482 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
483 * python/python.c (python_GdbMethods): Add new function.
484
c620ed88
CB
4852019-07-29 Christian Biesinger <cbiesinger@google.com>
486
487 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
488 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
489 (objfpy_lookup_static_symbol): New function.
490 (objfile_object_methods): Add new functions.
491
bc4268a5
PW
4922019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
493
494 * NEWS: Mention 'set|show print frame-info'. Mention new
495 'presence' value for 'frame-arguments'. Mention new '-frame-info'
496 backtrace argument. Mention that python frame filtering code
497 is now consistent with what 'backtrace' command prints.
498
4b5e8d19
PW
4992019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
500
501 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
502 comments.
503 (print_frame_info_auto, print_frame_info_source_line,
504 print_frame_info_location, print_frame_info_source_and_location,
505 print_frame_info_location_and_address, print_frame_info_short_location):
506 New declarations.
507 (struct frame_print_options): New member print_frame_info.
508 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
509 * stack.h (get_user_print_what_frame_info): New declaration.
510 (frame_show_address): New declaration.
511 * stack.c (print_frame_arguments_choices): New value 'presence'.
512 (print_frame_info_auto, print_frame_info_source_line,
513 print_frame_info_location, print_frame_info_source_and_location,
514 print_frame_info_location_and_address, print_frame_info_short_location,
515 print_frame_info_choices, print_frame_info_print_what): New definitions.
516 (print_frame_args): Only print dots for args if print frame-arguments
517 is 'presence'.
518 (frame_print_option_defs): New element for "frame-info".
519 (get_user_print_what_frame_info): New function.
520 (frame_show_address): Make non static. Move comment to stack.h.
521 (print_frame_info_to_print_what): New function.
522 (print_frame_info): Update comment. Use fp_opts.print_frame_info
523 to decide what to print.
524 (backtrace_command_1): Handle the new print_frame_arguments_presence
525 value.
526 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
527 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
528 (py_print_frame): In non-mi mode, use LOCATION as default for
529 print_what, similarly to frame information printed directly by
530 backtrace command. Handle frame-info user option in non MI mode.
531
6bdfee81
KB
5322019-07-27 Kevin Buettner <kevinb@redhat.com>
533
534 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
535 Add case for debugging 32-bit target on 64-bit host. Revise
536 comment.
537
98a617f8
KB
5382019-07-27 Kevin Buettner <kevinb@redhat.com>
539
540 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
541 instead of find_function_entry_range_from_pc.
542
567238c9
KB
5432019-07-27 Kevin Buettner <kevinb@redhat.com>
544
545 * stack.c (find_frame_funname): Remove code which preferred
546 minsym over symtab sym in "certain pathological cases".
547
2dc80cf8
KB
548 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
549 parameter. Change type of "do_demangle" to bool.
550 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
551 Pass suitable "prefer_sym_over_minsym" flag to
552 build_address_symbolic(). Don't output "+" for negative offsets.
553 * printcmd.c (print_address_symbolic): Update invocation of
554 build_address_symbolic to include a "prefer_sym_over_minsym"
555 flag.
556 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
557 Restrict cases in which use of minimal symbol is preferred to that
558 of a found symbol. Update comments.
559
1aff7173
KB
560 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
561 for entry pc when entry pc is out of range for that FDE.
562
89b085ac
BC
5632019-07-26 Brian Callahan <bcallah@openbsd.org>
564
565 PR gdb/24839:
566 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
567 type.
568
f32feb4a
CB
5692019-07-25 Christian Biesinger <cbiesinger@google.com>
570
571 * python/py-objfile.c (add_separate_debug_file): Fix comment about
572 this function's Python signature.
573
574
5752019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
576
577 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
578 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
579 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
580 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
581 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
582
583
c54e4253
YS
5842019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
585
586 * h8300-tdep.c (h8300_register_name_common): New.
587 h8300_register_name): Use h8300_register_name_common.
588 (h8300s_register_name): Likewise.
589 (h8300sx_register_name): Likewise.
590 (h8300h_register_nam): New.
591 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
592
593
40eadf04
SP
5942019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
595
596 * arm-tdep.c (arm_skip_cmse_entry): New function.
597 (arm_is_sgstubs_section): New function.
598 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
599
bfa2a36d
TT
6002019-07-22 Tom Tromey <tom@tromey.com>
601
602 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
603 Don't self-assign.
604
a8e9d247
AB
6052019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
606
607 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
608 type_print.
609
eb86c5e2
AB
6102019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
611
612 * symtab.c (search_symbols): Adjust msymbol matching type arrays
613 so that GDB doesn't match any msymbols when searching in the
614 TYPES_DOMAIN.
615 (print_symbol_info): Print using typedef_print or type_print based
616 on the type of the symbol. Add updated FIXME comment moved from...
617 (_initialize_symtab): ... move and update FIXME comment to above.
618
a8eab7c6
AB
6192019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * NEWS: Mention adding -q option to "info types".
622 * symtab.c (struct info_types_options): New struct.
623 (info_types_options_defs): New variable.
624 (make_info_types_options_def_group): New function.
625 (info_types_command): Use gdb::option framework to parse options.
626 (info_types_command_completer): New function.
627 (_initialize_symtab): Extend the help text on "info types" and
628 register command completer.
629
b4603c34
CB
6302019-07-21 Christian Biesinger <cbiesinger@google.com>
631
632 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
633 (lookup_symbol_in_objfile): Change int to block_enum and add a
634 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
635
c8cdc1e0
CB
6362019-07-20 Christian Biesinger <cbiesinger@google.com>
637
638 * MAINTAINERS (Write After Approval): Add self.
639
01e175fe
AB
6402019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
641
642 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
643 instruction to the dummy code region.
644
56f79b63
TT
6452019-07-19 Tom Tromey <tromey@adacore.com>
646
647 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
648 (ARGSUSED, PARAMS, __func__): Remove rules.
649
4c5aa8e0
AH
6502019-07-19 Alan Hayward <alan.hayward@arm.com>
651
652 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
653 * features/arm/arm-with-iwmmxt.c: Remove.
654 * features/arm/arm-with-iwmmxt.xml: Remove.
655 * features/arm/arm-with-m-fpa-layout.c: Remove.
656 * features/arm/arm-with-m-fpa-layout.xml: Remove.
657 * features/arm/arm-with-m-vfp-d16.c: Remove.
658 * features/arm/arm-with-m-vfp-d16.xml: Remove.
659 * features/arm/arm-with-m.c: Remove.
660 * features/arm/arm-with-m.xml: Remove.
661 * features/arm/arm-with-neon.c: Remove.
662 * features/arm/arm-with-neon.xml: Remove.
663 * features/arm/arm-with-vfpv2.c: Remove.
664 * features/arm/arm-with-vfpv2.xml: Remove.
665 * features/arm/arm-with-vfpv3.c: Remove.
666 * features/arm/arm-with-vfpv3.xml: Remove.
667
f42b2617
AH
6682019-07-19 Alan Hayward <alan.hayward@arm.com>
669
670 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
671
f29ec966
AH
6722019-07-19 Alan Hayward <alan.hayward@arm.com>
673
674 * arch/aarch32.c (aarch32_create_target_description): Create
675 target descriptions using features.
676 * arch/arm.c (arm_create_target_description)
677 (arm_create_mprofile_target_description): Likewise.
678 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
679
d105cce5
AH
6802019-07-19 Alan Hayward <alan.hayward@arm.com>
681
682 * Makefile.in: Add new files.
683 * aarch32-tdep.c: New file.
684 * aarch32-tdep.h: New file.
685 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
686 Call aarch32_read_description.
687 * arch/aarch32.c: New file.
688 * arch/aarch32.h: New file.
689 * arch/arm.c (arm_create_target_description)
690 (arm_create_mprofile_target_description): New function.
691 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
692 (arm_create_target_description)
693 (arm_create_mprofile_target_description): New declaration.
694 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
695 read_description functions.
696 * arm-linux-nat.c (arm_linux_nat_target::read_description):
697 Likewise.
698 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
699 * arm-tdep.c (tdesc_arm_list): New variable.
700 (arm_register_g_packet_guesses): Call create description functions.
701 (arm_read_description) (arm_read_mprofile_description): New
702 function.
703 * arm-tdep.h (arm_read_description)
704 (arm_read_mprofile_description): Add declaration.
705 * configure.tgt: Add new files.
706
afe09f0b
GL
7072019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
708
709 * top.c (new_ui_command): Open specified terminal just once.
710
cd215b2e
TT
7112019-07-18 Tom Tromey <tromey@adacore.com>
712
713 * symtab.c (main_name): Constify return type.
714 * symfile.c (set_initial_language): Update.
715 * symtab.h (main_name): Constify return type.
716
d8f68fcb
TT
7172019-07-17 Tom Tromey <tom@tromey.com>
718
719 * tui/tui-winsource.c (tui_update_source_window)
720 (tui_update_source_window_as_is)
721 (tui_update_source_windows_with_line): Remove return.
722 * tui/tui-disasm.c (tui_show_disassem)
723 (tui_show_disassem_and_update_source): Remove return.
724 * tui/tui.c (tui_reset): Remove return.
725 * tui/tui-wingeneral.c
726 (tui_check_and_display_highlight_if_needed): Remove return.
727
ca5af91e
TT
7282019-07-17 Tom Tromey <tom@tromey.com>
729
730 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
731
5104fe36
TT
7322019-07-17 Tom Tromey <tom@tromey.com>
733
734 * tui/tui-winsource.h (struct tui_exec_info_window)
735 (struct tui_source_window_base): Move from tui-data.h.
736 * tui/tui-winsource.c: Move many method definitions from
737 elsewhere. Remove "structuring" comments.
738 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
739 (tui_source_window_base::refresh_window): Move to
740 tui-winsource.c.
741 * tui/tui-win.c (tui_source_window_base::refresh_all)
742 (tui_source_window_base::update_tab_width)
743 (tui_source_window_base::set_new_height)
744 (tui_source_window_base::do_make_visible_with_new_height): Move to
745 tui-winsource.c.
746 * tui/tui-source.h: Update.
747 * tui/tui-source.c (tui_source_window_base::reset): Move to
748 tui-winsource.c.
749 * tui/tui-disasm.h: Update.
750 * tui/tui-data.h (struct tui_exec_info_window): Move to
751 tui-winsource.h.
752 (struct tui_source_window_base): Likewise.
753 * tui/tui-data.c (tui_source_window_base::clear_detail)
754 (tui_source_window_base, ~tui_source_window_base): Move to
755 tui-winsource.c.
756
daa15dde
TT
7572019-07-17 Tom Tromey <tom@tromey.com>
758
759 * tui/tui-win.c (tui_resize_all)
760 (tui_source_window_base::update_tab_width)
761 (tui_adjust_win_heights): Update.
762 (tui_win_info::make_invisible_and_set_new_height): Rename from
763 make_invisible_and_set_new_height.
764 * tui/tui-data.h (struct tui_win_info)
765 <make_invisible_and_set_new_height>: New method.
766
bfad4537
TT
7672019-07-17 Tom Tromey <tom@tromey.com>
768
769 * tui/tui.c: Update.
770 * tui/tui-source.h (struct tui_source_window): Move from
771 tui-data.h.
772 * tui/tui-layout.c: Update.
773 * tui/tui-disasm.c: Update.
774 * tui/tui-data.h (struct tui_source_window): Move to
775 tui-source.h.
776
88f7e873
TT
7772019-07-17 Tom Tromey <tom@tromey.com>
778
779 * tui/tui-disasm.h (struct tui_disasm_window): Move from
780 tui-data.h.
781 * tui/tui-data.h (struct tui_disasm_window): Move to
782 tui-disasm.h.
783
96bd6233
TT
7842019-07-17 Tom Tromey <tom@tromey.com>
785
786 * tui/tui-regs.h (struct tui_data_item_window): Move from
787 tui-data.h.
788 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
789 * tui/tui-data.h (struct tui_data_item_window): Move to
790 tui-regs.h.
791 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
792
ce38393b
TT
7932019-07-17 Tom Tromey <tom@tromey.com>
794
795 * tui/tui.c: Update.
796 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
797 (tui_cmd_window::max_height): Move to tui-command.c.
798 * tui/tui-layout.c: Update.
799 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
800 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
801 tui-command.c.
802 * tui/tui-command.h (struct tui_cmd_window): Move from
803 tui-data.h.
804 * tui/tui-command.c: Remove "structuring" comments.
805 (tui_cmd_window::clear_detail)
806 (tui_cmd_window::do_make_visible_with_new_height)
807 (tui_cmd_window::max_height): Move from elsewhere.
808
2d8b51cb
TT
8092019-07-17 Tom Tromey <tom@tromey.com>
810
811 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
812 Now static.
813 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
814 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
815
18ab23af
TT
8162019-07-17 Tom Tromey <tom@tromey.com>
817
818 * tui/tui.c: Update.
819 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
820 tui-regs.c.
821 * tui/tui-windata.h: Remove file.
822 * tui/tui-windata.c: Remove file.
823 * tui/tui-win.c (tui_data_window::set_new_height)
824 (tui_data_window::do_make_visible_with_new_height): Move to
825 tui-regs.c.
826 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
827 * tui/tui-regs.c: Remove "structuring" comments.
828 (tui_data_window::first_data_item_displayed)
829 (tui_data_window::delete_data_content_windows)
830 (tui_data_window::erase_data_content)
831 (tui_data_window::display_all_data)
832 (tui_data_window::refresh_all)
833 (tui_data_window::do_scroll_vertical)
834 (tui_data_window::clear_detail, tui_data_window::set_new_height)
835 (tui_data_window::do_make_visible_with_new_height)
836 (tui_data_window::refresh_window): Move from elsewhere.
837 (_initialize_tui_regs): Move to end of file.
838 * tui/tui-layout.c: Update.
839 * tui/tui-hooks.c: Update.
840 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
841 * tui/tui-data.c (tui_data_window::clear_detail): Move to
842 tui-regs.c.
843 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
844
88b7e7cc
TT
8452019-07-17 Tom Tromey <tom@tromey.com>
846
847 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
848 seen.
849
0fcd3711
TT
8502019-07-17 Tom Tromey <tom@tromey.com>
851
852 * tui/tui-win.c (tui_source_window_base::set_new_height)
853 (tui_source_window_base::do_make_visible_with_new_height): Use
854 m_has_locator field directly.
855 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
856 method.
857 (struct tui_source_window_base) <has_locator>: Likewise.
858
4a38112d
TT
8592019-07-17 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
862 Don't declare.
863 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
864 Remove.
865 * tui/tui-win.c (tui_source_window_base::set_new_height)
866 (tui_source_window_base::set_new_height)
867 (make_invisible_and_set_new_height)
868 (tui_source_window_base::do_make_visible_with_new_height)
869 (tui_source_window_base::do_make_visible_with_new_height):
870 Update.
871 * tui/tui-layout.c (show_source_disasm_command, show_data)
872 (show_source_or_disasm_and_command): Update.
873 * tui/tui-layout.c (show_layout): Update.
874
09129226
TT
8752019-07-17 Tom Tromey <tom@tromey.com>
876
877 * tui/tui-layout.c (make_data_window): Remove.
878 (show_data): Unify creation and re-initialization cases.
879
4a8a5e84
TT
8802019-07-17 Tom Tromey <tom@tromey.com>
881
882 * tui/tui-layout.c (make_source_window, make_disasm_window):
883 Remove.
884 (show_data): Unify creation and re-initialization cases.
885
76d2be8e
TT
8862019-07-17 Tom Tromey <tom@tromey.com>
887
888 * tui/tui-layout.c (make_command_window): Remove.
889 (show_source_disasm_command, show_source_or_disasm_and_command):
890 Unify creation and re-initialization cases.
891
890b8bde
TT
8922019-07-17 Tom Tromey <tom@tromey.com>
893
894 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
895 creation and re-initialization cases.
896
2cdfa113
TT
8972019-07-17 Tom Tromey <tom@tromey.com>
898
899 * tui/tui-regs.c (tui_get_register): Return void.
900
8e3cfd09
TT
9012019-07-17 Tom Tromey <tom@tromey.com>
902
903 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
904 Simplify.
905
f4e04977
TT
9062019-07-17 Tom Tromey <tom@tromey.com>
907
908 * tui/tui-layout.c (show_source_disasm_command): Simplify window
909 resetting.
910
0379b883
TT
9112019-07-17 Tom Tromey <tom@tromey.com>
912
913 * tui/tui.h (tui_set_layout_by_name): Don't declare.
914 * tui/tui-regs.c (tui_reg_layout): New function.
915 (tui_show_registers, tui_reg_command): Use it.
916 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
917 (tui_layout_command): Rename from tui_set_layout_by_name. Change
918 parameters.
919 (tui_layout_command): Remove.
920
b7fbad91
TT
9212019-07-17 Tom Tromey <tom@tromey.com>
922
923 * tui/tui-layout.h (tui/tui-layout): Return void.
924 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
925
4e1e56b9
TT
9262019-07-17 Tom Tromey <tom@tromey.com>
927
928 * tui/tui-layout.c (show_source_disasm_command, show_data):
929 Update.
930 (reset_locator): Remove.
931 (show_source_or_disasm_and_command): Update.
932
1e0c09ba
TT
9332019-07-17 Tom Tromey <tom@tromey.com>
934
935 * tui/tui-source.c (tui_source_window_base::reset): Remove
936 win_type parameter.
937 * tui/tui-layout.c (make_command_window, make_source_window)
938 (make_disasm_window, make_data_window)
939 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
940 (reset_locator, show_source_or_disasm_and_command): Update.
941 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
942 win_type parameter.
943 (struct tui_source_window_base) <reset>: Likewise.
944
1bf605de
TT
9452019-07-17 Tom Tromey <tom@tromey.com>
946
947 * tui/tui-layout.c (show_source_disasm_command): Use
948 reset_locator.
949 (reset_locator): New function.
950 (init_and_make_win): Remove.
951 (show_source_or_disasm_and_command): Use reset_locator.
952
098f9ed4
TT
9532019-07-17 Tom Tromey <tom@tromey.com>
954
955 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
956 condition.
957 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
958 Remove condition.
959 * tui/tui-source.c (tui_source_window_base::reset): New method.
960 * tui/tui-layout.c (make_command_window): Don't call
961 init_and_make_win.
962 (make_source_window, make_disasm_window): Don't call
963 make_source_or_disasm_window.
964 (make_data_window): Don't call init_and_make_win. Change calling
965 convention.
966 (show_source_disasm_command, show_data): Simplify.
967 (make_source_or_disasm_window): Remove.
968 (show_source_or_disasm_and_command): Simplify.
969 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
970 (struct tui_source_window_base) <reset>: Likewise.
971 <execution_info>: Remove initializer.
972 * tui/tui-data.c (tui_source_window_base): Initialize
973 execution_info.
974
80110957
TT
9752019-07-17 Tom Tromey <tom@tromey.com>
976
977 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
978 variable.
979
cf82af05
TT
9802019-07-17 Tom Tromey <tom@tromey.com>
981
982 * tui/tui.c (tui_rl_other_window): Update.
983 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
984 superclass method first. Always iterate over regs_content.
985 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
986 method.
987 * tui/tui-win.c (tui_set_focus_command): Update.
988
01aeb396
TT
9892019-07-17 Tom Tromey <tom@tromey.com>
990
991 * tui/tui-win.c (tui_set_focus_command): Rename from
992 tui_set_focus. Call tui_enable.
993 (tui_set_focus_command): Remove.
994
fd6c75ee
TT
9952019-07-17 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
998 refresh_window.
999 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1000 touchwin.
1001 (tui_data_window::refresh_window): Call refresh_window on data
1002 items. Always call superclass refresh_window.
1003 (tui_win_info::refresh): Remove.
1004 (tui_source_window_base::refresh_window): Update.
1005 (tui_refresh_all): Update.
1006 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1007 refresh_window.
1008 (show_source_or_disasm_and_command): Likewise.
1009 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1010 (struct tui_source_window_base) <refresh>: Likewise.
1011
f6cc34a9
TT
10122019-07-17 Tom Tromey <tom@tromey.com>
1013
1014 * tui/tui-winsource.c (tui_clear_source_content)
1015 (tui_show_source_content): Update.
1016 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1017 whether content is empty.
1018 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1019 Remove.
1020
f31ec9af
TT
10212019-07-17 Tom Tromey <tom@tromey.com>
1022
1023 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1024 window's contents.
1025 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1026 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1027
d1b6f1e5
TT
10282019-07-17 Tom Tromey <tom@tromey.com>
1029
1030 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1031 (struct tui_data_item_window): Update.
1032
d9743a13
TT
10332019-07-17 Tom Tromey <tom@tromey.com>
1034
1035 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1036 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1037 defines.
1038
caf0bc4e
TT
10392019-07-17 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-winsource.h (tui_erase_source_content)
1042 (tui_clear_source_content): Remove "display_prompt" parameter.
1043 * tui/tui-winsource.c (tui_update_source_window_as_is)
1044 (tui_update_source_windows_with_addr): Update.
1045 (tui_clear_source_content): Remove "display_prompt" parameter.
1046 (tui_erase_source_content): Likewise. Simplify.
1047 (tui_show_source_content): Update.
1048 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1049 * tui/tui-stack.c (tui_show_frame_info): Update.
1050 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1051 Remove defines.
1052
9d391078
TT
10532019-07-17 Tom Tromey <tom@tromey.com>
1054
1055 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1056 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1057 parameter.
1058 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1059 parameter.
1060
a38da35d
TT
10612019-07-17 Tom Tromey <tom@tromey.com>
1062
1063 * tui/tui-winsource.c (tui_clear_source_content)
1064 (tui_show_source_content, tui_show_exec_info_content)
1065 (tui_clear_exec_info_content): Update.
1066 * tui/tui-stack.c (tui_show_locator_content): Update.
1067 (tui_show_frame_info): Update.
1068 * tui/tui-source.h (tui_source_window): Don't declare.
1069 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1070 from tui_source_is_displayed.
1071 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1072 Remove field.
1073 (struct tui_source_window_base) <content_in_use>: New field. Now
1074 bool.
1075 (struct tui_source_window) <showing_source_p>: New method.
1076 (TUI_SRC_WIN): Change cast.
1077 * tui/tui-data.c (tui_initialize_static_data): Update.
1078
c2cd8994
TT
10792019-07-17 Tom Tromey <tom@tromey.com>
1080
1081 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1082 location_matches_p.
1083 * tui/tui-source.c (tui_source_window::location_matches_p): New
1084 method.
1085 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1086 method.
1087 * tui/tui-data.h (struct tui_source_window_base)
1088 <location_matches_p>: New method.
1089 (struct tui_source_window, struct tui_disasm_window)
1090 <location_matches_p>: Likewise.
1091
4dde7b34
TT
10922019-07-17 Tom Tromey <tom@tromey.com>
1093
1094 * tui/tui-win.c (tui_set_win_height_command): Rename from
1095 tui_set_win_height.
1096 (tui_set_win_height_command): Remove.
1097
b73dd877
TT
10982019-07-17 Tom Tromey <tom@tromey.com>
1099
1100 * tui/tui-source.c (tui_source_window): New constructor. Add
1101 observer.
1102 (~tui_source_window): New destructor.
1103 (tui_source_window::style_changed): New method.
1104 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1105 (tui_attach_detach_observers): Update.
1106 * tui/tui-data.h (struct tui_source_window): Make constructor not
1107 inline. Add destructor.
1108 (struct tui_source_window) <style_changed>: New method.
1109 <m_observable>: New member.
1110
ae2b5380
TT
11112019-07-17 Tom Tromey <tom@tromey.com>
1112
1113 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1114 * tui/tui-win.c (tui_resize_all): Fix typo.
1115
1ce3e844
TT
11162019-07-17 Tom Tromey <tom@tromey.com>
1117
1118 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1119 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1120 (tui_refresh_all): Remove "list" parameter. Use foreach.
1121 * tui/tui-win.c (window_name_completer): Use foreach.
1122 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1123 (update_tab_width): Likewise.
1124 * tui/tui-layout.c (show_layout): Update.
1125 * tui/tui-data.h (class tui_window_iterator): New.
1126 (struct all_tui_windows): New.
1127 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1128
fe3eaf1c
TT
11292019-07-17 Tom Tromey <tom@tromey.com>
1130
1131 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1132 parameter. Don't reference globals.
1133 (tui_reg_command): Update.
1134
368c1354
TT
11352019-07-17 Tom Tromey <tom@tromey.com>
1136
1137 * tui/tui-regs.c (tui_show_registers): Simplify.
1138
e80cd204
TT
11392019-07-17 Tom Tromey <tom@tromey.com>
1140
1141 * tui/tui-regs.c (tui_show_registers): Update.
1142 (tui_show_register_group): Add win_info parameter.
1143
aca2dd16
TT
11442019-07-17 Tom Tromey <tom@tromey.com>
1145
1146 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1147 Rename from tui_display_reg_element_at_line.
1148 (tui_data_window::display_registers_from_line): Update.
1149 * tui/tui-data.h (struct tui_data_window)
1150 <display_reg_element_at_line>: New method.
1151
517e9505
TT
11522019-07-17 Tom Tromey <tom@tromey.com>
1153
1154 * tui/tui-regs.h (tui_display_registers_from)
1155 (tui_display_registers_from_line): Don't declare.
1156 * tui/tui-windata.c (tui_data_window::display_all_data)
1157 (tui_data_window::refresh_all)
1158 (tui_data_window::do_scroll_vertical): Update.
1159 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1160 from tui_display_registers_from.
1161 (tui_display_reg_element_at_line): Update.
1162 (tui_data_window::display_registers_from_line): Rename from
1163 tui_display_registers_from_line.
1164 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1165 display_registers_from_line>: New methods.
1166
f76d8b19
TT
11672019-07-17 Tom Tromey <tom@tromey.com>
1168
1169 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1170 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1171 from tui_erase_data_content.
1172 (tui_data_window::display_all_data)
1173 (tui_data_window::refresh_all)
1174 (tui_data_window::do_scroll_vertical): Update.
1175 * tui/tui-regs.c (tui_show_registers): Update.
1176 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1177 New method.
1178
b4094625
TT
11792019-07-17 Tom Tromey <tom@tromey.com>
1180
1181 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1182 declare.
1183 * tui/tui-windata.c
1184 (tui_data_window::delete_data_content_windows): Rename from
1185 tui_delete_data_content_windows.
1186 (tui_data_window::display_all_data)
1187 (tui_data_window::do_scroll_vertical): Update.
1188 * tui/tui-data.h (struct tui_data_window)
1189 <delete_data_content_windows>: New method.
1190
c223a729
TT
11912019-07-17 Tom Tromey <tom@tromey.com>
1192
1193 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1194 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1195
50daf268
TT
11962019-07-17 Tom Tromey <tom@tromey.com>
1197
1198 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1199 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1200 from tui_display_all_data.
1201 * tui/tui-win.c
1202 (tui_data_window::do_make_visible_with_new_height): Update.
1203 * tui/tui-regs.c (tui_show_registers): Update.
1204 * tui/tui-layout.c (tui_set_layout): Update.
1205 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1206 method.
1207
df5f8cab
TT
12082019-07-17 Tom Tromey <tom@tromey.com>
1209
1210 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1211 * tui/tui-windata.c (tui_display_data_from): Remove.
1212 (tui_data_window::refresh_all): Update.
1213
80cb6c27
TT
12142019-07-17 Tom Tromey <tom@tromey.com>
1215
1216 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1217 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1218 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1219 tui_display_registers_from_line.
1220 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1221 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1222 "force_display" parameter.
1223
baff0c28
TT
12242019-07-17 Tom Tromey <tom@tromey.com>
1225
1226 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1227 declare.
1228 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1229 Rename from tui_first_reg_element_no_inline.
1230 (tui_display_reg_element_at_line)
1231 (tui_display_registers_from_line): Update.
1232 * tui/tui-data.h (struct tui_data_window)
1233 <first_reg_element_no_inline>: New method.
1234
3b23c5f2
TT
12352019-07-17 Tom Tromey <tom@tromey.com>
1236
1237 * tui/tui-windata.c (tui_display_data_from)
1238 (tui_data_window::do_scroll_vertical): Update.
1239 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1240 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1241 Rename from tui_line_from_reg_element_no.
1242 (tui_display_registers_from_line): Update.
1243 * tui/tui-data.h (struct tui_data_window)
1244 <line_from_reg_element_no>: New method.
1245
0b5ec218
TT
12462019-07-17 Tom Tromey <tom@tromey.com>
1247
1248 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1249 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1250 tui_last_regs_line_no.
1251 (tui_display_reg_element_at_line)
1252 (tui_display_registers_from_line): Update.
1253 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1254 method.
1255
0807ab7b
TT
12562019-07-17 Tom Tromey <tom@tromey.com>
1257
1258 PR tui/24722:
1259 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1260 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1261 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1262 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1263 (tui_update_breakpoint_info): Likewise.
1264 * tui/tui-hooks.c (tui_event_create_breakpoint)
1265 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1266 Update.
1267
9ad7fdef
TT
12682019-07-17 Tom Tromey <tom@tromey.com>
1269
1270 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1271
5813316f
TT
12722019-07-17 Tom Tromey <tom@tromey.com>
1273
1274 * tui/tui-winsource.c (tui_update_source_window_as_is)
1275 (tui_update_source_windows_with_addr): Update.
1276 * tui/tui-source.h (tui_set_source_content)
1277 (tui_show_symtab_source): Add "win_info" parameter.
1278 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1279 parameter.
1280 (tui_show_symtab_source): Likewise.
1281
00e264e7
TT
12822019-07-17 Tom Tromey <tom@tromey.com>
1283
1284 * tui/tui-wingeneral.c
1285 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1286
06210ce4
TT
12872019-07-17 Tom Tromey <tom@tromey.com>
1288
1289 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1290 (struct tui_cmd_window) <can_scroll>: New method.
1291 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1292 method.
1293
381befee
TT
12942019-07-17 Tom Tromey <tromey@adacore.com>
1295
1296 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1297 do_field_signed>: Rename. Change type of "value".
1298 * ui-out.c (ui_out::field_signed): Rename from field_int.
1299 Change type of "value".
1300 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1301 type of "value".
1302 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1303 do_field_int. Change type of "value".
1304 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1305 do_field_int. Change type of "value".
1306 * tracepoint.c (trace_status_mi, tfind_1)
1307 (print_one_static_tracepoint_marker): Update.
1308 * thread.c (print_thread_info_1, print_selected_thread_frame):
1309 Update.
1310 * stack.c (print_frame, print_frame_info): Update.
1311 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1312 Update.
1313 * source.c (print_source_lines_base): Update.
1314 * skip.c (info_skip_command): Update.
1315 * record-btrace.c (btrace_ui_out_decode_error)
1316 (btrace_call_history_src_line): Update.
1317 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1318 Update.
1319 * progspace.c (print_program_space): Update.
1320 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1321 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1322 do_field_int. Change type of "value".
1323 * mi/mi-out.c (mi_ui_out::do_table_begin)
1324 (mi_ui_out::do_table_header): Update.
1325 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1326 type of "value".
1327 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1328 (mi_cmd_data_list_changed_registers, output_register)
1329 (mi_cmd_data_read_memory, mi_load_progress)
1330 (mi_cmd_trace_frame_collected): Update.
1331 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1332 Update.
1333 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1334 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1335 (mi_cmd_var_list_children, varobj_update_one): Update.
1336 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1337 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1338 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1339 * inferior.c (print_inferior): Update.
1340 * gdb_bfd.c (print_one_bfd): Update.
1341 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1342 Update.
1343 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1344 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1345 do_field_int. Change type of "value".
1346 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1347 do_field_int. Change type of "value".
1348 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1349 (print_one_breakpoint_location, print_it_catch_fork)
1350 (print_one_catch_fork, print_it_catch_vfork)
1351 (print_one_catch_vfork, print_it_catch_solib)
1352 (print_it_catch_exec, print_it_ranged_breakpoint)
1353 (print_mention_watchpoint, print_mention_masked_watchpoint)
1354 (bkpt_print_it, update_static_tracepoint): Update.
1355 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1356 * break-catch-syscall.c (print_it_catch_syscall): Update.
1357 * ada-tasks.c (print_ada_task_info): Update.
1358 * ada-lang.c (print_it_exception, print_mention_exception):
1359 Update.
1360
6b78c3f8
AB
13612019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1362
1363 PR breakpoints/24541
1364 * gdbarch.c: Regenerate.
1365 * gdbarch.h: Regenerate.
1366 * gdbarch.sh: Adjust return type and parameter types for
1367 'stap_adjust_register'.
1368 (i386_stap_adjust_register): Adjust signature and return new
1369 register name.
1370 * stap-probe.c (stap_parse_register_operand): Adjust use of
1371 'gdbarch_stap_adjust_register'.
1372
d72a9b85
TT
13732019-07-17 Tom Tromey <tromey@adacore.com>
1374
1375 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1376 declare VEC.
1377 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1378 std::vector.
1379 (struct s390_process_info): Add initializers.
1380 (s390_add_process): Use new.
1381 (s390_linux_nat_target::low_forget_process): Use delete.
1382 (s390_linux_nat_target::low_new_fork)
1383 (s390_linux_nat_target::stopped_by_watchpoint)
1384 (s390_linux_nat_target::low_prepare_to_resume)
1385 (s390_linux_nat_target::insert_watchpoint)
1386 (s390_linux_nat_target::insert_hw_breakpoint)
1387 (s390_linux_nat_target::remove_watchpoint)
1388 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1389
206e6c58
JB
13902019-07-16 John Baldwin <jhb@FreeBSD.org>
1391
1392 * aarch64-fbsd-nat.c: Include regcache.h.
1393 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1394 argument.
1395 (aarch64_fbsd_nat_target::fetch_registers)
1396 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1397 variable.
1398 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1399
cbde90f2
JB
14002019-07-16 John Baldwin <jhb@FreeBSD.org>
1401
1402 * fbsd-nat.c: Include gdbarch.h.
1403
07128006
TT
14042019-07-15 Tom Tromey <tromey@adacore.com>
1405
1406 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1407
1f77b012
TT
14082019-07-15 Tom Tromey <tromey@adacore.com>
1409
1410 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1411 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1412 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1413 * cli-out.c (cli_ui_out::do_field_int): New method.
1414 * ui-out.c (ui_out::field_unsigned): New method.
1415 * symfile.c (generic_load): Use field_unsigned.
1416 (print_transfer_performance): Likewise.
1417 * record-btrace.c (ui_out_field_uint): Remove.
1418 (btrace_call_history_insn_range, btrace_call_history): Use
1419 field_unsigned.
1420 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1421 field_unsigned.
1422 * ui-out.h (class ui_out) <field_unsigned>: New method.
1423 <do_field_unsigned>: Likewise.
1424
33eca680
TT
14252019-07-15 Tom Tromey <tromey@adacore.com>
1426
1427 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1428 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1429 * target.c (flash_erase_command): Use field_string.
1430 * infrun.c (print_signal_received_reason): Use field_string.
1431 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1432 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1433 field_string.
1434 * ada-tasks.c (print_ada_task_info): Use field_string.
1435
ca8d69be
TT
14362019-07-15 Tom Tromey <tromey@adacore.com>
1437
1438 * target.c (flash_erase_command): Use field_core_addr.
1439 * symfile.c (generic_load): Use field_core_addr.
1440 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1441 Use field_core_addr.
1442 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1443 field_core_addr.
1444
0d4e84ed
AB
14452019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1448 value if its desired type is smaller than a CORE_ADDR and signed.
1449
9a49df9d
AB
14502019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1453 of changes to field names, and use new is_reference field to
1454 decide if a property is a reference or not.
1455 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1456 field.
1457 (struct dwarf2_property_baton): Update header comment, rename
1458 'referenced_type' to 'property_type' and update comments.
1459 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1460 default property type, store in property baton, update to take
1461 accound of renamed field.
1462 (read_func_scope): Update call to attr_to_dynamic_prop.
1463 (read_array_type): Likewise.
1464 (dwarf2_per_cu_addr_sized_int_type): New function.
1465 (read_subrange_index_type): Move type finding code to
1466 dwarf2_per_cu_addr_sized_int_type.
1467 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1468 (dwarf2_per_cu_addr_type): New function.
1469 (set_die_type): Update calls to attr_to_dynamic_prop.
1470
b86352cf
AB
14712019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * dwarf2read.c (read_subrange_index_type): New function.
1474 (read_subrange_type): Move code into new function and call it.
1475 * gdbtypes.c (create_range_type): Add some asserts.
1476
603490bf
AB
14772019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1478
1479 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1480 update return statements.
1481 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1482 declaration, and update comment to match.
1483 * gdbtypes.c (resolve_dynamic_array): Update call to
1484 dwarf2_evaluate_property to match new return type.
1485
592f9d27
AB
14862019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * valarith.c (value_subscripted_rvalue): Change lowerbound
1489 parameter type from int to LONGEST.
1490 * value.h (value_subscripted_rvalue): Likewise in declaration.
1491
60cfcb20
AB
14922019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1493
1494 * cli/cli-utils.c (info_print_command_completer): New function.
1495 * cli/cli-utils.h: Add 'completer.h' include, and forward
1496 declaration for 'struct cmd_list_element'.
1497 (info_print_command_completer): Declare.
1498 * stack.c (_initialize_stack): Add completer for 'info locals' and
1499 'info args'.
1500 * symtab.c (_initialize_symtab): Add completer for 'info
1501 variables' and 'info functions'.
1502 * NEWS: Mention completion for additional info commands.
1503
b16507e0
AB
15042019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1505
1506 * cli/cli-utils.c (extract_info_print_args): Delete.
1507 (extract_arg_maybe_quoted): Delete.
1508 (info_print_options_defs): New variable.
1509 (make_info_print_options_def_group): New function.
1510 (extract_info_print_options): Define new function.
1511 * cli/cli-utils.h (extract_info_print_args): Delete.
1512 (struct info_print_options): New structure.
1513 (extract_info_print_options): Declare new function.
1514 * stack.c (info_locals_command): Update to use new
1515 extract_info_print_options, also add a header comment.
1516 (info_args_command): Likewise.
1517 * symtab.c (info_variables_command): Likewise.
1518 (info_functions_command): Likewise.
1519
021d8588
AB
15202019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1521
1522 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1523 to extract string arguments.
1524 * common/common-utils.c (extract_string_maybe_quoted): New function.
1525 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1526
b777eb6d
TT
15272019-07-11 Tom Tromey <tromey@adacore.com>
1528
1529 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1530 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1531 * top.h (gdbinit): Don't declare.
1532 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1533 into...
1534 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1535 * top.c (gdb_init): Don't call init_cli_cmds.
1536 (gdbinit): Remove.
1537 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1538
72ee03ff
TT
15392019-07-11 Tom Tromey <tromey@adacore.com>
1540
1541 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1542 after it has been moved.
1543
00db9531
SM
15442019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1545
1546 * valops.c (value_must_coerce_to_target): Change return type to
1547 bool.
1548 * value.h (value_must_coerce_to_target): Likewise.
1549
f2478a7e
SM
15502019-07-10 Simon Marchi <simon.marchi@efficios.com>
1551
1552 * breakpoint.c (is_hardware_watchpoint): Remove
1553 forward-declaration.
1554 (is_masked_watchpoint): Change return type to bool.
1555 (is_tracepoint): Likewise.
1556 (is_breakpoint): Likewise.
1557 (is_hardware_watchpoint): Likewise.
1558 (is_watchpoint): Likewise.
1559 (is_no_memory_software_watchpoint): Likewise.
1560 (is_catchpoint): Likewise.
1561 (breakpoint_1): Make FILTER parameter's return type bool.
1562 is_masked_watchpoint): Change return type to bool.
1563 (save_breakpoints): Make FILTER parameter's return type bool.
1564 * breakpoint.h (is_breakpoint): Change return type to bool.
1565 (is_watchpoint): Likewise.
1566 (is_catchpoint): Likewise.
1567 (is_tracepoint): Likewise.
1568
0d12e84c
TT
15692019-07-10 Tom Tromey <tom@tromey.com>
1570
1571 * defs.h: Don't include gdbarch.h.
1572 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1573 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1574 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1575 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1576 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1577 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1578 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1579 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1580 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1581 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1582 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1583 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1584 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1585 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1586 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1587 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1588 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1589 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1590 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1591 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1592 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1593 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1594 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1595 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1596 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1597 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1598 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1599
f06f1252
TT
16002019-07-10 Tom Tromey <tromey@adacore.com>
1601
1602 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1603 * breakpoint.c (init_ada_exception_breakpoint): Register as
1604 bp_catchpoint.
1605 (print_one_breakpoint_location, print_one_breakpoint): Use
1606 is_ada_exception_catchpoint.
1607 * ada-lang.c (class ada_catchpoint_location): Pass
1608 bp_loc_software_breakpoint to bp_location constructor.
1609 (is_ada_exception_catchpoint): New function.
1610
7a5d944b
TT
16112019-07-10 Tom Tromey <tromey@adacore.com>
1612
1613 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1614 VEC.
1615 (struct arm_exidx_entry): New method operator<.
1616 (struct arm_exidx_data) <section_maps>: Change type.
1617 (arm_exidx_data_free): Remove.
1618 (arm_exidx_data_key): Change type. Move lower.
1619 (arm_exidx_new_objfile): Update.
1620 (arm_compare_exidx_entries): Remove.
1621 (arm_find_exidx_entry, _initialize_arm_tdep)
1622
48c66e1d
TT
16232019-07-10 Tom Tromey <tromey@adacore.com>
1624
1625 * solib-spu.c (ocl_program_data_key): Change type.
1626 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1627 Update.
1628
a269fbf1
TT
16292019-07-10 Tom Tromey <tromey@adacore.com>
1630
1631 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1632 (struct solib_aix_inferior_data) <library_list>: Change type.
1633 (solib_aix_inferior_data_handle): Change type.
1634 (get_solib_aix_inferior_data): Update.
1635 (solib_aix_free_library_list): Remove.
1636 (library_list_start_library): Update.
1637 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1638 return type.
1639 (solib_aix_get_library_list)
1640 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1641 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1642
c294730c
TT
16432019-07-10 Tom Tromey <tromey@adacore.com>
1644
1645 * solib-dsbt.c (struct dsbt_info): Add initializers.
1646 (solib_dsbt_pspace_data): Change type.
1647 (dsbt_pspace_data_cleanup): Remove.
1648 (get_dsbt_info, _initialize_dsbt_solib): Update.
1649
9d52077d
TT
16502019-07-10 Tom Tromey <tromey@adacore.com>
1651
1652 * spu-tdep.c (spu_overlay_data): Change type.
1653 (spu_get_overlay_table, spu_overlay_new_objfile)
1654 (_initialize_spu_tdep): Update.
1655
22a20dca
TT
16562019-07-10 Tom Tromey <tromey@adacore.com>
1657
1658 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1659 destructor.
1660 (dbx_objfile_data_key): Change type and declare later.
1661 (DBX_SYMFILE_INFO): Rewrite.
1662 * dbxread.c (dbx_objfile_data_key): Change type.
1663 (dbx_symfile_init): Update.
1664 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1665 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1666 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1667
cb60f420
TT
16682019-07-10 Tom Tromey <tromey@adacore.com>
1669
1670 * jit.c (jit_program_space_key): Change type. Move lower.
1671 (get_jit_program_space_data): Update.
1672 (jit_program_space_data_cleanup): Remove.
1673 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1674 Update.
1675 (struct jit_program_space_data): Add initializers.
1676
51df2ae3
TT
16772019-07-10 Tom Tromey <tromey@adacore.com>
1678
1679 * solib-darwin.c (struct darwin_info): Add initializers.
1680 (solib_darwin_pspace_data): Change type.
1681 (darwin_pspace_data_cleanup): Remove.
1682 (get_darwin_info, _initialize_darwin_solib): Update.
1683
18101a35
TT
16842019-07-10 Tom Tromey <tromey@adacore.com>
1685
1686 * remote-sim.c (struct sim_inferior_data): Add initializers,
1687 constructor, and destructor.
1688 (sim_inferior_data_key): Change type. Move lower.
1689 (check_for_duplicate_sim_descriptor): Update.
1690 (get_sim_inferior_data): Use new. Update.
1691 (~sim_inferior_data_cleanup): Rename from
1692 sim_inferior_data_cleanup. Simplify.
1693 (gdbsim_close_inferior, simulator_command)
1694 (sim_command_completer, _initialize_remote_sim): Update.
1695 (next_pid, INITIAL_PID): Move earlier.
1696
05b08ac1
TT
16972019-07-10 Tom Tromey <tromey@adacore.com>
1698
1699 * python/python-internal.h (create_thread_object): Return
1700 gdbpy_ref.
1701 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1702 * python/py-inferior.c (struct threadlist_entry): Add
1703 constructor.
1704 <thread_obj>: Now a gdbpy_ref.
1705 (thread_to_thread_object): Update.
1706 (add_thread_object): Use new.
1707 (delete_thread_object): Use delete.
1708 (infpy_threads): Update.
1709 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1710 GIL.
1711
32372d80
TT
17122019-07-10 Tom Tromey <tromey@adacore.com>
1713
1714 * valops.c (value_cast): Specialize error message for Ada.
1715
5c458ae8
SM
17162019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1717
1718 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1719
4c462cb0
SM
17202019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1721
1722 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1723 bpstat_should_step): Return bool, adjust comments.
1724 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1725 bpstat_should_step): Likewise.
1726
89abbcc2
AH
17272019-07-10 Alan Hayward <alan.hayward@arm.com>
1728
1729 * features/Makefile: Use feature target descriptions for Arm.
1730 * features/arm/arm-core.c: Generate new file.
1731 * features/arm/arm-fpa.c: Likewise.
1732 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1733 * features/arm/arm-m-profile.c: Likewise.
1734 * features/arm/arm-vfpv2.c: Likewise.
1735 * features/arm/arm-vfpv3.c: Likewise.
1736 * features/arm/xscale-iwmmxt.c: Likewise.
1737 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1738
166a82be
AH
17392019-07-10 Alan Hayward <alan.hayward@arm.com>
1740
1741 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1742 ptrace earlier.
1743
9fb4c7e9
AH
17442019-07-10 Alan Hayward <alan.hayward@arm.com>
1745
1746 * features/aarch64-pauth.c: Regenerate.
1747
e2d0f980
SM
17482019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1749
1750 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1751 bool.
1752 (bpstat_what): Use false instead of 0.
1753
a38118e5
PA
17542019-07-09 Pedro Alves <palves@redhat.com>
1755
1756 * break-catch-throw.c (is_exception_catchpoint): New.
1757 * breakpoint.c (print_one_breakpoint_location): New parameter
1758 'raw_loc'. Handle it. Use
1759 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1760 looking at the breakpoint's type.
1761 (print_one_breakpoint): If handling "maint info breakpoints", also
1762 print locations of exception catchpoints.
1763 * breakpoint.h (is_exception_catchpoint): Declare.
1764
cb1e4e32
PA
17652019-07-09 Pedro Alves <palves@redhat.com>
1766
1767 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1768 "addr" field.
1769 (allocate_location_exception_catchpoint): New.
1770 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1771 (initialize_throw_catchpoint_ops): Install
1772 allocate_location_exception_catchpoint as allocate_location
1773 method.
1774 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1775 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1776 bp_loc_other.
1777 (breakpoint_address_is_meaningful): Delete.
1778 (bl_address_is_meaningful): New.
1779 (breakpoint_locations_match): Adjust comment.
1780 (bp_location_from_bp_type): New, factored out of...
1781 (bp_location::bp_location(breakpoint *)): ... this.
1782 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1783 factored out of...
1784 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1785 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1786 breakpoint_address_is_meaningful.
1787 (bp_locations_compare): Adjust comment.
1788 (update_global_location_list): Use bl_address_is_meaningful
1789 instead of breakpoint_address_is_meaningful.
1790 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1791 explicit.
1792 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1793 * python/py-breakpoint.c (bppy_get_location): No longer check
1794 whether location is null.
1795
b58a68fe
PA
17962019-07-09 Pedro Alves <palves@redhat.com>
1797
1798 PR c++/15468
1799 * breakpoint.c (print_one_breakpoint_location): Remove
1800 single-location assert.
1801
268a13a5
TT
18022019-07-09 Tom Tromey <tom@tromey.com>
1803
1804 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1805 * configure: Rebuild.
1806 * configure.ac: Change common to gdbsupport.
1807 * gdbsupport: Rename from common.
1808 * acinclude.m4: Change common to gdbsupport.
1809 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1810 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1811 gdbsupport.
1812 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1813 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1814 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1815 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1816 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1817 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1818 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1819 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1820 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1821 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1822 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1823 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1824 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1825 coff-pe-read.c, command.h, compile/compile-c-support.c,
1826 compile/compile-c.h, compile/compile-cplus-symbols.c,
1827 compile/compile-cplus-types.c, compile/compile-cplus.h,
1828 compile/compile-loc2c.c, compile/compile.c, completer.c,
1829 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1830 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1831 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1832 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1833 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1834 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1835 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1836 features/aarch64-core.c, features/aarch64-fpu.c,
1837 features/aarch64-pauth.c, features/aarch64-sve.c,
1838 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1839 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1840 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1841 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1842 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1843 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1844 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1845 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1846 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1847 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1848 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1849 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1850 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1851 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1852 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1853 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1854 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1855 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1856 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1857 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1858 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1859 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1860 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1861 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1862 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1863 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1864 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1865 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1866 minsyms.c, mips-linux-tdep.c, namespace.h,
1867 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1868 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1869 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1870 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1871 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1872 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1873 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1874 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1875 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1876 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1877 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1878 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1879 procfs.c, producer.c, progspace.h, psymtab.h,
1880 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1881 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1882 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1883 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1884 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1885 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1886 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1887 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1888 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1889 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1890 target-memory.c, target.c, target.h, target/waitstatus.c,
1891 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1892 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1893 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1894 unittests/array-view-selftests.c,
1895 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1896 unittests/common-utils-selftests.c,
1897 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1898 unittests/format_pieces-selftests.c,
1899 unittests/function-view-selftests.c,
1900 unittests/lookup_name_info-selftests.c,
1901 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1902 unittests/mkdir-recursive-selftests.c,
1903 unittests/observable-selftests.c,
1904 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1905 unittests/parse-connection-spec-selftests.c,
1906 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1907 unittests/scoped_fd-selftests.c,
1908 unittests/scoped_mmap-selftests.c,
1909 unittests/scoped_restore-selftests.c,
1910 unittests/string_view-selftests.c, unittests/style-selftests.c,
1911 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1912 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1913 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1914 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1915 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1916 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1917
5b0e2db4
AB
19182019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1921 bool value.
1922 (decode_digits_ordinary): Set explicit_line field in sal.
1923 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1924 symtab_and_line that was set on an explicit line number in
1925 assembler code. Do always update the recorded symtab and line if
1926 we do skip the prologue.
1927
0ba852ab
AB
19282019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * breakpoint.c (set_breakpoint_location_function): Remove
1931 explicit_loc parameter.
1932 (momentary_breakpoint_from_master): Update call to
1933 set_breakpoint_location_function.
1934 (add_location_to_breakpoint): Likewise.
1935
b3a7d171
AB
19362019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1937
1938 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1939 required features based on default bfd type when no specific bfd
1940 is present.
1941
1f6f6e21
PW
19422019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1943
1944 * NEWS: Mention that GDB printf and eval commands can now print
1945 C-style and Ada-style convenience var strings without
1946 calling the inferior.
1947 * printcmd.c (printf_c_string): Locally print GDB internal var
1948 instead of transiting via the inferior.
1949 (printf_wide_c_string): Likewise.
1950
19512019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
1952
1953 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1954
0598af48
TT
19552019-07-04 Tom Tromey <tom@tromey.com>
1956
1957 PR tui/24724:
1958 * tui/tui-winsource.c (tui_clear_source_content): Update.
1959 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1960 (tui_update_breakpoint_info): Update.
1961 (tui_set_exec_info_content): Update.
1962 * tui/tui-source.c (tui_set_source_content_nil): Update.
1963 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1964 has_break.
1965 * tui/tui-data.h (enum tui_bp_flag): New.
1966 (tui_bp_flags): New enum flags type.
1967 (struct tui_source_element) <break_mode>: Change type. Rename
1968 from has_break.
1969 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1970 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1971 constants.
1972 * tui/tui-winsource.h: Fix comment.
1973
350fab54
AH
19742019-07-04 Alan Hayward <alan.hayward@arm.com>
1975
1976 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1977 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1978 (store_fpregs_to_thread)
1979 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1980 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1981 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1982 (IWMMXT_REGS_SIZE): Add define.
1983 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1984 (fetch_vfp_regs, store_vfp_regs)
1985 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1986 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1987
f0452268
AH
19882019-07-04 Alan Hayward <alan.hayward@arm.com>
1989
1990 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1991 defines.
1992 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1993 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1994 (ARM_INT_REGISTER_SIZE): ...to this.
1995 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1996 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1997 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1998 (arm_linux_collect_gregset, supply_nwfpe_register)
1999 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2000 defines.
2001 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2002 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2003 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2004 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2005 (arm_return_in_memory, arm_store_return_value)
2006 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2007 (arm_record_ld_st_multiple): Likewise.
2008 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2009 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2010
e935475c
AH
20112019-07-04 Alan Hayward <alan.hayward@arm.com>
2012
2013 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2014 AARCH64_DISPLACED_MODIFIED_INSNS.
2015 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2016 (aarch64_displaced_step_copy_insn): Likewise.
2017 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2018 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2019 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2020 ARM_DISPLACED_MODIFIED_INSNS.
2021 * arm-tdep.c (arm_gdbarch_init): Likewise.
2022 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2023 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2024 (struct arm_displaced_step_closure): Use
2025 ARM_DISPLACED_MODIFIED_INSNS.
2026
df0bb381
AH
20272019-07-04 Alan Hayward <alan.hayward@arm.com>
2028
2029 * features/Makefile: Remove unused xml files.
2030 * features/aarch64.xml: Remove.
2031 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2032 * features/i386/amd64-avx-avx512.xml: Remove.
2033 * features/i386/amd64-avx-linux.xml: Remove.
2034 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2035 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2036 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2037 * features/i386/amd64-avx-mpx.xml: Remove.
2038 * features/i386/amd64-avx.xml: Remove.
2039 * features/i386/amd64-linux.xml: Remove.
2040 * features/i386/amd64-mpx-linux.xml: Remove.
2041 * features/i386/amd64-mpx.xml: Remove.
2042 * features/i386/amd64.xml: Remove.
2043 * features/i386/i386-avx-avx512-linux.xml: Remove.
2044 * features/i386/i386-avx-avx512.xml: Remove.
2045 * features/i386/i386-avx-linux.xml: Remove.
2046 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2047 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2048 * features/i386/i386-avx-mpx-linux.xml: Remove.
2049 * features/i386/i386-avx-mpx.xml: Remove.
2050 * features/i386/i386-avx.xml: Remove.
2051 * features/i386/i386-linux.xml: Remove.
2052 * features/i386/i386-mmx-linux.xml: Remove.
2053 * features/i386/i386-mmx.xml: Remove.
2054 * features/i386/i386-mpx-linux.xml: Remove.
2055 * features/i386/i386-mpx.xml: Remove.
2056 * features/i386/i386.xml: Remove.
2057 * features/i386/x32-avx-avx512-linux.xml: Remove.
2058 * features/i386/x32-avx-linux.xml: Remove.
2059 * features/i386/x32-linux.xml: Remove.
2060
edd6266a
AH
20612019-07-04 Alan Hayward <alan.hayward@arm.com>
2062
2063 * regformats/aarch64.dat: Remove.
2064 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2065 * regformats/i386/amd64-avx-linux.dat: Remove.
2066 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2067 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2068 * regformats/i386/amd64-linux.dat: Remove.
2069 * regformats/i386/amd64-mpx-linux.dat: Remove.
2070 * regformats/i386/amd64.dat: Remove.
2071 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2072 * regformats/i386/i386-avx-linux.dat: Remove.
2073 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2074 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2075 * regformats/i386/i386-linux.dat: Remove.
2076 * regformats/i386/i386-mmx-linux.dat: Remove.
2077 * regformats/i386/i386-mpx-linux.dat: Remove.
2078 * regformats/i386/i386.dat: Remove.
2079 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2080 * regformats/i386/x32-avx-linux.dat: Remove.
2081 * regformats/i386/x32-linux.dat: Remove.
2082
2b40fda7
AH
20832019-07-04 Alan Hayward <alan.hayward@arm.com>
2084
2085 * aarch64-tdep.c: Remove xml self tests.
2086 * amd64-linux-tdep.c: Likewise.
2087 * amd64-tdep.c: Likewise.
2088 * i386-linux-tdep.c: Likewise.
2089 * i386-tdep.c: Likewise.
2090
5f4ba3e7
PA
20912019-07-03 Pedro Alves <palves@redhat.com>
2092
2093 PR cli/24732
2094 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2095 (pipe_cmd_option_defs): New.
2096 (make_pipe_cmd_options_def_group): New.
2097 (pipe_command): Use gdb::option::process_options.
2098 (pipe_command_completer): New function.
2099 (_initialize_cli_cmds): Install completer for "pipe" command.
2100
3d9be6f5
PA
21012019-07-03 Pedro Alves <palves@redhat.com>
2102
2103 * cli/cli-option.c (union option_value) <string>: New field.
2104 (struct option_def_and_value): Add ctor, move ctor, dtor and
2105 use DISABLE_COPY_AND_ASSIGN.
2106 (option_def_and_value::clear_value): New.
2107 (parse_option, save_option_value_in_ctx, get_val_type_str)
2108 (add_setshow_cmds_for_options): Handle var_string.
2109 * cli-option.h (union option_def::var_address) <string>: New
2110 field.
2111 (struct string_option_def): New.
2112 * maint-test-options.c (struct test_options_opts): Add default
2113 ctor and use DISABLE_COPY_AND_ASSIGN.
2114 <string_opt>: New field.
2115 (test_options_opts::~test_options_opts): New.
2116 (test_options_opts::dump): Also dump "-string".
2117 (test_options_option_defs): Install "string.
2118
41fc454c
PA
21192019-07-03 Pedro Alves <palves@redhat.com>
2120
2121 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2122 option_value with a null enumeration.
2123 (complete_options): Save the option values in the context.
2124 (save_option_value_in_ctx): New, factored out from ...
2125 (process_options): ... here.
2126 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2127 of the function.
2128 * maint-test-options.c (test_options_opts::dump): New, factored
2129 out from ...
2130 (maintenance_test_options_command_mode): ... here.
2131 (maintenance_test_options_command_completion_result): Delete.
2132 (maintenance_test_options_command_completion_text): Update
2133 comment.
2134 (maintenance_show_test_options_completion_result): Change
2135 prototype. Just print
2136 maintenance_test_options_command_completion_text.
2137 (save_completion_result): New.
2138 (maintenance_test_options_completer_mode): Pass options context to
2139 complete_options, and then save a dump.
2140 (_initialize_maint_test_options): Use add_cmd to install "maint
2141 show test-options-completion-result".
2142
fdbc9870
PA
21432019-07-03 Pedro Alves <palves@redhat.com>
2144
2145 * NEWS (New commands): Mention "with" and "maint with".
2146 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2147 (with_command, with_command_completer): New.
2148 (pipe_command): Adjust to new repeat_previous
2149 interface.
2150 (_initialize_cli_cmds): Install the "with" command and its "w"
2151 alias.
2152 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2153 declarations.
2154 * cli/cli-setshow.c (parse_cli_var_uinteger)
2155 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2156 argument strings for all var_types.
2157 (get_setshow_command_value_string): New, factored out from ...
2158 (do_show_command): ... this.
2159 * cli/cli-setshow.h: Include <string>.
2160 (get_setshow_command_value_string): Declare.
2161 * command.h (repeat_previous): Now returns const char *. Adjust
2162 comment.
2163 * maint.c: Include "cli/cli-cmds.h".
2164 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2165 (_initialize_maint_cmds): Register the "maintenance with" command.
2166 * top.c (repeat_previous): Move bits from pipe_command here:
2167 Return the saved command line, if any; error out if there's no
2168 command to relaunch.
2169
c6ac8931
PA
21702019-07-03 Pedro Alves <palves@redhat.com>
2171
2172 * NEWS (New commands): Mention "maint set/show test-settings"
2173 instead of "maint test-settings".
2174 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2175 (maintenance_test_settings_set_list): Rename to ...
2176 (maintenance_set_test_settings_list): ... this.
2177 (maintenance_test_settings_show_list): Rename to ...
2178 (maintenance_show_test_settings_list): ... this.
2179 (maintenance_test_settings_cmd): Delete.
2180 (maintenance_test_settings_set_cmd): ...
2181 (maintenance_set_test_settings_cmd): ... this.
2182 (maintenance_test_settings_show_cmd): ...
2183 (maintenance_show_test_settings_cmd): ... this.
2184 (maintenance_test_settings_show_value_cmd):
2185 (maintenance_show_test_settings_value_cmd): ... this.
2186 (_initialize_maint_test_settings): No longer install the "maint
2187 test-settings" prefix command. Rename "maint test-settings set"
2188 to "maint set test-settings", and "maint test-settings show" to
2189 "maint show test-settings". Adjust all subcommands.
2190
d1fcf2fd
PA
21912019-07-03 Pedro Alves <palves@redhat.com>
2192
2193 * maint-test-settings.c: Fix file's intro comment. Replace all
2194 references to "test-options" with references to "test-settings",
2195 in comments.
2196
970f9d09
PA
21972019-07-03 Pedro Alves <palves@redhat.com>
2198
2199 * maint-test-settings.c (maintenance_test_settings_xxx)
2200 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2201 New.
2202 (maintenance_test_settings_enums): Use them.
2203 (maintenance_test_settings_enum): Default to
2204 maintenance_test_settings_xxx.
2205 (_initialize_maint_test_settings): Initialize
2206 MAINTENANCE_TEST_SETTINGS_FILENAME.
2207
f3869b1a
SM
22082019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2209
2210 * breakpoint.h (remove_breakpoints_inf): Change return type to
2211 void, move function documentation here.
2212 * breakpoint.c (remove_breakpoints_inf): Change return type to
2213 void, move function documentation to header.
2214
54d66006
PA
22152019-07-02 Pedro Alves <palves@redhat.com>
2216
2217 * NEWS (Completion improvements): Mention "info threads".
2218 * thread.c (struct info_threads_opts, info_threads_option_defs)
2219 (make_info_threads_options_def_group): New.
2220 (info_threads_command): Use gdb::option::process_options.
2221 (info_threads_command_completer): New.
2222 (_initialize_thread): Use gdb::option::build_help to build the
2223 help text for "info threads".
2224
854f6088
SM
22252019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2226
2227 * defs.h (generic_load): Move from here...
2228 * symfile.h (generic_load): ... to here. Rename name parameter
2229 to args.
2230 * symfile.c (generic_load): Add comment.
2231
54ee4252
TT
22322019-07-01 Tom Tromey <tromey@adacore.com>
2233
2234 * dwarf2read.c
2235 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2236 declaration of without_params. Fix formatting.
2237
65392b3e
TT
22382019-07-01 Tom Tromey <tromey@adacore.com>
2239
2240 * ada-exp.y (find_primitive_type): Update.
2241 * ada-lang.h (ada_lookup_symbol): Update.
2242 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2243 parameter.
2244 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2245
7d7571f0
SDJ
22462019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2247
2248 PR breakpoints/24541
2249 * gdbarch.c: Regenerate.
2250 * gdbarch.h: Regenerate.
2251 * gdbarch.sh: Add 'stap_adjust_register'.
2252 * i386-tdep.c: Include '<unordered_set>'.
2253 (i386_stap_adjust_register): New function.
2254 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2255 * stap-probe.c (stap_parse_register_operand): Call
2256 'gdbarch_stap_adjust_register'.
2257
5af5392a
SDJ
22582019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2259
2260 PR python/24742
2261 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2262 * python/python.c (do_start_initialization): Use 'xmalloc'
2263 instead of 'PyMem_Malloc'.
2264
10d06d82
TT
22652019-06-28 Tom Tromey <tromey@adacore.com>
2266
2267 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2268 for Ada.
2269
1b7f24cd
TT
22702019-06-27 Tom Tromey <tromey@adacore.com>
2271
2272 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2273 objfile_key.
2274 (arm_find_mapping_symbol, arm_record_special_symbol)
2275 (_initialize_arm_tdep): Update.
2276 (arm_objfile_data_free): Remove.
2277
3d507ff2
TT
22782019-06-27 Tom Tromey <tromey@adacore.com>
2279
2280 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2281 to cp_print_static_field.
2282
762c164d
TT
22832019-06-26 Tom Tromey <tromey@adacore.com>
2284
2285 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2286 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2287 declare.
2288
aa2f9bcf
AH
22892019-06-26 Alan Hayward <alan.hayward@arm.com>
2290
2291 * features/aarch64-core.c (create_feature_aarch64_core):
2292 Regenerate.
2293 * features/aarch64-core.xml: Add cpsr flags.
2294
3426ae57
AH
22952019-06-26 Alan Hayward <alan.hayward@arm.com>
2296
2297 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2298 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2299
4838e44c
SM
23002019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2301
2302 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2303 field.
2304 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2305 use.
2306 (arm_record_special_symbol): Don't insert new symbol in sorted
2307 position, push it at the end.
2308
54cc7474
SM
23092019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2310
2311 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2312 (arm_mapping_symbol_s): Remove.
2313 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2314 (arm_mapping_symbol_vec): New typedef.
2315 (struct arm_per_objfile): Add constructor.
2316 <section_maps>: Change type to
2317 std::unique_ptr<arm_mapping_symbol_vec[]>.
2318 (arm_compare_mapping_symbols): Remove.
2319 (arm_find_mapping_symbol): Adjust to section_maps type change.
2320 (arm_objfile_data_free): Call delete on arm_per_objfile.
2321 (arm_record_special_symbol): Adjust to section_maps type change.
2322 Allocate arm_per_objfile with new.
2323
b65b566c
PW
23242019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2325
2326 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2327 with the command prefix.
2328
c2fc64f5
TT
23292019-06-25 Tom Tromey <tom@tromey.com>
2330
2331 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2332 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2333
fb54fa76
TT
23342019-06-25 Tom Tromey <tom@tromey.com>
2335
2336 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2337 type.
2338 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2339 protected.
2340
f7952c57
TT
23412019-06-25 Tom Tromey <tom@tromey.com>
2342
2343 * tui/tui-winsource.c
2344 (tui_source_window_base::set_is_exec_point_at): Add check against
2345 LOA_ADDRESS.
2346
17568d78
TT
23472019-06-25 Tom Tromey <tom@tromey.com>
2348
2349 * tui/tui-source.c (tui_set_source_content): Don't check before
2350 xfree.
2351 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2352
53e7cdba
TT
23532019-06-25 Tom Tromey <tom@tromey.com>
2354
2355 * tui/tui-winsource.h (tui_update_source_window_as_is)
2356 (tui_alloc_source_buffer, tui_line_is_displayed)
2357 (tui_addr_is_displayed): Change type of win_info.
2358 * tui/tui-winsource.c (tui_update_source_window_as_is)
2359 (tui_clear_source_content, tui_show_source_line)
2360 (tui_show_source_content, tui_source_window_base::refill)
2361 (tui_source_window_base::set_is_exec_point_at)
2362 (tui_source_window_base::set_is_exec_point_at)
2363 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2364 (tui_alloc_source_buffer, tui_line_is_displayed)
2365 (tui_addr_is_displayed): Change type of win_info. Update.
2366 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2367 (tui_source_window_base::do_make_visible_with_new_height):
2368 Update.
2369 * tui/tui-source.c (tui_set_source_content)
2370 (tui_set_source_content_nil)
2371 (tui_source_window::do_scroll_vertical): Update.
2372 * tui/tui-layout.c (show_layout): Update.
2373 * tui/tui-disasm.c (tui_set_disassem_content)
2374 (tui_disasm_window::do_scroll_vertical): Update.
2375 * tui/tui-data.h (tui_win_content): Remove.
2376 (struct tui_gen_win_info) <content, content_size>: Remove.
2377 (struct tui_source_element): Add initializers and destructor.
2378 (union tui_which_element, struct tui_win_element): Remove.
2379 (struct tui_source_window_base) <content>: New field.
2380 (struct tui_data_window): Remove destructor.
2381 (tui_alloc_content, tui_free_win_content)
2382 (tui_free_all_source_wins_content): Don't declare.
2383 * tui/tui-data.c (tui_initialize_static_data): Update.
2384 (init_content_element, tui_alloc_content): Remove.
2385 (~tui_gen_win_info): Update.
2386 (~tui_data_window, tui_free_all_source_wins_content)
2387 (tui_free_win_content, free_content, free_content_elements):
2388 Remove.
2389
7908abbf
TT
23902019-06-25 Tom Tromey <tom@tromey.com>
2391
2392 * tui/tui-winsource.h (tui_clear_source_content)
2393 (tui_erase_source_content, tui_show_source_content): Change type
2394 of win_info.
2395 * tui/tui-winsource.c (tui_clear_source_content)
2396 (tui_erase_source_content, tui_show_source_content): Change type
2397 of win_info.
2398 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2399 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2400 win_info.
2401 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2402 win_info.
2403 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2404
02c28df0
TT
24052019-06-25 Tom Tromey <tom@tromey.com>
2406
2407 * tui/tui-winsource.c (tui_clear_source_content)
2408 (tui_source_window_base::set_is_exec_point_at): Update.
2409 * tui/tui-source.c (tui_set_source_content_nil): Update.
2410 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2411 a bool.
2412 * tui/tui-data.c (init_content_element): Update.
2413
6658b1bf
TT
24142019-06-25 Tom Tromey <tom@tromey.com>
2415
2416 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2417 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2418 * tui/tui-layout.c (init_and_make_win): Update.
2419 * tui/tui.h (enum tui_win_type): Update.
2420 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2421 tui_win_is_auxillary.
2422 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2423 tui_win_is_auxillary.
2424
21e1c91e
TT
24252019-06-25 Tom Tromey <tom@tromey.com>
2426
2427 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2428 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2429 (tui_delete_data_content_windows, tui_display_all_data)
2430 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2431 Update.
2432 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2433 * tui/tui-regs.c (tui_last_regs_line_no)
2434 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2435 (tui_show_registers): Update.
2436 (tui_show_register_group): Return void. Update.
2437 (tui_display_registers_from, tui_display_reg_element_at_line)
2438 (tui_display_registers_from_line, tui_check_register_values):
2439 Update.
2440 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2441 member.
2442 (struct tui_data_window) <regs_content>: Now a std::vector.
2443 <regs_content_count>: Remove.
2444 (tui_add_content_elements, tui_free_data_content): Don't declare.
2445 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2446 (init_content_element): Remove DATA_WIN case. Add assert.
2447 (tui_add_content_elements): Remove.
2448 (tui_data_window): Update.
2449 (tui_free_data_content): Remove.
2450 (free_content_elements): Remove DATA_WIN case.
2451
115ac53b
TT
24522019-06-25 Tom Tromey <tom@tromey.com>
2453
2454 * tui/tui-data.c (tui_data_item_window): Update.
2455 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2456 * tui/tui-windata.c (tui_display_all_data)
2457 (tui_display_data_from_line): Update.
2458 (tui_check_data_values): Remove.
2459 * tui/tui-regs.c (tui_show_register_group)
2460 (tui_display_reg_element_at_line): Update.
2461 * tui/tui-hooks.c (tui_register_changed)
2462 (tui_refresh_frame_and_register_information): Call
2463 tui_check_register_values.
2464 * tui/tui-data.h (struct tui_data_window) <data_content,
2465 data_content_count, data_type>: Remove.
2466 (enum tui_data_type): Remove.
2467
2468 * tui/tui-data.c (tui_data_window::clear_detail)
2469 (~tui_data_window): Update.
2470
eaf9738b
TT
24712019-06-25 Tom Tromey <tom@tromey.com>
2472
2473 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2474 declare.
2475 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2476 Rename from tui_first_data_item_displayed. Update.
2477 (tui_data_window::refresh_all)
2478 (tui_data_window::do_scroll_vertical): Update.
2479 * tui/tui-data.h (struct tui_data_window)
2480 <first_data_item_displayed>: Declare new method.
2481
31ca4723
TT
24822019-06-25 Tom Tromey <tom@tromey.com>
2483
2484 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2485 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2486 contents...
2487 (tui_initialize_static_data): ...here.
2488
41bcff7f
TT
24892019-06-25 Tom Tromey <tom@tromey.com>
2490
2491 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2492 (tui_display_registers_from, tui_check_register_values): Update.
2493 (tui_display_register): Remove win_info parameter; update.
2494 (tui_get_register): Change type of parameters.
2495 * tui/tui-data.h (struct tui_data_element): Remove.
2496 (union tui_which_element) <data>: Remove.
2497 <data_window>: Change type.
2498 (struct tui_data_item_window): New.
2499 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2500 case. Add assert.
2501 (~tui_data_item_window): New destructor.
2502 (free_content_elements): Remove DATA_ITEM_WIN case.
2503
d2802c33
TT
25042019-06-25 Tom Tromey <tom@tromey.com>
2505
2506 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2507 Remove.
2508
dd835f8b
TT
25092019-06-25 Tom Tromey <tom@tromey.com>
2510
2511 * tui/tui-data.h (struct tui_command_element): Remove.
2512 (union tui_which_element) <command>: Remove.
2513 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2514 assert.
2515 (free_content_elements): Remove CMD_WIN case.
2516
bd7db367
TT
25172019-06-25 Tom Tromey <tom@tromey.com>
2518
2519 * tui/tui-layout.c (tui_set_layout): Update.
2520 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2521 * tui/tui-data.c (layout_def): Update.
2522
3add462f
TT
25232019-06-25 Tom Tromey <tom@tromey.com>
2524
2525 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2526 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2527 (tui_source_window_base::set_new_height): Update.
2528 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2529 Update.
2530 (tui_set_locator_fullname, tui_set_locator_info)
2531 (tui_show_frame_info): Update.
2532 * tui/tui-source.c (tui_set_source_content)
2533 (tui_source_is_displayed): Update.
2534 * tui/tui-layout.c (show_source_disasm_command, show_data)
2535 (show_source_or_disasm_and_command): Update.
2536 * tui/tui-disasm.c (tui_set_disassem_content)
2537 (tui_get_begin_asm_address): Update.
2538 * tui/tui-data.h (struct tui_locator_element): Remove.
2539 (union tui_which_element) <locator>: Remove.
2540 (struct tui_locator_window): New.
2541 (tui_locator_win_info_ptr): Change return type.
2542 * tui/tui-data.c (_locator): Change type.
2543 (tui_locator_win_info_ptr): Change return type.
2544 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2545 (tui_alloc_content): Add assert.
2546
489e9d8b
TT
25472019-06-25 Tom Tromey <tom@tromey.com>
2548
2549 * tui/tui-winsource.c
2550 (tui_exec_info_window::maybe_allocate_content): New method.
2551 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2552 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2553 (make_source_or_disasm_window): Add cast.
2554 * tui/tui-data.h (union tui_which_element) <simple_string>:
2555 Remove.
2556 (struct tui_source_info): New.
2557 (struct tui_source_window_base) <execution_info>: Change type.
2558 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2559 case, and add assert.
2560 (tui_alloc_content): Add assert.
2561
c3fabb7d
TT
25622019-06-25 Tom Tromey <tom@tromey.com>
2563
2564 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2565 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2566 * tui/tui-data.c (tui_alloc_win_info): Remove.
2567
bbc228ee
TT
25682019-06-25 Tom Tromey <tom@tromey.com>
2569
2570 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2571 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2572 can_highlight.
2573
5fcee43a
TT
25742019-06-25 Tom Tromey <tom@tromey.com>
2575
2576 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2577 make_visible_with_new_height method.
2578 (tui_win_info::make_visible_with_new_height): New method.
2579 (tui_source_window_base::do_make_visible_with_new_height)
2580 (tui_data_window::do_make_visible_with_new_height)
2581 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2582 (make_visible_with_new_height): Remove.
2583 (tui_resize_all, tui_adjust_win_heights): Use
2584 make_visible_with_new_height method.
2585 * tui/tui-data.h (struct tui_win_info)
2586 <do_make_visible_with_new_height, make_visible_with_new_height>:
2587 New methods.
2588 (struct tui_source_window_base, struct tui_data_window)
2589 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2590 methods.
2591
d83f1fe6
TT
25922019-06-25 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2595 method.
2596 (update_tab_width): Call update_tab_width method.
2597 * tui/tui-data.h (struct tui_win_info)
2598 (struct tui_source_window_base) <update_tab_width>: New methods.
2599
17374de4
TT
26002019-06-25 Tom Tromey <tom@tromey.com>
2601
2602 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2603 parameter.
2604 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2605 parameter.
2606 (tui_gen_win_info::make_visible): Update.
2607 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2608 parameter.
2609 * tui/tui-data.h (enum tui_box): New enum.
2610 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2611
f936bca2
TT
26122019-06-25 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2615 init_and_make_win for EXEC_INFO_WIN.
2616 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2617 longer inline.
2618 (struct tui_win_info) <~tui_win_info>: Inline.
2619 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2620 Don't declare.
2621 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2622 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2623 Remove.
2624 (tui_initialize_static_data): Update.
2625 (~tui_gen_win_info): Handle more cleanup here.
2626 (~tui_source_window_base): Delete "execution_info".
2627 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2628
d6ba6a11
TT
26292019-06-25 Tom Tromey <tom@tromey.com>
2630
2631 * tui/tui-layout.c (make_command_window): Don't set
2632 can_highlight.
2633 (show_source_disasm_command): Call the reset method.
2634 (show_data): Don't set can_highlight. Call the reset method.
2635 (tui_gen_win_info::reset): Rename from init_gen_win_info
2636 (init_and_make_win): Simplify. Return tui_gen_win_info.
2637 (show_source_or_disasm_and_command): Call the reset method.
2638 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2639 (struct tui_cmd_window): Set can_highlight.
2640
48a3bd16
TT
26412019-06-25 Tom Tromey <tom@tromey.com>
2642
2643 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2644 from make_visible.
2645 (tui_make_visible, tui_make_invisible): Rewrite.
2646 (tui_win_info::make_visible): Remove.
2647 (tui_source_window_base::make_visible): Update.
2648 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2649 method. Moved from...
2650 (struct tui_win_info) <make_visible>: ...here.
2651
c3bd716f
TT
26522019-06-25 Tom Tromey <tom@tromey.com>
2653
2654 * tui/tui-winsource.c
2655 (tui_source_window_base::do_scroll_horizontal): Remove direction
2656 parameter.
2657 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2658 direction parameter.
2659 * tui/tui-win.c (tui_win_info::forward_scroll)
2660 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2661 (tui_win_info::right_scroll): Update.
2662 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2663 direction parameter.
2664 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2665 direction parameter.
2666 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2667 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2668 Remove direction parameter.
2669 (struct tui_source_window_base, struct tui_source_window)
2670 (struct tui_disasm_window, struct tui_data_window)
2671 (struct tui_cmd_window): Update.
2672
21c32dca
TT
26732019-06-25 Tom Tromey <tom@tromey.com>
2674
2675 * tui/tui-winsource.h (tui_set_exec_info_content)
2676 (tui_show_exec_info_content, tui_erase_exec_info_content)
2677 (tui_clear_exec_info_content, tui_update_exec_info): Change
2678 argument to tui_source_window_base.
2679 * tui/tui-winsource.c (tui_set_exec_info_content)
2680 (tui_show_exec_info_content, tui_erase_exec_info_content)
2681 (tui_clear_exec_info_content, tui_update_exec_info): Change
2682 argument to tui_source_window_base.
2683
73fbdc65
TT
26842019-06-25 Tom Tromey <tom@tromey.com>
2685
2686 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2687 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2688
33325343
TT
26892019-06-25 Tom Tromey <tom@tromey.com>
2690
2691 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2692 check.
2693
29d2c474
TT
26942019-06-25 Tom Tromey <tom@tromey.com>
2695
2696 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2697 type to void.
2698 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2699 type to void.
2700 * tui/tui-source.c (tui_set_source_content): Update.
2701 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2702
152f3f4b
TT
27032019-06-25 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-win.c (window_name_completer, tui_set_focus)
2706 (tui_all_windows_info): Use name method.
2707 * tui/tui-data.h (struct tui_gen_win_info)
2708 (struct tui_source_window, struct tui_disasm_window)
2709 (struct tui_data_window, struct tui_cmd_window) <name>: New
2710 method.
2711 (tui_win_name): Don't declare.
2712 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2713 (tui_win_name): Remove.
2714
be4da588
TT
27152019-06-25 Tom Tromey <tom@tromey.com>
2716
2717 * tui/tui-winsource.h (tui_update_source_window)
2718 (tui_update_source_window_as_is): Change parameter type.
2719 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2720 to be a tui_source_window_base.
2721 (tui_update_source_window_as_is): Likewise.
2722 * tui/tui-win.c (make_visible_with_new_height): Update.
2723
5b81daba
TT
27242019-06-25 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-winsource.c (tui_erase_source_content)
2727 (tui_show_source_content, tui_show_exec_info_content)
2728 (tui_erase_exec_info_content): Use refresh_window method.
2729 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2730 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2731 from tui_refresh_win.
2732 (tui_data_window::refresh_window): New method.
2733 (tui_win_info::refresh, tui_source_window_base::refresh)
2734 (tui_refresh_all): Use refresh_window method.
2735 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2736 method.
2737 * tui/tui-regs.c (tui_display_register): Call refresh_window
2738 method.
2739 * tui/tui-layout.c (show_source_disasm_command)
2740 (show_source_or_disasm_and_command): Call refresh_window method.
2741 * tui/tui-data.h (struct tui_gen_win_info)
2742 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2743 New method.
2744
cb2ce893
TT
27452019-06-25 Tom Tromey <tom@tromey.com>
2746
2747 * tui/tui.c (tui_rl_other_window, tui_enable)
2748 (tui_is_window_visible, tui_get_command_dimension): Update.
2749 * tui/tui-winsource.c (tui_update_source_window_as_is)
2750 (tui_clear_source_content, tui_erase_source_content)
2751 (tui_show_source_line, tui_source_window_base::refill)
2752 (tui_source_window_base::do_scroll_horizontal)
2753 (tui_source_window_base::set_is_exec_point_at)
2754 (tui_update_breakpoint_info, tui_set_exec_info_content)
2755 (tui_alloc_source_buffer, tui_line_is_displayed)
2756 (tui_addr_is_displayed): Update.
2757 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2758 (tui_check_and_display_highlight_if_needed)
2759 (tui_win_info::make_visible, tui_win_info::refresh)
2760 (tui_refresh_all): Update.
2761 * tui/tui-windata.c (tui_first_data_item_displayed)
2762 (tui_delete_data_content_windows, tui_erase_data_content)
2763 (tui_display_all_data, tui_data_window::refresh_all)
2764 (tui_check_data_values): Update.
2765 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2766 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2767 (tui_win_info::backward_scroll, tui_refresh_all_win)
2768 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2769 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2770 (tui_source_window_base::set_new_height)
2771 (tui_data_window::set_new_height)
2772 (make_invisible_and_set_new_height)
2773 (make_visible_with_new_height, new_height_ok)
2774 (parse_scrolling_args): Update.
2775 * tui/tui-stack.c (tui_show_frame_info): Update.
2776 * tui/tui-source.c (tui_set_source_content)
2777 (tui_set_source_content_nil, tui_source_is_displayed)
2778 (tui_source_window::do_scroll_vertical): Update.
2779 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2780 (tui_display_registers_from, tui_display_reg_element_at_line)
2781 (tui_check_register_values, tui_reg_command): Update.
2782 * tui/tui-layout.c (tui_default_win_height)
2783 (show_source_disasm_command, show_data, init_and_make_win)
2784 (show_source_or_disasm_and_command): Update.
2785 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2786 (tui_redisplay_readline, tui_mld_flush)
2787 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2788 (tui_getc): Update.
2789 * tui/tui-disasm.c (tui_set_disassem_content)
2790 (tui_disasm_window::do_scroll_vertical): Update.
2791 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2792 Now virtual.
2793 (struct tui_win_info): Derive from tui_gen_win_info.
2794 <~tui_win_info>: Mark as override.
2795 <generic>: Remove member.
2796 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2797 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2798 (~tui_data_window, ~tui_win_info)
2799 (tui_free_all_source_wins_content): Update.
2800 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2801
ab313b35
TT
28022019-06-25 Tom Tromey <tom@tromey.com>
2803
2804 * tui/tui-layout.c (init_and_make_win): Use new.
2805 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2806 destructor, initializers.
2807 (tui_alloc_generic_win_info): Don't declare.
2808 * tui/tui-data.c (_locator): Add argument to constructor.
2809 (source_win, disasm_win): New globals.
2810 (exec_info): Remove.
2811 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2812 Update.
2813 (tui_alloc_generic_win_info): Remove.
2814 (init_content_element): Use new.
2815 (tui_win_info::tui_win_info): Update.
2816 (free_content_elements) <case DATA_WIN>: Use delete.
2817
dc2c33e4
TT
28182019-06-25 Tom Tromey <tom@tromey.com>
2819
2820 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2821 * tui/tui-windata.c (tui_first_data_item_displayed)
2822 (tui_delete_data_content_windows): Update.
2823 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2824 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2825 (tui_display_registers_from, tui_check_register_values): Update.
2826 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2827 pointer.
2828 * tui/tui-data.c (init_content_element): Update. Allocate the new
2829 window.
2830 (tui_free_data_content): Update.
2831 (free_content_elements) <case DATA_WIN>: Free the window.
2832
214a5cbe
TT
28332019-06-25 Tom Tromey <tom@tromey.com>
2834
2835 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2836 Update.
2837 * tui/tui-layout.c (make_command_window)
2838 (show_source_disasm_command, show_data, init_and_make_win)
2839 (show_source_or_disasm_and_command): Update.
2840 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2841 method.
2842 <can_highight, is_highlighted>: Now bool.
2843 (tui_set_win_highlight): Don't declare.
2844 * tui/tui-data.c (tui_set_win_highlight): Remove.
2845
8e2daf15
TT
28462019-06-25 Tom Tromey <tom@tromey.com>
2847
2848 * tui/tui-wingeneral.c (make_visible): Remove check of window
2849 type.
2850
8903bd8a
TT
28512019-06-25 Tom Tromey <tom@tromey.com>
2852
2853 * tui/tui-win.c (tui_win_info::max_height)
2854 (tui_cmd_window::max_height): New methods.
2855 (new_height_ok): Call max_height.
2856 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2857 <max_height>: New method.
2858
3f02ce1e
TT
28592019-06-25 Tom Tromey <tom@tromey.com>
2860
2861 * tui/tui-win.c (tui_source_window_base::set_new_height)
2862 (tui_data_window::set_new_height): New methods.
2863 (make_invisible_and_set_new_height): Call set_new_height method.
2864 * tui/tui-data.h (struct tui_win_info)
2865 (struct tui_source_window_base, struct tui_data_window)
2866 <set_new_height>: New method.
2867
1825f487
TT
28682019-06-25 Tom Tromey <tom@tromey.com>
2869
2870 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2871 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2872 tui_refresh_data_win.
2873 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2874 method.
2875 (tui_refresh_all_win): Call the refresh_all method.
2876 (tui_set_focus): Likewise.
2877 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2878 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2879 Likewise.
2880
ad54d15b
TT
28812019-06-25 Tom Tromey <tom@tromey.com>
2882
2883 * tui/tui-winsource.h (tui_refill_source_window)
2884 (tui_set_is_exec_point_at): Don't declare.
2885 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2886 (tui_source_window_base::refill): Rename from
2887 tui_refill_source_window.
2888 (tui_source_window_base::do_scroll_horizontal): Update.
2889 (tui_source_window_base::set_is_exec_point_at): Rename from
2890 tui_set_is_exec_point_at.
2891 (tui_update_all_breakpoint_info): Update.
2892 * tui/tui-stack.c (tui_show_frame_info): Update.
2893 * tui/tui-layout.c (show_data): Add cast.
2894 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2895 * tui/tui-data.h (struct tui_source_window_base) <refill,
2896 set_is_exec_point_at>: New methods.
2897 (tui_source_windows, tui_add_to_source_windows): Update types.
2898 (tui_add_to_source_windows): Remove redundant declaration.
2899 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2900 (tui_source_windows): Change return type.
2901 (tui_clear_source_windows_detail): Update.
2902 (tui_add_to_source_windows): Change type of parameter.
2903 (tui_free_all_source_wins_content): Update.
2904
2042b506
TT
29052019-06-25 Tom Tromey <tom@tromey.com>
2906
2907 * tui/tui-wingeneral.c (tui_win_info::refresh)
2908 (tui_source_window_base::refresh): New methods.
2909 (tui_refresh_all): Call the refresh method.
2910 * tui/tui-data.h (struct tui_win_info)
2911 (struct tui_source_window_base) <refresh>: New method.
2912
56122977
TT
29132019-06-25 Tom Tromey <tom@tromey.com>
2914
2915 * tui/tui.h (tui_is_window_visible): Return bool.
2916 * tui/tui.c (tui_is_window_visible): Return bool.
2917 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2918 (tui_make_visible, tui_make_invisible)
2919 (tui_win_info::make_visible)
2920 (tui_source_window_base::make_visible, make_all_visible)
2921 (tui_make_all_visible, tui_make_all_invisible): Update.
2922 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2923 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2924 bool.
2925 (struct tui_win_info, struct tui_source_window_base)
2926 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2927 * tui/tui-data.c (tui_init_generic_part): Update.
2928
cda37efb
TT
29292019-06-25 Tom Tromey <tom@tromey.com>
2930
2931 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2932 (tui_source_window_base::make_visible): New methods.
2933 (make_all_visible): Make method call.
2934 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2935 (struct tui_source_window_base, struct tui_cmd_window): Override
2936 make_visible.
2937 (tui_win_is_source_type): Don't declare.
2938 * tui/tui-data.c (tui_win_is_source_type): Remove.
2939
6a0ee02c
TT
29402019-06-25 Tom Tromey <tom@tromey.com>
2941
2942 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2943 NULL check.
2944
63901aec
TT
29452019-06-25 Tom Tromey <tom@tromey.com>
2946
2947 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2948 Inline constructor. Add initializers for members.
2949 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2950 constructors; now inline in class.
2951
ceb13a13
TT
29522019-06-25 Tom Tromey <tom@tromey.com>
2953
2954 * tui/tui-regs.c (tui_show_registers): Update.
2955 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2956 bool.
2957 * tui/tui-data.c (tui_data_window::clear_detail)
2958 (tui_data_window): Update.
2959
238eb706
TT
29602019-06-25 Tom Tromey <tom@tromey.com>
2961
2962 * tui/tui-windata.c (tui_display_all_data)
2963 (tui_display_data_from_line, tui_display_data_from)
2964 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2965 Update.
2966 * tui/tui-regs.c (tui_last_regs_line_no)
2967 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2968 (tui_show_registers, tui_show_register_group)
2969 (tui_display_registers_from, tui_display_reg_element_at_line)
2970 (tui_display_registers_from_line, tui_check_register_values)
2971 (tui_reg_next, tui_reg_prev): Update.
2972 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2973 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2974 tui_data_window.
2975 (struct tui_win_info) <detail>: Remove. Add new fields from
2976 tui_data_info.
2977 (TUI_DATA_WIN): Add cast.
2978 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2979 (~tui_data_window): Simplify.
2980
81491aa0
TT
29812019-06-25 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-layout.c (show_source_disasm_command)
2984 (show_source_or_disasm_and_command): Update.
2985 * tui/tui-io.c (update_cmdwin_start_line)
2986 (tui_redisplay_readline): Update.
2987 * tui/tui-data.h (struct tui_command_info): Remove.
2988 (struct tui_win_info) <detail>: Remove command_info member.
2989 (struct tui_data_window) <start_line>: New member, from
2990 tui_command_info.
2991 (TUI_CMD_WIN): Add casts.
2992
e6e41501
TT
29932019-06-25 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui-winsource.c (tui_update_source_window)
2996 (tui_refill_source_window)
2997 (tui_source_window_base::do_scroll_horizontal)
2998 (tui_update_breakpoint_info, tui_set_exec_info_content)
2999 (tui_show_exec_info_content, tui_erase_exec_info_content)
3000 (tui_clear_exec_info_content): Update.
3001 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3002 Update.
3003 * tui/tui-win.c (make_invisible_and_set_new_height)
3004 (make_visible_with_new_height): Update.
3005 * tui/tui-source.c (tui_set_source_content)
3006 (tui_show_symtab_source): Update.
3007 * tui/tui-layout.c (extract_display_start_addr)
3008 (show_source_disasm_command, show_data)
3009 (make_source_or_disasm_window)
3010 (show_source_or_disasm_and_command): Update.
3011 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3012 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3013 "gdbarch".
3014 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3015 to tui_source_window_base.
3016 (struct tui_win_info) <detail>: Remove source_info member.
3017 (struct tui_source_window_base) <has_locator>: Inline.
3018 Move contents from tui_source_info; rename has_locator member to
3019 m_has_locator.
3020 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3021 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3022 header file.
3023 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3024 Simplify.
3025 (tui_free_all_source_wins_content): Cast to
3026 tui_source_window_base.
3027
44f0e208
TT
30282019-06-25 Tom Tromey <tom@tromey.com>
3029
3030 * tui/tui-win.c (make_invisible_and_set_new_height)
3031 (make_visible_with_new_height): Call has_locator method.
3032 * tui/tui-layout.c (show_source_disasm_command, show_data)
3033 (show_source_or_disasm_and_command): Update for bool change.
3034 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3035 (tui_win_info) <has_locator>: New method.
3036 (struct tui_source_window_base) <has_locator>: New method.
3037 (tui_win_has_locator): Don't declare.
3038 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3039 from tui_win_has_locator.
3040 (tui_source_window_base): Use false, not FALSE.
3041
7778b912
TT
30422019-06-25 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3045 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3046 clear_detail method directly.
3047 (tui_clear_win_detail): Remove.
3048
f83d391c
TT
30492019-06-25 Tom Tromey <tom@tromey.com>
3050
3051 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3052 "this", not TUI_DISASM_WIN.
3053
13446e05
TT
30542019-06-25 Tom Tromey <tom@tromey.com>
3055
3056 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3057 declare.
3058 * tui/tui-winsource.c
3059 (tui_source_window_base::do_scroll_horizontal): Rename from
3060 tui_horizontal_source_scroll.
3061 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3062 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3063 from tui_vertical_data_scroll.
3064 * tui/tui-win.h (tui_scroll): Don't declare.
3065 * tui/tui-win.c (tui_win_info::forward_scroll)
3066 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3067 (tui_win_info::right_scroll): Rename and update.
3068 (tui_scroll_forward_command, tui_scroll_backward_command)
3069 (tui_scroll_left_command, tui_scroll_right_command): Update.
3070 (tui_scroll): Remove.
3071 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3072 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3073 from tui_vertical_source_scroll.
3074 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3075 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3076 from tui_vertical_disassem_scroll.
3077 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3078 do_scroll_horizontal>: New methods.
3079 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3080 Likewise.
3081 (struct tui_source_window_base): Add do_scroll_horizontal.
3082 (struct tui_source_window, struct tui_disasm_window): Add
3083 do_scroll_vertical.
3084 (struct tui_data_window, struct tui_cmd_window): Add
3085 do_scroll_horizontal and do_scroll_vertical.
3086 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3087
5cf82909
TT
30882019-06-25 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui-data.h (struct tui_source_window_base): New struct.
3091 (struct tui_source_window): Derive from tui_source_window_base.
3092 (struct tui_disasm_window): New struct.
3093 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3094 from tui_source_window::clear_detail.
3095 (tui_source_window_base): Rename from tui_source_window.
3096 (~tui_source_window_base): Rename from ~tui_source_window.
3097 (tui_alloc_win_info): Create a tui_disasm_window.
3098
ee1d42d6
TT
30992019-06-25 Tom Tromey <tom@tromey.com>
3100
3101 * tui/tui-data.h (struct tui_source_window)
3102 (struct tui_data_window): Declare destructors.
3103 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3104 destructors.
3105 (tui_win_info): Simplify.
3106
b4eb2452
TT
31072019-06-25 Tom Tromey <tom@tromey.com>
3108
3109 * tui/tui-winsource.c (tui_display_main)
3110 (tui_update_source_windows_with_addr)
3111 (tui_update_all_breakpoint_info): Update.
3112 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3113 (new_height_ok, parse_scrolling_args): Update.
3114 * tui/tui-stack.c (tui_show_frame_info): Update.
3115 * tui/tui-data.h (struct tui_list): Remove.
3116 (tui_source_windows): Return a reference to a std::vector.
3117 * tui/tui-data.c (source_windows): Now a std::vector.
3118 (tui_source_windows): Change return type.
3119 (tui_clear_source_windows): Rewrite.
3120 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3121 (tui_free_all_source_wins_content): Rewrite.
3122
8761a91b
TT
31232019-06-25 Tom Tromey <tom@tromey.com>
3124
3125 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3126 (struct tui_data_window, struct tui_cmd_window): Declare
3127 clear_detail method.
3128 * tui/tui-data.c (tui_source_window::clear_detail)
3129 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3130 methods.
3131 (tui_clear_win_detail): Simplify.
3132
0ed69eda
TT
31332019-06-25 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui-layout.c (make_source_window, make_disasm_window)
3136 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3137 Return the new window.
3138 (show_source_disasm_command, show_data)
3139 (show_source_or_disasm_and_command): Update.
3140
82432e10
TT
31412019-06-25 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3144 parameter. Return the new window.
3145 (show_source_disasm_command): Update and remove NULL check.
3146 (show_source_or_disasm_and_command): Update.
3147
ec328aa5
TT
31482019-06-25 Tom Tromey <tom@tromey.com>
3149
3150 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3151
33b906ab
TT
31522019-06-25 Tom Tromey <tom@tromey.com>
3153
3154 * tui/tui-data.h (struct tui_win_info): Make constructor
3155 protected. Make destructor virtual. Add initializers.
3156 (tui_source_window, tui_data_window, tui_cmd_window): New
3157 classes.
3158 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3159 constructor. Add "type" parameter.
3160 (tui_source_window, tui_data_window, tui_cmd_window): New
3161 constructors.
3162 (tui_alloc_win_info): Instantiate the appropriate subclass.
3163
e7e11af4
TT
31642019-06-25 Tom Tromey <tom@tromey.com>
3165
3166 * tui/tui-win.c (tui_resize_all): Use delete.
3167 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3168 destructor.
3169 (tui_free_window): Don't declare.
3170 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3171 Update.
3172
6792b55e
TT
31732019-06-25 Tom Tromey <tom@tromey.com>
3174
3175 * tui/tui-data.h (struct tui_win_info): Add constructor.
3176 * tui/tui-data.c (tui_alloc_win_info): Use new.
3177 (tui_free_window): Use delete.
3178
f95675e1
TT
31792019-06-22 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3182 declare.
3183 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3184
5bff081c
TT
31852019-06-22 Tom Tromey <tom@tromey.com>
3186
3187 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3188 declare.
3189 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3190
47e3f474
TV
31912019-06-22 Tom de Vries <tdevries@suse.de>
3192
3193 * dwarf2read.c (create_addrmap_from_aranges)
3194 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3195 instead of '%zu'.
3196
fd5866f6
SM
31972019-06-21 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * dwarf2read.h (dwarf2_section_info_def): Remove.
3200 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3201 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3202 std::vector<dwarf2_section_info>.
3203 (struct dwo_file) <~dwo_file>: Remove.
3204 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3205 types field.
3206 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3207 (dwarf2_read_debug_names): Likewise.
3208 (create_debug_types_hash_table): Change parameter type to
3209 array_view, adjust code accordingly.
3210 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3211 (partial_die_info::fixup): Likewise.
3212 (determine_prefix): Likewise.
3213 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3214
fb1eb2f9
SM
32152019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3216
3217 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3218 gdb_bfd_ref_ptr.
3219 <~dwo_file>: Remove call to gdb_bfd_unref.
3220 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3221 gdb_bfd_ref_ptr::get.
3222
51ac9db5
SM
32232019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3224
3225 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3226 type to htab_up.
3227 * dwarf2read.c (struct dwo_file): Initialize fields.
3228 <~dwo_file>: New.
3229 (free_dwo_file): Remove, move content to ~dwo_file.
3230 (struct dwo_file_deleter): Remove.
3231 (dwo_file_up>: Remove custom deleter.
3232 (free_dwo_files): Remove.
3233 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3234 dwo_files.
3235 (process_skeletonless_type_units): Call unique_ptr::get.
3236 (allocate_dwo_file_hash_table): Add deleter to created hash
3237 table. Change return type to htab_up.
3238 (lookup_dwo_file_slot): Don't memset dwo_file, call
3239 unique_ptr::get.
3240 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3241 (create_dwo_unit_in_dwp_v2): Likewise.
3242 (open_and_init_dwo_file): Likewise.
3243 (free_dwo_file_from_slot): Remove.
3244
dc4ccb6f
SM
32452019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3246
3247 * dwarf2read.h (struct dwarf2_section_info) <readin,
3248 is_virtual>: Change type to bool.
3249 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3250 true instead of 1.
3251
e6a1c5cb
TT
32522019-06-19 Tom Tromey <tom@tromey.com>
3253
3254 * tui/tui-data.h (tui_init_content_element): Don't declare.
3255
6f6ffbeb
TT
32562019-06-19 Tom Tromey <tom@tromey.com>
3257
3258 * tui/tui-data.h (tui_init_win_info): Don't declare.
3259
f23f598e
TV
32602019-06-19 Tom de Vries <tdevries@suse.de>
3261
3262 * dwarf2read.h (abstract_to_concrete): Change type to
3263 std::unordered_map<sect_offset, std::vector<sect_offset>,
3264 gdb::hash_enum<sect_offset>>.
3265
680e1bee
TT
32662019-06-19 Tom Tromey <tromey@adacore.com>
3267
3268 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3269 EVAL_AVOID_SIDE_EFFECTS specially.
3270
dcf37923
TT
32712019-06-19 Tom Tromey <tromey@adacore.com>
3272
3273 * source-cache.c (highlighter): New global.
3274 (source_cache::get_source_lines): Create a highlighter on demand.
3275
494986d5
AB
32762019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3277
3278 * defs.h (deprecated_interactive_hook): Delete declaration.
3279 * interps.c (clear_interpreter_hooks): Remove use of
3280 deprecated_interactive_hook.
3281 * top.c (deprecated_interactive_hook): Delete definition.
3282 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3283
3360b6e7
TV
32842019-06-18 Tom de Vries <tdevries@suse.de>
3285
3286 PR gdb/24515
3287 * dwarf2read.h (abstract_to_concrete): Change type from
3288 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3289 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3290 * dwarf2read.c (read_variable): Update.
3291 (dwarf2_fetch_die_loc_sect_off): Update.
3292
310b3441
TV
32932019-06-17 Tom de Vries <tdevries@suse.de>
3294
3295 PR gdb/24617
3296 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3297 accessing parent[parent_len - 1].
3298
ba9777be
PP
32992019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3300
3301 PR gdb/24364
3302 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3303 call dtrace_process_dof with NULL dof.
3304
2b9f6e89
TV
33052019-06-16 Tom de Vries <tdevries@suse.de>
3306
3307 PR gdb/24445
3308 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3309
431b3ead
TT
33102019-06-16 Tom Tromey <tom@tromey.com>
3311
3312 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3313 (make_all_visible): Use address of member.
3314
d04b44a1
TT
33152019-06-16 Tom Tromey <tom@tromey.com>
3316
3317 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3318 (tui_free_window, free_content, free_content_elements): Remove
3319 unnecessary cast.
3320 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3321 cast.
3322 * tui/tui-regs.c (tui_show_register_group)
3323 (tui_display_registers_from, tui_display_reg_element_at_line):
3324 Remove unnecessary cast.
3325
bf5142e7
AB
33262019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * linux-nat.c (normal_mask): Delete.
3329 (_initialize_linux_nat): Don't initialise normal_mask.
3330
c4973306
SM
33312019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3332
3333 PR gdb/24445
3334 * dwarf-index-write.h (write_psymtabs_to_index): Add
3335 dwz_basename parameter.
3336 * dwarf-index-write.c (write_gdbindex): Move file writing to
3337 write_gdbindex_1. Change return type void.
3338 (assert_file_size): Move up, remove filename parameter.
3339 (write_gdbindex_1): New function.
3340 (write_debug_names): Change return type to void, call
3341 assert_file_size.
3342 (struct index_wip_file): New struct.
3343 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3344 file logic to index_wip_file. Write index for dwz file if
3345 needed.
3346 (save_gdb_index_command): Pass basename of dwz file, if present.
3347 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3348 build-id of dwz file, if present.
3349 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3350 (dwarf2_get_dwz_file): Likewise.
3351 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3352 (dwarf2_get_dwz_file): Likewise.
3353
395f9c91
TT
33542019-06-16 Tom Tromey <tom@tromey.com>
3355
3356 * coffread.c (process_coff_symbol): Use xstrdup.
3357 * value.c (create_internalvar): Use xstrdup.
3358
cafb3438
TT
33592019-06-16 Tom Tromey <tom@tromey.com>
3360
3361 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3362 * breakpoint.c (stopin_command, stopat_command)
3363 (until_break_command, decode_location_default): Remove unnecessary
3364 cast.
3365 * utils.c (subset_compare): Remove unnecessary cast.
3366 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3367 cast.
3368 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3369 cast.
3370 * infcmd.c (path_command): Remove unnecessary cast.
3371 * coffread.c (decode_type): Remove unnecessary cast.
3372 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3373 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3374 * tui/tui-stack.c (tui_show_locator_content)
3375 (tui_show_frame_info): Remove unnecessary cast.
3376 * tui/tui-win.c (tui_scroll_forward_command)
3377 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3378 (parse_scrolling_args): Remove unnecessary cast.
3379 * tui/tui-data.c (init_win_info, tui_del_window)
3380 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3381 (free_content_elements): Remove unnecessary cast.
3382 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3383 unnecessary cast.
3384 * tui/tui-source.c (tui_set_source_content)
3385 (tui_vertical_source_scroll): Remove unnecessary cast.
3386 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3387 cast.
3388 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3389 * tui/tui-regs.c (tui_display_registers_from)
3390 (tui_display_register): Remove unnecessary cast.
3391 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3392 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3393 (make_visible): Remove unnecessary cast.
3394 * tui/tui-winsource.c (tui_erase_source_content)
3395 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3396 unnecessary cast.
3397 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3398 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3399 * stabsread.c (read_type, read_array_type, read_range_type):
3400 Remove unnecessary cast.
3401 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3402 (parse_symbol, parse_type, upgrade_type, parse_external)
3403 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3404 unnecessary cast.
3405 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3406
730ead81
TT
34072019-06-16 Tom Tromey <tom@tromey.com>
3408
3409 * tui/tui-data.c (tui_alloc_generic_win_info)
3410 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3411 checks.
3412
584a927c
AB
34132019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3414 Andrew Burgess <andrew.burgess@embecosm.com>
3415
3416 * f-typeprint.c (f_print_type): Don't return early for not
3417 associated or not allocated types.
3418 (f_type_print_varspec_suffix): Add print_rank parameter and print
3419 ranks of array types in case they dangling.
3420 (f_type_print_base): Add print_rank parameter.
3421
30056ea0
AB
34222019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3423
3424 * NEWS: Mention new MI commands.
3425 * break-catch-throw.c (enum exception_event_kind): Move to
3426 breakpoint.h.
3427 (print_mention_exception_catchpoint): Output text as a single
3428 message.
3429 (catch_exception_command_1): Rename to...
3430 (catch_exception_event): ...this, make non-static, update header
3431 command, and change some parameter types.
3432 (catch_catch_command): Update for changes to
3433 catch_exception_command_1.
3434 (catch_throw_command): Likewise.
3435 (catch_rethrow_command): Likewise.
3436 * breakpoint.c (enum exception_event_kind): Delete.
3437 * breakpoint.h (enum exception_event_kind): Moved here from
3438 break-catch-throw.c.
3439 (catch_exception_event): Declare.
3440 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3441 (mi_cmd_catch_throw): New function.
3442 (mi_cmd_catch_rethrow): New function.
3443 (mi_cmd_catch_catch): New function.
3444 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3445 'catch-catch' entries.
3446 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3447 (mi_cmd_catch_rethrow): Declare.
3448 (mi_cmd_catch_catch): Declare.
3449
ec8e2b6d
AB
34502019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3451
3452 * annotate.c (annotate_source_line): Change return type to void,
3453 update implementation to match.
3454 * annotate.h (annotate_source_line): Change return type to void,
3455 update header comment.
3456 * stack.c (print_frame_info): Don't change what frame information
3457 is printed based on whether annotations are on or not.
3458
0d3abd8c
AB
34592019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3460
3461 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3462 (annotate_source): Make static.
3463 (annotate_source_line): Moved from source.c and renamed from
3464 identify_source_line. Update the return type.
3465 * annotate.h (annotate_source): Delete declaration.
3466 (annotate_source_line): Declaration moved from source.h, and
3467 renamed from identify_source_line. Return type updated.
3468 * source.c (identify_source_line): Moved to annotate.c and renamed
3469 to annotate_source_line.
3470 (info_line_command): Remove check of annotation_level.
3471 * source.h (identify_source_line): Move declaration to annotate.h
3472 and rename to annotate_source_line.
3473 * stack.c: Add 'annotate.h' include.
3474 (print_frame_info): Remove check of annotation_level before
3475 calling annotate_source_line.
3476
00df30ae
AB
34772019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3478
3479 * source-cache.c (source_cache::get_plain_source_lines): Use
3480 open_source_file_with_line_charpos instead of just
3481 open_source_file, remove call to find_source_lines.
3482 (source_cache::get_source_lines): Likewise.
3483 * source.c (find_source_lines): Make static.
3484 (get_filename_and_charpos): Renamed into...
3485 (open_source_file_with_line_charpos): ..this along with changes to
3486 return a scoped_fd, and some other minor clean ups.
3487 (identify_source_line): Use open_source_file_with_line_charpos.
3488 (search_command_helper): Use open_source_file_with_line_charpos
3489 instead of just open_source_file, remove call to
3490 find_source_lines.
3491 * source.h (open_source_file_with_line_charpos): Declare new
3492 function.
3493 (find_source_lines): Delete declaration.
3494
afda45a2
AB
34952019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3496
3497 * source.c (get_filename_and_charpos): Remove fullname
3498 parameter.
3499 (identify_source_line): Update call to get_filename_and_charpos.
3500
0735b091
TT
35012019-06-14 Tom Tromey <tromey@adacore.com>
3502
3503 PR gdb/24502:
3504 * ui-style.h (skip_ansi_escape): Update comment.
3505 * ui-file.h (class no_terminal_escape_file): New class.
3506 * ui-file.c (no_terminal_escape_file::write)
3507 (no_terminal_escape_file::puts): New methods.
3508 * cli/cli-logging.c (handle_redirections): Use
3509 no_terminal_escape_file.
3510
52ce35e2
TT
35112019-06-14 Tom Tromey <tromey@adacore.com>
3512
3513 * NEWS: Move convenience variable news above Python news.
3514
73cc7272
TT
35152019-06-14 Tom Tromey <tom@tromey.com>
3516
3517 * gnulib: Move directory to top-level.
3518 * configure.ac: Don't configure gnulib.
3519 * configure: Rebuild.
3520 * common/common-defs.h: Use new path to gnulib.
3521 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3522 (GNULIB_H): Remove.
3523 (INCGNU): Look in new gnulib location.
3524 (HFILES_NO_SRCDIR): Remove gnulib files.
3525 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3526 (generated_files): Remove GNULIB_H.
3527 ($(LIBGNU), all-lib): Remove targets.
3528 (distclean): Don't mention GNULIB_BUILDDIR.
3529 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3530
f5686554
TT
35312019-06-14 Tom Tromey <tromey@adacore.com>
3532
3533 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3534 Warn if symbol file does not provide any symbols.
3535
a0c1ffed
TT
35362019-06-14 Tom Tromey <tromey@adacore.com>
3537
3538 * source.c (find_and_open_source): Respect basenames_may_differ.
3539
7c39e397
AB
35402019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * annotate.c (annotate_breakpoints_invalid): Make use of
3543 scoped_restore_terminal_state.
3544 (annotate_frames_invalid): Likewise.
3545
f411722c
TT
35462019-06-14 Tom Tromey <tromey@adacore.com>
3547
3548 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3549 allow assignment to an internalvar.
3550
4268ec18
TT
35512019-06-14 Tom Tromey <tromey@adacore.com>
3552
3553 * ada-lex.l: Allow "_" in attribute names.
3554
abdb711e
TT
35552019-06-14 Tom Tromey <tromey@adacore.com>
3556
3557 PR gdb/24653:
3558 * regcache.c (registers_changed): Don't call alloca.
3559 * top.c (execute_command): Don't call alloca.
3560
4c048731
PA
35612019-06-13 Pedro Alves <palves@redhat.com>
3562
3563 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3564 'expression'. When parsing an expression, error out if there's
3565 junk after "unlimited".
3566 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3567 (do_set_command): Adjust calls to is_unlimited_literal.
3568
66eb1ed3
PA
35692019-06-13 Pedro Alves <palves@redhat.com>
3570
3571 * compile/compile.c (make_compile_options_def_group): Add braces
3572 around array_view initializer.
3573 * thread.c (make_thread_apply_all_options_def_group)
3574 (make_thread_apply_all_options_def_group): Likewise.
3575
3345721a
PA
35762019-06-13 Pedro Alves <palves@redhat.com>
3577
3578 * NEWS (New commands): Mention "maint test-options
3579 require-delimiter", "maint test-options unknown-is-error", "maint
3580 test-options unknown-is-operand" and "maint show
3581 test-options-completion-result".
3582 (New command options, command completion): New section.
3583 (Completion improvements): New section.
3584 Mention that you can abbreviate "unlimited".
3585
6206060d
PA
35862019-06-13 Pedro Alves <palves@redhat.com>
3587
3588 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3589 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3590 * unittests/cli-utils-selftests.c (test_parse_flags)
3591 (test_parse_flags_qcs): Delete.
3592 (test_cli_utils): Don't call deleted functions.
3593
6665660a
PA
35942019-06-13 Pedro Alves <palves@redhat.com>
3595
3596 * thread.c: Include "cli/cli-option.h".
3597 (tp_array_compar_ascending): Global.
3598 (tp_array_compar): Delete function.
3599 (tp_array_compar_ascending, tp_array_compar_descending): New
3600 functions.
3601 (ascending_option_def, qcs_flag_option_def)
3602 (thr_qcs_flags_option_defs)
3603 (make_thread_apply_all_options_def_group)
3604 (make_thread_apply_options_def_group): New.
3605 (thread_apply_all_command): Use gdb::option::process_options.
3606 (thread_apply_command_completer)
3607 (thread_apply_all_command_completer): New.
3608 (thread_apply_command): Use gdb::option::process_options.
3609 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3610 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3611 to generate help text of "thread apply". Adjust "taas"'s help.
3612 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3613 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3614
f7e13587
PA
36152019-06-13 Pedro Alves <palves@redhat.com>
3616
3617 * thread.c (thread_apply_command): Check for invalid TID with
3618 isdigit instead of !isalpha.
3619
5d707134
PA
36202019-06-13 Pedro Alves <palves@redhat.com>
3621
3622 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3623 (validate_flags_qcs): New.
3624 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3625 (validate_flags_qcs): Declare.
3626 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3627 (make_frame_apply_options_def_group): New.
3628 (frame_apply_command_count): Process options with
3629 gdb::option::process_options.
3630 (frame_apply_completer): New.
3631 (frame_apply_level_completer, frame_apply_all_completer)
3632 (frame_apply_completer): New.
3633 (_initialize_stack): Update help of "frame apply", "frame apply
3634 level", "frame apply all" and "faas" to mention supported options
3635 and install command completers.
3636 * stack.h (frame_apply_all_completer): Declare.
3637 * thread.c: Include "stack.h".
3638 (tfaas_command): Add "--".
3639 (_initialize_thread): Update help "tfaas" to mention supported
3640 options and install command completer.
3641
272d4594
PA
36422019-06-13 Pedro Alves <palves@redhat.com>
3643
3644 * completer.c (complete_nested_command_line): New.
3645 (gdb_completion_word_break_characters_throw): Add assertion.
3646 * completer.h (complete_nested_command_line): Declare.
3647
90a1ef87
PA
36482019-06-13 Pedro Alves <palves@redhat.com>
3649
3650 * stack.c (parse_backtrace_qualifiers): New.
3651 (backtrace_command): Use it.
3652 (backtrace_command_completer): Complete on qualifiers.
3653
d4c16835
PA
36542019-06-13 Pedro Alves <palves@redhat.com>
3655
3656 * frame.c: Include "cli/cli-option.h.
3657 (user_set_backtrace_options): New.
3658 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3659 Delete.
3660 (get_prev_frame): Adjust.
3661 (boolean_option_def, uinteger_option_def)
3662 (set_backtrace_option_defs): New.
3663 (_initialize_frame): Adjust and use
3664 gdb::option::add_setshow_cmds_for_options to install "set
3665 backtrace past-main" and "set backtrace past-entry".
3666 * frame.h: Include "cli/cli-option.h".
3667 (struct frame_print_options): Forward declare.
3668 (print_frame_arguments_all, print_frame_arguments_scalars)
3669 (print_frame_arguments_none): Declare.
3670 (print_entry_values): Delete declaration.
3671 (struct frame_print_options, user_frame_print_options): New.
3672 (struct set_backtrace_options): New.
3673 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3674 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3675 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3676 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3677 (list_args_or_locals): Add frame_print_options parameter.
3678 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3679 * python/py-framefilter.c (enumerate_args): Pass down
3680 USER_FRAME_PRINT_OPTIONS.
3681 * stack.c: Include "cli/cli-option.h".
3682 (print_frame_arguments_all, print_frame_arguments_scalars)
3683 (print_frame_arguments_none): Declare.
3684 (print_raw_frame_arguments, print_entry_values): Delete.
3685 (user_frame_print_options): New.
3686 (boolean_option_def, enum_option_def, frame_print_option_defs):
3687 New.
3688 (struct backtrace_cmd_options): New.
3689 (bt_flag_option_def): New.
3690 (backtrace_command_option_defs): New.
3691 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3692 (print_frame_arg, read_frame_arg, print_frame_args)
3693 (print_frame_info, print_frame): Add frame_print_options parameter
3694 and use it.
3695 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3696 (backtrace_command_1): Add frame_print_options and
3697 backtrace_cmd_options parameters and use them.
3698 (make_backtrace_options_def_group): New.
3699 (backtrace_command): Process command options with
3700 gdb::option::process_options.
3701 (backtrace_command_completer): New.
3702 (_initialize_stack): Extend "backtrace"'s help to mention
3703 supported options. Install completer for "backtrace".
3704 Install some settings commands with add_setshow_cmds_for_options.
3705
2daf894e
PA
37062019-06-13 Pedro Alves <palves@redhat.com>
3707
3708 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3709 and that "set/show print raw frame-arguments" are now deprecated.
3710
3711 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3712 command.
3713 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3714 * stack.c (_initialize_stack): Install "set/show print
3715 raw-frame-arguments", and deprecate "set/show print raw
3716 frame-arguments".
3717 * valprint.c (_initialize_valprint): Deprecate "set/show print
3718 raw".
3719
e6ed716c
PA
37202019-06-13 Pedro Alves <palves@redhat.com>
3721
3722 * compile/compile.c (struct compile_options): New.
3723 (compile_flag_option_def, compile_command_option_defs)
3724 (make_compile_options_def_group): New.
3725 (compile_file_command): Handle options with
3726 gdb::option::process_options.
3727 (compile_file_command_completer): New function.
3728 (compile_code_command): Handle options with
3729 gdb::option::process_options.
3730 (compile_code_command_completer): New function.
3731 (_initialize_compiler): Install completers for "compile code" and
3732 "compile file". Mention available options in "compile code" and
3733 "compile code"'s help.
3734 * completer.c (advance_to_completion_word): New, factored out from
3735 ...
3736 (advance_to_expression_complete_word_point): ... this.
3737 (advance_to_filename_complete_word_point): New.
3738 * completer.h (advance_to_filename_complete_word_point): New
3739 declaration.
3740
7d8062de
PA
37412019-06-13 Pedro Alves <palves@redhat.com>
3742
3743 * compile/compile.c: Include "cli/cli-option.h".
3744 (compile_print_value): Scope data pointer is now a
3745 value_print_options pointer; adjust.
3746 (compile_print_command): Process options. Scope data pointer is
3747 now a value_print_options pointer; adjust.
3748 (_initialize_compile): Update "compile print"'s help to include
3749 supported options. Install a completer for "compile print".
3750 * cp-valprint.c (show_vtblprint, show_objectprint)
3751 (show_static_field_print): Delete.
3752 (_initialize_cp_valprint): Don't install "set print
3753 static-members", "set print vtbl", "set print object" here.
3754 * printcmd.c: Include "cli/cli-option.h" and
3755 "common/gdb_optional.h".
3756 (print_command_parse_format): Rework to fill in a
3757 value_print_options instead of a format_data.
3758 (print_value): Change parameter type from format_data pointer to
3759 value_print_options reference. Adjust.
3760 (print_command_1): Process options. Adjust to pass down a
3761 value_print_options.
3762 (print_command_completer): New.
3763 (_initialize_printcmd): Install print_command_completer as
3764 handle_brkchars completer for the "print" command. Update
3765 "print"'s help to include supported options.
3766 * valprint.c: Include "cli/cli-option.h".
3767 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3768 here from cp-valprint.c.
3769 (boolean_option_def, uinteger_option_def)
3770 (value_print_option_defs, make_value_print_options_def_group):
3771 New. Use gdb::option::add_setshow_cmds_for_options to install
3772 "set print elements", "set print null-stop", "set print repeats",
3773 "set print pretty", "set print union", "set print array", "set
3774 print address", "set print symbol", "set print array-indexes".
3775 * valprint.h: Include <string> and "cli/cli-option.h".
3776 (make_value_print_options_def_group): Declare.
3777 (print_value): Change parameter type from format_data pointer to
3778 value_print_options reference.
3779 (print_command_completer): Declare.
3780
9d0faba9
PA
37812019-06-13 Pedro Alves <palves@redhat.com>
3782
3783 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3784 (COMMON_SFILES): Add maint-test-settings.c.
3785 * cli/cli-decode.c (boolean_enums): New global, factored out from
3786 ...
3787 (add_setshow_boolean_cmd): ... here.
3788 * cli/cli-decode.h (boolean_enums): Declare.
3789 * cli/cli-option.c: New file.
3790 * cli/cli-option.h: New file.
3791 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3792 factored out from ...
3793 (parse_cli_boolean_value(const char *)): ... this.
3794 (is_unlimited_literal): Change parameter type to pointer to
3795 pointer. Adjust and advance ARG pointer.
3796 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3797 (parse_cli_var_enum): New, factored out from ...
3798 (do_set_command): ... this. Adjust.
3799 * cli/cli-setshow.h (parse_cli_boolean_value)
3800 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3801 (parse_cli_var_enum): Declare.
3802 * cli/cli-utils.c: Include "cli/cli-option.h".
3803 (get_ulongest): New.
3804 * cli/cli-utils.h (get_ulongest): Declare.
3805 (check_for_argument): New overloads.
3806 * maint-test-options.c: New file.
3807
2c722807
PA
38082019-06-13 Pedro Alves <palves@redhat.com>
3809
3810 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3811 parse a range if "-" is at the end of the string.
3812
dee7b4c8
PA
38132019-06-13 Pedro Alves <palves@redhat.com>
3814
3815 * cli/cli-setshow.c (parse_auto_binary_operation)
3816 (parse_cli_boolean_value): Don't allow "o".
3817
dca0f6c0
PA
38182019-06-13 Pedro Alves <palves@redhat.com>
3819
3820 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3821 * NEWS: Mention maint test-settings KIND.
3822 * maint-test-settings.c: New file.
3823
597bf39d
PA
38242019-06-13 Pedro Alves <palves@redhat.com>
3825
3826 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3827 completer.
3828 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3829 "set" completers.
3830
48c410fb
PA
38312019-06-13 Pedro Alves <palves@redhat.com>
3832
3833 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3834 after item.
3835
93bcb043
PA
38362019-06-13 Pedro Alves <palves@redhat.com>
3837
3838 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3839
cbba3ecd
PA
38402019-06-13 Pedro Alves <palves@redhat.com>
3841
3842 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3843 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3844 call.
3845 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3846 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3847 calls.
3848 (check_for_argument): Skip spaces after argument.
3849
b9a3f842
PA
38502019-06-13 Pedro Alves <palves@redhat.com>
3851
3852 * thread.c (thread_apply_command): Adjust TID parsing.
3853 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3854 detected before end of string.
3855 (tid_is_in_list): Error out if LIST is invalid.
3856
3844e605
PA
38572019-06-13 Pedro Alves <palves@redhat.com>
3858
3859 * completer.c (complete_line_internal_1): Rewind completion word
3860 point.
3861 (completion_tracker::advance_custom_word_point_by): Change
3862 parameter type to int.
3863 * completer.h (completion_tracker::advance_custom_word_point_by):
3864 Likewise.
3865
00b56dbe
PA
38662019-06-13 Pedro Alves <palves@redhat.com>
3867
3868 * completer.c (advance_to_completion_word): Handle delimiters.
3869
d106773e
PA
38702019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3871
3872 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3873
08f10e02
TT
38742019-06-11 Tom Tromey <tom@tromey.com>
3875
3876 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3877 (xmalloc_failed): Move to alloc.c.
3878 * alloc.c: New file.
3879 * Makefile.in (COMMON_SFILES): Add alloc.c.
3880
1c7fe951
TT
38812019-06-11 Tom Tromey <tom@tromey.com>
3882
3883 * nat/linux-waitpid.c: Don't include server.h.
3884 (linux_debug): Remove.
3885 (my_waitpid): Update.
3886
89549d7f
TT
38872019-06-11 Tom Tromey <tromey@adacore.com>
3888
3889 * infcall.c (_initialize_infcall): Remove trailing newline from
3890 help.
3891 * user-regs.c (_initialize_user_regs): Remove trailing newline
3892 from help.
3893 * typeprint.c (_initialize_typeprint): Remove trailing newline
3894 from help.
3895 * reverse.c (_initialize_reverse): Remove trailing newlines from
3896 help.
3897 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3898 from help.
3899 * language.c (add_set_language_command): Remove trailing newline
3900 from help.
3901 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3902 help.
3903 * disasm.c (_initialize_disasm): Remove trailing newline from
3904 help.
3905 * top.c (init_main): Remove trailing newline from help.
3906 * interps.c (_initialize_interpreter): Remove trailing newline
3907 from help.
3908 * btrace.c (_initialize_btrace): Remove trailing newlines from
3909 help.
3910 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3911 from help.
3912 * python/python.c (_initialize_python): Remove trailing newline
3913 from help.
3914 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3915 help.
3916 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3917 from help. Reformat some text.
3918 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3919 from help.
3920 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3921 newline from help.
3922
86108c13
TT
39232019-06-11 Tom Tromey <tromey@adacore.com>
3924
3925 * darwin-nat.c (darwin_decode_exception_message)
3926 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3927
a7067863
AB
39282019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * valops.c (value_slice): Check for not allocated or not
3931 associated values.
3932
9ab08412
TV
39332019-06-10 Tom de Vries <tdevries@suse.de>
3934
3935 PR gdb/24618
3936 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3937 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3938 invalid.
3939
f19e22e9
TV
39402019-06-10 Tom de Vries <tdevries@suse.de>
3941
3942 PR gdb/24611
3943 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3944 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3945
e99f9db0
TV
39462019-06-10 Tom de Vries <tdevries@suse.de>
3947
3948 PR symtab/24545
3949 * symtab.c (struct demangled_name_entry): Add language field.
3950 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3951 static minimal symbol". Set and use language field.
3952
9bf7038b
TT
39532019-06-10 Tom Tromey <tromey@adacore.com>
3954
3955 * ada-lang.c (_initialize_ada_language): Update help text.
3956
422186a9
TT
39572019-06-10 Tom Tromey <tromey@adacore.com>
3958
3959 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3960 with a newline.
3961 * guile/guile.c (handle_boot_error): Don't end warning with a
3962 newline.
3963 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3964 warning with a newline.
3965 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3966 newline.
3967 (s12z_frame_cache): Likewise.
3968 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3969 a newline.
3970 * solib-svr4.c (disable_probes_interface): Don't end warning with
3971 a newline.
3972 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3973 newline.
3974 * python/python.c (do_finish_initialization): Don't end warning
3975 with a newline.
3976
25ce02ee
TT
39772019-06-10 Tom Tromey <tom@tromey.com>
3978
3979 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3980 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3981 gdbpy_enter.
3982
caa429d8
TT
39832019-06-10 Tom Tromey <tromey@adacore.com>
3984
3985 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3986 data.
3987 (elf_new_init): Don't call stabsread_new_init.
3988 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3989 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3990 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3991
81873cc8
TV
39922019-06-10 Tom de Vries <tdevries@suse.de>
3993
3994 PR symtab/16264
3995 PR symtab/24517
3996 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3997
4fa0265e
РИ
39982019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3999
4000 * source.c (find_and_open_source): Also rewrite relative file
4001 names.
4002
1a3da2cd
AB
40032019-04-26 Amos Bird <amosbird@gmail.com>
4004
4005 * annotate.c (annotate_thread_exited): Add "thread-exited"
4006 annotation.
4007
3847a7bf
TT
40082019-06-06 Tom Tromey <tromey@adacore.com>
4009
4010 * maint.h (class scoped_command_stats): Use
4011 DISABLE_COPY_AND_ASSIGN.
4012 <print_time>: New method.
4013 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4014 print_time.
4015 (scoped_command_stats::print_time): New method.
4016
312617a3
AB
40172019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4018
4019 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4020 instructions of lengths 6 or 8 bytes.
4021
b02f78f9
PA
40222019-06-04 Pedro Alves <palves@redhat.com>
4023
4024 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4025
4026 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4027 * breakpoint.c (condition_completer): Likewise.
4028 * cli/cli-dump.c (scan_expression): Likewise.
4029 * common/filestuff.c (mkdir_recursive): Likewise.
4030 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4031 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4032 (gdb_abspath): Likewise.
4033 * compile/compile-cplus-types.c
4034 (compile_cplus_instance::decl_name): Likewise.
4035 * completer.c (complete_explicit_location):
4036 (signal_completer, reg_or_group_completer_1): Likewise.
4037 * cp-support.c (cp_remove_params_if_any): Likewise.
4038 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4039 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4040 * infcmd.c (strip_bg_char): Likewise.
4041 * linespec.c (copy_token_string): Likewise.
4042 * mi/mi-main.c (output_cores): Likewise.
4043 * psymtab.c (psymtab_search_name):
4044 * symfile.c (test_set_ext_lang_command): Likewise.
4045 * target.c (target_fileio_read_stralloc): Likewise.
4046 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4047 * value.c (complete_internalvar): Likewise.
4048
e1f2e1a2
CB
40492019-06-04 Christian Biesinger <cbiesinger@google.com>
4050
4051 Add objfile property to gdb.Type.
d3238f7d
PA
4052 * NEWS: Mention Python API addition.
4053 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4054
e664d728
PW
40552019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4056
4057 * NEWS: Mention the new set|show style [title|highlight].
4058 Mention changes to "show style", "help" and "apropos".
4059
66d8c862
PW
40602019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4061
4062 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4063 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4064 instead of print_help_for_command.
4065 (print_doc_of_command): New function.
4066 (help_list): Add 'apropos -v word' suggestion.
4067 (print_help_for_command): Style the command name using title style.
4068 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4069 (_initialize_cli_cmds): Describe -v in apropos_command help.
4070
9303eb2f
PW
40712019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4072
4073 * cli/cli-style.h (cli_style_option): Add name in constructor,
4074 add m_name class member, add constructor with intensity,
4075 add name class function.
4076 (cli_style_option::add_setshow_commands): Remove name argument.
4077 (highlight_style, title_style): New styles.
4078 * cli/cli-style.c (do_show): New function that shows a style
4079 characteristic styling the style name with itself.
4080 (set_style_name): New function.
4081 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4082 Update all callers according to the changes in cli/cli-style.h.
4083 * utils.h (fputs_highlighted): New function.
4084 * utils.c (fputs_highlighted): Likewise.
4085
e2c52041
PW
40862019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4087
4088 * NEWS: Mention new pipe command and new convenience variables.
4089
947d3946
PW
40902019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4091
4092 * cli/cli-cmds.c (pipe_command): New function.
4093 (_initialize_cli_cmds): Call add_com for pipe_command.
4094 Define | as an alias for pipe.
4095 (exit_status_set_internal_vars): New function.
4096 (shell_escape): Call exit_status_set_internal_vars.
4097 cli/cli-decode.c (find_command_name_length): Recognize | as
4098 a single character command.
4099
b8fd0918
PW
41002019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4101
4102 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4103 top.c (execute_command_to_ui_file): New function, mostly a copy
4104 of execute_command_to_string.
4105 (execute_command_to_string): Implement by calling
4106 execute_command_to_ui_file.
4107
68bb5386
PW
41082019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4109
4110 * top.h (saved_command_line): Remove declaration.
4111 * top.c (previous_saved_command_line, previous_repeat_arguments):
4112 New variables.
4113 (saved_command_line): Make static, define together with other
4114 'repeat variables'.
4115 (dont_repeat): Clear repeat_arguments.
4116 (repeat_previous, get_saved_command_line, save_command_line):
4117 New functions.
4118 (gdb_init): Initialize saved_command_line
4119 and previous_saved_command_line.
4120 * main.c (captured_main_1): Remove saved_command_line initialization.
4121 * event-top.c (handle_line_of_input): Update to use
4122 the new 'repeat' related functions instead of direct access to
4123 saved_command_line.
4124 * command.h (repeat_previous, get_saved_command_line,
4125 save_command_line): New declarations.
4126 (dont_repeat): Add comment.
4127
bfcdb852
TT
41282019-05-30 Tom Tromey <tromey@adacore.com>
4129
4130 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4131 Fix comment.
4132 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4133
0ef209f2
JV
41342019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4135
4136 PR cli/24587
4137 * completer.c (complete): Initialize variable word.
4138
955b06fa
SDJ
41392019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4140
4141 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4142 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4143 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4144 'body' is NULL to the outter 'if', protecting the '!is_define'
4145 situation as well.
4146
fa9c3fa0
TT
41472019-05-29 Tom Tromey <tromey@adacore.com>
4148
4149 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4150 (dwarf_unknown): New function.
4151 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4152 (dwarf_type_encoding_name): Use dwarf_unknown.
4153
4330d61d
TT
41542019-05-29 Tom Tromey <tromey@adacore.com>
4155
4156 PR c++/20020:
4157 * cp-valprint.c (cp_print_value_fields): Call
4158 cp_print_static_field inside "try".
4159
33a6bc35
TT
41602019-05-29 Tom Tromey <tromey@adacore.com>
4161
4162 * inflow.c (struct terminal_info): Add default operator=.
4163 * configure: Rebuild.
4164 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4165 -Wdeprecated-copy-dtor, -Wredundant-move.
4166
000439d5
TT
41672019-05-29 Tom Tromey <tromey@adacore.com>
4168
4169 * NEWS: Add entry.
4170 * infcmd.c (print_return_value_1): Handle finish_print
4171 option.
4172 (show_print_finish): New function.
4173 (_initialize_infcmd): Add "set/show print finish" commands.
4174 * valprint.c (user_print_options): Initialize new member.
4175 * valprint.h (struct value_print_options) <finish_print>: New
4176 member.
4177
c0e70c62
TT
41782019-05-28 Tom Tromey <tromey@adacore.com>
4179
4180 * ada-lang.c (ada_remove_Xbn_suffix)
4181 (find_old_style_renaming_symbol)
4182 (parse_old_style_renaming): Remove.
4183 (ada_find_renaming_symbol): Don't call
4184 find_old_style_renaming_symbol.
4185 (ada_is_renaming_symbol): Rename from
4186 ada_find_renaming_symbol. Remove "block" parameter. Return
4187 bool. Now static.
4188 (ada_read_var_value): Update and simplify.
4189 * ada-exp.y (write_var_or_type): Remove old code.
4190
766f8836
AH
41912019-05-28 Alan Hayward <alan.hayward@arm.com>
4192
4193 * event-top.c: Remove include comment.
4194 * inflow.c (class scoped_ignore_sigttou): Move from here...
4195 * inflow.h (class scoped_ignore_sigttou): ...to here.
4196 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4197 * top.c: Remove include comment.
4198
eb41253a
TT
41992019-05-27 Tom Tromey <tom@tromey.com>
4200
4201 * NEWS: Fix typo.
4202
4ca51187
TT
42032019-05-22 Tom Tromey <tromey@adacore.com>
4204
4205 * target.c (target_follow_exec): Constify parameter.
4206 * target-delegates.c: Rebuild.
4207 * remote.c (remote_target::follow_exec): Constify parameter.
4208 * infrun.c (follow_exec): Constify parameter.
4209 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4210 (target_follow_exec): Likewise.
4211
8fca4da0
AH
42122019-05-22 Alan Hayward <alan.hayward@arm.com>
4213
4214 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4215 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4216
b7060614
AH
42172019-05-22 Alan Hayward <alan.hayward@arm.com>
4218
4219 * NEWS: Add debugredirect and testsuite sections.
4220
0a5954bd
SC
42212019-05-22 Simon Cook <simon.cook@embecosm.com>
4222
4223 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4224 target descriptions using exclusively floating point register name
4225 aliases.
4226
dc42e902
AB
42272019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4228
4229 PR gdb/18644:
4230 * f-lang.c (build_fortran_types): Handle the case where
4231 gdbarch_floatformat_for_type returns a nullptr.
4232
fb7806c7
TV
42332019-05-21 Tom de Vries <tdevries@suse.de>
4234
4235 PR cli/24587
4236 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4237
34d11c68
AB
42382019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 PR gdb/18644:
4241 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4242 16-byte floats.
4243 * i386-tdep.c (i386_floatformat_for_type): Use
4244 floatformats_ia64_quad for the 16-byte floating point component
4245 within a fortran 32-byte complex number.
4246
122cf0f2
AB
42472019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4248
4249 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4250 delete default constructor.
4251 (find_partial_die): Update to return const struct.
4252 (partial_die_parent_scope): Move variable declaration into scope
4253 of its use and change its type to auto.
4254 (guess_partial_die_structure_name): Likewise.
4255 (partial_die_info::fixup): Likewise.
4256
33d0e35a
TT
42572019-05-17 Tom Tromey <tromey@adacore.com>
4258
4259 * source.c (find_and_open_source): Remove cast.
4260
a45575b0
TT
42612019-05-17 Tom Tromey <tromey@adacore.com>
4262
4263 * annotate.c (annotate_source): Make "filename" const.
4264 * annotate.h (annotate_source): Use const.
4265
81f47ac2
AH
42662019-05-17 Alan Hayward <alan.hayward@arm.com>
4267
4268 * disasm.c (set_disassembler_options): Send errors to stderr.
4269
ca1285d1
AH
42702019-05-17 Alan Hayward <alan.hayward@arm.com>
4271
4272 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4273 (cli_interp_base::set_logging): Check debug_redirect.
4274 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4275 * cli/cli-logging.c (debug_redirect): Add static variable.
4276 (pop_output_files): Add default param.
4277 (handle_redirections): Print debug setting.
4278 (show_logging_command): Likewise.
4279 (_initialize_cli_logging): Add debugredirect command.
4280 * interps.c (current_interp_set_logging): Add debug_redirect
4281 parameter.
4282 * interps.h (set_logging): Add debug_redirect parameter.
4283 (current_interp_set_logging): Likewise.
4284 * mi/mi-common.h: Likewise.
4285 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4286
42872019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4288 Tom Tromey <tromey@adacore.com>
4289
4290 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4291 directly.
4292 * cli/cli-interp.h (make_logging_output): Remove declaration.
4293 * cli/cli-logging.c (make_logging_output): Remove function.
4294 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4295 directly.
4296 * ui-file.c (tee_file::tee_file): Remove bools.
4297 (tee_file::~tee_file): Remove deletes.
4298 * ui-file.h (tee_file): Remove bools.
4299
26648588
JV
43002019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4301
4302 * mi/mi-cmds.h (mi_cmd_complete): New function.
4303 * mi/mi-main.c (mi_cmd_complete): Likewise.
4304 * mi/mi-cmds.c: Define new MI command -complete.
4305 * NEWS: Mention new -complete command.
4306
6e035501
JV
43072019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4308
4309 * completer.h (complete): New function.
4310 * completer.c (complete): Likewise.
4311 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4312 function defined in completer.h.
4313
7d0e2ece
JV
43142019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4315
e79be6e5 4316 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4317
fb816e8b
TV
43182019-05-17 Tom de Vries <tdevries@suse.de>
4319
4320 PR gdb/24094
4321 * dwarf2read.c (struct cu_partial_die_info): New struct.
4322 (find_partial_die): Return cu_partial_die_info.
4323 (partial_die_parent_scope, guess_partial_die_structure_name)
4324 (partial_die_info::fixup): Handle new return type of find_partial_die.
4325
677052f2
SDJ
43262019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4327
4328 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4329 "std::string", simplifying the algorithm.
4330
f3da9116
SDJ
43312019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4332
4333 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4334 (stap_static_probe_ops::get_probes): Likewise.
4335
f1bb75ab
SDJ
43362019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4337
4338 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4339 '-')" and "else if".
4340 (stap_parse_single_operand): Join checks for
4341 "gdbarch_stap_parse_special_token_p" and
4342 "gdbarch_stap_parse_special_token" in the same "if" statement.
4343 Invert check when verifying for operation on register
4344 displacement.
4345
3ca58cde
SDJ
43462019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4347
4348 * stap-probe.c (stap_get_opcode): Update comment.
4349 (stap_get_expected_argument_type): Likewise.
4350 (handle_stap_probe): Likewise.
4351
af2d9bee
SDJ
43522019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4353
4354 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4355 return type to 'bool'. Adjust comment. Use 'bool' when
4356 appropriate.
4357 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4358 * stap-probe.c (stap_parse_argument_1): Likewise.
4359 (stap_is_operator): Likewise.
4360 (stap_is_generic_prefix): Likewise.
4361 (stap_is_register_prefix): Likewise.
4362 (stap_is_register_indirection_prefix): Likewise.
4363 (stap_is_integer_prefix): Likewise.
4364 (stap_generic_check_suffix): Likewise.
4365 (stap_check_integer_suffix): Likewise.
4366 (stap_check_register_suffix): Likewise.
4367 (stap_check_register_indirection_suffix): Likewise.
4368 (stap_parse_register_operand): Likewise.
4369 (stap_parse_single_operand): Likewise.
4370 (stap_parse_argument_1): Likewise.
4371 (stap_probe::get_argument_count): Likewise.
4372 (stap_is_operator): Likewise.
4373
61c9c421
TT
43742019-05-16 Tom Tromey <tromey@adacore.com>
4375
4376 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4377 keyword to foreach.
4378
9ddc1af1
SM
43792019-05-15 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * linux-thread-db.c (try_thread_db_load_1): Change return type
4382 to bool.
4383 (try_thread_db_load): Likewise.
4384 (try_thread_db_load_from_pdir_1): Likewise.
4385 (try_thread_db_load_from_pdir): Likewise.
4386 (try_thread_db_load_from_sdir): Likewise.
4387 (try_thread_db_load_from_dir): Likewise.
4388 (thread_db_load_search): Likewise.
4389 (has_libpthread): Likewise.
4390 (thread_db_load): Likewise.
4391
7bede828
SDJ
43922019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4393
4394 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4395 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4396 NULL, and complain/return if that's the case.
4397
c5358db4
JD
43982019-05-15 John Darrington <john@darrington.wattle.id.au>
4399
4400 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4401 (advance, posn, abstract_read_memory): New functions.
4402 [struct mem_read_abstraction]: New struct.
4403 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4404
c408a94f
TT
44052019-05-14 Tom Tromey <tromey@adacore.com>
4406
4407 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4408 value is not lval_memory.
4409
e7bd7fba
TT
44102019-05-14 Tom Tromey <tromey@adacore.com>
4411
4412 * solib.c (info_sharedlibrary_command): Style the file name.
4413
a6d0f249
AH
44142019-05-14 Alan Hayward <alan.hayward@arm.com>
4415
4416 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4417 (aarch64_vnv_type): Likewise.
4418 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4419 * common/tdesc.c: Likewise.
4420 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4421 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4422 * features/aarch64-fpu.xml: Add ieee half view.
4423 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4424 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4425 * gdbtypes.h (struct builtin_type): Likewise.
4426 (struct objfile_type): Likewise.
4427
66b8bb74
SM
44282019-05-12 Paul Naert <paul.naert@polymtl.ca>
4429
4430 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4431 typo.
4432 * location.h (string_to_event_location): Likewise.
4433
21c219fd
JB
44342019-05-11 Joel Brobecker <brobecker@adacore.com>
4435
4436 GDB 8.3 released.
4437
13674803
SM
44382019-05-10 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4441 New variable declaration.
4442 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4443 New variable.
4444 (print_one_breakpoint): Use ui_out::test_flags and new global
4445 variable to compute use_fixed_output.
4446 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4447 Remove.
4448 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4449 (mi_multi_location_breakpoint_output_fixed): Remove.
4450 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4451 new variable.
4452 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4453 fix_multi_location_breakpoint_output flag if version >= 3.
4454 * ui-out.h (enum ui_out_flag)
4455 <fix_multi_location_breakpoint_output>: New enumerator.
4456
a9eac7f9
SM
44572019-05-10 Simon Marchi <simon.marchi@efficios.com>
4458
4459 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4460
71bed2db
TT
44612019-05-10 Tom Tromey <tromey@adacore.com>
4462
4463 * ada-lang.c (catch_ada_completer): New function.
4464 (_initialize_ada_language): Use it.
4465
24c54127
TT
44662019-05-10 Tom Tromey <tromey@adacore.com>
4467
4468 * thread.c (print_thread_info): Make "requested_threads" const.
4469 * gdbthread.h (print_thread_info): Make "requested_threads"
4470 const.
4471 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4472 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4473
7a102139
TT
44742019-05-08 Tom Tromey <tom@tromey.com>
4475
4476 * gdbtypes.c (objfile_type_data): Change type.
4477 (objfile_type, _initialize_gdbtypes): Update.
4478
924d79e2
TT
44792019-05-08 Tom Tromey <tom@tromey.com>
4480
4481 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4482 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4483 (_initialize_dwarf2_frame): Update.
4484
4c58e337
TT
44852019-05-08 Tom Tromey <tom@tromey.com>
4486
4487 * objc-lang.c (objc_objfile_data): Change type.
4488 (find_methods): Update.
4489 (_initialize_objc_lang): Remove.
4490
d772d2ab
TT
44912019-05-08 Tom Tromey <tom@tromey.com>
4492
4493 * stabsread.c (rs6000_builtin_type_data): Change type.
4494 (rs6000_builtin_type, _initialize_stabsread): Update.
4495
d11d83f4
TT
44962019-05-08 Tom Tromey <tom@tromey.com>
4497
4498 * mips-tdep.c (mips_pdr_data): Remove.
4499 (_initialize_mips_tdep): Update.
4500
9a73f0ad
TT
45012019-05-08 Tom Tromey <tom@tromey.com>
4502
4503 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4504 (hppa_init_objfile_priv_data, read_unwind_info)
4505 (find_unwind_entry, _initialize_hppa_tdep): Update.
4506
8127a2fa
TT
45072019-05-08 Tom Tromey <tom@tromey.com>
4508
4509 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4510 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4511 on obstack.
4512 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4513
91d3055d
TT
45142019-05-08 Tom Tromey <tom@tromey.com>
4515
4516 * mdebugread.c (basic_type_data): Change type.
4517 (basic_type, _initialize_mdebugread): Update.
4518
31930bd3
TT
45192019-05-08 Tom Tromey <tom@tromey.com>
4520
4521 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4522
bdb3ed9e
TT
45232019-05-08 Tom Tromey <tom@tromey.com>
4524
4525 * nto-tdep.c (nto_inferior_data_reg): Change type.
4526 (nto_inferior_data): Update.
4527 (nto_inferior_data_cleanup, nto_new_inferior_data)
4528 (_initialize_nto_tdep): Remove.
4529 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4530
f37b313d
TT
45312019-05-08 Tom Tromey <tom@tromey.com>
4532
4533 * ada-lang.c (struct ada_inferior_data): Add initializers.
4534 (ada_inferior_data): Change type.
4535 (ada_inferior_data_cleanup): Remove.
4536 (get_ada_inferior_data, ada_inferior_exit)
4537 (struct ada_pspace_data): Add initializers, destructor.
4538 (ada_pspace_data_handle): Change type.
4539 (get_ada_pspace_data): Update.
4540 (ada_pspace_data_cleanup): Remove.
4541
24699405
TT
45422019-05-08 Tom Tromey <tom@tromey.com>
4543
4544 * coffread.c (struct coff_symfile_info): Add initializers.
4545 (coff_objfile_data_key): Move lower. Change type.
4546 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4547 Update.
4548 (coff_free_info): Remove.
4549
d4e05d2f
TT
45502019-05-08 Tom Tromey <tom@tromey.com>
4551
4552 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4553 (fbsd_pspace_data_handle): Move lower. Change type.
4554 (get_fbsd_pspace_data): Update.
4555 (fbsd_pspace_data_cleanup): Remove.
4556 (_initialize_fbsd_tdep): Update.
4557
14ef6690
TT
45582019-05-08 Tom Tromey <tom@tromey.com>
4559
4560 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4561 (get_ada_tasks_pspace_data): Update.
4562 (ada_tasks_pspace_data_cleanup): Remove.
4563 (_initialize_tasks): Update.
4564 (ada_tasks_inferior_data_handle): Change type.
4565 (get_ada_tasks_inferior_data): Update.
4566 (ada_tasks_inferior_data_cleanup): Remove.
4567 (struct ada_tasks_pspace_data): Add initializers.
4568
814cf43a
TT
45692019-05-08 Tom Tromey <tom@tromey.com>
4570
4571 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4572 * symfile-debug.c (debug_sym_get_probes): Change type.
4573 * stap-probe.c (handle_stap_probe):
4574 (stap_static_probe_ops::get_probes): Change type.
4575 * probe.h (class static_probe_ops) <get_probes>: Change type.
4576 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4577 (parse_probes_in_pspace): Update.
4578 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4579 Update.
4580 (any_static_probe_ops::get_probes): Change type.
4581 * elfread.c (elfread_data): New typedef.
4582 (probe_key): Change type.
4583 (elf_get_probes): Likewise. Update.
4584 (probe_key_free): Remove.
4585 (_initialize_elfread): Update.
4586 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4587 Change type.
4588 (dtrace_process_dof_probe, dtrace_process_dof)
4589 (dtrace_static_probe_ops::get_probe): Change type.
4590
02dc647e
TT
45912019-05-08 Tom Tromey <tom@tromey.com>
4592
4593 * xcoffread.c (struct xcoff_symfile_info): Rename from
4594 coff_symfile_info. Add initializers.
4595 (xcoff_objfile_data_key): Move lower. Change type.
4596 (XCOFF_DATA): Rewrite.
4597 (xcoff_free_info): Remove.
4598 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4599 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4600 (xcoff_initial_scan): Update.
4601
09232438
TT
46022019-05-08 Tom Tromey <tom@tromey.com>
4603
4604 * solib-svr4.c (struct svr4_info): Add initializers and
4605 destructor.
4606 <probes_table>: Now an htab_up.
4607 (solib_svr4_pspace_data): Change type.
4608 (free_probes_table): Simplify.
4609 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4610 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4611 (probes_table_remove_objfile_probes, register_solib_event_probe)
4612 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4613 (_initialize_svr4_solib): Update.
4614
7b4a314f
TT
46152019-05-08 Tom Tromey <tom@tromey.com>
4616
4617 * remote.c (remote_pspace_data): Change type.
4618 (remote_pspace_data_cleanup): Remove.
4619 (get_remote_exec_file, set_pspace_remote_exec_file)
4620 (_initialize_remote): Update.
4621
51d3063a
TT
46222019-05-08 Tom Tromey <tom@tromey.com>
4623
4624 * breakpoint.c (breakpoint_objfile_key): Change type.
4625 (get_breakpoint_objfile_data): Update.
4626 (free_breakpoint_objfile_data): Remove.
4627 (_initialize_breakpoint): Update.
4628
89fb8848
TT
46292019-05-08 Tom Tromey <tom@tromey.com>
4630
4631 * linux-tdep.c (struct linux_info): Add initializers.
4632 (linux_inferior_data): Move. Change type.
4633 (invalidate_linux_cache_inf): Update.
4634 (linux_inferior_data_cleanup): Remove.
4635 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4636
e9b89e2d
TT
46372019-05-08 Tom Tromey <tom@tromey.com>
4638
4639 * auxv.c (auxv_inferior_data): Move. Change type.
4640 (auxv_inferior_data_cleanup): Remove.
4641 (invalidate_auxv_cache_inf): Rewrite.
4642 (get_auxv_inferior_data, _initialize_auxv): Update.
4643
8c42777c
TT
46442019-05-08 Tom Tromey <tom@tromey.com>
4645
4646 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4647 (symfile_debug_objfile_data_key): Change type.
4648 (symfile_debug_installed, debug_qf_has_symbols)
4649 (debug_qf_find_last_source_symtab)
4650 (debug_qf_forget_cached_source_info)
4651 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4652 (debug_qf_print_stats, debug_qf_dump)
4653 (debug_qf_expand_symtabs_for_function)
4654 (debug_qf_expand_all_symtabs)
4655 (debug_qf_expand_symtabs_with_fullname)
4656 (debug_qf_map_matching_symbols)
4657 (debug_qf_expand_symtabs_matching)
4658 (debug_qf_find_pc_sect_compunit_symtab)
4659 (debug_qf_map_symbol_filenames)
4660 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4661 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4662 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4663 (debug_sym_read_linetable, debug_sym_relocate): Update.
4664 (symfile_debug_free_objfile): Remove.
4665 (install_symfile_debug_logging, _initialize_symfile_debug):
4666 Update.
4667
5bfd760d
TT
46682019-05-08 Tom Tromey <tom@tromey.com>
4669
4670 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4671 allocate_on_obstack.
4672 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4673 (get_dwarf2_per_objfile): Update.
4674 (set_dwarf2_per_objfile): Remove.
4675 (dwarf2_has_info, dwarf2_get_section_info): Update.
4676 (dwarf2_free_objfile): Remove.
4677 (_initialize_dwarf2_read): Update.
4678
e85e19b4
TT
46792019-05-08 Tom Tromey <tom@tromey.com>
4680
4681 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4682 initializers.
4683 <unsupported_script_warning_printed,
4684 script_not_found_warning_printed>: Now bool.
4685 (auto_load_pspace_data): Change type.
4686 (~auto_load_pspace_info): Rename from
4687 auto_load_pspace_data_cleanup.
4688 (get_auto_load_pspace_data, init_loaded_scripts_info)
4689 (clear_section_scripts, maybe_print_unsupported_script_warning)
4690 (maybe_print_script_not_found_warning, _initialize_auto_load):
4691 Update.
4692
f6aa7436
TT
46932019-05-08 Tom Tromey <tom@tromey.com>
4694
4695 * objfiles.c (objfile_pspace_info): Add destructor and
4696 initializers.
4697 (objfiles_pspace_data): Change type.
4698 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4699 (get_objfile_pspace_data): Update.
4700 (objfiles_bfd_data): Change type.
4701 (get_objfile_bfd_data): Update.
4702 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4703
6ae614f6
TT
47042019-05-08 Tom Tromey <tom@tromey.com>
4705
4706 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4707 Change type.
4708 (get_catch_syscall_inferior_data): Update.
4709 (catch_syscall_inferior_data_cleanup): Remove.
4710 (_initialize_break_catch_syscall): Update.
4711
6509b8eb
TT
47122019-05-08 Tom Tromey <tom@tromey.com>
4713
4714 * inflow.c (struct terminal_info): Add destructor and
4715 initializers.
4716 (inflow_inferior_data): Change type.
4717 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4718 (get_inflow_inferior_data, inflow_inferior_exit)
4719 (swap_terminal_info, _initialize_inflow): Update.
4720
35632941
TT
47212019-05-08 Tom Tromey <tom@tromey.com>
4722
4723 * target-dcache.c (target_dcache_cleanup): Remove.
4724 (target_dcache_aspace_key): Change type.
4725 (target_dcache_init_p, target_dcache_invalidate)
4726 (target_dcache_get, target_dcache_get_or_init)
4727 (_initialize_target_dcache): Update.
4728 * dcache.h (struct dcache_deleter): New.
4729
3017b94d
TT
47302019-05-08 Tom Tromey <tom@tromey.com>
4731
4732 * symtab.c (struct symbol_cache): Add destructor and
4733 initializers.
4734 (symbol_cache_key): Move. Change type.
4735 (make_symbol_cache, free_symbol_cache): Remove.
4736 (get_symbol_cache): Update.
4737 (symbol_cache_cleanup): Remove.
4738 (ALL_PSPACES, symbol_cache_flush)
4739 (maintenance_print_symbol_cache)
4740 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4741 Update.
4742
a32ad8c5
TT
47432019-05-08 Tom Tromey <tom@tromey.com>
4744
4745 * symtab.c (struct main_info): Add destructor and initializers.
4746 (main_progspace_key): Move. Change type.
4747 (get_main_info): Update.
4748 (main_info_cleanup): Remove.
4749 (_initialize_symtab): Update.
4750
5f6e90a0
TT
47512019-05-08 Tom Tromey <tom@tromey.com>
4752
4753 * registry.h (DECLARE_REGISTRY): Define the _key class.
4754
1bd0c6e4
AB
47552019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4756
4757 * NEWS: Merge two 'New commands' sections.
4758
2228ef77
XR
47592019-05-08 Joel Brobecker <brobecker@adacore.com>
4760
4761 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4762 parameter and use Ada language definition instead.
4763 (ada_val_print_ptr): Remove unused language parameter.
4764 (ada_val_print_num): Remove language parameter and use Ada language
4765 definition instead.
4766 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4767 parameter.
4768 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4769 parameter and use Ada language definition instead.
4770 (ada_val_print_1): Update all ada_val_print_xxx calls.
4771 Remove language parameter.
4772 (ada_val_print): Update ada_val_print_1 call.
4773
60fcc1c3
TT
47742019-05-08 Tom Tromey <tromey@adacore.com>
4775
4776 * remote.c (remote_hw_watchpoint_limit)
4777 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4778 Now static.
4779
ed2b7c17
TT
47802019-05-08 Tom Tromey <tromey@adacore.com>
4781
4782 * maint.c (_initialize_maint_cmds): Move initialization code to
4783 remote.c.
4784 (watchdog, show_watchdog): Move to remote.c.
4785 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4786 "watchdog" static.
4787 (_initialize_remote): Move initialization code from maint.c.
4788 * defs.h (watchdog): Don't declare.
4789
b0be6c91
TT
47902019-05-08 Tom Tromey <tromey@adacore.com>
4791
4792 * tui/tui-interp.c: Include main.h.
4793 * interps.c: Include main.h.
4794 * main.h (interpreter_p): Declare.
4795 * defs.h (interpreter_p): Don't declare.
4796
587ee17b
TT
47972019-05-08 Tom Tromey <tromey@adacore.com>
4798
4799 * dwarf2loc.c: Include dwarf2read.h.
4800 * defs.h (read_unsigned_leb128): Don't declare.
4801 * dwarf2read.h (read_unsigned_leb128): Declare.
4802
ca1df239
TT
48032019-05-08 Tom Tromey <tromey@adacore.com>
4804
4805 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4806 method.
4807
99f20f08
TT
48082019-05-08 Tom Tromey <tromey@adacore.com>
4809
4810 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4811 when no wrap column is set.
4812
80e55b13
TT
48132019-05-08 Tom Tromey <tromey@adacore.com>
4814
4815 * c-lang.c (c_get_string): Handle non-C-style arrays.
4816
9d3421af
TT
48172019-05-08 Tom Tromey <tromey@adacore.com>
4818
4819 * typeprint.c (print_offset_data::update): Print the bit offset,
4820 not the number of bits remaining.
4821
844333e2
TT
48222019-05-08 Tom Tromey <tromey@adacore.com>
4823
4824 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4825 padding at end of comment.
4826
988915ee
TT
48272019-05-08 Tom Tromey <tromey@adacore.com>
4828
4829 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4830 Compare main types.
4831
26bfd823
TT
48322019-05-06 Tom Tromey <tom@tromey.com>
4833
4834 * common/scoped_mmap.c: Include common-defs.h.
4835 * common/scoped_mmap.h: Don't include config.h.
4836
89055eaa
TT
48372019-05-04 Tom Tromey <tom@tromey.com>
4838
4839 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4840 (struct aarch64_call_info): Add initializers.
4841 <si>: Now a std::vector.
4842 (pass_on_stack, aarch64_push_dummy_call): Update.
4843
5da01df5
TT
48442019-05-04 Simon Marchi <simon.marchi@efficios.com>
4845 Tom Tromey <tom@tromey.com>
4846
4847 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4848 (ppc_threads): Now a std::vector. Now static.
4849 (hwdebug_find_thread_points_by_tid)
4850 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4851 Update.
4852
fbdf05a1
TT
48532019-05-04 Tom Tromey <tom@tromey.com>
4854
4855 * arc-tdep.c (arc_tdesc_init): Return bool.
4856
06d16ec9
TT
48572019-05-04 Tom Tromey <tom@tromey.com>
4858
4859 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4860 Use gdb_assert_not_reached.
4861
9c056022
TT
48622019-05-04 Tom Tromey <tom@tromey.com>
4863
4864 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4865 "false".
4866
fa9c2a59
TT
48672019-05-04 Tom Tromey <tom@tromey.com>
4868
4869 * arc-tdep.c (arc_tdesc_init): Use bool.
4870
e2eb806a
TT
48712019-05-04 Tom Tromey <tom@tromey.com>
4872
4873 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4874
6fe87677
TT
48752019-05-04 Tom Tromey <tom@tromey.com>
4876
4877 * cli/cli-cmds.c (valid_command_p): Return bool.
4878
7f008c9e
TT
48792019-05-04 Tom Tromey <tom@tromey.com>
4880
4881 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4882 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4883
b6484282
RT
48842019-05-04 Raul Tambre <raul@tambre.ee>
4885
4886 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4887 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4888 operator for comparison.
4889
af97b416
TT
48902019-05-04 Tom Tromey <tom@tromey.com>
4891
4892 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4893 (lookup_partial_symbol, print_partial_symbols)
4894 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4895 (psymbol_compare): Update.
4896 (add_psymbol_to_bcache): Clear the entire psymbol.
4897 (maintenance_check_psymtabs): Update.
4898 * psympriv.h (struct partial_symbol): Don't derive from
4899 general_symbol_info.
4900 <obj_section, unrelocated_address, address,
4901 set_unrelocated_address>: Update.
4902 <ginfo>: New member.
4903 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4904 (debug_names::write_psymbols): Update.
4905
9d6d4be8
TV
49062019-05-04 Tom de Vries <tdevries@suse.de>
4907
4908 * contrib/cc-with-tweaks.sh: Support -n arg.
4909
66452beb
PW
49102019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4911
4912 * corelow.c (core_target::detach): Ensure frame cache and
4913 register caches are cleared.
4914 inferior.c (exit_inferior_1): Likewise.
4915
bde09ab7
TT
49162019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4917 Tom Tromey <tom@tromey.com>
4918
4919 * dictionary.c (collate_pending_symbols_by_language): Remove
4920 "struct" from foreach.
4921 * symtab.c (lookup_global_symbol_from_objfile)
4922 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4923 foreach.
4924 * ser-tcp.c (net_open): Remove "struct" from foreach.
4925 * objfiles.c (objfile_relocate, objfile_rebase)
4926 (objfile_has_symbols): Remove "struct" from foreach.
4927 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4928 from foreach.
4929 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4930 foreach.
4931 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4932 "struct" from foreach.
4933 * ada-lang.c (create_excep_cond_exprs)
4934 (ada_exception_catchpoint_cond_string): Remove "struct" from
4935 foreach.
4936
222a8d25
TT
49372019-05-03 Tom Tromey <tromey@adacore.com>
4938
4939 * ada-exp.y (convert_char_literal): Check suffix of each
4940 enumerator.
4941
fcd60b84
DP
49422019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4943
4944 PR ada/21406:
4945 * ada-exp.y (yywrap): Don't define.
4946 * ada-lex.l (%option): Add noyywrap
4947 (yywrap): Remove.
4948
5f2459c2
EZ
49492019-05-03 Eli Zaretskii <eliz@gnu.org>
4950
353ea2d1
EZ
4951 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4952 _WIN32_WINNT to the XP level, unless already defined to a higher
4953 level.
4954
4955 * unittests/parse-connection-spec-selftests.c:
4956 * ser-tcp.c:
4957 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4958 override.
4959
5f2459c2
EZ
4960 * symfile.c (find_separate_debug_file): Remove colon from the
4961 drive spec of DOS/Windows file names of the target, so that the
4962 file name produced from DEBUGDIR and the target's directory will
4963 be valid on DOS/Windows systems.
4964
80062eb9
AB
49652019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4966
4967 * rust-lang.c (val_print_struct): Handle printing structures
4968 containing strings.
4969
b8c05e85
TT
49702019-05-02 Tom Tromey <tromey@adacore.com>
4971
4972 * valarith.c (_initialize_valarith): Remove.
4973
4504bbde
TT
49742019-05-01 Tom Tromey <tromey@adacore.com>
4975
4976 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4977 bitfields.
4978
d48e62f4
TT
49792019-05-01 Tom Tromey <tromey@adacore.com>
4980
4981 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4982 for big-endian copies.
4983
15f18d14
AT
49842019-04-30 Ali Tamur <tamur@google.com>
4985 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4986 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4987 (read_3_bytes): New function.
4988
ab4ee614
JB
49892019-04-30 Joel Brobecker <brobecker@adacore.com>
4990
4991 * windows-nat.c (main_thread_id): Delete.
4992 (handle_output_debug_string): Replace main_thread_id by
4993 current_event.dwThreadId.
4994 (fake_create_process): Likewise.
4995 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4996 Do not set main_thread_id.
4997 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4998 current_event.dwThreadId.
4999 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5000
8ed5b76e
JB
50012019-04-30 Joel Brobecker <brobecker@adacore.com>
5002
5003 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5004 Use current_event.dwThreadId instead of main_thread_id.
5005
2ff0a947
TT
50062019-04-30 Tom Tromey <tromey@adacore.com>
5007
5008 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5009 (create_excep_cond_exprs): Iterate over program spaces.
5010 (ada_exception_catchpoint_cond_string): Examine all minimal
5011 symbols for exception types.
5012
a776957c
TT
50132019-04-30 Tom Tromey <tromey@adacore.com>
5014
5015 PR c++/24470:
5016 * dwarf2read.c (process_structure_scope): Handle case where type
5017 has template parameters but no symbol was created.
5018
bc68014d
AB
50192019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5020 Chris January <chris.january@arm.com>
5021
5022 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5023 qualifier.
5024 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5025
f1fdc960
AB
50262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5027
5028 * f-typeprint.c (f_print_type): Update rules for printing
5029 whitespace.
5030 (f_type_print_varspec_suffix): Likewise.
5031
bf7a4de1
AB
50322019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5033 Chris January <chris.january@arm.com>
5034
5035 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5036 function arguments.
5037
bbe75b9d
AB
50382019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5039
5040 * f-lang.c (build_fortran_types): Change name of void type to
5041 lower case.
5042 * f-typeprint.c (f_type_print_base): Print the name of the void
5043 type, rather than a fixed string.
5044 * f-valprint.c (f_decorations): Use lower case void string.
5045
1db455a7
AB
50462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5047 Chris January <chris.january@arm.com>
5048
5049 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5050 types for Fortran.
5051
b6d03bb2
AB
50522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5053 Chris January <chris.january@arm.com>
5054 David Lecomber <david.lecomber@arm.com>
5055
5056 * f-exp.y (BINOP_INTRINSIC): New token.
5057 (exp): New parser rule handling BINOP_INTRINSIC.
5058 (f77_keywords): Add new builtin procedures.
5059 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5060 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5061 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5062 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5063 (print_unop_subexp_f): New function.
5064 (print_binop_subexp_f): New function.
5065 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5066 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5067 (dump_subexp_body_f): Likewise.
5068 (operator_check_f): Likewise.
5069 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5070 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5071
83228e93
AB
50722019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5073
5074 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5075 UNOP_KIND.
5076 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5077 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5078 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5079 (operator_length_f): New fuction.
5080 (print_subexp_f): New function.
5081 (op_name_f): New function.
5082 (dump_subexp_body_f): New function.
5083 (operator_check_f): New function.
5084 (exp_descriptor_f): Replace standard expression handling functions
5085 with new functions.
5086 * gdb/fortran-operator.def: New file.
5087 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5088 * gdb/std-operator.def: Remove UNOP_KIND.
5089
6fdcd7cc
AB
50902019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5091
5092 * std-operator.def: Remove unbalanced, stray double quote
5093 character.
5094
2e62ab40
AB
50952019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5096 Chris January <chris.january@arm.com>
5097 Daniel Everett <daniel.everett@arm.com>
5098 Nick Forrington <nick.forrington@arm.com>
5099 Richard Bunt <richard.bunt@arm.com>
5100
5101 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5102 of depth when printing anonymous structs or unions.
5103 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5104 Don't print either the top-level value, or the children if the
5105 max-depth is exceeded.
5106 (ppscm_print_children): When printing the key of a map, allow one
5107 extra level of depth.
5108 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5109 print either the top-level value, or the children if the max-depth
5110 is exceeded.
5111 (print_children): When printing the key of a map, allow one extra
5112 level of depth.
5113 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5114 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5115 (user_print_options): Initialise max_depth field.
5116 (val_print_scalar_or_string_type_p): New function.
5117 (val_print): Check to see if the max depth has been reached.
5118 (val_print_check_max_depth): Define new function.
5119 (show_print_max_depth): New function.
5120 (_initialize_valprint): Add 'print max-depth' option.
5121 * valprint.h (struct value_print_options) <max_depth>: New field.
5122 (val_print_check_max_depth): Declare new function.
5123 * NEWS: Document new feature.
5124
4be290b2
AB
51252019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5126
5127 * ada-lang.c (ada_language_defn): Initialise new field.
5128 * c-lang.c (c_is_string_type_p): New function.
5129 (c_language_defn): Initialise new field.
5130 (cplus_language_defn): Initialise new field.
5131 (asm_language_defn): Initialise new field.
5132 (minimal_language_defn): Initialise new field.
5133 * c-lang.h (c_is_string_type_p): Declare new function.
5134 * d-lang.c (d_language_defn): Initialise new field.
5135 * f-lang.c (f_is_string_type_p): New function.
5136 (f_language_defn): Initialise new field.
5137 * go-lang.c (go_is_string_type_p): New function.
5138 (go_language_defn): Initialise new field.
5139 * language.c (default_is_string_type_p): New function.
5140 (unknown_language_defn): Initialise new field.
5141 (auto_language_defn): Initialise new field.
5142 * language.h (struct language_defn) <la_is_string_type_p>: New
5143 member variable.
5144 (default_is_string_type_p): Declare new function.
5145 * m2-lang.c (m2_language_defn): Initialise new field.
5146 * objc-lang.c (objc_language_defn): Initialise new field.
5147 * opencl-lang.c (opencl_language_defn): Initialise new field.
5148 * p-lang.c (pascal_is_string_type_p): New function.
5149 (pascal_language_defn): Initialise new field.
5150 * rust-lang.c (rust_is_string_type_p): New function.
5151 (rust_language_defn): Initialise new field.
5152
721b08c6
AB
51532019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5154
5155 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5156 New field.
5157 * ada-lang.c (ada_language_defn): Initialise new field.
5158 * c-lang.c (c_language_defn): Likewise.
5159 (cplus_language_defn): Likewise.
5160 (asm_language_defn): Likewise.
5161 (minimal_language_defn): Likewise.
5162 * d-lang.c (d_language_defn): Likewise.
5163 * f-lang.c (f_language_defn): Likewise.
5164 * go-lang.c (go_language_defn): Likewise.
5165 * language.c (unknown_language_defn): Likewise.
5166 (auto_language_defn): Likewise.
5167 * m2-lang.c (m2_language_defn): Likewise.
5168 * objc-lang.c (objc_language_defn): Likewise.
5169 * opencl-lang.c (opencl_language_defn): Likewise.
5170 * p-lang.c (pascal_language_defn): Likewise.
5171 * rust-lang.c (rust_language_defn): Likewise.
5172
fc913e53
AB
51732019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5174
5175 * ada-lang.c (ada_is_character_type): Change return type to bool.
5176 (ada_is_string_type): Likewise.
5177 * ada-lang.h (ada_is_character_type): Update declaration
5178 (ada_is_string_type): Likewise.
5179
fa731fa0
PW
51802019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5181
5182 Support style in 'frame|thread apply'
5183
5184 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5185 * record.c (record_start, record_stop): Update callers of
5186 execute_command_to_string with false.
5187 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5188 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5189 methods.
5190 (class string_file): New constructor with term_out parameter.
5191 Override methods term_out and can_emit_style_escape. New member
5192 term_out.
5193 (class stdio_file): Override can_emit_style_escape.
5194 (class tee_file): Override term_out and can_emit_style_escape.
5195 * utils.h (can_emit_style_escape): Remove.
5196 * utils.c (can_emit_style_escape): Likewise.
5197 Update all callers of can_emit_style_escape (SOMESTREAM) to
5198 SOMESTREAM->can_emit_style_escape.
5199 * source-cache.c (source_cache::get_source_lines): Likewise.
5200 * stack.c (frame_apply_command_count): Call execute_command_to_string
5201 passing the term_out characteristic of the current gdb_stdout.
5202 * thread.c (thr_try_catch_cmd): Likewise.
5203 * top.c (execute_command_to_string): pass term_out parameter
5204 to construct the string_file for the command output.
5205 * ui-file.c (term_cli_styling): New function (most code moved
5206 from utils.c can_emit_style_escape).
5207 (string_file::string_file, string_file::can_emit_style_escape,
5208 stdio_file::can_emit_style_escape, tee_file::term_out,
5209 tee_file::can_emit_style_escape): New functions.
5210
136afab8
PW
52112019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5212
5213 * NEWS: Mention the new set|show may-call-functions.
5214 * infcall.c (may_call_functions_p): New variable.
5215 (show_may_call_functions_p): New function.
5216 (call_function_by_hand_dummy): Throws an error if not
5217 may-call-functions.
5218 (_initialize_infcall): Call add_setshow_boolean_cmd for
5219 may-call-functions.
5220
725cbb63
KS
52212019-04-25 Keith Seitz <keiths@redhat.com>
5222
5223 PR c++/24367
5224 * cp-support.c (inspect_type): Don't attempt substitutions
5225 of symbol with the same name.
5226
3d1cbb78
TT
52272019-04-25 Tom Tromey <tromey@adacore.com>
5228
5229 PR gdb/24475:
5230 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5231 static.
5232
94aeb44b
TT
52332019-04-25 Tom Tromey <tromey@adacore.com>
5234
5235 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5236 rvalue reference.
5237 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5238 (gdb_xml_parser::parse): Use std::move.
5239 * python/python-internal.h (gdbpy_convert_exception): Take a const
5240 reference.
5241 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5242 std::move.
5243 * python/py-utils.c (gdbpy_convert_exception): Take a const
5244 reference.
5245 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5246 Use std::move.
5247 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5248 Use std::move.
5249 * mi/mi-main.c (mi_print_exception): Take a const reference.
5250 * main.c (handle_command_errors): Take a const reference.
5251 * linespec.c (parse_linespec): Use std::move.
5252 * infcall.c (run_inferior_call): Use std::move.
5253 (call_function_by_hand_dummy): Use std::move.
5254 * exec.c (try_open_exec_file): Use std::move.
5255 * exceptions.h (exception_print, exception_fprintf)
5256 (exception_print_same): Update.
5257 * exceptions.c (print_exception, exception_print)
5258 (exception_fprintf, exception_print_same): Change parameters to
5259 const reference.
5260 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5261 * common/new-op.c: Use std::move.
5262 * common/common-exceptions.h (struct gdb_exception): Add move
5263 constructor.
5264 (struct gdb_exception_error, struct gdb_exception_quit, struct
5265 gdb_quit_bad_alloc): Change constructor to move constructor.
5266 (throw_exception): Change parameter to rvalue reference.
5267 * common/common-exceptions.c (throw_exception): Take rvalue
5268 reference.
5269 * cli/cli-interp.c (safe_execute_command): Use std::move.
5270 * breakpoint.c (insert_bp_location, location_to_sals): Use
5271 std::move.
5272
680d7fd5
TT
52732019-04-25 Tom Tromey <tromey@adacore.com>
5274
5275 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5276 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5277 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5278 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5279 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5280 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5281 guile/scm-value.c: Use unpack.
5282 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5283 gdbscm_gdb_exception.
5284 (gdbscm_throw_gdb_exception): Likewise.
5285 (struct gdbscm_gdb_exception): New.
5286 (unpack): New function.
5287 (gdbscm_wrap): Use unpack.
5288
c6fdd8b2
TT
52892019-04-25 Tom Tromey <tromey@adacore.com>
5290
5291 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5292 (gdb_rl_callback_handler): Use std::move.
5293 * common/common-exceptions.h (struct gdb_exception): Add move
5294 assignment operator.
5295 (throw_exception_sjlj): Change "exception" to const reference.
5296 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5297 (throw_exception_sjlj): Change "exception" to const reference.
5298
cc06b668
TT
52992019-04-25 Tom Tromey <tromey@adacore.com>
5300
5301 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5302 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5303 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5304 Update.
5305 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5306 Update.
5307 * mi/mi-interp.c (mi_interp::exec): Update.
5308 * linespec.c (parse_linespec): Update.
5309 * infcall.c (run_inferior_call): Update.
5310 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5311 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5312 (gdbscm_lookup_global_symbol): Update.
5313 * guile/scm-param.c (gdbscm_parameter_value): Update.
5314 * guile/scm-frame.c (gdbscm_frame_read_register)
5315 (gdbscm_frame_read_var): Update.
5316 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5317 * exec.c (try_open_exec_file): Update.
5318 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5319 (gdb_rl_callback_handler): Update.
5320 * common/common-exceptions.h (exception_none): Don't declare.
5321 * common/common-exceptions.c (exception_none): Don't define.
5322 (struct catcher) <exception>: Update.
5323 * cli/cli-interp.c (safe_execute_command): Update.
5324 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5325
cf532bd1
AT
53262019-04-25 Ali Tamur <tamur@google.com>
5327
5328 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5329 (read_attribute_value): Likewise.
5330 (dwarf2_read_addr_index): Update comment.
5331 (read_str_index): Add DW_FORM_strx.
5332 (dwarf2_string_attr): Likewise.
5333 (dwarf2_const_value_attr): Likewise.
5334 (dump_die_shallow): Likewise.
5335 (dwarf2_fetch_constant_bytes): Likewise.
5336 (skip_form_bytes): Likewise.
5337 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5338
82433e3e
SDJ
53392019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5340
5341 PR corefiles/11608
5342 PR corefiles/18187
5343 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5344 OFFSET. Verify if current mapping contains an ELF header.
5345 (linux_find_memory_regions_full): Adjust call to
5346 dump_mapping_p.
5347
723adb65
SL
53482019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5349 Kang Li <kanglictf@gmail.com>
5350
5351 PR gdb/21600
5352
5353 * dwarf2-frame.c (read_initial_length): Be consistent about using
5354 unsigned representation of length.
5355 (decode_frame_entry_1): Likewise. Check for wraparound of
5356 end pointer as well as buffer overflow.
5357
596179f7
SDJ
53582019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5359
5360 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5361 "vq".
5362
a59240a4
TT
53632019-04-24 Tom Tromey <tromey@adacore.com>
5364
5365 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5366
f872fdbb
AB
53672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5368
5369 * s12z-tdep.c (s12z_unwind_pc): Delete.
5370 (s12z_unwind_sp): Delete.
5371 (s12z_gdbarch_init): Don't register deleted functions with
5372 gdbarch.
5373
b614e6f3
AB
53742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5375
5376 * rl78-tdep.c (rl78_unwind_sp): Delete.
5377 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5378
14faed38
AB
53792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5380
5381 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5382 (xstormy16_unwind_pc): Delete.
5383 (xstormy16_dummy_id): Delete.
5384 (xstormy16_gdbarch_init): Don't register deleted functions with
5385 gdbarch.
5386
541aad8a
AB
53872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5388
5389 * vax-tdep.c (vax_unwind_pc): Delete.
5390 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5391
29222070
AB
53922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5393
5394 * v850-tdep.c (v850_unwind_sp): Delete.
5395 (v850_unwind_pc): Delete.
5396 (v850_dummy_id): Delete.
5397 (v850_gdbarch_init): Don't register deleted functions with
5398 gdbarch.
5399
0f534d76
AB
54002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5401
5402 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5403 (tilegx_unwind_pc): Delete.
5404 (tilegx_unwind_dummy_id): Delete.
5405 (tilegx_gdbarch_init): Don't register deleted functions with
5406 gdbarch.
5407
1ba7b7f9
AB
54082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5409
5410 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5411 (tic6x_dummy_id): Delete.
5412 (tic6x_gdbarch_init): Don't register deleted functions with
5413 gdbarch.
5414
d31f262c
AB
54152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5416
5417 * sparc-tdep.c (sparc_unwind_pc): Delete.
5418 (sparc32_gdbarch_init): Don't register deleted function with
5419 gdbarch.
5420
6d14d64d
AB
54212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5422
5423 * sh-tdep.c (sh_unwind_sp): Delete.
5424 (sh_unwind_pc): Delete.
5425 (sh_dummy_id): Delete.
5426 (sh_gdbarch_init): Don't register deleted functions with
5427 gdbarch.
5428
a40dde9d
AB
54292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5430
5431 * score-tdep.c (score_unwind_sp): Delete.
5432 (score_unwind_pc): Delete.
5433 (score_dummy_id): Delete.
5434 (score_gdbarch_init): Don't register deleted functions with
5435 gdbarch.
5436
47c47d69
AB
54372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5438
5439 * rx-tdep.c (rx_unwind_pc): Delete.
5440 (rx_unwind_sp): Delete.
5441 (rx_dummy_id): Delete.
5442 (rx_gdbarch_init): Don't register deleted functions with
5443 gdbarch. Update comment.
5444
833a4480
AB
54452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5446
5447 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5448 (rs6000_dummy_id): Delete.
5449 (rs6000_gdbarch_init): Don't register deleted functions with
5450 gdbarch.
5451
3f2cef49
AB
54522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5453
5454 * or1k-tdep.c (or1k_dummy_id): Delete.
5455 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5456
96acf884
AB
54572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5458
5459 * nios2-tdep.c (nios2_dummy_id): Delete.
5460 (nios2_unwind_sp): Delete.
5461 (nios2_gdbarch_init): Don't register deleted functions with
5462 gdbarch.
5463
ca0ab0aa
AB
54642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5465
5466 * nds32-tdep.c (nds32_dummy_id): Delete.
5467 (nds32_unwind_pc): Delete.
5468 (nds32_unwind_sp): Delete.
5469 (nds32_gdbarch_init): Don't register deleted functions with
5470 gdbarch.
5471
c8259044
AB
54722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5473
5474 * msp430-tdep.c (msp430_unwind_pc): Delete.
5475 (msp430_unwind_sp): Delete.
5476 (msp430_dummy_id): Delete.
5477 (msp430_gdbarch_init): Don't register deleted functions with
5478 gdbarch.
5479
27f113c8
AB
54802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5481
5482 * moxie-tdep.c (moxie_unwind_sp): Delete.
5483 (moxie_unwind_pc): Delete.
5484 (moxie_dummy_id): Delete.
5485 (moxie_gdbarch_init): Don't register deleted functions with
5486 gdbarch.
5487
aee6c3cd
AB
54882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5489
5490 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5491 (mn10300_unwind_pc): Delete.
5492 (mn10300_unwind_sp): Delete.
5493 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5494 mn10300_unwind_sp.
5495 (mn10300_frame_unwind_init): Don't register deleted functions with
5496 gdbarch.
5497
8e2b5aea
AB
54982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5499
5500 * mep-tdep.c (mep_unwind_pc): Delete.
5501 (mep_unwind_sp): Delete.
5502 (mep_dummy_id): Delete.
5503 (mep_gdbarch_init): Don't register deleted functions with
5504 gdbarch.
5505
43cf3ede
AB
55062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5507
5508 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5509 (m68hc11_unwind_sp): Delete.
5510 (m68hc11_gdbarch_init): Don't register deleted functions with
5511 gdbarch.
5512
5e79b7bb
AB
55132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5514
5515 * m32r-tdep.c (m32r_unwind_sp): Delete.
5516 (m32r_unwind_pc): Delete.
5517 (m32r_dummy_id): Delete.
5518 (m32r_gdbarch_init): Don't register deleted functions with
5519 gdbarch.
5520
89b268d8
AB
55212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5522
5523 * m32c-tdep.c (m32c_unwind_pc): Delete.
5524 (m32c_unwind_sp): Delete.
5525 (m32c_dummy_id): Delete.
5526 (m32c_gdbarch_init): Don't register deleted functions with
5527 gdbarch.
5528
946c28d2
AB
55292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5530
5531 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5532 (lm32_unwind_pc): Delete.
5533 (lm32_dummy_id): Delete.
5534 (lm32_gdbarch_init): Don't register deleted functions with
5535 gdbarch.
5536
bf12844a
AB
55372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5538
5539 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5540 (iq2000_unwind_pc): Delete.
5541 (iq2000_dummy_id): Delete.
5542 (iq2000_gdbarch_init): Don't register deleted functions with
5543 gdbarch.
5544
ecbc06d2
AB
55452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5546
5547 * nds32-tdep.c (nds32_type_align): Delete.
5548 (nds32_push_dummy_call): Use type_align instead.
5549
030197b4
AB
55502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5551
5552 * arm-tdep.c (arm_type_align): Only handle vector override case.
5553 (arm_push_dummy_call): Use type_align.
5554 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5555
b907456c
AB
55562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5557
5558 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5559 case.
5560 (pass_on_stack): Use type_align.
5561 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5562 function.
5563
9e97ba43
TT
55642019-04-23 Tom Tromey <tromey@adacore.com>
5565
5566 * dwarf2read.c (line_header::file_name_at): Remove unused
5567 overload.
5568
6892f601
TV
55692019-04-23 Tom de Vries <tdevries@suse.de>
5570
5571 PR gdb/24438
5572 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5573 invocation.
5574
336d760d
AT
5575
55762019-03-27 Ali Tamur <tamur@google.com>
5577
5578 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5579 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5580 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5581 (dwarf_expr_context::get_addr_index): Likewise
5582 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5583 (symbol_needs_eval_context::get_addr_index): Likewise
5584 (disassemble_dwarf_expression): Add DW_OP_addrx
5585 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5586 (read_cutu_die_from_dwo): Update comment
5587 (skip_one_die): Add DW_FORM_addrx
5588 (read_attribute_value): Likewise
5589 (var_decode_location): Add DW_OP_addrx
5590 (dwarf2_const_value_attr): Add DW_FORM_addrx
5591 (dump_die_shallow): Likewise
5592 (dwarf2_fetch_constant_bytes): Likewise
5593 (decode_locdesc): Add DW_OP_addrx
5594 (skip_form_bytes): Add DW_FORM_addrx
5595
ad9d13f8
AT
55962019-04-22 Ali Tamur <tamur@google.com>
5597
5598 * MAINTAINERS (Write After Approval): Add self.
5599
d70cc3ba
SM
56002019-04-22 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5603 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5604 (open_symbol_file_object): Likewise.
5605 (svr4_default_sos): Add info parameter.
5606 (svr4_read_so_list): Likewise.
5607 (svr4_current_sos_direct): Adjust functions calls to pass down
5608 info.
5609 (svr4_current_sos_1): Add info parameter.
5610 (svr4_current_sos): Call get_svr4_info, pass info down to
5611 svr4_current_sos_1.
5612 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5613 get_svr4_info.
5614 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5615 get_svr4_info.
5616 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5617 to get_svr4_info.
5618 (probes_table_remove_objfile_probes): Likewise.
5619 (register_solib_event_probe): Add info parameter.
5620 (solist_update_incremental): Pass info parameter down to
5621 svr4_read_so_list.
5622 (disable_probes_interface): Add info parameter.
5623 (svr4_handle_solib_event): Pass current_program_space to
5624 get_svr4_info. Adjust disable_probes_interface cleanup.
5625 (svr4_create_probe_breakpoints): Add info parameter, pass it
5626 down to register_solib_event_probe.
5627 (svr4_create_solib_event_breakpoints): Add info parameter,
5628 pass it down to svr4_create_probe_breakpoints.
5629 (enable_break): Pass info down to
5630 svr4_create_solib_event_breakpoints.
5631 (svr4_solib_create_inferior_hook): Pass current_program_space to
5632 get_svr4_info.
5633 (svr4_clear_solib): Likewise.
5634
7905fc35
PA
56352019-04-22 Pedro Alves <palves@redhat.com>
5636
5637 * solib-svr4.c (svr4_free_objfile_observer): New.
5638 (probe_and_action::objfile): New field.
5639 (probes_table_htab_remove_objfile_probes)
5640 (probes_table_remove_objfile_probes): New functions.
5641 (register_solib_event_probe): Add 'objfile' parameter. Store it
5642 in the new probe_and_action. Don't store the probe in 'lookup'.
5643 (svr4_create_probe_breakpoints): Pass objfile to
5644 register_solib_event_probe.
5645 (_initialize_svr4_solib): Register a free_objfile observer.
5646
fb881986
TT
56472019-04-19 Tom Tromey <tom@tromey.com>
5648
5649 * common/queue.h: Remove.
5650
8732db6c
TT
56512019-04-19 Tom Tromey <tom@tromey.com>
5652
5653 * event-loop.c: Don't include "common/queue.h".
5654
97dfbadd
TT
56552019-04-19 Tom Tromey <tom@tromey.com>
5656
5657 * remote.c (remote_target): Use delete.
5658 * remote-notif.h: Include <list>, not "common/queue.h".
5659 (notif_client_p): Remove typedef.
5660 (remote_notif_state): Add constructor, destructor, initializer.
5661 <notif_queue>: Now a std::list.
5662 (remote_notif_state_xfree): Don't declare.
5663 * remote-notif.c (remote_notif_process, handle_notification)
5664 (remote_notif_state_allocate): Update.
5665 (~remote_notif_state): Rename from remote_notif_state_xfree.
5666
cf250e36
TT
56672019-04-19 Tom Tromey <tom@tromey.com>
5668
5669 * symfile.c (reread_symbols): Update.
5670 * objfiles.c (objfile_register_static_link)
5671 (objfile_lookup_static_link): Update
5672 (~objfile) Don't delete static_links.
5673 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5674
61f4b350
TT
56752019-04-19 Tom Tromey <tom@tromey.com>
5676
5677 * type-stack.h (struct type_stack) <insert>: Constify string.
5678 * type-stack.c (type_stack::insert): Constify string.
5679 * gdbtypes.h (lookup_template_type): Update.
5680 (address_space_name_to_int): Update.
5681 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5682 const.
5683 (lookup_template_type): Make name const.
5684 * c-exp.y: Update rules.
5685 (lex_one_token, classify_name, classify_inner_name)
5686 (c_print_token): Update.
5687 * p-exp.y: Update rules.
5688 (yylex): Update.
5689 * f-exp.y: Update rules.
5690 (yylex): Update.
5691 * d-exp.y: Update rules.
5692 (lex_one_token, classify_name, classify_inner_name): Update.
5693 * parse.c (write_dollar_variable, copy_name): Return std::string.
5694 * parser-defs.h (copy_name): Change return type.
5695 * m2-exp.y: Update rules.
5696 (yylex): Update.
5697 * go-exp.y (lex_one_token): Update.
5698 Update rules.
5699 (classify_unsafe_function, classify_packaged_name)
5700 (classify_name, yylex): Update.
5701
189b8c2e
ST
57022019-04-19 Sergei Trofimovich <siarheit@google.com>
5703
5704 * configure.ac: add --enable-source-highlight switch.
5705 * configure: Regenerate.
5706 * top.c (print_gdb_version): plumb --enable-source-highlight
5707 status to "show configuration".
5708
8ecb59f8
TT
57092019-04-19 Tom Tromey <tromey@adacore.com>
5710
5711 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5712 Check ADA_TYPE_P.
5713 (empty_record, ada_template_to_fixed_record_type_1)
5714 (template_to_static_fixed_type)
5715 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5716 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5717 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5718 macros.
5719
62160ec9
TT
57202019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5721
5722 PR symtab/24423:
5723 * source.c (print_source_lines_base): Advance "iter" when a
5724 control character is seen.
5725
f2ae8bc8
PW
57262019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5727
5728 * inferior.h (struct infcall_suspend_state_deleter):
5729 Catch exception in destructor to avoid crash.
5730
d563b953
PW
57312019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5732
5733 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5734 close to the add_com "shell".
5735
dc34c897
TT
57362019-04-18 Tom Tromey <tromey@adacore.com>
5737
5738 * process-stratum-target.h (class process_stratum_target)
5739 <stratum>: Add "final".
5740
a12e5744
TT
57412019-04-17 Tom Tromey <tromey@adacore.com>
5742
5743 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5744 against nullptr before use.
5745
a7e559cc
AH
57462019-04-17 Alan Hayward <alan.hayward@arm.com>
5747
5748 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5749
c01660c6
AB
57502019-04-17 Jim Wilson <jimw@sifive.com>
5751 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5754 code read might fail, assume 4-byte breakpoint in that case.
5755
4aa866af
LS
57562019-04-15 Leszek Swirski <leszeks@google.com>
5757
5758 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5759 rather than a hand-rolled POD check when checking for forced MEMORY
5760 classification.
5761
48574d91
AH
57622019-04-15 Alan Hayward <alan.hayward@arm.com>
5763
5764 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5765 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5766 function.
5767 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5768 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5769 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5770 declaration.
5771
4da037ef
AH
57722019-04-15 Alan Hayward <alan.hayward@arm.com>
5773
5774 * aarch64-linux-nat.c
5775 (aarch64_linux_nat_target::thread_architecture): Add override.
5776 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5777 each VQ.
5778
ccb8d7e8
AH
57792019-04-15 Alan Hayward <alan.hayward@arm.com>
5780
5781 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5782
35add35e
AB
57832019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5784
5785 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5786 target types of size 96-bits, add some additional comments, and
5787 check that the builtin type we found was the correct size.
5788
51196bbc
EZ
57892019-04-12 Eli Zaretskii <eliz@gnu.org>
5790
5791 * utils.c (prompt_for_continue): Don't restore the styling at the
5792 end, as applied_style has the wrong value. This fixes styling in
5793 long lists of file names that are interrupted by the "Continue?"
5794 prompt.
5795
62253a61
AB
57962019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5797
5798 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5799 * c-lang.c (c_language_defn): Likewise.
5800 (cplus_language_defn): Likewise.
5801 (asm_language_defn): Likewise.
5802 (minimal_language_defn): Likewise.
5803 * d-lang.c (d_language_defn): Likewise.
5804 * f-lang.c (f_language_defn): Likewise.
5805 * go-lang.c (go_language_defn): Likewise.
5806 * language.c (unknown_language_defn): Likewise.
5807 (auto_language_defn): Likewise.
5808 * language.h (struct language_defn): Remove la_magic field.
5809 (LANG_MAGIC): Delete.
5810 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5811 * objc-lang.c (objc_language_defn): Likewise.
5812 * opencl-lang.c (opencl_language_defn): Likewise.
5813 * p-lang.c (pascal_language_defn): Likewise.
5814 * rust-lang.c (rust_language_defn): Likewise.
5815
a9158a86
AB
58162019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5817
5818 * riscv-tdep.c (riscv_type_align): New function.
5819 (riscv_type_alignment): Delete.
5820 (riscv_arg_location): Use 'type_align'.
5821 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5822
41077b66
AB
58232019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5824
5825 * gdbtypes.c (type_align): A struct with no non-static fields also
5826 has alignment of 1.
5827
9f0272f8
AB
58282019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5829
5830 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5831 component to 0.
5832 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5833 member.
5834 (riscv_struct_info::analyse): New implementation using new
5835 analyse_inner member function.
5836 (riscv_struct_info::field_offset): New member function.
5837 (riscv_struct_info::m_offsets): New member variable.
5838 (riscv_struct_info::analyse_inner): New private member function,
5839 takes the old implementation of riscv_struct_info::analyse but
5840 extended to track field offsets.
5841 (riscv_call_arg_struct): Update the struct folding special cases
5842 to handle cases where empty C++ structs, which are non-zero
5843 length, are found.
5844 (riscv_arg_location): Initialise the length of each location, a
5845 non-zero length now indicates the location is in use.
5846 (riscv_push_dummy_call): Allow for the first location having a
5847 non-zero offset when setting up arguments.
5848 (riscv_return_value): Likewise, but for return values.
5849
02cf60c7
TT
58502019-04-11 Tom Tromey <tromey@adacore.com>
5851
5852 * utils.c (internal_vproblem): Make "msg" const.
5853
68811f8f
AH
58542019-04-11 Alan Hayward <alan.hayward@arm.com>
5855
5856 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5857 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5858 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5859 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5860
3f52fdbc
KB
58612019-04-10 Kevin Buettner <kevinb@redhat.com>
5862
5863 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5864 function.
5865 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5866 of amd64_collect_native_gregset.
5867 (amd64_linux_nat_target::store_registers): Likewise.
5868
e9ad22ee
TT
58692019-04-10 Tom Tromey <tom@tromey.com>
5870
5871 * symtab.c (lookup_global_symbol_from_objfile)
5872 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5873 * objfiles.h (class separate_debug_iterator): New.
5874 (class separate_debug_range): New.
5875 (struct objfile) <separate_debug_objfiles>: New method.
5876 (objfile_separate_debug_iterate): Don't declare.
5877 * objfiles.c (separate_debug_iterator::operator++): Rename from
5878 objfile_separate_debug_iterate.
5879 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5880 iterator.
5881 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5882 iterator.
5883
ee371134
TT
58842019-04-10 Tom Tromey <tom@tromey.com>
5885
5886 * symfile.c (reread_symbols): Remove old comment.
5887 * objfiles.c (free_all_objfiles): Fix a typo.
5888
bf227d61
TT
58892019-04-10 Tom Tromey <tom@tromey.com>
5890
5891 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5892 * minsyms.c (lookup_minimal_symbol): Use foreach.
5893 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5894 (lookup_minimal_symbol_solib_trampoline): Likewise.
5895 * symfile.c (reread_symbols): Use foreach.
5896
8dc433a0
TT
58972019-04-09 Ivan Begert <ivanbegert@gmail.com>
5898 Tom Tromey <tromey@adacore.com>
5899
5900 PR rust/24414:
5901 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5902 (rust_lex_int_test): Change "value" to be LONGEST.
5903 (rust_lex_tests): Add test for long integer literal.
5904
9ab8741a
TT
59052019-04-09 Tom Tromey <tromey@adacore.com>
5906
5907 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5908 to bool.
5909 (extended_remote_target::attach): Update.
5910 (remote_target::remote_notice_new_inferior): Update.
5911 (remote_target::add_current_inferior_and_thread): Update.
5912 * inferior.c (exit_inferior_1): Use "false".
5913 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5914
e242fd12
SM
59152019-04-09 Simon Marchi <simon.marchi@efficios.com>
5916
9ca1957f 5917 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
5918 the "start" command.
5919
2b0c8b01
KB
59202019-04-08 Kevin Buettner <kevinb@redhat.com>
5921
5922 * python/py-inferior.c (infpy_thread_from_thread_handle):
5923 Adjust comments to reflect renaming of thread_from_thread_handle
5924 to thread_from_handle. Adjust keywords. Fix type error message.
5925 (inferior_object_methods): Add thread_from_handle. Retain
5926 thread_from_thread_handle, but mark it as deprecated.
5927
50a82723
KB
59282019-04-08 Kevin Buettner <kevinb@redhat.com>
5929
5930 * gdbthread.h (find_thread_by_handle): Revise declaration.
5931 * thread.c (find_thread_by_handle): Likewise. Adjust
5932 implementation too.
5933 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5934 support for buffer objects as handles.
5935
cf63b016
KB
59362019-04-08 Kevin Buettner <kevinb@redhat.com>
5937
5938 * python/py-infthread.c (thpy_thread_handle): New function.
5939 (thread_object_methods): Register thpy_thread_handle.
5940
3d6c6204
KB
59412019-04-08 Kevin Buettner <kevinb@redhat.com>
5942
5943 * gdbthread.h (thread_to_thread_handle): Declare.
5944 * thread.c (gdbtypes.h): Include.
5945 (thread_to_thread_handle): New function.
5946
5947 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5948 (target_thread_info_to_thread_handle): Declare.
5949 * target.c (target_thread_info_to_thread_handle): New function.
5950 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5951 * target-delegates.c: Regenerate.
5952
5953 * linux-thread-db.c (class thread_db_target): Add method
5954 thread_info_to_thread_handle.
5955 (thread_db_target::thread_info_to_thread_handle): Define.
5956 * remote.c (class remote_target): Add new method
5957 thread_info_to_thread_handle.
5958 (remote_target::thread_info_to_thread_handle): Define.
5959
56be6ea8
PA
59602019-04-08 Pedro Alves <palves@redhat.com>
5961
5962 * common/common-exceptions.c (throw_exception): Don't create
5963 named object to throw; throw directly.
5964 (throw_it): Likewise. Don't initialize gdb_exception::message
5965 here, with new; pass FMT and AP to the ctor instead.
5966 * common/common-exceptions.h: Include <string>.
5967 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5968 const char *, va_list)): New ctor. Use std::make_shared.
5969 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5970 errors)): Delete.
5971 (gdb_exception_error::gdb_exception_error(enum errors, const char
5972 *, va_list)): New.
5973 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5974 Add assertion.
5975 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5976 errors)): Delete.
5977 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5978 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5979 Add assertion.
5980
eedc3f4f
TT
59812019-04-08 Tom Tromey <tom@tromey.com>
5982
5983 * valops.c (value_rtti_indirect_type): Replace throw_exception
5984 with throw.
5985 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5986 with throw.
5987 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5988 throw.
5989 * target.c (target_translate_tls_address): Replace throw_exception
5990 with throw.
5991 * stack.c (frame_apply_command_count): Replace throw_exception
5992 with throw.
5993 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5994 throw.
5995 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5996 with throw.
5997 * rs6000-tdep.c (rs6000_frame_cache)
5998 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5999 * remote.c: Replace throw_exception with throw.
6000 * record-full.c (record_full_message, record_full_wait_1)
6001 (record_full_restore): Replace throw_exception with throw.
6002 * record-btrace.c:
6003 (get_thread_current_frame_id, record_btrace_start_replaying)
6004 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6005 (cmd_record_btrace_start): Replace throw_exception with throw.
6006 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6007 throw.
6008 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6009 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6010 * linespec.c:
6011 (find_linespec_symbols): Replace throw_exception with throw.
6012 * infrun.c (displaced_step_prepare, resume): Replace
6013 throw_exception with throw.
6014 * infcmd.c (post_create_inferior): Replace throw_exception with
6015 throw.
6016 * inf-loop.c (inferior_event_handler): Replace throw_exception
6017 with throw.
6018 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6019 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6020 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6021 (get_prev_frame_always, get_frame_pc_if_available)
6022 (get_frame_address_in_block_if_available, get_frame_language):
6023 Replace throw_exception with throw.
6024 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6025 throw_exception with throw.
6026 * eval.c (fetch_subexp_value, evaluate_var_value)
6027 (evaluate_funcall, evaluate_subexp_standard): Replace
6028 throw_exception with throw.
6029 * dwarf2loc.c (call_site_find_chain)
6030 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6031 Replace throw_exception with throw.
6032 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6033 with throw.
6034 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6035 throw.
6036 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6037 * completer.c (complete_line_internal): Replace throw_exception
6038 with throw.
6039 * compile/compile-object-run.c (compile_object_run): Replace
6040 throw_exception with throw.
6041 * cli/cli-script.c (process_next_line): Replace throw_exception
6042 with throw.
6043 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6044 (btrace_enable, btrace_maint_update_pt_packets): Replace
6045 throw_exception with throw.
6046 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6047 throw_exception with throw.
6048 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6049 throw_exception with throw.
6050 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6051 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6052 * aarch64-tdep.c (aarch64_make_prologue_cache)
6053 (aarch64_make_stub_cache): Replace throw_exception with throw.
6054
26003a20
TT
60552019-04-08 Tom Tromey <tom@tromey.com>
6056
6057 * common/common-exceptions.c (throw_exception): Rename from
6058 throw_exception_cxx. Remove old copy. Make argument const.
6059 (throw_it): Create and throw exception objects directly.
6060 * common/common-exceptions.h (throw_exception): Make argument
6061 const.
6062 (struct gdb_exception_error): Add constructor.
6063 (struct gdb_exception_quit): Add constructor.
6064
d272eb37
TT
60652019-04-08 Tom Tromey <tom@tromey.com>
6066
6067 * common/common-exceptions.h (exception_rethrow): Don't declare.
6068 (TRY_SJLJ): Update comment.
6069 (TRY, CATCH, END_CATCH): Remove.
6070 * common/common-exceptions.c (exception_rethrow): Remove.
6071
230d2906
TT
60722019-04-08 Tom Tromey <tom@tromey.com>
6073
6074 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6075 Remove.
6076 (gdb_exception_error): Rename from
6077 gdb_exception_RETURN_MASK_ERROR.
6078 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6079 (gdb_quit_bad_alloc): Update.
6080 * aarch64-tdep.c: Update.
6081 * ada-lang.c: Update.
6082 * ada-typeprint.c: Update.
6083 * ada-valprint.c: Update.
6084 * amd64-tdep.c: Update.
6085 * arch-utils.c: Update.
6086 * break-catch-throw.c: Update.
6087 * breakpoint.c: Update.
6088 * btrace.c: Update.
6089 * c-varobj.c: Update.
6090 * cli/cli-cmds.c: Update.
6091 * cli/cli-interp.c: Update.
6092 * cli/cli-script.c: Update.
6093 * common/common-exceptions.c: Update.
6094 * common/new-op.c: Update.
6095 * common/selftest.c: Update.
6096 * compile/compile-c-symbols.c: Update.
6097 * compile/compile-cplus-symbols.c: Update.
6098 * compile/compile-object-load.c: Update.
6099 * compile/compile-object-run.c: Update.
6100 * completer.c: Update.
6101 * corelow.c: Update.
6102 * cp-abi.c: Update.
6103 * cp-support.c: Update.
6104 * cp-valprint.c: Update.
6105 * darwin-nat.c: Update.
6106 * disasm-selftests.c: Update.
6107 * dtrace-probe.c: Update.
6108 * dwarf-index-cache.c: Update.
6109 * dwarf-index-write.c: Update.
6110 * dwarf2-frame-tailcall.c: Update.
6111 * dwarf2-frame.c: Update.
6112 * dwarf2loc.c: Update.
6113 * dwarf2read.c: Update.
6114 * eval.c: Update.
6115 * event-loop.c: Update.
6116 * event-top.c: Update.
6117 * exec.c: Update.
6118 * f-valprint.c: Update.
6119 * fbsd-tdep.c: Update.
6120 * frame-unwind.c: Update.
6121 * frame.c: Update.
6122 * gdbtypes.c: Update.
6123 * gnu-v3-abi.c: Update.
6124 * guile/guile-internal.h: Update.
6125 * guile/scm-block.c: Update.
6126 * guile/scm-breakpoint.c: Update.
6127 * guile/scm-cmd.c: Update.
6128 * guile/scm-disasm.c: Update.
6129 * guile/scm-frame.c: Update.
6130 * guile/scm-lazy-string.c: Update.
6131 * guile/scm-math.c: Update.
6132 * guile/scm-param.c: Update.
6133 * guile/scm-ports.c: Update.
6134 * guile/scm-pretty-print.c: Update.
6135 * guile/scm-symbol.c: Update.
6136 * guile/scm-symtab.c: Update.
6137 * guile/scm-type.c: Update.
6138 * guile/scm-value.c: Update.
6139 * i386-linux-tdep.c: Update.
6140 * i386-tdep.c: Update.
6141 * inf-loop.c: Update.
6142 * infcall.c: Update.
6143 * infcmd.c: Update.
6144 * infrun.c: Update.
6145 * jit.c: Update.
6146 * language.c: Update.
6147 * linespec.c: Update.
6148 * linux-fork.c: Update.
6149 * linux-nat.c: Update.
6150 * linux-tdep.c: Update.
6151 * linux-thread-db.c: Update.
6152 * main.c: Update.
6153 * mi/mi-cmd-break.c: Update.
6154 * mi/mi-cmd-stack.c: Update.
6155 * mi/mi-interp.c: Update.
6156 * mi/mi-main.c: Update.
6157 * objc-lang.c: Update.
6158 * p-valprint.c: Update.
6159 * parse.c: Update.
6160 * ppc-linux-tdep.c: Update.
6161 * printcmd.c: Update.
6162 * python/py-arch.c: Update.
6163 * python/py-breakpoint.c: Update.
6164 * python/py-cmd.c: Update.
6165 * python/py-finishbreakpoint.c: Update.
6166 * python/py-frame.c: Update.
6167 * python/py-framefilter.c: Update.
6168 * python/py-gdb-readline.c: Update.
6169 * python/py-inferior.c: Update.
6170 * python/py-infthread.c: Update.
6171 * python/py-lazy-string.c: Update.
6172 * python/py-linetable.c: Update.
6173 * python/py-objfile.c: Update.
6174 * python/py-param.c: Update.
6175 * python/py-prettyprint.c: Update.
6176 * python/py-progspace.c: Update.
6177 * python/py-record-btrace.c: Update.
6178 * python/py-record.c: Update.
6179 * python/py-symbol.c: Update.
6180 * python/py-type.c: Update.
6181 * python/py-unwind.c: Update.
6182 * python/py-utils.c: Update.
6183 * python/py-value.c: Update.
6184 * python/python.c: Update.
6185 * record-btrace.c: Update.
6186 * record-full.c: Update.
6187 * remote-fileio.c: Update.
6188 * remote.c: Update.
6189 * riscv-tdep.c: Update.
6190 * rs6000-aix-tdep.c: Update.
6191 * rs6000-tdep.c: Update.
6192 * rust-exp.y: Update.
6193 * rust-lang.c: Update.
6194 * s390-tdep.c: Update.
6195 * selftest-arch.c: Update.
6196 * solib-dsbt.c: Update.
6197 * solib-frv.c: Update.
6198 * solib-spu.c: Update.
6199 * solib-svr4.c: Update.
6200 * solib.c: Update.
6201 * sparc64-linux-tdep.c: Update.
6202 * stack.c: Update.
6203 * symfile-mem.c: Update.
6204 * symmisc.c: Update.
6205 * target.c: Update.
6206 * thread.c: Update.
6207 * top.c: Update.
6208 * tracefile-tfile.c: Update.
6209 * tui/tui.c: Update.
6210 * typeprint.c: Update.
6211 * unittests/cli-utils-selftests.c: Update.
6212 * unittests/parse-connection-spec-selftests.c: Update.
6213 * valops.c: Update.
6214 * valprint.c: Update.
6215 * value.c: Update.
6216 * varobj.c: Update.
6217 * windows-nat.c: Update.
6218 * x86-linux-nat.c: Update.
6219 * xml-support.c: Update.
6220
a70b8144
TT
62212019-04-08 Tom Tromey <tom@tromey.com>
6222
6223 * xml-support.c: Use C++ exception handling.
6224 * x86-linux-nat.c: Use C++ exception handling.
6225 * windows-nat.c: Use C++ exception handling.
6226 * varobj.c: Use C++ exception handling.
6227 * value.c: Use C++ exception handling.
6228 * valprint.c: Use C++ exception handling.
6229 * valops.c: Use C++ exception handling.
6230 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6231 handling.
6232 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6233 * typeprint.c: Use C++ exception handling.
6234 * tui/tui.c: Use C++ exception handling.
6235 * tracefile-tfile.c: Use C++ exception handling.
6236 * top.c: Use C++ exception handling.
6237 * thread.c: Use C++ exception handling.
6238 * target.c: Use C++ exception handling.
6239 * symmisc.c: Use C++ exception handling.
6240 * symfile-mem.c: Use C++ exception handling.
6241 * stack.c: Use C++ exception handling.
6242 * sparc64-linux-tdep.c: Use C++ exception handling.
6243 * solib.c: Use C++ exception handling.
6244 * solib-svr4.c: Use C++ exception handling.
6245 * solib-spu.c: Use C++ exception handling.
6246 * solib-frv.c: Use C++ exception handling.
6247 * solib-dsbt.c: Use C++ exception handling.
6248 * selftest-arch.c: Use C++ exception handling.
6249 * s390-tdep.c: Use C++ exception handling.
6250 * rust-lang.c: Use C++ exception handling.
6251 * rust-exp.y: Use C++ exception handling.
6252 * rs6000-tdep.c: Use C++ exception handling.
6253 * rs6000-aix-tdep.c: Use C++ exception handling.
6254 * riscv-tdep.c: Use C++ exception handling.
6255 * remote.c: Use C++ exception handling.
6256 * remote-fileio.c: Use C++ exception handling.
6257 * record-full.c: Use C++ exception handling.
6258 * record-btrace.c: Use C++ exception handling.
6259 * python/python.c: Use C++ exception handling.
6260 * python/py-value.c: Use C++ exception handling.
6261 * python/py-utils.c: Use C++ exception handling.
6262 * python/py-unwind.c: Use C++ exception handling.
6263 * python/py-type.c: Use C++ exception handling.
6264 * python/py-symbol.c: Use C++ exception handling.
6265 * python/py-record.c: Use C++ exception handling.
6266 * python/py-record-btrace.c: Use C++ exception handling.
6267 * python/py-progspace.c: Use C++ exception handling.
6268 * python/py-prettyprint.c: Use C++ exception handling.
6269 * python/py-param.c: Use C++ exception handling.
6270 * python/py-objfile.c: Use C++ exception handling.
6271 * python/py-linetable.c: Use C++ exception handling.
6272 * python/py-lazy-string.c: Use C++ exception handling.
6273 * python/py-infthread.c: Use C++ exception handling.
6274 * python/py-inferior.c: Use C++ exception handling.
6275 * python/py-gdb-readline.c: Use C++ exception handling.
6276 * python/py-framefilter.c: Use C++ exception handling.
6277 * python/py-frame.c: Use C++ exception handling.
6278 * python/py-finishbreakpoint.c: Use C++ exception handling.
6279 * python/py-cmd.c: Use C++ exception handling.
6280 * python/py-breakpoint.c: Use C++ exception handling.
6281 * python/py-arch.c: Use C++ exception handling.
6282 * printcmd.c: Use C++ exception handling.
6283 * ppc-linux-tdep.c: Use C++ exception handling.
6284 * parse.c: Use C++ exception handling.
6285 * p-valprint.c: Use C++ exception handling.
6286 * objc-lang.c: Use C++ exception handling.
6287 * mi/mi-main.c: Use C++ exception handling.
6288 * mi/mi-interp.c: Use C++ exception handling.
6289 * mi/mi-cmd-stack.c: Use C++ exception handling.
6290 * mi/mi-cmd-break.c: Use C++ exception handling.
6291 * main.c: Use C++ exception handling.
6292 * linux-thread-db.c: Use C++ exception handling.
6293 * linux-tdep.c: Use C++ exception handling.
6294 * linux-nat.c: Use C++ exception handling.
6295 * linux-fork.c: Use C++ exception handling.
6296 * linespec.c: Use C++ exception handling.
6297 * language.c: Use C++ exception handling.
6298 * jit.c: Use C++ exception handling.
6299 * infrun.c: Use C++ exception handling.
6300 * infcmd.c: Use C++ exception handling.
6301 * infcall.c: Use C++ exception handling.
6302 * inf-loop.c: Use C++ exception handling.
6303 * i386-tdep.c: Use C++ exception handling.
6304 * i386-linux-tdep.c: Use C++ exception handling.
6305 * guile/scm-value.c: Use C++ exception handling.
6306 * guile/scm-type.c: Use C++ exception handling.
6307 * guile/scm-symtab.c: Use C++ exception handling.
6308 * guile/scm-symbol.c: Use C++ exception handling.
6309 * guile/scm-pretty-print.c: Use C++ exception handling.
6310 * guile/scm-ports.c: Use C++ exception handling.
6311 * guile/scm-param.c: Use C++ exception handling.
6312 * guile/scm-math.c: Use C++ exception handling.
6313 * guile/scm-lazy-string.c: Use C++ exception handling.
6314 * guile/scm-frame.c: Use C++ exception handling.
6315 * guile/scm-disasm.c: Use C++ exception handling.
6316 * guile/scm-cmd.c: Use C++ exception handling.
6317 * guile/scm-breakpoint.c: Use C++ exception handling.
6318 * guile/scm-block.c: Use C++ exception handling.
6319 * guile/guile-internal.h: Use C++ exception handling.
6320 * gnu-v3-abi.c: Use C++ exception handling.
6321 * gdbtypes.c: Use C++ exception handling.
6322 * frame.c: Use C++ exception handling.
6323 * frame-unwind.c: Use C++ exception handling.
6324 * fbsd-tdep.c: Use C++ exception handling.
6325 * f-valprint.c: Use C++ exception handling.
6326 * exec.c: Use C++ exception handling.
6327 * event-top.c: Use C++ exception handling.
6328 * event-loop.c: Use C++ exception handling.
6329 * eval.c: Use C++ exception handling.
6330 * dwarf2read.c: Use C++ exception handling.
6331 * dwarf2loc.c: Use C++ exception handling.
6332 * dwarf2-frame.c: Use C++ exception handling.
6333 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6334 * dwarf-index-write.c: Use C++ exception handling.
6335 * dwarf-index-cache.c: Use C++ exception handling.
6336 * dtrace-probe.c: Use C++ exception handling.
6337 * disasm-selftests.c: Use C++ exception handling.
6338 * darwin-nat.c: Use C++ exception handling.
6339 * cp-valprint.c: Use C++ exception handling.
6340 * cp-support.c: Use C++ exception handling.
6341 * cp-abi.c: Use C++ exception handling.
6342 * corelow.c: Use C++ exception handling.
6343 * completer.c: Use C++ exception handling.
6344 * compile/compile-object-run.c: Use C++ exception handling.
6345 * compile/compile-object-load.c: Use C++ exception handling.
6346 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6347 * compile/compile-c-symbols.c: Use C++ exception handling.
6348 * common/selftest.c: Use C++ exception handling.
6349 * common/new-op.c: Use C++ exception handling.
6350 * cli/cli-script.c: Use C++ exception handling.
6351 * cli/cli-interp.c: Use C++ exception handling.
6352 * cli/cli-cmds.c: Use C++ exception handling.
6353 * c-varobj.c: Use C++ exception handling.
6354 * btrace.c: Use C++ exception handling.
6355 * breakpoint.c: Use C++ exception handling.
6356 * break-catch-throw.c: Use C++ exception handling.
6357 * arch-utils.c: Use C++ exception handling.
6358 * amd64-tdep.c: Use C++ exception handling.
6359 * ada-valprint.c: Use C++ exception handling.
6360 * ada-typeprint.c: Use C++ exception handling.
6361 * ada-lang.c: Use C++ exception handling.
6362 * aarch64-tdep.c: Use C++ exception handling.
6363
3d6e9d23
TT
63642019-04-08 Tom Tromey <tom@tromey.com>
6365
6366 * xml-support.c (gdb_xml_parser::parse): Update.
6367 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6368 * value.c (show_convenience): Update.
6369 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6370 (test_parse_flags_qcs): Update.
6371 * thread.c (thr_try_catch_cmd): Update.
6372 * target.c (target_translate_tls_address): Update.
6373 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6374 (info_frame_command_core, frame_apply_command_count): Update.
6375 * rust-exp.y (rust_lex_exception_test): Update.
6376 * riscv-tdep.c (riscv_print_one_register_info): Update.
6377 * remote.c (remote_target::enable_btrace): Update.
6378 * record-btrace.c (record_btrace_enable_warn): Update.
6379 * python/py-utils.c (gdbpy_convert_exception): Update.
6380 * printcmd.c (do_one_display, print_variable_and_value): Update.
6381 * mi/mi-main.c (mi_print_exception): Update.
6382 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6383 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6384 * linux-nat.c (linux_nat_target::attach): Update.
6385 * linux-fork.c (class scoped_switch_fork_info): Update.
6386 * infrun.c (displaced_step_prepare): Update.
6387 * infcall.c (call_function_by_hand_dummy): Update.
6388 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6389 * gnu-v3-abi.c (print_one_vtable): Update.
6390 * frame.c (get_prev_frame_always): Update.
6391 * f-valprint.c (info_common_command_for_block): Update.
6392 * exec.c (try_open_exec_file): Update.
6393 * exceptions.c (print_exception, exception_print)
6394 (exception_fprintf, exception_print_same): Update.
6395 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6396 * dwarf-index-cache.c (index_cache::store)
6397 (index_cache::lookup_gdb_index): Update.
6398 * darwin-nat.c (maybe_cache_shell): Update.
6399 * cp-valprint.c (cp_print_value_fields): Update.
6400 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6401 (gcc_cplus_symbol_address): Update.
6402 * compile/compile-c-symbols.c (gcc_convert_symbol)
6403 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6404 * common/selftest.c: Update.
6405 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6406 a std::string.
6407 (exception_try_scope_entry, exception_try_scope_exit): Don't
6408 declare.
6409 (struct exception_try_scope): Remove.
6410 (TRY): Don't use exception_try_scope.
6411 (struct gdb_exception): Add constructor, operator=.
6412 <what>: New method.
6413 (struct gdb_exception_RETURN_MASK_ALL)
6414 (struct gdb_exception_RETURN_MASK_ERROR)
6415 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6416 (struct gdb_quit_bad_alloc): Update.
6417 * common/common-exceptions.c (exception_none): Change
6418 initializer.
6419 (struct catcher) <state, exception>: Initialize inline.
6420 <prev>: Remove member.
6421 (current_catcher): Remove.
6422 (catchers): New global.
6423 (exceptions_state_mc_init): Simplify.
6424 (catcher_pop): Remove.
6425 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6426 (try_scope_depth, exception_try_scope_entry)
6427 (exception_try_scope_exit): Remove.
6428 (throw_exception_sjlj): Update.
6429 (exception_messages, exception_messages_size): Remove.
6430 (throw_it): Simplify.
6431 (gdb_exception_sliced_copy): Remove.
6432 (throw_exception_cxx): Update.
6433 * cli/cli-script.c (script_from_file): Update.
6434 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6435 Update.
6436 * ada-valprint.c (ada_val_print): Update.
6437 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6438 (create_excep_cond_exprs): Update.
6439
c5c10118
TT
64402019-04-08 Tom Tromey <tom@tromey.com>
6441
6442 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6443 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6444 (TRY, CATCH, END_CATCH): Remove some definitions.
6445 * common/common-exceptions.c: Don't use GDB_XCPT.
6446 (catcher_list_size): Remove.
6447 (throw_exception, throw_it): Simplify.
6448
4de283e4
TT
64492019-04-05 Tom Tromey <tom@tromey.com>
6450
6451 Revert the header-sorting patch.
6452 * ft32-tdep.c: Revert.
6453 * frv-tdep.c: Revert.
6454 * frv-linux-tdep.c: Revert.
6455 * frame.c: Revert.
6456 * frame-unwind.c: Revert.
6457 * frame-base.c: Revert.
6458 * fork-child.c: Revert.
6459 * findvar.c: Revert.
6460 * findcmd.c: Revert.
6461 * filesystem.c: Revert.
6462 * filename-seen-cache.h: Revert.
6463 * filename-seen-cache.c: Revert.
6464 * fbsd-tdep.c: Revert.
6465 * fbsd-nat.h: Revert.
6466 * fbsd-nat.c: Revert.
6467 * f-valprint.c: Revert.
6468 * f-typeprint.c: Revert.
6469 * f-lang.c: Revert.
6470 * extension.h: Revert.
6471 * extension.c: Revert.
6472 * extension-priv.h: Revert.
6473 * expprint.c: Revert.
6474 * exec.h: Revert.
6475 * exec.c: Revert.
6476 * exceptions.c: Revert.
6477 * event-top.c: Revert.
6478 * event-loop.c: Revert.
6479 * eval.c: Revert.
6480 * elfread.c: Revert.
6481 * dwarf2read.h: Revert.
6482 * dwarf2read.c: Revert.
6483 * dwarf2loc.c: Revert.
6484 * dwarf2expr.h: Revert.
6485 * dwarf2expr.c: Revert.
6486 * dwarf2-frame.c: Revert.
6487 * dwarf2-frame-tailcall.c: Revert.
6488 * dwarf-index-write.h: Revert.
6489 * dwarf-index-write.c: Revert.
6490 * dwarf-index-common.c: Revert.
6491 * dwarf-index-cache.h: Revert.
6492 * dwarf-index-cache.c: Revert.
6493 * dummy-frame.c: Revert.
6494 * dtrace-probe.c: Revert.
6495 * disasm.h: Revert.
6496 * disasm.c: Revert.
6497 * disasm-selftests.c: Revert.
6498 * dictionary.c: Revert.
6499 * dicos-tdep.c: Revert.
6500 * demangle.c: Revert.
6501 * dcache.h: Revert.
6502 * dcache.c: Revert.
6503 * darwin-nat.h: Revert.
6504 * darwin-nat.c: Revert.
6505 * darwin-nat-info.c: Revert.
6506 * d-valprint.c: Revert.
6507 * d-namespace.c: Revert.
6508 * d-lang.c: Revert.
6509 * ctf.c: Revert.
6510 * csky-tdep.c: Revert.
6511 * csky-linux-tdep.c: Revert.
6512 * cris-tdep.c: Revert.
6513 * cris-linux-tdep.c: Revert.
6514 * cp-valprint.c: Revert.
6515 * cp-support.c: Revert.
6516 * cp-namespace.c: Revert.
6517 * cp-abi.c: Revert.
6518 * corelow.c: Revert.
6519 * corefile.c: Revert.
6520 * continuations.c: Revert.
6521 * completer.h: Revert.
6522 * completer.c: Revert.
6523 * complaints.c: Revert.
6524 * coffread.c: Revert.
6525 * coff-pe-read.c: Revert.
6526 * cli-out.h: Revert.
6527 * cli-out.c: Revert.
6528 * charset.c: Revert.
6529 * c-varobj.c: Revert.
6530 * c-valprint.c: Revert.
6531 * c-typeprint.c: Revert.
6532 * c-lang.c: Revert.
6533 * buildsym.c: Revert.
6534 * buildsym-legacy.c: Revert.
6535 * build-id.h: Revert.
6536 * build-id.c: Revert.
6537 * btrace.c: Revert.
6538 * bsd-uthread.c: Revert.
6539 * breakpoint.h: Revert.
6540 * breakpoint.c: Revert.
6541 * break-catch-throw.c: Revert.
6542 * break-catch-syscall.c: Revert.
6543 * break-catch-sig.c: Revert.
6544 * blockframe.c: Revert.
6545 * block.c: Revert.
6546 * bfin-tdep.c: Revert.
6547 * bfin-linux-tdep.c: Revert.
6548 * bfd-target.c: Revert.
6549 * bcache.c: Revert.
6550 * ax-general.c: Revert.
6551 * ax-gdb.h: Revert.
6552 * ax-gdb.c: Revert.
6553 * avr-tdep.c: Revert.
6554 * auxv.c: Revert.
6555 * auto-load.c: Revert.
6556 * arm-wince-tdep.c: Revert.
6557 * arm-tdep.c: Revert.
6558 * arm-symbian-tdep.c: Revert.
6559 * arm-pikeos-tdep.c: Revert.
6560 * arm-obsd-tdep.c: Revert.
6561 * arm-nbsd-tdep.c: Revert.
6562 * arm-nbsd-nat.c: Revert.
6563 * arm-linux-tdep.c: Revert.
6564 * arm-linux-nat.c: Revert.
6565 * arm-fbsd-tdep.c: Revert.
6566 * arm-fbsd-nat.c: Revert.
6567 * arm-bsd-tdep.c: Revert.
6568 * arch-utils.c: Revert.
6569 * arc-tdep.c: Revert.
6570 * arc-newlib-tdep.c: Revert.
6571 * annotate.h: Revert.
6572 * annotate.c: Revert.
6573 * amd64-windows-tdep.c: Revert.
6574 * amd64-windows-nat.c: Revert.
6575 * amd64-tdep.c: Revert.
6576 * amd64-sol2-tdep.c: Revert.
6577 * amd64-obsd-tdep.c: Revert.
6578 * amd64-obsd-nat.c: Revert.
6579 * amd64-nbsd-tdep.c: Revert.
6580 * amd64-nbsd-nat.c: Revert.
6581 * amd64-nat.c: Revert.
6582 * amd64-linux-tdep.c: Revert.
6583 * amd64-linux-nat.c: Revert.
6584 * amd64-fbsd-tdep.c: Revert.
6585 * amd64-fbsd-nat.c: Revert.
6586 * amd64-dicos-tdep.c: Revert.
6587 * amd64-darwin-tdep.c: Revert.
6588 * amd64-bsd-nat.c: Revert.
6589 * alpha-tdep.c: Revert.
6590 * alpha-obsd-tdep.c: Revert.
6591 * alpha-nbsd-tdep.c: Revert.
6592 * alpha-mdebug-tdep.c: Revert.
6593 * alpha-linux-tdep.c: Revert.
6594 * alpha-linux-nat.c: Revert.
6595 * alpha-bsd-tdep.c: Revert.
6596 * alpha-bsd-nat.c: Revert.
6597 * aix-thread.c: Revert.
6598 * agent.c: Revert.
6599 * addrmap.c: Revert.
6600 * ada-varobj.c: Revert.
6601 * ada-valprint.c: Revert.
6602 * ada-typeprint.c: Revert.
6603 * ada-tasks.c: Revert.
6604 * ada-lang.c: Revert.
6605 * aarch64-tdep.c: Revert.
6606 * aarch64-ravenscar-thread.c: Revert.
6607 * aarch64-newlib-tdep.c: Revert.
6608 * aarch64-linux-tdep.c: Revert.
6609 * aarch64-linux-nat.c: Revert.
6610 * aarch64-fbsd-tdep.c: Revert.
6611 * aarch64-fbsd-nat.c: Revert.
6612 * aarch32-linux-nat.c: Revert.
6613
d55e5aa6
TT
66142019-04-05 Tom Tromey <tom@tromey.com>
6615
6616 * ft32-tdep.c: Sort headers.
6617 * frv-tdep.c: Sort headers.
6618 * frv-linux-tdep.c: Sort headers.
6619 * frame.c: Sort headers.
6620 * frame-unwind.c: Sort headers.
6621 * frame-base.c: Sort headers.
6622 * fork-child.c: Sort headers.
6623 * findvar.c: Sort headers.
6624 * findcmd.c: Sort headers.
6625 * filesystem.c: Sort headers.
6626 * filename-seen-cache.h: Sort headers.
6627 * filename-seen-cache.c: Sort headers.
6628 * fbsd-tdep.c: Sort headers.
6629 * fbsd-nat.h: Sort headers.
6630 * fbsd-nat.c: Sort headers.
6631 * f-valprint.c: Sort headers.
6632 * f-typeprint.c: Sort headers.
6633 * f-lang.c: Sort headers.
6634 * extension.h: Sort headers.
6635 * extension.c: Sort headers.
6636 * extension-priv.h: Sort headers.
6637 * expprint.c: Sort headers.
6638 * exec.h: Sort headers.
6639 * exec.c: Sort headers.
6640 * exceptions.c: Sort headers.
6641 * event-top.c: Sort headers.
6642 * event-loop.c: Sort headers.
6643 * eval.c: Sort headers.
6644 * elfread.c: Sort headers.
6645 * dwarf2read.h: Sort headers.
6646 * dwarf2read.c: Sort headers.
6647 * dwarf2loc.c: Sort headers.
6648 * dwarf2expr.h: Sort headers.
6649 * dwarf2expr.c: Sort headers.
6650 * dwarf2-frame.c: Sort headers.
6651 * dwarf2-frame-tailcall.c: Sort headers.
6652 * dwarf-index-write.h: Sort headers.
6653 * dwarf-index-write.c: Sort headers.
6654 * dwarf-index-common.c: Sort headers.
6655 * dwarf-index-cache.h: Sort headers.
6656 * dwarf-index-cache.c: Sort headers.
6657 * dummy-frame.c: Sort headers.
6658 * dtrace-probe.c: Sort headers.
6659 * disasm.h: Sort headers.
6660 * disasm.c: Sort headers.
6661 * disasm-selftests.c: Sort headers.
6662 * dictionary.c: Sort headers.
6663 * dicos-tdep.c: Sort headers.
6664 * demangle.c: Sort headers.
6665 * dcache.h: Sort headers.
6666 * dcache.c: Sort headers.
6667 * darwin-nat.h: Sort headers.
6668 * darwin-nat.c: Sort headers.
6669 * darwin-nat-info.c: Sort headers.
6670 * d-valprint.c: Sort headers.
6671 * d-namespace.c: Sort headers.
6672 * d-lang.c: Sort headers.
6673 * ctf.c: Sort headers.
6674 * csky-tdep.c: Sort headers.
6675 * csky-linux-tdep.c: Sort headers.
6676 * cris-tdep.c: Sort headers.
6677 * cris-linux-tdep.c: Sort headers.
6678 * cp-valprint.c: Sort headers.
6679 * cp-support.c: Sort headers.
6680 * cp-namespace.c: Sort headers.
6681 * cp-abi.c: Sort headers.
6682 * corelow.c: Sort headers.
6683 * corefile.c: Sort headers.
6684 * continuations.c: Sort headers.
6685 * completer.h: Sort headers.
6686 * completer.c: Sort headers.
6687 * complaints.c: Sort headers.
6688 * coffread.c: Sort headers.
6689 * coff-pe-read.c: Sort headers.
6690 * cli-out.h: Sort headers.
6691 * cli-out.c: Sort headers.
6692 * charset.c: Sort headers.
6693 * c-varobj.c: Sort headers.
6694 * c-valprint.c: Sort headers.
6695 * c-typeprint.c: Sort headers.
6696 * c-lang.c: Sort headers.
6697 * buildsym.c: Sort headers.
6698 * buildsym-legacy.c: Sort headers.
6699 * build-id.h: Sort headers.
6700 * build-id.c: Sort headers.
6701 * btrace.c: Sort headers.
6702 * bsd-uthread.c: Sort headers.
6703 * breakpoint.h: Sort headers.
6704 * breakpoint.c: Sort headers.
6705 * break-catch-throw.c: Sort headers.
6706 * break-catch-syscall.c: Sort headers.
6707 * break-catch-sig.c: Sort headers.
6708 * blockframe.c: Sort headers.
6709 * block.c: Sort headers.
6710 * bfin-tdep.c: Sort headers.
6711 * bfin-linux-tdep.c: Sort headers.
6712 * bfd-target.c: Sort headers.
6713 * bcache.c: Sort headers.
6714 * ax-general.c: Sort headers.
6715 * ax-gdb.h: Sort headers.
6716 * ax-gdb.c: Sort headers.
6717 * avr-tdep.c: Sort headers.
6718 * auxv.c: Sort headers.
6719 * auto-load.c: Sort headers.
6720 * arm-wince-tdep.c: Sort headers.
6721 * arm-tdep.c: Sort headers.
6722 * arm-symbian-tdep.c: Sort headers.
6723 * arm-pikeos-tdep.c: Sort headers.
6724 * arm-obsd-tdep.c: Sort headers.
6725 * arm-nbsd-tdep.c: Sort headers.
6726 * arm-nbsd-nat.c: Sort headers.
6727 * arm-linux-tdep.c: Sort headers.
6728 * arm-linux-nat.c: Sort headers.
6729 * arm-fbsd-tdep.c: Sort headers.
6730 * arm-fbsd-nat.c: Sort headers.
6731 * arm-bsd-tdep.c: Sort headers.
6732 * arch-utils.c: Sort headers.
6733 * arc-tdep.c: Sort headers.
6734 * arc-newlib-tdep.c: Sort headers.
6735 * annotate.h: Sort headers.
6736 * annotate.c: Sort headers.
6737 * amd64-windows-tdep.c: Sort headers.
6738 * amd64-windows-nat.c: Sort headers.
6739 * amd64-tdep.c: Sort headers.
6740 * amd64-sol2-tdep.c: Sort headers.
6741 * amd64-obsd-tdep.c: Sort headers.
6742 * amd64-obsd-nat.c: Sort headers.
6743 * amd64-nbsd-tdep.c: Sort headers.
6744 * amd64-nbsd-nat.c: Sort headers.
6745 * amd64-nat.c: Sort headers.
6746 * amd64-linux-tdep.c: Sort headers.
6747 * amd64-linux-nat.c: Sort headers.
6748 * amd64-fbsd-tdep.c: Sort headers.
6749 * amd64-fbsd-nat.c: Sort headers.
6750 * amd64-dicos-tdep.c: Sort headers.
6751 * amd64-darwin-tdep.c: Sort headers.
6752 * amd64-bsd-nat.c: Sort headers.
6753 * alpha-tdep.c: Sort headers.
6754 * alpha-obsd-tdep.c: Sort headers.
6755 * alpha-nbsd-tdep.c: Sort headers.
6756 * alpha-mdebug-tdep.c: Sort headers.
6757 * alpha-linux-tdep.c: Sort headers.
6758 * alpha-linux-nat.c: Sort headers.
6759 * alpha-bsd-tdep.c: Sort headers.
6760 * alpha-bsd-nat.c: Sort headers.
6761 * aix-thread.c: Sort headers.
6762 * agent.c: Sort headers.
6763 * addrmap.c: Sort headers.
6764 * ada-varobj.c: Sort headers.
6765 * ada-valprint.c: Sort headers.
6766 * ada-typeprint.c: Sort headers.
6767 * ada-tasks.c: Sort headers.
6768 * ada-lang.c: Sort headers.
6769 * aarch64-tdep.c: Sort headers.
6770 * aarch64-ravenscar-thread.c: Sort headers.
6771 * aarch64-newlib-tdep.c: Sort headers.
6772 * aarch64-linux-tdep.c: Sort headers.
6773 * aarch64-linux-nat.c: Sort headers.
6774 * aarch64-fbsd-tdep.c: Sort headers.
6775 * aarch64-fbsd-nat.c: Sort headers.
6776 * aarch32-linux-nat.c: Sort headers.
6777
699bd4cf
TT
67782019-04-04 Tom Tromey <tom@tromey.com>
6779
6780 * varobj.c (varobj_create): Update.
6781 * rust-exp.y (struct rust_parser) <update_innermost_block,
6782 lookup_symbol>: New methods.
6783 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6784 Rename.
6785 (rust_parser::rust_lookup_type)
6786 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6787 * printcmd.c (display_command, do_one_display): Update.
6788 * parser-defs.h (struct parser_state) <parser_state>: Add
6789 "tracker" parameter.
6790 (block_tracker): New member.
6791 (class innermost_block_tracker) <innermost_block_tracker>: Add
6792 "types" parameter.
6793 <reset>: Remove method.
6794 (innermost_block): Don't declare.
6795 (null_post_parser): Update.
6796 * parse.c (innermost_block): Remove global.
6797 (write_dollar_variable): Update.
6798 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6799 Remove "tracker_types" parameter.
6800 (parse_expression): Add "tracker" parameter.
6801 (parse_expression_for_completion): Update.
6802 (null_post_parser): Add "tracker" parameter.
6803 * p-exp.y: Update rules.
6804 * m2-exp.y: Update rules.
6805 * language.h (struct language_defn) <la_post_parser>: Add
6806 "tracker" parameter.
6807 * go-exp.y: Update rules.
6808 * f-exp.y: Update rules.
6809 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6810 parameter.
6811 * d-exp.y: Update rules.
6812 * c-exp.y: Update rules.
6813 * breakpoint.c (set_breakpoint_condition): Create an
6814 innermost_block_tracker.
6815 (watch_command_1): Likewise.
6816 * ada-lang.c (resolve): Add "tracker" parameter.
6817 (resolve_subexp): Likewise.
6818 * ada-exp.y (write_var_from_sym): Update.
6819
dac43e32
TT
68202019-04-04 Tom Tromey <tom@tromey.com>
6821
6822 * type-stack.h: New file.
6823 * type-stack.c: New file.
6824 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6825 type-stack.h.
6826 (insert_into_type_stack, insert_type, push_type, push_type_int)
6827 (insert_type_address_space, pop_type, pop_type_int)
6828 (pop_typelist, pop_type_stack, append_type_stack)
6829 (push_type_stack, get_type_stack, push_typelist)
6830 (follow_type_instance_flags, follow_types): Don't declare.
6831 * parse.c (type_stack): Remove global.
6832 (parse_exp_in_context): Update.
6833 (insert_into_type_stack, insert_type, push_type, push_type_int)
6834 (insert_type_address_space, pop_type, pop_type_int)
6835 (pop_typelist, pop_type_stack, append_type_stack)
6836 (push_type_stack, get_type_stack, push_typelist)
6837 (follow_type_instance_flags, follow_types): Remove (moved to
6838 type-stack.c).
6839 * f-exp.y (type_stack): New global.
6840 Update rules.
6841 (push_kind_type, f_parse): Update.
6842 * d-exp.y (type_stack): New global.
6843 Update rules.
6844 (d_parse): Update.
6845 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6846 Update rules.
6847 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6848 (HFILES_NO_SRCDIR): Add type-stack.h.
6849
2a612529
TT
68502019-04-04 Tom Tromey <tom@tromey.com>
6851
6852 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6853 (rust_parser::convert_ast_to_expression, rust_parse)
6854 (rust_lex_test_completion, rust_lex_tests): Update.
6855 * parser-defs.h (struct expr_completion_state): New.
6856 (struct parser_state) <parser_state>: Add completion parameter.
6857 <mark_struct_expression, mark_completion_tag>: New methods.
6858 <parse_completion, m_completion_state>: New members.
6859 (prefixify_expression, null_post_parser): Update.
6860 (mark_struct_expression, mark_completion_tag): Don't declare.
6861 * parse.c (parse_completion, expout_last_struct)
6862 (expout_tag_completion_type, expout_completion_name): Remove
6863 globals.
6864 (parser_state::mark_struct_expression)
6865 (parser_state::mark_completion_tag): Now methods.
6866 (prefixify_expression): Add last_struct parameter.
6867 (prefixify_subexp): Likewise.
6868 (parse_exp_1): Update.
6869 (parse_exp_in_context): Add cstate parameter. Update.
6870 (parse_expression_for_completion): Create an
6871 expr_completion_state.
6872 (null_post_parser): Add "completion" parameter.
6873 * p-exp.y: Update rules.
6874 (yylex): Update.
6875 * language.h (struct language_defn) <la_post_parser>: Add
6876 "completing" parameter.
6877 * go-exp.y: Update rules.
6878 (lex_one_token): Update.
6879 * expression.h (parse_completion): Don't declare.
6880 * d-exp.y: Update rules.
6881 (lex_one_token): Update rules.
6882 * c-exp.y: Update rules.
6883 (lex_one_token): Update.
6884 * ada-lang.c (resolve): Add "parse_completion" parameter.
6885 (resolve_subexp): Likewise.
6886 (ada_resolve_function): Likewise.
6887
43476f0b
TT
68882019-04-04 Tom Tromey <tom@tromey.com>
6889
6890 * parser-defs.h (struct parser_state) <start_arglist,
6891 end_arglist>: New methods.
6892 <arglist_len, m_funcall_chain>: New members.
6893 (arglist_len, start_arglist, end_arglist): Don't declare.
6894 * parse.c (arglist_len, funcall_chain): Remove global.
6895 (start_arglist, end_arglist): Remove functions.
6896 (parse_exp_in_context): Update.
6897 * p-exp.y: Update rules.
6898 * m2-exp.y: Update rules.
6899 * go-exp.y: Update rules.
6900 * f-exp.y: Update rules.
6901 * d-exp.y: Update rules.
6902 * c-exp.y: Update rules.
6903
5776fca3
TT
69042019-04-04 Tom Tromey <tom@tromey.com>
6905
6906 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6907 lex_operator, push_back>: New methods.
6908 Update all rules.
6909 (rust_parser::lex_hex, lex_escape): Rename and update.
6910 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6911 (rust_parser::lex_operator): Rename and update.
6912 (rust_parser::lex_number, rustyylex, rustyyerror)
6913 (rust_lex_test_init, rust_lex_test_sequence)
6914 (rust_lex_test_push_back, rust_lex_tests): Update.
6915 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6916 parameter.
6917 <lexptr, prev_lexptr>: New members.
6918 (lexptr, prev_lexptr): Don't declare.
6919 * parse.c (lexptr, prev_lexptr): Remove globals.
6920 (parse_exp_in_context): Update.
6921 * p-exp.y (yylex, yyerror): Update.
6922 * m2-exp.y (parse_number, yylex, yyerror): Update.
6923 * go-exp.y (lex_one_token, yyerror): Update.
6924 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6925 * d-exp.y (lex_one_token, yyerror): Update.
6926 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6927 (lex_one_token, yyerror): Update.
6928 * ada-lex.l (YY_INPUT): Update.
6929 (rewind_to_char): Update.
6930 * ada-exp.y (yyerror): Update.
6931
8621b685
TT
69322019-04-04 Tom Tromey <tom@tromey.com>
6933
6934 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6935 * parser-defs.h (struct parser_state) <parser_state>: Add new
6936 parameter.
6937 <comma_terminates>: New member.
6938 (comma_terminates): Don't declare global.
6939 * parse.c (comma_terminates): Remove global.
6940 (parse_exp_in_context): Update.
6941 * p-exp.y (yylex): Update.
6942 * m2-exp.y (yylex): Update.
6943 * go-exp.y (lex_one_token): Update.
6944 * f-exp.y (yylex): Update.
6945 * d-exp.y (lex_one_token): Update.
6946 * c-exp.y (lex_one_token): Update.
6947 * ada-lex.l: Update.
6948
28aaf3fd
TT
69492019-04-04 Tom Tromey <tom@tromey.com>
6950
6951 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6952 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6953 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6954 * parser-defs.h (paren_depth): Don't declare.
6955 * parse.c (paren_depth): Remove global.
6956 (parse_exp_in_context): Update.
6957 * p-exp.y (paren_depth): New global.
6958 (pascal_parse): Initialize it.
6959 * m2-exp.y (paren_depth): New global.
6960 (m2_parse): Initialize it.
6961 * go-exp.y (paren_depth): New global.
6962 (go_parse): Initialize it.
6963 * f-exp.y (paren_depth): New global.
6964 (f_parse): Initialize it.
6965 * d-exp.y (paren_depth): New global.
6966 (d_parse): Initialize it.
6967 * c-exp.y (paren_depth): New global.
6968 (c_parse): Initialize it.
6969 * ada-lex.l (paren_depth): New global.
6970 (lexer_init): Initialize it.
6971
1e58a4a4
TT
69722019-04-04 Tom Tromey <tom@tromey.com>
6973
6974 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6975 (rust_parser::convert_ast_to_type)
6976 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6977 * parser-defs.h (struct parser_state) <parser_state>: Add
6978 parameters. Initialize new members.
6979 <expression_context_block, expression_context_pc>: New members.
6980 * parse.c (expression_context_block, expression_context_pc):
6981 Remove globals.
6982 (parse_exp_in_context): Update.
6983 * p-exp.y: Update all rules.
6984 (yylex): Update.
6985 * m2-exp.y: Update all rules.
6986 (yylex): Update.
6987 * go-exp.y (yylex): Update.
6988 * f-exp.y (yylex): Update.
6989 * d-exp.y: Update all rules.
6990 (yylex): Update.
6991 * c-exp.y: Update all rules.
6992 (lex_one_token, classify_name, yylex, c_parse): Update.
6993 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6994
37eedb39
TT
69952019-04-04 Tom Tromey <tom@tromey.com>
6996
6997 * gdbarch.h, gdbarch.c: Rebuild.
6998 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6999 * stap-probe.h:
7000 (struct stap_parse_info): Replace "parser_state" with
7001 "expr_builder".
7002 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7003 (parser_state): New class.
7004 * parse.c (expr_builder): Rename.
7005 (expr_builder::release): Rename.
7006 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7007 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7008 (write_exp_elt_longcst, write_exp_elt_floatcst)
7009 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7010 (write_exp_string_vector, write_exp_bitstring)
7011 (write_exp_msymbol, mark_struct_expression)
7012 (write_dollar_variable)
7013 (insert_type_address_space, increase_expout_size): Replace
7014 "parser_state" with "expr_builder".
7015 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7016 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7017 "parser_state" with "expr_builder".
7018
73923d7e
TT
70192019-04-04 Tom Tromey <tom@tromey.com>
7020
7021 * rust-exp.y: Replace "parse_language" with method call.
7022 * p-exp.y:
7023 (yylex): Replace "parse_language" with method call.
7024 * m2-exp.y:
7025 (yylex): Replace "parse_language" with method call.
7026 * go-exp.y (classify_name): Replace "parse_language" with method
7027 call.
7028 * f-exp.y (yylex): Replace "parse_language" with method call.
7029 * d-exp.y (lex_one_token): Replace "parse_language" with method
7030 call.
7031 * c-exp.y:
7032 (lex_one_token, classify_name, yylex): Replace "parse_language"
7033 with method call.
7034 * ada-exp.y (find_primitive_type, type_char)
7035 (type_system_address): Replace "parse_language" with method call.
7036
fa9f5be6
TT
70372019-04-04 Tom Tromey <tom@tromey.com>
7038
7039 * rust-exp.y: Replace "parse_gdbarch" with method call.
7040 * parse.c (write_dollar_variable, insert_type_address_space):
7041 Replace "parse_gdbarch" with method call.
7042 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7043 call.
7044 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7045 call.
7046 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7047 "parse_gdbarch" with method call.
7048 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7049 with method call.
7050 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7051 "parse_gdbarch" with method call.
7052 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7053 "parse_gdbarch" with method call.
7054 * c-exp.y (parse_type, parse_number, classify_name): Replace
7055 "parse_gdbarch" with method call.
7056 * ada-lex.l: Replace "parse_gdbarch" with method call.
7057 * ada-exp.y (parse_type, find_primitive_type, type_char)
7058 (type_system_address): Replace "parse_gdbarch" with method call.
7059
1201a264
TT
70602019-04-04 Tom Tromey <tom@tromey.com>
7061
7062 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7063 * stap-probe.c (stap_parse_argument): Update.
7064 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7065 initial_size parameter.
7066 * rust-exp.y (rust_lex_tests): Update.
7067 * parse.c (parser_state): Update.
7068 (parse_exp_in_context): Update.
7069 * parser-defs.h (struct parser_state) <parser_state>: Remove
7070 "initial_size" parameter.
7071
e3980ce2
TT
70722019-04-04 Tom Tromey <tom@tromey.com>
7073
7074 * parser-defs.h (increase_expout_size): Don't declare.
7075 * parse.c (increase_expout_size): Now static.
7076
e9f8e3f1
TS
70772019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7078
7079 * gnu-nat.c (gnu_nat_target::wait): Fix
7080 target_waitstatus_to_string call.
7081
d7df6549
AB
70822019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7083
7084 * eval.c (evaluate_subexp_standard): Handle internal functions
7085 during Fortran function call handling.
7086
8bdc1658
AB
70872019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7088
7089 * NEWS: Mention new internal functions.
7090 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7091 (read_base_type): Use dwarf2_init_complex_target_type.
7092 * value.c (creal_internal_fn): New function.
7093 (cimag_internal_fn): New function.
7094 (_initialize_values): Register new internal functions.
7095
c29705b7
PW
70962019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7097
7098 * infrun.c (stop_all_threads): If debug_infrun, always
7099 trace the wait status after wait_one, using
7100 target_waitstatus_to_string and target_pid_to_str.
7101 (handle_inferior_event): Replace various trace of
7102 wait status kind by a single trace.
7103 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7104 wait status kind image by target_waitstatus_to_string.
7105 * target/waitstatus.c (target_waitstatus_to_string): Fix
7106 obsolete comment.
7107
05caa1d2
TT
71082019-04-01 Tom Tromey <tromey@adacore.com>
7109
7110 PR symtab/23331:
7111 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7112
9d1447e0
SDJ
71132019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7114 Pedro Alves <palves@redhat.com>
7115
7116 * top.c (quit_force): Call 'finalize_values'.
7117 * value.c (finalize_values): New function.
7118 * value.h (finalize_values): Declare.
7119
7734102d
EZ
71202019-03-30 Eli Zaretskii <eliz@gnu.org>
7121
7122 * NEWS: Announce $_gdb_major and $_gdb_minor.
7123
7124 * top.c (init_gdb_version_vars): New function.
7125 (gdb_init): Call init_gdb_version_vars.
7126
188e1fa9
TT
71272019-03-29 Tom Tromey <tromey@adacore.com>
7128
7129 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7130 help text. Remove dead code.
7131
2880242d
KS
71322019-03-29 Keith Seitz <keiths@redhat.com>
7133
7134 From Siddhesh Poyarekar:
7135 * f-lang.h (f77_get_upperbound): Return LONGEST.
7136 (f77_get_lowerbound): Likewise.
7137 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7138 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7139 print them.
7140 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7141 plongest to format print it.
7142 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7143 (f77_get_upperbound): Likewise.
7144 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7145 LOWER_BOUND to LONGEST.
7146 (f77_create_arrayprint_offset_tbl): Likewise.
7147
cc1defb1
KS
71482019-03-29 Keith Seitz <keiths@redhat.com>
7149
7150 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7151 %s/pulongest for TYPE_LENGTH instead of %d in format
7152 strings.
7153 * ada-typerint.c (ada_print_type): Likewise.
7154 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7155 * compile/compile-c-support.c (generate_register_struct): Likewise.
7156 * gdbtypes.c (recursive_dump_type): Likewise.
7157 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7158 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7159 instead of %d in format strings.
7160 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7161 to std::min to ULONGEST.
7162 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7163 instead of %d in format strings.
7164 * tracepoint.c (info_scope_command): Likewise.
7165 * typeprint.c (print_offset_data::update)
7166 (print_offset_data::finish): Likewise.
7167 * xtensa-tdep.c (xtensa_store_return_value)
7168 (xtensa_push_dummy_call): Likewise.
7169
e432ccf1
JT
71702019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7171
7172 * windows-nat.c (display_selector): Fixed format specifications
7173 for 64-bit Cygwin.
7174
65d2b333
PW
71752019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7176
7177 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7178
f489207e
SL
71792019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7180
7181 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7182 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7183 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7184 (nios2_linux_init_abi): Install it.
7185
bffa1015
AH
71862019-03-28 Alan Hayward <alan.hayward@arm.com>
7187
7188 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7189
fc96163a
AH
71902019-03-28 Alan Hayward <alan.hayward@arm.com>
7191
7192 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7193
20dc7e9b
PW
71942019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7195 Tom Tromey <tromey@adacore.com>
7196
7197 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7198
7f5331a8
JB
71992019-03-26 Joel Brobecker <brobecker@adacore.com>
7200
7201 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7202 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7203 method to compute the bounds of range types. Also print "[evaluated]"
7204 if the bounds' values come from a dynamic evaluation.
7205
18c77628
AB
72062019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7207
7208 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7209 whitespace when pretty printing is on.
7210
53c973f2
AH
72112019-03-26 Alan Hayward <alan.hayward@arm.com>
7212
e79be6e5 7213 * ppc-linux-nat.c: Add include.
53c973f2 7214
d851aa71
AH
72152019-03-26 Alan Hayward <alan.hayward@arm.com>
7216
e79be6e5 7217 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7218
2fe7bab7
AH
72192019-03-26 Alan Hayward <alan.hayward@arm.com>
7220
e79be6e5 7221 * arm-linux-nat.c: Add include.
2fe7bab7 7222
068ef30e
SM
72232019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7224
7225 * source-cache.c (source_cache::get_source_lines): Re-read
7226 fullname after calling open_source_file.
7227
81a24d04
JB
72282019-03-25 John Baldwin <jhb@FreeBSD.org>
7229
7230 * NEWS: Mention TLS support for FreeBSD.
7231
79e7ae11
TT
72322019-03-25 Tom Tromey <tromey@adacore.com>
7233
7234 * minsyms.c (BUNCH_SIZE): Update comment.
7235 (~minimal_symbol_reader): Remove old comment.
7236 (compact_minimal_symbols): Update comment.
7237 (minimal_symbol_reader::install): Remove old comment. Update
7238 other comments.
7239
d45963c2
AH
72402019-03-25 Alan Hayward <alan.hayward@arm.com>
7241
7242 * s390-linux-nat.c: Add include.
7243
0f83012e
AH
72442019-03-25 Alan Hayward <alan.hayward@arm.com>
7245
7246 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7247 Call linux_get_hwcap.
7248 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7249 Likewise.
7250 (aarch64_linux_get_hwcap): Remove function.
7251 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7252 declaration.
7253 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7254 linux_get_hwcap.
7255 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7256 * linux-tdep.c (linux_get_hwcap): Add function.
7257 (linux_get_hwcap2): Likewise.
7258 * linux-tdep.h (linux_get_hwcap): Add declaration.
7259 (linux_get_hwcap2): Likewise.
7260 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7261 (ppc_linux_get_hwcap2): Likewise.
7262 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7263 linux_get_hwcap.
7264 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7265 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7266 (ppc_linux_nat_target::read_description): Likewise.
7267 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7268 * s390-linux-nat.c: Likewise.
7269 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7270
6640a367
TT
72712019-03-24 Tom Tromey <tom@tromey.com>
7272
7273 * ada-lang.c (standard_lookup): Simplify initialization.
7274 (ada_lookup_symbol_nonlocal): Simplify return.
7275 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7276 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7277 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7278 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7279 initialization.
7280 * solib.c (solib_global_lookup): Simplify.
7281 * symtab.c (null_block_symbol): Remove.
7282 (symbol_cache_lookup): Simplify returns.
7283 (lookup_language_this): Simplify returns.
7284 (lookup_symbol_aux): Simplify return.
7285 (lookup_local_symbol): Simplify returns.
7286 (lookup_global_symbol_from_objfile): Simplify return.
7287 (lookup_symbol_in_objfile_symtabs)
7288 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7289 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7290 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7291 * cp-namespace.c (cp_lookup_bare_symbol)
7292 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7293 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7294 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7295 (cp_lookup_symbol_via_imports): Simplify initialization.
7296 (find_symbol_in_baseclass): Likewise.
7297 * symtab.h (null_block_symbol): Remove.
7298 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7299 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7300 (d_lookup_symbol_module): Likewise.
7301 (find_symbol_in_baseclass): Simplify initialization.
7302
a930ebcd
TT
73032019-03-24 Tom Tromey <tom@tromey.com>
7304
7305 * expression.h: Don't include symtab.h.
7306 (struct block): Forward declare.
7307
582942f4
TT
73082019-03-24 Tom Tromey <tom@tromey.com>
7309
7310 * c-exp.y (typebase): Remove casts.
7311 * gdbtypes.c (lookup_unsigned_typename, )
7312 (lookup_signed_typename): Remove cast.
7313 * eval.c (parse_to_comma_and_eval): Remove cast.
7314 * parse.c (write_dollar_variable): Remove cast.
7315 * block.h (struct block) <superblock>: Now const.
7316 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7317 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7318 (map_block): Make "block" const.
7319 * symfile.h (struct quick_symbol_functions)
7320 <map_matching_symbols>: Constify block argument to "callback".
7321 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7322 const.
7323 (find_pc_sect_compunit_symtab): Make "b" const.
7324 (find_symbol_at_address): Likewise.
7325 (search_symbols): Likewise.
7326 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7327 (dw2_debug_names_lookup_symbol): Likewise.
7328 (dw2_map_matching_symbols): Update.
7329 * p-valprint.c (pascal_val_print): Remove "block".
7330 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7331 (aux_add_nonlocal_symbols): Make "block" const.
7332 (resolve_subexp): Remove cast.
7333 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7334 const.
7335 (iterate_over_file_blocks): Likewise.
7336 * f-exp.y (%union) <bval>: Remove.
7337 * coffread.c (patch_opaque_types): Make "b" const.
7338 * spu-tdep.c (spu_catch_start): Make "block" const.
7339 * c-valprint.c (print_unpacked_pointer): Remove "block".
7340 * symmisc.c (dump_symtab_1): Make "b" const.
7341 (block_depth): Make "block" const.
7342 * d-exp.y (%union) <bval>: Remove.
7343 * cp-support.h (cp_lookup_rtti_type): Update.
7344 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7345 * psymtab.c (psym_lookup_symbol): Make "block" const.
7346 (maintenance_check_psymtabs): Make "b" const.
7347 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7348 (enumerate_locals, enumerate_args): Update.
7349 * python/py-symtab.c (stpy_global_block): Make "block" const.
7350 (stpy_static_block): Likewise.
7351 * inline-frame.c (block_starting_point_at): Make "new_block"
7352 const.
7353 * block.c (find_block_in_blockvector): Make return type const.
7354 (blockvector_for_pc_sect): Make "b" const.
7355 (find_block_in_blockvector): Make "b" const.
7356
7ad417dd
TT
73572019-03-23 Tom Tromey <tom@tromey.com>
7358
7359 * varobj.c (varobj_create): Update.
7360 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7361 * printcmd.c (display_command, do_one_display): Don't reset
7362 innermost_block.
7363 * parser-defs.h (enum innermost_block_tracker_type): Move to
7364 expression.h.
7365 (innermost_block): Update comment.
7366 * parse.c (parse_exp_1): Add tracker_types parameter.
7367 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7368 tracker_types parameter. Reset innermost_block.
7369 (parse_exp_in_context): Remove.
7370 (parse_expression_for_completion): Update.
7371 * objfiles.c (~objfile): Don't reset expression_context_block or
7372 innermost_block.
7373 * expression.h (enum innermost_block_tracker_type): Move from
7374 parser-defs.h.
7375 (parse_exp_1): Add tracker_types parameter.
7376 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7377 reset innermost_block.
7378
b366c208
TT
73792019-03-23 Tom Tromey <tom@tromey.com>
7380
7381 * objfiles.h: Include bcache.h.
7382
9bb9b2f9
TT
73832019-03-23 Tom Tromey <tom@tromey.com>
7384
7385 * linespec.c (get_current_search_block): Use
7386 scoped_restore_current_language.
7387 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7388
59c28372
AH
73892019-03-22 Alan Hayward <alan.hayward@arm.com>
7390 Jiong Wang <jiong.wang@arm.com>
7391
7392 * aarch64-linux-tdep.c
7393 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7394 section.
7395 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7396
17e116a7
AH
73972019-03-22 Alan Hayward <alan.hayward@arm.com>
7398 Jiong Wang <jiong.wang@arm.com>
7399
7400 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7401 instructions.
7402 (aarch64_analyze_prologue_test): Add PACIASP test.
7403 (aarch64_prologue_prev_register): Unmask PC value.
7404
11e1b75f
AH
74052019-03-22 Alan Hayward <alan.hayward@arm.com>
7406 Jiong Wang <jiong.wang@arm.com>
7407
7408 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7409 (aarch64_dwarf2_prev_register): Unmask PC value.
7410 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7411 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7412 DW_CFA_AARCH64_negate_ra_state.
7413 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7414
34dcc7cf
AH
74152019-03-22 Alan Hayward <alan.hayward@arm.com>
7416 Jiong Wang <jiong.wang@arm.com>
7417
7418 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7419 registers.
7420 (aarch64_pseudo_register_name): Likewise.
7421 (aarch64_pseudo_register_type): Likewise.
7422 (aarch64_pseudo_register_reggroup_p): Likewise.
7423 (aarch64_gdbarch_init): Add pauth registers.
7424 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7425 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7426 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7427 (struct gdbarch_tdep): Add regnum for ra_state.
7428
1ef53e6b
AH
74292019-03-22 Alan Hayward <alan.hayward@arm.com>
7430 Jiong Wang <jiong.wang@arm.com>
7431
7432 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7433
76bed0fd
AH
74342019-03-22 Alan Hayward <alan.hayward@arm.com>
7435 Jiong Wang <jiong.wang@arm.com>
7436
7437 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7438 function.
7439 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7440 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7441 (aarch64_gdbarch_init): Add puth registers.
7442 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7443 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7444 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7445
ee4fbcfa
AH
74462019-03-22 Alan Hayward <alan.hayward@arm.com>
7447 Jiong Wang <jiong.wang@arm.com>
7448
7449 * aarch64-linux-nat.c
7450 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7451 * aarch64-linux-tdep.c
7452 (aarch64_linux_core_read_description): Likewise.
7453 (aarch64_linux_get_hwcap): New function.
7454 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7455 (aarch64_linux_get_hwcap): New declaration.
7456
6dc0ebde
AH
74572019-03-22 Alan Hayward <alan.hayward@arm.com>
7458 Jiong Wang <jiong.wang@arm.com>
7459
7460 * aarch64-linux-nat.c
7461 (aarch64_linux_nat_target::read_description): Add pauth param.
7462 * aarch64-linux-tdep.c
7463 (aarch64_linux_core_read_description): Likewise.
7464 * aarch64-tdep.c (struct target_desc): Add in pauth.
7465 (aarch64_read_description): Add pauth param.
7466 (aarch64_gdbarch_init): Likewise.
7467 * aarch64-tdep.h (aarch64_read_description): Likewise.
7468 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7469 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7470 * features/Makefile: Add new files.
7471 * features/aarch64-pauth.c: New file.
7472 * features/aarch64-pauth.xml: New file.
7473
595915c1
TT
74742019-03-20 Tom Tromey <tromey@adacore.com>
7475
7476 * infrun.c (handle_inferior_event): Rename from
7477 handle_inferior_event_1. Create a scoped_value_mark.
7478 (handle_inferior_event): Remove.
7479
4c7d57e7
TT
74802019-03-19 Tom Tromey <tromey@adacore.com>
7481
7482 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7483 * infrun.h (print_stop_event): Add "displays" parameter.
7484 * infrun.c (print_stop_event): Add "displays" parameter.
7485
cb246234
PA
74862019-03-19 Pedro Alves <palves@redhat.com>
7487
7488 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7489 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7490 to -1. Fix TABs vs spaces.
7491 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7492 * tui/tui-out.h (tui_ui_out) Add intro comments.
7493 <m_line, m_start_of_line>: In-class initialize, and add describing
7494 comment.
7495
3a0e45b2
AH
74962019-03-18 Alan Hayward <alan.hayward@arm.com>
7497
7498 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7499 variable names.
7500 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7501
5371b850
PA
75022019-03-18 Pedro Alves <palves@redhat.com>
7503 Eli Zaretskii <eliz@gnu.org>
7504
7505 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7506 m_line and m_start_of_line.
7507
b17c4cd0
EZ
75082019-03-18 Eli Zaretskii <eliz@gnu.org>
7509
7510 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7511 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7512 it returns a newline. This fixes a regression in TU mode, whereby
7513 the next line is output on the same screen line as the user input.
7514
4bd56d18
TT
75152019-03-18 Tom Tromey <tromey@adacore.com>
7516
7517 * minsyms.c (minimal_symbol_reader::install): Remove call to
7518 obstack_blank.
7519
55c10aca
PA
75202019-03-18 Pedro Alves <palves@redhat.com>
7521
7522 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7523 New globals.
7524 (apply_style): New, factored out from ...
7525 (apply_ansi_escape): ... this. Handle reverse video mode.
7526 (tui_set_reverse_mode): New function.
7527 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7528 * tui/tui-winsource.c (tui_show_source_line): Use
7529 tui_set_reverse_mode instead of setting A_STANDOUT.
7530 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7531 New setter methods.
7532
647bb750
HD
75332019-03-18 Hannes Domani <ssbssa@yahoo.de>
7534
7535 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7536 Handle tabs.
7537
bff8c71f
TT
75382019-03-18 Tom Tromey <tromey@adacore.com>
7539
7540 * ada-lang.c (empty_array): Add "high" parameter.
7541 (ada_evaluate_subexp): Update.
7542
58785d98
ST
75432019-03-17 Sergei Trofimovich <siarheit@google.com>
7544
7545 * unittests/string_view-selftests.c: Define
7546 _initialize_string_view_selftests unconditionally.
7547
d4cbef22
ВМ
75482019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7549
7550 PR gdb/24350
7551 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7552
fce4c071
ВМ
75532019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7554
7555 PR gdb/24351
7556 * windows-nat.c (display_selector): Fix format specifiers.
7557
f7f0a123
EZ
75582019-03-17 Eli Zaretskii <eliz@gnu.org>
7559
7560 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7561 tui_refill_source_window instead of tui_refresh_win, to update the
7562 current execution line. This fixes redisplay of the current line
7563 when stepping through the code with "next" or "step".
7564
ab42892f
EZ
75652019-03-16 Eli Zaretskii <eliz@gnu.org>
7566
7567 * source-cache.c (source_cache::get_source_lines): Call
7568 find_source_lines to initialize s->nlines. This fixes vertical
7569 scrolling of TUI source window when the DOWN arrow is pressed.
7570
8d8c087f
PW
75712019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7572
7573 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7574 linux-thread-db.c (_initialize_thread_db): Likewise.
7575
798e1c30
EZ
75762019-03-16 Eli Zaretskii <eliz@gnu.org>
7577
7578 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7579 wclrtoeol in tui_show_source_line". This reverts changes made in
7580 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7581
eefba3da
TT
75822019-03-15 Tom Tromey <tom@tromey.com>
7583
7584 * symtab.h (struct minimal_symbol): Derive from
7585 general_symbol_info.
7586 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7587 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7588 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7589 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7590 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7591 (MSYMBOL_SEARCH_NAME): Update.
7592 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7593 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7594 * minsyms.c (minimal_symbol_reader::record_full): Update.
7595
0de2420c
TT
75962019-03-15 Tom Tromey <tom@tromey.com>
7597
7598 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7599
042d75e4
TT
76002019-03-15 Tom Tromey <tom@tromey.com>
7601
7602 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7603 unique_xmalloc_ptr.
7604 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7605 Update.
7606 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7607 (build_minimal_symbol_hash_tables)
7608 (minimal_symbol_reader::install): Update.
7609
db92718b
TT
76102019-03-15 Tom Tromey <tom@tromey.com>
7611
7612 * symtab.c (create_demangled_names_hash): Update.
7613 (symbol_set_names): Update.
7614 * objfiles.h (struct objfile_per_bfd_storage)
7615 <demangled_names_hash>: Now an htab_up.
7616 * objfiles.c (objfile_per_bfd_storage): Simplify.
7617
d6797f46
TT
76182019-03-15 Tom Tromey <tom@tromey.com>
7619
7620 * objfiles.h (struct objfile_per_bfd_storage): Declare
7621 destructor.
7622 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7623 New.
7624 (get_objfile_bfd_data): Use new. Don't initialize
7625 language_of_main.
7626 (free_objfile_per_bfd_storage): Remove.
7627 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7628
741d7538
TT
76292019-03-15 Tom Tromey <tom@tromey.com>
7630
7631 * symfile.c (reread_symbols): Update.
7632 * objfiles.c (objfile::objfile): Update.
7633 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7634 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7635 comment.
7636 (minimal_symbol_reader::install): Update.
7637 (terminate_minimal_symbol_table): Remove.
7638 * jit.c (jit_object_close_impl): Update.
7639
788c80d1
TT
76402019-03-15 Tom Tromey <tom@tromey.com>
7641
7642 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7643 initializations.
7644
1b7a07cb
TT
76452019-03-15 Tom Tromey <tom@tromey.com>
7646
7647 * objfiles.h (struct objfile_per_bfd_storage)
7648 <demangled_hash_languages>: Now a bitset.
7649 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7650 (lookup_minimal_symbol): Update.
7651
3db066bc
TT
76522019-03-15 Tom Tromey <tom@tromey.com>
7653
7654 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7655 Don't return the symbol.
7656 * coffread.c (record_minimal_symbol): Use record_full.
7657
3fff2c37
EZ
76582019-03-14 Eli Zaretskii <eliz@gnu.org>
7659
7660 The MS-Windows port of ncurses fails to switch to a color pair if
7661 one or both of the colors are the implicit default colors. This
7662 change records the default colors when TUI is initialized, and
7663 then specifies them explicitly when a color pair uses the default
7664 colors. This allows color styling in TUI mode on MS-Windows.
7665
7666 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7667 ncurses_norm_attr.
7668 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7669 colors in ncurses_norm_attr.
7670 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7671 "none", replace it with the default color recorded in
7672 ncurses_norm_attr.
7673
3b336828
TT
76742019-03-14 Tom Tromey <tromey@adacore.com>
7675
7676 * source-cache.h (class source_cache) <get_source_lines>: Return
7677 std::string.
7678 * source-cache.c (source_cache::extract_lines): Handle case where
7679 first_pos==npos. Return std::string.
7680 (source_cache::get_source_lines): Update.
7681
d085f989
TT
76822019-03-14 Tom Tromey <tromey@adacore.com>
7683
7684 * NEWS: Add item for "style sources" commands.
7685 * source-cache.c (source_cache::get_source_lines): Check
7686 source_styling.
7687 * cli/cli-style.c (source_styling): New global.
7688 (_initialize_cli_style): Add "style sources" commands.
7689 (show_style_sources): New function.
7690 * cli/cli-style.h (source_styling): Declare.
7691
6f11e682
TT
76922019-03-14 Pedro Alves <palves@redhat.com>
7693 Tom Tromey <tromey@adacore.com>
7694
7695 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7696 * tui/tui-winsource.c (tui_refill_source_window): New function,
7697 from...
7698 (tui_horizontal_source_scroll): ... here. Move some logic.
7699 * cli/cli-style.c (set_style_enabled): Notify new observable.
7700 * tui/tui-hooks.c (tui_redisplay_source): New function.
7701 (tui_attach_detach_observers): Attach or detach
7702 tui_redisplay_source.
7703 * observable.h (source_styling_changed): New observable.
7704 * observable.c: Define source_styling_changed observable.
7705
a068643d
TT
77062019-03-13 Tom Tromey <tromey@adacore.com>
7707
7708 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7709 (i386_gnu_nat_target::store_registers): Update.
7710 * target-debug.h (target_debug_print_std_string): New macro.
7711 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7712 * windows-tdep.c (display_one_tib): Update.
7713 * tui/tui-stack.c (tui_make_status_line): Update.
7714 * top.c (print_inferior_quit_action): Update.
7715 * thread.c (thr_try_catch_cmd): Update.
7716 (add_thread_with_info): Update.
7717 (thread_target_id_str): Update.
7718 (thr_try_catch_cmd): Update.
7719 (thread_command): Update.
7720 (thread_find_command): Update.
7721 * record-btrace.c (record_btrace_target::info_record)
7722 (record_btrace_resume_thread, record_btrace_target::resume)
7723 (record_btrace_cancel_resume, record_btrace_step_thread)
7724 (record_btrace_target::wait, record_btrace_target::wait)
7725 (record_btrace_target::wait, record_btrace_target::stop): Update.
7726 * progspace.c (print_program_space): Update.
7727 * process-stratum-target.c
7728 (process_stratum_target::thread_address_space): Update.
7729 * linux-fork.c (linux_fork_mourn_inferior)
7730 (detach_checkpoint_command, info_checkpoints_command)
7731 (linux_fork_context): Update.
7732 (linux_fork_detach): Update.
7733 (class scoped_switch_fork_info): Update.
7734 (delete_checkpoint_command): Update.
7735 * infrun.c (follow_fork_inferior): Update.
7736 (follow_fork_inferior): Update.
7737 (proceed_after_vfork_done): Update.
7738 (handle_vfork_child_exec_or_exit): Update.
7739 (follow_exec): Update.
7740 (displaced_step_prepare_throw): Update.
7741 (displaced_step_restore): Update.
7742 (start_step_over): Update.
7743 (resume_1): Update.
7744 (clear_proceed_status_thread): Update.
7745 (proceed): Update.
7746 (print_target_wait_results): Update.
7747 (do_target_wait): Update.
7748 (context_switch): Update.
7749 (stop_all_threads): Update.
7750 (restart_threads): Update.
7751 (finish_step_over): Update.
7752 (handle_signal_stop): Update.
7753 (switch_back_to_stepped_thread): Update.
7754 (keep_going_pass_signal): Update.
7755 (print_exited_reason): Update.
7756 (normal_stop): Update.
7757 * inferior.c (inferior_pid_to_str): Change return type.
7758 (print_selected_inferior): Update.
7759 (add_inferior): Update.
7760 (detach_inferior): Update.
7761 * dummy-frame.c (fprint_dummy_frames): Update.
7762 * dcache.c (dcache_info_1): Update.
7763 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7764 (btrace_fetch, btrace_clear): Update.
7765 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7766 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7767 type.
7768 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7769 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7770 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7771 * gdbarch.c, gdbarch.h: Rebuild.
7772 * gdbarch.sh (core_pid_to_str): Change return type.
7773 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7774 return type.
7775 (windows_nat_target::pid_to_str): Change return type.
7776 (windows_delete_thread): Update.
7777 (windows_nat_target::attach): Update.
7778 (windows_nat_target::files_info): Update.
7779 * target-delegates.c: Rebuild.
7780 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7781 return type.
7782 (sol_thread_target::pid_to_str): Change return type.
7783 * remote.c (class remote_target) <pid_to_str>: Change return
7784 type.
7785 (remote_target::pid_to_str): Change return type.
7786 (extended_remote_target::attach, remote_target::remote_stop_ns)
7787 (remote_target::remote_notif_remove_queued_reply)
7788 (remote_target::push_stop_reply, remote_target::disable_btrace):
7789 Update.
7790 (extended_remote_target::attach): Update.
7791 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7792 type.
7793 (gdbsim_target::pid_to_str): Change return type.
7794 * ravenscar-thread.c (struct ravenscar_thread_target)
7795 <pid_to_str>: Change return type.
7796 (ravenscar_thread_target::pid_to_str): Change return type.
7797 * procfs.c (class procfs_target) <pid_to_str>: Change return
7798 type.
7799 (procfs_target::pid_to_str): Change return type.
7800 (procfs_target::attach): Update.
7801 (procfs_target::detach): Update.
7802 (procfs_target::fetch_registers): Update.
7803 (procfs_target::store_registers): Update.
7804 (procfs_target::wait): Update.
7805 (procfs_target::files_info): Update.
7806 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7807 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7808 return type.
7809 (nto_procfs_target::pid_to_str): Change return type.
7810 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7811 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7812 return type.
7813 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7814 (exit_lwp): Update.
7815 (attach_proc_task_lwp_callback, get_detach_signal)
7816 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7817 (linux_nat_target::resume, wait_lwp, stop_callback)
7818 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7819 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7820 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7821 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7822 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7823 type.
7824 (inf_ptrace_target::attach): Update.
7825 (inf_ptrace_target::files_info): Update.
7826 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7827 type.
7828 (go32_nat_target::pid_to_str): Change return type.
7829 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7830 (gnu_nat_target::wait): Update.
7831 (gnu_nat_target::wait): Update.
7832 (gnu_nat_target::resume): Update.
7833 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7834 (fbsd_nat_target::wait): Update.
7835 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7836 type.
7837 (darwin_nat_target::attach): Update.
7838 * corelow.c (class core_target) <pid_to_str>: Change return type.
7839 (core_target::pid_to_str): Change return type.
7840 * target.c (normal_pid_to_str): Change return type.
7841 (default_pid_to_str): Likewise.
7842 (target_pid_to_str): Change return type.
7843 (target_translate_tls_address): Update.
7844 (target_announce_detach): Update.
7845 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7846 return type.
7847 (bsd_uthread_target::pid_to_str): Change return type.
7848 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7849 type.
7850 (bsd_kvm_target::pid_to_str): Change return type.
7851 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7852 return type.
7853 (aix_thread_target::pid_to_str): Change return type.
7854 * target.h (struct target_ops) <pid_to_str>: Change return type.
7855 (target_pid_to_str, normal_pid_to_str): Likewise.
7856 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7857 type.
7858 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7859 type.
7860 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7861 return type.
7862 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7863 type.
7864 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7865 type.
7866 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7867 return type.
7868
b4be1b06
SM
78692019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7870
7871 * NEWS: Mention that the new default MI version is 3. Mention
7872 changes to the output of commands and events that deal with
7873 multi-location breakpoints.
7874 * breakpoint.c: Include "mi/mi-out.h".
7875 (print_one_breakpoint): Change output syntax if using MI version
7876 >= 3.
7877 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7878 New.
7879 (mi_multi_location_breakpoint_output_fixed): New.
7880 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7881 (mi_cmd_fix_multi_location_breakpoint_output): New.
7882 (mi_multi_location_breakpoint_output_fixed): New.
7883 * mi/mi-cmds.c (mi_cmds): Register command
7884 -fix-multi-location-breakpoint-output.
7885 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7886 interpreter "mi".
7887
8e5e5494
SM
78882019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7889
7890 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7891 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7892 instantiate mi_ui_out based on interpreter name.
7893 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7894 * mi/mi-main.c (mi_load_progress): Likewise.
7895
197df35e
JB
78962019-03-12 John Baldwin <jhb@FreeBSD.org>
7897
7898 * NEWS: Combine separate "New targets" sections for 8.3.
7899
8399425f
JB
79002019-03-12 John Baldwin <jhb@FreeBSD.org>
7901
7902 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7903 (ppcfbsd_init_abi): Install gdbarch
7904 "fetch_tls_load_module_address" and "get_thread_local_address"
7905 methods.
7906
b0f87ed0
JB
79072019-03-12 John Baldwin <jhb@FreeBSD.org>
7908
7909 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7910 (riscv_fbsd_init_abi): Install gdbarch
7911 "fetch_tls_load_module_address" and "get_thread_local_address"
7912 methods.
7913
ce25aa57
JB
79142019-03-12 John Baldwin <jhb@FreeBSD.org>
7915
7916 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7917 (i386fbsd_init_abi): Install gdbarch
7918 "fetch_tls_load_module_address" and "get_thread_local_address"
7919 methods.
7920
f5424cfa
JB
79212019-03-12 John Baldwin <jhb@FreeBSD.org>
7922
7923 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7924 (amd64fbsd_init_abi): Install gdbarch
7925 "fetch_tls_load_module_address" and "get_thread_local_address"
7926 methods.
7927
945f3901
JB
79282019-03-12 John Baldwin <jhb@FreeBSD.org>
7929
7930 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7931 (struct fbsd_pspace_data): New type.
7932 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7933 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7934 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7935 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7936 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7937
ef0bd204
JB
79382019-03-12 John Baldwin <jhb@FreeBSD.org>
7939
7940 * gdbtypes.c (lookup_struct_elt): New function.
7941 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7942 * gdbtypes.h (struct struct_elt): New type.
7943 (lookup_struct_elt): New prototype.
7944
36c53a02
JB
79452019-03-12 John Baldwin <jhb@FreeBSD.org>
7946
7947 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7948 remove disabled code block.
7949
6e056c81
JB
79502019-03-12 John Baldwin <jhb@FreeBSD.org>
7951
7952 * gdbarch.sh (get_thread_local_address): New method.
7953 * gdbarch.h, gdbarch.c: Regenerate.
7954 * target.c (target_translate_tls_address): Use
7955 gdbarch_get_thread_local_address if present instead of
7956 target::get_thread_local_address.
7957
cd250a18
JB
79582019-03-12 John Baldwin <jhb@FreeBSD.org>
7959
7960 * target.h (target::get_thread_local_address): Update comment.
7961
df22c1e5
JB
79622019-03-12 John Baldwin <jhb@FreeBSD.org>
7963
7964 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7965 objfile->separate_debug_objfile_backlink if not NULL.
7966
dd6876c9
JB
79672019-03-12 John Baldwin <jhb@FreeBSD.org>
7968
7969 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7970 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7971 (amd64bsd_store_inferior_registers): Likewise.
7972 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7973 Enable segment base registers.
7974 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7975 PT_GETFSBASE and PT_GETGSBASE.
7976 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7977 PT_SETGSBASE.
7978 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7979 segment base registers.
7980 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7981
1163a4b7
JB
79822019-03-12 John Baldwin <jhb@FreeBSD.org>
7983
7984 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7985 Update calls to i386_target_description to add 'segments'
7986 parameter.
7987 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7988 add segment base registers.
7989 * arch/i386.c (i386_create_target_description): Add 'segments'
7990 parameter to enable segment base registers.
7991 * arch/i386.h (i386_create_target_description): Likewise.
7992 * features/i386/32bit-segments.xml: New file.
7993 * features/i386/32bit-segments.c: Generate.
7994 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7995 call to i386_target_description to add 'segments' parameter.
7996 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7997 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7998 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7999 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8000 if feature is present.
8001 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8002 Add 'segments' parameter to call to i386_target_description.
8003 (i386_target_description): Add 'segments' parameter to enable
8004 segment base registers.
8005 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8006 to call to i386_target_description.
8007 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8008 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8009 Define I386_NUM_REGS.
8010 (i386_target_description): Add 'segments' parameter to enable
8011 segment base registers.
8012
3a350822
EZ
80132019-03-12 Eli Zaretskii <eliz@gnu.org>
8014
8015 PR/24325
8016 * source-cache.c: #undef open and close, to avoid unresolved
8017 externals during linking.
8018
ffdd69cf
TT
80192019-03-12 Tom Tromey <tromey@adacore.com>
8020
8021 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8022 const. Add initializers.
8023 (_initialize_remote): Don't initialize ptid globals.
8024
ec148c57
PA
80252019-03-12 Pedro Alves <palves@redhat.com>
8026
8027 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8028
32764270
PA
80292019-03-12 Pedro Alves <palves@redhat.com>
8030
8031 * cp-name-parser.y (main): Remove unused 'len' variable.
8032
17547186
TT
80332019-03-12 Tom Tromey <tromey@adacore.com>
8034
8035 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8036 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8037
d3a70e03
TT
80382019-03-12 Tom Tromey <tromey@adacore.com>
8039
8040 * linux-nat.c (iterate_over_lwps): Update.
8041 (stop_callback): Remove parameter.
8042 (stop_wait_callback, detach_callback, resume_set_callback)
8043 (select_singlestep_lwp_callback, set_ignore_sigint)
8044 (status_callback, resumed_callback, resume_clear_callback)
8045 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8046 data parameter.
8047 (linux_nat_target::detach, linux_nat_target::resume)
8048 (linux_stop_and_wait_all_lwps, select_event_lwp)
8049 (linux_nat_filter_event, linux_nat_wait_1)
8050 (linux_nat_target::kill, linux_nat_target::stop)
8051 (linux_nat_target::stop): Update.
8052 (linux_nat_resume_callback): Change type.
8053 (resume_stopped_resumed_lwps, count_events_callback)
8054 (select_event_lwp_callback): Likewise.
8055 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8056 * arm-linux-nat.c (struct update_registers_data): Remove.
8057 (update_registers_callback): Change type.
8058 (arm_linux_insert_hw_breakpoint1): Update.
8059 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8060 parameter.
8061 (x86_linux_dr_set_addr): Update.
8062 (x86_linux_dr_set_control): Update.
8063 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8064 (iterate_over_lwps): Use gdb::function_view.
8065 * nat/aarch64-linux-hw-point.c (struct
8066 aarch64_dr_update_callback_param): Remove.
8067 (debug_reg_change_callback): Change type.
8068 (aarch64_notify_debug_reg_change): Update.
8069 * s390-linux-nat.c (s390_refresh_per_info): Update.
8070
82cb27ff
TT
80712019-03-11 Tom Tromey <tromey@adacore.com>
8072
8073 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8074 redundant assignment to "this_cu".
8075
568c0683
SM
80762019-03-08 Simon Marchi <simon.marchi@efficios.com>
8077
8078 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8079
f09ce22d
SM
80802019-03-08 Simon Marchi <simon.marchi@efficios.com>
8081
8082 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8083 from...
8084 (rank_one_type): ... this.
8085
595f96a9
SM
80862019-03-08 Simon Marchi <simon.marchi@efficios.com>
8087
8088 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8089 from...
8090 (rank_one_type): ... this.
8091
2598a94b
SM
80922019-03-08 Simon Marchi <simon.marchi@efficios.com>
8093
8094 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8095 from...
8096 (rank_one_type): ... this.
8097
7f17b20d
SM
80982019-03-08 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8101 from...
8102 (rank_one_type): ... this.
8103
2c509035
SM
81042019-03-08 Simon Marchi <simon.marchi@efficios.com>
8105
8106 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8107 from...
8108 (rank_one_type): ... this.
8109
0dd322dc
SM
81102019-03-08 Simon Marchi <simon.marchi@efficios.com>
8111
8112 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8113 from...
8114 (rank_one_type): ... this.
8115
41ea4728
SM
81162019-03-08 Simon Marchi <simon.marchi@efficios.com>
8117
8118 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8119 from...
8120 (rank_one_type): ... this.
8121
793cd1d2
SM
81222019-03-08 Simon Marchi <simon.marchi@efficios.com>
8123
8124 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8125 from...
8126 (rank_one_type): ... this.
8127
34910087
SM
81282019-03-08 Simon Marchi <simon.marchi@efficios.com>
8129
8130 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8131 from...
8132 (rank_one_type): ... this.
8133
f1f832d6
SM
81342019-03-08 Simon Marchi <simon.marchi@efficios.com>
8135
8136 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8137 from...
8138 (rank_one_type): ... this.
8139
b9f4512f
SM
81402019-03-08 Simon Marchi <simon.marchi@efficios.com>
8141
8142 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8143 from...
8144 (rank_one_type): ... this.
8145
9293fc63
SM
81462019-03-08 Simon Marchi <simon.marchi@efficios.com>
8147
8148 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8149 from...
8150 (rank_one_type): ... this.
8151
e3abbe7e
PW
81522019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8153
8154 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8155 inferior-events' shows the example events.
8156
e4adb939
EZ
81572019-03-08 Eli Zaretskii <eliz@gnu.org>
8158
8159 Support styling on native MS-Windows console
8160
8161 PR/24315
8162 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8163 on MS-Windows if $TERM is not defined.
8164
8165 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8166
8167 * posix-hdep.c (gdb_console_fputs):
8168 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8169 functions.
8170 * ui-file.h (gdb_console_fputs): Add prototype.
8171
8172 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8173 back to fputs only if the former returns zero.
8174
25629dfd
TT
81752019-03-07 Tom Tromey <tom@tromey.com>
8176
8177 * symmisc.c (print_symbol_bcache_statistics): Update.
8178 (print_objfile_statistics): Update.
8179 * symfile.c (allocate_symtab): Update.
8180 * stabsread.c: Don't include bcache.h.
8181 * psymtab.h (struct psymbol_bcache): Don't declare.
8182 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8183 (psymbol_bcache_init, psymbol_bcache_free)
8184 (psymbol_bcache_get_bcache): Don't declare.
8185 * psymtab.c (struct psymbol_bcache): Remove.
8186 (psymtab_storage::psymtab_storage): Update.
8187 (psymtab_storage::~psymtab_storage): Update.
8188 (psymbol_bcache_init, psymbol_bcache_free)
8189 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8190 (add_psymbol_to_bcache): Update.
8191 (allocate_psymtab): Update.
8192 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8193 macro_cache>: No longer pointers.
8194 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8195 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8196 * macrotab.c (macro_bcache): Update.
8197 * macroexp.c: Don't include bcache.h.
8198 * gdbtypes.c (check_types_worklist): Update.
8199 (types_deeply_equal): Remove TRY/CATCH. Update.
8200 * elfread.c (elf_symtab_read): Update.
8201 * dwarf2read.c: Don't include bcache.h.
8202 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8203 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8204 (print_bcache_statistics, bcache_memory_used): Don't declare.
8205 (struct bcache): Move from bcache.c. Add constructor, destructor,
8206 methods. Rename all data members.
8207 * bcache.c (struct bcache): Move to bcache.h.
8208 (bcache::expand_hash_table): Rename from expand_hash_table.
8209 (bcache): Remove.
8210 (bcache::insert): Rename from bcache_full.
8211 (bcache::compare): Rename from bcache_compare.
8212 (bcache_xmalloc): Remove.
8213 (bcache::~bcache): Rename from bcache_xfree.
8214 (bcache::print_statistics): Rename from print_bcache_statistics.
8215 (bcache::memory_used): Rename from bcache_memory_used.
8216
fe726667
PA
82172019-03-07 Pedro Alves <palves@redhat.com>
8218
8219 * infrun.c (normal_stop): Also check for
8220 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8221
7584bb30
AB
82222019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8223
8224 * f-lang.c (value_from_host_double): Moved to...
8225 * value.c (value_from_host_double): ...here.
8226 * value.h (value_from_host_double): Declare.
8227 * guile/scm-math.c (vlscm_convert_typed_number): Use
8228 value_from_host_double.
8229 (vlscm_convert_number): Likewise.
8230 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8231 * python/py-value.c (convert_value_from_python): Likewise.
8232
a7b1986e
TT
82332019-03-06 Tom Tromey <tom@tromey.com>
8234
8235 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8236
0ccf4211
TT
82372019-03-06 Tom Tromey <tom@tromey.com>
8238
8239 * utils.h (free_current_contents): Don't declare.
8240 * utils.c (free_current_contents): Remove.
8241
fe7b42e5
TT
82422019-03-06 Tom Tromey <tom@tromey.com>
8243
8244 * top.c (quit_force): Update.
8245 * main.c (captured_command_loop): Update.
8246 * common/new-op.c (operator new): Update.
8247 * common/common-exceptions.c (struct catcher)
8248 <save_cleanup_chain>: Remove member.
8249 (exceptions_state_mc_init): Update.
8250 (exception_try_scope_entry): Return nullptr.
8251 (exception_try_scope_exit, exception_rethrow)
8252 (throw_exception_sjlj, throw_exception_cxx): Update.
8253 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8254 (all_cleanups, do_cleanups, discard_cleanups)
8255 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8256 (restore_cleanups, restore_final_cleanups): Don't declare.
8257 (do_final_cleanups): Remove parameter.
8258 * common/cleanups.c (cleanup_chain, make_cleanup)
8259 (make_cleanup_dtor, all_cleanups, do_cleanups)
8260 (discard_my_cleanups, discard_cleanups)
8261 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8262 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8263 (null_cleanup): Remove.
8264 (do_final_cleanups): Remove parameter.
8265
c6321f19
TT
82662019-03-06 Tom Tromey <tom@tromey.com>
8267
8268 * remote.c (remote_target::remote_parse_stop_reply): Use
8269 unique_xmalloc_ptr.
8270
61b30099
TT
82712019-03-06 Tom Tromey <tom@tromey.com>
8272
8273 * stabsread.c (struct stabs_field_info): Rename from field_info.
8274 <list, fnlist>: Add initializers.
8275 <obstack>: New member.
8276 (read_member_functions, read_struct_fields, read_baseclasses):
8277 Allocate on obstack. Don't use cleanups.
8278 (read_one_struct_field, read_member_functions, read_struct_fields)
8279 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8280 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8281 (read_struct_type): Update.
8282
6cceac94
TT
82832019-03-06 Tom Tromey <tom@tromey.com>
8284
8285 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8286 * common/filestuff.h (make_cleanup_close): Don't declare.
8287 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8288 Remove.
8289
72412762
TT
82902019-03-06 Tom Tromey <tom@tromey.com>
8291
8292 * solib-aix.c: Use make_scope_exit.
8293
2b6ff1c0
TT
82942019-03-06 Tom Tromey <tom@tromey.com>
8295
8296 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8297 Use make_scope_exit.
8298
d01c5877
TT
82992019-03-06 Tom Tromey <tom@tromey.com>
8300
8301 * solib-svr4.c (disable_probes_interface): Remove parameter.
8302 (svr4_handle_solib_event): Use make_scope_exit.
8303
32603266
TT
83042019-03-06 Tom Tromey <tom@tromey.com>
8305
8306 * remote.c (struct stop_reply_deleter): Remove.
8307 (stop_reply_up): Update.
8308 (struct stop_reply): Derive from notif_event. Don't typedef.
8309 <regcache>: Now a std::vector.
8310 (stop_reply_xfree): Remove.
8311 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8312 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8313 (remote_target::discard_pending_stop_replies): Use delete.
8314 (remote_target::remote_parse_stop_reply): Update.
8315 (remote_target::process_stop_reply): Update.
8316 * remote-notif.h (struct notif_event): Add virtual destructor.
8317 Remove "dtr" member.
8318 (struct notif_client) <alloc_event>: Return a unique_ptr.
8319 (notif_event_xfree): Don't declare.
8320 (notif_event_up): New typedef.
8321 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8322 (notif_event_xfree, do_notif_event_xfree): Remove.
8323 (remote_notif_state_xfree): Update.
8324
9799571e
TT
83252019-03-06 Tom Tromey <tom@tromey.com>
8326
8327 * infrun.c (displaced_step_clear_cleanup): Now a
8328 forward_scope_exit type.
8329 (displaced_step_prepare_throw): Update.
8330 (displaced_step_fixup): Update.
8331
09e3c4ca
TT
83322019-03-06 Tom Tromey <tom@tromey.com>
8333
8334 * inferior.h (class inferior): Update comment.
8335 * gdbthread.h (class thread_info): Update comment.
8336
e2a03548
TT
83372019-03-06 Joel Brobecker <brobecker@adacore.com>
8338 Tom Tromey <tom@tromey.com>
8339
8340 * stabsread.h (struct stab_section_list): Remove.
8341 (coffstab_build_psymtabs): Update.
8342 * dbxread.c (symbuf_sections): Now a std::vector.
8343 (sect_idx): New global.
8344 (fill_symbuf): Update.
8345 (coffstab_build_psymtabs): Change type of stabsects parameter.
8346 Update.
8347 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8348 std::vector.
8349 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8350 (coff_locate_sections): Update.
8351 (coff_symfile_read): Remove cleanups. Update.
8352 (init_stringtab): Add storage parameter.
8353 (free_stringtab, free_stringtab_cleanup): Remove.
8354 (init_lineno): Add storage parameter.
8355 (free_linetab, free_linetab_cleanup): Remove.
8356
b7e60d85
PA
83572019-03-06 Pedro Alves <palves@redhat.com>
8358
8359 * linux-fork.c (fork_info::clobber_regs): Delete.
8360 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8361 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8362 comment. Adjust.
8363 (scoped_switch_fork_info::scoped_switch_fork_info)
8364 (checkpoint_command, linux_fork_context): Adjust
8365 fork_save_infrun_state calls.
8366
e52c971f
PA
83672019-03-06 Pedro Alves <palves@redhat.com>
8368
8369 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8370 (inf_has_multiple_threads): Return 'bool' and rewrite using
8371 inferior_info::threads().
8372
06974e6c
PA
83732019-03-06 Pedro Alves <palves@redhat.com>
8374
8375 * linux-fork.c: Include <list>.
8376 (fork_list): Now a std::list instance.
8377 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8378 (forks_exist_p, find_last_fork): Adjust.
8379 (new_fork): Delete.
8380 (one_fork_p): New.
8381 (add_fork): Adjust.
8382 (free_fork): Delete, folded into fork_info::~fork_info().
8383 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8384 Adjust.
8385 (init_fork_list): Delete.
8386 (linux_fork_killall, linux_fork_mourn_inferior)
8387 (linux_fork_detach, info_checkpoints_command): Adjust.
8388 (_initialize_linux_fork): No longer call init_fork_list.
8389
72f31aea
PA
83902019-03-06 Pedro Alves <palves@redhat.com>
8391
8392 * linux-fork.c (new_fork): New, split out of ...
8393 (add_fork): ... this. Return void. Move "first fork" special
8394 case from here, to ...
8395 (checkpoint_command): ... here.
8396 * linux-linux.h (add_fork): Return void.
8397
efbecbc1
AB
83982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8399
8400 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8401
0841c79a
AB
84022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8403 Chris January <chris.january@arm.com>
8404 David Lecomber <david.lecomber@arm.com>
8405
8406 * f-exp.y: New token, UNOP_INTRINSIC.
8407 (exp): New pattern using UNOP_INTRINSIC token.
8408 (f77_keywords): Add 'abs' keyword.
8409 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8410 (value_from_host_double): New function.
8411 (evaluate_subexp_f): Support UNOP_ABS.
8412
4a270568
AB
84132019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8414
8415 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8416 types.
8417
067630bd
AB
84182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8419
8420 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8421 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8422 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8423
3be47f7a
AB
84242019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8425
8426 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8427
4d00f5d8
AB
84282019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8429 Chris January <chris.january@arm.com>
8430
8431 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8432 * f-exp.y: Define 'KIND' token.
8433 (exp): New pattern for KIND expressions.
8434 (ptype): Handle types with a kind extension.
8435 (direct_abs_decl): Extend to spot kind extensions.
8436 (f77_keywords): Add 'kind' to the list.
8437 (push_kind_type): New function.
8438 (convert_to_kind_type): New function.
8439 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8440 * parse.c (operator_length_standard): Likewise.
8441 * parser-defs.h (enum type_pieces): Add tp_kind.
8442 * std-operator.def: Add UNOP_KIND.
8443
e454224f
AB
84442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8445
8446 * f-exp.y (f_parse): Set yydebug.
8447
9dad4a58
AB
84482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8449
8450 * f-lang.c (evaluate_subexp_f): New function.
8451 (exp_descriptor_f): New global.
8452 (f_language_defn): Use exp_descriptor_f instead of
8453 exp_descriptor_standard.
8454
c8f91604
AB
84552019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8456
8457 * f-exp.y (struct token): Add comments.
8458 (dot_ops): Remove uppercase versions and the end marker.
8459 (f77_keywords): Likewise.
8460 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8461 entries in the dot_ops array are case insensitive, and use
8462 strncasecmp to compare strings. Also some whitespace cleanup in
8463 this area. Similar for the f77_keywords array, except entries in
8464 this list might be case sensitive.
8465
dd9f2c76
AB
84662019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8467
8468 * f-exp.y (struct f77_boolean_val): Add comments.
8469 (boolean_values): Remove uppercase versions, and end marker.
8470 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8471 and use strncasecmp to achieve case insensitivity. Additionally,
8472 perform whitespace cleanup around this code.
8473
67a3048c
TT
84742019-03-06 Tom Tromey <tromey@adacore.com>
8475
8476 * remote-sim.c (gdbsim_target_open): Use result of
8477 gdb_argv::release.
8478
aa3cfbda
RB
84792019-03-06 Richard Bunt <richard.bunt@arm.com>
8480 Dirk Schubert <dirk.schubert@arm.com>
8481 Chris January <chris.january@arm.com>
8482
8483 * eval.c (evaluate_subexp_standard): Call Fortran argument
8484 wrapping logic.
8485 * f-lang.c (struct value): A value which can be passed into a
8486 Fortran function call.
8487 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8488 where appropriate.
8489 (struct type): Value ready for a Fortran function call.
8490 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8491 is needed.
8492 * f-lang.h (fortran_argument_convert): Declaration.
8493 (fortran_preserve_arg_pointer): Declaration.
8494 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8495
ea38e5df
TT
84962019-03-05 Tom Tromey <tromey@adacore.com>
8497
8498 * python/py-prettyprint.c (print_string_repr): Remove #if.
8499 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8500
06b5b831
TT
85012019-03-05 Tom Tromey <tromey@adacore.com>
8502
8503 * target.c (the_dummy_target): Move later. Change type to
8504 "dummy_target".
8505 (initialize_targets): Don't initialize the_dummy_target.
8506
edbd9e45
TT
85072019-03-05 Tom Tromey <tromey@adacore.com>
8508
8509 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8510 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8511
c119e040
TT
85122019-03-05 Tom Tromey <tromey@adacore.com>
8513
8514 * windows-nat.c (windows_nat_target::attach)
8515 (windows_nat_target::detach): Don't call gdb_flush.
8516 * valprint.c (generic_val_print, val_print, val_print_string):
8517 Don't call gdb_flush.
8518 * utils.c (defaulted_query): Don't call gdb_flush.
8519 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8520 * target.c (target_announce_detach): Don't call gdb_flush.
8521 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8522 * remote.c (extended_remote_target::attach): Don't call
8523 gdb_flush.
8524 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8525 * printcmd.c (do_examine): Don't call gdb_flush.
8526 (info_display_command): Don't call gdb_flush.
8527 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8528 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8529 * memattr.c (info_mem_command): Don't call gdb_flush.
8530 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8531 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8532 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8533 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8534 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8535 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8536 (gnu_nat_target::detach): Don't call gdb_flush.
8537 * f-valprint.c (f_val_print): Don't call gdb_flush.
8538 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8539 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8540 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8541 gdb_flush.
8542 * c-valprint.c (c_val_print): Don't call gdb_flush.
8543 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8544
895dafa6
TT
85452019-03-05 Tom Tromey <tromey@adacore.com>
8546
8547 * varobj.c (update_dynamic_varobj_children): Update.
8548 (install_default_visualizer): Use reset, not release.
8549 * value.c (set_internalvar): Update.
8550 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8551 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8552 ATTRIBUTE_UNUSED_RESULT.
8553
88a774b9
TT
85542019-03-05 Tom Tromey <tromey@adacore.com>
8555
8556 * remote.c (class scoped_remote_fd) <release>: Add
8557 ATTRIBUTE_UNUSED_RESULT.
8558
4e4a8b93
TT
85592019-03-05 Tom Tromey <tromey@adacore.com>
8560
8561 * macroexp.c (struct macro_buffer) <release>: Add
8562 ATTRIBUTE_UNUSED_RESULT.
8563
083eef1f
TT
85642019-03-05 Tom Tromey <tromey@adacore.com>
8565
8566 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8567 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8568 ATTRIBUTE_UNUSED_RESULT.
8569
3cabd438
TT
85702019-03-05 Tom Tromey <tromey@adacore.com>
8571
8572 * common/scoped_fd.h (class scoped_fd) <release>: Add
8573 ATTRIBUTE_UNUSED_RESULT.
8574
41e3300a
TT
85752019-03-05 Tom Tromey <tromey@adacore.com>
8576
8577 * parser-defs.h (struct parser_state) <release>: Add
8578 ATTRIBUTE_UNUSED_RESULT.
8579
18cb7c9f
TT
85802019-03-05 Tom Tromey <tromey@adacore.com>
8581
8582 * utils.h (class gdb_argv) <release>: Add
8583 ATTRIBUTE_UNUSED_RESULT.
8584 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8585
41fa577f
EZ
85862019-03-02 Eli Zaretskii <eliz@gnu.org>
8587
a6a4b2c6
EZ
8588 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8589 for-loop range, to avoid compiler warnings.
8590
8591 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8592 avoid compiler warnings about unused variables.
8593
742a7df5
EZ
8594 * NEWS: Mention end of support for native debugging on MS-Windows
8595 before XP.
8596
41fa577f
EZ
8597 PR gdb/24292
8598 * common/netstuff.c:
8599 * gdbserver/gdbreplay.c
8600 * gdbserver/remote-utils.c:
8601 * ser-tcp.c:
8602 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8603 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8604 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8605 'getaddrinfo' and 'freeaddrinfo' were not available before
8606 Windows XP, and mingw.org's MinGW headers by default define
8607 _WIN32_WINNT to 0x500.
8608
827f438f
GB
86092019-03-01 Gary Benson <gbenson@redhat.com>
8610
8611 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8612
92137da0
RO
86132019-02-28 Brian Vandenberg <phantall@gmail.com>
8614 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8615
8616 PR gdb/8527
8617 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8618 set_sigint_trap, clear_sigint_trap.
8619
799efbe8
PW
86202019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8621
8622 * target.c (target_detach): Clear the regcache and the
8623 frame cache.
8624
8ed25214
PA
86252019-02-27 Pedro Alves <palves@redhat.com>
8626
8627 * utils.c (set_screen_size): When we cap the height/width sizes,
8628 tweak the corresponding command variable to show "unlimited":
8629
23031e31
SJ
86302019-02-27 Saagar Jha <saagar@saagarjha.com>
8631 Pedro Alves <palves@redhat.com>
8632
8633 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8634 before calling rl_set_screen_size.
8635
6c28e44a
TT
86362019-02-27 Tom Tromey <tromey@adacore.com>
8637
8638 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8639 define.
8640 * python/py-value.c: Remove Python 2.4 workaround.
8641 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8642 workaround.
8643 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8644 Python 2.4 workaround.
8645 * python/python-internal.h: Remove Python 2.4 comment.
8646 (Py_ssize_t): Don't define.
8647 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8648 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8649 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8650 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8651 * python/python.c (do_start_initialization): Remove Python 2.4
8652 workaround.
8653 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8654 (print_children): Remove Python 2.4 workaround.
8655 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8656 workaround.
8657 (CHARBUFFERPROC_NAME): Remove.
8658 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8659 Python 2.4 workaround.
8660
2c3fc25d 86612019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8662
2c3fc25d
KB
8663 * NEWS: Note minimum Python version.
8664
6ca62222
KB
86652019-02-27 Kevin Buettner <kevinb@redhat.com>
8666
8667 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8668 code from these functions. Remove corresponding ifdefs. Use
8669 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8670 Remove gotos and target of gotos.
8671 (infpy_search_memory): Likewise.
8672
f4bc7d2c
AB
86732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8674
8675 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8676 (hppa_gdbarch_init): Don't register deleted functions with
8677 gdbarch.
8678
9734a586
AB
86792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8680
8681 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8682 (h8300_unwind_sp): Delete.
8683 (h8300_dummy_id): Delete.
8684 (h8300_gdbarch_init): Don't register deleted functions with
8685 gdbarch.
8686
68b867f3
AB
86872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8688
8689 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8690 (ft32_unwind_pc): Delete.
8691 (ft32_unwind_sp): Delete.
8692 (ft32_gdbarch_init): Don't register deleted functions with
8693 gdbarch.
8694
2fbe7ad0
AB
86952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8696
8697 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8698 (frv_unwind_pc): Delete.
8699 (frv_unwind_sp): Delete.
8700 (frv_gdbarch_init): Don't register deleted functions with
8701 gdbarch.
8702
76055cbe
AB
87032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8704
8705 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8706 (riscv_unwind_pc): Delete.
8707 (riscv_unwind_sp): Delete.
8708 (riscv_gdbarch_init): Don't register deleted functions with
8709 gdbarch.
8710
4133e5a1
AB
87112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8712
8713 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8714 (csky_unwind_pc): Delete.
8715 (csky_unwind_sp): Delete.
8716 (csky_gdbarch_init): Don't register deleted functions with
8717 gdbarch.
8718
8010f576
AB
87192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8720
8721 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8722 (cris_unwind_pc): Delete.
8723 (cris_unwind_sp): Delete.
8724 (cris_gdbarch_init): Don't register deleted functions with
8725 gdbarch.
8726
b56bf084
AB
87272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8728
8729 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8730 (bfin_unwind_pc): Delete.
8731 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8732
a19a650f
AB
87332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8734
8735 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8736 (arm_unwind_pc): Delete.
8737 (arm_unwind_sp): Delete.
8738 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8739
f8278c3c
AB
87402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8741
8742 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8743 (arc_unwind_pc): Delete.
8744 (arc_unwind_sp): Delete.
8745 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8746
480e46cf
AB
87472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8748
8749 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8750 (alpha_unwind_pc): Delete.
8751 (alpha_gdbarch_init): Don't register deleted functions with
8752 gdbarch.
8753
7a995095
AB
87542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8755
8756 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8757 (aarch64_unwind_pc): Delete.
8758 (aarch64_unwind_sp): Delete.
8759 (aarch64_gdbarch_init): Don't register deleted functions with
8760 gdbarch.
8761
bf9a735e
AB
87622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8763
8764 * gdbtypes.c (type_align): Don't consider static members when
8765 computing structure alignment.
8766
5561fc30
AB
87672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8768
8769 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8770 return 0 for other types.
8771 * arch-utils.c (default_type_align): Always return 0.
8772 * gdbarch.h: Regenerate.
8773 * gdbarch.sh (type_align): Extend comment.
8774 * gdbtypes.c (type_align): Add additional comments, always call
8775 gdbarch_type_align before applying the default rules.
8776 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8777 generic code will then apply a suitable default.
8778 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8779 types, return 0 for other types.
8780
9335e75a
JB
87812019-02-27 Joel Brobecker <brobecker@adacore.com>
8782
8783 * NEWS: Create a new section for the next release branch.
8784 Rename the section of the current branch, now that it has
8785 been cut.
8786
3d34d8de
JB
87872019-02-27 Joel Brobecker <brobecker@adacore.com>
8788
8789 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8790 * version.in: Bump version to 8.3.50.DATE-git.
8791
143420fb
SM
87922019-02-26 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * aix-thread.c (ptid_cmp): Remove unused variable.
8795 (get_signaled_thread): Likewise.
8796 (store_regs_user_thread): Likewise.
8797 (store_regs_kernel_thread): Likewise.
8798 (fetch_regs_kernel_thread): Remove shadowed variable.
8799
172fb711
AB
88002019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8801
8802 * features/riscv/32bit-cpu.xml: Add register numbers.
8803 * features/riscv/32bit-fpu.c: Regenerate.
8804 * features/riscv/32bit-fpu.xml: Add register numbers.
8805 * features/riscv/64bit-cpu.xml: Add register numbers.
8806 * features/riscv/64bit-fpu.c: Regenerate.
8807 * features/riscv/64bit-fpu.xml: Add register numbers.
8808
26c89782
KB
88092019-02-26 Kevin Buettner <kevinb@redhat.com>
8810
af54ade9 8811 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
8812 * python/py-value.c (convert_buffer_and_type_to_value): New
8813 function.
8814 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8815 Add support for handling an optional second argument. Call
8816 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
8817 * python/python-internal.h (Py_buffer_deleter): New struct.
8818 (Py_buffer_up): New typedef.
8819
0f58c9e8
JB
88202019-02-25 John Baldwin <jhb@FreeBSD.org>
8821
8822 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8823 instead of releasing ownership.
8824
0a0f4c01
JR
88252019-02-25 Jordan Rupprecht <rupprecht@google.com>
8826
8827 * dwarf2read.c (open_and_init_dwp_file): Call
8828 elf_numsections instead of bfd_count_sections to initialize
8829 dwp_file->num_sections.
8830
cd5a152c
TT
88312019-02-25 Tom Tromey <tromey@adacore.com>
8832
8833 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8834
8a6a8513
SDJ
88352019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8836
8837 * gcore.in: Add '--readnever' option when invoking GDB.
8838
04dcda9c
SM
88392019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8840
8841 * MAINTAINERS: Update my email address.
8842
07bc701d
SM
88432019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8844
8845 * build-id.c (build_id_to_debug_bfd_1): New function.
8846 (build_id_to_debug_bfd): Look for separate debug file in
8847 sysroot.
8848
c6f4a5d0
AB
88492019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8850
8851 * gdbarch.sh: Update the copyright year range that is placed into
8852 generated files.
8853
9600246d
KS
88542019-02-22 Keith Seitz <keiths@redhat.com>
8855
8856 PR symtab/23853
8857 * linespec.c (create_sals_line_offset): Search for the default
8858 symtab's filename instead of its fullname.
8859
7557a514
AH
88602019-02-21 Alan Hayward <alan.hayward@arm.com>
8861
8862 * NEWS: Update style defaults.
8863
ee2bcb0c
AH
88642019-02-21 Alan Hayward <alan.hayward@arm.com>
8865
8866 * main.c (captured_main_1): Disable styling in batch mode.
8867
0c95f9ed
TT
88682019-02-20 Tom Tromey <tom@tromey.com>
8869
8870 * symtab.c (symtab_symbol_info): Fix typos.
8871
c763b894
TT
88722019-02-20 Tom Tromey <tromey@adacore.com>
8873
8874 * findcmd.c (_initialize_mem_search): Use upper case for
8875 metasyntactic variables.
8876
0ef8a082
AH
88772019-02-20 Alan Hayward <alan.hayward@arm.com>
8878
8879 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8880 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8881
6caa91b6
SM
88822019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8883
8884 * top.h (source_file_name): Change to std::string.
8885 * top.c (source_file_name): Likewise.
8886 (command_line_input): Adjust.
8887 * cli/cli-script.c (script_from_file): Adjust.
8888
98814c6c
TT
88892019-02-19 Tom Tromey <tromey@adacore.com>
8890
8891 * ravenscar-thread.c
8892 (ravenscar_thread_target::update_thread_list): Don't call
8893 ada_build_task_list.
8894 * ada-lang.h (ada_build_task_list): Don't declare.
8895 * ada-tasks.c (struct ada_tasks_inferior_data)
8896 <task_list_valid_p>: Now bool.
8897 (read_known_tasks, ada_task_list_changed)
8898 (ada_tasks_invalidate_inferior_data): Update.
8899 (read_known_tasks_array): Return bool.
8900 (read_known_tasks_list): Likewise.
8901 (read_known_tasks): Return void.
8902 (ada_build_task_list): Now static.
8903
70cd633e
AB
89042019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8905
8906 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8907 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8908
040b3e95
PW
89092019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8910
8911 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8912 variant for ada_tasks_pspace_data_handle and
8913 ada_tasks_inferior_data_handle.
8914 (ada_tasks_pspace_data_cleanup): New function.
8915 (ada_tasks_inferior_data_cleanup): New function.
8916
9409233b
TT
89172019-02-17 Tom Tromey <tom@tromey.com>
8918
8919 * macrotab.h (macro_source_fullname): Return a std::string.
8920 * macrotab.c (macro_include, check_for_redefinition)
8921 (macro_undef, macro_lookup_definition, foreach_macro)
8922 (foreach_macro_in_scope): Update.
8923 (macro_source_fullname): Return a std::string.
8924 * macrocmd.c (show_pp_source_pos): Update.
8925
6506371f
TT
89262019-02-17 Tom Tromey <tom@tromey.com>
8927
8928 * macrocmd.c (show_pp_source_pos): Style the file names.
8929
0c820d67
TT
89302019-02-17 Tom Tromey <tom@tromey.com>
8931
8932 PR tui/24197:
8933 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8934
a0087920
TT
89352019-02-17 Tom Tromey <tom@tromey.com>
8936
8937 * ada-lang.c (user_select_syms): Use filtered printing.
8938 * utils.c (wrap_style): New global.
8939 (desired_style): Remove.
8940 (emit_style_escape): Add stream parameter.
8941 (set_output_style, reset_terminal_style, prompt_for_continue):
8942 Update.
8943 (flush_wrap_buffer): Only flush gdb_stdout.
8944 (wrap_here): Set wrap_style.
8945 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8946 treat escape sequences as a character. Change when wrap buffer is
8947 flushed.
8948 (fputs_styled): Do not set the output style when the default is
8949 requested.
8950 * ui-style.h (struct ui_file_style) <is_default>: New method.
8951 * source.c (print_source_lines_base): Emit escape sequences in one
8952 piece.
8953
75ba10dc
JB
89542019-02-17 Joel Brobecker <brobecker@adacore.com>
8955
8956 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8957 integers and enumeration types.
8958
a2cd4f14
JB
89592019-02-17 Joel Brobecker <brobecker@adacore.com>
8960
8961 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8962 instead of lookup_symbol_in_language
8963 (do_exact_match): New function.
8964 (ada_get_symbol_name_matcher): Return do_exact_match when
8965 doing a verbatim match.
8966
485b851b
TT
89672019-02-15 Tom Tromey <tromey@adacore.com>
8968
8969 * ravenscar-thread.c (ravenscar_thread_target::resume)
8970 (ravenscar_thread_target::wait): Special case wildcard requests.
8971
0b790b1e
TT
89722019-02-15 Tom Tromey <tromey@adacore.com>
8973
8974 * ravenscar-thread.c (base_ptid): Remove.
8975 (struct ravenscar_thread_target) <close>: New method.
8976 <m_base_ptid>: New member.
8977 <update_inferior_ptid, active_task, task_is_currently_active,
8978 runtime_initialized>: Declare methods.
8979 <ravenscar_thread_target>: Add constructor.
8980 (ravenscar_thread_target::task_is_currently_active)
8981 (ravenscar_thread_target::update_inferior_ptid)
8982 (ravenscar_runtime_initialized): Rename. Now methods.
8983 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8984 (ravenscar_thread_target::update_thread_list): Update.
8985 (ravenscar_thread_target::active_task): Now method.
8986 (ravenscar_thread_target::store_registers)
8987 (ravenscar_thread_target::prepare_to_store)
8988 (ravenscar_thread_target::prepare_to_store)
8989 (ravenscar_thread_target::mourn_inferior): Update.
8990 (ravenscar_inferior_created): Use "new" to create target.
8991 (ravenscar_thread_target::get_ada_task_ptid): Update.
8992 (_initialize_ravenscar): Don't initialize base_ptid.
8993 (ravenscar_ops): Remove global.
8994
dea57a62
TT
89952019-02-15 Tom Tromey <tromey@adacore.com>
8996
8997 * target.h (push_target): Declare new overload.
8998 * target.c (push_target): New overload, taking an rvalue reference.
8999 * remote.c (remote_target::open_1): Use push_target overload.
9000 * corelow.c (core_target_open): Use push_target overload.
9001
989f3c58
TT
90022019-02-15 Tom Tromey <tromey@adacore.com>
9003
9004 * ravenscar-thread.c (is_ravenscar_task)
9005 (ravenscar_task_is_currently_active): Return bool.
9006 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9007 (_initialize_ravenscar): Remove "(void)".
9008 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9009 Return bool.
9010
6cbcc006
TT
90112019-02-15 Tom Tromey <tromey@adacore.com>
9012
9013 * ravenscar-thread.c (ravenscar_runtime_initializer)
9014 (has_ravenscar_runtime, get_running_thread_id)
9015 (ravenscar_thread_target::resume): Fix indentation.
9016
7657f14d
TT
90172019-02-15 Tom Tromey <tromey@adacore.com>
9018
9019 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9020 from ravenscar_arch_ops.
9021 (sparc_ravenscar_ops::fetch_registers)
9022 (sparc_ravenscar_ops::store_registers): Now methods.
9023 (sparc_ravenscar_prepare_to_store): Remove.
9024 (sparc_ravenscar_ops): Redefine.
9025 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9026 methods and destructor. Remove members.
9027 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9028 (ravenscar_thread_target::store_registers)
9029 (ravenscar_thread_target::prepare_to_store): Update.
9030 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9031 Remove.
9032 (struct ppc_ravenscar_powerpc_ops): Derive from
9033 ravenscar_arch_ops.
9034 (ppc_ravenscar_powerpc_ops::fetch_registers)
9035 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9036 (ppc_ravenscar_powerpc_ops): Redefine.
9037 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9038 (ppc_ravenscar_e500_ops::fetch_registers)
9039 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9040 (ppc_ravenscar_e500_ops): Redefine.
9041 * aarch64-ravenscar-thread.c
9042 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9043 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9044 (aarch64_ravenscar_fetch_registers)
9045 (aarch64_ravenscar_store_registers): Now methods.
9046 (aarch64_ravenscar_ops): Redefine.
9047
5b6ea500
TT
90482019-02-15 Tom Tromey <tromey@adacore.com>
9049
9050 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9051 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9052 (ravenscar_thread_target::stopped_by_watchpoint)
9053 (ravenscar_thread_target::stopped_data_address)
9054 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9055
e397fd39
TT
90562019-02-15 Tom Tromey <tromey@adacore.com>
9057
9058 * ravenscar-thread.c: Fix some typos.
9059
cc12f4a8
TT
90602019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9061 Tom Tromey <tromey@adacore.com>
9062
9063 * ada-lang.c (ada_exception_sal): Change addr_string to a
9064 std::string.
9065 (create_ada_exception_catchpoint): Update.
9066
5f486660
TT
90672019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9068 Tom Tromey <tromey@adacore.com>
9069
9070 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9071 (bp_location_ops): Remove.
9072 (base_breakpoint_allocate_location): Update.
9073 (free_bp_location): Update.
9074 * ada-lang.c (class ada_catchpoint_location)
9075 <ada_catchpoint_location>: Remove ops parameter.
9076 (ada_catchpoint_location_dtor): Remove.
9077 (ada_catchpoint_location_ops): Remove.
9078 (allocate_location_exception): Update.
9079 * breakpoint.h (struct bp_location_ops): Remove.
9080 (class bp_location) <bp_location>: Remove bp_location_ops
9081 parameter.
9082 <~bp_location>: Add destructor.
9083 <ops>: Remove.
9084
b671c7fb
TS
90852019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9086 Pedro Alves <palves@redhat.com>
9087
9088 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9089 'PATH_MAX'.
9090
8071c5ce
DM
90912019-02-14 David Michael <fedora.dm0@gmail.com>
9092 Samuel Thibault <samuel.thibault@gnu.org>
9093 Thomas Schwinge <thomas@codesourcery.com>
9094
9095 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9096 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9097
b1041ae0
TS
90982019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9099
924514e1
TS
9100 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9101 (check_empty): Use "const char *".
9102
c29ee8d4
TS
9103 * gnu-nat.c (gnu_nat_target::detach): Instead of
9104 'detach_inferior (pid)' call
9105 'detach_inferior (find_inferior_pid (pid))'.
9106
6c6ef69f
TS
9107 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9108 'nat/fork-inferior.o'.
9109 * gnu-nat.c: #include "nat/fork-inferior.h".
9110
2d0a338c
TS
9111 * gnu-nat.c (gnu_nat_target::detach): Instead of
9112 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9113 * gnu-nat.h: #include "inf-child.h".
9114 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9115 'i386_gnu_nat_target::fetch_registers'.
9116 (gnu_store_registers): Rename/move to
9117 'i386_gnu_nat_target::store_registers'.
9118
cabb5f06
TS
9119 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9120 * gnu-nat.h (mach_thread_info): New function.
9121 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9122
b1041ae0
TS
9123 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9124
2988d01e
KF
91252019-02-14 Frederic Konrad <konrad@adacore.com>
9126
9127 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9128
c559d709
JB
91292019-02-14 Joel Brobecker <brobecker@adacore.com>
9130
9131 * windows-nat.c (windows_add_thread): Add new parameter
9132 "main_thread_p" with default value set to false. Update
9133 function documentation as well as all callers.
9134 (windows_delete_thread): Likewise.
9135 (fake_create_process): Update call to windows_add_thread.
9136 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9137 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9138 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9139 call to windows_delete_thread.
9140
007024cc
SM
91412019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9142
9143 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9144
f62318e9
JB
91452019-02-12 John Baldwin <jhb@FreeBSD.org>
9146
9147 * symfile.c (find_separate_debug_file): Use canonical path of
9148 sysroot with child_path instead of gdb_sysroot if it is valid.
9149
cd4b7848
JB
91502019-02-12 John Baldwin <jhb@FreeBSD.org>
9151
9152 * symfile.c (find_separate_debug_file): Use child_path to
9153 determine if an object file is under a sysroot.
9154
efac4bfe
JB
91552019-02-12 John Baldwin <jhb@FreeBSD.org>
9156
9157 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9158 unittests/child-path-selftests.c.
9159 * common/pathstuff.c (child_path): New function.
9160 * common/pathstuff.h (child_path): New prototype.
9161 * unittests/child-path-selftests.c: New file.
9162
402d2bfe
JB
91632019-02-12 John Baldwin <jhb@FreeBSD.org>
9164
9165 * symfile.c (find_separate_debug_file): Look for separate debug
9166 files in debug directories under the sysroot.
9167
1ed9f74e
PW
91682019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9169
9170 * symtab.h (struct minimal_symbol data_p): New const method.
9171 (struct minimal_symbol text_p): Likewise.
9172 * symtab.c (output_source_filename): Use file name style
9173 to print file name.
9174 (print_symbol_info): Likewise.
9175 (print_msymbol_info): Use address style to print addresses.
9176 Use function name style to print executable text symbols.
9177 (expand_symtab_containing_pc): Use data_p.
9178 (find_pc_sect_compunit_symtab): Likewise.
9179
2636d81d
PW
91802019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9181
9182 * breakpoint.c (describe_other_breakpoints): Use address style
9183 to print addresses.
9184 (say_where): Likewise.
9185
ac8c53cc
PW
91862019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9187
9188 * ada-typeprint.c (print_func_type): Print function name
9189 style to print function name.
9190 * c-typeprint.c (c_print_type_1): Likewise.
9191
ea638c43
AH
91922019-02-11 Alan Hayward <alan.hayward@arm.com>
9193
9194 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9195 for execve.
9196
ab759ca8
PW
91972019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9198
9199 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9200 type_stack.
9201
aff29d1c
JB
92022019-02-10 Joel Brobecker <brobecker@adacore.com>
9203
9204 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9205 TYPE_CODE_REF types.
9206
617126bc
JW
92072019-02-08 Jim Wilson <jimw@sifive.com>
9208
9209 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9210 (riscv_linux_fregset): New.
9211 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9212
46e3ed7f
TT
92132019-02-07 Tom Tromey <tom@tromey.com>
9214
9215 * thread.c (thread_cancel_execution_command): Update.
9216 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9217 methods.
9218 (struct thread_fsm_ops): Remove.
9219 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9220 (thread_fsm_should_stop, thread_fsm_return_value)
9221 (thread_fsm_set_finished, thread_fsm_finished_p)
9222 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9223 Don't declare.
9224 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9225 * infrun.c (clear_proceed_status_thread)
9226 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9227 (print_stop_event): Update.
9228 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9229 Add constructor.
9230 (step_command_fsm_ops): Remove.
9231 (new_step_command_fsm): Remove.
9232 (step_1): Update.
9233 (step_command_fsm::should_stop): Rename from
9234 step_command_fsm_should_stop.
9235 (step_command_fsm::clean_up): Rename from
9236 step_command_fsm_clean_up.
9237 (step_command_fsm::do_async_reply_reason): Rename from
9238 step_command_fsm_async_reply_reason.
9239 (struct until_next_fsm): Inherit from thread_fsm. Add
9240 constructor.
9241 (until_next_fsm_ops): Remove.
9242 (new_until_next_fsm): Remove.
9243 (until_next_fsm::should_stop): Rename from
9244 until_next_fsm_should_stop.
9245 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9246 (until_next_fsm::do_async_reply_reason): Rename from
9247 until_next_fsm_async_reply_reason.
9248 (struct finish_command_fsm): Inherit from thread_fsm. Add
9249 constructor. Change type of breakpoint.
9250 (finish_command_fsm_ops): Remove.
9251 (new_finish_command_fsm): Remove.
9252 (finish_command_fsm::should_stop): Rename from
9253 finish_command_fsm_should_stop.
9254 (finish_command_fsm::clean_up): Rename from
9255 finish_command_fsm_clean_up.
9256 (finish_command_fsm::return_value): Rename from
9257 finish_command_fsm_return_value.
9258 (finish_command_fsm::do_async_reply_reason): Rename from
9259 finish_command_fsm_async_reply_reason.
9260 (finish_command): Update.
9261 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9262 Add constructor.
9263 (call_thread_fsm_ops): Remove.
9264 (call_thread_fsm::call_thread_fsm): Rename from
9265 new_call_thread_fsm.
9266 (call_thread_fsm::should_stop): Rename from
9267 call_thread_fsm_should_stop.
9268 (call_thread_fsm::should_notify_stop): Rename from
9269 call_thread_fsm_should_notify_stop.
9270 (run_inferior_call, call_function_by_hand_dummy): Update.
9271 * cli/cli-interp.c (should_print_stop_to_console): Update.
9272 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9273 Add constructor. Change type of location_breakpoint,
9274 caller_breakpoint.
9275 (until_break_fsm_ops): Remove.
9276 (new_until_break_fsm): Remove.
9277 (until_break_fsm::should_stop): Rename from
9278 until_break_fsm_should_stop.
9279 (until_break_fsm::clean_up): Rename from
9280 until_break_fsm_clean_up.
9281 (until_break_fsm::do_async_reply_reason): Rename from
9282 until_break_fsm_async_reply_reason.
9283 (until_break_command): Update.
9284 * thread-fsm.c: Remove.
9285 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9286
1a5c2598
TT
92872019-02-07 Tom Tromey <tom@tromey.com>
9288
9289 * yy-remap.h: Add include guard.
9290 * xtensa-tdep.h: Add include guard.
9291 * xcoffread.h: Rename include guard.
9292 * varobj-iter.h: Add include guard.
9293 * tui/tui.h: Rename include guard.
9294 * tui/tui-winsource.h: Rename include guard.
9295 * tui/tui-wingeneral.h: Rename include guard.
9296 * tui/tui-windata.h: Rename include guard.
9297 * tui/tui-win.h: Rename include guard.
9298 * tui/tui-stack.h: Rename include guard.
9299 * tui/tui-source.h: Rename include guard.
9300 * tui/tui-regs.h: Rename include guard.
9301 * tui/tui-out.h: Rename include guard.
9302 * tui/tui-layout.h: Rename include guard.
9303 * tui/tui-io.h: Rename include guard.
9304 * tui/tui-hooks.h: Rename include guard.
9305 * tui/tui-file.h: Rename include guard.
9306 * tui/tui-disasm.h: Rename include guard.
9307 * tui/tui-data.h: Rename include guard.
9308 * tui/tui-command.h: Rename include guard.
9309 * tic6x-tdep.h: Add include guard.
9310 * target/waitstatus.h: Rename include guard.
9311 * target/wait.h: Rename include guard.
9312 * target/target.h: Rename include guard.
9313 * target/resume.h: Rename include guard.
9314 * target-float.h: Rename include guard.
9315 * stabsread.h: Add include guard.
9316 * rs6000-tdep.h: Add include guard.
9317 * riscv-fbsd-tdep.h: Add include guard.
9318 * regformats/regdef.h: Rename include guard.
9319 * record.h: Rename include guard.
9320 * python/python.h: Rename include guard.
9321 * python/python-internal.h: Rename include guard.
9322 * python/py-stopevent.h: Rename include guard.
9323 * python/py-ref.h: Rename include guard.
9324 * python/py-record.h: Rename include guard.
9325 * python/py-record-full.h: Rename include guard.
9326 * python/py-record-btrace.h: Rename include guard.
9327 * python/py-instruction.h: Rename include guard.
9328 * python/py-events.h: Rename include guard.
9329 * python/py-event.h: Rename include guard.
9330 * procfs.h: Add include guard.
9331 * proc-utils.h: Add include guard.
9332 * p-lang.h: Add include guard.
9333 * or1k-tdep.h: Rename include guard.
9334 * observable.h: Rename include guard.
9335 * nto-tdep.h: Rename include guard.
9336 * nat/x86-linux.h: Rename include guard.
9337 * nat/x86-linux-dregs.h: Rename include guard.
9338 * nat/x86-gcc-cpuid.h: Add include guard.
9339 * nat/x86-dregs.h: Rename include guard.
9340 * nat/x86-cpuid.h: Rename include guard.
9341 * nat/ppc-linux.h: Rename include guard.
9342 * nat/mips-linux-watch.h: Rename include guard.
9343 * nat/linux-waitpid.h: Rename include guard.
9344 * nat/linux-ptrace.h: Rename include guard.
9345 * nat/linux-procfs.h: Rename include guard.
9346 * nat/linux-osdata.h: Rename include guard.
9347 * nat/linux-nat.h: Rename include guard.
9348 * nat/linux-namespaces.h: Rename include guard.
9349 * nat/linux-btrace.h: Rename include guard.
9350 * nat/glibc_thread_db.h: Rename include guard.
9351 * nat/gdb_thread_db.h: Rename include guard.
9352 * nat/gdb_ptrace.h: Rename include guard.
9353 * nat/fork-inferior.h: Rename include guard.
9354 * nat/amd64-linux-siginfo.h: Rename include guard.
9355 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9356 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9357 * nat/aarch64-linux.h: Rename include guard.
9358 * nat/aarch64-linux-hw-point.h: Rename include guard.
9359 * mn10300-tdep.h: Add include guard.
9360 * mips-linux-tdep.h: Add include guard.
9361 * mi/mi-parse.h: Rename include guard.
9362 * mi/mi-out.h: Rename include guard.
9363 * mi/mi-main.h: Rename include guard.
9364 * mi/mi-interp.h: Rename include guard.
9365 * mi/mi-getopt.h: Rename include guard.
9366 * mi/mi-console.h: Rename include guard.
9367 * mi/mi-common.h: Rename include guard.
9368 * mi/mi-cmds.h: Rename include guard.
9369 * mi/mi-cmd-break.h: Rename include guard.
9370 * m2-lang.h: Add include guard.
9371 * location.h: Rename include guard.
9372 * linux-record.h: Rename include guard.
9373 * linux-nat.h: Add include guard.
9374 * linux-fork.h: Add include guard.
9375 * i386-darwin-tdep.h: Rename include guard.
9376 * hppa-linux-offsets.h: Add include guard.
9377 * guile/guile.h: Rename include guard.
9378 * guile/guile-internal.h: Rename include guard.
9379 * gnu-nat.h: Rename include guard.
9380 * gdb-stabs.h: Rename include guard.
9381 * frv-tdep.h: Add include guard.
9382 * f-lang.h: Add include guard.
9383 * event-loop.h: Add include guard.
9384 * darwin-nat.h: Rename include guard.
9385 * cp-abi.h: Rename include guard.
9386 * config/sparc/nm-sol2.h: Rename include guard.
9387 * config/nm-nto.h: Rename include guard.
9388 * config/nm-linux.h: Add include guard.
9389 * config/i386/nm-i386gnu.h: Rename include guard.
9390 * config/djgpp/nl_types.h: Rename include guard.
9391 * config/djgpp/langinfo.h: Rename include guard.
9392 * compile/gcc-cp-plugin.h: Add include guard.
9393 * compile/gcc-c-plugin.h: Add include guard.
9394 * compile/compile.h: Rename include guard.
9395 * compile/compile-object-run.h: Rename include guard.
9396 * compile/compile-object-load.h: Rename include guard.
9397 * compile/compile-internal.h: Rename include guard.
9398 * compile/compile-cplus.h: Rename include guard.
9399 * compile/compile-c.h: Rename include guard.
9400 * common/xml-utils.h: Rename include guard.
9401 * common/x86-xstate.h: Rename include guard.
9402 * common/version.h: Rename include guard.
9403 * common/vec.h: Rename include guard.
9404 * common/tdesc.h: Rename include guard.
9405 * common/selftest.h: Rename include guard.
9406 * common/scoped_restore.h: Rename include guard.
9407 * common/scoped_mmap.h: Rename include guard.
9408 * common/scoped_fd.h: Rename include guard.
9409 * common/safe-iterator.h: Rename include guard.
9410 * common/run-time-clock.h: Rename include guard.
9411 * common/refcounted-object.h: Rename include guard.
9412 * common/queue.h: Rename include guard.
9413 * common/ptid.h: Rename include guard.
9414 * common/print-utils.h: Rename include guard.
9415 * common/preprocessor.h: Rename include guard.
9416 * common/pathstuff.h: Rename include guard.
9417 * common/observable.h: Rename include guard.
9418 * common/netstuff.h: Rename include guard.
9419 * common/job-control.h: Rename include guard.
9420 * common/host-defs.h: Rename include guard.
9421 * common/gdb_wait.h: Rename include guard.
9422 * common/gdb_vecs.h: Rename include guard.
9423 * common/gdb_unlinker.h: Rename include guard.
9424 * common/gdb_unique_ptr.h: Rename include guard.
9425 * common/gdb_tilde_expand.h: Rename include guard.
9426 * common/gdb_sys_time.h: Rename include guard.
9427 * common/gdb_string_view.h: Rename include guard.
9428 * common/gdb_splay_tree.h: Rename include guard.
9429 * common/gdb_setjmp.h: Rename include guard.
9430 * common/gdb_ref_ptr.h: Rename include guard.
9431 * common/gdb_optional.h: Rename include guard.
9432 * common/gdb_locale.h: Rename include guard.
9433 * common/gdb_assert.h: Rename include guard.
9434 * common/filtered-iterator.h: Rename include guard.
9435 * common/filestuff.h: Rename include guard.
9436 * common/fileio.h: Rename include guard.
9437 * common/environ.h: Rename include guard.
9438 * common/common-utils.h: Rename include guard.
9439 * common/common-types.h: Rename include guard.
9440 * common/common-regcache.h: Rename include guard.
9441 * common/common-inferior.h: Rename include guard.
9442 * common/common-gdbthread.h: Rename include guard.
9443 * common/common-exceptions.h: Rename include guard.
9444 * common/common-defs.h: Rename include guard.
9445 * common/common-debug.h: Rename include guard.
9446 * common/cleanups.h: Rename include guard.
9447 * common/buffer.h: Rename include guard.
9448 * common/btrace-common.h: Rename include guard.
9449 * common/break-common.h: Rename include guard.
9450 * cli/cli-utils.h: Rename include guard.
9451 * cli/cli-style.h: Rename include guard.
9452 * cli/cli-setshow.h: Rename include guard.
9453 * cli/cli-script.h: Rename include guard.
9454 * cli/cli-interp.h: Rename include guard.
9455 * cli/cli-decode.h: Rename include guard.
9456 * cli/cli-cmds.h: Rename include guard.
9457 * charset-list.h: Add include guard.
9458 * buildsym-legacy.h: Rename include guard.
9459 * bfin-tdep.h: Add include guard.
9460 * ax.h: Rename include guard.
9461 * arm-linux-tdep.h: Add include guard.
9462 * arm-fbsd-tdep.h: Add include guard.
9463 * arch/xtensa.h: Rename include guard.
9464 * arch/tic6x.h: Add include guard.
9465 * arch/i386.h: Add include guard.
9466 * arch/arm.h: Rename include guard.
9467 * arch/arm-linux.h: Rename include guard.
9468 * arch/arm-get-next-pcs.h: Rename include guard.
9469 * arch/amd64.h: Add include guard.
9470 * arch/aarch64-insn.h: Rename include guard.
9471 * arch-utils.h: Rename include guard.
9472 * annotate.h: Add include guard.
9473 * amd64-darwin-tdep.h: Rename include guard.
9474 * aarch64-linux-tdep.h: Add include guard.
9475 * aarch64-fbsd-tdep.h: Add include guard.
9476 * aarch32-linux-nat.h: Add include guard.
9477
ab9268d2
PW
94782019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9479
9480 * macrotab.c (macro_define_internal): New function that
9481 factorizes macro_define_object_internal and macro_define_function
9482 code.
9483 (macro_define_object_internal): Use macro_define_internal.
9484 (macro_define_function): Likewise.
9485
bb0da2b4
PW
94862019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9487
9488 * macrocmd.c (extract_identifier): Return
9489 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9490 callers.
9491
424eb552
JB
94922019-02-06 John Baldwin <jhb@FreeBSD.org>
9493
9494 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9495
1688cb29
TT
94962019-02-05 Tom Tromey <tom@tromey.com>
9497
9498 * target.c (target_stack::unpush): Move assertion earlier.
9499
b5eba2d8
TT
95002019-01-30 Tom Tromey <tom@tromey.com>
9501
9502 PR python/23615:
9503 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9504 (gdbpy_parse_and_eval): Likewise.
9505 * python/python-internal.h (gdbpy_allow_threads): New class.
9506
7054e2ff
JB
95072019-01-28 John Baldwin <jhb@FreeBSD.org>
9508
9509 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9510 (aarch64_fbsd_fpregmap): Move earlier.
9511 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9512 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9513 instead of individual calls to trad_frame_set_reg_addr.
9514 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9515 earlier.
9516 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9517 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9518 instead of individual calls to trad_frame_set_reg_addr.
9519
36c25ffa
AH
95202019-01-28 Alan Hayward <alan.hayward@arm.com>
9521
9522 * CONTRIBUTE: Replace contribution list with wiki link.
9523
a0707f3c
TT
95242019-01-25 Tom Tromey <tom@tromey.com>
9525
9526 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9527
0747795c
TT
95282019-01-25 Tom Tromey <tom@tromey.com>
9529
9530 * xtensa-linux-nat.c: Fix common/ includes.
9531 * xml-support.h: Fix common/ includes.
9532 * xml-support.c: Fix common/ includes.
9533 * x86-linux-nat.c: Fix common/ includes.
9534 * windows-nat.c: Fix common/ includes.
9535 * varobj.h: Fix common/ includes.
9536 * varobj.c: Fix common/ includes.
9537 * value.c: Fix common/ includes.
9538 * valops.c: Fix common/ includes.
9539 * utils.c: Fix common/ includes.
9540 * unittests/xml-utils-selftests.c: Fix common/ includes.
9541 * unittests/utils-selftests.c: Fix common/ includes.
9542 * unittests/unpack-selftests.c: Fix common/ includes.
9543 * unittests/tracepoint-selftests.c: Fix common/ includes.
9544 * unittests/style-selftests.c: Fix common/ includes.
9545 * unittests/string_view-selftests.c: Fix common/ includes.
9546 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9547 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9548 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9549 * unittests/rsp-low-selftests.c: Fix common/ includes.
9550 * unittests/parse-connection-spec-selftests.c: Fix common/
9551 includes.
9552 * unittests/optional-selftests.c: Fix common/ includes.
9553 * unittests/offset-type-selftests.c: Fix common/ includes.
9554 * unittests/observable-selftests.c: Fix common/ includes.
9555 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9556 * unittests/memrange-selftests.c: Fix common/ includes.
9557 * unittests/memory-map-selftests.c: Fix common/ includes.
9558 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9559 * unittests/function-view-selftests.c: Fix common/ includes.
9560 * unittests/environ-selftests.c: Fix common/ includes.
9561 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9562 * unittests/common-utils-selftests.c: Fix common/ includes.
9563 * unittests/cli-utils-selftests.c: Fix common/ includes.
9564 * unittests/array-view-selftests.c: Fix common/ includes.
9565 * ui-file.c: Fix common/ includes.
9566 * tui/tui-io.c: Fix common/ includes.
9567 * tracepoint.h: Fix common/ includes.
9568 * tracepoint.c: Fix common/ includes.
9569 * tracefile-tfile.c: Fix common/ includes.
9570 * top.h: Fix common/ includes.
9571 * top.c: Fix common/ includes.
9572 * thread.c: Fix common/ includes.
9573 * target/waitstatus.h: Fix common/ includes.
9574 * target/waitstatus.c: Fix common/ includes.
9575 * target.h: Fix common/ includes.
9576 * target.c: Fix common/ includes.
9577 * target-memory.c: Fix common/ includes.
9578 * target-descriptions.c: Fix common/ includes.
9579 * symtab.h: Fix common/ includes.
9580 * symfile.c: Fix common/ includes.
9581 * stap-probe.c: Fix common/ includes.
9582 * spu-linux-nat.c: Fix common/ includes.
9583 * sparc-nat.c: Fix common/ includes.
9584 * source.c: Fix common/ includes.
9585 * solib.c: Fix common/ includes.
9586 * solib-target.c: Fix common/ includes.
9587 * ser-unix.c: Fix common/ includes.
9588 * ser-tcp.c: Fix common/ includes.
9589 * ser-pipe.c: Fix common/ includes.
9590 * ser-base.c: Fix common/ includes.
9591 * selftest-arch.c: Fix common/ includes.
9592 * s12z-tdep.c: Fix common/ includes.
9593 * rust-exp.y: Fix common/ includes.
9594 * rs6000-aix-tdep.c: Fix common/ includes.
9595 * riscv-tdep.c: Fix common/ includes.
9596 * remote.c: Fix common/ includes.
9597 * remote-notif.h: Fix common/ includes.
9598 * remote-fileio.h: Fix common/ includes.
9599 * remote-fileio.c: Fix common/ includes.
9600 * regcache.h: Fix common/ includes.
9601 * regcache.c: Fix common/ includes.
9602 * record-btrace.c: Fix common/ includes.
9603 * python/python.c: Fix common/ includes.
9604 * python/py-type.c: Fix common/ includes.
9605 * python/py-inferior.c: Fix common/ includes.
9606 * progspace.h: Fix common/ includes.
9607 * producer.c: Fix common/ includes.
9608 * procfs.c: Fix common/ includes.
9609 * proc-api.c: Fix common/ includes.
9610 * printcmd.c: Fix common/ includes.
9611 * ppc-linux-nat.c: Fix common/ includes.
9612 * parser-defs.h: Fix common/ includes.
9613 * osdata.c: Fix common/ includes.
9614 * obsd-nat.c: Fix common/ includes.
9615 * nat/x86-linux.c: Fix common/ includes.
9616 * nat/x86-linux-dregs.c: Fix common/ includes.
9617 * nat/x86-dregs.h: Fix common/ includes.
9618 * nat/x86-dregs.c: Fix common/ includes.
9619 * nat/ppc-linux.c: Fix common/ includes.
9620 * nat/mips-linux-watch.h: Fix common/ includes.
9621 * nat/mips-linux-watch.c: Fix common/ includes.
9622 * nat/linux-waitpid.c: Fix common/ includes.
9623 * nat/linux-ptrace.h: Fix common/ includes.
9624 * nat/linux-ptrace.c: Fix common/ includes.
9625 * nat/linux-procfs.c: Fix common/ includes.
9626 * nat/linux-personality.c: Fix common/ includes.
9627 * nat/linux-osdata.c: Fix common/ includes.
9628 * nat/linux-namespaces.c: Fix common/ includes.
9629 * nat/linux-btrace.h: Fix common/ includes.
9630 * nat/linux-btrace.c: Fix common/ includes.
9631 * nat/fork-inferior.c: Fix common/ includes.
9632 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9633 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9634 * nat/aarch64-linux.c: Fix common/ includes.
9635 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9636 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9637 * namespace.h: Fix common/ includes.
9638 * mips-linux-tdep.c: Fix common/ includes.
9639 * minsyms.c: Fix common/ includes.
9640 * mi/mi-parse.h: Fix common/ includes.
9641 * mi/mi-main.c: Fix common/ includes.
9642 * mi/mi-cmd-env.c: Fix common/ includes.
9643 * memrange.h: Fix common/ includes.
9644 * memattr.c: Fix common/ includes.
9645 * maint.h: Fix common/ includes.
9646 * maint.c: Fix common/ includes.
9647 * main.c: Fix common/ includes.
9648 * machoread.c: Fix common/ includes.
9649 * location.c: Fix common/ includes.
9650 * linux-thread-db.c: Fix common/ includes.
9651 * linux-nat.c: Fix common/ includes.
9652 * linux-fork.c: Fix common/ includes.
9653 * inline-frame.c: Fix common/ includes.
9654 * infrun.c: Fix common/ includes.
9655 * inflow.c: Fix common/ includes.
9656 * inferior.h: Fix common/ includes.
9657 * inferior.c: Fix common/ includes.
9658 * infcmd.c: Fix common/ includes.
9659 * inf-ptrace.c: Fix common/ includes.
9660 * inf-child.c: Fix common/ includes.
9661 * ia64-linux-nat.c: Fix common/ includes.
9662 * i387-tdep.c: Fix common/ includes.
9663 * i386-tdep.c: Fix common/ includes.
9664 * i386-linux-tdep.c: Fix common/ includes.
9665 * i386-linux-nat.c: Fix common/ includes.
9666 * i386-go32-tdep.c: Fix common/ includes.
9667 * i386-fbsd-tdep.c: Fix common/ includes.
9668 * i386-fbsd-nat.c: Fix common/ includes.
9669 * guile/scm-type.c: Fix common/ includes.
9670 * guile/guile.c: Fix common/ includes.
9671 * go32-nat.c: Fix common/ includes.
9672 * gnu-nat.c: Fix common/ includes.
9673 * gdbthread.h: Fix common/ includes.
9674 * gdbarch-selftests.c: Fix common/ includes.
9675 * gdb_usleep.c: Fix common/ includes.
9676 * gdb_select.h: Fix common/ includes.
9677 * gdb_bfd.c: Fix common/ includes.
9678 * gcore.c: Fix common/ includes.
9679 * fork-child.c: Fix common/ includes.
9680 * findvar.c: Fix common/ includes.
9681 * fbsd-nat.c: Fix common/ includes.
9682 * event-top.c: Fix common/ includes.
9683 * event-loop.c: Fix common/ includes.
9684 * dwarf2read.c: Fix common/ includes.
9685 * dwarf2loc.c: Fix common/ includes.
9686 * dwarf2-frame.c: Fix common/ includes.
9687 * dwarf-index-cache.c: Fix common/ includes.
9688 * dtrace-probe.c: Fix common/ includes.
9689 * disasm-selftests.c: Fix common/ includes.
9690 * defs.h: Fix common/ includes.
9691 * csky-tdep.c: Fix common/ includes.
9692 * cp-valprint.c: Fix common/ includes.
9693 * cp-support.h: Fix common/ includes.
9694 * cp-support.c: Fix common/ includes.
9695 * corelow.c: Fix common/ includes.
9696 * completer.h: Fix common/ includes.
9697 * completer.c: Fix common/ includes.
9698 * compile/compile.c: Fix common/ includes.
9699 * compile/compile-loc2c.c: Fix common/ includes.
9700 * compile/compile-cplus-types.c: Fix common/ includes.
9701 * compile/compile-cplus-symbols.c: Fix common/ includes.
9702 * command.h: Fix common/ includes.
9703 * cli/cli-dump.c: Fix common/ includes.
9704 * cli/cli-cmds.c: Fix common/ includes.
9705 * charset.c: Fix common/ includes.
9706 * build-id.c: Fix common/ includes.
9707 * btrace.h: Fix common/ includes.
9708 * btrace.c: Fix common/ includes.
9709 * breakpoint.h: Fix common/ includes.
9710 * breakpoint.c: Fix common/ includes.
9711 * ax.h:
9712 (enum agent_op): Fix common/ includes.
9713 * ax-general.c (struct aop_map): Fix common/ includes.
9714 * ax-gdb.c: Fix common/ includes.
9715 * auxv.c: Fix common/ includes.
9716 * auto-load.c: Fix common/ includes.
9717 * arm-tdep.c: Fix common/ includes.
9718 * arch/riscv.c: Fix common/ includes.
9719 * arch/ppc-linux-common.c: Fix common/ includes.
9720 * arch/i386.c: Fix common/ includes.
9721 * arch/arm.c: Fix common/ includes.
9722 * arch/arm-linux.c: Fix common/ includes.
9723 * arch/arm-get-next-pcs.c: Fix common/ includes.
9724 * arch/amd64.c: Fix common/ includes.
9725 * arch/aarch64.c: Fix common/ includes.
9726 * arch/aarch64-insn.c: Fix common/ includes.
9727 * arch-utils.c: Fix common/ includes.
9728 * amd64-windows-tdep.c: Fix common/ includes.
9729 * amd64-tdep.c: Fix common/ includes.
9730 * amd64-sol2-tdep.c: Fix common/ includes.
9731 * amd64-obsd-tdep.c: Fix common/ includes.
9732 * amd64-nbsd-tdep.c: Fix common/ includes.
9733 * amd64-linux-tdep.c: Fix common/ includes.
9734 * amd64-linux-nat.c: Fix common/ includes.
9735 * amd64-fbsd-tdep.c: Fix common/ includes.
9736 * amd64-fbsd-nat.c: Fix common/ includes.
9737 * amd64-dicos-tdep.c: Fix common/ includes.
9738 * amd64-darwin-tdep.c: Fix common/ includes.
9739 * agent.c: Fix common/ includes.
9740 * ada-lang.h: Fix common/ includes.
9741 * ada-lang.c: Fix common/ includes.
9742 * aarch64-tdep.c: Fix common/ includes.
9743
2f5c153e
TT
97442019-01-25 Tom Tromey <tom@tromey.com>
9745
9746 * common/create-version.sh: Use common/version.h.
9747
adc6a863
PA
97482019-01-24 Pedro Alves <palves@redhat.com>
9749
9750 * infrun.c (signal_stop, signal_print, signal_program)
9751 (signal_catch, signal_pass): Now arrays instead of pointers.
9752 (update_signals_program_target, do_target_resume)
9753 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9754 * linux-nat.c (linux_nat_target::pass_signals)
9755 (linux_nat_target::create_inferior, linux_nat_target::attach):
9756 Adjust.
9757 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9758 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9759 * procfs.c (procfs_target::pass_signals): Adjust.
9760 * record-full.c (record_full_target::resume): Adjust.
9761 * remote.c (remote_target::pass_signals)
9762 (remote_target::program_signals): Adjust.
9763 * target-debug.h (target_debug_print_signals): Now takes a
9764 gdb::array_view as parameter. Adjust.
9765 * target.h (target_ops) <pass_signals, program_signals>: Replace
9766 pointer and length parameters with gdb::array_view.
9767 (target_pass_signals, target_program_signals): Likewise.
9768 * target-delegates.c: Regenerate.
9769
3046d67a
PA
97702019-01-24 Pedro Alves <palves@redhat.com>
9771
9772 * common/forward-scope-exit.h
9773 (forward_scope_exit::forward_scope_exit): Pass arguments to
9774 m_bind_function directly, instead of creating a std::bind and
9775 copying that.
9776
353229bf
AH
97772019-01-24 Alan Hayward <alan.hayward@arm.com>
9778
9779 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9780 for static members.
9781 (pass_in_v_vfp_candidate): Likewise.
9782
311dc83a
TT
97832019-01-23 Tom Tromey <tom@tromey.com>
9784 Pedro Alves <palves@redhat.com>
9785
9786 * regcache.c (class regcache_invalidator): Remove.
9787 (regcache::raw_write): Use make_scope_exit.
9788
296bd123
TT
97892019-01-23 Tom Tromey <tom@tromey.com>
9790
9791 * ui-out.h (class ui_out_emit_type): Update comment.
9792
979a0d13
TT
97932019-01-23 Tom Tromey <tom@tromey.com>
9794
9795 * infrun.c (fetch_inferior_event): Update comment.
9796
d238133d
TT
97972019-01-23 Tom Tromey <tom@tromey.com>
9798 Pedro Alves <palves@redhat.com>
9799
9800 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9801 parameter.
9802 (fetch_inferior_event): Use SCOPE_EXIT.
9803
9804
9885e6bb
TT
98052019-01-23 Tom Tromey <tom@tromey.com>
9806 Pedro Alves <palves@redhat.com>
9807
9808 * infrun.c (disable_thread_events): Delete.
9809 (stop_all_threads): Use SCOPE_EXIT.
9810
286526c1
TT
98112019-01-23 Tom Tromey <tom@tromey.com>
9812 Pedro Alves <palves@redhat.com>
9813
9814 * symfile.c: Include forward-scope-exit.h.
9815 (clear_symtab_users_cleanup): Replace forward declaration with
9816 a FORWARD_SCOPE_EXIT.
9817 (syms_from_objfile_1): Use the forward_scope_exit and
9818 gdb::optional instead of cleanup_function.
9819 (reread_symbols): Use the forward_scope_exit instead of
9820 cleanup_function.
9821 (clear_symtab_users_cleanup): Remove function.
9822
1db93f14
TT
98232019-01-23 Tom Tromey <tom@tromey.com>
9824 Pedro Alves <palves@redhat.com>
9825
9826 * linux-nat.c: Include scope-exit.h.
9827 (cleanup_target_stop): Remove.
9828 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9829 SCOPE_EXIT.
9830
2cc83d1e
TT
98312019-01-23 Tom Tromey <tom@tromey.com>
9832 Pedro Alves <palves@redhat.com>
9833
9834 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9835 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9836
694c6bf5
TT
98372019-01-23 Tom Tromey <tom@tromey.com>
9838 Andrew Burgess <andrew.burgess@embecosm.com>
9839 Pedro Alves <palves@redhat.com>
9840
9841 * infrun.c (fetch_inferior_event): Use scope_exit.
9842 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9843 * top.c (execute_command): Use scope_exit.
9844 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9845 * utils.c (do_bpstat_clear_actions_cleanup)
9846 (make_bpstat_clear_actions_cleanup): Remove.
9847
4c41382a
TT
98482019-01-23 Tom Tromey <tom@tromey.com>
9849 Pedro Alves <palves@redhat.com>
9850
9851 * infrun.c: Include "common/scope-exit.h"
9852 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9853 (wait_for_inferior): Use SCOPE_EXIT.
9854 (fetch_inferior_event): Use scope_exit.
9855
89f8fb50
TT
98562019-01-23 Tom Tromey <tom@tromey.com>
9857 Pedro Alves <palves@redhat.com>
9858
9859 * breakpoint.c (create_breakpoint): Remove cleanup.
9860
5419bdae
TT
98612019-01-23 Tom Tromey <tom@tromey.com>
9862 Andrew Burgess <andrew.burgess@embecosm.com>
9863 Pedro Alves <palves@redhat.com>
9864
e587ef42
PA
98652019-01-23 Pedro Alves <palves@redhat.com>
9866
9867 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9868
77f0e74c
PA
98692019-01-23 Pedro Alves <palves@redhat.com>
9870 Andrew Burgess <andrew.burgess@embecosm.com>
9871
9872 * gdbthread.h: Include "common/forward-scope-exit.h".
9873 (scoped_finish_thread_state): Redefine custom class in terms of
9874 forward_scope_exit.
9875
5b9b3e53
PA
98762019-01-23 Pedro Alves <palves@redhat.com>
9877 Andrew Burgess <andrew.burgess@embecosm.com>
9878
9879 * common/forward-scope-exit.h: New file.
9880
54b65c9b
PA
98812019-01-23 Pedro Alves <palves@redhat.com>
9882 Andrew Burgess <andrew.burgess@embecosm.com>
9883 Tom Tromey <tom@tromey.com>
9884
9885 * common/scope-exit.h: New file.
9886
cf08fb29
PA
98872019-01-23 Pedro Alves <palves@redhat.com>
9888
9889 * common/preprocessor.h (ESC): Rename to ...
9890 (ESC_PARENS): ... this.
9891 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9892 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9893
ae73e2e2
TT
98942019-01-23 Tom Tromey <tom@tromey.com>
9895
9896 * language.h (class scoped_switch_to_sym_language_if_auto):
9897 Initialize m_lang in both cases.
9898
6594e122
AH
98992019-01-23 Alan Hayward <alan.hayward@arm.com>
9900
9901 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9902 with XCNEW.
9903
a7c9855d
TT
99042019-01-22 Tom Tromey <tom@tromey.com>
9905
9906 * corelow.c: Do not include sys/file.h.
9907
93cc1d53
TT
99082019-01-22 Tom Tromey <tom@tromey.com>
9909
9910 * tui/tui-wingeneral.h: Include gdb_curses.h.
9911
38561778
TT
99122019-01-22 Tom Tromey <tom@tromey.com>
9913
9914 * source-cache.h (class source_cache) <get_source_lines,
9915 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9916
37b3ab5b
TT
99172019-01-22 Tom Tromey <tom@tromey.com>
9918
9919 * remote-fileio.h (struct remote_target): Declare.
9920
3fabc016
TT
99212019-01-22 Tom Tromey <tom@tromey.com>
9922
9923 * python/py-arch.c: Do not include py-ref.h.
9924 * python/py-bpevent.c: Do not include py-ref.h.
9925 * python/py-cmd.c: Do not include py-ref.h.
9926 * python/py-continueevent.c: Do not include py-ref.h.
9927 * python/py-event.h: Do not include py-ref.h.
9928 * python/py-evtregistry.c: Do not include py-ref.h.
9929 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9930 * python/py-frame.c: Do not include py-ref.h.
9931 * python/py-framefilter.c: Do not include py-ref.h.
9932 * python/py-function.c: Do not include py-ref.h.
9933 * python/py-infevents.c: Do not include py-ref.h.
9934 * python/py-linetable.c: Do not include py-ref.h.
9935 * python/py-objfile.c: Do not include py-ref.h.
9936 * python/py-param.c: Do not include py-ref.h.
9937 * python/py-prettyprint.c: Do not include py-ref.h.
9938 * python/py-progspace.c: Do not include py-ref.h.
9939 * python/py-symbol.c: Do not include py-ref.h.
9940 * python/py-symtab.c: Do not include py-ref.h.
9941 * python/py-type.c: Do not include py-ref.h.
9942 * python/py-unwind.c: Do not include py-ref.h.
9943 * python/py-utils.c: Do not include py-ref.h.
9944 * python/py-value.c: Do not include py-ref.h.
9945 * python/py-varobj.c: Do not include py-ref.h.
9946 * python/py-xmethods.c: Do not include py-ref.h.
9947 * python/python.c: Do not include py-ref.h.
9948 * varobj.c: Do not include py-ref.h.
9949
6b4d7774
TT
99502019-01-22 Tom Tromey <tom@tromey.com>
9951
9952 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9953 keyword for bcache.
9954
7af7e9b5
TT
99552019-01-22 Tom Tromey <tom@tromey.com>
9956
9957 * compile/compile-cplus-types.c: Remove a comment by #include.
9958
951d1049
TT
99592019-01-22 Tom Tromey <tom@tromey.com>
9960
9961 * compile/gcc-c-plugin.h: Include compile-internal.h.
9962
d65d5705
TT
99632019-01-22 Tom Tromey <tom@tromey.com>
9964
9965 * stabsread.c (EXTERN): Do not define.
9966 (symnum, next_symbol_text_func, processing_gcc_compilation)
9967 (within_function, global_sym_chain, global_stabs)
9968 (previous_stab_code, this_object_header_files)
9969 (n_this_object_header_files)
9970 (n_allocated_this_object_header_files): Define.
9971 * stabsread.h (EXTERN): Never define. Use "extern".
9972
b6fb1ee5
PW
99732019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9974
9975 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9976 history_value.
9977
be6d4f74
TT
99782019-01-21 Tom Tromey <tom@tromey.com>
9979
9980 * ui-out.c: Fix includes.
9981 * tui/tui-source.c: Fix includes.
9982 * target.c: Fix includes.
9983 * remote.c: Fix includes.
9984 * regcache.c: Fix includes.
9985 * python/py-block.c: Fix includes.
9986 * printcmd.c: Fix includes.
9987 * or1k-tdep.c: Fix includes.
9988 * mi/mi-main.c: Fix includes.
9989 * m32r-tdep.c: Fix includes.
9990 * csky-tdep.c: Fix includes.
9991 * compile/compile-cplus-types.c: Fix includes.
9992 * cli/cli-interp.c: Fix includes.
9993
73021deb
AH
99942019-01-21 Alan Hayward <alan.hayward@arm.com>
9995
9996 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9997 for padding.
9998
7932255d
TT
99992019-01-16 Tom Tromey <tom@tromey.com>
10000
10001 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10002 earlier.
10003 (struct objfile) <msymbols_range>: Move from top level.
10004 <msymbols>: New method.
10005 (class objfile_msymbols): Remove.
10006 * symtab.c (default_collect_symbol_completion_matches_break_on):
10007 Update.
10008 * symmisc.c (dump_msymbols): Update.
10009 * stabsread.c (scan_file_globals): Update.
10010 * objc-lang.c (info_selectors_command, info_classes_command)
10011 (find_methods): Update.
10012 * minsyms.c (find_solib_trampoline_target): Update.
10013 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10014 * coffread.c (coff_symfile_read): Update.
10015 * ada-lang.c (ada_lookup_simple_minsym)
10016 (ada_collect_symbol_completion_matches): Update.
10017
604b1bfb
TT
100182019-01-16 Tom Tromey <tom@tromey.com>
10019
10020 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10021 type. Remove no-argument constructor.
10022 <iterator::operator++>: Simplify.
10023 <begin>: Update.
10024 <end>: Use minimal_symbol_count.
10025
f252c6d5
TT
100262019-01-16 Tom Tromey <tom@tromey.com>
10027
10028 * objfiles.h (struct objfile) <psymtabs>: New method.
10029 (class objfile_psymtabs): Remove.
10030 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10031 typedef.
10032 <range>: New method.
10033 (require_partial_symbols): Change return type.
10034 * psymtab.c (require_partial_symbols)
10035 (psym_expand_symtabs_matching): Update.
10036 * mdebugread.c (parse_partial_symbols): Update.
10037 * dbxread.c (dbx_end_psymtab): Update.
10038
b669c953
TT
100392019-01-15 Tom Tromey <tom@tromey.com>
10040
10041 * symtab.c (lookup_objfile_from_block)
10042 (lookup_symbol_in_objfile_symtabs)
10043 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10044 (find_line_symtab, info_sources_command)
10045 (default_collect_symbol_completion_matches_break_on)
10046 (make_source_files_completion_list): Update.
10047 * symmisc.c (print_objfile_statistics, dump_objfile)
10048 (maintenance_print_symbols, maintenance_info_symtabs)
10049 (maintenance_check_symtabs, maintenance_info_line_tables):
10050 Update.
10051 * source.c (select_source_symtab)
10052 (forget_cached_source_info_for_objfile): Update.
10053 * objfiles.h (class objfile_compunits): Remove.
10054 (struct objfile) <compunits_range>: New typedef.
10055 (compunits): New method.
10056 * objfiles.c (objfile_relocate1): Update.
10057 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10058 * maint.c (count_symtabs_and_blocks): Update.
10059 * linespec.c (iterate_over_all_matching_symtabs): Update.
10060 * cp-support.c (add_symbol_overload_list_qualified): Update.
10061 * coffread.c (coff_symtab_read): Update.
10062 * ada-lang.c (add_nonlocal_symbols)
10063 (ada_collect_symbol_completion_matches)
10064 (ada_add_global_exceptions): Update.
10065
7e955d83
TT
100662019-01-15 Tom Tromey <tom@tromey.com>
10067
10068 * progspace.h (program_space) <objfiles_safe_range>: New
10069 typedef.
10070 <objfiles_safe>: New method.
10071 * objfiles.h (class all_objfiles_safe): Remove.
10072 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10073 * jit.c (jit_inferior_exit_hook): Update.
10074
2030c079
TT
100752019-01-17 Tom Tromey <tom@tromey.com>
10076
10077 * progspace.h (program_space) <objfiles_range>: New typedef.
10078 <objfiles>: New method.
10079 <objfiles_head>: Rename from objfiles.
10080 (object_files): Update.
10081 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10082 * guile/scm-pretty-print.c
10083 (ppscm_find_pretty_printer_from_objfiles): Update.
10084 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10085 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10086 Update.
10087 * python/py-progspace.c (pspy_get_objfiles): Update.
10088 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10089 Update.
10090 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10091 (objfpy_lookup_objfile_by_build_id): Update.
10092 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10093 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10094 Update.
10095 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10096 (expand_symtab_containing_pc, lookup_objfile_from_block)
10097 (lookup_static_symbol, basic_lookup_transparent_type)
10098 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10099 (find_line_symtab, info_sources_command)
10100 (default_collect_symbol_completion_matches_break_on)
10101 (make_source_files_completion_list, find_main_name): Update.
10102 * symmisc.c (print_symbol_bcache_statistics)
10103 (print_objfile_statistics, maintenance_print_symbols)
10104 (maintenance_print_msymbols, maintenance_print_objfiles)
10105 (maintenance_info_symtabs, maintenance_check_symtabs)
10106 (maintenance_expand_symtabs, maintenance_info_line_tables):
10107 Update.
10108 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10109 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10110 (map_overlay_command, unmap_overlay_command)
10111 (simple_overlay_update, expand_symtabs_matching)
10112 (map_symbol_filenames): Update.
10113 * symfile-debug.c (set_debug_symfile): Update.
10114 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10115 Update.
10116 * source.c (select_source_symtab, forget_cached_source_info):
10117 Update.
10118 * solib.c (solib_read_symbols): Update.
10119 * solib-spu.c (append_ocl_sos): Update.
10120 * psymtab.c (maintenance_print_psymbols)
10121 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10122 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10123 * printcmd.c (info_symbol_command): Update.
10124 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10125 Update.
10126 * objfiles.h (class all_objfiles): Remove.
10127 * objfiles.c (have_partial_symbols, have_full_symbols)
10128 (have_minimal_symbols, qsort_cmp, update_section_map)
10129 (shared_objfile_contains_address_p)
10130 (default_iterate_over_objfiles_in_search_order): Update.
10131 * objc-lang.c (info_selectors_command, info_classes_command)
10132 (find_methods): Update.
10133 * minsyms.c (find_solib_trampoline_target): Update.
10134 * maint.c (maintenance_info_sections)
10135 (maintenance_translate_address, count_symtabs_and_blocks):
10136 Update.
10137 * main.c (captured_main_1): Update.
10138 * linux-thread-db.c (try_thread_db_load_from_pdir)
10139 (has_libpthread): Update.
10140 * linespec.c (iterate_over_all_matching_symtabs)
10141 (search_minsyms_for_name): Update.
10142 * jit.c (jit_find_objf_with_entry_addr): Update.
10143 * hppa-tdep.c (find_unwind_entry)
10144 (hppa_lookup_stub_minimal_symbol): Update.
10145 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10146 Update.
10147 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10148 (elf_gnu_ifunc_resolve_by_got): Update.
10149 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10150 * dwarf-index-write.c (save_gdb_index_command): Update.
10151 * cp-support.c (add_symbol_overload_list_qualified): Update.
10152 * breakpoint.c (create_overlay_event_breakpoint)
10153 (create_longjmp_master_breakpoint)
10154 (create_std_terminate_master_breakpoint)
10155 (create_exception_master_breakpoint): Update.
10156 * blockframe.c (find_pc_partial_function): Update.
10157 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10158 (ada_collect_symbol_completion_matches)
10159 (ada_add_global_exceptions): Update.
10160
776489e0
TT
101612019-01-17 Tom Tromey <tom@tromey.com>
10162
10163 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10164 declare VEC.
10165 (solib_target_parse_libraries): Change return type.
10166 (library_list_start_segment, library_list_start_section)
10167 (library_list_end_library, library_list_start_library); Update.
10168 (solib_target_free_library_list): Remove.
10169 (solib_target_parse_libraries): Remove cleanup. Change return
10170 type.
10171 (solib_target_current_sos): Update.
10172
6471e7d2
TT
101732019-01-17 Tom Tromey <tromey@bapiya>
10174
10175 * valprint.c: Replace "the the" with "the".
10176 * symtab.c: Replace "the the" with "the".
10177 * solib.c: Replace "the the" with "the".
10178 * solib-dsbt.c: Replace "the the" with "the".
10179 * linespec.c: Replace "the the" with "the".
10180 * dwarf2loc.h: Replace "the the" with "the".
10181 * amd64-windows-tdep.c: Replace "the the" with "the".
10182 * aarch64-tdep.c: Replace "the the" with "the".
10183
c24bdb02
KS
101842019-01-16 Keith Seitz <keiths@redhat.com>
10185
10186 PR gdb/23773
10187 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10188 <builder>: Rename to ..
10189 <m_builder>: ... this and make private.
10190 (dwarf2_cu::get_builder): New method. Change all users of
10191 `builder' to use this method.
10192 (dwarf2_start_symtab): Move to ...
10193 (dwarf2_cu::start_symtab): ... here. Update all callers
10194 (setup_type_unit_groups): Move to ...
10195 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10196 callers.
10197 (dwarf2_cu::reset_builder): New method.
10198 (process_full_compunit, process_full_type_unit): Use
10199 dwarf2_cu::reset_builder.
10200 (follow_die_offset): Record the ancestor CU if it is different
10201 from the followed DIE's CU.
10202 (follow_die_sig_1): Likewise.
10203
8d64371b
TT
102042019-01-15 Tom Tromey <tom@tromey.com>
10205
10206 * remote.c (class remote_state) <buf>: Now a char_vector.
10207 <buf_size>: Remove.
10208 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10209 parameter.
10210 (remote_target::getpkt_or_notif_sane_1)
10211 (remote_target::getpkt_sane)
10212 (remote_target::getpkt_or_notif_sane): Likewise.
10213 (class remote_target) <putpkt>: New overload.
10214 (remote_target::read_frame): Change type of "buf_p". Remove
10215 sizeof_p parameter.
10216 (packet_ok): New overload.
10217 (packet_check_result): New overload.
10218 Update all uses.
10219
bb277751
TT
102202019-01-14 Tom Tromey <tom@tromey.com>
10221
10222 * remote-notif.c (handle_notification, remote_notif_ack)
10223 (remote_notif_parse): Make "buf" const.
10224 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10225 const.
10226 (remote_notif_parse, remote_notif_ack, handle_notification):
10227 Likewise.
10228 * remote.c (remote_notif_stop_parse): Make "buf" const.
10229 (remote_target::remote_parse_stop_reply): Make "buf" const.
10230 (remote_notif_stop_ack): Make "buf" const.
10231
05be00a8
TT
102322019-01-14 Tom Tromey <tom@tromey.com>
10233
10234 * remote.c (remote_console_output): Make parameter const.
10235
491adeca
TT
102362019-01-14 Tom Tromey <tom@tromey.com>
10237
10238 * target-debug.h (target_debug_print_signals): Constify.
10239 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10240 * procfs.c (procfs_target::pass_signals): Update.
10241 * linux-nat.c (linux_nat_target::pass_signals): Update.
10242 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10243 * target-delegates.c: Rebuild.
10244 * remote.c (remote_target::program_signals): Update.
10245 (remote_target::pass_signals): Update.
10246 * target.c (target_pass_signals): Constify argument.
10247 (target_program_signals): Likewise.
10248 * target.h (struct target_ops) <pass_signals, program_signals>:
10249 Constify argument.
10250 (target_pass_signals, target_program_signals): Constify argument.
10251
bbd94648
TT
102522019-01-14 Tom Tromey <tom@tromey.com>
10253
10254 PR tui/28819:
10255 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10256
6f072a10
PFC
102572019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10258
10259 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10260 field.
10261 * rs6000-tdep.c: Include reggroups.h.
10262 (IS_V_ALIAS_PSEUDOREG): Define.
10263 (rs6000_register_name): Return names for the "vX" aliases.
10264 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10265 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10266 aliases. Call default_register_reggroup_p for all other
10267 pseudo-registers.
10268 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10269 New functions.
10270 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10271 Handle "vX" aliases.
10272 (v_alias_pseudo_register_collect): New function.
10273 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10274 (rs6000_gdbarch_init): Initialize "vX" aliases as
10275 pseudo-registers. Restore registration of
10276 rs6000_pseudo_register_reggroup_p with
10277 set_tdesc_pseudo_register_reggroup_p.
10278
1a782351
MF
102792019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10280
10281 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10282 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10283 set_gdbarch_num_pseudo_regs.
10284
d73cff18
PW
102852019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10286
10287 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10288 Remove arg prefixname, add do_set and do_show.
10289 Add member functions set_list and show_list.
10290 * cli/cli-style.c (class cli_style_option): Update accordingly.
10291 (style_set_list): Move to file scope.
10292 (style_show_list): Likewise.
10293 (set_style): Call help_list.
10294 (show_style): Call cmd_show_list.
10295 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10296 Update to use the new macro.
10297
60a90376
JB
102982019-10-12 Joel Brobecker <brobecker@adacore.com>
10299
10300 * ada-lang.c (_initialize_ada_language): Expand the help text
10301 for the "catch exception" command.
10302
9d7c67bf
PW
103032019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10304
10305 * symtab.c (matching_obj_sections): Initialize obj,
10306 declare it closer to its usage.
10307
7cf47dc4
TT
103082019-01-10 Tom Tromey <tom@tromey.com>
10309
10310 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10311 (basic_inf_threads_range): Remove.
10312 (inf_threads_range, inf_non_exited_threads_range)
10313 (safe_inf_threads_range): Use next_adapter.
10314
d3cb6808
KS
103152019-01-10 Keith Seitz <keiths@redhat.com>
10316
10317 PR gdb/23712
10318 PR symtab/23010
10319 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10320 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10321
63a20375
KS
103222019-01-10 Keith Seitz <keiths@redhat.com>
10323
10324 PR gdb/23712
10325 PR symtab/23010
10326 * dictionary.c (pending_to_vector): Remove.
10327 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10328 Remove _1 suffix, replacing functions of the same name. Update
10329 all callers.
10330 (dict_create_hashed, dict_create_hashed_expandable)
10331 (dict_create_linear, dict_create_linear_expandable, dict_free)
10332 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10333 Make functions static.
10334
b026f593
KS
103352019-01-10 Keith Seitz <keiths@redhat.com>
10336
10337 PR gdb/23712
10338 PR symtab/23010
10339 * dictionary.h (struct dictionary): Replace declaration with
10340 multidictionary.
10341 (dict_create_hashed, dict_create_hashed_expandable)
10342 (dict_create_linear, dict_create_linear_expandable)
10343 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10344 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10345 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10346 taking multidictionary argument.
10347 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10348 * block.h (struct block) <dict>: Change to multidictionary
10349 and rename `multidict'.
10350 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10351 symmisc.c: Update all dictionary references to multidictionary.
10352
c7748ee9
KS
103532019-01-10 Keith Seitz <keiths@redhat.com>
10354
10355 PR gdb/23712
10356 PR symtab/23010
10357 * dictionary.c: Include unordered_map.
10358 (pending_to_vector): New function.
10359 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10360 Rewrite the non-"_1" functions to take vector instead
10361 of linked list.
10362 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10363 "new" _1 versions of the same name.
10364 (multidictionary): Define.
10365 (std::hash<enum language): New definition.
10366 (collate_pending_symbols_by_language, mdict_create_hashed)
10367 (mdict_create_hashed_expandable, mdict_create_linear)
10368 (mdict_create_linear_expandable, mdict_free)
10369 (find_language_dictionary, create_new_language_dictionary)
10370 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10371 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10372 (mdict_size, mdict_empty): New functions.
10373 * dictionary.h (mdict_iterator): Define.
10374
67aa1f3c
PA
103752019-01-10 Pedro Alves <palves@redhat.com>
10376
10377 * breakpoint.c (read_uploaded_action)
10378 (create_tracepoint_from_upload): Adjust to use
10379 gdb::unique_xmalloc_ptr.
10380 * ctf.c (ctf_write_uploaded_tp):
10381 (SET_ARRAY_FIELD): Use emplace_back.
10382 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10383 * tracefile-tfile.c (tfile_write_uploaded_tp):
10384 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10385 gdb::unique_xmalloc_ptr.
10386 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10387 at_string, cond_string, cmd_strings>: Replace char pointers
10388 with gdb::unique_xmalloc_ptr.
10389
2f667667
PA
103902019-01-10 Pedro Alves <palves@redhat.com>
10391
10392 * solib-target.c (library_list_start_library): Don't xstrdup name.
10393
36cb7237
PA
103942019-01-10 Pedro Alves <palves@redhat.com>
10395
10396 * mdebugread.c (parse_partial_symbols): Use
10397 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10398
da584958
AB
103992019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10400
10401 * linux-fork.c (scoped_switch_fork_info)
10402 <~scoped_switch_fork_info>: Fix incorrect variable name.
10403
1ef8573c
AB
104042019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10405
10406 * linux-fork.c (scoped_switch_fork_info)
10407 <scoped_switch_fork_info>: Make explicit.
10408 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10409
8d7bcccb
TT
104102019-01-10 Tom Tromey <tom@tromey.com>
10411
10412 * objfiles.h (objfile::reset_psymtabs): Update.
10413 * objfiles.c (objfile::objfile): Update.
10414 * psymtab.h (psymtab_storage::obstack): Update.
10415 (psymtab_storage::m_obstack): Use gdb::optional.
10416 (class psymtab_storage): Update comment. Remove objfile
10417 parameter.
10418 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10419
b596a3c7
TT
104202019-01-10 Tom Tromey <tom@tromey.com>
10421
10422 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10423 <free_psymtabs>: Now private.
10424 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10425 (allocate_psymtab): Use new method.
10426
a9342b62
TT
104272019-01-10 Tom Tromey <tom@tromey.com>
10428
10429 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10430 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10431 * mdebugread.c (parse_partial_symbols): Use
10432 allocate_dependencies.
10433 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10434 allocate_dependencies.
10435 (process_psymtab_comp_unit_reader)
10436 (build_type_psymtab_dependencies): Likewise.
10437 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10438
5af70966
TT
104392019-01-10 Tom Tromey <tom@tromey.com>
10440
10441 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10442 PSYMBOL_SET_LANGUAGE.
10443 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10444
5923a04c
TT
104452019-01-10 Tom Tromey <tom@tromey.com>
10446
10447 * psymtab.h (psymtab_storage::obstack): New method.
10448 <m_obstack>: Rename from obstack; now private.
10449 * psymtab.c (psymtab_storage): Update.
10450 * dwarf2read.c (create_addrmap_from_index)
10451 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10452 Update.
10453
6d6a12bf
TT
104542019-01-10 Tom Tromey <tom@tromey.com>
10455
10456 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10457 * objfiles.h (objfile::reset_psymtabs): New method.
10458
d320c2b5
TT
104592019-01-10 Tom Tromey <tom@tromey.com>
10460
10461 * symmisc.c (print_symbol_bcache_statistics): Update.
10462 (print_objfile_statistics): Update.
10463 * symfile.c (reread_symbols): Update.
10464 * psymtab.h (class psymtab_storage): New.
10465 * psymtab.c (psymtab_storage): New constructor.
10466 (~psymtab_storage): New destructor.
10467 (require_partial_symbols): Update.
10468 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10469 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10470 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10471 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10472 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10473 (start_psymtab_common, end_psymtab_common)
10474 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10475 (allocate_psymtab): Update.
10476 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10477 Update.
10478 (dump_psymtab_addrmap, maintenance_print_psymbols)
10479 (maintenance_check_psymtabs): Update.
10480 (class objfile_psymtabs): Move to objfiles.h.
10481 * psympriv.h (discard_psymtab): Now inline.
10482 (psymtab_discarder::psymtab_discarder): Update.
10483 (psymtab_discarder::~psymtab_discarder): Update.
10484 (ALL_OBJFILE_PSYMTABS): Rewrite.
10485 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10486 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10487 Remove fields.
10488 <partial_symtabs>: New field.
10489 (class objfile_psymtabs): Move from psymtab.h. Update.
10490 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10491 psymbol_cache.
10492 (objfile::~objfile): Don't destroy psymbol_cache.
10493 * mdebugread.c (parse_partial_symbols): Update.
10494 * dwarf2read.c (create_addrmap_from_index)
10495 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10496 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10497 (add_partial_subprogram, dwarf2_ranges_read): Update.
10498 * dwarf-index-write.c (write_address_map)
10499 (write_one_signatured_type, recursively_write_psymbols)
10500 (class debug_names, class debug_names, write_psymtabs_to_index):
10501 Update.
10502
1d94a5a3
TT
105032019-01-10 Tom Tromey <tom@tromey.com>
10504
10505 * symtab.h (SYMBOL_SET_NAMES): Update.
10506 (symbol_set_names): Update.
10507 (MSYMBOL_SET_NAMES): Update.
10508 * symtab.c (symbol_set_names): Change argument to be an
10509 objfile_per_bfd_storage.
10510 * psymtab.c (add_psymbol_to_bcache): Update.
10511 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10512
0f14768a
TT
105132019-01-10 Tom Tromey <tom@tromey.com>
10514
10515 * symtab.c (create_demangled_names_hash): Change argument to be an
10516 objfile_per_bfd_storage.
10517 (symbol_set_names): Update.
10518
6eee24ce
TT
105192019-01-10 Tom Tromey <tom@tromey.com>
10520
10521 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10522 init_psymbol_list.
10523 * psymtab.c (init_psymbol_list): Do nothing if already called.
10524 * psympriv.h (init_psymbol_list): Add comment.
10525 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10526 init_psymbol_list.
10527 * dbxread.c (dbx_symfile_read): Unconditionally call
10528 init_psymbol_list.
10529
75aedd27
TT
105302019-01-10 Tom Tromey <tom@tromey.com>
10531
10532 * xcoffread.c (scan_xcoff_symtab): Update.
10533 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10534 "where".
10535 * mdebugread.c (parse_partial_symbols)
10536 (handle_psymbol_enumerators): Update.
10537 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10538 * dbxread.c (read_dbx_symtab): Update.
10539 * psympriv.h (psymbol_placement): New enum.
10540 (add_psymbol_to_list): Update.
10541
939652a5
TT
105422019-01-10 Tom Tromey <tom@tromey.com>
10543
10544 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10545 static_psymbols parameters.
10546 (scan_xcoff_symtab): Update.
10547 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10548 static_psymbols parameters.
10549 * psympriv.h (start_psymtab_common): Update.
10550 * mdebugread.c (parse_partial_symbols): Update.
10551 * dwarf2read.c (create_partial_symtab): Update.
10552 * dbxread.c (read_dbx_symtab): Update.
10553 (start_psymtab): Remove global_psymbols and static_psymbols
10554 parameters.
10555
baa62830
TT
105562019-01-10 Tom Tromey <tom@tromey.com>
10557
10558 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10559 * psymtab.c (allocate_psymtab): Add comment.
10560 * psympriv.h (allocate_psymtab): Add comment.
10561 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10562 initializations.
10563 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10564
0e8f53ba
TT
105652019-01-10 Tom Tromey <tom@tromey.com>
10566
10567 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10568 Don't declare.
10569 * mipsread.c: Include mdebugread.h.
10570 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10571 Declare.
10572 * elfread.c: Include mdebugread.h.
10573
b22a7c6a
TT
105742019-01-09 Tom Tromey <tom@tromey.com>
10575
10576 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10577 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10578 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10579 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10580 (psym_lookup_symbol, psym_find_last_source_symtab)
10581 (psym_forget_cached_source_info, psym_print_stats)
10582 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10583 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10584 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10585 (psym_find_compunit_symtab_by_address)
10586 (maintenance_print_psymbols, maintenance_info_psymtabs)
10587 (maintenance_check_psymtabs): Use ranged for.
10588 * psymtab.h (class objfile_psymtabs): New.
10589 (require_partial_symbols): Return objfile_psymtabs.
10590 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10591
3b9d3ac2
TT
105922019-01-09 Tom Tromey <tom@tromey.com>
10593
10594 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10595 (find_pc_mapped_section, list_overlays_command)
10596 (map_overlay_command, unmap_overlay_command)
10597 (simple_overlay_update): Use all_objfiles.
10598 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10599 * printcmd.c (info_symbol_command): Use all_objfiles.
10600 * objfiles.h (ALL_OBJSECTIONS): Remove.
10601 * maint.c (maintenance_translate_address): Use all_objfiles.
10602 * gcore.c (gcore_create_callback): Use all_objfiles.
10603 (objfile_find_memory_regions): Likewise.
10604
8b31193a
TT
106052019-01-09 Tom Tromey <tom@tromey.com>
10606
10607 * symtab.c (find_line_symtab, info_sources_command)
10608 (make_source_files_completion_list): Use objfile_compunits.
10609 * source.c (select_source_symtab): Use objfile_compunits.
10610 * objfiles.h (struct objfile): Update comment.
10611 (ALL_OBJFILES): Remove.
10612 (ALL_FILETABS): Remove.
10613 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10614 objfile_compunits.
10615
d5da8b3c
TT
106162019-01-09 Tom Tromey <tom@tromey.com>
10617
10618 * symmisc.c (print_objfile_statistics, dump_objfile)
10619 (maintenance_print_symbols): Use compunit_filetabs.
10620 * source.c (forget_cached_source_info_for_objfile): Use
10621 compunit_filetabs.
10622 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10623 (ALL_FILETABS): Use compunit_filetabs.
10624 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10625 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10626
5accd1a0
TT
106272019-01-09 Tom Tromey <tom@tromey.com>
10628
10629 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10630 (compunit_filetabs): New.
10631 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10632 compunit_filetabs.
10633 (info_sources_command, make_source_files_completion_list): Remove
10634 declaration.
10635 * symmisc.c (print_objfile_statistics, dump_objfile)
10636 (maintenance_print_symbols): Remove declaration.
10637 (maintenance_info_symtabs): Use compunit_filetabs.
10638 (maintenance_info_line_tables): Likewise.
10639 * source.c (select_source_symtab): Change local variable name.
10640 (forget_cached_source_info_for_objfile): Remove declaration.
10641 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10642 * objfiles.c (objfile_relocate1): Remove declaration.
10643 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10644 declaration.
10645 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10646 * coffread.c (coff_symtab_read): Remove declaration.
10647 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10648 compunit_filetabs.
10649
d8aeb77f
TT
106502019-01-09 Tom Tromey <tom@tromey.com>
10651
10652 * symtab.c (lookup_objfile_from_block)
10653 (find_pc_sect_compunit_symtab, search_symbols)
10654 (default_collect_symbol_completion_matches_break_on): Use
10655 objfile_compunits.
10656 * objfiles.h (ALL_COMPUNITS): Remove.
10657 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10658 * cp-support.c (add_symbol_overload_list_qualified): Use
10659 objfile_compunits.
10660 * ada-lang.c (ada_collect_symbol_completion_matches)
10661 (ada_add_global_exceptions): Use objfile_compunits.
10662
592553c4
TT
106632019-01-09 Tom Tromey <tom@tromey.com>
10664
10665 * source.c (select_source_symtab)
10666 (forget_cached_source_info_for_objfile): Remove declaration.
10667 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10668 declaration.
10669 * maint.c (count_symtabs_and_blocks): Remove declaration.
10670 * cp-support.c (add_symbol_overload_list_qualified): Remove
10671 declaration.
10672 * coffread.c (coff_symtab_read): Remove declaration.
10673 * symtab.c (lookup_symbol_in_objfile_symtabs)
10674 (basic_lookup_transparent_type_1): Use objfile_compunits.
10675 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10676 (info_sources_command, search_symbols)
10677 (default_collect_symbol_completion_matches_break_on)
10678 (make_source_files_completion_list): Remove declaration.
10679 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10680 (ada_collect_symbol_completion_matches)
10681 (ada_add_global_exceptions): Remove declaration.
10682 * linespec.c (iterate_over_all_matching_symtabs): Use
10683 objfile_compunits.
10684 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10685 (class objfile_compunits): New.
10686 (ALL_COMPUNITS): Use objfile_compunits.
10687 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10688 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10689 objfile_compunits.
10690 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10691
5325b9bf
TT
106922019-01-09 Tom Tromey <tom@tromey.com>
10693
10694 * symtab.c (search_symbols)
10695 (default_collect_symbol_completion_matches_break_on): Use
10696 objfile_msymbols.
10697 * ada-lang.c (ada_lookup_simple_minsym)
10698 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10699 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10700 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10701 objfile_msymbols.
10702 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10703 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10704 * objc-lang.c (find_methods): Use objfile_msymbols.
10705 (info_selectors_command, info_classes_command): Likewise.
10706 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10707 * objfiles.h (class objfile_msymbols): New.
10708 (ALL_OBJFILE_MSYMBOLS): Remove.
10709 (ALL_MSYMBOLS): Remove.
10710
cac85af2
TT
107112019-01-09 Tom Tromey <tom@tromey.com>
10712
10713 * common/next-iterator.h (next_adapter): Add Iterator template
10714 parameter.
10715 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10716 (class all_objfiles_safe): New.
10717 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10718 * objfiles.c (put_objfile_before): Update comment.
10719 (add_separate_debug_objfile): Likewise.
10720 (free_all_objfiles): Use all_objfiles_safe.
10721 (objfile_purge_solibs): Likewise.
10722
aed57c53
TT
107232019-01-09 Tom Tromey <tom@tromey.com>
10724
10725 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10726 (expand_symtab_containing_pc, lookup_static_symbol)
10727 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10728 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10729 all_objfiles.
10730 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10731 * breakpoint.c (create_overlay_event_breakpoint)
10732 (create_longjmp_master_breakpoint)
10733 (create_std_terminate_master_breakpoint)
10734 (create_exception_master_breakpoint): Use all_objfiles.
10735 * linux-thread-db.c (try_thread_db_load_from_pdir)
10736 (has_libpthread): Use all_objfiles.
10737 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10738 * linespec.c (iterate_over_all_matching_symtabs)
10739 (search_minsyms_for_name): Use all_objfiles.
10740 * maint.c (maintenance_info_sections): Use all_objfiles.
10741 * main.c (captured_main_1): Use all_objfiles.
10742 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10743 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10744 * guile/scm-pretty-print.c
10745 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10746 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10747 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10748 (maintenance_print_msymbols): Use all_objfiles.
10749 * source.c (select_source_symtab): Use all_objfiles.
10750 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10751 * symfile.c (remove_symbol_file_command)
10752 (expand_symtabs_matching, map_symbol_filenames): Use
10753 all_objfiles.
10754 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10755 all_objfiles.
10756 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10757 * objc-lang.c (find_methods): Use all_objfiles.
10758 * objfiles.c (have_partial_symbols, have_full_symbols)
10759 (have_minimal_symbols, qsort_cmp)
10760 (default_iterate_over_objfiles_in_search_order): Use
10761 all_objfiles.
10762 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10763 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10764 (maintenance_check_psymtabs): Use all_objfiles.
10765 (ALL_PSYMTABS): Remove.
10766 * compile/compile-object-run.c (do_module_cleanup): Use
10767 all_objfiles.
10768 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10769 * cp-support.c (add_symbol_overload_list_qualified): Use
10770 all_objfiles.
10771 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10772 Use all_objfiles.
10773 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10774 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10775 all_objfiles.
10776 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10777 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10778 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10779 Uses all_objfiles.
10780 * solib.c (solib_read_symbols): Use all_objfiles
10781
99d89cde
TT
107822019-01-09 Tom Tromey <tom@tromey.com>
10783
10784 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10785 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10786 all_objfiles.
10787 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10788 * symmisc.c (print_symbol_bcache_statistics)
10789 (print_objfile_statistics, maintenance_print_objfiles)
10790 (maintenance_info_symtabs, maintenance_check_symtabs)
10791 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10792 all_objfiles.
10793 * source.c (forget_cached_source_info): Use all_objfiles.
10794 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10795 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10796 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10797 * objfiles.c (update_section_map): Use all_objfiles.
10798 (shared_objfile_contains_address_p): Likewise.
10799 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10800 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10801
21708325
TT
108022019-01-09 Tom Tromey <tom@tromey.com>
10803
10804 * common/next-iterator.h: New file.
10805 * objfiles.h (class all_objfiles): New.
10806 (struct objfile_iterator): New.
10807
669e09f6
PW
108082019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10809
10810 * NEWS: Move the description of the changed "frame", "select-frame",
10811 and "info frame" commands to the Changed commands section.
10812
041be526
SM
108132019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10814
10815 * gdbtypes.c (check_stub_method_group): Remove handling of old
10816 mangling schemes.
10817 * linespec.c (find_methods): Likewise.
10818 * stabsread.c (read_member_functions): Likewise.
10819 * valops.c (search_struct_method): Likewise.
10820 (value_struct_elt_for_reference): Likewise.
10821 * NEWS: Mention this change.
10822
0e2a2133
AB
108232019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10824
10825 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10826 print_source_lines.
10827 * source.c (print_source_lines_base): Update line number check.
10828 (print_source_lines): New function.
10829 (source_lines_range::source_lines_range): New function.
10830 * source.h (class source_lines_range): New class.
10831 (print_source_lines): New declaration.
10832
1055a3b4
PW
108332019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10834
10835 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10836
cfeadda5
TT
108372019-01-08 Tom Tromey <tom@tromey.com>
10838 Simon Marchi <simon.marchi@ericsson.com>
10839
10840 PR gdb/24060
10841 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10842 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10843 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10844 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10845 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10846 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10847
583068ca
AB
108482019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10849
10850 * source.c (select_source_symtab): Move header comment to
10851 declaration in source.h.
10852 (forget_cached_source_info_for_objfile): Likewise.
10853 (forget_cached_source_info): Likewise.
10854 (identify_source_line): Likewise.
10855 * source.h (identify_source_line): Move declaration from symtab.h
10856 and add comment from source.c
10857 (print_source_lines): Likewise.
10858 (forget_cached_source_info_for_objfile): Likewise.
10859 (forget_cached_source_info): Likewise.
10860 (select_source_symtab): Likewise.
10861 (enum print_source_lines_flag): Move definition from symtab.h.
10862 * symtab.h (identify_source_line): Move declaration to source.h.
10863 (print_source_lines): Likewise.
10864 (forget_cached_source_info_for_objfile): Likewise.
10865 (forget_cached_source_info): Likewise.
10866 (select_source_symtab): Likewise.
10867 (enum print_source_lines_flag): Move definition to source.h.
10868 * tui/tui-hooks.c: Add 'source.h' include.
10869
ec98a4ad
AB
108702019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10871
10872 * source.c (print_source_lines_base): Handle requests to print
10873 reverse line number sequences, and guard against empty lines
10874 string.
10875
62ea19c1
AB
108762019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10877
10878 * source.c (print_source_lines_base): Fix skip of '\r' if next
10879 character is '\n'.
10880
9d30e1fd
TT
108812019-01-06 Tom Tromey <tom@tromey.com>
10882
10883 * c-exp.y (struct c_parse_state) <macro_original_text,
10884 expansion_obstack>: New member.
10885 (macro_original_text, expansion_obstack): Remove globals.
10886 (scan_macro_expansion, scanning_macro_expansion)
10887 (finished_macro_expansion): Update.
10888 (scan_macro_cleanup): Remove.
10889 (yylex, c_parse): Update.
10890
c65bac38
TT
108912019-01-06 Tom Tromey <tom@tromey.com>
10892
10893 * c-exp.y (struct c_parse_state) <strings>: New member.
10894 (operator_stoken): Update.
10895
02e12e38
TT
108962019-01-06 Tom Tromey <tom@tromey.com>
10897
10898 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10899 (union type_stack_elt) <typelist_val>: Now a pointer to
10900 std::vector.
10901 (type_stack_cleanup): Don't declare.
10902 (push_typelist): Update.
10903 * parse.c (pop_typelist): Return a std::vector.
10904 (push_typelist): Take a std::vector.
10905 (follow_types): Update. Do not free args.
10906 (type_stack_cleanup): Remove.
10907 * c-exp.y (struct c_parse_state): New.
10908 (cpstate): New global.
10909 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10910 (nonempty_typelist): Update.
10911 (func_mod): Create a new vector.
10912 (c_parse): Create a c_parse_state.
10913 (check_parameter_typelist): Do not delete params.
10914 (function_method): Update. Do not delete type_list.
10915
f097f5ad
TT
109162019-01-06 Tom Tromey <tom@tromey.com>
10917
10918 PR gdb/28155:
10919 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10920 check_typedef.
10921 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10922 (print_return_value): Likewise.
10923
d2adf9f1
TT
109242019-01-05 Tom Tromey <tom@tromey.com>
10925
10926 * contrib/cleanup_check.py: Remove.
10927 * contrib/gcc-with-excheck: Remove.
10928 * contrib/exsummary.py: Remove.
10929 * contrib/excheck.py: Remove.
10930
2eab46b1
JB
109312019-01-05 Joel Brobecker <brobecker@adacore.com>
10932
10933 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10934 NULL. Initialize tpprev to NULL instead of assigning it
10935 to NULL on the next statement.
10936 * windows-nat.c (windows_delete_thread): Remove check for
10937 main_thread_id before printing thread exit notifications.
10938 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10939 Remove thread ID check against main_thread_id.
10940 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10941 windows_delete_thread.
10942 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10943
48c5e7e2
TT
109442019-01-04 Tom Tromey <tom@tromey.com>
10945
10946 * compile/compile.c (_initialize_compile): Use upper case for
10947 metasyntactic variables.
10948 * symmisc.c (_initialize_symmisc): Use upper case for
10949 metasyntactic variables.
10950 * psymtab.c (_initialize_psymtab): Use upper case for
10951 metasyntactic variables.
10952 * demangle.c (demangle_command): Use upper case for metasyntactic
10953 variables.
10954 (_initialize_demangler): Likewise.
10955 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10956 variables.
10957
986041cd
TT
109582019-01-03 Tom Tromey <tom@tromey.com>
10959
10960 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10961
7c711119
TT
109622019-01-03 Tom Tromey <tom@tromey.com>
10963
10964 * python/py-symtab.c (salpy_str): Update.
10965 (struct salpy_sal_object) <symtab>: Now a PyObject.
10966 (salpy_dealloc): Update.
10967 (del_objfile_sal): Use gdbpy_ref.
10968
1b20edf0
TT
109692019-01-03 Tom Tromey <tom@tromey.com>
10970
10971 * python/py-type.c (convert_field): Use new_reference. Return
10972 gdbpy_ref.
10973 (make_fielditem): Return gdbpy_ref.
10974 (typy_fields): Update.
10975 (typy_getitem): Update.
10976 (field_name): Return gdbpy_ref. Use new_reference.
10977 (typy_iterator_iternext): Update.
10978
ea41325b
TT
109792019-01-03 Tom Tromey <tom@tromey.com>
10980
10981 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10982
2a3c71d6
TT
109832019-01-03 Tom Tromey <tom@tromey.com>
10984
10985 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10986 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10987 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10988 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10989 (pspy_set_type_printers): Likewise.
10990 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10991 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10992 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10993 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10994 (objfpy_set_type_printers): Likewise.
10995
5c329e6a
TT
109962019-01-03 Tom Tromey <tom@tromey.com>
10997
10998 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10999 (gdbpy_print_stack): Use gdbpy_err_fetch.
11000 * python/python-internal.h (class gdbpy_err_fetch): New class.
11001 (class gdbpy_enter) <m_error_type, m_error_value,
11002 m_error_traceback>: Remove.
11003 <m_error>: New member.
11004 (gdbpy_exception_to_string): Don't declare.
11005 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11006 * python/py-value.c (convert_value_from_python): Use
11007 gdbpy_err_fetch.
11008 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11009 gdbpy_exception_to_string.
11010 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11011 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11012 gdbpy_err_fetch.
11013
169bb27b
AB
110142019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11015
11016 * linux-nat.c (delete_lwp_cleanup): Delete.
11017 (struct lwp_deleter): New struct.
11018 (lwp_info_up): New typedef.
11019 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11020 lwp_info_up.
11021
a07c8880
AB
110222019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11023
11024 * linux-fork.c (class scoped_switch_fork_info): New class.
11025 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11026
26089c49
AB
110272019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11028
11029 * valops.c (find_overload_match): Remove use of null_cleanup, and
11030 calls to do_cleanups.
11031
06d3e5b0
AB
110322019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11033
11034 * compile/compile-cplus-types.c
11035 (compile_cplus_instance::decl_name): Handle changes to
11036 cp_func_name.
11037 * cp-support.c (cp_func_name): Update header comment, update
11038 return type.
11039 * cp-support.h (cp_func_name): Update return type in declaration.
11040 * valops.c (find_overload_match): Move temp_func local to top
11041 level of function and change its type. Use temp_func to hold and
11042 delete temporary string obtained from cp_func_name.
11043
66644cd3
AB
110442019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11045
11046 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11047 gdb::char_vector, remove cleanup, and update uses of `msg`.
11048
592d8c0a
JW
110492019-01-03 Jim Wilson <jimw@sifive.com>
11050
11051 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11052
c55d06ec
TT
110532019-01-02 Tom Tromey <tom@tromey.com>
11054
11055 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11056 (tdesc_parse_xml): Remove cleanups.
11057 * target-descriptions.h (make_cleanup_free_target_description):
11058 Don't declare.
11059 (target_desc_deleter): New struct.
11060 (target_desc_up): New typedef.
11061 * target-descriptions.c (target_desc_deleter::operator()): Rename
11062 from free_target_description.
11063 (make_cleanup_free_target_description): Remove.
11064
3a6ae42d
TT
110652019-01-02 Tom Tromey <tom@tromey.com>
11066
11067 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11068 constructor, destructor.
11069 (linespec_parser): Remove typedef.
11070 (~linespec_parser): Rename from linespec_parser_delete.
11071 (linespec_lex_to_end, linespec_complete_label)
11072 (linespec_complete): Update.
11073 (decode_line_full): Remove cleanups.
11074 (decode_line_1): Update.
11075
61fd3e73
TT
110762019-01-02 Tom Tromey <tom@tromey.com>
11077
11078 * python/python-internal.h (inferior_to_inferior_object): Change
11079 return type.
11080 * python/py-exitedevent.c (create_exited_event_object): Update.
11081 * python/py-inferior.c (inferior_to_inferior_object): Return
11082 gdbpy_ref.
11083 (python_new_inferior, python_inferior_deleted)
11084 (thread_to_thread_object, delete_thread_object)
11085 (build_inferior_list, gdbpy_selected_inferior): Update.
11086 * python/py-infthread.c (create_thread_object): Update. Also fail
11087 if inferior_to_inferior_object fails.
11088
d20172fc
SM
110892019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11090
11091 * inferior.h (class inferior) <displaced_step_state>: New field.
11092 * infrun.h (struct displaced_step_state): Move here from
11093 infrun.c. Initialize fields, add constructor.
11094 <inf>: Remove field.
11095 <reset>: New method.
11096 * infrun.c (struct displaced_step_inferior_state): Move to
11097 infrun.h.
11098 (displaced_step_inferior_states): Remove.
11099 (get_displaced_stepping_state): Adust.
11100 (displaced_step_in_progress_any_inferior): Adjust.
11101 (displaced_step_in_progress_thread): Adjust.
11102 (displaced_step_in_progress): Adjust.
11103 (add_displaced_stepping_state): Remove.
11104 (get_displaced_step_closure_by_addr): Adjust.
11105 (remove_displaced_stepping_state): Remove.
11106 (infrun_inferior_exit): Call displaced_step_state.reset.
11107 (use_displaced_stepping): Don't check for NULL.
11108 (displaced_step_prepare_throw): Call
11109 get_displaced_stepping_state.
11110 (displaced_step_fixup): Don't check for NULL.
11111 (prepare_for_detach): Don't check for NULL.
11112
e3319240
PW
111132019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11114
11115 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11116 in case of call that did not complete.
11117
5d36dfb9
AU
111182019-01-02 Andrey Utkin <autkin@undo.io>
11119
11120 * symfile.c (find_separate_debug_file): Fix search of debug files for
11121 remote debuggee.
11122
8833fbf0
TT
111232019-01-02 Tom Tromey <tom@tromey.com>
11124
11125 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11126 indentation.
11127 * python/py-frame.c (frapy_older): Remove cast.
11128 (frapy_newer): Likewise.
11129 * python/py-breakpoint.c (local_setattro): Remove cast.
11130 * python/py-arch.c (archpy_name): Remove local variable.
11131 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11132
4ada3dfd
JB
111332019-01-02 Joel Brobecker <brobecker@adacore.com>
11134
11135 * unittests/basic_string_view/element_access/char/empty.cc:
11136 Fix year range in copyright header.
11137
113b7b81
AB
111382019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11139
11140 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11141 Delete.
11142 <operator==>: Update with for removed field.
11143 <hash>: Likewise.
11144 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11145 <isa_features>: ...this.
11146 <abi_features>: New field.
11147 (riscv_isa_flen): Update comment.
11148 (riscv_abi_xlen): New declaration.
11149 (riscv_abi_flen): New declaration.
11150 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11151 isa_features.
11152 (riscv_abi_xlen): New function.
11153 (riscv_isa_flen): Update to get answer from isa_features.
11154 (riscv_abi_flen): New function.
11155 (riscv_has_fp_abi): Update to get answer from abi_features.
11156 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11157 xlen and flen.
11158 (riscv_call_info) <xlen, flen>: Update comment.
11159 (riscv_call_arg_struct): Remove invalid assertions
11160 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11161 is removed.
11162 (riscv_gdbarch_init): Gather isa features and abi features
11163 separately, ensure both match on the gdbarch when reusing an old
11164 gdbarch. Relax an error check to allow 32-bit abi float to run on
11165 a target with 64-bit float hardware.
11166
b18ca514
PW
111672019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11168
11169 * source.c (search_command_helper): Stop reverse search
11170 when line 1 has been searched.
11171
ec70d8db
PW
111722019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11173
11174 * record-full.c (record_full_base_target::close): Rewrite
11175 record_full_core_buf_list free logic.
11176
5b38f9c1
PW
111772019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11178
11179 * break-catch-syscall.c (print_one_catch_syscall): xfree
11180 the last text.
11181
66d91b39
JB
111822019-01-01 Joel Brobecker <brobecker@adacore.com>
11183
11184 * top.c (print_gdb_version): Update Copyright year in version
11185 message.
11186
42a4f53d
JB
111872019-01-01 Joel Brobecker <brobecker@adacore.com>
11188
11189 Update copyright year range in all GDB files.
11190
7e955d83 111912019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11192
5bbd631d 11193 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11194
5bbd631d 11195For older changes see ChangeLog-2018.
c906108c
SS
11196\f
11197Local Variables:
11198mode: change-log
11199left-margin: 8
11200fill-column: 74
11201version-control: never
57da7796 11202coding: utf-8
c906108c 11203End:
5bbd631d 11204
This page took 2.732629 seconds and 4 git commands to generate.