Change tui_check_and_display_highlight_if_needed to be a method
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b4ef5aeb
TT
12019-08-13 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.c (tui_erase_source_content)
4 (tui_show_source_content, tui_source_window_base::refresh_all):
5 Update.
6 * tui/tui-wingeneral.h
7 (tui_check_and_display_highlight_if_needed): Don't declare.
8 * tui/tui-wingeneral.c
9 (tui_win_info::check_and_display_highlight_if_needed): Rename from
10 check_and_display_highlight_if_needed.
11 * tui/tui-win.c (tui_rehighlight_all)
12 (tui_win_info::make_visible_with_new_height): Update.
13 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
14 (tui_data_window::erase_data_content)
15 (tui_data_window::display_all_data): Update.
16 * tui/tui-data.h (struct tui_win_info)
17 <check_and_display_highlight_if_needed>: Declare.
18
fede5273
TT
192019-08-13 Tom Tromey <tom@tromey.com>
20
21 * tui/tui-win.c (tui_resize_all): Call
22 tui_delete_invisible_windows.
23 * tui/tui-layout.c (show_layout): Call
24 tui_delete_invisible_windows.
25 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
26 * tui/tui-data.c (tui_delete_invisible_windows): New function.
27
22c3f490
TT
282019-08-13 Tom Tromey <tom@tromey.com>
29
30 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
31 tui_add_win_to_layout.
32
16cb7910
TT
332019-08-13 Tom Tromey <tom@tromey.com>
34
35 * tui/tui-layout.h (tui_default_win_height): Don't declare.
36 * tui/tui-layout.c (tui_default_win_height): Now static.
37
cc0c3ffb
TT
382019-08-13 Tom Tromey <tom@tromey.com>
39
40 * tui/tui-layout.c (show_layout): Unify all layout cases into a
41 single switch.
42 (show_source_disasm_command, show_source_or_disasm_and_command):
43 Don't check current layout.
44
3f3ffe54
TT
452019-08-13 Tom Tromey <tom@tromey.com>
46
47 * tui/tui-wingeneral.c (make_all_visible): Remove.
48 (tui_make_all_invisible): Simplify.
49 * tui/tui-layout.c (tui_make_all_invisible): Move from
50 tui-wingeneral.c; simplify.
51 (show_layout): Hoist call to tui_make_all_invisible.
52 (show_data): Don't call tui_make_all_invisible.
53
69258091
TT
542019-08-13 Tom Tromey <tom@tromey.com>
55
56 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
57 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
58
62cf57fe
TT
592019-08-13 Tom Tromey <tom@tromey.com>
60
61 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
62 tui-data.c.
63 (show_source_disasm_command, show_data)
64 (show_source_or_disasm_and_command): Don't use
65 tui_set_current_layout_to.
66 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
67 * tui/tui-data.c (current_layout, tui_current_layout): Move to
68 tui-layout.c.
69 (tui_set_current_layout_to): Remove.
70
2afade5d
TT
712019-08-13 Tom Tromey <tom@tromey.com>
72
73 * tui/tui-layout.c (tui_set_layout): Update.
74 * tui/tui-data.h (struct tui_layout_def): Remove.
75 (tui_layout_def): Don't declare.
76 * tui/tui-data.c (layout_def): Remove.
77 (tui_layout_def): Remove.
78
a3504e96
TT
792019-08-13 Tom Tromey <tom@tromey.com>
80
81 * tui/tui-winsource.h (struct tui_source_window_base)
82 <clear_detail>: No longer "override".
83 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
84 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
85 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
86 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
87 Remove.
88 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
89
29c92911
TT
902019-08-13 Tom Tromey <tromey@adacore.com>
91
92 * tracepoint.c: Don't include readline.h or history.h.
93
86c6b807
TT
942019-08-12 Tom Tromey <tom@tromey.com>
95
96 * configure: Rebuild.
97 * configure.ac: Check for readline 7.
98 * NEWS: Mention readline 7 requirement.
99 * README: Update.
100
5db2718c
TT
1012019-08-12 Tom Tromey <tom@tromey.com>
102
103 * mingw-hdep.c (gdb_select): Remove readline hack.
104
dac36daf
PFC
1052019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
106
107 * blockframe.c (find_pc_partial_function): Set *block to nullptr
108 when the function fails.
109
1022c627
AA
1102019-08-09 Andreas Arnez <arnez@linux.ibm.com>
111
112 * s390-tdep.c (s390_type_align): New function.
113 (s390_gdbarch_init): Set it as type_align gdbarch method.
114
eba4caf2
TV
1152019-08-09 Tom de Vries <tdevries@suse.de>
116
117 PR gdb/24591
118 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
119 pc_low with relocation offset.
120
123cd851
TT
1212019-08-07 Tom Tromey <tromey@adacore.com>
122
123 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
124 (print_frame_args): Update.
125 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
126 Update.
127 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
128 * frame.h (struct frame_arg): Add initializers.
129 <error>: Now a unique_xmalloc_ptr.
130
3d31bc39
AH
1312019-08-07 Alan Hayward <alan.hayward@arm.com>
132
133 * NEWS: Expand the Pointer Authentication entry.
134 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
135 (aarch64_frame_unmask_lr): ... to this.
136 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
137 Call aarch64_frame_unmask_lr.
138 * frame.c (struct frame_info): Add "masked" variable.
139 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
140 (fprint_frame): Check for masked pc.
141 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
142 declarations.
143 * python/py-framefilter.c (py_print_frame): Check for masked pc.
144 * stack.c (print_frame): Check for masked pc.
145
0cf9feb9
TT
1462019-08-06 Tom Tromey <tom@tromey.com>
147
148 * stabsread.c (patch_block_stabs, read_one_struct_field)
149 (read_enum_type): Use obstack_strndup.
150 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
151 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
152 * dwarf2read.c (guess_full_die_structure_name)
153 (anonymous_struct_prefix): Use obstack_strndup.
154 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
155 * c-exp.y (yylex): Use obstack_strndup.
156 * ada-exp.y (write_object_renaming, write_ambiguous_var)
157 (write_var_or_type): Use obstack_strndup.
158
efba19b0
TT
1592019-08-06 Tom Tromey <tom@tromey.com>
160
161 * symfile.c (reread_symbols): Use obstack_strdup.
162 * stabsread.c (read_type): Use obstack_strdup.
163 * gdb_obstack.h (obstack_strdup): New overload.
164 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
165 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
166 (dwarf2_canonicalize_name): Use obstack_strdup.
167 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
168 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
169 Use obstack_strdup.
170
f25102f7
TT
1712019-08-06 Tom Tromey <tom@tromey.com>
172
173 * gdb_obstack.h (obstack_strdup): Define.
174 * gdb_obstack.c (obstack_strdup): Don't define.
175
021887d8
TT
1762019-08-06 Tom Tromey <tom@tromey.com>
177
178 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
179 obstack_strdup.
180 * typeprint.c (typedef_hash_table::find_global_typedef): Use
181 obstack_strdup.
182 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
183 * stabsread.c (common_block_start): Use obstack_strdup.
184 * objfiles.c (set_objfile_main_name, objfile): Use
185 obstack_strdup.
186 * namespace.c (add_using_directive): Use obstack_strdup.
187 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
188 * jit.c (finalize_symtab): Use obstack_strdup.
189 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
190 (guess_partial_die_structure_name, partial_die_info::fixup)
191 (dwarf2_name): Use obstack_strdup.
192 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
193 obstack_strdup.
194 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
195 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
196 obstack_strdup.
197 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
198
d2834edc
PW
1992019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
200
201 * unittests/help-doc-selftests.c: New file.
202 * Makefile.in: Add the new file.
203
590042fc
PW
2042019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
205
206 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
207 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
208 the full first line, except when FOR_VALUE_PREFIX. In this case,
209 the trailing '.' is not output, and the first character is uppercased.
210 (print_help_for_command): Update call to print_doc_line.
211 (print_doc_of_command): Likewise.
212 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
213 * cli/cli-option.c (append_indented_doc): Do not append newline.
214 (build_help_option): Append newline after first appended_indented_doc
215 only if a second call is done.
216 (build_help): Append 2 new lines before each option, except the first
217 one.
218 * compile/compile.c (_initialize_compile): Add new lines after
219 %OPTIONS%, when not at the end of the help.
220 Change help doc or code
221 producing the help doc to respect the invariants.
222 * maint-test-options.c (_initialize_maint_test_options): Likewise.
223 Also removed the new line after 'Options:', as all other commands
224 do not put an empty line between 'Options:' and the first option.
225 * printcmd.c (_initialize_printcmd): Likewise.
226 * stack.c (_initialize_stack): Likewise.
227 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
228 incorrectly telling COMMAND is optional.
229 * ada-lang.c (_initialize_ada_language): Change help doc or code
230 producing the help doc to respect the invariants.
231 * ada-tasks.c (_initialize_ada_tasks): Likewise.
232 * breakpoint.c (_initialize_breakpoint): Likewise.
233 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
234 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
235 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
236 * cli/cli-style.c (cli_style_option::add_setshow_commands,
237 _initialize_cli_style): Likewise.
238 * corelow.c (core_target_info): Likewise.
239 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
240 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
241 * filesystem.c (_initialize_filesystem): Likewise.
242 * frame.c (_initialize_frame): Likewise.
243 * gnu-nat.c (add_task_commands): Likewise.
244 * infcall.c (_initialize_infcall): Likewise.
245 * infcmd.c (_initialize_infcmd): Likewise.
246 * interps.c (_initialize_interpreter): Likewise.
247 * language.c (_initialize_language): Likewise.
248 * linux-fork.c (_initialize_linux_fork): Likewise.
249 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
250 * maint.c (_initialize_maint_cmds): Likewise.
251 * memattr.c (_initialize_mem): Likewise.
252 * printcmd.c (_initialize_printcmd): Likewise.
253 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
254 _RegEx): Likewise.
255 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
256 * record-btrace.c (_initialize_record_btrace): Likewise.
257 * record-full.c (_initialize_record_full): Likewise.
258 * record.c (_initialize_record): Likewise.
259 * regcache-dump.c (_initialize_regcache_dump): Likewise.
260 * regcache.c (_initialize_regcache): Likewise.
261 * remote.c (add_packet_config_cmd, init_remote_threadtests,
262 _initialize_remote): Likewise.
263 * ser-tcp.c (_initialize_ser_tcp): Likewise.
264 * serial.c (_initialize_serial): Likewise.
265 * skip.c (_initialize_step_skip): Likewise.
266 * source.c (_initialize_source): Likewise.
267 * stack.c (_initialize_stack): Likewise.
268 * symfile.c (_initialize_symfile): Likewise.
269 * symtab.c (_initialize_symtab): Likewise.
270 * target-descriptions.c (_initialize_target_descriptions): Likewise.
271 * top.c (init_main): Likewise.
272 * tracefile-tfile.c (tfile_target_info): Likewise.
273 * tracepoint.c (_initialize_tracepoint): Likewise.
274 * tui/tui-win.c (_initialize_tui_win): Likewise.
275 * utils.c (add_internal_problem_command): Likewise.
276 * valprint.c (value_print_option_defs): Likewise.
277
404f2902
FCE
2782019-08-06 Frank Ch. Eigler <fche@redhat.com>
279
280 PR build/24886
281 * configure.ac: Drop enable-libmcheck support.
282 * configure, config.in: Rebuild.
283 * libmcheck.m4: Remove.
284 * acinclude.m4: Don't include it.
285 * Makefile.in: Don't distribute it.
286 * top.c (print_gdb_configuration): Don't mention it.
287
046bebe1
TT
2882019-08-06 Tom Tromey <tom@tromey.com>
289
290 * utils.c (set_output_style): Sometimes pass stream to
291 emit_style_escape.
292 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
293 * record-btrace.c (btrace_insn_history): Update.
294 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
295 method.
296 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
297 Update initializers.
298 <m_uiout>: New field.
299 <m_di>: Move lower.
300 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
301 Remove "uiout" parameter.
302 (dump_insns): Update.
303 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
304 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
305
ddbcedf5
CB
3062019-08-06 Christian Biesinger <cbiesinger@google.com>
307
308 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
309 (error_in_psymtab_expansion): Likewise.
310 (lookup_symbol_via_quick_fns): Likewise.
311 (basic_lookup_transparent_type_quick): Likewise.
312 (basic_lookup_transparent_type_1): Likewise.
313
b08b16c8
TT
3142019-08-06 Tom Tromey <tromey@adacore.com>
315
316 * source.c (last_source_error): Now bool.
317 (print_source_lines_base): Make "noprint" bool. Only open
318 source file when last_source_visited changes.
319
cb44333d
TT
3202019-08-06 Tom Tromey <tromey@adacore.com>
321
322 * annotate.c (annotate_source_line): Use g_source_cache.
323 * source-cache.c (source_cache::get_plain_source_lines): Change
324 parameters. Populate m_offset_cache.
325 (source_cache::ensure): New method.
326 (source_cache::get_line_charpos): New method.
327 (extract_lines): Move lower. Change parameters.
328 (source_cache::get_source_lines): Move lower.
329 * source-cache.h (class source_cache): Update comment.
330 <get_line_charpos>: New method.
331 <get_source_lines>: Update comment.
332 <clear>: Clear m_offset_cache.
333 <get_plain_source_lines>: Change parameters.
334 <ensure>: New method
335 <m_offset_cache>: New member.
336 * source.c (forget_cached_source_info_for_objfile): Update.
337 (info_source_command): Use g_source_cache.
338 (find_source_lines, open_source_file_with_line_charpos): Remove.
339 (print_source_lines_base, search_command_helper): Use g_source_cache.
340 * source.h (open_source_file_with_line_charpos): Don't declare.
341 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
342 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
343 Use g_source_cache.
344
872dceaa
TT
3452019-08-06 Tom Tromey <tromey@adacore.com>
346
347 * source-cache.c (source_cache::get_plain_source_lines):
348 Remove "first_line" and "last_line" parameters.
349 (source_cache::get_source_lines): Cache plain text.
350 * source-cache.h (class source_cache)
351 <get_plain_source_lines>: Update.
352
269249d9
TT
3532019-08-06 Tom Tromey <tromey@adacore.com>
354
355 * source-cache.c (extract_lines): No longer a method.
356 Changed type of parameter. Include final newline.
357 (selftests::extract_lines_test): New function.
358 (_initialize_source_cache): Likewise.
359 * source-cache.h (class source_cache)
360 <extract_lines>: Don't declare.
361
c0e8dcd8
TT
3622019-08-06 Tom Tromey <tromey@adacore.com>
363
364 * breakpoint.c (init_breakpoint_sal): Update.
365 (breakpoint): Update.
366 * breakpoint.h (struct breakpoint) <filter>: Now a
367 unique_xmalloc_ptr.
368
0b27c27d
CB
3692019-08-05 Christian Biesinger <cbiesinger@google.com>
370
371 * NEWS: Mention dictionary access on blocks.
372 * python/py-block.c (blpy_getitem): New function.
373 (block_object_as_mapping): New struct.
374 (block_object_type): Use new struct for tp_as_mapping field.
375
4ee94178
CB
3762019-08-05 Christian Biesinger <cbiesinger@google.com>
377
378 * objfiles.h (objfile): Add a comment describing partial symbols.
379
8abfcabc
TT
3802019-08-05 Tom Tromey <tromey@adacore.com>
381
382 * compile/compile.c (_initialize_compile): Use _(), not N_().
383 * thread.c (_initialize_thread): Use _(), not N_().
384 * stack.c (_initialize_stack): Use _(), not N_().
385 * printcmd.c (_initialize_printcmd): Use _(), not N_().
386
2b79f376
SM
3872019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
388
389 * dwarf2read.c (struct dw2_symtab_iterator):
390 <want_specific_block>: Remove.
391 <block_index>: Change type to gdb::optional.
392 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
393 change type of BLOCK_INDEX parameter to gdb::optional.
394 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
395 (dw2_lookup_symbol): Don't pass argument for
396 WANT_SPECIFIC_BLOCK.
397 (dw2_expand_symtabs_for_function): Don't pass argument for
398 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
399 (class dw2_debug_names_iterator)
400 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
401 parameter, change BLOCK_INDEX type to gdb::optional.
402 <m_want_specific_block>: Remove.
403 <m_block_index>: Change type to gdb::optional.
404 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
405 gdb::optional. Re-write in function of gdb::optional.
406 (dw2_debug_names_lookup_symbol): Don't pass argument for
407 WANT_SPECIFIC_BLOCK.
408 (dw2_debug_names_expand_symtabs_for_function): Don't pass
409 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
410 BLOCK_INDEX.
411
ae60f04e
PW
4122019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
413
414 * NEWS: Mention changes to "info sources" command.
415
28cd9371
PW
4162019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
417
418 * symtab.c (filename_partial_match_opts): New struct type.
419 (struct output_source_filename_data): New members
420 regexp, c_regexp, partial_match.
421 (output_source_filename): Use new members to decide to print file.
422 (info_sources_option_defs): New variable.
423 (make_info_sources_options_def_group, print_info_sources_header,
424 info_sources_command_completer):
425 New functions.
426 (info_sources_command): Read new optional arguments.
427 (_initialize_symtab): Update info sources help.
428
ca683e3a
AO
4292019-08-02 Alexandre Oliva <oliva@adacore.com>
430
431 * ada-lang.c (exception_support_info_v0): Renamed from...
432 (default_exception_support_info): ... this. Create new
433 definition for v1.
434 (ada_has_this_exception_support): Look up catch_handlers_sym.
435 (ada_exception_support_info_sniffer): Try v0 after default.
436
f1264162
TT
4372019-08-01 Tom Tromey <tromey@adacore.com>
438
439 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
440 gdbarch.h.
441
0a7b2485
CB
4422019-08-01 Christian Biesinger <cbiesinger@google.com>
443
444 * s12z-tdep.c: Fix include path for s12z-opc.h.
445
c6bdbeb7
AH
4462019-08-01 Alan Hayward <alan.hayward@arm.com>
447
448 * NEWS: Require GNU make 3.82.
449
a2bd7b82
TT
4502019-07-16 Tom Tromey <tom@tromey.com>
451
452 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
453 declare.
454
aa3b6533
TT
4552019-07-30 Tom Tromey <tromey@adacore.com>
456
457 * block.c (contained_in): Remove BLOCK_FUNCTION check.
458
a1530dc7
KB
4592019-07-30 Kevin Buettner <kevinb@redhat.com>
460
461 * printcmd.c (print_address_symbolic): Print negative offsets.
462 (build_address_symbolic): Force signed arithmetic when computing
463 offset.
464
2906593f
CB
4652019-07-30 Christian Biesinger <cbiesinger@google.com>
466
467 PR/24474: Add a function to lookup static variables.
468 * NEWS: Mention this new function.
469 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
470 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
471 * python/python.c (python_GdbMethods): Add new function.
472
c620ed88
CB
4732019-07-29 Christian Biesinger <cbiesinger@google.com>
474
475 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
476 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
477 (objfpy_lookup_static_symbol): New function.
478 (objfile_object_methods): Add new functions.
479
bc4268a5
PW
4802019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
481
482 * NEWS: Mention 'set|show print frame-info'. Mention new
483 'presence' value for 'frame-arguments'. Mention new '-frame-info'
484 backtrace argument. Mention that python frame filtering code
485 is now consistent with what 'backtrace' command prints.
486
4b5e8d19
PW
4872019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
488
489 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
490 comments.
491 (print_frame_info_auto, print_frame_info_source_line,
492 print_frame_info_location, print_frame_info_source_and_location,
493 print_frame_info_location_and_address, print_frame_info_short_location):
494 New declarations.
495 (struct frame_print_options): New member print_frame_info.
496 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
497 * stack.h (get_user_print_what_frame_info): New declaration.
498 (frame_show_address): New declaration.
499 * stack.c (print_frame_arguments_choices): New value 'presence'.
500 (print_frame_info_auto, print_frame_info_source_line,
501 print_frame_info_location, print_frame_info_source_and_location,
502 print_frame_info_location_and_address, print_frame_info_short_location,
503 print_frame_info_choices, print_frame_info_print_what): New definitions.
504 (print_frame_args): Only print dots for args if print frame-arguments
505 is 'presence'.
506 (frame_print_option_defs): New element for "frame-info".
507 (get_user_print_what_frame_info): New function.
508 (frame_show_address): Make non static. Move comment to stack.h.
509 (print_frame_info_to_print_what): New function.
510 (print_frame_info): Update comment. Use fp_opts.print_frame_info
511 to decide what to print.
512 (backtrace_command_1): Handle the new print_frame_arguments_presence
513 value.
514 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
515 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
516 (py_print_frame): In non-mi mode, use LOCATION as default for
517 print_what, similarly to frame information printed directly by
518 backtrace command. Handle frame-info user option in non MI mode.
519
6bdfee81
KB
5202019-07-27 Kevin Buettner <kevinb@redhat.com>
521
522 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
523 Add case for debugging 32-bit target on 64-bit host. Revise
524 comment.
525
98a617f8
KB
5262019-07-27 Kevin Buettner <kevinb@redhat.com>
527
528 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
529 instead of find_function_entry_range_from_pc.
530
567238c9
KB
5312019-07-27 Kevin Buettner <kevinb@redhat.com>
532
533 * stack.c (find_frame_funname): Remove code which preferred
534 minsym over symtab sym in "certain pathological cases".
535
2dc80cf8
KB
536 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
537 parameter. Change type of "do_demangle" to bool.
538 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
539 Pass suitable "prefer_sym_over_minsym" flag to
540 build_address_symbolic(). Don't output "+" for negative offsets.
541 * printcmd.c (print_address_symbolic): Update invocation of
542 build_address_symbolic to include a "prefer_sym_over_minsym"
543 flag.
544 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
545 Restrict cases in which use of minimal symbol is preferred to that
546 of a found symbol. Update comments.
547
1aff7173
KB
548 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
549 for entry pc when entry pc is out of range for that FDE.
550
89b085ac
BC
5512019-07-26 Brian Callahan <bcallah@openbsd.org>
552
553 PR gdb/24839:
554 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
555 type.
556
f32feb4a
CB
5572019-07-25 Christian Biesinger <cbiesinger@google.com>
558
559 * python/py-objfile.c (add_separate_debug_file): Fix comment about
560 this function's Python signature.
561
562
5632019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
564
565 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
566 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
567 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
568 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
569 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
570
571
c54e4253
YS
5722019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
573
574 * h8300-tdep.c (h8300_register_name_common): New.
575 h8300_register_name): Use h8300_register_name_common.
576 (h8300s_register_name): Likewise.
577 (h8300sx_register_name): Likewise.
578 (h8300h_register_nam): New.
579 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
580
581
40eadf04
SP
5822019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
583
584 * arm-tdep.c (arm_skip_cmse_entry): New function.
585 (arm_is_sgstubs_section): New function.
586 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
587
bfa2a36d
TT
5882019-07-22 Tom Tromey <tom@tromey.com>
589
590 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
591 Don't self-assign.
592
a8e9d247
AB
5932019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
596 type_print.
597
eb86c5e2
AB
5982019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 * symtab.c (search_symbols): Adjust msymbol matching type arrays
601 so that GDB doesn't match any msymbols when searching in the
602 TYPES_DOMAIN.
603 (print_symbol_info): Print using typedef_print or type_print based
604 on the type of the symbol. Add updated FIXME comment moved from...
605 (_initialize_symtab): ... move and update FIXME comment to above.
606
a8eab7c6
AB
6072019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * NEWS: Mention adding -q option to "info types".
610 * symtab.c (struct info_types_options): New struct.
611 (info_types_options_defs): New variable.
612 (make_info_types_options_def_group): New function.
613 (info_types_command): Use gdb::option framework to parse options.
614 (info_types_command_completer): New function.
615 (_initialize_symtab): Extend the help text on "info types" and
616 register command completer.
617
b4603c34
CB
6182019-07-21 Christian Biesinger <cbiesinger@google.com>
619
620 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
621 (lookup_symbol_in_objfile): Change int to block_enum and add a
622 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
623
c8cdc1e0
CB
6242019-07-20 Christian Biesinger <cbiesinger@google.com>
625
626 * MAINTAINERS (Write After Approval): Add self.
627
01e175fe
AB
6282019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
629
630 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
631 instruction to the dummy code region.
632
56f79b63
TT
6332019-07-19 Tom Tromey <tromey@adacore.com>
634
635 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
636 (ARGSUSED, PARAMS, __func__): Remove rules.
637
4c5aa8e0
AH
6382019-07-19 Alan Hayward <alan.hayward@arm.com>
639
640 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
641 * features/arm/arm-with-iwmmxt.c: Remove.
642 * features/arm/arm-with-iwmmxt.xml: Remove.
643 * features/arm/arm-with-m-fpa-layout.c: Remove.
644 * features/arm/arm-with-m-fpa-layout.xml: Remove.
645 * features/arm/arm-with-m-vfp-d16.c: Remove.
646 * features/arm/arm-with-m-vfp-d16.xml: Remove.
647 * features/arm/arm-with-m.c: Remove.
648 * features/arm/arm-with-m.xml: Remove.
649 * features/arm/arm-with-neon.c: Remove.
650 * features/arm/arm-with-neon.xml: Remove.
651 * features/arm/arm-with-vfpv2.c: Remove.
652 * features/arm/arm-with-vfpv2.xml: Remove.
653 * features/arm/arm-with-vfpv3.c: Remove.
654 * features/arm/arm-with-vfpv3.xml: Remove.
655
f42b2617
AH
6562019-07-19 Alan Hayward <alan.hayward@arm.com>
657
658 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
659
f29ec966
AH
6602019-07-19 Alan Hayward <alan.hayward@arm.com>
661
662 * arch/aarch32.c (aarch32_create_target_description): Create
663 target descriptions using features.
664 * arch/arm.c (arm_create_target_description)
665 (arm_create_mprofile_target_description): Likewise.
666 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
667
d105cce5
AH
6682019-07-19 Alan Hayward <alan.hayward@arm.com>
669
670 * Makefile.in: Add new files.
671 * aarch32-tdep.c: New file.
672 * aarch32-tdep.h: New file.
673 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
674 Call aarch32_read_description.
675 * arch/aarch32.c: New file.
676 * arch/aarch32.h: New file.
677 * arch/arm.c (arm_create_target_description)
678 (arm_create_mprofile_target_description): New function.
679 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
680 (arm_create_target_description)
681 (arm_create_mprofile_target_description): New declaration.
682 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
683 read_description functions.
684 * arm-linux-nat.c (arm_linux_nat_target::read_description):
685 Likewise.
686 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
687 * arm-tdep.c (tdesc_arm_list): New variable.
688 (arm_register_g_packet_guesses): Call create description functions.
689 (arm_read_description) (arm_read_mprofile_description): New
690 function.
691 * arm-tdep.h (arm_read_description)
692 (arm_read_mprofile_description): Add declaration.
693 * configure.tgt: Add new files.
694
afe09f0b
GL
6952019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
696
697 * top.c (new_ui_command): Open specified terminal just once.
698
cd215b2e
TT
6992019-07-18 Tom Tromey <tromey@adacore.com>
700
701 * symtab.c (main_name): Constify return type.
702 * symfile.c (set_initial_language): Update.
703 * symtab.h (main_name): Constify return type.
704
d8f68fcb
TT
7052019-07-17 Tom Tromey <tom@tromey.com>
706
707 * tui/tui-winsource.c (tui_update_source_window)
708 (tui_update_source_window_as_is)
709 (tui_update_source_windows_with_line): Remove return.
710 * tui/tui-disasm.c (tui_show_disassem)
711 (tui_show_disassem_and_update_source): Remove return.
712 * tui/tui.c (tui_reset): Remove return.
713 * tui/tui-wingeneral.c
714 (tui_check_and_display_highlight_if_needed): Remove return.
715
ca5af91e
TT
7162019-07-17 Tom Tromey <tom@tromey.com>
717
718 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
719
5104fe36
TT
7202019-07-17 Tom Tromey <tom@tromey.com>
721
722 * tui/tui-winsource.h (struct tui_exec_info_window)
723 (struct tui_source_window_base): Move from tui-data.h.
724 * tui/tui-winsource.c: Move many method definitions from
725 elsewhere. Remove "structuring" comments.
726 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
727 (tui_source_window_base::refresh_window): Move to
728 tui-winsource.c.
729 * tui/tui-win.c (tui_source_window_base::refresh_all)
730 (tui_source_window_base::update_tab_width)
731 (tui_source_window_base::set_new_height)
732 (tui_source_window_base::do_make_visible_with_new_height): Move to
733 tui-winsource.c.
734 * tui/tui-source.h: Update.
735 * tui/tui-source.c (tui_source_window_base::reset): Move to
736 tui-winsource.c.
737 * tui/tui-disasm.h: Update.
738 * tui/tui-data.h (struct tui_exec_info_window): Move to
739 tui-winsource.h.
740 (struct tui_source_window_base): Likewise.
741 * tui/tui-data.c (tui_source_window_base::clear_detail)
742 (tui_source_window_base, ~tui_source_window_base): Move to
743 tui-winsource.c.
744
daa15dde
TT
7452019-07-17 Tom Tromey <tom@tromey.com>
746
747 * tui/tui-win.c (tui_resize_all)
748 (tui_source_window_base::update_tab_width)
749 (tui_adjust_win_heights): Update.
750 (tui_win_info::make_invisible_and_set_new_height): Rename from
751 make_invisible_and_set_new_height.
752 * tui/tui-data.h (struct tui_win_info)
753 <make_invisible_and_set_new_height>: New method.
754
bfad4537
TT
7552019-07-17 Tom Tromey <tom@tromey.com>
756
757 * tui/tui.c: Update.
758 * tui/tui-source.h (struct tui_source_window): Move from
759 tui-data.h.
760 * tui/tui-layout.c: Update.
761 * tui/tui-disasm.c: Update.
762 * tui/tui-data.h (struct tui_source_window): Move to
763 tui-source.h.
764
88f7e873
TT
7652019-07-17 Tom Tromey <tom@tromey.com>
766
767 * tui/tui-disasm.h (struct tui_disasm_window): Move from
768 tui-data.h.
769 * tui/tui-data.h (struct tui_disasm_window): Move to
770 tui-disasm.h.
771
96bd6233
TT
7722019-07-17 Tom Tromey <tom@tromey.com>
773
774 * tui/tui-regs.h (struct tui_data_item_window): Move from
775 tui-data.h.
776 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
777 * tui/tui-data.h (struct tui_data_item_window): Move to
778 tui-regs.h.
779 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
780
ce38393b
TT
7812019-07-17 Tom Tromey <tom@tromey.com>
782
783 * tui/tui.c: Update.
784 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
785 (tui_cmd_window::max_height): Move to tui-command.c.
786 * tui/tui-layout.c: Update.
787 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
788 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
789 tui-command.c.
790 * tui/tui-command.h (struct tui_cmd_window): Move from
791 tui-data.h.
792 * tui/tui-command.c: Remove "structuring" comments.
793 (tui_cmd_window::clear_detail)
794 (tui_cmd_window::do_make_visible_with_new_height)
795 (tui_cmd_window::max_height): Move from elsewhere.
796
2d8b51cb
TT
7972019-07-17 Tom Tromey <tom@tromey.com>
798
799 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
800 Now static.
801 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
802 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
803
18ab23af
TT
8042019-07-17 Tom Tromey <tom@tromey.com>
805
806 * tui/tui.c: Update.
807 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
808 tui-regs.c.
809 * tui/tui-windata.h: Remove file.
810 * tui/tui-windata.c: Remove file.
811 * tui/tui-win.c (tui_data_window::set_new_height)
812 (tui_data_window::do_make_visible_with_new_height): Move to
813 tui-regs.c.
814 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
815 * tui/tui-regs.c: Remove "structuring" comments.
816 (tui_data_window::first_data_item_displayed)
817 (tui_data_window::delete_data_content_windows)
818 (tui_data_window::erase_data_content)
819 (tui_data_window::display_all_data)
820 (tui_data_window::refresh_all)
821 (tui_data_window::do_scroll_vertical)
822 (tui_data_window::clear_detail, tui_data_window::set_new_height)
823 (tui_data_window::do_make_visible_with_new_height)
824 (tui_data_window::refresh_window): Move from elsewhere.
825 (_initialize_tui_regs): Move to end of file.
826 * tui/tui-layout.c: Update.
827 * tui/tui-hooks.c: Update.
828 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
829 * tui/tui-data.c (tui_data_window::clear_detail): Move to
830 tui-regs.c.
831 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
832
88b7e7cc
TT
8332019-07-17 Tom Tromey <tom@tromey.com>
834
835 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
836 seen.
837
0fcd3711
TT
8382019-07-17 Tom Tromey <tom@tromey.com>
839
840 * tui/tui-win.c (tui_source_window_base::set_new_height)
841 (tui_source_window_base::do_make_visible_with_new_height): Use
842 m_has_locator field directly.
843 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
844 method.
845 (struct tui_source_window_base) <has_locator>: Likewise.
846
4a38112d
TT
8472019-07-17 Tom Tromey <tom@tromey.com>
848
849 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
850 Don't declare.
851 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
852 Remove.
853 * tui/tui-win.c (tui_source_window_base::set_new_height)
854 (tui_source_window_base::set_new_height)
855 (make_invisible_and_set_new_height)
856 (tui_source_window_base::do_make_visible_with_new_height)
857 (tui_source_window_base::do_make_visible_with_new_height):
858 Update.
859 * tui/tui-layout.c (show_source_disasm_command, show_data)
860 (show_source_or_disasm_and_command): Update.
861 * tui/tui-layout.c (show_layout): Update.
862
09129226
TT
8632019-07-17 Tom Tromey <tom@tromey.com>
864
865 * tui/tui-layout.c (make_data_window): Remove.
866 (show_data): Unify creation and re-initialization cases.
867
4a8a5e84
TT
8682019-07-17 Tom Tromey <tom@tromey.com>
869
870 * tui/tui-layout.c (make_source_window, make_disasm_window):
871 Remove.
872 (show_data): Unify creation and re-initialization cases.
873
76d2be8e
TT
8742019-07-17 Tom Tromey <tom@tromey.com>
875
876 * tui/tui-layout.c (make_command_window): Remove.
877 (show_source_disasm_command, show_source_or_disasm_and_command):
878 Unify creation and re-initialization cases.
879
890b8bde
TT
8802019-07-17 Tom Tromey <tom@tromey.com>
881
882 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
883 creation and re-initialization cases.
884
2cdfa113
TT
8852019-07-17 Tom Tromey <tom@tromey.com>
886
887 * tui/tui-regs.c (tui_get_register): Return void.
888
8e3cfd09
TT
8892019-07-17 Tom Tromey <tom@tromey.com>
890
891 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
892 Simplify.
893
f4e04977
TT
8942019-07-17 Tom Tromey <tom@tromey.com>
895
896 * tui/tui-layout.c (show_source_disasm_command): Simplify window
897 resetting.
898
0379b883
TT
8992019-07-17 Tom Tromey <tom@tromey.com>
900
901 * tui/tui.h (tui_set_layout_by_name): Don't declare.
902 * tui/tui-regs.c (tui_reg_layout): New function.
903 (tui_show_registers, tui_reg_command): Use it.
904 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
905 (tui_layout_command): Rename from tui_set_layout_by_name. Change
906 parameters.
907 (tui_layout_command): Remove.
908
b7fbad91
TT
9092019-07-17 Tom Tromey <tom@tromey.com>
910
911 * tui/tui-layout.h (tui/tui-layout): Return void.
912 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
913
4e1e56b9
TT
9142019-07-17 Tom Tromey <tom@tromey.com>
915
916 * tui/tui-layout.c (show_source_disasm_command, show_data):
917 Update.
918 (reset_locator): Remove.
919 (show_source_or_disasm_and_command): Update.
920
1e0c09ba
TT
9212019-07-17 Tom Tromey <tom@tromey.com>
922
923 * tui/tui-source.c (tui_source_window_base::reset): Remove
924 win_type parameter.
925 * tui/tui-layout.c (make_command_window, make_source_window)
926 (make_disasm_window, make_data_window)
927 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
928 (reset_locator, show_source_or_disasm_and_command): Update.
929 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
930 win_type parameter.
931 (struct tui_source_window_base) <reset>: Likewise.
932
1bf605de
TT
9332019-07-17 Tom Tromey <tom@tromey.com>
934
935 * tui/tui-layout.c (show_source_disasm_command): Use
936 reset_locator.
937 (reset_locator): New function.
938 (init_and_make_win): Remove.
939 (show_source_or_disasm_and_command): Use reset_locator.
940
098f9ed4
TT
9412019-07-17 Tom Tromey <tom@tromey.com>
942
943 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
944 condition.
945 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
946 Remove condition.
947 * tui/tui-source.c (tui_source_window_base::reset): New method.
948 * tui/tui-layout.c (make_command_window): Don't call
949 init_and_make_win.
950 (make_source_window, make_disasm_window): Don't call
951 make_source_or_disasm_window.
952 (make_data_window): Don't call init_and_make_win. Change calling
953 convention.
954 (show_source_disasm_command, show_data): Simplify.
955 (make_source_or_disasm_window): Remove.
956 (show_source_or_disasm_and_command): Simplify.
957 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
958 (struct tui_source_window_base) <reset>: Likewise.
959 <execution_info>: Remove initializer.
960 * tui/tui-data.c (tui_source_window_base): Initialize
961 execution_info.
962
80110957
TT
9632019-07-17 Tom Tromey <tom@tromey.com>
964
965 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
966 variable.
967
cf82af05
TT
9682019-07-17 Tom Tromey <tom@tromey.com>
969
970 * tui/tui.c (tui_rl_other_window): Update.
971 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
972 superclass method first. Always iterate over regs_content.
973 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
974 method.
975 * tui/tui-win.c (tui_set_focus_command): Update.
976
01aeb396
TT
9772019-07-17 Tom Tromey <tom@tromey.com>
978
979 * tui/tui-win.c (tui_set_focus_command): Rename from
980 tui_set_focus. Call tui_enable.
981 (tui_set_focus_command): Remove.
982
fd6c75ee
TT
9832019-07-17 Tom Tromey <tom@tromey.com>
984
985 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
986 refresh_window.
987 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
988 touchwin.
989 (tui_data_window::refresh_window): Call refresh_window on data
990 items. Always call superclass refresh_window.
991 (tui_win_info::refresh): Remove.
992 (tui_source_window_base::refresh_window): Update.
993 (tui_refresh_all): Update.
994 * tui/tui-layout.c (show_source_disasm_command): Remove call to
995 refresh_window.
996 (show_source_or_disasm_and_command): Likewise.
997 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
998 (struct tui_source_window_base) <refresh>: Likewise.
999
f6cc34a9
TT
10002019-07-17 Tom Tromey <tom@tromey.com>
1001
1002 * tui/tui-winsource.c (tui_clear_source_content)
1003 (tui_show_source_content): Update.
1004 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1005 whether content is empty.
1006 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1007 Remove.
1008
f31ec9af
TT
10092019-07-17 Tom Tromey <tom@tromey.com>
1010
1011 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1012 window's contents.
1013 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1014 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1015
d1b6f1e5
TT
10162019-07-17 Tom Tromey <tom@tromey.com>
1017
1018 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1019 (struct tui_data_item_window): Update.
1020
d9743a13
TT
10212019-07-17 Tom Tromey <tom@tromey.com>
1022
1023 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1024 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1025 defines.
1026
caf0bc4e
TT
10272019-07-17 Tom Tromey <tom@tromey.com>
1028
1029 * tui/tui-winsource.h (tui_erase_source_content)
1030 (tui_clear_source_content): Remove "display_prompt" parameter.
1031 * tui/tui-winsource.c (tui_update_source_window_as_is)
1032 (tui_update_source_windows_with_addr): Update.
1033 (tui_clear_source_content): Remove "display_prompt" parameter.
1034 (tui_erase_source_content): Likewise. Simplify.
1035 (tui_show_source_content): Update.
1036 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1037 * tui/tui-stack.c (tui_show_frame_info): Update.
1038 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1039 Remove defines.
1040
9d391078
TT
10412019-07-17 Tom Tromey <tom@tromey.com>
1042
1043 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1044 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1045 parameter.
1046 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1047 parameter.
1048
a38da35d
TT
10492019-07-17 Tom Tromey <tom@tromey.com>
1050
1051 * tui/tui-winsource.c (tui_clear_source_content)
1052 (tui_show_source_content, tui_show_exec_info_content)
1053 (tui_clear_exec_info_content): Update.
1054 * tui/tui-stack.c (tui_show_locator_content): Update.
1055 (tui_show_frame_info): Update.
1056 * tui/tui-source.h (tui_source_window): Don't declare.
1057 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1058 from tui_source_is_displayed.
1059 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1060 Remove field.
1061 (struct tui_source_window_base) <content_in_use>: New field. Now
1062 bool.
1063 (struct tui_source_window) <showing_source_p>: New method.
1064 (TUI_SRC_WIN): Change cast.
1065 * tui/tui-data.c (tui_initialize_static_data): Update.
1066
c2cd8994
TT
10672019-07-17 Tom Tromey <tom@tromey.com>
1068
1069 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1070 location_matches_p.
1071 * tui/tui-source.c (tui_source_window::location_matches_p): New
1072 method.
1073 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1074 method.
1075 * tui/tui-data.h (struct tui_source_window_base)
1076 <location_matches_p>: New method.
1077 (struct tui_source_window, struct tui_disasm_window)
1078 <location_matches_p>: Likewise.
1079
4dde7b34
TT
10802019-07-17 Tom Tromey <tom@tromey.com>
1081
1082 * tui/tui-win.c (tui_set_win_height_command): Rename from
1083 tui_set_win_height.
1084 (tui_set_win_height_command): Remove.
1085
b73dd877
TT
10862019-07-17 Tom Tromey <tom@tromey.com>
1087
1088 * tui/tui-source.c (tui_source_window): New constructor. Add
1089 observer.
1090 (~tui_source_window): New destructor.
1091 (tui_source_window::style_changed): New method.
1092 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1093 (tui_attach_detach_observers): Update.
1094 * tui/tui-data.h (struct tui_source_window): Make constructor not
1095 inline. Add destructor.
1096 (struct tui_source_window) <style_changed>: New method.
1097 <m_observable>: New member.
1098
ae2b5380
TT
10992019-07-17 Tom Tromey <tom@tromey.com>
1100
1101 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1102 * tui/tui-win.c (tui_resize_all): Fix typo.
1103
1ce3e844
TT
11042019-07-17 Tom Tromey <tom@tromey.com>
1105
1106 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1107 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1108 (tui_refresh_all): Remove "list" parameter. Use foreach.
1109 * tui/tui-win.c (window_name_completer): Use foreach.
1110 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1111 (update_tab_width): Likewise.
1112 * tui/tui-layout.c (show_layout): Update.
1113 * tui/tui-data.h (class tui_window_iterator): New.
1114 (struct all_tui_windows): New.
1115 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1116
fe3eaf1c
TT
11172019-07-17 Tom Tromey <tom@tromey.com>
1118
1119 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1120 parameter. Don't reference globals.
1121 (tui_reg_command): Update.
1122
368c1354
TT
11232019-07-17 Tom Tromey <tom@tromey.com>
1124
1125 * tui/tui-regs.c (tui_show_registers): Simplify.
1126
e80cd204
TT
11272019-07-17 Tom Tromey <tom@tromey.com>
1128
1129 * tui/tui-regs.c (tui_show_registers): Update.
1130 (tui_show_register_group): Add win_info parameter.
1131
aca2dd16
TT
11322019-07-17 Tom Tromey <tom@tromey.com>
1133
1134 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1135 Rename from tui_display_reg_element_at_line.
1136 (tui_data_window::display_registers_from_line): Update.
1137 * tui/tui-data.h (struct tui_data_window)
1138 <display_reg_element_at_line>: New method.
1139
517e9505
TT
11402019-07-17 Tom Tromey <tom@tromey.com>
1141
1142 * tui/tui-regs.h (tui_display_registers_from)
1143 (tui_display_registers_from_line): Don't declare.
1144 * tui/tui-windata.c (tui_data_window::display_all_data)
1145 (tui_data_window::refresh_all)
1146 (tui_data_window::do_scroll_vertical): Update.
1147 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1148 from tui_display_registers_from.
1149 (tui_display_reg_element_at_line): Update.
1150 (tui_data_window::display_registers_from_line): Rename from
1151 tui_display_registers_from_line.
1152 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1153 display_registers_from_line>: New methods.
1154
f76d8b19
TT
11552019-07-17 Tom Tromey <tom@tromey.com>
1156
1157 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1158 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1159 from tui_erase_data_content.
1160 (tui_data_window::display_all_data)
1161 (tui_data_window::refresh_all)
1162 (tui_data_window::do_scroll_vertical): Update.
1163 * tui/tui-regs.c (tui_show_registers): Update.
1164 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1165 New method.
1166
b4094625
TT
11672019-07-17 Tom Tromey <tom@tromey.com>
1168
1169 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1170 declare.
1171 * tui/tui-windata.c
1172 (tui_data_window::delete_data_content_windows): Rename from
1173 tui_delete_data_content_windows.
1174 (tui_data_window::display_all_data)
1175 (tui_data_window::do_scroll_vertical): Update.
1176 * tui/tui-data.h (struct tui_data_window)
1177 <delete_data_content_windows>: New method.
1178
c223a729
TT
11792019-07-17 Tom Tromey <tom@tromey.com>
1180
1181 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1182 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1183
50daf268
TT
11842019-07-17 Tom Tromey <tom@tromey.com>
1185
1186 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1187 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1188 from tui_display_all_data.
1189 * tui/tui-win.c
1190 (tui_data_window::do_make_visible_with_new_height): Update.
1191 * tui/tui-regs.c (tui_show_registers): Update.
1192 * tui/tui-layout.c (tui_set_layout): Update.
1193 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1194 method.
1195
df5f8cab
TT
11962019-07-17 Tom Tromey <tom@tromey.com>
1197
1198 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1199 * tui/tui-windata.c (tui_display_data_from): Remove.
1200 (tui_data_window::refresh_all): Update.
1201
80cb6c27
TT
12022019-07-17 Tom Tromey <tom@tromey.com>
1203
1204 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1205 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1206 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1207 tui_display_registers_from_line.
1208 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1209 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1210 "force_display" parameter.
1211
baff0c28
TT
12122019-07-17 Tom Tromey <tom@tromey.com>
1213
1214 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1215 declare.
1216 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1217 Rename from tui_first_reg_element_no_inline.
1218 (tui_display_reg_element_at_line)
1219 (tui_display_registers_from_line): Update.
1220 * tui/tui-data.h (struct tui_data_window)
1221 <first_reg_element_no_inline>: New method.
1222
3b23c5f2
TT
12232019-07-17 Tom Tromey <tom@tromey.com>
1224
1225 * tui/tui-windata.c (tui_display_data_from)
1226 (tui_data_window::do_scroll_vertical): Update.
1227 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1228 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1229 Rename from tui_line_from_reg_element_no.
1230 (tui_display_registers_from_line): Update.
1231 * tui/tui-data.h (struct tui_data_window)
1232 <line_from_reg_element_no>: New method.
1233
0b5ec218
TT
12342019-07-17 Tom Tromey <tom@tromey.com>
1235
1236 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1237 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1238 tui_last_regs_line_no.
1239 (tui_display_reg_element_at_line)
1240 (tui_display_registers_from_line): Update.
1241 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1242 method.
1243
0807ab7b
TT
12442019-07-17 Tom Tromey <tom@tromey.com>
1245
1246 PR tui/24722:
1247 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1248 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1249 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1250 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1251 (tui_update_breakpoint_info): Likewise.
1252 * tui/tui-hooks.c (tui_event_create_breakpoint)
1253 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1254 Update.
1255
9ad7fdef
TT
12562019-07-17 Tom Tromey <tom@tromey.com>
1257
1258 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1259
5813316f
TT
12602019-07-17 Tom Tromey <tom@tromey.com>
1261
1262 * tui/tui-winsource.c (tui_update_source_window_as_is)
1263 (tui_update_source_windows_with_addr): Update.
1264 * tui/tui-source.h (tui_set_source_content)
1265 (tui_show_symtab_source): Add "win_info" parameter.
1266 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1267 parameter.
1268 (tui_show_symtab_source): Likewise.
1269
00e264e7
TT
12702019-07-17 Tom Tromey <tom@tromey.com>
1271
1272 * tui/tui-wingeneral.c
1273 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1274
06210ce4
TT
12752019-07-17 Tom Tromey <tom@tromey.com>
1276
1277 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1278 (struct tui_cmd_window) <can_scroll>: New method.
1279 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1280 method.
1281
381befee
TT
12822019-07-17 Tom Tromey <tromey@adacore.com>
1283
1284 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1285 do_field_signed>: Rename. Change type of "value".
1286 * ui-out.c (ui_out::field_signed): Rename from field_int.
1287 Change type of "value".
1288 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1289 type of "value".
1290 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1291 do_field_int. Change type of "value".
1292 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1293 do_field_int. Change type of "value".
1294 * tracepoint.c (trace_status_mi, tfind_1)
1295 (print_one_static_tracepoint_marker): Update.
1296 * thread.c (print_thread_info_1, print_selected_thread_frame):
1297 Update.
1298 * stack.c (print_frame, print_frame_info): Update.
1299 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1300 Update.
1301 * source.c (print_source_lines_base): Update.
1302 * skip.c (info_skip_command): Update.
1303 * record-btrace.c (btrace_ui_out_decode_error)
1304 (btrace_call_history_src_line): Update.
1305 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1306 Update.
1307 * progspace.c (print_program_space): Update.
1308 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1309 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1310 do_field_int. Change type of "value".
1311 * mi/mi-out.c (mi_ui_out::do_table_begin)
1312 (mi_ui_out::do_table_header): Update.
1313 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1314 type of "value".
1315 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1316 (mi_cmd_data_list_changed_registers, output_register)
1317 (mi_cmd_data_read_memory, mi_load_progress)
1318 (mi_cmd_trace_frame_collected): Update.
1319 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1320 Update.
1321 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1322 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1323 (mi_cmd_var_list_children, varobj_update_one): Update.
1324 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1325 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1326 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1327 * inferior.c (print_inferior): Update.
1328 * gdb_bfd.c (print_one_bfd): Update.
1329 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1330 Update.
1331 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1332 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1333 do_field_int. Change type of "value".
1334 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1335 do_field_int. Change type of "value".
1336 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1337 (print_one_breakpoint_location, print_it_catch_fork)
1338 (print_one_catch_fork, print_it_catch_vfork)
1339 (print_one_catch_vfork, print_it_catch_solib)
1340 (print_it_catch_exec, print_it_ranged_breakpoint)
1341 (print_mention_watchpoint, print_mention_masked_watchpoint)
1342 (bkpt_print_it, update_static_tracepoint): Update.
1343 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1344 * break-catch-syscall.c (print_it_catch_syscall): Update.
1345 * ada-tasks.c (print_ada_task_info): Update.
1346 * ada-lang.c (print_it_exception, print_mention_exception):
1347 Update.
1348
6b78c3f8
AB
13492019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1350
1351 PR breakpoints/24541
1352 * gdbarch.c: Regenerate.
1353 * gdbarch.h: Regenerate.
1354 * gdbarch.sh: Adjust return type and parameter types for
1355 'stap_adjust_register'.
1356 (i386_stap_adjust_register): Adjust signature and return new
1357 register name.
1358 * stap-probe.c (stap_parse_register_operand): Adjust use of
1359 'gdbarch_stap_adjust_register'.
1360
d72a9b85
TT
13612019-07-17 Tom Tromey <tromey@adacore.com>
1362
1363 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1364 declare VEC.
1365 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1366 std::vector.
1367 (struct s390_process_info): Add initializers.
1368 (s390_add_process): Use new.
1369 (s390_linux_nat_target::low_forget_process): Use delete.
1370 (s390_linux_nat_target::low_new_fork)
1371 (s390_linux_nat_target::stopped_by_watchpoint)
1372 (s390_linux_nat_target::low_prepare_to_resume)
1373 (s390_linux_nat_target::insert_watchpoint)
1374 (s390_linux_nat_target::insert_hw_breakpoint)
1375 (s390_linux_nat_target::remove_watchpoint)
1376 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1377
206e6c58
JB
13782019-07-16 John Baldwin <jhb@FreeBSD.org>
1379
1380 * aarch64-fbsd-nat.c: Include regcache.h.
1381 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1382 argument.
1383 (aarch64_fbsd_nat_target::fetch_registers)
1384 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1385 variable.
1386 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1387
cbde90f2
JB
13882019-07-16 John Baldwin <jhb@FreeBSD.org>
1389
1390 * fbsd-nat.c: Include gdbarch.h.
1391
07128006
TT
13922019-07-15 Tom Tromey <tromey@adacore.com>
1393
1394 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1395
1f77b012
TT
13962019-07-15 Tom Tromey <tromey@adacore.com>
1397
1398 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1399 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1400 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1401 * cli-out.c (cli_ui_out::do_field_int): New method.
1402 * ui-out.c (ui_out::field_unsigned): New method.
1403 * symfile.c (generic_load): Use field_unsigned.
1404 (print_transfer_performance): Likewise.
1405 * record-btrace.c (ui_out_field_uint): Remove.
1406 (btrace_call_history_insn_range, btrace_call_history): Use
1407 field_unsigned.
1408 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1409 field_unsigned.
1410 * ui-out.h (class ui_out) <field_unsigned>: New method.
1411 <do_field_unsigned>: Likewise.
1412
33eca680
TT
14132019-07-15 Tom Tromey <tromey@adacore.com>
1414
1415 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1416 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1417 * target.c (flash_erase_command): Use field_string.
1418 * infrun.c (print_signal_received_reason): Use field_string.
1419 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1420 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1421 field_string.
1422 * ada-tasks.c (print_ada_task_info): Use field_string.
1423
ca8d69be
TT
14242019-07-15 Tom Tromey <tromey@adacore.com>
1425
1426 * target.c (flash_erase_command): Use field_core_addr.
1427 * symfile.c (generic_load): Use field_core_addr.
1428 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1429 Use field_core_addr.
1430 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1431 field_core_addr.
1432
0d4e84ed
AB
14332019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1434
1435 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1436 value if its desired type is smaller than a CORE_ADDR and signed.
1437
9a49df9d
AB
14382019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1441 of changes to field names, and use new is_reference field to
1442 decide if a property is a reference or not.
1443 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1444 field.
1445 (struct dwarf2_property_baton): Update header comment, rename
1446 'referenced_type' to 'property_type' and update comments.
1447 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1448 default property type, store in property baton, update to take
1449 accound of renamed field.
1450 (read_func_scope): Update call to attr_to_dynamic_prop.
1451 (read_array_type): Likewise.
1452 (dwarf2_per_cu_addr_sized_int_type): New function.
1453 (read_subrange_index_type): Move type finding code to
1454 dwarf2_per_cu_addr_sized_int_type.
1455 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1456 (dwarf2_per_cu_addr_type): New function.
1457 (set_die_type): Update calls to attr_to_dynamic_prop.
1458
b86352cf
AB
14592019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * dwarf2read.c (read_subrange_index_type): New function.
1462 (read_subrange_type): Move code into new function and call it.
1463 * gdbtypes.c (create_range_type): Add some asserts.
1464
603490bf
AB
14652019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1468 update return statements.
1469 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1470 declaration, and update comment to match.
1471 * gdbtypes.c (resolve_dynamic_array): Update call to
1472 dwarf2_evaluate_property to match new return type.
1473
592f9d27
AB
14742019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 * valarith.c (value_subscripted_rvalue): Change lowerbound
1477 parameter type from int to LONGEST.
1478 * value.h (value_subscripted_rvalue): Likewise in declaration.
1479
60cfcb20
AB
14802019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1481
1482 * cli/cli-utils.c (info_print_command_completer): New function.
1483 * cli/cli-utils.h: Add 'completer.h' include, and forward
1484 declaration for 'struct cmd_list_element'.
1485 (info_print_command_completer): Declare.
1486 * stack.c (_initialize_stack): Add completer for 'info locals' and
1487 'info args'.
1488 * symtab.c (_initialize_symtab): Add completer for 'info
1489 variables' and 'info functions'.
1490 * NEWS: Mention completion for additional info commands.
1491
b16507e0
AB
14922019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1493
1494 * cli/cli-utils.c (extract_info_print_args): Delete.
1495 (extract_arg_maybe_quoted): Delete.
1496 (info_print_options_defs): New variable.
1497 (make_info_print_options_def_group): New function.
1498 (extract_info_print_options): Define new function.
1499 * cli/cli-utils.h (extract_info_print_args): Delete.
1500 (struct info_print_options): New structure.
1501 (extract_info_print_options): Declare new function.
1502 * stack.c (info_locals_command): Update to use new
1503 extract_info_print_options, also add a header comment.
1504 (info_args_command): Likewise.
1505 * symtab.c (info_variables_command): Likewise.
1506 (info_functions_command): Likewise.
1507
021d8588
AB
15082019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1511 to extract string arguments.
1512 * common/common-utils.c (extract_string_maybe_quoted): New function.
1513 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1514
b777eb6d
TT
15152019-07-11 Tom Tromey <tromey@adacore.com>
1516
1517 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1518 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1519 * top.h (gdbinit): Don't declare.
1520 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1521 into...
1522 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1523 * top.c (gdb_init): Don't call init_cli_cmds.
1524 (gdbinit): Remove.
1525 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1526
72ee03ff
TT
15272019-07-11 Tom Tromey <tromey@adacore.com>
1528
1529 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1530 after it has been moved.
1531
00db9531
SM
15322019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1533
1534 * valops.c (value_must_coerce_to_target): Change return type to
1535 bool.
1536 * value.h (value_must_coerce_to_target): Likewise.
1537
f2478a7e
SM
15382019-07-10 Simon Marchi <simon.marchi@efficios.com>
1539
1540 * breakpoint.c (is_hardware_watchpoint): Remove
1541 forward-declaration.
1542 (is_masked_watchpoint): Change return type to bool.
1543 (is_tracepoint): Likewise.
1544 (is_breakpoint): Likewise.
1545 (is_hardware_watchpoint): Likewise.
1546 (is_watchpoint): Likewise.
1547 (is_no_memory_software_watchpoint): Likewise.
1548 (is_catchpoint): Likewise.
1549 (breakpoint_1): Make FILTER parameter's return type bool.
1550 is_masked_watchpoint): Change return type to bool.
1551 (save_breakpoints): Make FILTER parameter's return type bool.
1552 * breakpoint.h (is_breakpoint): Change return type to bool.
1553 (is_watchpoint): Likewise.
1554 (is_catchpoint): Likewise.
1555 (is_tracepoint): Likewise.
1556
0d12e84c
TT
15572019-07-10 Tom Tromey <tom@tromey.com>
1558
1559 * defs.h: Don't include gdbarch.h.
1560 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1561 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1562 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1563 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1564 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1565 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1566 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1567 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1568 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1569 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1570 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1571 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1572 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1573 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1574 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1575 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1576 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1577 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1578 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1579 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1580 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1581 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1582 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1583 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1584 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1585 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1586 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1587
f06f1252
TT
15882019-07-10 Tom Tromey <tromey@adacore.com>
1589
1590 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1591 * breakpoint.c (init_ada_exception_breakpoint): Register as
1592 bp_catchpoint.
1593 (print_one_breakpoint_location, print_one_breakpoint): Use
1594 is_ada_exception_catchpoint.
1595 * ada-lang.c (class ada_catchpoint_location): Pass
1596 bp_loc_software_breakpoint to bp_location constructor.
1597 (is_ada_exception_catchpoint): New function.
1598
7a5d944b
TT
15992019-07-10 Tom Tromey <tromey@adacore.com>
1600
1601 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1602 VEC.
1603 (struct arm_exidx_entry): New method operator<.
1604 (struct arm_exidx_data) <section_maps>: Change type.
1605 (arm_exidx_data_free): Remove.
1606 (arm_exidx_data_key): Change type. Move lower.
1607 (arm_exidx_new_objfile): Update.
1608 (arm_compare_exidx_entries): Remove.
1609 (arm_find_exidx_entry, _initialize_arm_tdep)
1610
48c66e1d
TT
16112019-07-10 Tom Tromey <tromey@adacore.com>
1612
1613 * solib-spu.c (ocl_program_data_key): Change type.
1614 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1615 Update.
1616
a269fbf1
TT
16172019-07-10 Tom Tromey <tromey@adacore.com>
1618
1619 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1620 (struct solib_aix_inferior_data) <library_list>: Change type.
1621 (solib_aix_inferior_data_handle): Change type.
1622 (get_solib_aix_inferior_data): Update.
1623 (solib_aix_free_library_list): Remove.
1624 (library_list_start_library): Update.
1625 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1626 return type.
1627 (solib_aix_get_library_list)
1628 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1629 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1630
c294730c
TT
16312019-07-10 Tom Tromey <tromey@adacore.com>
1632
1633 * solib-dsbt.c (struct dsbt_info): Add initializers.
1634 (solib_dsbt_pspace_data): Change type.
1635 (dsbt_pspace_data_cleanup): Remove.
1636 (get_dsbt_info, _initialize_dsbt_solib): Update.
1637
9d52077d
TT
16382019-07-10 Tom Tromey <tromey@adacore.com>
1639
1640 * spu-tdep.c (spu_overlay_data): Change type.
1641 (spu_get_overlay_table, spu_overlay_new_objfile)
1642 (_initialize_spu_tdep): Update.
1643
22a20dca
TT
16442019-07-10 Tom Tromey <tromey@adacore.com>
1645
1646 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1647 destructor.
1648 (dbx_objfile_data_key): Change type and declare later.
1649 (DBX_SYMFILE_INFO): Rewrite.
1650 * dbxread.c (dbx_objfile_data_key): Change type.
1651 (dbx_symfile_init): Update.
1652 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1653 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1654 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1655
cb60f420
TT
16562019-07-10 Tom Tromey <tromey@adacore.com>
1657
1658 * jit.c (jit_program_space_key): Change type. Move lower.
1659 (get_jit_program_space_data): Update.
1660 (jit_program_space_data_cleanup): Remove.
1661 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1662 Update.
1663 (struct jit_program_space_data): Add initializers.
1664
51df2ae3
TT
16652019-07-10 Tom Tromey <tromey@adacore.com>
1666
1667 * solib-darwin.c (struct darwin_info): Add initializers.
1668 (solib_darwin_pspace_data): Change type.
1669 (darwin_pspace_data_cleanup): Remove.
1670 (get_darwin_info, _initialize_darwin_solib): Update.
1671
18101a35
TT
16722019-07-10 Tom Tromey <tromey@adacore.com>
1673
1674 * remote-sim.c (struct sim_inferior_data): Add initializers,
1675 constructor, and destructor.
1676 (sim_inferior_data_key): Change type. Move lower.
1677 (check_for_duplicate_sim_descriptor): Update.
1678 (get_sim_inferior_data): Use new. Update.
1679 (~sim_inferior_data_cleanup): Rename from
1680 sim_inferior_data_cleanup. Simplify.
1681 (gdbsim_close_inferior, simulator_command)
1682 (sim_command_completer, _initialize_remote_sim): Update.
1683 (next_pid, INITIAL_PID): Move earlier.
1684
05b08ac1
TT
16852019-07-10 Tom Tromey <tromey@adacore.com>
1686
1687 * python/python-internal.h (create_thread_object): Return
1688 gdbpy_ref.
1689 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1690 * python/py-inferior.c (struct threadlist_entry): Add
1691 constructor.
1692 <thread_obj>: Now a gdbpy_ref.
1693 (thread_to_thread_object): Update.
1694 (add_thread_object): Use new.
1695 (delete_thread_object): Use delete.
1696 (infpy_threads): Update.
1697 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1698 GIL.
1699
32372d80
TT
17002019-07-10 Tom Tromey <tromey@adacore.com>
1701
1702 * valops.c (value_cast): Specialize error message for Ada.
1703
5c458ae8
SM
17042019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1705
1706 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1707
4c462cb0
SM
17082019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1709
1710 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1711 bpstat_should_step): Return bool, adjust comments.
1712 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1713 bpstat_should_step): Likewise.
1714
89abbcc2
AH
17152019-07-10 Alan Hayward <alan.hayward@arm.com>
1716
1717 * features/Makefile: Use feature target descriptions for Arm.
1718 * features/arm/arm-core.c: Generate new file.
1719 * features/arm/arm-fpa.c: Likewise.
1720 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1721 * features/arm/arm-m-profile.c: Likewise.
1722 * features/arm/arm-vfpv2.c: Likewise.
1723 * features/arm/arm-vfpv3.c: Likewise.
1724 * features/arm/xscale-iwmmxt.c: Likewise.
1725 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1726
166a82be
AH
17272019-07-10 Alan Hayward <alan.hayward@arm.com>
1728
1729 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1730 ptrace earlier.
1731
9fb4c7e9
AH
17322019-07-10 Alan Hayward <alan.hayward@arm.com>
1733
1734 * features/aarch64-pauth.c: Regenerate.
1735
e2d0f980
SM
17362019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1737
1738 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1739 bool.
1740 (bpstat_what): Use false instead of 0.
1741
a38118e5
PA
17422019-07-09 Pedro Alves <palves@redhat.com>
1743
1744 * break-catch-throw.c (is_exception_catchpoint): New.
1745 * breakpoint.c (print_one_breakpoint_location): New parameter
1746 'raw_loc'. Handle it. Use
1747 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1748 looking at the breakpoint's type.
1749 (print_one_breakpoint): If handling "maint info breakpoints", also
1750 print locations of exception catchpoints.
1751 * breakpoint.h (is_exception_catchpoint): Declare.
1752
cb1e4e32
PA
17532019-07-09 Pedro Alves <palves@redhat.com>
1754
1755 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1756 "addr" field.
1757 (allocate_location_exception_catchpoint): New.
1758 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1759 (initialize_throw_catchpoint_ops): Install
1760 allocate_location_exception_catchpoint as allocate_location
1761 method.
1762 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1763 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1764 bp_loc_other.
1765 (breakpoint_address_is_meaningful): Delete.
1766 (bl_address_is_meaningful): New.
1767 (breakpoint_locations_match): Adjust comment.
1768 (bp_location_from_bp_type): New, factored out of...
1769 (bp_location::bp_location(breakpoint *)): ... this.
1770 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1771 factored out of...
1772 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1773 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1774 breakpoint_address_is_meaningful.
1775 (bp_locations_compare): Adjust comment.
1776 (update_global_location_list): Use bl_address_is_meaningful
1777 instead of breakpoint_address_is_meaningful.
1778 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1779 explicit.
1780 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1781 * python/py-breakpoint.c (bppy_get_location): No longer check
1782 whether location is null.
1783
b58a68fe
PA
17842019-07-09 Pedro Alves <palves@redhat.com>
1785
1786 PR c++/15468
1787 * breakpoint.c (print_one_breakpoint_location): Remove
1788 single-location assert.
1789
268a13a5
TT
17902019-07-09 Tom Tromey <tom@tromey.com>
1791
1792 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1793 * configure: Rebuild.
1794 * configure.ac: Change common to gdbsupport.
1795 * gdbsupport: Rename from common.
1796 * acinclude.m4: Change common to gdbsupport.
1797 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1798 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1799 gdbsupport.
1800 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1801 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1802 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1803 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1804 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1805 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1806 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1807 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1808 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1809 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1810 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1811 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1812 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1813 coff-pe-read.c, command.h, compile/compile-c-support.c,
1814 compile/compile-c.h, compile/compile-cplus-symbols.c,
1815 compile/compile-cplus-types.c, compile/compile-cplus.h,
1816 compile/compile-loc2c.c, compile/compile.c, completer.c,
1817 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1818 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1819 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1820 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1821 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1822 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1823 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1824 features/aarch64-core.c, features/aarch64-fpu.c,
1825 features/aarch64-pauth.c, features/aarch64-sve.c,
1826 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1827 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1828 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1829 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1830 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1831 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1832 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1833 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1834 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1835 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1836 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1837 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1838 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1839 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1840 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1841 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1842 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1843 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1844 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1845 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1846 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1847 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1848 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1849 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1850 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1851 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1852 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1853 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1854 minsyms.c, mips-linux-tdep.c, namespace.h,
1855 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1856 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1857 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1858 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1859 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1860 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1861 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1862 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1863 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1864 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1865 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1866 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1867 procfs.c, producer.c, progspace.h, psymtab.h,
1868 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1869 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1870 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1871 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1872 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1873 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1874 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1875 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1876 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1877 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1878 target-memory.c, target.c, target.h, target/waitstatus.c,
1879 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1880 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1881 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1882 unittests/array-view-selftests.c,
1883 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1884 unittests/common-utils-selftests.c,
1885 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1886 unittests/format_pieces-selftests.c,
1887 unittests/function-view-selftests.c,
1888 unittests/lookup_name_info-selftests.c,
1889 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1890 unittests/mkdir-recursive-selftests.c,
1891 unittests/observable-selftests.c,
1892 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1893 unittests/parse-connection-spec-selftests.c,
1894 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1895 unittests/scoped_fd-selftests.c,
1896 unittests/scoped_mmap-selftests.c,
1897 unittests/scoped_restore-selftests.c,
1898 unittests/string_view-selftests.c, unittests/style-selftests.c,
1899 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1900 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1901 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1902 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1903 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1904 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1905
5b0e2db4
AB
19062019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1909 bool value.
1910 (decode_digits_ordinary): Set explicit_line field in sal.
1911 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1912 symtab_and_line that was set on an explicit line number in
1913 assembler code. Do always update the recorded symtab and line if
1914 we do skip the prologue.
1915
0ba852ab
AB
19162019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1917
1918 * breakpoint.c (set_breakpoint_location_function): Remove
1919 explicit_loc parameter.
1920 (momentary_breakpoint_from_master): Update call to
1921 set_breakpoint_location_function.
1922 (add_location_to_breakpoint): Likewise.
1923
b3a7d171
AB
19242019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1925
1926 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1927 required features based on default bfd type when no specific bfd
1928 is present.
1929
1f6f6e21
PW
19302019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1931
1932 * NEWS: Mention that GDB printf and eval commands can now print
1933 C-style and Ada-style convenience var strings without
1934 calling the inferior.
1935 * printcmd.c (printf_c_string): Locally print GDB internal var
1936 instead of transiting via the inferior.
1937 (printf_wide_c_string): Likewise.
1938
19392019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
1940
1941 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1942
0598af48
TT
19432019-07-04 Tom Tromey <tom@tromey.com>
1944
1945 PR tui/24724:
1946 * tui/tui-winsource.c (tui_clear_source_content): Update.
1947 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1948 (tui_update_breakpoint_info): Update.
1949 (tui_set_exec_info_content): Update.
1950 * tui/tui-source.c (tui_set_source_content_nil): Update.
1951 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1952 has_break.
1953 * tui/tui-data.h (enum tui_bp_flag): New.
1954 (tui_bp_flags): New enum flags type.
1955 (struct tui_source_element) <break_mode>: Change type. Rename
1956 from has_break.
1957 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1958 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1959 constants.
1960 * tui/tui-winsource.h: Fix comment.
1961
350fab54
AH
19622019-07-04 Alan Hayward <alan.hayward@arm.com>
1963
1964 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1965 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1966 (store_fpregs_to_thread)
1967 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1968 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1969 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1970 (IWMMXT_REGS_SIZE): Add define.
1971 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1972 (fetch_vfp_regs, store_vfp_regs)
1973 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1974 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1975
f0452268
AH
19762019-07-04 Alan Hayward <alan.hayward@arm.com>
1977
1978 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1979 defines.
1980 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1981 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1982 (ARM_INT_REGISTER_SIZE): ...to this.
1983 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1984 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1985 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1986 (arm_linux_collect_gregset, supply_nwfpe_register)
1987 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
1988 defines.
1989 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
1990 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
1991 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
1992 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
1993 (arm_return_in_memory, arm_store_return_value)
1994 (arm_get_longjmp_target, arm_register_g_packet_guesses)
1995 (arm_record_ld_st_multiple): Likewise.
1996 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
1997 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
1998
e935475c
AH
19992019-07-04 Alan Hayward <alan.hayward@arm.com>
2000
2001 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2002 AARCH64_DISPLACED_MODIFIED_INSNS.
2003 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2004 (aarch64_displaced_step_copy_insn): Likewise.
2005 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2006 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2007 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2008 ARM_DISPLACED_MODIFIED_INSNS.
2009 * arm-tdep.c (arm_gdbarch_init): Likewise.
2010 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2011 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2012 (struct arm_displaced_step_closure): Use
2013 ARM_DISPLACED_MODIFIED_INSNS.
2014
df0bb381
AH
20152019-07-04 Alan Hayward <alan.hayward@arm.com>
2016
2017 * features/Makefile: Remove unused xml files.
2018 * features/aarch64.xml: Remove.
2019 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2020 * features/i386/amd64-avx-avx512.xml: Remove.
2021 * features/i386/amd64-avx-linux.xml: Remove.
2022 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2023 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2024 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2025 * features/i386/amd64-avx-mpx.xml: Remove.
2026 * features/i386/amd64-avx.xml: Remove.
2027 * features/i386/amd64-linux.xml: Remove.
2028 * features/i386/amd64-mpx-linux.xml: Remove.
2029 * features/i386/amd64-mpx.xml: Remove.
2030 * features/i386/amd64.xml: Remove.
2031 * features/i386/i386-avx-avx512-linux.xml: Remove.
2032 * features/i386/i386-avx-avx512.xml: Remove.
2033 * features/i386/i386-avx-linux.xml: Remove.
2034 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2035 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2036 * features/i386/i386-avx-mpx-linux.xml: Remove.
2037 * features/i386/i386-avx-mpx.xml: Remove.
2038 * features/i386/i386-avx.xml: Remove.
2039 * features/i386/i386-linux.xml: Remove.
2040 * features/i386/i386-mmx-linux.xml: Remove.
2041 * features/i386/i386-mmx.xml: Remove.
2042 * features/i386/i386-mpx-linux.xml: Remove.
2043 * features/i386/i386-mpx.xml: Remove.
2044 * features/i386/i386.xml: Remove.
2045 * features/i386/x32-avx-avx512-linux.xml: Remove.
2046 * features/i386/x32-avx-linux.xml: Remove.
2047 * features/i386/x32-linux.xml: Remove.
2048
edd6266a
AH
20492019-07-04 Alan Hayward <alan.hayward@arm.com>
2050
2051 * regformats/aarch64.dat: Remove.
2052 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2053 * regformats/i386/amd64-avx-linux.dat: Remove.
2054 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2055 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2056 * regformats/i386/amd64-linux.dat: Remove.
2057 * regformats/i386/amd64-mpx-linux.dat: Remove.
2058 * regformats/i386/amd64.dat: Remove.
2059 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2060 * regformats/i386/i386-avx-linux.dat: Remove.
2061 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2062 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2063 * regformats/i386/i386-linux.dat: Remove.
2064 * regformats/i386/i386-mmx-linux.dat: Remove.
2065 * regformats/i386/i386-mpx-linux.dat: Remove.
2066 * regformats/i386/i386.dat: Remove.
2067 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2068 * regformats/i386/x32-avx-linux.dat: Remove.
2069 * regformats/i386/x32-linux.dat: Remove.
2070
2b40fda7
AH
20712019-07-04 Alan Hayward <alan.hayward@arm.com>
2072
2073 * aarch64-tdep.c: Remove xml self tests.
2074 * amd64-linux-tdep.c: Likewise.
2075 * amd64-tdep.c: Likewise.
2076 * i386-linux-tdep.c: Likewise.
2077 * i386-tdep.c: Likewise.
2078
5f4ba3e7
PA
20792019-07-03 Pedro Alves <palves@redhat.com>
2080
2081 PR cli/24732
2082 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2083 (pipe_cmd_option_defs): New.
2084 (make_pipe_cmd_options_def_group): New.
2085 (pipe_command): Use gdb::option::process_options.
2086 (pipe_command_completer): New function.
2087 (_initialize_cli_cmds): Install completer for "pipe" command.
2088
3d9be6f5
PA
20892019-07-03 Pedro Alves <palves@redhat.com>
2090
2091 * cli/cli-option.c (union option_value) <string>: New field.
2092 (struct option_def_and_value): Add ctor, move ctor, dtor and
2093 use DISABLE_COPY_AND_ASSIGN.
2094 (option_def_and_value::clear_value): New.
2095 (parse_option, save_option_value_in_ctx, get_val_type_str)
2096 (add_setshow_cmds_for_options): Handle var_string.
2097 * cli-option.h (union option_def::var_address) <string>: New
2098 field.
2099 (struct string_option_def): New.
2100 * maint-test-options.c (struct test_options_opts): Add default
2101 ctor and use DISABLE_COPY_AND_ASSIGN.
2102 <string_opt>: New field.
2103 (test_options_opts::~test_options_opts): New.
2104 (test_options_opts::dump): Also dump "-string".
2105 (test_options_option_defs): Install "string.
2106
41fc454c
PA
21072019-07-03 Pedro Alves <palves@redhat.com>
2108
2109 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2110 option_value with a null enumeration.
2111 (complete_options): Save the option values in the context.
2112 (save_option_value_in_ctx): New, factored out from ...
2113 (process_options): ... here.
2114 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2115 of the function.
2116 * maint-test-options.c (test_options_opts::dump): New, factored
2117 out from ...
2118 (maintenance_test_options_command_mode): ... here.
2119 (maintenance_test_options_command_completion_result): Delete.
2120 (maintenance_test_options_command_completion_text): Update
2121 comment.
2122 (maintenance_show_test_options_completion_result): Change
2123 prototype. Just print
2124 maintenance_test_options_command_completion_text.
2125 (save_completion_result): New.
2126 (maintenance_test_options_completer_mode): Pass options context to
2127 complete_options, and then save a dump.
2128 (_initialize_maint_test_options): Use add_cmd to install "maint
2129 show test-options-completion-result".
2130
fdbc9870
PA
21312019-07-03 Pedro Alves <palves@redhat.com>
2132
2133 * NEWS (New commands): Mention "with" and "maint with".
2134 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2135 (with_command, with_command_completer): New.
2136 (pipe_command): Adjust to new repeat_previous
2137 interface.
2138 (_initialize_cli_cmds): Install the "with" command and its "w"
2139 alias.
2140 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2141 declarations.
2142 * cli/cli-setshow.c (parse_cli_var_uinteger)
2143 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2144 argument strings for all var_types.
2145 (get_setshow_command_value_string): New, factored out from ...
2146 (do_show_command): ... this.
2147 * cli/cli-setshow.h: Include <string>.
2148 (get_setshow_command_value_string): Declare.
2149 * command.h (repeat_previous): Now returns const char *. Adjust
2150 comment.
2151 * maint.c: Include "cli/cli-cmds.h".
2152 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2153 (_initialize_maint_cmds): Register the "maintenance with" command.
2154 * top.c (repeat_previous): Move bits from pipe_command here:
2155 Return the saved command line, if any; error out if there's no
2156 command to relaunch.
2157
c6ac8931
PA
21582019-07-03 Pedro Alves <palves@redhat.com>
2159
2160 * NEWS (New commands): Mention "maint set/show test-settings"
2161 instead of "maint test-settings".
2162 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2163 (maintenance_test_settings_set_list): Rename to ...
2164 (maintenance_set_test_settings_list): ... this.
2165 (maintenance_test_settings_show_list): Rename to ...
2166 (maintenance_show_test_settings_list): ... this.
2167 (maintenance_test_settings_cmd): Delete.
2168 (maintenance_test_settings_set_cmd): ...
2169 (maintenance_set_test_settings_cmd): ... this.
2170 (maintenance_test_settings_show_cmd): ...
2171 (maintenance_show_test_settings_cmd): ... this.
2172 (maintenance_test_settings_show_value_cmd):
2173 (maintenance_show_test_settings_value_cmd): ... this.
2174 (_initialize_maint_test_settings): No longer install the "maint
2175 test-settings" prefix command. Rename "maint test-settings set"
2176 to "maint set test-settings", and "maint test-settings show" to
2177 "maint show test-settings". Adjust all subcommands.
2178
d1fcf2fd
PA
21792019-07-03 Pedro Alves <palves@redhat.com>
2180
2181 * maint-test-settings.c: Fix file's intro comment. Replace all
2182 references to "test-options" with references to "test-settings",
2183 in comments.
2184
970f9d09
PA
21852019-07-03 Pedro Alves <palves@redhat.com>
2186
2187 * maint-test-settings.c (maintenance_test_settings_xxx)
2188 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2189 New.
2190 (maintenance_test_settings_enums): Use them.
2191 (maintenance_test_settings_enum): Default to
2192 maintenance_test_settings_xxx.
2193 (_initialize_maint_test_settings): Initialize
2194 MAINTENANCE_TEST_SETTINGS_FILENAME.
2195
f3869b1a
SM
21962019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2197
2198 * breakpoint.h (remove_breakpoints_inf): Change return type to
2199 void, move function documentation here.
2200 * breakpoint.c (remove_breakpoints_inf): Change return type to
2201 void, move function documentation to header.
2202
54d66006
PA
22032019-07-02 Pedro Alves <palves@redhat.com>
2204
2205 * NEWS (Completion improvements): Mention "info threads".
2206 * thread.c (struct info_threads_opts, info_threads_option_defs)
2207 (make_info_threads_options_def_group): New.
2208 (info_threads_command): Use gdb::option::process_options.
2209 (info_threads_command_completer): New.
2210 (_initialize_thread): Use gdb::option::build_help to build the
2211 help text for "info threads".
2212
854f6088
SM
22132019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2214
2215 * defs.h (generic_load): Move from here...
2216 * symfile.h (generic_load): ... to here. Rename name parameter
2217 to args.
2218 * symfile.c (generic_load): Add comment.
2219
54ee4252
TT
22202019-07-01 Tom Tromey <tromey@adacore.com>
2221
2222 * dwarf2read.c
2223 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2224 declaration of without_params. Fix formatting.
2225
65392b3e
TT
22262019-07-01 Tom Tromey <tromey@adacore.com>
2227
2228 * ada-exp.y (find_primitive_type): Update.
2229 * ada-lang.h (ada_lookup_symbol): Update.
2230 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2231 parameter.
2232 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2233
7d7571f0
SDJ
22342019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2235
2236 PR breakpoints/24541
2237 * gdbarch.c: Regenerate.
2238 * gdbarch.h: Regenerate.
2239 * gdbarch.sh: Add 'stap_adjust_register'.
2240 * i386-tdep.c: Include '<unordered_set>'.
2241 (i386_stap_adjust_register): New function.
2242 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2243 * stap-probe.c (stap_parse_register_operand): Call
2244 'gdbarch_stap_adjust_register'.
2245
5af5392a
SDJ
22462019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2247
2248 PR python/24742
2249 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2250 * python/python.c (do_start_initialization): Use 'xmalloc'
2251 instead of 'PyMem_Malloc'.
2252
10d06d82
TT
22532019-06-28 Tom Tromey <tromey@adacore.com>
2254
2255 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2256 for Ada.
2257
1b7f24cd
TT
22582019-06-27 Tom Tromey <tromey@adacore.com>
2259
2260 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2261 objfile_key.
2262 (arm_find_mapping_symbol, arm_record_special_symbol)
2263 (_initialize_arm_tdep): Update.
2264 (arm_objfile_data_free): Remove.
2265
3d507ff2
TT
22662019-06-27 Tom Tromey <tromey@adacore.com>
2267
2268 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2269 to cp_print_static_field.
2270
762c164d
TT
22712019-06-26 Tom Tromey <tromey@adacore.com>
2272
2273 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2274 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2275 declare.
2276
aa2f9bcf
AH
22772019-06-26 Alan Hayward <alan.hayward@arm.com>
2278
2279 * features/aarch64-core.c (create_feature_aarch64_core):
2280 Regenerate.
2281 * features/aarch64-core.xml: Add cpsr flags.
2282
3426ae57
AH
22832019-06-26 Alan Hayward <alan.hayward@arm.com>
2284
2285 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2286 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2287
4838e44c
SM
22882019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2289
2290 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2291 field.
2292 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2293 use.
2294 (arm_record_special_symbol): Don't insert new symbol in sorted
2295 position, push it at the end.
2296
54cc7474
SM
22972019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2298
2299 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2300 (arm_mapping_symbol_s): Remove.
2301 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2302 (arm_mapping_symbol_vec): New typedef.
2303 (struct arm_per_objfile): Add constructor.
2304 <section_maps>: Change type to
2305 std::unique_ptr<arm_mapping_symbol_vec[]>.
2306 (arm_compare_mapping_symbols): Remove.
2307 (arm_find_mapping_symbol): Adjust to section_maps type change.
2308 (arm_objfile_data_free): Call delete on arm_per_objfile.
2309 (arm_record_special_symbol): Adjust to section_maps type change.
2310 Allocate arm_per_objfile with new.
2311
b65b566c
PW
23122019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2313
2314 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2315 with the command prefix.
2316
c2fc64f5
TT
23172019-06-25 Tom Tromey <tom@tromey.com>
2318
2319 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2320 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2321
fb54fa76
TT
23222019-06-25 Tom Tromey <tom@tromey.com>
2323
2324 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2325 type.
2326 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2327 protected.
2328
f7952c57
TT
23292019-06-25 Tom Tromey <tom@tromey.com>
2330
2331 * tui/tui-winsource.c
2332 (tui_source_window_base::set_is_exec_point_at): Add check against
2333 LOA_ADDRESS.
2334
17568d78
TT
23352019-06-25 Tom Tromey <tom@tromey.com>
2336
2337 * tui/tui-source.c (tui_set_source_content): Don't check before
2338 xfree.
2339 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2340
53e7cdba
TT
23412019-06-25 Tom Tromey <tom@tromey.com>
2342
2343 * tui/tui-winsource.h (tui_update_source_window_as_is)
2344 (tui_alloc_source_buffer, tui_line_is_displayed)
2345 (tui_addr_is_displayed): Change type of win_info.
2346 * tui/tui-winsource.c (tui_update_source_window_as_is)
2347 (tui_clear_source_content, tui_show_source_line)
2348 (tui_show_source_content, tui_source_window_base::refill)
2349 (tui_source_window_base::set_is_exec_point_at)
2350 (tui_source_window_base::set_is_exec_point_at)
2351 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2352 (tui_alloc_source_buffer, tui_line_is_displayed)
2353 (tui_addr_is_displayed): Change type of win_info. Update.
2354 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2355 (tui_source_window_base::do_make_visible_with_new_height):
2356 Update.
2357 * tui/tui-source.c (tui_set_source_content)
2358 (tui_set_source_content_nil)
2359 (tui_source_window::do_scroll_vertical): Update.
2360 * tui/tui-layout.c (show_layout): Update.
2361 * tui/tui-disasm.c (tui_set_disassem_content)
2362 (tui_disasm_window::do_scroll_vertical): Update.
2363 * tui/tui-data.h (tui_win_content): Remove.
2364 (struct tui_gen_win_info) <content, content_size>: Remove.
2365 (struct tui_source_element): Add initializers and destructor.
2366 (union tui_which_element, struct tui_win_element): Remove.
2367 (struct tui_source_window_base) <content>: New field.
2368 (struct tui_data_window): Remove destructor.
2369 (tui_alloc_content, tui_free_win_content)
2370 (tui_free_all_source_wins_content): Don't declare.
2371 * tui/tui-data.c (tui_initialize_static_data): Update.
2372 (init_content_element, tui_alloc_content): Remove.
2373 (~tui_gen_win_info): Update.
2374 (~tui_data_window, tui_free_all_source_wins_content)
2375 (tui_free_win_content, free_content, free_content_elements):
2376 Remove.
2377
7908abbf
TT
23782019-06-25 Tom Tromey <tom@tromey.com>
2379
2380 * tui/tui-winsource.h (tui_clear_source_content)
2381 (tui_erase_source_content, tui_show_source_content): Change type
2382 of win_info.
2383 * tui/tui-winsource.c (tui_clear_source_content)
2384 (tui_erase_source_content, tui_show_source_content): Change type
2385 of win_info.
2386 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2387 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2388 win_info.
2389 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2390 win_info.
2391 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2392
02c28df0
TT
23932019-06-25 Tom Tromey <tom@tromey.com>
2394
2395 * tui/tui-winsource.c (tui_clear_source_content)
2396 (tui_source_window_base::set_is_exec_point_at): Update.
2397 * tui/tui-source.c (tui_set_source_content_nil): Update.
2398 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2399 a bool.
2400 * tui/tui-data.c (init_content_element): Update.
2401
6658b1bf
TT
24022019-06-25 Tom Tromey <tom@tromey.com>
2403
2404 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2405 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2406 * tui/tui-layout.c (init_and_make_win): Update.
2407 * tui/tui.h (enum tui_win_type): Update.
2408 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2409 tui_win_is_auxillary.
2410 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2411 tui_win_is_auxillary.
2412
21e1c91e
TT
24132019-06-25 Tom Tromey <tom@tromey.com>
2414
2415 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2416 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2417 (tui_delete_data_content_windows, tui_display_all_data)
2418 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2419 Update.
2420 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2421 * tui/tui-regs.c (tui_last_regs_line_no)
2422 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2423 (tui_show_registers): Update.
2424 (tui_show_register_group): Return void. Update.
2425 (tui_display_registers_from, tui_display_reg_element_at_line)
2426 (tui_display_registers_from_line, tui_check_register_values):
2427 Update.
2428 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2429 member.
2430 (struct tui_data_window) <regs_content>: Now a std::vector.
2431 <regs_content_count>: Remove.
2432 (tui_add_content_elements, tui_free_data_content): Don't declare.
2433 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2434 (init_content_element): Remove DATA_WIN case. Add assert.
2435 (tui_add_content_elements): Remove.
2436 (tui_data_window): Update.
2437 (tui_free_data_content): Remove.
2438 (free_content_elements): Remove DATA_WIN case.
2439
115ac53b
TT
24402019-06-25 Tom Tromey <tom@tromey.com>
2441
2442 * tui/tui-data.c (tui_data_item_window): Update.
2443 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2444 * tui/tui-windata.c (tui_display_all_data)
2445 (tui_display_data_from_line): Update.
2446 (tui_check_data_values): Remove.
2447 * tui/tui-regs.c (tui_show_register_group)
2448 (tui_display_reg_element_at_line): Update.
2449 * tui/tui-hooks.c (tui_register_changed)
2450 (tui_refresh_frame_and_register_information): Call
2451 tui_check_register_values.
2452 * tui/tui-data.h (struct tui_data_window) <data_content,
2453 data_content_count, data_type>: Remove.
2454 (enum tui_data_type): Remove.
2455
2456 * tui/tui-data.c (tui_data_window::clear_detail)
2457 (~tui_data_window): Update.
2458
eaf9738b
TT
24592019-06-25 Tom Tromey <tom@tromey.com>
2460
2461 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2462 declare.
2463 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2464 Rename from tui_first_data_item_displayed. Update.
2465 (tui_data_window::refresh_all)
2466 (tui_data_window::do_scroll_vertical): Update.
2467 * tui/tui-data.h (struct tui_data_window)
2468 <first_data_item_displayed>: Declare new method.
2469
31ca4723
TT
24702019-06-25 Tom Tromey <tom@tromey.com>
2471
2472 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2473 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2474 contents...
2475 (tui_initialize_static_data): ...here.
2476
41bcff7f
TT
24772019-06-25 Tom Tromey <tom@tromey.com>
2478
2479 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2480 (tui_display_registers_from, tui_check_register_values): Update.
2481 (tui_display_register): Remove win_info parameter; update.
2482 (tui_get_register): Change type of parameters.
2483 * tui/tui-data.h (struct tui_data_element): Remove.
2484 (union tui_which_element) <data>: Remove.
2485 <data_window>: Change type.
2486 (struct tui_data_item_window): New.
2487 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2488 case. Add assert.
2489 (~tui_data_item_window): New destructor.
2490 (free_content_elements): Remove DATA_ITEM_WIN case.
2491
d2802c33
TT
24922019-06-25 Tom Tromey <tom@tromey.com>
2493
2494 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2495 Remove.
2496
dd835f8b
TT
24972019-06-25 Tom Tromey <tom@tromey.com>
2498
2499 * tui/tui-data.h (struct tui_command_element): Remove.
2500 (union tui_which_element) <command>: Remove.
2501 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2502 assert.
2503 (free_content_elements): Remove CMD_WIN case.
2504
bd7db367
TT
25052019-06-25 Tom Tromey <tom@tromey.com>
2506
2507 * tui/tui-layout.c (tui_set_layout): Update.
2508 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2509 * tui/tui-data.c (layout_def): Update.
2510
3add462f
TT
25112019-06-25 Tom Tromey <tom@tromey.com>
2512
2513 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2514 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2515 (tui_source_window_base::set_new_height): Update.
2516 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2517 Update.
2518 (tui_set_locator_fullname, tui_set_locator_info)
2519 (tui_show_frame_info): Update.
2520 * tui/tui-source.c (tui_set_source_content)
2521 (tui_source_is_displayed): Update.
2522 * tui/tui-layout.c (show_source_disasm_command, show_data)
2523 (show_source_or_disasm_and_command): Update.
2524 * tui/tui-disasm.c (tui_set_disassem_content)
2525 (tui_get_begin_asm_address): Update.
2526 * tui/tui-data.h (struct tui_locator_element): Remove.
2527 (union tui_which_element) <locator>: Remove.
2528 (struct tui_locator_window): New.
2529 (tui_locator_win_info_ptr): Change return type.
2530 * tui/tui-data.c (_locator): Change type.
2531 (tui_locator_win_info_ptr): Change return type.
2532 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2533 (tui_alloc_content): Add assert.
2534
489e9d8b
TT
25352019-06-25 Tom Tromey <tom@tromey.com>
2536
2537 * tui/tui-winsource.c
2538 (tui_exec_info_window::maybe_allocate_content): New method.
2539 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2540 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2541 (make_source_or_disasm_window): Add cast.
2542 * tui/tui-data.h (union tui_which_element) <simple_string>:
2543 Remove.
2544 (struct tui_source_info): New.
2545 (struct tui_source_window_base) <execution_info>: Change type.
2546 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2547 case, and add assert.
2548 (tui_alloc_content): Add assert.
2549
c3fabb7d
TT
25502019-06-25 Tom Tromey <tom@tromey.com>
2551
2552 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2553 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2554 * tui/tui-data.c (tui_alloc_win_info): Remove.
2555
bbc228ee
TT
25562019-06-25 Tom Tromey <tom@tromey.com>
2557
2558 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2559 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2560 can_highlight.
2561
5fcee43a
TT
25622019-06-25 Tom Tromey <tom@tromey.com>
2563
2564 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2565 make_visible_with_new_height method.
2566 (tui_win_info::make_visible_with_new_height): New method.
2567 (tui_source_window_base::do_make_visible_with_new_height)
2568 (tui_data_window::do_make_visible_with_new_height)
2569 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2570 (make_visible_with_new_height): Remove.
2571 (tui_resize_all, tui_adjust_win_heights): Use
2572 make_visible_with_new_height method.
2573 * tui/tui-data.h (struct tui_win_info)
2574 <do_make_visible_with_new_height, make_visible_with_new_height>:
2575 New methods.
2576 (struct tui_source_window_base, struct tui_data_window)
2577 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2578 methods.
2579
d83f1fe6
TT
25802019-06-25 Tom Tromey <tom@tromey.com>
2581
2582 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2583 method.
2584 (update_tab_width): Call update_tab_width method.
2585 * tui/tui-data.h (struct tui_win_info)
2586 (struct tui_source_window_base) <update_tab_width>: New methods.
2587
17374de4
TT
25882019-06-25 Tom Tromey <tom@tromey.com>
2589
2590 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2591 parameter.
2592 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2593 parameter.
2594 (tui_gen_win_info::make_visible): Update.
2595 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2596 parameter.
2597 * tui/tui-data.h (enum tui_box): New enum.
2598 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2599
f936bca2
TT
26002019-06-25 Tom Tromey <tom@tromey.com>
2601
2602 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2603 init_and_make_win for EXEC_INFO_WIN.
2604 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2605 longer inline.
2606 (struct tui_win_info) <~tui_win_info>: Inline.
2607 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2608 Don't declare.
2609 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2610 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2611 Remove.
2612 (tui_initialize_static_data): Update.
2613 (~tui_gen_win_info): Handle more cleanup here.
2614 (~tui_source_window_base): Delete "execution_info".
2615 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2616
d6ba6a11
TT
26172019-06-25 Tom Tromey <tom@tromey.com>
2618
2619 * tui/tui-layout.c (make_command_window): Don't set
2620 can_highlight.
2621 (show_source_disasm_command): Call the reset method.
2622 (show_data): Don't set can_highlight. Call the reset method.
2623 (tui_gen_win_info::reset): Rename from init_gen_win_info
2624 (init_and_make_win): Simplify. Return tui_gen_win_info.
2625 (show_source_or_disasm_and_command): Call the reset method.
2626 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2627 (struct tui_cmd_window): Set can_highlight.
2628
48a3bd16
TT
26292019-06-25 Tom Tromey <tom@tromey.com>
2630
2631 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2632 from make_visible.
2633 (tui_make_visible, tui_make_invisible): Rewrite.
2634 (tui_win_info::make_visible): Remove.
2635 (tui_source_window_base::make_visible): Update.
2636 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2637 method. Moved from...
2638 (struct tui_win_info) <make_visible>: ...here.
2639
c3bd716f
TT
26402019-06-25 Tom Tromey <tom@tromey.com>
2641
2642 * tui/tui-winsource.c
2643 (tui_source_window_base::do_scroll_horizontal): Remove direction
2644 parameter.
2645 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2646 direction parameter.
2647 * tui/tui-win.c (tui_win_info::forward_scroll)
2648 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2649 (tui_win_info::right_scroll): Update.
2650 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2651 direction parameter.
2652 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2653 direction parameter.
2654 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2655 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2656 Remove direction parameter.
2657 (struct tui_source_window_base, struct tui_source_window)
2658 (struct tui_disasm_window, struct tui_data_window)
2659 (struct tui_cmd_window): Update.
2660
21c32dca
TT
26612019-06-25 Tom Tromey <tom@tromey.com>
2662
2663 * tui/tui-winsource.h (tui_set_exec_info_content)
2664 (tui_show_exec_info_content, tui_erase_exec_info_content)
2665 (tui_clear_exec_info_content, tui_update_exec_info): Change
2666 argument to tui_source_window_base.
2667 * tui/tui-winsource.c (tui_set_exec_info_content)
2668 (tui_show_exec_info_content, tui_erase_exec_info_content)
2669 (tui_clear_exec_info_content, tui_update_exec_info): Change
2670 argument to tui_source_window_base.
2671
73fbdc65
TT
26722019-06-25 Tom Tromey <tom@tromey.com>
2673
2674 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2675 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2676
33325343
TT
26772019-06-25 Tom Tromey <tom@tromey.com>
2678
2679 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2680 check.
2681
29d2c474
TT
26822019-06-25 Tom Tromey <tom@tromey.com>
2683
2684 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2685 type to void.
2686 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2687 type to void.
2688 * tui/tui-source.c (tui_set_source_content): Update.
2689 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2690
152f3f4b
TT
26912019-06-25 Tom Tromey <tom@tromey.com>
2692
2693 * tui/tui-win.c (window_name_completer, tui_set_focus)
2694 (tui_all_windows_info): Use name method.
2695 * tui/tui-data.h (struct tui_gen_win_info)
2696 (struct tui_source_window, struct tui_disasm_window)
2697 (struct tui_data_window, struct tui_cmd_window) <name>: New
2698 method.
2699 (tui_win_name): Don't declare.
2700 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2701 (tui_win_name): Remove.
2702
be4da588
TT
27032019-06-25 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-winsource.h (tui_update_source_window)
2706 (tui_update_source_window_as_is): Change parameter type.
2707 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2708 to be a tui_source_window_base.
2709 (tui_update_source_window_as_is): Likewise.
2710 * tui/tui-win.c (make_visible_with_new_height): Update.
2711
5b81daba
TT
27122019-06-25 Tom Tromey <tom@tromey.com>
2713
2714 * tui/tui-winsource.c (tui_erase_source_content)
2715 (tui_show_source_content, tui_show_exec_info_content)
2716 (tui_erase_exec_info_content): Use refresh_window method.
2717 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2718 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2719 from tui_refresh_win.
2720 (tui_data_window::refresh_window): New method.
2721 (tui_win_info::refresh, tui_source_window_base::refresh)
2722 (tui_refresh_all): Use refresh_window method.
2723 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2724 method.
2725 * tui/tui-regs.c (tui_display_register): Call refresh_window
2726 method.
2727 * tui/tui-layout.c (show_source_disasm_command)
2728 (show_source_or_disasm_and_command): Call refresh_window method.
2729 * tui/tui-data.h (struct tui_gen_win_info)
2730 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2731 New method.
2732
cb2ce893
TT
27332019-06-25 Tom Tromey <tom@tromey.com>
2734
2735 * tui/tui.c (tui_rl_other_window, tui_enable)
2736 (tui_is_window_visible, tui_get_command_dimension): Update.
2737 * tui/tui-winsource.c (tui_update_source_window_as_is)
2738 (tui_clear_source_content, tui_erase_source_content)
2739 (tui_show_source_line, tui_source_window_base::refill)
2740 (tui_source_window_base::do_scroll_horizontal)
2741 (tui_source_window_base::set_is_exec_point_at)
2742 (tui_update_breakpoint_info, tui_set_exec_info_content)
2743 (tui_alloc_source_buffer, tui_line_is_displayed)
2744 (tui_addr_is_displayed): Update.
2745 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2746 (tui_check_and_display_highlight_if_needed)
2747 (tui_win_info::make_visible, tui_win_info::refresh)
2748 (tui_refresh_all): Update.
2749 * tui/tui-windata.c (tui_first_data_item_displayed)
2750 (tui_delete_data_content_windows, tui_erase_data_content)
2751 (tui_display_all_data, tui_data_window::refresh_all)
2752 (tui_check_data_values): Update.
2753 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2754 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2755 (tui_win_info::backward_scroll, tui_refresh_all_win)
2756 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2757 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2758 (tui_source_window_base::set_new_height)
2759 (tui_data_window::set_new_height)
2760 (make_invisible_and_set_new_height)
2761 (make_visible_with_new_height, new_height_ok)
2762 (parse_scrolling_args): Update.
2763 * tui/tui-stack.c (tui_show_frame_info): Update.
2764 * tui/tui-source.c (tui_set_source_content)
2765 (tui_set_source_content_nil, tui_source_is_displayed)
2766 (tui_source_window::do_scroll_vertical): Update.
2767 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2768 (tui_display_registers_from, tui_display_reg_element_at_line)
2769 (tui_check_register_values, tui_reg_command): Update.
2770 * tui/tui-layout.c (tui_default_win_height)
2771 (show_source_disasm_command, show_data, init_and_make_win)
2772 (show_source_or_disasm_and_command): Update.
2773 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2774 (tui_redisplay_readline, tui_mld_flush)
2775 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2776 (tui_getc): Update.
2777 * tui/tui-disasm.c (tui_set_disassem_content)
2778 (tui_disasm_window::do_scroll_vertical): Update.
2779 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2780 Now virtual.
2781 (struct tui_win_info): Derive from tui_gen_win_info.
2782 <~tui_win_info>: Mark as override.
2783 <generic>: Remove member.
2784 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2785 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2786 (~tui_data_window, ~tui_win_info)
2787 (tui_free_all_source_wins_content): Update.
2788 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2789
ab313b35
TT
27902019-06-25 Tom Tromey <tom@tromey.com>
2791
2792 * tui/tui-layout.c (init_and_make_win): Use new.
2793 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2794 destructor, initializers.
2795 (tui_alloc_generic_win_info): Don't declare.
2796 * tui/tui-data.c (_locator): Add argument to constructor.
2797 (source_win, disasm_win): New globals.
2798 (exec_info): Remove.
2799 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2800 Update.
2801 (tui_alloc_generic_win_info): Remove.
2802 (init_content_element): Use new.
2803 (tui_win_info::tui_win_info): Update.
2804 (free_content_elements) <case DATA_WIN>: Use delete.
2805
dc2c33e4
TT
28062019-06-25 Tom Tromey <tom@tromey.com>
2807
2808 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2809 * tui/tui-windata.c (tui_first_data_item_displayed)
2810 (tui_delete_data_content_windows): Update.
2811 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2812 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2813 (tui_display_registers_from, tui_check_register_values): Update.
2814 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2815 pointer.
2816 * tui/tui-data.c (init_content_element): Update. Allocate the new
2817 window.
2818 (tui_free_data_content): Update.
2819 (free_content_elements) <case DATA_WIN>: Free the window.
2820
214a5cbe
TT
28212019-06-25 Tom Tromey <tom@tromey.com>
2822
2823 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2824 Update.
2825 * tui/tui-layout.c (make_command_window)
2826 (show_source_disasm_command, show_data, init_and_make_win)
2827 (show_source_or_disasm_and_command): Update.
2828 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2829 method.
2830 <can_highight, is_highlighted>: Now bool.
2831 (tui_set_win_highlight): Don't declare.
2832 * tui/tui-data.c (tui_set_win_highlight): Remove.
2833
8e2daf15
TT
28342019-06-25 Tom Tromey <tom@tromey.com>
2835
2836 * tui/tui-wingeneral.c (make_visible): Remove check of window
2837 type.
2838
8903bd8a
TT
28392019-06-25 Tom Tromey <tom@tromey.com>
2840
2841 * tui/tui-win.c (tui_win_info::max_height)
2842 (tui_cmd_window::max_height): New methods.
2843 (new_height_ok): Call max_height.
2844 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2845 <max_height>: New method.
2846
3f02ce1e
TT
28472019-06-25 Tom Tromey <tom@tromey.com>
2848
2849 * tui/tui-win.c (tui_source_window_base::set_new_height)
2850 (tui_data_window::set_new_height): New methods.
2851 (make_invisible_and_set_new_height): Call set_new_height method.
2852 * tui/tui-data.h (struct tui_win_info)
2853 (struct tui_source_window_base, struct tui_data_window)
2854 <set_new_height>: New method.
2855
1825f487
TT
28562019-06-25 Tom Tromey <tom@tromey.com>
2857
2858 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2859 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2860 tui_refresh_data_win.
2861 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2862 method.
2863 (tui_refresh_all_win): Call the refresh_all method.
2864 (tui_set_focus): Likewise.
2865 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2866 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2867 Likewise.
2868
ad54d15b
TT
28692019-06-25 Tom Tromey <tom@tromey.com>
2870
2871 * tui/tui-winsource.h (tui_refill_source_window)
2872 (tui_set_is_exec_point_at): Don't declare.
2873 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2874 (tui_source_window_base::refill): Rename from
2875 tui_refill_source_window.
2876 (tui_source_window_base::do_scroll_horizontal): Update.
2877 (tui_source_window_base::set_is_exec_point_at): Rename from
2878 tui_set_is_exec_point_at.
2879 (tui_update_all_breakpoint_info): Update.
2880 * tui/tui-stack.c (tui_show_frame_info): Update.
2881 * tui/tui-layout.c (show_data): Add cast.
2882 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2883 * tui/tui-data.h (struct tui_source_window_base) <refill,
2884 set_is_exec_point_at>: New methods.
2885 (tui_source_windows, tui_add_to_source_windows): Update types.
2886 (tui_add_to_source_windows): Remove redundant declaration.
2887 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2888 (tui_source_windows): Change return type.
2889 (tui_clear_source_windows_detail): Update.
2890 (tui_add_to_source_windows): Change type of parameter.
2891 (tui_free_all_source_wins_content): Update.
2892
2042b506
TT
28932019-06-25 Tom Tromey <tom@tromey.com>
2894
2895 * tui/tui-wingeneral.c (tui_win_info::refresh)
2896 (tui_source_window_base::refresh): New methods.
2897 (tui_refresh_all): Call the refresh method.
2898 * tui/tui-data.h (struct tui_win_info)
2899 (struct tui_source_window_base) <refresh>: New method.
2900
56122977
TT
29012019-06-25 Tom Tromey <tom@tromey.com>
2902
2903 * tui/tui.h (tui_is_window_visible): Return bool.
2904 * tui/tui.c (tui_is_window_visible): Return bool.
2905 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2906 (tui_make_visible, tui_make_invisible)
2907 (tui_win_info::make_visible)
2908 (tui_source_window_base::make_visible, make_all_visible)
2909 (tui_make_all_visible, tui_make_all_invisible): Update.
2910 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2911 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2912 bool.
2913 (struct tui_win_info, struct tui_source_window_base)
2914 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2915 * tui/tui-data.c (tui_init_generic_part): Update.
2916
cda37efb
TT
29172019-06-25 Tom Tromey <tom@tromey.com>
2918
2919 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2920 (tui_source_window_base::make_visible): New methods.
2921 (make_all_visible): Make method call.
2922 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2923 (struct tui_source_window_base, struct tui_cmd_window): Override
2924 make_visible.
2925 (tui_win_is_source_type): Don't declare.
2926 * tui/tui-data.c (tui_win_is_source_type): Remove.
2927
6a0ee02c
TT
29282019-06-25 Tom Tromey <tom@tromey.com>
2929
2930 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2931 NULL check.
2932
63901aec
TT
29332019-06-25 Tom Tromey <tom@tromey.com>
2934
2935 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2936 Inline constructor. Add initializers for members.
2937 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2938 constructors; now inline in class.
2939
ceb13a13
TT
29402019-06-25 Tom Tromey <tom@tromey.com>
2941
2942 * tui/tui-regs.c (tui_show_registers): Update.
2943 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2944 bool.
2945 * tui/tui-data.c (tui_data_window::clear_detail)
2946 (tui_data_window): Update.
2947
238eb706
TT
29482019-06-25 Tom Tromey <tom@tromey.com>
2949
2950 * tui/tui-windata.c (tui_display_all_data)
2951 (tui_display_data_from_line, tui_display_data_from)
2952 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2953 Update.
2954 * tui/tui-regs.c (tui_last_regs_line_no)
2955 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2956 (tui_show_registers, tui_show_register_group)
2957 (tui_display_registers_from, tui_display_reg_element_at_line)
2958 (tui_display_registers_from_line, tui_check_register_values)
2959 (tui_reg_next, tui_reg_prev): Update.
2960 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2961 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2962 tui_data_window.
2963 (struct tui_win_info) <detail>: Remove. Add new fields from
2964 tui_data_info.
2965 (TUI_DATA_WIN): Add cast.
2966 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2967 (~tui_data_window): Simplify.
2968
81491aa0
TT
29692019-06-25 Tom Tromey <tom@tromey.com>
2970
2971 * tui/tui-layout.c (show_source_disasm_command)
2972 (show_source_or_disasm_and_command): Update.
2973 * tui/tui-io.c (update_cmdwin_start_line)
2974 (tui_redisplay_readline): Update.
2975 * tui/tui-data.h (struct tui_command_info): Remove.
2976 (struct tui_win_info) <detail>: Remove command_info member.
2977 (struct tui_data_window) <start_line>: New member, from
2978 tui_command_info.
2979 (TUI_CMD_WIN): Add casts.
2980
e6e41501
TT
29812019-06-25 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-winsource.c (tui_update_source_window)
2984 (tui_refill_source_window)
2985 (tui_source_window_base::do_scroll_horizontal)
2986 (tui_update_breakpoint_info, tui_set_exec_info_content)
2987 (tui_show_exec_info_content, tui_erase_exec_info_content)
2988 (tui_clear_exec_info_content): Update.
2989 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
2990 Update.
2991 * tui/tui-win.c (make_invisible_and_set_new_height)
2992 (make_visible_with_new_height): Update.
2993 * tui/tui-source.c (tui_set_source_content)
2994 (tui_show_symtab_source): Update.
2995 * tui/tui-layout.c (extract_display_start_addr)
2996 (show_source_disasm_command, show_data)
2997 (make_source_or_disasm_window)
2998 (show_source_or_disasm_and_command): Update.
2999 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3000 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3001 "gdbarch".
3002 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3003 to tui_source_window_base.
3004 (struct tui_win_info) <detail>: Remove source_info member.
3005 (struct tui_source_window_base) <has_locator>: Inline.
3006 Move contents from tui_source_info; rename has_locator member to
3007 m_has_locator.
3008 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3009 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3010 header file.
3011 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3012 Simplify.
3013 (tui_free_all_source_wins_content): Cast to
3014 tui_source_window_base.
3015
44f0e208
TT
30162019-06-25 Tom Tromey <tom@tromey.com>
3017
3018 * tui/tui-win.c (make_invisible_and_set_new_height)
3019 (make_visible_with_new_height): Call has_locator method.
3020 * tui/tui-layout.c (show_source_disasm_command, show_data)
3021 (show_source_or_disasm_and_command): Update for bool change.
3022 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3023 (tui_win_info) <has_locator>: New method.
3024 (struct tui_source_window_base) <has_locator>: New method.
3025 (tui_win_has_locator): Don't declare.
3026 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3027 from tui_win_has_locator.
3028 (tui_source_window_base): Use false, not FALSE.
3029
7778b912
TT
30302019-06-25 Tom Tromey <tom@tromey.com>
3031
3032 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3033 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3034 clear_detail method directly.
3035 (tui_clear_win_detail): Remove.
3036
f83d391c
TT
30372019-06-25 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3040 "this", not TUI_DISASM_WIN.
3041
13446e05
TT
30422019-06-25 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3045 declare.
3046 * tui/tui-winsource.c
3047 (tui_source_window_base::do_scroll_horizontal): Rename from
3048 tui_horizontal_source_scroll.
3049 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3050 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3051 from tui_vertical_data_scroll.
3052 * tui/tui-win.h (tui_scroll): Don't declare.
3053 * tui/tui-win.c (tui_win_info::forward_scroll)
3054 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3055 (tui_win_info::right_scroll): Rename and update.
3056 (tui_scroll_forward_command, tui_scroll_backward_command)
3057 (tui_scroll_left_command, tui_scroll_right_command): Update.
3058 (tui_scroll): Remove.
3059 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3060 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3061 from tui_vertical_source_scroll.
3062 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3063 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3064 from tui_vertical_disassem_scroll.
3065 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3066 do_scroll_horizontal>: New methods.
3067 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3068 Likewise.
3069 (struct tui_source_window_base): Add do_scroll_horizontal.
3070 (struct tui_source_window, struct tui_disasm_window): Add
3071 do_scroll_vertical.
3072 (struct tui_data_window, struct tui_cmd_window): Add
3073 do_scroll_horizontal and do_scroll_vertical.
3074 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3075
5cf82909
TT
30762019-06-25 Tom Tromey <tom@tromey.com>
3077
3078 * tui/tui-data.h (struct tui_source_window_base): New struct.
3079 (struct tui_source_window): Derive from tui_source_window_base.
3080 (struct tui_disasm_window): New struct.
3081 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3082 from tui_source_window::clear_detail.
3083 (tui_source_window_base): Rename from tui_source_window.
3084 (~tui_source_window_base): Rename from ~tui_source_window.
3085 (tui_alloc_win_info): Create a tui_disasm_window.
3086
ee1d42d6
TT
30872019-06-25 Tom Tromey <tom@tromey.com>
3088
3089 * tui/tui-data.h (struct tui_source_window)
3090 (struct tui_data_window): Declare destructors.
3091 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3092 destructors.
3093 (tui_win_info): Simplify.
3094
b4eb2452
TT
30952019-06-25 Tom Tromey <tom@tromey.com>
3096
3097 * tui/tui-winsource.c (tui_display_main)
3098 (tui_update_source_windows_with_addr)
3099 (tui_update_all_breakpoint_info): Update.
3100 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3101 (new_height_ok, parse_scrolling_args): Update.
3102 * tui/tui-stack.c (tui_show_frame_info): Update.
3103 * tui/tui-data.h (struct tui_list): Remove.
3104 (tui_source_windows): Return a reference to a std::vector.
3105 * tui/tui-data.c (source_windows): Now a std::vector.
3106 (tui_source_windows): Change return type.
3107 (tui_clear_source_windows): Rewrite.
3108 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3109 (tui_free_all_source_wins_content): Rewrite.
3110
8761a91b
TT
31112019-06-25 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3114 (struct tui_data_window, struct tui_cmd_window): Declare
3115 clear_detail method.
3116 * tui/tui-data.c (tui_source_window::clear_detail)
3117 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3118 methods.
3119 (tui_clear_win_detail): Simplify.
3120
0ed69eda
TT
31212019-06-25 Tom Tromey <tom@tromey.com>
3122
3123 * tui/tui-layout.c (make_source_window, make_disasm_window)
3124 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3125 Return the new window.
3126 (show_source_disasm_command, show_data)
3127 (show_source_or_disasm_and_command): Update.
3128
82432e10
TT
31292019-06-25 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3132 parameter. Return the new window.
3133 (show_source_disasm_command): Update and remove NULL check.
3134 (show_source_or_disasm_and_command): Update.
3135
ec328aa5
TT
31362019-06-25 Tom Tromey <tom@tromey.com>
3137
3138 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3139
33b906ab
TT
31402019-06-25 Tom Tromey <tom@tromey.com>
3141
3142 * tui/tui-data.h (struct tui_win_info): Make constructor
3143 protected. Make destructor virtual. Add initializers.
3144 (tui_source_window, tui_data_window, tui_cmd_window): New
3145 classes.
3146 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3147 constructor. Add "type" parameter.
3148 (tui_source_window, tui_data_window, tui_cmd_window): New
3149 constructors.
3150 (tui_alloc_win_info): Instantiate the appropriate subclass.
3151
e7e11af4
TT
31522019-06-25 Tom Tromey <tom@tromey.com>
3153
3154 * tui/tui-win.c (tui_resize_all): Use delete.
3155 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3156 destructor.
3157 (tui_free_window): Don't declare.
3158 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3159 Update.
3160
6792b55e
TT
31612019-06-25 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-data.h (struct tui_win_info): Add constructor.
3164 * tui/tui-data.c (tui_alloc_win_info): Use new.
3165 (tui_free_window): Use delete.
3166
f95675e1
TT
31672019-06-22 Tom Tromey <tom@tromey.com>
3168
3169 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3170 declare.
3171 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3172
5bff081c
TT
31732019-06-22 Tom Tromey <tom@tromey.com>
3174
3175 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3176 declare.
3177 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3178
47e3f474
TV
31792019-06-22 Tom de Vries <tdevries@suse.de>
3180
3181 * dwarf2read.c (create_addrmap_from_aranges)
3182 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3183 instead of '%zu'.
3184
fd5866f6
SM
31852019-06-21 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * dwarf2read.h (dwarf2_section_info_def): Remove.
3188 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3189 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3190 std::vector<dwarf2_section_info>.
3191 (struct dwo_file) <~dwo_file>: Remove.
3192 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3193 types field.
3194 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3195 (dwarf2_read_debug_names): Likewise.
3196 (create_debug_types_hash_table): Change parameter type to
3197 array_view, adjust code accordingly.
3198 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3199 (partial_die_info::fixup): Likewise.
3200 (determine_prefix): Likewise.
3201 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3202
fb1eb2f9
SM
32032019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3204
3205 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3206 gdb_bfd_ref_ptr.
3207 <~dwo_file>: Remove call to gdb_bfd_unref.
3208 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3209 gdb_bfd_ref_ptr::get.
3210
51ac9db5
SM
32112019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3212
3213 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3214 type to htab_up.
3215 * dwarf2read.c (struct dwo_file): Initialize fields.
3216 <~dwo_file>: New.
3217 (free_dwo_file): Remove, move content to ~dwo_file.
3218 (struct dwo_file_deleter): Remove.
3219 (dwo_file_up>: Remove custom deleter.
3220 (free_dwo_files): Remove.
3221 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3222 dwo_files.
3223 (process_skeletonless_type_units): Call unique_ptr::get.
3224 (allocate_dwo_file_hash_table): Add deleter to created hash
3225 table. Change return type to htab_up.
3226 (lookup_dwo_file_slot): Don't memset dwo_file, call
3227 unique_ptr::get.
3228 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3229 (create_dwo_unit_in_dwp_v2): Likewise.
3230 (open_and_init_dwo_file): Likewise.
3231 (free_dwo_file_from_slot): Remove.
3232
dc4ccb6f
SM
32332019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3234
3235 * dwarf2read.h (struct dwarf2_section_info) <readin,
3236 is_virtual>: Change type to bool.
3237 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3238 true instead of 1.
3239
e6a1c5cb
TT
32402019-06-19 Tom Tromey <tom@tromey.com>
3241
3242 * tui/tui-data.h (tui_init_content_element): Don't declare.
3243
6f6ffbeb
TT
32442019-06-19 Tom Tromey <tom@tromey.com>
3245
3246 * tui/tui-data.h (tui_init_win_info): Don't declare.
3247
f23f598e
TV
32482019-06-19 Tom de Vries <tdevries@suse.de>
3249
3250 * dwarf2read.h (abstract_to_concrete): Change type to
3251 std::unordered_map<sect_offset, std::vector<sect_offset>,
3252 gdb::hash_enum<sect_offset>>.
3253
680e1bee
TT
32542019-06-19 Tom Tromey <tromey@adacore.com>
3255
3256 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3257 EVAL_AVOID_SIDE_EFFECTS specially.
3258
dcf37923
TT
32592019-06-19 Tom Tromey <tromey@adacore.com>
3260
3261 * source-cache.c (highlighter): New global.
3262 (source_cache::get_source_lines): Create a highlighter on demand.
3263
494986d5
AB
32642019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3265
3266 * defs.h (deprecated_interactive_hook): Delete declaration.
3267 * interps.c (clear_interpreter_hooks): Remove use of
3268 deprecated_interactive_hook.
3269 * top.c (deprecated_interactive_hook): Delete definition.
3270 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3271
3360b6e7
TV
32722019-06-18 Tom de Vries <tdevries@suse.de>
3273
3274 PR gdb/24515
3275 * dwarf2read.h (abstract_to_concrete): Change type from
3276 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3277 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3278 * dwarf2read.c (read_variable): Update.
3279 (dwarf2_fetch_die_loc_sect_off): Update.
3280
310b3441
TV
32812019-06-17 Tom de Vries <tdevries@suse.de>
3282
3283 PR gdb/24617
3284 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3285 accessing parent[parent_len - 1].
3286
ba9777be
PP
32872019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3288
3289 PR gdb/24364
3290 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3291 call dtrace_process_dof with NULL dof.
3292
2b9f6e89
TV
32932019-06-16 Tom de Vries <tdevries@suse.de>
3294
3295 PR gdb/24445
3296 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3297
431b3ead
TT
32982019-06-16 Tom Tromey <tom@tromey.com>
3299
3300 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3301 (make_all_visible): Use address of member.
3302
d04b44a1
TT
33032019-06-16 Tom Tromey <tom@tromey.com>
3304
3305 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3306 (tui_free_window, free_content, free_content_elements): Remove
3307 unnecessary cast.
3308 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3309 cast.
3310 * tui/tui-regs.c (tui_show_register_group)
3311 (tui_display_registers_from, tui_display_reg_element_at_line):
3312 Remove unnecessary cast.
3313
bf5142e7
AB
33142019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3315
3316 * linux-nat.c (normal_mask): Delete.
3317 (_initialize_linux_nat): Don't initialise normal_mask.
3318
c4973306
SM
33192019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3320
3321 PR gdb/24445
3322 * dwarf-index-write.h (write_psymtabs_to_index): Add
3323 dwz_basename parameter.
3324 * dwarf-index-write.c (write_gdbindex): Move file writing to
3325 write_gdbindex_1. Change return type void.
3326 (assert_file_size): Move up, remove filename parameter.
3327 (write_gdbindex_1): New function.
3328 (write_debug_names): Change return type to void, call
3329 assert_file_size.
3330 (struct index_wip_file): New struct.
3331 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3332 file logic to index_wip_file. Write index for dwz file if
3333 needed.
3334 (save_gdb_index_command): Pass basename of dwz file, if present.
3335 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3336 build-id of dwz file, if present.
3337 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3338 (dwarf2_get_dwz_file): Likewise.
3339 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3340 (dwarf2_get_dwz_file): Likewise.
3341
395f9c91
TT
33422019-06-16 Tom Tromey <tom@tromey.com>
3343
3344 * coffread.c (process_coff_symbol): Use xstrdup.
3345 * value.c (create_internalvar): Use xstrdup.
3346
cafb3438
TT
33472019-06-16 Tom Tromey <tom@tromey.com>
3348
3349 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3350 * breakpoint.c (stopin_command, stopat_command)
3351 (until_break_command, decode_location_default): Remove unnecessary
3352 cast.
3353 * utils.c (subset_compare): Remove unnecessary cast.
3354 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3355 cast.
3356 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3357 cast.
3358 * infcmd.c (path_command): Remove unnecessary cast.
3359 * coffread.c (decode_type): Remove unnecessary cast.
3360 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3361 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3362 * tui/tui-stack.c (tui_show_locator_content)
3363 (tui_show_frame_info): Remove unnecessary cast.
3364 * tui/tui-win.c (tui_scroll_forward_command)
3365 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3366 (parse_scrolling_args): Remove unnecessary cast.
3367 * tui/tui-data.c (init_win_info, tui_del_window)
3368 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3369 (free_content_elements): Remove unnecessary cast.
3370 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3371 unnecessary cast.
3372 * tui/tui-source.c (tui_set_source_content)
3373 (tui_vertical_source_scroll): Remove unnecessary cast.
3374 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3375 cast.
3376 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3377 * tui/tui-regs.c (tui_display_registers_from)
3378 (tui_display_register): Remove unnecessary cast.
3379 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3380 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3381 (make_visible): Remove unnecessary cast.
3382 * tui/tui-winsource.c (tui_erase_source_content)
3383 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3384 unnecessary cast.
3385 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3386 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3387 * stabsread.c (read_type, read_array_type, read_range_type):
3388 Remove unnecessary cast.
3389 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3390 (parse_symbol, parse_type, upgrade_type, parse_external)
3391 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3392 unnecessary cast.
3393 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3394
730ead81
TT
33952019-06-16 Tom Tromey <tom@tromey.com>
3396
3397 * tui/tui-data.c (tui_alloc_generic_win_info)
3398 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3399 checks.
3400
584a927c
AB
34012019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3402 Andrew Burgess <andrew.burgess@embecosm.com>
3403
3404 * f-typeprint.c (f_print_type): Don't return early for not
3405 associated or not allocated types.
3406 (f_type_print_varspec_suffix): Add print_rank parameter and print
3407 ranks of array types in case they dangling.
3408 (f_type_print_base): Add print_rank parameter.
3409
30056ea0
AB
34102019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3411
3412 * NEWS: Mention new MI commands.
3413 * break-catch-throw.c (enum exception_event_kind): Move to
3414 breakpoint.h.
3415 (print_mention_exception_catchpoint): Output text as a single
3416 message.
3417 (catch_exception_command_1): Rename to...
3418 (catch_exception_event): ...this, make non-static, update header
3419 command, and change some parameter types.
3420 (catch_catch_command): Update for changes to
3421 catch_exception_command_1.
3422 (catch_throw_command): Likewise.
3423 (catch_rethrow_command): Likewise.
3424 * breakpoint.c (enum exception_event_kind): Delete.
3425 * breakpoint.h (enum exception_event_kind): Moved here from
3426 break-catch-throw.c.
3427 (catch_exception_event): Declare.
3428 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3429 (mi_cmd_catch_throw): New function.
3430 (mi_cmd_catch_rethrow): New function.
3431 (mi_cmd_catch_catch): New function.
3432 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3433 'catch-catch' entries.
3434 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3435 (mi_cmd_catch_rethrow): Declare.
3436 (mi_cmd_catch_catch): Declare.
3437
ec8e2b6d
AB
34382019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3439
3440 * annotate.c (annotate_source_line): Change return type to void,
3441 update implementation to match.
3442 * annotate.h (annotate_source_line): Change return type to void,
3443 update header comment.
3444 * stack.c (print_frame_info): Don't change what frame information
3445 is printed based on whether annotations are on or not.
3446
0d3abd8c
AB
34472019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3448
3449 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3450 (annotate_source): Make static.
3451 (annotate_source_line): Moved from source.c and renamed from
3452 identify_source_line. Update the return type.
3453 * annotate.h (annotate_source): Delete declaration.
3454 (annotate_source_line): Declaration moved from source.h, and
3455 renamed from identify_source_line. Return type updated.
3456 * source.c (identify_source_line): Moved to annotate.c and renamed
3457 to annotate_source_line.
3458 (info_line_command): Remove check of annotation_level.
3459 * source.h (identify_source_line): Move declaration to annotate.h
3460 and rename to annotate_source_line.
3461 * stack.c: Add 'annotate.h' include.
3462 (print_frame_info): Remove check of annotation_level before
3463 calling annotate_source_line.
3464
00df30ae
AB
34652019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3466
3467 * source-cache.c (source_cache::get_plain_source_lines): Use
3468 open_source_file_with_line_charpos instead of just
3469 open_source_file, remove call to find_source_lines.
3470 (source_cache::get_source_lines): Likewise.
3471 * source.c (find_source_lines): Make static.
3472 (get_filename_and_charpos): Renamed into...
3473 (open_source_file_with_line_charpos): ..this along with changes to
3474 return a scoped_fd, and some other minor clean ups.
3475 (identify_source_line): Use open_source_file_with_line_charpos.
3476 (search_command_helper): Use open_source_file_with_line_charpos
3477 instead of just open_source_file, remove call to
3478 find_source_lines.
3479 * source.h (open_source_file_with_line_charpos): Declare new
3480 function.
3481 (find_source_lines): Delete declaration.
3482
afda45a2
AB
34832019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3484
3485 * source.c (get_filename_and_charpos): Remove fullname
3486 parameter.
3487 (identify_source_line): Update call to get_filename_and_charpos.
3488
0735b091
TT
34892019-06-14 Tom Tromey <tromey@adacore.com>
3490
3491 PR gdb/24502:
3492 * ui-style.h (skip_ansi_escape): Update comment.
3493 * ui-file.h (class no_terminal_escape_file): New class.
3494 * ui-file.c (no_terminal_escape_file::write)
3495 (no_terminal_escape_file::puts): New methods.
3496 * cli/cli-logging.c (handle_redirections): Use
3497 no_terminal_escape_file.
3498
52ce35e2
TT
34992019-06-14 Tom Tromey <tromey@adacore.com>
3500
3501 * NEWS: Move convenience variable news above Python news.
3502
73cc7272
TT
35032019-06-14 Tom Tromey <tom@tromey.com>
3504
3505 * gnulib: Move directory to top-level.
3506 * configure.ac: Don't configure gnulib.
3507 * configure: Rebuild.
3508 * common/common-defs.h: Use new path to gnulib.
3509 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3510 (GNULIB_H): Remove.
3511 (INCGNU): Look in new gnulib location.
3512 (HFILES_NO_SRCDIR): Remove gnulib files.
3513 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3514 (generated_files): Remove GNULIB_H.
3515 ($(LIBGNU), all-lib): Remove targets.
3516 (distclean): Don't mention GNULIB_BUILDDIR.
3517 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3518
f5686554
TT
35192019-06-14 Tom Tromey <tromey@adacore.com>
3520
3521 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3522 Warn if symbol file does not provide any symbols.
3523
a0c1ffed
TT
35242019-06-14 Tom Tromey <tromey@adacore.com>
3525
3526 * source.c (find_and_open_source): Respect basenames_may_differ.
3527
7c39e397
AB
35282019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3529
3530 * annotate.c (annotate_breakpoints_invalid): Make use of
3531 scoped_restore_terminal_state.
3532 (annotate_frames_invalid): Likewise.
3533
f411722c
TT
35342019-06-14 Tom Tromey <tromey@adacore.com>
3535
3536 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3537 allow assignment to an internalvar.
3538
4268ec18
TT
35392019-06-14 Tom Tromey <tromey@adacore.com>
3540
3541 * ada-lex.l: Allow "_" in attribute names.
3542
abdb711e
TT
35432019-06-14 Tom Tromey <tromey@adacore.com>
3544
3545 PR gdb/24653:
3546 * regcache.c (registers_changed): Don't call alloca.
3547 * top.c (execute_command): Don't call alloca.
3548
4c048731
PA
35492019-06-13 Pedro Alves <palves@redhat.com>
3550
3551 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3552 'expression'. When parsing an expression, error out if there's
3553 junk after "unlimited".
3554 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3555 (do_set_command): Adjust calls to is_unlimited_literal.
3556
66eb1ed3
PA
35572019-06-13 Pedro Alves <palves@redhat.com>
3558
3559 * compile/compile.c (make_compile_options_def_group): Add braces
3560 around array_view initializer.
3561 * thread.c (make_thread_apply_all_options_def_group)
3562 (make_thread_apply_all_options_def_group): Likewise.
3563
3345721a
PA
35642019-06-13 Pedro Alves <palves@redhat.com>
3565
3566 * NEWS (New commands): Mention "maint test-options
3567 require-delimiter", "maint test-options unknown-is-error", "maint
3568 test-options unknown-is-operand" and "maint show
3569 test-options-completion-result".
3570 (New command options, command completion): New section.
3571 (Completion improvements): New section.
3572 Mention that you can abbreviate "unlimited".
3573
6206060d
PA
35742019-06-13 Pedro Alves <palves@redhat.com>
3575
3576 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3577 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3578 * unittests/cli-utils-selftests.c (test_parse_flags)
3579 (test_parse_flags_qcs): Delete.
3580 (test_cli_utils): Don't call deleted functions.
3581
6665660a
PA
35822019-06-13 Pedro Alves <palves@redhat.com>
3583
3584 * thread.c: Include "cli/cli-option.h".
3585 (tp_array_compar_ascending): Global.
3586 (tp_array_compar): Delete function.
3587 (tp_array_compar_ascending, tp_array_compar_descending): New
3588 functions.
3589 (ascending_option_def, qcs_flag_option_def)
3590 (thr_qcs_flags_option_defs)
3591 (make_thread_apply_all_options_def_group)
3592 (make_thread_apply_options_def_group): New.
3593 (thread_apply_all_command): Use gdb::option::process_options.
3594 (thread_apply_command_completer)
3595 (thread_apply_all_command_completer): New.
3596 (thread_apply_command): Use gdb::option::process_options.
3597 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3598 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3599 to generate help text of "thread apply". Adjust "taas"'s help.
3600 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3601 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3602
f7e13587
PA
36032019-06-13 Pedro Alves <palves@redhat.com>
3604
3605 * thread.c (thread_apply_command): Check for invalid TID with
3606 isdigit instead of !isalpha.
3607
5d707134
PA
36082019-06-13 Pedro Alves <palves@redhat.com>
3609
3610 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3611 (validate_flags_qcs): New.
3612 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3613 (validate_flags_qcs): Declare.
3614 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3615 (make_frame_apply_options_def_group): New.
3616 (frame_apply_command_count): Process options with
3617 gdb::option::process_options.
3618 (frame_apply_completer): New.
3619 (frame_apply_level_completer, frame_apply_all_completer)
3620 (frame_apply_completer): New.
3621 (_initialize_stack): Update help of "frame apply", "frame apply
3622 level", "frame apply all" and "faas" to mention supported options
3623 and install command completers.
3624 * stack.h (frame_apply_all_completer): Declare.
3625 * thread.c: Include "stack.h".
3626 (tfaas_command): Add "--".
3627 (_initialize_thread): Update help "tfaas" to mention supported
3628 options and install command completer.
3629
272d4594
PA
36302019-06-13 Pedro Alves <palves@redhat.com>
3631
3632 * completer.c (complete_nested_command_line): New.
3633 (gdb_completion_word_break_characters_throw): Add assertion.
3634 * completer.h (complete_nested_command_line): Declare.
3635
90a1ef87
PA
36362019-06-13 Pedro Alves <palves@redhat.com>
3637
3638 * stack.c (parse_backtrace_qualifiers): New.
3639 (backtrace_command): Use it.
3640 (backtrace_command_completer): Complete on qualifiers.
3641
d4c16835
PA
36422019-06-13 Pedro Alves <palves@redhat.com>
3643
3644 * frame.c: Include "cli/cli-option.h.
3645 (user_set_backtrace_options): New.
3646 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3647 Delete.
3648 (get_prev_frame): Adjust.
3649 (boolean_option_def, uinteger_option_def)
3650 (set_backtrace_option_defs): New.
3651 (_initialize_frame): Adjust and use
3652 gdb::option::add_setshow_cmds_for_options to install "set
3653 backtrace past-main" and "set backtrace past-entry".
3654 * frame.h: Include "cli/cli-option.h".
3655 (struct frame_print_options): Forward declare.
3656 (print_frame_arguments_all, print_frame_arguments_scalars)
3657 (print_frame_arguments_none): Declare.
3658 (print_entry_values): Delete declaration.
3659 (struct frame_print_options, user_frame_print_options): New.
3660 (struct set_backtrace_options): New.
3661 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3662 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3663 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3664 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3665 (list_args_or_locals): Add frame_print_options parameter.
3666 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3667 * python/py-framefilter.c (enumerate_args): Pass down
3668 USER_FRAME_PRINT_OPTIONS.
3669 * stack.c: Include "cli/cli-option.h".
3670 (print_frame_arguments_all, print_frame_arguments_scalars)
3671 (print_frame_arguments_none): Declare.
3672 (print_raw_frame_arguments, print_entry_values): Delete.
3673 (user_frame_print_options): New.
3674 (boolean_option_def, enum_option_def, frame_print_option_defs):
3675 New.
3676 (struct backtrace_cmd_options): New.
3677 (bt_flag_option_def): New.
3678 (backtrace_command_option_defs): New.
3679 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3680 (print_frame_arg, read_frame_arg, print_frame_args)
3681 (print_frame_info, print_frame): Add frame_print_options parameter
3682 and use it.
3683 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3684 (backtrace_command_1): Add frame_print_options and
3685 backtrace_cmd_options parameters and use them.
3686 (make_backtrace_options_def_group): New.
3687 (backtrace_command): Process command options with
3688 gdb::option::process_options.
3689 (backtrace_command_completer): New.
3690 (_initialize_stack): Extend "backtrace"'s help to mention
3691 supported options. Install completer for "backtrace".
3692 Install some settings commands with add_setshow_cmds_for_options.
3693
2daf894e
PA
36942019-06-13 Pedro Alves <palves@redhat.com>
3695
3696 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3697 and that "set/show print raw frame-arguments" are now deprecated.
3698
3699 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3700 command.
3701 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3702 * stack.c (_initialize_stack): Install "set/show print
3703 raw-frame-arguments", and deprecate "set/show print raw
3704 frame-arguments".
3705 * valprint.c (_initialize_valprint): Deprecate "set/show print
3706 raw".
3707
e6ed716c
PA
37082019-06-13 Pedro Alves <palves@redhat.com>
3709
3710 * compile/compile.c (struct compile_options): New.
3711 (compile_flag_option_def, compile_command_option_defs)
3712 (make_compile_options_def_group): New.
3713 (compile_file_command): Handle options with
3714 gdb::option::process_options.
3715 (compile_file_command_completer): New function.
3716 (compile_code_command): Handle options with
3717 gdb::option::process_options.
3718 (compile_code_command_completer): New function.
3719 (_initialize_compiler): Install completers for "compile code" and
3720 "compile file". Mention available options in "compile code" and
3721 "compile code"'s help.
3722 * completer.c (advance_to_completion_word): New, factored out from
3723 ...
3724 (advance_to_expression_complete_word_point): ... this.
3725 (advance_to_filename_complete_word_point): New.
3726 * completer.h (advance_to_filename_complete_word_point): New
3727 declaration.
3728
7d8062de
PA
37292019-06-13 Pedro Alves <palves@redhat.com>
3730
3731 * compile/compile.c: Include "cli/cli-option.h".
3732 (compile_print_value): Scope data pointer is now a
3733 value_print_options pointer; adjust.
3734 (compile_print_command): Process options. Scope data pointer is
3735 now a value_print_options pointer; adjust.
3736 (_initialize_compile): Update "compile print"'s help to include
3737 supported options. Install a completer for "compile print".
3738 * cp-valprint.c (show_vtblprint, show_objectprint)
3739 (show_static_field_print): Delete.
3740 (_initialize_cp_valprint): Don't install "set print
3741 static-members", "set print vtbl", "set print object" here.
3742 * printcmd.c: Include "cli/cli-option.h" and
3743 "common/gdb_optional.h".
3744 (print_command_parse_format): Rework to fill in a
3745 value_print_options instead of a format_data.
3746 (print_value): Change parameter type from format_data pointer to
3747 value_print_options reference. Adjust.
3748 (print_command_1): Process options. Adjust to pass down a
3749 value_print_options.
3750 (print_command_completer): New.
3751 (_initialize_printcmd): Install print_command_completer as
3752 handle_brkchars completer for the "print" command. Update
3753 "print"'s help to include supported options.
3754 * valprint.c: Include "cli/cli-option.h".
3755 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3756 here from cp-valprint.c.
3757 (boolean_option_def, uinteger_option_def)
3758 (value_print_option_defs, make_value_print_options_def_group):
3759 New. Use gdb::option::add_setshow_cmds_for_options to install
3760 "set print elements", "set print null-stop", "set print repeats",
3761 "set print pretty", "set print union", "set print array", "set
3762 print address", "set print symbol", "set print array-indexes".
3763 * valprint.h: Include <string> and "cli/cli-option.h".
3764 (make_value_print_options_def_group): Declare.
3765 (print_value): Change parameter type from format_data pointer to
3766 value_print_options reference.
3767 (print_command_completer): Declare.
3768
9d0faba9
PA
37692019-06-13 Pedro Alves <palves@redhat.com>
3770
3771 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3772 (COMMON_SFILES): Add maint-test-settings.c.
3773 * cli/cli-decode.c (boolean_enums): New global, factored out from
3774 ...
3775 (add_setshow_boolean_cmd): ... here.
3776 * cli/cli-decode.h (boolean_enums): Declare.
3777 * cli/cli-option.c: New file.
3778 * cli/cli-option.h: New file.
3779 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3780 factored out from ...
3781 (parse_cli_boolean_value(const char *)): ... this.
3782 (is_unlimited_literal): Change parameter type to pointer to
3783 pointer. Adjust and advance ARG pointer.
3784 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3785 (parse_cli_var_enum): New, factored out from ...
3786 (do_set_command): ... this. Adjust.
3787 * cli/cli-setshow.h (parse_cli_boolean_value)
3788 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3789 (parse_cli_var_enum): Declare.
3790 * cli/cli-utils.c: Include "cli/cli-option.h".
3791 (get_ulongest): New.
3792 * cli/cli-utils.h (get_ulongest): Declare.
3793 (check_for_argument): New overloads.
3794 * maint-test-options.c: New file.
3795
2c722807
PA
37962019-06-13 Pedro Alves <palves@redhat.com>
3797
3798 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3799 parse a range if "-" is at the end of the string.
3800
dee7b4c8
PA
38012019-06-13 Pedro Alves <palves@redhat.com>
3802
3803 * cli/cli-setshow.c (parse_auto_binary_operation)
3804 (parse_cli_boolean_value): Don't allow "o".
3805
dca0f6c0
PA
38062019-06-13 Pedro Alves <palves@redhat.com>
3807
3808 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3809 * NEWS: Mention maint test-settings KIND.
3810 * maint-test-settings.c: New file.
3811
597bf39d
PA
38122019-06-13 Pedro Alves <palves@redhat.com>
3813
3814 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3815 completer.
3816 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3817 "set" completers.
3818
48c410fb
PA
38192019-06-13 Pedro Alves <palves@redhat.com>
3820
3821 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3822 after item.
3823
93bcb043
PA
38242019-06-13 Pedro Alves <palves@redhat.com>
3825
3826 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3827
cbba3ecd
PA
38282019-06-13 Pedro Alves <palves@redhat.com>
3829
3830 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3831 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3832 call.
3833 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3834 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3835 calls.
3836 (check_for_argument): Skip spaces after argument.
3837
b9a3f842
PA
38382019-06-13 Pedro Alves <palves@redhat.com>
3839
3840 * thread.c (thread_apply_command): Adjust TID parsing.
3841 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3842 detected before end of string.
3843 (tid_is_in_list): Error out if LIST is invalid.
3844
3844e605
PA
38452019-06-13 Pedro Alves <palves@redhat.com>
3846
3847 * completer.c (complete_line_internal_1): Rewind completion word
3848 point.
3849 (completion_tracker::advance_custom_word_point_by): Change
3850 parameter type to int.
3851 * completer.h (completion_tracker::advance_custom_word_point_by):
3852 Likewise.
3853
00b56dbe
PA
38542019-06-13 Pedro Alves <palves@redhat.com>
3855
3856 * completer.c (advance_to_completion_word): Handle delimiters.
3857
d106773e
PA
38582019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3859
3860 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3861
08f10e02
TT
38622019-06-11 Tom Tromey <tom@tromey.com>
3863
3864 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3865 (xmalloc_failed): Move to alloc.c.
3866 * alloc.c: New file.
3867 * Makefile.in (COMMON_SFILES): Add alloc.c.
3868
1c7fe951
TT
38692019-06-11 Tom Tromey <tom@tromey.com>
3870
3871 * nat/linux-waitpid.c: Don't include server.h.
3872 (linux_debug): Remove.
3873 (my_waitpid): Update.
3874
89549d7f
TT
38752019-06-11 Tom Tromey <tromey@adacore.com>
3876
3877 * infcall.c (_initialize_infcall): Remove trailing newline from
3878 help.
3879 * user-regs.c (_initialize_user_regs): Remove trailing newline
3880 from help.
3881 * typeprint.c (_initialize_typeprint): Remove trailing newline
3882 from help.
3883 * reverse.c (_initialize_reverse): Remove trailing newlines from
3884 help.
3885 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3886 from help.
3887 * language.c (add_set_language_command): Remove trailing newline
3888 from help.
3889 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3890 help.
3891 * disasm.c (_initialize_disasm): Remove trailing newline from
3892 help.
3893 * top.c (init_main): Remove trailing newline from help.
3894 * interps.c (_initialize_interpreter): Remove trailing newline
3895 from help.
3896 * btrace.c (_initialize_btrace): Remove trailing newlines from
3897 help.
3898 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3899 from help.
3900 * python/python.c (_initialize_python): Remove trailing newline
3901 from help.
3902 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3903 help.
3904 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3905 from help. Reformat some text.
3906 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3907 from help.
3908 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3909 newline from help.
3910
86108c13
TT
39112019-06-11 Tom Tromey <tromey@adacore.com>
3912
3913 * darwin-nat.c (darwin_decode_exception_message)
3914 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3915
a7067863
AB
39162019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3917
3918 * valops.c (value_slice): Check for not allocated or not
3919 associated values.
3920
9ab08412
TV
39212019-06-10 Tom de Vries <tdevries@suse.de>
3922
3923 PR gdb/24618
3924 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3925 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3926 invalid.
3927
f19e22e9
TV
39282019-06-10 Tom de Vries <tdevries@suse.de>
3929
3930 PR gdb/24611
3931 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3932 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3933
e99f9db0
TV
39342019-06-10 Tom de Vries <tdevries@suse.de>
3935
3936 PR symtab/24545
3937 * symtab.c (struct demangled_name_entry): Add language field.
3938 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3939 static minimal symbol". Set and use language field.
3940
9bf7038b
TT
39412019-06-10 Tom Tromey <tromey@adacore.com>
3942
3943 * ada-lang.c (_initialize_ada_language): Update help text.
3944
422186a9
TT
39452019-06-10 Tom Tromey <tromey@adacore.com>
3946
3947 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3948 with a newline.
3949 * guile/guile.c (handle_boot_error): Don't end warning with a
3950 newline.
3951 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3952 warning with a newline.
3953 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3954 newline.
3955 (s12z_frame_cache): Likewise.
3956 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3957 a newline.
3958 * solib-svr4.c (disable_probes_interface): Don't end warning with
3959 a newline.
3960 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3961 newline.
3962 * python/python.c (do_finish_initialization): Don't end warning
3963 with a newline.
3964
25ce02ee
TT
39652019-06-10 Tom Tromey <tom@tromey.com>
3966
3967 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3968 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3969 gdbpy_enter.
3970
caa429d8
TT
39712019-06-10 Tom Tromey <tromey@adacore.com>
3972
3973 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3974 data.
3975 (elf_new_init): Don't call stabsread_new_init.
3976 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3977 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3978 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3979
81873cc8
TV
39802019-06-10 Tom de Vries <tdevries@suse.de>
3981
3982 PR symtab/16264
3983 PR symtab/24517
3984 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3985
4fa0265e
РИ
39862019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3987
3988 * source.c (find_and_open_source): Also rewrite relative file
3989 names.
3990
1a3da2cd
AB
39912019-04-26 Amos Bird <amosbird@gmail.com>
3992
3993 * annotate.c (annotate_thread_exited): Add "thread-exited"
3994 annotation.
3995
3847a7bf
TT
39962019-06-06 Tom Tromey <tromey@adacore.com>
3997
3998 * maint.h (class scoped_command_stats): Use
3999 DISABLE_COPY_AND_ASSIGN.
4000 <print_time>: New method.
4001 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4002 print_time.
4003 (scoped_command_stats::print_time): New method.
4004
312617a3
AB
40052019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4006
4007 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4008 instructions of lengths 6 or 8 bytes.
4009
b02f78f9
PA
40102019-06-04 Pedro Alves <palves@redhat.com>
4011
4012 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4013
4014 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4015 * breakpoint.c (condition_completer): Likewise.
4016 * cli/cli-dump.c (scan_expression): Likewise.
4017 * common/filestuff.c (mkdir_recursive): Likewise.
4018 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4019 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4020 (gdb_abspath): Likewise.
4021 * compile/compile-cplus-types.c
4022 (compile_cplus_instance::decl_name): Likewise.
4023 * completer.c (complete_explicit_location):
4024 (signal_completer, reg_or_group_completer_1): Likewise.
4025 * cp-support.c (cp_remove_params_if_any): Likewise.
4026 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4027 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4028 * infcmd.c (strip_bg_char): Likewise.
4029 * linespec.c (copy_token_string): Likewise.
4030 * mi/mi-main.c (output_cores): Likewise.
4031 * psymtab.c (psymtab_search_name):
4032 * symfile.c (test_set_ext_lang_command): Likewise.
4033 * target.c (target_fileio_read_stralloc): Likewise.
4034 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4035 * value.c (complete_internalvar): Likewise.
4036
e1f2e1a2
CB
40372019-06-04 Christian Biesinger <cbiesinger@google.com>
4038
4039 Add objfile property to gdb.Type.
d3238f7d
PA
4040 * NEWS: Mention Python API addition.
4041 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4042
e664d728
PW
40432019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4044
4045 * NEWS: Mention the new set|show style [title|highlight].
4046 Mention changes to "show style", "help" and "apropos".
4047
66d8c862
PW
40482019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4049
4050 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4051 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4052 instead of print_help_for_command.
4053 (print_doc_of_command): New function.
4054 (help_list): Add 'apropos -v word' suggestion.
4055 (print_help_for_command): Style the command name using title style.
4056 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4057 (_initialize_cli_cmds): Describe -v in apropos_command help.
4058
9303eb2f
PW
40592019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4060
4061 * cli/cli-style.h (cli_style_option): Add name in constructor,
4062 add m_name class member, add constructor with intensity,
4063 add name class function.
4064 (cli_style_option::add_setshow_commands): Remove name argument.
4065 (highlight_style, title_style): New styles.
4066 * cli/cli-style.c (do_show): New function that shows a style
4067 characteristic styling the style name with itself.
4068 (set_style_name): New function.
4069 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4070 Update all callers according to the changes in cli/cli-style.h.
4071 * utils.h (fputs_highlighted): New function.
4072 * utils.c (fputs_highlighted): Likewise.
4073
e2c52041
PW
40742019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4075
4076 * NEWS: Mention new pipe command and new convenience variables.
4077
947d3946
PW
40782019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4079
4080 * cli/cli-cmds.c (pipe_command): New function.
4081 (_initialize_cli_cmds): Call add_com for pipe_command.
4082 Define | as an alias for pipe.
4083 (exit_status_set_internal_vars): New function.
4084 (shell_escape): Call exit_status_set_internal_vars.
4085 cli/cli-decode.c (find_command_name_length): Recognize | as
4086 a single character command.
4087
b8fd0918
PW
40882019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4089
4090 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4091 top.c (execute_command_to_ui_file): New function, mostly a copy
4092 of execute_command_to_string.
4093 (execute_command_to_string): Implement by calling
4094 execute_command_to_ui_file.
4095
68bb5386
PW
40962019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4097
4098 * top.h (saved_command_line): Remove declaration.
4099 * top.c (previous_saved_command_line, previous_repeat_arguments):
4100 New variables.
4101 (saved_command_line): Make static, define together with other
4102 'repeat variables'.
4103 (dont_repeat): Clear repeat_arguments.
4104 (repeat_previous, get_saved_command_line, save_command_line):
4105 New functions.
4106 (gdb_init): Initialize saved_command_line
4107 and previous_saved_command_line.
4108 * main.c (captured_main_1): Remove saved_command_line initialization.
4109 * event-top.c (handle_line_of_input): Update to use
4110 the new 'repeat' related functions instead of direct access to
4111 saved_command_line.
4112 * command.h (repeat_previous, get_saved_command_line,
4113 save_command_line): New declarations.
4114 (dont_repeat): Add comment.
4115
bfcdb852
TT
41162019-05-30 Tom Tromey <tromey@adacore.com>
4117
4118 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4119 Fix comment.
4120 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4121
0ef209f2
JV
41222019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4123
4124 PR cli/24587
4125 * completer.c (complete): Initialize variable word.
4126
955b06fa
SDJ
41272019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4128
4129 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4130 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4131 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4132 'body' is NULL to the outter 'if', protecting the '!is_define'
4133 situation as well.
4134
fa9c3fa0
TT
41352019-05-29 Tom Tromey <tromey@adacore.com>
4136
4137 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4138 (dwarf_unknown): New function.
4139 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4140 (dwarf_type_encoding_name): Use dwarf_unknown.
4141
4330d61d
TT
41422019-05-29 Tom Tromey <tromey@adacore.com>
4143
4144 PR c++/20020:
4145 * cp-valprint.c (cp_print_value_fields): Call
4146 cp_print_static_field inside "try".
4147
33a6bc35
TT
41482019-05-29 Tom Tromey <tromey@adacore.com>
4149
4150 * inflow.c (struct terminal_info): Add default operator=.
4151 * configure: Rebuild.
4152 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4153 -Wdeprecated-copy-dtor, -Wredundant-move.
4154
000439d5
TT
41552019-05-29 Tom Tromey <tromey@adacore.com>
4156
4157 * NEWS: Add entry.
4158 * infcmd.c (print_return_value_1): Handle finish_print
4159 option.
4160 (show_print_finish): New function.
4161 (_initialize_infcmd): Add "set/show print finish" commands.
4162 * valprint.c (user_print_options): Initialize new member.
4163 * valprint.h (struct value_print_options) <finish_print>: New
4164 member.
4165
c0e70c62
TT
41662019-05-28 Tom Tromey <tromey@adacore.com>
4167
4168 * ada-lang.c (ada_remove_Xbn_suffix)
4169 (find_old_style_renaming_symbol)
4170 (parse_old_style_renaming): Remove.
4171 (ada_find_renaming_symbol): Don't call
4172 find_old_style_renaming_symbol.
4173 (ada_is_renaming_symbol): Rename from
4174 ada_find_renaming_symbol. Remove "block" parameter. Return
4175 bool. Now static.
4176 (ada_read_var_value): Update and simplify.
4177 * ada-exp.y (write_var_or_type): Remove old code.
4178
766f8836
AH
41792019-05-28 Alan Hayward <alan.hayward@arm.com>
4180
4181 * event-top.c: Remove include comment.
4182 * inflow.c (class scoped_ignore_sigttou): Move from here...
4183 * inflow.h (class scoped_ignore_sigttou): ...to here.
4184 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4185 * top.c: Remove include comment.
4186
eb41253a
TT
41872019-05-27 Tom Tromey <tom@tromey.com>
4188
4189 * NEWS: Fix typo.
4190
4ca51187
TT
41912019-05-22 Tom Tromey <tromey@adacore.com>
4192
4193 * target.c (target_follow_exec): Constify parameter.
4194 * target-delegates.c: Rebuild.
4195 * remote.c (remote_target::follow_exec): Constify parameter.
4196 * infrun.c (follow_exec): Constify parameter.
4197 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4198 (target_follow_exec): Likewise.
4199
8fca4da0
AH
42002019-05-22 Alan Hayward <alan.hayward@arm.com>
4201
4202 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4203 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4204
b7060614
AH
42052019-05-22 Alan Hayward <alan.hayward@arm.com>
4206
4207 * NEWS: Add debugredirect and testsuite sections.
4208
0a5954bd
SC
42092019-05-22 Simon Cook <simon.cook@embecosm.com>
4210
4211 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4212 target descriptions using exclusively floating point register name
4213 aliases.
4214
dc42e902
AB
42152019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 PR gdb/18644:
4218 * f-lang.c (build_fortran_types): Handle the case where
4219 gdbarch_floatformat_for_type returns a nullptr.
4220
fb7806c7
TV
42212019-05-21 Tom de Vries <tdevries@suse.de>
4222
4223 PR cli/24587
4224 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4225
34d11c68
AB
42262019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4227
4228 PR gdb/18644:
4229 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4230 16-byte floats.
4231 * i386-tdep.c (i386_floatformat_for_type): Use
4232 floatformats_ia64_quad for the 16-byte floating point component
4233 within a fortran 32-byte complex number.
4234
122cf0f2
AB
42352019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4236
4237 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4238 delete default constructor.
4239 (find_partial_die): Update to return const struct.
4240 (partial_die_parent_scope): Move variable declaration into scope
4241 of its use and change its type to auto.
4242 (guess_partial_die_structure_name): Likewise.
4243 (partial_die_info::fixup): Likewise.
4244
33d0e35a
TT
42452019-05-17 Tom Tromey <tromey@adacore.com>
4246
4247 * source.c (find_and_open_source): Remove cast.
4248
a45575b0
TT
42492019-05-17 Tom Tromey <tromey@adacore.com>
4250
4251 * annotate.c (annotate_source): Make "filename" const.
4252 * annotate.h (annotate_source): Use const.
4253
81f47ac2
AH
42542019-05-17 Alan Hayward <alan.hayward@arm.com>
4255
4256 * disasm.c (set_disassembler_options): Send errors to stderr.
4257
ca1285d1
AH
42582019-05-17 Alan Hayward <alan.hayward@arm.com>
4259
4260 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4261 (cli_interp_base::set_logging): Check debug_redirect.
4262 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4263 * cli/cli-logging.c (debug_redirect): Add static variable.
4264 (pop_output_files): Add default param.
4265 (handle_redirections): Print debug setting.
4266 (show_logging_command): Likewise.
4267 (_initialize_cli_logging): Add debugredirect command.
4268 * interps.c (current_interp_set_logging): Add debug_redirect
4269 parameter.
4270 * interps.h (set_logging): Add debug_redirect parameter.
4271 (current_interp_set_logging): Likewise.
4272 * mi/mi-common.h: Likewise.
4273 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4274
42752019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4276 Tom Tromey <tromey@adacore.com>
4277
4278 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4279 directly.
4280 * cli/cli-interp.h (make_logging_output): Remove declaration.
4281 * cli/cli-logging.c (make_logging_output): Remove function.
4282 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4283 directly.
4284 * ui-file.c (tee_file::tee_file): Remove bools.
4285 (tee_file::~tee_file): Remove deletes.
4286 * ui-file.h (tee_file): Remove bools.
4287
26648588
JV
42882019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4289
4290 * mi/mi-cmds.h (mi_cmd_complete): New function.
4291 * mi/mi-main.c (mi_cmd_complete): Likewise.
4292 * mi/mi-cmds.c: Define new MI command -complete.
4293 * NEWS: Mention new -complete command.
4294
6e035501
JV
42952019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4296
4297 * completer.h (complete): New function.
4298 * completer.c (complete): Likewise.
4299 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4300 function defined in completer.h.
4301
7d0e2ece
JV
43022019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4303
e79be6e5 4304 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4305
fb816e8b
TV
43062019-05-17 Tom de Vries <tdevries@suse.de>
4307
4308 PR gdb/24094
4309 * dwarf2read.c (struct cu_partial_die_info): New struct.
4310 (find_partial_die): Return cu_partial_die_info.
4311 (partial_die_parent_scope, guess_partial_die_structure_name)
4312 (partial_die_info::fixup): Handle new return type of find_partial_die.
4313
677052f2
SDJ
43142019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4315
4316 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4317 "std::string", simplifying the algorithm.
4318
f3da9116
SDJ
43192019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4320
4321 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4322 (stap_static_probe_ops::get_probes): Likewise.
4323
f1bb75ab
SDJ
43242019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4325
4326 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4327 '-')" and "else if".
4328 (stap_parse_single_operand): Join checks for
4329 "gdbarch_stap_parse_special_token_p" and
4330 "gdbarch_stap_parse_special_token" in the same "if" statement.
4331 Invert check when verifying for operation on register
4332 displacement.
4333
3ca58cde
SDJ
43342019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4335
4336 * stap-probe.c (stap_get_opcode): Update comment.
4337 (stap_get_expected_argument_type): Likewise.
4338 (handle_stap_probe): Likewise.
4339
af2d9bee
SDJ
43402019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4341
4342 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4343 return type to 'bool'. Adjust comment. Use 'bool' when
4344 appropriate.
4345 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4346 * stap-probe.c (stap_parse_argument_1): Likewise.
4347 (stap_is_operator): Likewise.
4348 (stap_is_generic_prefix): Likewise.
4349 (stap_is_register_prefix): Likewise.
4350 (stap_is_register_indirection_prefix): Likewise.
4351 (stap_is_integer_prefix): Likewise.
4352 (stap_generic_check_suffix): Likewise.
4353 (stap_check_integer_suffix): Likewise.
4354 (stap_check_register_suffix): Likewise.
4355 (stap_check_register_indirection_suffix): Likewise.
4356 (stap_parse_register_operand): Likewise.
4357 (stap_parse_single_operand): Likewise.
4358 (stap_parse_argument_1): Likewise.
4359 (stap_probe::get_argument_count): Likewise.
4360 (stap_is_operator): Likewise.
4361
61c9c421
TT
43622019-05-16 Tom Tromey <tromey@adacore.com>
4363
4364 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4365 keyword to foreach.
4366
9ddc1af1
SM
43672019-05-15 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * linux-thread-db.c (try_thread_db_load_1): Change return type
4370 to bool.
4371 (try_thread_db_load): Likewise.
4372 (try_thread_db_load_from_pdir_1): Likewise.
4373 (try_thread_db_load_from_pdir): Likewise.
4374 (try_thread_db_load_from_sdir): Likewise.
4375 (try_thread_db_load_from_dir): Likewise.
4376 (thread_db_load_search): Likewise.
4377 (has_libpthread): Likewise.
4378 (thread_db_load): Likewise.
4379
7bede828
SDJ
43802019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4381
4382 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4383 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4384 NULL, and complain/return if that's the case.
4385
c5358db4
JD
43862019-05-15 John Darrington <john@darrington.wattle.id.au>
4387
4388 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4389 (advance, posn, abstract_read_memory): New functions.
4390 [struct mem_read_abstraction]: New struct.
4391 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4392
c408a94f
TT
43932019-05-14 Tom Tromey <tromey@adacore.com>
4394
4395 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4396 value is not lval_memory.
4397
e7bd7fba
TT
43982019-05-14 Tom Tromey <tromey@adacore.com>
4399
4400 * solib.c (info_sharedlibrary_command): Style the file name.
4401
a6d0f249
AH
44022019-05-14 Alan Hayward <alan.hayward@arm.com>
4403
4404 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4405 (aarch64_vnv_type): Likewise.
4406 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4407 * common/tdesc.c: Likewise.
4408 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4409 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4410 * features/aarch64-fpu.xml: Add ieee half view.
4411 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4412 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4413 * gdbtypes.h (struct builtin_type): Likewise.
4414 (struct objfile_type): Likewise.
4415
66b8bb74
SM
44162019-05-12 Paul Naert <paul.naert@polymtl.ca>
4417
4418 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4419 typo.
4420 * location.h (string_to_event_location): Likewise.
4421
21c219fd
JB
44222019-05-11 Joel Brobecker <brobecker@adacore.com>
4423
4424 GDB 8.3 released.
4425
13674803
SM
44262019-05-10 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4429 New variable declaration.
4430 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4431 New variable.
4432 (print_one_breakpoint): Use ui_out::test_flags and new global
4433 variable to compute use_fixed_output.
4434 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4435 Remove.
4436 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4437 (mi_multi_location_breakpoint_output_fixed): Remove.
4438 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4439 new variable.
4440 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4441 fix_multi_location_breakpoint_output flag if version >= 3.
4442 * ui-out.h (enum ui_out_flag)
4443 <fix_multi_location_breakpoint_output>: New enumerator.
4444
a9eac7f9
SM
44452019-05-10 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4448
71bed2db
TT
44492019-05-10 Tom Tromey <tromey@adacore.com>
4450
4451 * ada-lang.c (catch_ada_completer): New function.
4452 (_initialize_ada_language): Use it.
4453
24c54127
TT
44542019-05-10 Tom Tromey <tromey@adacore.com>
4455
4456 * thread.c (print_thread_info): Make "requested_threads" const.
4457 * gdbthread.h (print_thread_info): Make "requested_threads"
4458 const.
4459 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4460 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4461
7a102139
TT
44622019-05-08 Tom Tromey <tom@tromey.com>
4463
4464 * gdbtypes.c (objfile_type_data): Change type.
4465 (objfile_type, _initialize_gdbtypes): Update.
4466
924d79e2
TT
44672019-05-08 Tom Tromey <tom@tromey.com>
4468
4469 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4470 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4471 (_initialize_dwarf2_frame): Update.
4472
4c58e337
TT
44732019-05-08 Tom Tromey <tom@tromey.com>
4474
4475 * objc-lang.c (objc_objfile_data): Change type.
4476 (find_methods): Update.
4477 (_initialize_objc_lang): Remove.
4478
d772d2ab
TT
44792019-05-08 Tom Tromey <tom@tromey.com>
4480
4481 * stabsread.c (rs6000_builtin_type_data): Change type.
4482 (rs6000_builtin_type, _initialize_stabsread): Update.
4483
d11d83f4
TT
44842019-05-08 Tom Tromey <tom@tromey.com>
4485
4486 * mips-tdep.c (mips_pdr_data): Remove.
4487 (_initialize_mips_tdep): Update.
4488
9a73f0ad
TT
44892019-05-08 Tom Tromey <tom@tromey.com>
4490
4491 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4492 (hppa_init_objfile_priv_data, read_unwind_info)
4493 (find_unwind_entry, _initialize_hppa_tdep): Update.
4494
8127a2fa
TT
44952019-05-08 Tom Tromey <tom@tromey.com>
4496
4497 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4498 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4499 on obstack.
4500 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4501
91d3055d
TT
45022019-05-08 Tom Tromey <tom@tromey.com>
4503
4504 * mdebugread.c (basic_type_data): Change type.
4505 (basic_type, _initialize_mdebugread): Update.
4506
31930bd3
TT
45072019-05-08 Tom Tromey <tom@tromey.com>
4508
4509 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4510
bdb3ed9e
TT
45112019-05-08 Tom Tromey <tom@tromey.com>
4512
4513 * nto-tdep.c (nto_inferior_data_reg): Change type.
4514 (nto_inferior_data): Update.
4515 (nto_inferior_data_cleanup, nto_new_inferior_data)
4516 (_initialize_nto_tdep): Remove.
4517 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4518
f37b313d
TT
45192019-05-08 Tom Tromey <tom@tromey.com>
4520
4521 * ada-lang.c (struct ada_inferior_data): Add initializers.
4522 (ada_inferior_data): Change type.
4523 (ada_inferior_data_cleanup): Remove.
4524 (get_ada_inferior_data, ada_inferior_exit)
4525 (struct ada_pspace_data): Add initializers, destructor.
4526 (ada_pspace_data_handle): Change type.
4527 (get_ada_pspace_data): Update.
4528 (ada_pspace_data_cleanup): Remove.
4529
24699405
TT
45302019-05-08 Tom Tromey <tom@tromey.com>
4531
4532 * coffread.c (struct coff_symfile_info): Add initializers.
4533 (coff_objfile_data_key): Move lower. Change type.
4534 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4535 Update.
4536 (coff_free_info): Remove.
4537
d4e05d2f
TT
45382019-05-08 Tom Tromey <tom@tromey.com>
4539
4540 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4541 (fbsd_pspace_data_handle): Move lower. Change type.
4542 (get_fbsd_pspace_data): Update.
4543 (fbsd_pspace_data_cleanup): Remove.
4544 (_initialize_fbsd_tdep): Update.
4545
14ef6690
TT
45462019-05-08 Tom Tromey <tom@tromey.com>
4547
4548 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4549 (get_ada_tasks_pspace_data): Update.
4550 (ada_tasks_pspace_data_cleanup): Remove.
4551 (_initialize_tasks): Update.
4552 (ada_tasks_inferior_data_handle): Change type.
4553 (get_ada_tasks_inferior_data): Update.
4554 (ada_tasks_inferior_data_cleanup): Remove.
4555 (struct ada_tasks_pspace_data): Add initializers.
4556
814cf43a
TT
45572019-05-08 Tom Tromey <tom@tromey.com>
4558
4559 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4560 * symfile-debug.c (debug_sym_get_probes): Change type.
4561 * stap-probe.c (handle_stap_probe):
4562 (stap_static_probe_ops::get_probes): Change type.
4563 * probe.h (class static_probe_ops) <get_probes>: Change type.
4564 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4565 (parse_probes_in_pspace): Update.
4566 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4567 Update.
4568 (any_static_probe_ops::get_probes): Change type.
4569 * elfread.c (elfread_data): New typedef.
4570 (probe_key): Change type.
4571 (elf_get_probes): Likewise. Update.
4572 (probe_key_free): Remove.
4573 (_initialize_elfread): Update.
4574 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4575 Change type.
4576 (dtrace_process_dof_probe, dtrace_process_dof)
4577 (dtrace_static_probe_ops::get_probe): Change type.
4578
02dc647e
TT
45792019-05-08 Tom Tromey <tom@tromey.com>
4580
4581 * xcoffread.c (struct xcoff_symfile_info): Rename from
4582 coff_symfile_info. Add initializers.
4583 (xcoff_objfile_data_key): Move lower. Change type.
4584 (XCOFF_DATA): Rewrite.
4585 (xcoff_free_info): Remove.
4586 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4587 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4588 (xcoff_initial_scan): Update.
4589
09232438
TT
45902019-05-08 Tom Tromey <tom@tromey.com>
4591
4592 * solib-svr4.c (struct svr4_info): Add initializers and
4593 destructor.
4594 <probes_table>: Now an htab_up.
4595 (solib_svr4_pspace_data): Change type.
4596 (free_probes_table): Simplify.
4597 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4598 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4599 (probes_table_remove_objfile_probes, register_solib_event_probe)
4600 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4601 (_initialize_svr4_solib): Update.
4602
7b4a314f
TT
46032019-05-08 Tom Tromey <tom@tromey.com>
4604
4605 * remote.c (remote_pspace_data): Change type.
4606 (remote_pspace_data_cleanup): Remove.
4607 (get_remote_exec_file, set_pspace_remote_exec_file)
4608 (_initialize_remote): Update.
4609
51d3063a
TT
46102019-05-08 Tom Tromey <tom@tromey.com>
4611
4612 * breakpoint.c (breakpoint_objfile_key): Change type.
4613 (get_breakpoint_objfile_data): Update.
4614 (free_breakpoint_objfile_data): Remove.
4615 (_initialize_breakpoint): Update.
4616
89fb8848
TT
46172019-05-08 Tom Tromey <tom@tromey.com>
4618
4619 * linux-tdep.c (struct linux_info): Add initializers.
4620 (linux_inferior_data): Move. Change type.
4621 (invalidate_linux_cache_inf): Update.
4622 (linux_inferior_data_cleanup): Remove.
4623 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4624
e9b89e2d
TT
46252019-05-08 Tom Tromey <tom@tromey.com>
4626
4627 * auxv.c (auxv_inferior_data): Move. Change type.
4628 (auxv_inferior_data_cleanup): Remove.
4629 (invalidate_auxv_cache_inf): Rewrite.
4630 (get_auxv_inferior_data, _initialize_auxv): Update.
4631
8c42777c
TT
46322019-05-08 Tom Tromey <tom@tromey.com>
4633
4634 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4635 (symfile_debug_objfile_data_key): Change type.
4636 (symfile_debug_installed, debug_qf_has_symbols)
4637 (debug_qf_find_last_source_symtab)
4638 (debug_qf_forget_cached_source_info)
4639 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4640 (debug_qf_print_stats, debug_qf_dump)
4641 (debug_qf_expand_symtabs_for_function)
4642 (debug_qf_expand_all_symtabs)
4643 (debug_qf_expand_symtabs_with_fullname)
4644 (debug_qf_map_matching_symbols)
4645 (debug_qf_expand_symtabs_matching)
4646 (debug_qf_find_pc_sect_compunit_symtab)
4647 (debug_qf_map_symbol_filenames)
4648 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4649 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4650 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4651 (debug_sym_read_linetable, debug_sym_relocate): Update.
4652 (symfile_debug_free_objfile): Remove.
4653 (install_symfile_debug_logging, _initialize_symfile_debug):
4654 Update.
4655
5bfd760d
TT
46562019-05-08 Tom Tromey <tom@tromey.com>
4657
4658 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4659 allocate_on_obstack.
4660 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4661 (get_dwarf2_per_objfile): Update.
4662 (set_dwarf2_per_objfile): Remove.
4663 (dwarf2_has_info, dwarf2_get_section_info): Update.
4664 (dwarf2_free_objfile): Remove.
4665 (_initialize_dwarf2_read): Update.
4666
e85e19b4
TT
46672019-05-08 Tom Tromey <tom@tromey.com>
4668
4669 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4670 initializers.
4671 <unsupported_script_warning_printed,
4672 script_not_found_warning_printed>: Now bool.
4673 (auto_load_pspace_data): Change type.
4674 (~auto_load_pspace_info): Rename from
4675 auto_load_pspace_data_cleanup.
4676 (get_auto_load_pspace_data, init_loaded_scripts_info)
4677 (clear_section_scripts, maybe_print_unsupported_script_warning)
4678 (maybe_print_script_not_found_warning, _initialize_auto_load):
4679 Update.
4680
f6aa7436
TT
46812019-05-08 Tom Tromey <tom@tromey.com>
4682
4683 * objfiles.c (objfile_pspace_info): Add destructor and
4684 initializers.
4685 (objfiles_pspace_data): Change type.
4686 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4687 (get_objfile_pspace_data): Update.
4688 (objfiles_bfd_data): Change type.
4689 (get_objfile_bfd_data): Update.
4690 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4691
6ae614f6
TT
46922019-05-08 Tom Tromey <tom@tromey.com>
4693
4694 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4695 Change type.
4696 (get_catch_syscall_inferior_data): Update.
4697 (catch_syscall_inferior_data_cleanup): Remove.
4698 (_initialize_break_catch_syscall): Update.
4699
6509b8eb
TT
47002019-05-08 Tom Tromey <tom@tromey.com>
4701
4702 * inflow.c (struct terminal_info): Add destructor and
4703 initializers.
4704 (inflow_inferior_data): Change type.
4705 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4706 (get_inflow_inferior_data, inflow_inferior_exit)
4707 (swap_terminal_info, _initialize_inflow): Update.
4708
35632941
TT
47092019-05-08 Tom Tromey <tom@tromey.com>
4710
4711 * target-dcache.c (target_dcache_cleanup): Remove.
4712 (target_dcache_aspace_key): Change type.
4713 (target_dcache_init_p, target_dcache_invalidate)
4714 (target_dcache_get, target_dcache_get_or_init)
4715 (_initialize_target_dcache): Update.
4716 * dcache.h (struct dcache_deleter): New.
4717
3017b94d
TT
47182019-05-08 Tom Tromey <tom@tromey.com>
4719
4720 * symtab.c (struct symbol_cache): Add destructor and
4721 initializers.
4722 (symbol_cache_key): Move. Change type.
4723 (make_symbol_cache, free_symbol_cache): Remove.
4724 (get_symbol_cache): Update.
4725 (symbol_cache_cleanup): Remove.
4726 (ALL_PSPACES, symbol_cache_flush)
4727 (maintenance_print_symbol_cache)
4728 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4729 Update.
4730
a32ad8c5
TT
47312019-05-08 Tom Tromey <tom@tromey.com>
4732
4733 * symtab.c (struct main_info): Add destructor and initializers.
4734 (main_progspace_key): Move. Change type.
4735 (get_main_info): Update.
4736 (main_info_cleanup): Remove.
4737 (_initialize_symtab): Update.
4738
5f6e90a0
TT
47392019-05-08 Tom Tromey <tom@tromey.com>
4740
4741 * registry.h (DECLARE_REGISTRY): Define the _key class.
4742
1bd0c6e4
AB
47432019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4744
4745 * NEWS: Merge two 'New commands' sections.
4746
2228ef77
XR
47472019-05-08 Joel Brobecker <brobecker@adacore.com>
4748
4749 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4750 parameter and use Ada language definition instead.
4751 (ada_val_print_ptr): Remove unused language parameter.
4752 (ada_val_print_num): Remove language parameter and use Ada language
4753 definition instead.
4754 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4755 parameter.
4756 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4757 parameter and use Ada language definition instead.
4758 (ada_val_print_1): Update all ada_val_print_xxx calls.
4759 Remove language parameter.
4760 (ada_val_print): Update ada_val_print_1 call.
4761
60fcc1c3
TT
47622019-05-08 Tom Tromey <tromey@adacore.com>
4763
4764 * remote.c (remote_hw_watchpoint_limit)
4765 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4766 Now static.
4767
ed2b7c17
TT
47682019-05-08 Tom Tromey <tromey@adacore.com>
4769
4770 * maint.c (_initialize_maint_cmds): Move initialization code to
4771 remote.c.
4772 (watchdog, show_watchdog): Move to remote.c.
4773 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4774 "watchdog" static.
4775 (_initialize_remote): Move initialization code from maint.c.
4776 * defs.h (watchdog): Don't declare.
4777
b0be6c91
TT
47782019-05-08 Tom Tromey <tromey@adacore.com>
4779
4780 * tui/tui-interp.c: Include main.h.
4781 * interps.c: Include main.h.
4782 * main.h (interpreter_p): Declare.
4783 * defs.h (interpreter_p): Don't declare.
4784
587ee17b
TT
47852019-05-08 Tom Tromey <tromey@adacore.com>
4786
4787 * dwarf2loc.c: Include dwarf2read.h.
4788 * defs.h (read_unsigned_leb128): Don't declare.
4789 * dwarf2read.h (read_unsigned_leb128): Declare.
4790
ca1df239
TT
47912019-05-08 Tom Tromey <tromey@adacore.com>
4792
4793 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4794 method.
4795
99f20f08
TT
47962019-05-08 Tom Tromey <tromey@adacore.com>
4797
4798 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4799 when no wrap column is set.
4800
80e55b13
TT
48012019-05-08 Tom Tromey <tromey@adacore.com>
4802
4803 * c-lang.c (c_get_string): Handle non-C-style arrays.
4804
9d3421af
TT
48052019-05-08 Tom Tromey <tromey@adacore.com>
4806
4807 * typeprint.c (print_offset_data::update): Print the bit offset,
4808 not the number of bits remaining.
4809
844333e2
TT
48102019-05-08 Tom Tromey <tromey@adacore.com>
4811
4812 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4813 padding at end of comment.
4814
988915ee
TT
48152019-05-08 Tom Tromey <tromey@adacore.com>
4816
4817 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4818 Compare main types.
4819
26bfd823
TT
48202019-05-06 Tom Tromey <tom@tromey.com>
4821
4822 * common/scoped_mmap.c: Include common-defs.h.
4823 * common/scoped_mmap.h: Don't include config.h.
4824
89055eaa
TT
48252019-05-04 Tom Tromey <tom@tromey.com>
4826
4827 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4828 (struct aarch64_call_info): Add initializers.
4829 <si>: Now a std::vector.
4830 (pass_on_stack, aarch64_push_dummy_call): Update.
4831
5da01df5
TT
48322019-05-04 Simon Marchi <simon.marchi@efficios.com>
4833 Tom Tromey <tom@tromey.com>
4834
4835 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4836 (ppc_threads): Now a std::vector. Now static.
4837 (hwdebug_find_thread_points_by_tid)
4838 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4839 Update.
4840
fbdf05a1
TT
48412019-05-04 Tom Tromey <tom@tromey.com>
4842
4843 * arc-tdep.c (arc_tdesc_init): Return bool.
4844
06d16ec9
TT
48452019-05-04 Tom Tromey <tom@tromey.com>
4846
4847 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4848 Use gdb_assert_not_reached.
4849
9c056022
TT
48502019-05-04 Tom Tromey <tom@tromey.com>
4851
4852 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4853 "false".
4854
fa9c2a59
TT
48552019-05-04 Tom Tromey <tom@tromey.com>
4856
4857 * arc-tdep.c (arc_tdesc_init): Use bool.
4858
e2eb806a
TT
48592019-05-04 Tom Tromey <tom@tromey.com>
4860
4861 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4862
6fe87677
TT
48632019-05-04 Tom Tromey <tom@tromey.com>
4864
4865 * cli/cli-cmds.c (valid_command_p): Return bool.
4866
7f008c9e
TT
48672019-05-04 Tom Tromey <tom@tromey.com>
4868
4869 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4870 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4871
b6484282
RT
48722019-05-04 Raul Tambre <raul@tambre.ee>
4873
4874 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4875 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4876 operator for comparison.
4877
af97b416
TT
48782019-05-04 Tom Tromey <tom@tromey.com>
4879
4880 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4881 (lookup_partial_symbol, print_partial_symbols)
4882 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4883 (psymbol_compare): Update.
4884 (add_psymbol_to_bcache): Clear the entire psymbol.
4885 (maintenance_check_psymtabs): Update.
4886 * psympriv.h (struct partial_symbol): Don't derive from
4887 general_symbol_info.
4888 <obj_section, unrelocated_address, address,
4889 set_unrelocated_address>: Update.
4890 <ginfo>: New member.
4891 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4892 (debug_names::write_psymbols): Update.
4893
9d6d4be8
TV
48942019-05-04 Tom de Vries <tdevries@suse.de>
4895
4896 * contrib/cc-with-tweaks.sh: Support -n arg.
4897
66452beb
PW
48982019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4899
4900 * corelow.c (core_target::detach): Ensure frame cache and
4901 register caches are cleared.
4902 inferior.c (exit_inferior_1): Likewise.
4903
bde09ab7
TT
49042019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4905 Tom Tromey <tom@tromey.com>
4906
4907 * dictionary.c (collate_pending_symbols_by_language): Remove
4908 "struct" from foreach.
4909 * symtab.c (lookup_global_symbol_from_objfile)
4910 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4911 foreach.
4912 * ser-tcp.c (net_open): Remove "struct" from foreach.
4913 * objfiles.c (objfile_relocate, objfile_rebase)
4914 (objfile_has_symbols): Remove "struct" from foreach.
4915 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4916 from foreach.
4917 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4918 foreach.
4919 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4920 "struct" from foreach.
4921 * ada-lang.c (create_excep_cond_exprs)
4922 (ada_exception_catchpoint_cond_string): Remove "struct" from
4923 foreach.
4924
222a8d25
TT
49252019-05-03 Tom Tromey <tromey@adacore.com>
4926
4927 * ada-exp.y (convert_char_literal): Check suffix of each
4928 enumerator.
4929
fcd60b84
DP
49302019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4931
4932 PR ada/21406:
4933 * ada-exp.y (yywrap): Don't define.
4934 * ada-lex.l (%option): Add noyywrap
4935 (yywrap): Remove.
4936
5f2459c2
EZ
49372019-05-03 Eli Zaretskii <eliz@gnu.org>
4938
353ea2d1
EZ
4939 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4940 _WIN32_WINNT to the XP level, unless already defined to a higher
4941 level.
4942
4943 * unittests/parse-connection-spec-selftests.c:
4944 * ser-tcp.c:
4945 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4946 override.
4947
5f2459c2
EZ
4948 * symfile.c (find_separate_debug_file): Remove colon from the
4949 drive spec of DOS/Windows file names of the target, so that the
4950 file name produced from DEBUGDIR and the target's directory will
4951 be valid on DOS/Windows systems.
4952
80062eb9
AB
49532019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4954
4955 * rust-lang.c (val_print_struct): Handle printing structures
4956 containing strings.
4957
b8c05e85
TT
49582019-05-02 Tom Tromey <tromey@adacore.com>
4959
4960 * valarith.c (_initialize_valarith): Remove.
4961
4504bbde
TT
49622019-05-01 Tom Tromey <tromey@adacore.com>
4963
4964 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4965 bitfields.
4966
d48e62f4
TT
49672019-05-01 Tom Tromey <tromey@adacore.com>
4968
4969 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4970 for big-endian copies.
4971
15f18d14
AT
49722019-04-30 Ali Tamur <tamur@google.com>
4973 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4974 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4975 (read_3_bytes): New function.
4976
ab4ee614
JB
49772019-04-30 Joel Brobecker <brobecker@adacore.com>
4978
4979 * windows-nat.c (main_thread_id): Delete.
4980 (handle_output_debug_string): Replace main_thread_id by
4981 current_event.dwThreadId.
4982 (fake_create_process): Likewise.
4983 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4984 Do not set main_thread_id.
4985 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4986 current_event.dwThreadId.
4987 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
4988
8ed5b76e
JB
49892019-04-30 Joel Brobecker <brobecker@adacore.com>
4990
4991 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
4992 Use current_event.dwThreadId instead of main_thread_id.
4993
2ff0a947
TT
49942019-04-30 Tom Tromey <tromey@adacore.com>
4995
4996 * ada-lang.c (ada_lookup_simple_minsyms): New function.
4997 (create_excep_cond_exprs): Iterate over program spaces.
4998 (ada_exception_catchpoint_cond_string): Examine all minimal
4999 symbols for exception types.
5000
a776957c
TT
50012019-04-30 Tom Tromey <tromey@adacore.com>
5002
5003 PR c++/24470:
5004 * dwarf2read.c (process_structure_scope): Handle case where type
5005 has template parameters but no symbol was created.
5006
bc68014d
AB
50072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5008 Chris January <chris.january@arm.com>
5009
5010 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5011 qualifier.
5012 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5013
f1fdc960
AB
50142019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5015
5016 * f-typeprint.c (f_print_type): Update rules for printing
5017 whitespace.
5018 (f_type_print_varspec_suffix): Likewise.
5019
bf7a4de1
AB
50202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5021 Chris January <chris.january@arm.com>
5022
5023 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5024 function arguments.
5025
bbe75b9d
AB
50262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5027
5028 * f-lang.c (build_fortran_types): Change name of void type to
5029 lower case.
5030 * f-typeprint.c (f_type_print_base): Print the name of the void
5031 type, rather than a fixed string.
5032 * f-valprint.c (f_decorations): Use lower case void string.
5033
1db455a7
AB
50342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5035 Chris January <chris.january@arm.com>
5036
5037 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5038 types for Fortran.
5039
b6d03bb2
AB
50402019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5041 Chris January <chris.january@arm.com>
5042 David Lecomber <david.lecomber@arm.com>
5043
5044 * f-exp.y (BINOP_INTRINSIC): New token.
5045 (exp): New parser rule handling BINOP_INTRINSIC.
5046 (f77_keywords): Add new builtin procedures.
5047 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5048 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5049 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5050 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5051 (print_unop_subexp_f): New function.
5052 (print_binop_subexp_f): New function.
5053 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5054 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5055 (dump_subexp_body_f): Likewise.
5056 (operator_check_f): Likewise.
5057 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5058 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5059
83228e93
AB
50602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5063 UNOP_KIND.
5064 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5065 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5066 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5067 (operator_length_f): New fuction.
5068 (print_subexp_f): New function.
5069 (op_name_f): New function.
5070 (dump_subexp_body_f): New function.
5071 (operator_check_f): New function.
5072 (exp_descriptor_f): Replace standard expression handling functions
5073 with new functions.
5074 * gdb/fortran-operator.def: New file.
5075 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5076 * gdb/std-operator.def: Remove UNOP_KIND.
5077
6fdcd7cc
AB
50782019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5079
5080 * std-operator.def: Remove unbalanced, stray double quote
5081 character.
5082
2e62ab40
AB
50832019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5084 Chris January <chris.january@arm.com>
5085 Daniel Everett <daniel.everett@arm.com>
5086 Nick Forrington <nick.forrington@arm.com>
5087 Richard Bunt <richard.bunt@arm.com>
5088
5089 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5090 of depth when printing anonymous structs or unions.
5091 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5092 Don't print either the top-level value, or the children if the
5093 max-depth is exceeded.
5094 (ppscm_print_children): When printing the key of a map, allow one
5095 extra level of depth.
5096 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5097 print either the top-level value, or the children if the max-depth
5098 is exceeded.
5099 (print_children): When printing the key of a map, allow one extra
5100 level of depth.
5101 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5102 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5103 (user_print_options): Initialise max_depth field.
5104 (val_print_scalar_or_string_type_p): New function.
5105 (val_print): Check to see if the max depth has been reached.
5106 (val_print_check_max_depth): Define new function.
5107 (show_print_max_depth): New function.
5108 (_initialize_valprint): Add 'print max-depth' option.
5109 * valprint.h (struct value_print_options) <max_depth>: New field.
5110 (val_print_check_max_depth): Declare new function.
5111 * NEWS: Document new feature.
5112
4be290b2
AB
51132019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * ada-lang.c (ada_language_defn): Initialise new field.
5116 * c-lang.c (c_is_string_type_p): New function.
5117 (c_language_defn): Initialise new field.
5118 (cplus_language_defn): Initialise new field.
5119 (asm_language_defn): Initialise new field.
5120 (minimal_language_defn): Initialise new field.
5121 * c-lang.h (c_is_string_type_p): Declare new function.
5122 * d-lang.c (d_language_defn): Initialise new field.
5123 * f-lang.c (f_is_string_type_p): New function.
5124 (f_language_defn): Initialise new field.
5125 * go-lang.c (go_is_string_type_p): New function.
5126 (go_language_defn): Initialise new field.
5127 * language.c (default_is_string_type_p): New function.
5128 (unknown_language_defn): Initialise new field.
5129 (auto_language_defn): Initialise new field.
5130 * language.h (struct language_defn) <la_is_string_type_p>: New
5131 member variable.
5132 (default_is_string_type_p): Declare new function.
5133 * m2-lang.c (m2_language_defn): Initialise new field.
5134 * objc-lang.c (objc_language_defn): Initialise new field.
5135 * opencl-lang.c (opencl_language_defn): Initialise new field.
5136 * p-lang.c (pascal_is_string_type_p): New function.
5137 (pascal_language_defn): Initialise new field.
5138 * rust-lang.c (rust_is_string_type_p): New function.
5139 (rust_language_defn): Initialise new field.
5140
721b08c6
AB
51412019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5142
5143 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5144 New field.
5145 * ada-lang.c (ada_language_defn): Initialise new field.
5146 * c-lang.c (c_language_defn): Likewise.
5147 (cplus_language_defn): Likewise.
5148 (asm_language_defn): Likewise.
5149 (minimal_language_defn): Likewise.
5150 * d-lang.c (d_language_defn): Likewise.
5151 * f-lang.c (f_language_defn): Likewise.
5152 * go-lang.c (go_language_defn): Likewise.
5153 * language.c (unknown_language_defn): Likewise.
5154 (auto_language_defn): Likewise.
5155 * m2-lang.c (m2_language_defn): Likewise.
5156 * objc-lang.c (objc_language_defn): Likewise.
5157 * opencl-lang.c (opencl_language_defn): Likewise.
5158 * p-lang.c (pascal_language_defn): Likewise.
5159 * rust-lang.c (rust_language_defn): Likewise.
5160
fc913e53
AB
51612019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5162
5163 * ada-lang.c (ada_is_character_type): Change return type to bool.
5164 (ada_is_string_type): Likewise.
5165 * ada-lang.h (ada_is_character_type): Update declaration
5166 (ada_is_string_type): Likewise.
5167
fa731fa0
PW
51682019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5169
5170 Support style in 'frame|thread apply'
5171
5172 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5173 * record.c (record_start, record_stop): Update callers of
5174 execute_command_to_string with false.
5175 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5176 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5177 methods.
5178 (class string_file): New constructor with term_out parameter.
5179 Override methods term_out and can_emit_style_escape. New member
5180 term_out.
5181 (class stdio_file): Override can_emit_style_escape.
5182 (class tee_file): Override term_out and can_emit_style_escape.
5183 * utils.h (can_emit_style_escape): Remove.
5184 * utils.c (can_emit_style_escape): Likewise.
5185 Update all callers of can_emit_style_escape (SOMESTREAM) to
5186 SOMESTREAM->can_emit_style_escape.
5187 * source-cache.c (source_cache::get_source_lines): Likewise.
5188 * stack.c (frame_apply_command_count): Call execute_command_to_string
5189 passing the term_out characteristic of the current gdb_stdout.
5190 * thread.c (thr_try_catch_cmd): Likewise.
5191 * top.c (execute_command_to_string): pass term_out parameter
5192 to construct the string_file for the command output.
5193 * ui-file.c (term_cli_styling): New function (most code moved
5194 from utils.c can_emit_style_escape).
5195 (string_file::string_file, string_file::can_emit_style_escape,
5196 stdio_file::can_emit_style_escape, tee_file::term_out,
5197 tee_file::can_emit_style_escape): New functions.
5198
136afab8
PW
51992019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5200
5201 * NEWS: Mention the new set|show may-call-functions.
5202 * infcall.c (may_call_functions_p): New variable.
5203 (show_may_call_functions_p): New function.
5204 (call_function_by_hand_dummy): Throws an error if not
5205 may-call-functions.
5206 (_initialize_infcall): Call add_setshow_boolean_cmd for
5207 may-call-functions.
5208
725cbb63
KS
52092019-04-25 Keith Seitz <keiths@redhat.com>
5210
5211 PR c++/24367
5212 * cp-support.c (inspect_type): Don't attempt substitutions
5213 of symbol with the same name.
5214
3d1cbb78
TT
52152019-04-25 Tom Tromey <tromey@adacore.com>
5216
5217 PR gdb/24475:
5218 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5219 static.
5220
94aeb44b
TT
52212019-04-25 Tom Tromey <tromey@adacore.com>
5222
5223 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5224 rvalue reference.
5225 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5226 (gdb_xml_parser::parse): Use std::move.
5227 * python/python-internal.h (gdbpy_convert_exception): Take a const
5228 reference.
5229 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5230 std::move.
5231 * python/py-utils.c (gdbpy_convert_exception): Take a const
5232 reference.
5233 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5234 Use std::move.
5235 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5236 Use std::move.
5237 * mi/mi-main.c (mi_print_exception): Take a const reference.
5238 * main.c (handle_command_errors): Take a const reference.
5239 * linespec.c (parse_linespec): Use std::move.
5240 * infcall.c (run_inferior_call): Use std::move.
5241 (call_function_by_hand_dummy): Use std::move.
5242 * exec.c (try_open_exec_file): Use std::move.
5243 * exceptions.h (exception_print, exception_fprintf)
5244 (exception_print_same): Update.
5245 * exceptions.c (print_exception, exception_print)
5246 (exception_fprintf, exception_print_same): Change parameters to
5247 const reference.
5248 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5249 * common/new-op.c: Use std::move.
5250 * common/common-exceptions.h (struct gdb_exception): Add move
5251 constructor.
5252 (struct gdb_exception_error, struct gdb_exception_quit, struct
5253 gdb_quit_bad_alloc): Change constructor to move constructor.
5254 (throw_exception): Change parameter to rvalue reference.
5255 * common/common-exceptions.c (throw_exception): Take rvalue
5256 reference.
5257 * cli/cli-interp.c (safe_execute_command): Use std::move.
5258 * breakpoint.c (insert_bp_location, location_to_sals): Use
5259 std::move.
5260
680d7fd5
TT
52612019-04-25 Tom Tromey <tromey@adacore.com>
5262
5263 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5264 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5265 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5266 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5267 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5268 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5269 guile/scm-value.c: Use unpack.
5270 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5271 gdbscm_gdb_exception.
5272 (gdbscm_throw_gdb_exception): Likewise.
5273 (struct gdbscm_gdb_exception): New.
5274 (unpack): New function.
5275 (gdbscm_wrap): Use unpack.
5276
c6fdd8b2
TT
52772019-04-25 Tom Tromey <tromey@adacore.com>
5278
5279 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5280 (gdb_rl_callback_handler): Use std::move.
5281 * common/common-exceptions.h (struct gdb_exception): Add move
5282 assignment operator.
5283 (throw_exception_sjlj): Change "exception" to const reference.
5284 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5285 (throw_exception_sjlj): Change "exception" to const reference.
5286
cc06b668
TT
52872019-04-25 Tom Tromey <tromey@adacore.com>
5288
5289 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5290 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5291 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5292 Update.
5293 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5294 Update.
5295 * mi/mi-interp.c (mi_interp::exec): Update.
5296 * linespec.c (parse_linespec): Update.
5297 * infcall.c (run_inferior_call): Update.
5298 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5299 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5300 (gdbscm_lookup_global_symbol): Update.
5301 * guile/scm-param.c (gdbscm_parameter_value): Update.
5302 * guile/scm-frame.c (gdbscm_frame_read_register)
5303 (gdbscm_frame_read_var): Update.
5304 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5305 * exec.c (try_open_exec_file): Update.
5306 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5307 (gdb_rl_callback_handler): Update.
5308 * common/common-exceptions.h (exception_none): Don't declare.
5309 * common/common-exceptions.c (exception_none): Don't define.
5310 (struct catcher) <exception>: Update.
5311 * cli/cli-interp.c (safe_execute_command): Update.
5312 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5313
cf532bd1
AT
53142019-04-25 Ali Tamur <tamur@google.com>
5315
5316 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5317 (read_attribute_value): Likewise.
5318 (dwarf2_read_addr_index): Update comment.
5319 (read_str_index): Add DW_FORM_strx.
5320 (dwarf2_string_attr): Likewise.
5321 (dwarf2_const_value_attr): Likewise.
5322 (dump_die_shallow): Likewise.
5323 (dwarf2_fetch_constant_bytes): Likewise.
5324 (skip_form_bytes): Likewise.
5325 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5326
82433e3e
SDJ
53272019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5328
5329 PR corefiles/11608
5330 PR corefiles/18187
5331 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5332 OFFSET. Verify if current mapping contains an ELF header.
5333 (linux_find_memory_regions_full): Adjust call to
5334 dump_mapping_p.
5335
723adb65
SL
53362019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5337 Kang Li <kanglictf@gmail.com>
5338
5339 PR gdb/21600
5340
5341 * dwarf2-frame.c (read_initial_length): Be consistent about using
5342 unsigned representation of length.
5343 (decode_frame_entry_1): Likewise. Check for wraparound of
5344 end pointer as well as buffer overflow.
5345
596179f7
SDJ
53462019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5347
5348 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5349 "vq".
5350
a59240a4
TT
53512019-04-24 Tom Tromey <tromey@adacore.com>
5352
5353 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5354
f872fdbb
AB
53552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5356
5357 * s12z-tdep.c (s12z_unwind_pc): Delete.
5358 (s12z_unwind_sp): Delete.
5359 (s12z_gdbarch_init): Don't register deleted functions with
5360 gdbarch.
5361
b614e6f3
AB
53622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5363
5364 * rl78-tdep.c (rl78_unwind_sp): Delete.
5365 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5366
14faed38
AB
53672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5368
5369 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5370 (xstormy16_unwind_pc): Delete.
5371 (xstormy16_dummy_id): Delete.
5372 (xstormy16_gdbarch_init): Don't register deleted functions with
5373 gdbarch.
5374
541aad8a
AB
53752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * vax-tdep.c (vax_unwind_pc): Delete.
5378 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5379
29222070
AB
53802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5381
5382 * v850-tdep.c (v850_unwind_sp): Delete.
5383 (v850_unwind_pc): Delete.
5384 (v850_dummy_id): Delete.
5385 (v850_gdbarch_init): Don't register deleted functions with
5386 gdbarch.
5387
0f534d76
AB
53882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5389
5390 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5391 (tilegx_unwind_pc): Delete.
5392 (tilegx_unwind_dummy_id): Delete.
5393 (tilegx_gdbarch_init): Don't register deleted functions with
5394 gdbarch.
5395
1ba7b7f9
AB
53962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5397
5398 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5399 (tic6x_dummy_id): Delete.
5400 (tic6x_gdbarch_init): Don't register deleted functions with
5401 gdbarch.
5402
d31f262c
AB
54032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5404
5405 * sparc-tdep.c (sparc_unwind_pc): Delete.
5406 (sparc32_gdbarch_init): Don't register deleted function with
5407 gdbarch.
5408
6d14d64d
AB
54092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5410
5411 * sh-tdep.c (sh_unwind_sp): Delete.
5412 (sh_unwind_pc): Delete.
5413 (sh_dummy_id): Delete.
5414 (sh_gdbarch_init): Don't register deleted functions with
5415 gdbarch.
5416
a40dde9d
AB
54172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5418
5419 * score-tdep.c (score_unwind_sp): Delete.
5420 (score_unwind_pc): Delete.
5421 (score_dummy_id): Delete.
5422 (score_gdbarch_init): Don't register deleted functions with
5423 gdbarch.
5424
47c47d69
AB
54252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5426
5427 * rx-tdep.c (rx_unwind_pc): Delete.
5428 (rx_unwind_sp): Delete.
5429 (rx_dummy_id): Delete.
5430 (rx_gdbarch_init): Don't register deleted functions with
5431 gdbarch. Update comment.
5432
833a4480
AB
54332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5434
5435 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5436 (rs6000_dummy_id): Delete.
5437 (rs6000_gdbarch_init): Don't register deleted functions with
5438 gdbarch.
5439
3f2cef49
AB
54402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5441
5442 * or1k-tdep.c (or1k_dummy_id): Delete.
5443 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5444
96acf884
AB
54452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5446
5447 * nios2-tdep.c (nios2_dummy_id): Delete.
5448 (nios2_unwind_sp): Delete.
5449 (nios2_gdbarch_init): Don't register deleted functions with
5450 gdbarch.
5451
ca0ab0aa
AB
54522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5453
5454 * nds32-tdep.c (nds32_dummy_id): Delete.
5455 (nds32_unwind_pc): Delete.
5456 (nds32_unwind_sp): Delete.
5457 (nds32_gdbarch_init): Don't register deleted functions with
5458 gdbarch.
5459
c8259044
AB
54602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5461
5462 * msp430-tdep.c (msp430_unwind_pc): Delete.
5463 (msp430_unwind_sp): Delete.
5464 (msp430_dummy_id): Delete.
5465 (msp430_gdbarch_init): Don't register deleted functions with
5466 gdbarch.
5467
27f113c8
AB
54682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * moxie-tdep.c (moxie_unwind_sp): Delete.
5471 (moxie_unwind_pc): Delete.
5472 (moxie_dummy_id): Delete.
5473 (moxie_gdbarch_init): Don't register deleted functions with
5474 gdbarch.
5475
aee6c3cd
AB
54762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5477
5478 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5479 (mn10300_unwind_pc): Delete.
5480 (mn10300_unwind_sp): Delete.
5481 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5482 mn10300_unwind_sp.
5483 (mn10300_frame_unwind_init): Don't register deleted functions with
5484 gdbarch.
5485
8e2b5aea
AB
54862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5487
5488 * mep-tdep.c (mep_unwind_pc): Delete.
5489 (mep_unwind_sp): Delete.
5490 (mep_dummy_id): Delete.
5491 (mep_gdbarch_init): Don't register deleted functions with
5492 gdbarch.
5493
43cf3ede
AB
54942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5495
5496 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5497 (m68hc11_unwind_sp): Delete.
5498 (m68hc11_gdbarch_init): Don't register deleted functions with
5499 gdbarch.
5500
5e79b7bb
AB
55012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5502
5503 * m32r-tdep.c (m32r_unwind_sp): Delete.
5504 (m32r_unwind_pc): Delete.
5505 (m32r_dummy_id): Delete.
5506 (m32r_gdbarch_init): Don't register deleted functions with
5507 gdbarch.
5508
89b268d8
AB
55092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5510
5511 * m32c-tdep.c (m32c_unwind_pc): Delete.
5512 (m32c_unwind_sp): Delete.
5513 (m32c_dummy_id): Delete.
5514 (m32c_gdbarch_init): Don't register deleted functions with
5515 gdbarch.
5516
946c28d2
AB
55172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5518
5519 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5520 (lm32_unwind_pc): Delete.
5521 (lm32_dummy_id): Delete.
5522 (lm32_gdbarch_init): Don't register deleted functions with
5523 gdbarch.
5524
bf12844a
AB
55252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5526
5527 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5528 (iq2000_unwind_pc): Delete.
5529 (iq2000_dummy_id): Delete.
5530 (iq2000_gdbarch_init): Don't register deleted functions with
5531 gdbarch.
5532
ecbc06d2
AB
55332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5534
5535 * nds32-tdep.c (nds32_type_align): Delete.
5536 (nds32_push_dummy_call): Use type_align instead.
5537
030197b4
AB
55382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * arm-tdep.c (arm_type_align): Only handle vector override case.
5541 (arm_push_dummy_call): Use type_align.
5542 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5543
b907456c
AB
55442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5545
5546 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5547 case.
5548 (pass_on_stack): Use type_align.
5549 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5550 function.
5551
9e97ba43
TT
55522019-04-23 Tom Tromey <tromey@adacore.com>
5553
5554 * dwarf2read.c (line_header::file_name_at): Remove unused
5555 overload.
5556
6892f601
TV
55572019-04-23 Tom de Vries <tdevries@suse.de>
5558
5559 PR gdb/24438
5560 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5561 invocation.
5562
336d760d
AT
5563
55642019-03-27 Ali Tamur <tamur@google.com>
5565
5566 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5567 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5568 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5569 (dwarf_expr_context::get_addr_index): Likewise
5570 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5571 (symbol_needs_eval_context::get_addr_index): Likewise
5572 (disassemble_dwarf_expression): Add DW_OP_addrx
5573 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5574 (read_cutu_die_from_dwo): Update comment
5575 (skip_one_die): Add DW_FORM_addrx
5576 (read_attribute_value): Likewise
5577 (var_decode_location): Add DW_OP_addrx
5578 (dwarf2_const_value_attr): Add DW_FORM_addrx
5579 (dump_die_shallow): Likewise
5580 (dwarf2_fetch_constant_bytes): Likewise
5581 (decode_locdesc): Add DW_OP_addrx
5582 (skip_form_bytes): Add DW_FORM_addrx
5583
ad9d13f8
AT
55842019-04-22 Ali Tamur <tamur@google.com>
5585
5586 * MAINTAINERS (Write After Approval): Add self.
5587
d70cc3ba
SM
55882019-04-22 Simon Marchi <simon.marchi@efficios.com>
5589
5590 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5591 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5592 (open_symbol_file_object): Likewise.
5593 (svr4_default_sos): Add info parameter.
5594 (svr4_read_so_list): Likewise.
5595 (svr4_current_sos_direct): Adjust functions calls to pass down
5596 info.
5597 (svr4_current_sos_1): Add info parameter.
5598 (svr4_current_sos): Call get_svr4_info, pass info down to
5599 svr4_current_sos_1.
5600 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5601 get_svr4_info.
5602 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5603 get_svr4_info.
5604 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5605 to get_svr4_info.
5606 (probes_table_remove_objfile_probes): Likewise.
5607 (register_solib_event_probe): Add info parameter.
5608 (solist_update_incremental): Pass info parameter down to
5609 svr4_read_so_list.
5610 (disable_probes_interface): Add info parameter.
5611 (svr4_handle_solib_event): Pass current_program_space to
5612 get_svr4_info. Adjust disable_probes_interface cleanup.
5613 (svr4_create_probe_breakpoints): Add info parameter, pass it
5614 down to register_solib_event_probe.
5615 (svr4_create_solib_event_breakpoints): Add info parameter,
5616 pass it down to svr4_create_probe_breakpoints.
5617 (enable_break): Pass info down to
5618 svr4_create_solib_event_breakpoints.
5619 (svr4_solib_create_inferior_hook): Pass current_program_space to
5620 get_svr4_info.
5621 (svr4_clear_solib): Likewise.
5622
7905fc35
PA
56232019-04-22 Pedro Alves <palves@redhat.com>
5624
5625 * solib-svr4.c (svr4_free_objfile_observer): New.
5626 (probe_and_action::objfile): New field.
5627 (probes_table_htab_remove_objfile_probes)
5628 (probes_table_remove_objfile_probes): New functions.
5629 (register_solib_event_probe): Add 'objfile' parameter. Store it
5630 in the new probe_and_action. Don't store the probe in 'lookup'.
5631 (svr4_create_probe_breakpoints): Pass objfile to
5632 register_solib_event_probe.
5633 (_initialize_svr4_solib): Register a free_objfile observer.
5634
fb881986
TT
56352019-04-19 Tom Tromey <tom@tromey.com>
5636
5637 * common/queue.h: Remove.
5638
8732db6c
TT
56392019-04-19 Tom Tromey <tom@tromey.com>
5640
5641 * event-loop.c: Don't include "common/queue.h".
5642
97dfbadd
TT
56432019-04-19 Tom Tromey <tom@tromey.com>
5644
5645 * remote.c (remote_target): Use delete.
5646 * remote-notif.h: Include <list>, not "common/queue.h".
5647 (notif_client_p): Remove typedef.
5648 (remote_notif_state): Add constructor, destructor, initializer.
5649 <notif_queue>: Now a std::list.
5650 (remote_notif_state_xfree): Don't declare.
5651 * remote-notif.c (remote_notif_process, handle_notification)
5652 (remote_notif_state_allocate): Update.
5653 (~remote_notif_state): Rename from remote_notif_state_xfree.
5654
cf250e36
TT
56552019-04-19 Tom Tromey <tom@tromey.com>
5656
5657 * symfile.c (reread_symbols): Update.
5658 * objfiles.c (objfile_register_static_link)
5659 (objfile_lookup_static_link): Update
5660 (~objfile) Don't delete static_links.
5661 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5662
61f4b350
TT
56632019-04-19 Tom Tromey <tom@tromey.com>
5664
5665 * type-stack.h (struct type_stack) <insert>: Constify string.
5666 * type-stack.c (type_stack::insert): Constify string.
5667 * gdbtypes.h (lookup_template_type): Update.
5668 (address_space_name_to_int): Update.
5669 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5670 const.
5671 (lookup_template_type): Make name const.
5672 * c-exp.y: Update rules.
5673 (lex_one_token, classify_name, classify_inner_name)
5674 (c_print_token): Update.
5675 * p-exp.y: Update rules.
5676 (yylex): Update.
5677 * f-exp.y: Update rules.
5678 (yylex): Update.
5679 * d-exp.y: Update rules.
5680 (lex_one_token, classify_name, classify_inner_name): Update.
5681 * parse.c (write_dollar_variable, copy_name): Return std::string.
5682 * parser-defs.h (copy_name): Change return type.
5683 * m2-exp.y: Update rules.
5684 (yylex): Update.
5685 * go-exp.y (lex_one_token): Update.
5686 Update rules.
5687 (classify_unsafe_function, classify_packaged_name)
5688 (classify_name, yylex): Update.
5689
189b8c2e
ST
56902019-04-19 Sergei Trofimovich <siarheit@google.com>
5691
5692 * configure.ac: add --enable-source-highlight switch.
5693 * configure: Regenerate.
5694 * top.c (print_gdb_version): plumb --enable-source-highlight
5695 status to "show configuration".
5696
8ecb59f8
TT
56972019-04-19 Tom Tromey <tromey@adacore.com>
5698
5699 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5700 Check ADA_TYPE_P.
5701 (empty_record, ada_template_to_fixed_record_type_1)
5702 (template_to_static_fixed_type)
5703 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5704 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5705 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5706 macros.
5707
62160ec9
TT
57082019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5709
5710 PR symtab/24423:
5711 * source.c (print_source_lines_base): Advance "iter" when a
5712 control character is seen.
5713
f2ae8bc8
PW
57142019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5715
5716 * inferior.h (struct infcall_suspend_state_deleter):
5717 Catch exception in destructor to avoid crash.
5718
d563b953
PW
57192019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5720
5721 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5722 close to the add_com "shell".
5723
dc34c897
TT
57242019-04-18 Tom Tromey <tromey@adacore.com>
5725
5726 * process-stratum-target.h (class process_stratum_target)
5727 <stratum>: Add "final".
5728
a12e5744
TT
57292019-04-17 Tom Tromey <tromey@adacore.com>
5730
5731 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5732 against nullptr before use.
5733
a7e559cc
AH
57342019-04-17 Alan Hayward <alan.hayward@arm.com>
5735
5736 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5737
c01660c6
AB
57382019-04-17 Jim Wilson <jimw@sifive.com>
5739 Andrew Burgess <andrew.burgess@embecosm.com>
5740
5741 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5742 code read might fail, assume 4-byte breakpoint in that case.
5743
4aa866af
LS
57442019-04-15 Leszek Swirski <leszeks@google.com>
5745
5746 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5747 rather than a hand-rolled POD check when checking for forced MEMORY
5748 classification.
5749
48574d91
AH
57502019-04-15 Alan Hayward <alan.hayward@arm.com>
5751
5752 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5753 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5754 function.
5755 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5756 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5757 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5758 declaration.
5759
4da037ef
AH
57602019-04-15 Alan Hayward <alan.hayward@arm.com>
5761
5762 * aarch64-linux-nat.c
5763 (aarch64_linux_nat_target::thread_architecture): Add override.
5764 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5765 each VQ.
5766
ccb8d7e8
AH
57672019-04-15 Alan Hayward <alan.hayward@arm.com>
5768
5769 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5770
35add35e
AB
57712019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5772
5773 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5774 target types of size 96-bits, add some additional comments, and
5775 check that the builtin type we found was the correct size.
5776
51196bbc
EZ
57772019-04-12 Eli Zaretskii <eliz@gnu.org>
5778
5779 * utils.c (prompt_for_continue): Don't restore the styling at the
5780 end, as applied_style has the wrong value. This fixes styling in
5781 long lists of file names that are interrupted by the "Continue?"
5782 prompt.
5783
62253a61
AB
57842019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5785
5786 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5787 * c-lang.c (c_language_defn): Likewise.
5788 (cplus_language_defn): Likewise.
5789 (asm_language_defn): Likewise.
5790 (minimal_language_defn): Likewise.
5791 * d-lang.c (d_language_defn): Likewise.
5792 * f-lang.c (f_language_defn): Likewise.
5793 * go-lang.c (go_language_defn): Likewise.
5794 * language.c (unknown_language_defn): Likewise.
5795 (auto_language_defn): Likewise.
5796 * language.h (struct language_defn): Remove la_magic field.
5797 (LANG_MAGIC): Delete.
5798 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5799 * objc-lang.c (objc_language_defn): Likewise.
5800 * opencl-lang.c (opencl_language_defn): Likewise.
5801 * p-lang.c (pascal_language_defn): Likewise.
5802 * rust-lang.c (rust_language_defn): Likewise.
5803
a9158a86
AB
58042019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5805
5806 * riscv-tdep.c (riscv_type_align): New function.
5807 (riscv_type_alignment): Delete.
5808 (riscv_arg_location): Use 'type_align'.
5809 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5810
41077b66
AB
58112019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5812
5813 * gdbtypes.c (type_align): A struct with no non-static fields also
5814 has alignment of 1.
5815
9f0272f8
AB
58162019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5817
5818 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5819 component to 0.
5820 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5821 member.
5822 (riscv_struct_info::analyse): New implementation using new
5823 analyse_inner member function.
5824 (riscv_struct_info::field_offset): New member function.
5825 (riscv_struct_info::m_offsets): New member variable.
5826 (riscv_struct_info::analyse_inner): New private member function,
5827 takes the old implementation of riscv_struct_info::analyse but
5828 extended to track field offsets.
5829 (riscv_call_arg_struct): Update the struct folding special cases
5830 to handle cases where empty C++ structs, which are non-zero
5831 length, are found.
5832 (riscv_arg_location): Initialise the length of each location, a
5833 non-zero length now indicates the location is in use.
5834 (riscv_push_dummy_call): Allow for the first location having a
5835 non-zero offset when setting up arguments.
5836 (riscv_return_value): Likewise, but for return values.
5837
02cf60c7
TT
58382019-04-11 Tom Tromey <tromey@adacore.com>
5839
5840 * utils.c (internal_vproblem): Make "msg" const.
5841
68811f8f
AH
58422019-04-11 Alan Hayward <alan.hayward@arm.com>
5843
5844 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5845 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5846 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5847 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5848
3f52fdbc
KB
58492019-04-10 Kevin Buettner <kevinb@redhat.com>
5850
5851 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5852 function.
5853 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5854 of amd64_collect_native_gregset.
5855 (amd64_linux_nat_target::store_registers): Likewise.
5856
e9ad22ee
TT
58572019-04-10 Tom Tromey <tom@tromey.com>
5858
5859 * symtab.c (lookup_global_symbol_from_objfile)
5860 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5861 * objfiles.h (class separate_debug_iterator): New.
5862 (class separate_debug_range): New.
5863 (struct objfile) <separate_debug_objfiles>: New method.
5864 (objfile_separate_debug_iterate): Don't declare.
5865 * objfiles.c (separate_debug_iterator::operator++): Rename from
5866 objfile_separate_debug_iterate.
5867 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5868 iterator.
5869 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5870 iterator.
5871
ee371134
TT
58722019-04-10 Tom Tromey <tom@tromey.com>
5873
5874 * symfile.c (reread_symbols): Remove old comment.
5875 * objfiles.c (free_all_objfiles): Fix a typo.
5876
bf227d61
TT
58772019-04-10 Tom Tromey <tom@tromey.com>
5878
5879 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5880 * minsyms.c (lookup_minimal_symbol): Use foreach.
5881 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5882 (lookup_minimal_symbol_solib_trampoline): Likewise.
5883 * symfile.c (reread_symbols): Use foreach.
5884
8dc433a0
TT
58852019-04-09 Ivan Begert <ivanbegert@gmail.com>
5886 Tom Tromey <tromey@adacore.com>
5887
5888 PR rust/24414:
5889 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5890 (rust_lex_int_test): Change "value" to be LONGEST.
5891 (rust_lex_tests): Add test for long integer literal.
5892
9ab8741a
TT
58932019-04-09 Tom Tromey <tromey@adacore.com>
5894
5895 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5896 to bool.
5897 (extended_remote_target::attach): Update.
5898 (remote_target::remote_notice_new_inferior): Update.
5899 (remote_target::add_current_inferior_and_thread): Update.
5900 * inferior.c (exit_inferior_1): Use "false".
5901 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5902
e242fd12
SM
59032019-04-09 Simon Marchi <simon.marchi@efficios.com>
5904
9ca1957f 5905 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
5906 the "start" command.
5907
2b0c8b01
KB
59082019-04-08 Kevin Buettner <kevinb@redhat.com>
5909
5910 * python/py-inferior.c (infpy_thread_from_thread_handle):
5911 Adjust comments to reflect renaming of thread_from_thread_handle
5912 to thread_from_handle. Adjust keywords. Fix type error message.
5913 (inferior_object_methods): Add thread_from_handle. Retain
5914 thread_from_thread_handle, but mark it as deprecated.
5915
50a82723
KB
59162019-04-08 Kevin Buettner <kevinb@redhat.com>
5917
5918 * gdbthread.h (find_thread_by_handle): Revise declaration.
5919 * thread.c (find_thread_by_handle): Likewise. Adjust
5920 implementation too.
5921 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5922 support for buffer objects as handles.
5923
cf63b016
KB
59242019-04-08 Kevin Buettner <kevinb@redhat.com>
5925
5926 * python/py-infthread.c (thpy_thread_handle): New function.
5927 (thread_object_methods): Register thpy_thread_handle.
5928
3d6c6204
KB
59292019-04-08 Kevin Buettner <kevinb@redhat.com>
5930
5931 * gdbthread.h (thread_to_thread_handle): Declare.
5932 * thread.c (gdbtypes.h): Include.
5933 (thread_to_thread_handle): New function.
5934
5935 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5936 (target_thread_info_to_thread_handle): Declare.
5937 * target.c (target_thread_info_to_thread_handle): New function.
5938 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5939 * target-delegates.c: Regenerate.
5940
5941 * linux-thread-db.c (class thread_db_target): Add method
5942 thread_info_to_thread_handle.
5943 (thread_db_target::thread_info_to_thread_handle): Define.
5944 * remote.c (class remote_target): Add new method
5945 thread_info_to_thread_handle.
5946 (remote_target::thread_info_to_thread_handle): Define.
5947
56be6ea8
PA
59482019-04-08 Pedro Alves <palves@redhat.com>
5949
5950 * common/common-exceptions.c (throw_exception): Don't create
5951 named object to throw; throw directly.
5952 (throw_it): Likewise. Don't initialize gdb_exception::message
5953 here, with new; pass FMT and AP to the ctor instead.
5954 * common/common-exceptions.h: Include <string>.
5955 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5956 const char *, va_list)): New ctor. Use std::make_shared.
5957 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5958 errors)): Delete.
5959 (gdb_exception_error::gdb_exception_error(enum errors, const char
5960 *, va_list)): New.
5961 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5962 Add assertion.
5963 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5964 errors)): Delete.
5965 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5966 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5967 Add assertion.
5968
eedc3f4f
TT
59692019-04-08 Tom Tromey <tom@tromey.com>
5970
5971 * valops.c (value_rtti_indirect_type): Replace throw_exception
5972 with throw.
5973 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5974 with throw.
5975 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5976 throw.
5977 * target.c (target_translate_tls_address): Replace throw_exception
5978 with throw.
5979 * stack.c (frame_apply_command_count): Replace throw_exception
5980 with throw.
5981 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5982 throw.
5983 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5984 with throw.
5985 * rs6000-tdep.c (rs6000_frame_cache)
5986 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5987 * remote.c: Replace throw_exception with throw.
5988 * record-full.c (record_full_message, record_full_wait_1)
5989 (record_full_restore): Replace throw_exception with throw.
5990 * record-btrace.c:
5991 (get_thread_current_frame_id, record_btrace_start_replaying)
5992 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
5993 (cmd_record_btrace_start): Replace throw_exception with throw.
5994 * parse.c (parse_exp_in_context_1): Replace throw_exception with
5995 throw.
5996 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
5997 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
5998 * linespec.c:
5999 (find_linespec_symbols): Replace throw_exception with throw.
6000 * infrun.c (displaced_step_prepare, resume): Replace
6001 throw_exception with throw.
6002 * infcmd.c (post_create_inferior): Replace throw_exception with
6003 throw.
6004 * inf-loop.c (inferior_event_handler): Replace throw_exception
6005 with throw.
6006 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6007 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6008 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6009 (get_prev_frame_always, get_frame_pc_if_available)
6010 (get_frame_address_in_block_if_available, get_frame_language):
6011 Replace throw_exception with throw.
6012 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6013 throw_exception with throw.
6014 * eval.c (fetch_subexp_value, evaluate_var_value)
6015 (evaluate_funcall, evaluate_subexp_standard): Replace
6016 throw_exception with throw.
6017 * dwarf2loc.c (call_site_find_chain)
6018 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6019 Replace throw_exception with throw.
6020 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6021 with throw.
6022 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6023 throw.
6024 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6025 * completer.c (complete_line_internal): Replace throw_exception
6026 with throw.
6027 * compile/compile-object-run.c (compile_object_run): Replace
6028 throw_exception with throw.
6029 * cli/cli-script.c (process_next_line): Replace throw_exception
6030 with throw.
6031 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6032 (btrace_enable, btrace_maint_update_pt_packets): Replace
6033 throw_exception with throw.
6034 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6035 throw_exception with throw.
6036 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6037 throw_exception with throw.
6038 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6039 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6040 * aarch64-tdep.c (aarch64_make_prologue_cache)
6041 (aarch64_make_stub_cache): Replace throw_exception with throw.
6042
26003a20
TT
60432019-04-08 Tom Tromey <tom@tromey.com>
6044
6045 * common/common-exceptions.c (throw_exception): Rename from
6046 throw_exception_cxx. Remove old copy. Make argument const.
6047 (throw_it): Create and throw exception objects directly.
6048 * common/common-exceptions.h (throw_exception): Make argument
6049 const.
6050 (struct gdb_exception_error): Add constructor.
6051 (struct gdb_exception_quit): Add constructor.
6052
d272eb37
TT
60532019-04-08 Tom Tromey <tom@tromey.com>
6054
6055 * common/common-exceptions.h (exception_rethrow): Don't declare.
6056 (TRY_SJLJ): Update comment.
6057 (TRY, CATCH, END_CATCH): Remove.
6058 * common/common-exceptions.c (exception_rethrow): Remove.
6059
230d2906
TT
60602019-04-08 Tom Tromey <tom@tromey.com>
6061
6062 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6063 Remove.
6064 (gdb_exception_error): Rename from
6065 gdb_exception_RETURN_MASK_ERROR.
6066 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6067 (gdb_quit_bad_alloc): Update.
6068 * aarch64-tdep.c: Update.
6069 * ada-lang.c: Update.
6070 * ada-typeprint.c: Update.
6071 * ada-valprint.c: Update.
6072 * amd64-tdep.c: Update.
6073 * arch-utils.c: Update.
6074 * break-catch-throw.c: Update.
6075 * breakpoint.c: Update.
6076 * btrace.c: Update.
6077 * c-varobj.c: Update.
6078 * cli/cli-cmds.c: Update.
6079 * cli/cli-interp.c: Update.
6080 * cli/cli-script.c: Update.
6081 * common/common-exceptions.c: Update.
6082 * common/new-op.c: Update.
6083 * common/selftest.c: Update.
6084 * compile/compile-c-symbols.c: Update.
6085 * compile/compile-cplus-symbols.c: Update.
6086 * compile/compile-object-load.c: Update.
6087 * compile/compile-object-run.c: Update.
6088 * completer.c: Update.
6089 * corelow.c: Update.
6090 * cp-abi.c: Update.
6091 * cp-support.c: Update.
6092 * cp-valprint.c: Update.
6093 * darwin-nat.c: Update.
6094 * disasm-selftests.c: Update.
6095 * dtrace-probe.c: Update.
6096 * dwarf-index-cache.c: Update.
6097 * dwarf-index-write.c: Update.
6098 * dwarf2-frame-tailcall.c: Update.
6099 * dwarf2-frame.c: Update.
6100 * dwarf2loc.c: Update.
6101 * dwarf2read.c: Update.
6102 * eval.c: Update.
6103 * event-loop.c: Update.
6104 * event-top.c: Update.
6105 * exec.c: Update.
6106 * f-valprint.c: Update.
6107 * fbsd-tdep.c: Update.
6108 * frame-unwind.c: Update.
6109 * frame.c: Update.
6110 * gdbtypes.c: Update.
6111 * gnu-v3-abi.c: Update.
6112 * guile/guile-internal.h: Update.
6113 * guile/scm-block.c: Update.
6114 * guile/scm-breakpoint.c: Update.
6115 * guile/scm-cmd.c: Update.
6116 * guile/scm-disasm.c: Update.
6117 * guile/scm-frame.c: Update.
6118 * guile/scm-lazy-string.c: Update.
6119 * guile/scm-math.c: Update.
6120 * guile/scm-param.c: Update.
6121 * guile/scm-ports.c: Update.
6122 * guile/scm-pretty-print.c: Update.
6123 * guile/scm-symbol.c: Update.
6124 * guile/scm-symtab.c: Update.
6125 * guile/scm-type.c: Update.
6126 * guile/scm-value.c: Update.
6127 * i386-linux-tdep.c: Update.
6128 * i386-tdep.c: Update.
6129 * inf-loop.c: Update.
6130 * infcall.c: Update.
6131 * infcmd.c: Update.
6132 * infrun.c: Update.
6133 * jit.c: Update.
6134 * language.c: Update.
6135 * linespec.c: Update.
6136 * linux-fork.c: Update.
6137 * linux-nat.c: Update.
6138 * linux-tdep.c: Update.
6139 * linux-thread-db.c: Update.
6140 * main.c: Update.
6141 * mi/mi-cmd-break.c: Update.
6142 * mi/mi-cmd-stack.c: Update.
6143 * mi/mi-interp.c: Update.
6144 * mi/mi-main.c: Update.
6145 * objc-lang.c: Update.
6146 * p-valprint.c: Update.
6147 * parse.c: Update.
6148 * ppc-linux-tdep.c: Update.
6149 * printcmd.c: Update.
6150 * python/py-arch.c: Update.
6151 * python/py-breakpoint.c: Update.
6152 * python/py-cmd.c: Update.
6153 * python/py-finishbreakpoint.c: Update.
6154 * python/py-frame.c: Update.
6155 * python/py-framefilter.c: Update.
6156 * python/py-gdb-readline.c: Update.
6157 * python/py-inferior.c: Update.
6158 * python/py-infthread.c: Update.
6159 * python/py-lazy-string.c: Update.
6160 * python/py-linetable.c: Update.
6161 * python/py-objfile.c: Update.
6162 * python/py-param.c: Update.
6163 * python/py-prettyprint.c: Update.
6164 * python/py-progspace.c: Update.
6165 * python/py-record-btrace.c: Update.
6166 * python/py-record.c: Update.
6167 * python/py-symbol.c: Update.
6168 * python/py-type.c: Update.
6169 * python/py-unwind.c: Update.
6170 * python/py-utils.c: Update.
6171 * python/py-value.c: Update.
6172 * python/python.c: Update.
6173 * record-btrace.c: Update.
6174 * record-full.c: Update.
6175 * remote-fileio.c: Update.
6176 * remote.c: Update.
6177 * riscv-tdep.c: Update.
6178 * rs6000-aix-tdep.c: Update.
6179 * rs6000-tdep.c: Update.
6180 * rust-exp.y: Update.
6181 * rust-lang.c: Update.
6182 * s390-tdep.c: Update.
6183 * selftest-arch.c: Update.
6184 * solib-dsbt.c: Update.
6185 * solib-frv.c: Update.
6186 * solib-spu.c: Update.
6187 * solib-svr4.c: Update.
6188 * solib.c: Update.
6189 * sparc64-linux-tdep.c: Update.
6190 * stack.c: Update.
6191 * symfile-mem.c: Update.
6192 * symmisc.c: Update.
6193 * target.c: Update.
6194 * thread.c: Update.
6195 * top.c: Update.
6196 * tracefile-tfile.c: Update.
6197 * tui/tui.c: Update.
6198 * typeprint.c: Update.
6199 * unittests/cli-utils-selftests.c: Update.
6200 * unittests/parse-connection-spec-selftests.c: Update.
6201 * valops.c: Update.
6202 * valprint.c: Update.
6203 * value.c: Update.
6204 * varobj.c: Update.
6205 * windows-nat.c: Update.
6206 * x86-linux-nat.c: Update.
6207 * xml-support.c: Update.
6208
a70b8144
TT
62092019-04-08 Tom Tromey <tom@tromey.com>
6210
6211 * xml-support.c: Use C++ exception handling.
6212 * x86-linux-nat.c: Use C++ exception handling.
6213 * windows-nat.c: Use C++ exception handling.
6214 * varobj.c: Use C++ exception handling.
6215 * value.c: Use C++ exception handling.
6216 * valprint.c: Use C++ exception handling.
6217 * valops.c: Use C++ exception handling.
6218 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6219 handling.
6220 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6221 * typeprint.c: Use C++ exception handling.
6222 * tui/tui.c: Use C++ exception handling.
6223 * tracefile-tfile.c: Use C++ exception handling.
6224 * top.c: Use C++ exception handling.
6225 * thread.c: Use C++ exception handling.
6226 * target.c: Use C++ exception handling.
6227 * symmisc.c: Use C++ exception handling.
6228 * symfile-mem.c: Use C++ exception handling.
6229 * stack.c: Use C++ exception handling.
6230 * sparc64-linux-tdep.c: Use C++ exception handling.
6231 * solib.c: Use C++ exception handling.
6232 * solib-svr4.c: Use C++ exception handling.
6233 * solib-spu.c: Use C++ exception handling.
6234 * solib-frv.c: Use C++ exception handling.
6235 * solib-dsbt.c: Use C++ exception handling.
6236 * selftest-arch.c: Use C++ exception handling.
6237 * s390-tdep.c: Use C++ exception handling.
6238 * rust-lang.c: Use C++ exception handling.
6239 * rust-exp.y: Use C++ exception handling.
6240 * rs6000-tdep.c: Use C++ exception handling.
6241 * rs6000-aix-tdep.c: Use C++ exception handling.
6242 * riscv-tdep.c: Use C++ exception handling.
6243 * remote.c: Use C++ exception handling.
6244 * remote-fileio.c: Use C++ exception handling.
6245 * record-full.c: Use C++ exception handling.
6246 * record-btrace.c: Use C++ exception handling.
6247 * python/python.c: Use C++ exception handling.
6248 * python/py-value.c: Use C++ exception handling.
6249 * python/py-utils.c: Use C++ exception handling.
6250 * python/py-unwind.c: Use C++ exception handling.
6251 * python/py-type.c: Use C++ exception handling.
6252 * python/py-symbol.c: Use C++ exception handling.
6253 * python/py-record.c: Use C++ exception handling.
6254 * python/py-record-btrace.c: Use C++ exception handling.
6255 * python/py-progspace.c: Use C++ exception handling.
6256 * python/py-prettyprint.c: Use C++ exception handling.
6257 * python/py-param.c: Use C++ exception handling.
6258 * python/py-objfile.c: Use C++ exception handling.
6259 * python/py-linetable.c: Use C++ exception handling.
6260 * python/py-lazy-string.c: Use C++ exception handling.
6261 * python/py-infthread.c: Use C++ exception handling.
6262 * python/py-inferior.c: Use C++ exception handling.
6263 * python/py-gdb-readline.c: Use C++ exception handling.
6264 * python/py-framefilter.c: Use C++ exception handling.
6265 * python/py-frame.c: Use C++ exception handling.
6266 * python/py-finishbreakpoint.c: Use C++ exception handling.
6267 * python/py-cmd.c: Use C++ exception handling.
6268 * python/py-breakpoint.c: Use C++ exception handling.
6269 * python/py-arch.c: Use C++ exception handling.
6270 * printcmd.c: Use C++ exception handling.
6271 * ppc-linux-tdep.c: Use C++ exception handling.
6272 * parse.c: Use C++ exception handling.
6273 * p-valprint.c: Use C++ exception handling.
6274 * objc-lang.c: Use C++ exception handling.
6275 * mi/mi-main.c: Use C++ exception handling.
6276 * mi/mi-interp.c: Use C++ exception handling.
6277 * mi/mi-cmd-stack.c: Use C++ exception handling.
6278 * mi/mi-cmd-break.c: Use C++ exception handling.
6279 * main.c: Use C++ exception handling.
6280 * linux-thread-db.c: Use C++ exception handling.
6281 * linux-tdep.c: Use C++ exception handling.
6282 * linux-nat.c: Use C++ exception handling.
6283 * linux-fork.c: Use C++ exception handling.
6284 * linespec.c: Use C++ exception handling.
6285 * language.c: Use C++ exception handling.
6286 * jit.c: Use C++ exception handling.
6287 * infrun.c: Use C++ exception handling.
6288 * infcmd.c: Use C++ exception handling.
6289 * infcall.c: Use C++ exception handling.
6290 * inf-loop.c: Use C++ exception handling.
6291 * i386-tdep.c: Use C++ exception handling.
6292 * i386-linux-tdep.c: Use C++ exception handling.
6293 * guile/scm-value.c: Use C++ exception handling.
6294 * guile/scm-type.c: Use C++ exception handling.
6295 * guile/scm-symtab.c: Use C++ exception handling.
6296 * guile/scm-symbol.c: Use C++ exception handling.
6297 * guile/scm-pretty-print.c: Use C++ exception handling.
6298 * guile/scm-ports.c: Use C++ exception handling.
6299 * guile/scm-param.c: Use C++ exception handling.
6300 * guile/scm-math.c: Use C++ exception handling.
6301 * guile/scm-lazy-string.c: Use C++ exception handling.
6302 * guile/scm-frame.c: Use C++ exception handling.
6303 * guile/scm-disasm.c: Use C++ exception handling.
6304 * guile/scm-cmd.c: Use C++ exception handling.
6305 * guile/scm-breakpoint.c: Use C++ exception handling.
6306 * guile/scm-block.c: Use C++ exception handling.
6307 * guile/guile-internal.h: Use C++ exception handling.
6308 * gnu-v3-abi.c: Use C++ exception handling.
6309 * gdbtypes.c: Use C++ exception handling.
6310 * frame.c: Use C++ exception handling.
6311 * frame-unwind.c: Use C++ exception handling.
6312 * fbsd-tdep.c: Use C++ exception handling.
6313 * f-valprint.c: Use C++ exception handling.
6314 * exec.c: Use C++ exception handling.
6315 * event-top.c: Use C++ exception handling.
6316 * event-loop.c: Use C++ exception handling.
6317 * eval.c: Use C++ exception handling.
6318 * dwarf2read.c: Use C++ exception handling.
6319 * dwarf2loc.c: Use C++ exception handling.
6320 * dwarf2-frame.c: Use C++ exception handling.
6321 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6322 * dwarf-index-write.c: Use C++ exception handling.
6323 * dwarf-index-cache.c: Use C++ exception handling.
6324 * dtrace-probe.c: Use C++ exception handling.
6325 * disasm-selftests.c: Use C++ exception handling.
6326 * darwin-nat.c: Use C++ exception handling.
6327 * cp-valprint.c: Use C++ exception handling.
6328 * cp-support.c: Use C++ exception handling.
6329 * cp-abi.c: Use C++ exception handling.
6330 * corelow.c: Use C++ exception handling.
6331 * completer.c: Use C++ exception handling.
6332 * compile/compile-object-run.c: Use C++ exception handling.
6333 * compile/compile-object-load.c: Use C++ exception handling.
6334 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6335 * compile/compile-c-symbols.c: Use C++ exception handling.
6336 * common/selftest.c: Use C++ exception handling.
6337 * common/new-op.c: Use C++ exception handling.
6338 * cli/cli-script.c: Use C++ exception handling.
6339 * cli/cli-interp.c: Use C++ exception handling.
6340 * cli/cli-cmds.c: Use C++ exception handling.
6341 * c-varobj.c: Use C++ exception handling.
6342 * btrace.c: Use C++ exception handling.
6343 * breakpoint.c: Use C++ exception handling.
6344 * break-catch-throw.c: Use C++ exception handling.
6345 * arch-utils.c: Use C++ exception handling.
6346 * amd64-tdep.c: Use C++ exception handling.
6347 * ada-valprint.c: Use C++ exception handling.
6348 * ada-typeprint.c: Use C++ exception handling.
6349 * ada-lang.c: Use C++ exception handling.
6350 * aarch64-tdep.c: Use C++ exception handling.
6351
3d6e9d23
TT
63522019-04-08 Tom Tromey <tom@tromey.com>
6353
6354 * xml-support.c (gdb_xml_parser::parse): Update.
6355 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6356 * value.c (show_convenience): Update.
6357 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6358 (test_parse_flags_qcs): Update.
6359 * thread.c (thr_try_catch_cmd): Update.
6360 * target.c (target_translate_tls_address): Update.
6361 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6362 (info_frame_command_core, frame_apply_command_count): Update.
6363 * rust-exp.y (rust_lex_exception_test): Update.
6364 * riscv-tdep.c (riscv_print_one_register_info): Update.
6365 * remote.c (remote_target::enable_btrace): Update.
6366 * record-btrace.c (record_btrace_enable_warn): Update.
6367 * python/py-utils.c (gdbpy_convert_exception): Update.
6368 * printcmd.c (do_one_display, print_variable_and_value): Update.
6369 * mi/mi-main.c (mi_print_exception): Update.
6370 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6371 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6372 * linux-nat.c (linux_nat_target::attach): Update.
6373 * linux-fork.c (class scoped_switch_fork_info): Update.
6374 * infrun.c (displaced_step_prepare): Update.
6375 * infcall.c (call_function_by_hand_dummy): Update.
6376 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6377 * gnu-v3-abi.c (print_one_vtable): Update.
6378 * frame.c (get_prev_frame_always): Update.
6379 * f-valprint.c (info_common_command_for_block): Update.
6380 * exec.c (try_open_exec_file): Update.
6381 * exceptions.c (print_exception, exception_print)
6382 (exception_fprintf, exception_print_same): Update.
6383 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6384 * dwarf-index-cache.c (index_cache::store)
6385 (index_cache::lookup_gdb_index): Update.
6386 * darwin-nat.c (maybe_cache_shell): Update.
6387 * cp-valprint.c (cp_print_value_fields): Update.
6388 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6389 (gcc_cplus_symbol_address): Update.
6390 * compile/compile-c-symbols.c (gcc_convert_symbol)
6391 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6392 * common/selftest.c: Update.
6393 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6394 a std::string.
6395 (exception_try_scope_entry, exception_try_scope_exit): Don't
6396 declare.
6397 (struct exception_try_scope): Remove.
6398 (TRY): Don't use exception_try_scope.
6399 (struct gdb_exception): Add constructor, operator=.
6400 <what>: New method.
6401 (struct gdb_exception_RETURN_MASK_ALL)
6402 (struct gdb_exception_RETURN_MASK_ERROR)
6403 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6404 (struct gdb_quit_bad_alloc): Update.
6405 * common/common-exceptions.c (exception_none): Change
6406 initializer.
6407 (struct catcher) <state, exception>: Initialize inline.
6408 <prev>: Remove member.
6409 (current_catcher): Remove.
6410 (catchers): New global.
6411 (exceptions_state_mc_init): Simplify.
6412 (catcher_pop): Remove.
6413 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6414 (try_scope_depth, exception_try_scope_entry)
6415 (exception_try_scope_exit): Remove.
6416 (throw_exception_sjlj): Update.
6417 (exception_messages, exception_messages_size): Remove.
6418 (throw_it): Simplify.
6419 (gdb_exception_sliced_copy): Remove.
6420 (throw_exception_cxx): Update.
6421 * cli/cli-script.c (script_from_file): Update.
6422 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6423 Update.
6424 * ada-valprint.c (ada_val_print): Update.
6425 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6426 (create_excep_cond_exprs): Update.
6427
c5c10118
TT
64282019-04-08 Tom Tromey <tom@tromey.com>
6429
6430 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6431 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6432 (TRY, CATCH, END_CATCH): Remove some definitions.
6433 * common/common-exceptions.c: Don't use GDB_XCPT.
6434 (catcher_list_size): Remove.
6435 (throw_exception, throw_it): Simplify.
6436
4de283e4
TT
64372019-04-05 Tom Tromey <tom@tromey.com>
6438
6439 Revert the header-sorting patch.
6440 * ft32-tdep.c: Revert.
6441 * frv-tdep.c: Revert.
6442 * frv-linux-tdep.c: Revert.
6443 * frame.c: Revert.
6444 * frame-unwind.c: Revert.
6445 * frame-base.c: Revert.
6446 * fork-child.c: Revert.
6447 * findvar.c: Revert.
6448 * findcmd.c: Revert.
6449 * filesystem.c: Revert.
6450 * filename-seen-cache.h: Revert.
6451 * filename-seen-cache.c: Revert.
6452 * fbsd-tdep.c: Revert.
6453 * fbsd-nat.h: Revert.
6454 * fbsd-nat.c: Revert.
6455 * f-valprint.c: Revert.
6456 * f-typeprint.c: Revert.
6457 * f-lang.c: Revert.
6458 * extension.h: Revert.
6459 * extension.c: Revert.
6460 * extension-priv.h: Revert.
6461 * expprint.c: Revert.
6462 * exec.h: Revert.
6463 * exec.c: Revert.
6464 * exceptions.c: Revert.
6465 * event-top.c: Revert.
6466 * event-loop.c: Revert.
6467 * eval.c: Revert.
6468 * elfread.c: Revert.
6469 * dwarf2read.h: Revert.
6470 * dwarf2read.c: Revert.
6471 * dwarf2loc.c: Revert.
6472 * dwarf2expr.h: Revert.
6473 * dwarf2expr.c: Revert.
6474 * dwarf2-frame.c: Revert.
6475 * dwarf2-frame-tailcall.c: Revert.
6476 * dwarf-index-write.h: Revert.
6477 * dwarf-index-write.c: Revert.
6478 * dwarf-index-common.c: Revert.
6479 * dwarf-index-cache.h: Revert.
6480 * dwarf-index-cache.c: Revert.
6481 * dummy-frame.c: Revert.
6482 * dtrace-probe.c: Revert.
6483 * disasm.h: Revert.
6484 * disasm.c: Revert.
6485 * disasm-selftests.c: Revert.
6486 * dictionary.c: Revert.
6487 * dicos-tdep.c: Revert.
6488 * demangle.c: Revert.
6489 * dcache.h: Revert.
6490 * dcache.c: Revert.
6491 * darwin-nat.h: Revert.
6492 * darwin-nat.c: Revert.
6493 * darwin-nat-info.c: Revert.
6494 * d-valprint.c: Revert.
6495 * d-namespace.c: Revert.
6496 * d-lang.c: Revert.
6497 * ctf.c: Revert.
6498 * csky-tdep.c: Revert.
6499 * csky-linux-tdep.c: Revert.
6500 * cris-tdep.c: Revert.
6501 * cris-linux-tdep.c: Revert.
6502 * cp-valprint.c: Revert.
6503 * cp-support.c: Revert.
6504 * cp-namespace.c: Revert.
6505 * cp-abi.c: Revert.
6506 * corelow.c: Revert.
6507 * corefile.c: Revert.
6508 * continuations.c: Revert.
6509 * completer.h: Revert.
6510 * completer.c: Revert.
6511 * complaints.c: Revert.
6512 * coffread.c: Revert.
6513 * coff-pe-read.c: Revert.
6514 * cli-out.h: Revert.
6515 * cli-out.c: Revert.
6516 * charset.c: Revert.
6517 * c-varobj.c: Revert.
6518 * c-valprint.c: Revert.
6519 * c-typeprint.c: Revert.
6520 * c-lang.c: Revert.
6521 * buildsym.c: Revert.
6522 * buildsym-legacy.c: Revert.
6523 * build-id.h: Revert.
6524 * build-id.c: Revert.
6525 * btrace.c: Revert.
6526 * bsd-uthread.c: Revert.
6527 * breakpoint.h: Revert.
6528 * breakpoint.c: Revert.
6529 * break-catch-throw.c: Revert.
6530 * break-catch-syscall.c: Revert.
6531 * break-catch-sig.c: Revert.
6532 * blockframe.c: Revert.
6533 * block.c: Revert.
6534 * bfin-tdep.c: Revert.
6535 * bfin-linux-tdep.c: Revert.
6536 * bfd-target.c: Revert.
6537 * bcache.c: Revert.
6538 * ax-general.c: Revert.
6539 * ax-gdb.h: Revert.
6540 * ax-gdb.c: Revert.
6541 * avr-tdep.c: Revert.
6542 * auxv.c: Revert.
6543 * auto-load.c: Revert.
6544 * arm-wince-tdep.c: Revert.
6545 * arm-tdep.c: Revert.
6546 * arm-symbian-tdep.c: Revert.
6547 * arm-pikeos-tdep.c: Revert.
6548 * arm-obsd-tdep.c: Revert.
6549 * arm-nbsd-tdep.c: Revert.
6550 * arm-nbsd-nat.c: Revert.
6551 * arm-linux-tdep.c: Revert.
6552 * arm-linux-nat.c: Revert.
6553 * arm-fbsd-tdep.c: Revert.
6554 * arm-fbsd-nat.c: Revert.
6555 * arm-bsd-tdep.c: Revert.
6556 * arch-utils.c: Revert.
6557 * arc-tdep.c: Revert.
6558 * arc-newlib-tdep.c: Revert.
6559 * annotate.h: Revert.
6560 * annotate.c: Revert.
6561 * amd64-windows-tdep.c: Revert.
6562 * amd64-windows-nat.c: Revert.
6563 * amd64-tdep.c: Revert.
6564 * amd64-sol2-tdep.c: Revert.
6565 * amd64-obsd-tdep.c: Revert.
6566 * amd64-obsd-nat.c: Revert.
6567 * amd64-nbsd-tdep.c: Revert.
6568 * amd64-nbsd-nat.c: Revert.
6569 * amd64-nat.c: Revert.
6570 * amd64-linux-tdep.c: Revert.
6571 * amd64-linux-nat.c: Revert.
6572 * amd64-fbsd-tdep.c: Revert.
6573 * amd64-fbsd-nat.c: Revert.
6574 * amd64-dicos-tdep.c: Revert.
6575 * amd64-darwin-tdep.c: Revert.
6576 * amd64-bsd-nat.c: Revert.
6577 * alpha-tdep.c: Revert.
6578 * alpha-obsd-tdep.c: Revert.
6579 * alpha-nbsd-tdep.c: Revert.
6580 * alpha-mdebug-tdep.c: Revert.
6581 * alpha-linux-tdep.c: Revert.
6582 * alpha-linux-nat.c: Revert.
6583 * alpha-bsd-tdep.c: Revert.
6584 * alpha-bsd-nat.c: Revert.
6585 * aix-thread.c: Revert.
6586 * agent.c: Revert.
6587 * addrmap.c: Revert.
6588 * ada-varobj.c: Revert.
6589 * ada-valprint.c: Revert.
6590 * ada-typeprint.c: Revert.
6591 * ada-tasks.c: Revert.
6592 * ada-lang.c: Revert.
6593 * aarch64-tdep.c: Revert.
6594 * aarch64-ravenscar-thread.c: Revert.
6595 * aarch64-newlib-tdep.c: Revert.
6596 * aarch64-linux-tdep.c: Revert.
6597 * aarch64-linux-nat.c: Revert.
6598 * aarch64-fbsd-tdep.c: Revert.
6599 * aarch64-fbsd-nat.c: Revert.
6600 * aarch32-linux-nat.c: Revert.
6601
d55e5aa6
TT
66022019-04-05 Tom Tromey <tom@tromey.com>
6603
6604 * ft32-tdep.c: Sort headers.
6605 * frv-tdep.c: Sort headers.
6606 * frv-linux-tdep.c: Sort headers.
6607 * frame.c: Sort headers.
6608 * frame-unwind.c: Sort headers.
6609 * frame-base.c: Sort headers.
6610 * fork-child.c: Sort headers.
6611 * findvar.c: Sort headers.
6612 * findcmd.c: Sort headers.
6613 * filesystem.c: Sort headers.
6614 * filename-seen-cache.h: Sort headers.
6615 * filename-seen-cache.c: Sort headers.
6616 * fbsd-tdep.c: Sort headers.
6617 * fbsd-nat.h: Sort headers.
6618 * fbsd-nat.c: Sort headers.
6619 * f-valprint.c: Sort headers.
6620 * f-typeprint.c: Sort headers.
6621 * f-lang.c: Sort headers.
6622 * extension.h: Sort headers.
6623 * extension.c: Sort headers.
6624 * extension-priv.h: Sort headers.
6625 * expprint.c: Sort headers.
6626 * exec.h: Sort headers.
6627 * exec.c: Sort headers.
6628 * exceptions.c: Sort headers.
6629 * event-top.c: Sort headers.
6630 * event-loop.c: Sort headers.
6631 * eval.c: Sort headers.
6632 * elfread.c: Sort headers.
6633 * dwarf2read.h: Sort headers.
6634 * dwarf2read.c: Sort headers.
6635 * dwarf2loc.c: Sort headers.
6636 * dwarf2expr.h: Sort headers.
6637 * dwarf2expr.c: Sort headers.
6638 * dwarf2-frame.c: Sort headers.
6639 * dwarf2-frame-tailcall.c: Sort headers.
6640 * dwarf-index-write.h: Sort headers.
6641 * dwarf-index-write.c: Sort headers.
6642 * dwarf-index-common.c: Sort headers.
6643 * dwarf-index-cache.h: Sort headers.
6644 * dwarf-index-cache.c: Sort headers.
6645 * dummy-frame.c: Sort headers.
6646 * dtrace-probe.c: Sort headers.
6647 * disasm.h: Sort headers.
6648 * disasm.c: Sort headers.
6649 * disasm-selftests.c: Sort headers.
6650 * dictionary.c: Sort headers.
6651 * dicos-tdep.c: Sort headers.
6652 * demangle.c: Sort headers.
6653 * dcache.h: Sort headers.
6654 * dcache.c: Sort headers.
6655 * darwin-nat.h: Sort headers.
6656 * darwin-nat.c: Sort headers.
6657 * darwin-nat-info.c: Sort headers.
6658 * d-valprint.c: Sort headers.
6659 * d-namespace.c: Sort headers.
6660 * d-lang.c: Sort headers.
6661 * ctf.c: Sort headers.
6662 * csky-tdep.c: Sort headers.
6663 * csky-linux-tdep.c: Sort headers.
6664 * cris-tdep.c: Sort headers.
6665 * cris-linux-tdep.c: Sort headers.
6666 * cp-valprint.c: Sort headers.
6667 * cp-support.c: Sort headers.
6668 * cp-namespace.c: Sort headers.
6669 * cp-abi.c: Sort headers.
6670 * corelow.c: Sort headers.
6671 * corefile.c: Sort headers.
6672 * continuations.c: Sort headers.
6673 * completer.h: Sort headers.
6674 * completer.c: Sort headers.
6675 * complaints.c: Sort headers.
6676 * coffread.c: Sort headers.
6677 * coff-pe-read.c: Sort headers.
6678 * cli-out.h: Sort headers.
6679 * cli-out.c: Sort headers.
6680 * charset.c: Sort headers.
6681 * c-varobj.c: Sort headers.
6682 * c-valprint.c: Sort headers.
6683 * c-typeprint.c: Sort headers.
6684 * c-lang.c: Sort headers.
6685 * buildsym.c: Sort headers.
6686 * buildsym-legacy.c: Sort headers.
6687 * build-id.h: Sort headers.
6688 * build-id.c: Sort headers.
6689 * btrace.c: Sort headers.
6690 * bsd-uthread.c: Sort headers.
6691 * breakpoint.h: Sort headers.
6692 * breakpoint.c: Sort headers.
6693 * break-catch-throw.c: Sort headers.
6694 * break-catch-syscall.c: Sort headers.
6695 * break-catch-sig.c: Sort headers.
6696 * blockframe.c: Sort headers.
6697 * block.c: Sort headers.
6698 * bfin-tdep.c: Sort headers.
6699 * bfin-linux-tdep.c: Sort headers.
6700 * bfd-target.c: Sort headers.
6701 * bcache.c: Sort headers.
6702 * ax-general.c: Sort headers.
6703 * ax-gdb.h: Sort headers.
6704 * ax-gdb.c: Sort headers.
6705 * avr-tdep.c: Sort headers.
6706 * auxv.c: Sort headers.
6707 * auto-load.c: Sort headers.
6708 * arm-wince-tdep.c: Sort headers.
6709 * arm-tdep.c: Sort headers.
6710 * arm-symbian-tdep.c: Sort headers.
6711 * arm-pikeos-tdep.c: Sort headers.
6712 * arm-obsd-tdep.c: Sort headers.
6713 * arm-nbsd-tdep.c: Sort headers.
6714 * arm-nbsd-nat.c: Sort headers.
6715 * arm-linux-tdep.c: Sort headers.
6716 * arm-linux-nat.c: Sort headers.
6717 * arm-fbsd-tdep.c: Sort headers.
6718 * arm-fbsd-nat.c: Sort headers.
6719 * arm-bsd-tdep.c: Sort headers.
6720 * arch-utils.c: Sort headers.
6721 * arc-tdep.c: Sort headers.
6722 * arc-newlib-tdep.c: Sort headers.
6723 * annotate.h: Sort headers.
6724 * annotate.c: Sort headers.
6725 * amd64-windows-tdep.c: Sort headers.
6726 * amd64-windows-nat.c: Sort headers.
6727 * amd64-tdep.c: Sort headers.
6728 * amd64-sol2-tdep.c: Sort headers.
6729 * amd64-obsd-tdep.c: Sort headers.
6730 * amd64-obsd-nat.c: Sort headers.
6731 * amd64-nbsd-tdep.c: Sort headers.
6732 * amd64-nbsd-nat.c: Sort headers.
6733 * amd64-nat.c: Sort headers.
6734 * amd64-linux-tdep.c: Sort headers.
6735 * amd64-linux-nat.c: Sort headers.
6736 * amd64-fbsd-tdep.c: Sort headers.
6737 * amd64-fbsd-nat.c: Sort headers.
6738 * amd64-dicos-tdep.c: Sort headers.
6739 * amd64-darwin-tdep.c: Sort headers.
6740 * amd64-bsd-nat.c: Sort headers.
6741 * alpha-tdep.c: Sort headers.
6742 * alpha-obsd-tdep.c: Sort headers.
6743 * alpha-nbsd-tdep.c: Sort headers.
6744 * alpha-mdebug-tdep.c: Sort headers.
6745 * alpha-linux-tdep.c: Sort headers.
6746 * alpha-linux-nat.c: Sort headers.
6747 * alpha-bsd-tdep.c: Sort headers.
6748 * alpha-bsd-nat.c: Sort headers.
6749 * aix-thread.c: Sort headers.
6750 * agent.c: Sort headers.
6751 * addrmap.c: Sort headers.
6752 * ada-varobj.c: Sort headers.
6753 * ada-valprint.c: Sort headers.
6754 * ada-typeprint.c: Sort headers.
6755 * ada-tasks.c: Sort headers.
6756 * ada-lang.c: Sort headers.
6757 * aarch64-tdep.c: Sort headers.
6758 * aarch64-ravenscar-thread.c: Sort headers.
6759 * aarch64-newlib-tdep.c: Sort headers.
6760 * aarch64-linux-tdep.c: Sort headers.
6761 * aarch64-linux-nat.c: Sort headers.
6762 * aarch64-fbsd-tdep.c: Sort headers.
6763 * aarch64-fbsd-nat.c: Sort headers.
6764 * aarch32-linux-nat.c: Sort headers.
6765
699bd4cf
TT
67662019-04-04 Tom Tromey <tom@tromey.com>
6767
6768 * varobj.c (varobj_create): Update.
6769 * rust-exp.y (struct rust_parser) <update_innermost_block,
6770 lookup_symbol>: New methods.
6771 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6772 Rename.
6773 (rust_parser::rust_lookup_type)
6774 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6775 * printcmd.c (display_command, do_one_display): Update.
6776 * parser-defs.h (struct parser_state) <parser_state>: Add
6777 "tracker" parameter.
6778 (block_tracker): New member.
6779 (class innermost_block_tracker) <innermost_block_tracker>: Add
6780 "types" parameter.
6781 <reset>: Remove method.
6782 (innermost_block): Don't declare.
6783 (null_post_parser): Update.
6784 * parse.c (innermost_block): Remove global.
6785 (write_dollar_variable): Update.
6786 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6787 Remove "tracker_types" parameter.
6788 (parse_expression): Add "tracker" parameter.
6789 (parse_expression_for_completion): Update.
6790 (null_post_parser): Add "tracker" parameter.
6791 * p-exp.y: Update rules.
6792 * m2-exp.y: Update rules.
6793 * language.h (struct language_defn) <la_post_parser>: Add
6794 "tracker" parameter.
6795 * go-exp.y: Update rules.
6796 * f-exp.y: Update rules.
6797 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6798 parameter.
6799 * d-exp.y: Update rules.
6800 * c-exp.y: Update rules.
6801 * breakpoint.c (set_breakpoint_condition): Create an
6802 innermost_block_tracker.
6803 (watch_command_1): Likewise.
6804 * ada-lang.c (resolve): Add "tracker" parameter.
6805 (resolve_subexp): Likewise.
6806 * ada-exp.y (write_var_from_sym): Update.
6807
dac43e32
TT
68082019-04-04 Tom Tromey <tom@tromey.com>
6809
6810 * type-stack.h: New file.
6811 * type-stack.c: New file.
6812 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6813 type-stack.h.
6814 (insert_into_type_stack, insert_type, push_type, push_type_int)
6815 (insert_type_address_space, pop_type, pop_type_int)
6816 (pop_typelist, pop_type_stack, append_type_stack)
6817 (push_type_stack, get_type_stack, push_typelist)
6818 (follow_type_instance_flags, follow_types): Don't declare.
6819 * parse.c (type_stack): Remove global.
6820 (parse_exp_in_context): Update.
6821 (insert_into_type_stack, insert_type, push_type, push_type_int)
6822 (insert_type_address_space, pop_type, pop_type_int)
6823 (pop_typelist, pop_type_stack, append_type_stack)
6824 (push_type_stack, get_type_stack, push_typelist)
6825 (follow_type_instance_flags, follow_types): Remove (moved to
6826 type-stack.c).
6827 * f-exp.y (type_stack): New global.
6828 Update rules.
6829 (push_kind_type, f_parse): Update.
6830 * d-exp.y (type_stack): New global.
6831 Update rules.
6832 (d_parse): Update.
6833 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6834 Update rules.
6835 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6836 (HFILES_NO_SRCDIR): Add type-stack.h.
6837
2a612529
TT
68382019-04-04 Tom Tromey <tom@tromey.com>
6839
6840 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6841 (rust_parser::convert_ast_to_expression, rust_parse)
6842 (rust_lex_test_completion, rust_lex_tests): Update.
6843 * parser-defs.h (struct expr_completion_state): New.
6844 (struct parser_state) <parser_state>: Add completion parameter.
6845 <mark_struct_expression, mark_completion_tag>: New methods.
6846 <parse_completion, m_completion_state>: New members.
6847 (prefixify_expression, null_post_parser): Update.
6848 (mark_struct_expression, mark_completion_tag): Don't declare.
6849 * parse.c (parse_completion, expout_last_struct)
6850 (expout_tag_completion_type, expout_completion_name): Remove
6851 globals.
6852 (parser_state::mark_struct_expression)
6853 (parser_state::mark_completion_tag): Now methods.
6854 (prefixify_expression): Add last_struct parameter.
6855 (prefixify_subexp): Likewise.
6856 (parse_exp_1): Update.
6857 (parse_exp_in_context): Add cstate parameter. Update.
6858 (parse_expression_for_completion): Create an
6859 expr_completion_state.
6860 (null_post_parser): Add "completion" parameter.
6861 * p-exp.y: Update rules.
6862 (yylex): Update.
6863 * language.h (struct language_defn) <la_post_parser>: Add
6864 "completing" parameter.
6865 * go-exp.y: Update rules.
6866 (lex_one_token): Update.
6867 * expression.h (parse_completion): Don't declare.
6868 * d-exp.y: Update rules.
6869 (lex_one_token): Update rules.
6870 * c-exp.y: Update rules.
6871 (lex_one_token): Update.
6872 * ada-lang.c (resolve): Add "parse_completion" parameter.
6873 (resolve_subexp): Likewise.
6874 (ada_resolve_function): Likewise.
6875
43476f0b
TT
68762019-04-04 Tom Tromey <tom@tromey.com>
6877
6878 * parser-defs.h (struct parser_state) <start_arglist,
6879 end_arglist>: New methods.
6880 <arglist_len, m_funcall_chain>: New members.
6881 (arglist_len, start_arglist, end_arglist): Don't declare.
6882 * parse.c (arglist_len, funcall_chain): Remove global.
6883 (start_arglist, end_arglist): Remove functions.
6884 (parse_exp_in_context): Update.
6885 * p-exp.y: Update rules.
6886 * m2-exp.y: Update rules.
6887 * go-exp.y: Update rules.
6888 * f-exp.y: Update rules.
6889 * d-exp.y: Update rules.
6890 * c-exp.y: Update rules.
6891
5776fca3
TT
68922019-04-04 Tom Tromey <tom@tromey.com>
6893
6894 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6895 lex_operator, push_back>: New methods.
6896 Update all rules.
6897 (rust_parser::lex_hex, lex_escape): Rename and update.
6898 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6899 (rust_parser::lex_operator): Rename and update.
6900 (rust_parser::lex_number, rustyylex, rustyyerror)
6901 (rust_lex_test_init, rust_lex_test_sequence)
6902 (rust_lex_test_push_back, rust_lex_tests): Update.
6903 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6904 parameter.
6905 <lexptr, prev_lexptr>: New members.
6906 (lexptr, prev_lexptr): Don't declare.
6907 * parse.c (lexptr, prev_lexptr): Remove globals.
6908 (parse_exp_in_context): Update.
6909 * p-exp.y (yylex, yyerror): Update.
6910 * m2-exp.y (parse_number, yylex, yyerror): Update.
6911 * go-exp.y (lex_one_token, yyerror): Update.
6912 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6913 * d-exp.y (lex_one_token, yyerror): Update.
6914 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6915 (lex_one_token, yyerror): Update.
6916 * ada-lex.l (YY_INPUT): Update.
6917 (rewind_to_char): Update.
6918 * ada-exp.y (yyerror): Update.
6919
8621b685
TT
69202019-04-04 Tom Tromey <tom@tromey.com>
6921
6922 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6923 * parser-defs.h (struct parser_state) <parser_state>: Add new
6924 parameter.
6925 <comma_terminates>: New member.
6926 (comma_terminates): Don't declare global.
6927 * parse.c (comma_terminates): Remove global.
6928 (parse_exp_in_context): Update.
6929 * p-exp.y (yylex): Update.
6930 * m2-exp.y (yylex): Update.
6931 * go-exp.y (lex_one_token): Update.
6932 * f-exp.y (yylex): Update.
6933 * d-exp.y (lex_one_token): Update.
6934 * c-exp.y (lex_one_token): Update.
6935 * ada-lex.l: Update.
6936
28aaf3fd
TT
69372019-04-04 Tom Tromey <tom@tromey.com>
6938
6939 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6940 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6941 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6942 * parser-defs.h (paren_depth): Don't declare.
6943 * parse.c (paren_depth): Remove global.
6944 (parse_exp_in_context): Update.
6945 * p-exp.y (paren_depth): New global.
6946 (pascal_parse): Initialize it.
6947 * m2-exp.y (paren_depth): New global.
6948 (m2_parse): Initialize it.
6949 * go-exp.y (paren_depth): New global.
6950 (go_parse): Initialize it.
6951 * f-exp.y (paren_depth): New global.
6952 (f_parse): Initialize it.
6953 * d-exp.y (paren_depth): New global.
6954 (d_parse): Initialize it.
6955 * c-exp.y (paren_depth): New global.
6956 (c_parse): Initialize it.
6957 * ada-lex.l (paren_depth): New global.
6958 (lexer_init): Initialize it.
6959
1e58a4a4
TT
69602019-04-04 Tom Tromey <tom@tromey.com>
6961
6962 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6963 (rust_parser::convert_ast_to_type)
6964 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6965 * parser-defs.h (struct parser_state) <parser_state>: Add
6966 parameters. Initialize new members.
6967 <expression_context_block, expression_context_pc>: New members.
6968 * parse.c (expression_context_block, expression_context_pc):
6969 Remove globals.
6970 (parse_exp_in_context): Update.
6971 * p-exp.y: Update all rules.
6972 (yylex): Update.
6973 * m2-exp.y: Update all rules.
6974 (yylex): Update.
6975 * go-exp.y (yylex): Update.
6976 * f-exp.y (yylex): Update.
6977 * d-exp.y: Update all rules.
6978 (yylex): Update.
6979 * c-exp.y: Update all rules.
6980 (lex_one_token, classify_name, yylex, c_parse): Update.
6981 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6982
37eedb39
TT
69832019-04-04 Tom Tromey <tom@tromey.com>
6984
6985 * gdbarch.h, gdbarch.c: Rebuild.
6986 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6987 * stap-probe.h:
6988 (struct stap_parse_info): Replace "parser_state" with
6989 "expr_builder".
6990 * parser-defs.h (struct expr_builder): Rename from "parser_state".
6991 (parser_state): New class.
6992 * parse.c (expr_builder): Rename.
6993 (expr_builder::release): Rename.
6994 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
6995 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
6996 (write_exp_elt_longcst, write_exp_elt_floatcst)
6997 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
6998 (write_exp_string_vector, write_exp_bitstring)
6999 (write_exp_msymbol, mark_struct_expression)
7000 (write_dollar_variable)
7001 (insert_type_address_space, increase_expout_size): Replace
7002 "parser_state" with "expr_builder".
7003 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7004 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7005 "parser_state" with "expr_builder".
7006
73923d7e
TT
70072019-04-04 Tom Tromey <tom@tromey.com>
7008
7009 * rust-exp.y: Replace "parse_language" with method call.
7010 * p-exp.y:
7011 (yylex): Replace "parse_language" with method call.
7012 * m2-exp.y:
7013 (yylex): Replace "parse_language" with method call.
7014 * go-exp.y (classify_name): Replace "parse_language" with method
7015 call.
7016 * f-exp.y (yylex): Replace "parse_language" with method call.
7017 * d-exp.y (lex_one_token): Replace "parse_language" with method
7018 call.
7019 * c-exp.y:
7020 (lex_one_token, classify_name, yylex): Replace "parse_language"
7021 with method call.
7022 * ada-exp.y (find_primitive_type, type_char)
7023 (type_system_address): Replace "parse_language" with method call.
7024
fa9f5be6
TT
70252019-04-04 Tom Tromey <tom@tromey.com>
7026
7027 * rust-exp.y: Replace "parse_gdbarch" with method call.
7028 * parse.c (write_dollar_variable, insert_type_address_space):
7029 Replace "parse_gdbarch" with method call.
7030 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7031 call.
7032 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7033 call.
7034 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7035 "parse_gdbarch" with method call.
7036 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7037 with method call.
7038 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7039 "parse_gdbarch" with method call.
7040 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7041 "parse_gdbarch" with method call.
7042 * c-exp.y (parse_type, parse_number, classify_name): Replace
7043 "parse_gdbarch" with method call.
7044 * ada-lex.l: Replace "parse_gdbarch" with method call.
7045 * ada-exp.y (parse_type, find_primitive_type, type_char)
7046 (type_system_address): Replace "parse_gdbarch" with method call.
7047
1201a264
TT
70482019-04-04 Tom Tromey <tom@tromey.com>
7049
7050 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7051 * stap-probe.c (stap_parse_argument): Update.
7052 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7053 initial_size parameter.
7054 * rust-exp.y (rust_lex_tests): Update.
7055 * parse.c (parser_state): Update.
7056 (parse_exp_in_context): Update.
7057 * parser-defs.h (struct parser_state) <parser_state>: Remove
7058 "initial_size" parameter.
7059
e3980ce2
TT
70602019-04-04 Tom Tromey <tom@tromey.com>
7061
7062 * parser-defs.h (increase_expout_size): Don't declare.
7063 * parse.c (increase_expout_size): Now static.
7064
e9f8e3f1
TS
70652019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7066
7067 * gnu-nat.c (gnu_nat_target::wait): Fix
7068 target_waitstatus_to_string call.
7069
d7df6549
AB
70702019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7071
7072 * eval.c (evaluate_subexp_standard): Handle internal functions
7073 during Fortran function call handling.
7074
8bdc1658
AB
70752019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7076
7077 * NEWS: Mention new internal functions.
7078 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7079 (read_base_type): Use dwarf2_init_complex_target_type.
7080 * value.c (creal_internal_fn): New function.
7081 (cimag_internal_fn): New function.
7082 (_initialize_values): Register new internal functions.
7083
c29705b7
PW
70842019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7085
7086 * infrun.c (stop_all_threads): If debug_infrun, always
7087 trace the wait status after wait_one, using
7088 target_waitstatus_to_string and target_pid_to_str.
7089 (handle_inferior_event): Replace various trace of
7090 wait status kind by a single trace.
7091 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7092 wait status kind image by target_waitstatus_to_string.
7093 * target/waitstatus.c (target_waitstatus_to_string): Fix
7094 obsolete comment.
7095
05caa1d2
TT
70962019-04-01 Tom Tromey <tromey@adacore.com>
7097
7098 PR symtab/23331:
7099 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7100
9d1447e0
SDJ
71012019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7102 Pedro Alves <palves@redhat.com>
7103
7104 * top.c (quit_force): Call 'finalize_values'.
7105 * value.c (finalize_values): New function.
7106 * value.h (finalize_values): Declare.
7107
7734102d
EZ
71082019-03-30 Eli Zaretskii <eliz@gnu.org>
7109
7110 * NEWS: Announce $_gdb_major and $_gdb_minor.
7111
7112 * top.c (init_gdb_version_vars): New function.
7113 (gdb_init): Call init_gdb_version_vars.
7114
188e1fa9
TT
71152019-03-29 Tom Tromey <tromey@adacore.com>
7116
7117 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7118 help text. Remove dead code.
7119
2880242d
KS
71202019-03-29 Keith Seitz <keiths@redhat.com>
7121
7122 From Siddhesh Poyarekar:
7123 * f-lang.h (f77_get_upperbound): Return LONGEST.
7124 (f77_get_lowerbound): Likewise.
7125 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7126 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7127 print them.
7128 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7129 plongest to format print it.
7130 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7131 (f77_get_upperbound): Likewise.
7132 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7133 LOWER_BOUND to LONGEST.
7134 (f77_create_arrayprint_offset_tbl): Likewise.
7135
cc1defb1
KS
71362019-03-29 Keith Seitz <keiths@redhat.com>
7137
7138 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7139 %s/pulongest for TYPE_LENGTH instead of %d in format
7140 strings.
7141 * ada-typerint.c (ada_print_type): Likewise.
7142 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7143 * compile/compile-c-support.c (generate_register_struct): Likewise.
7144 * gdbtypes.c (recursive_dump_type): Likewise.
7145 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7146 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7147 instead of %d in format strings.
7148 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7149 to std::min to ULONGEST.
7150 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7151 instead of %d in format strings.
7152 * tracepoint.c (info_scope_command): Likewise.
7153 * typeprint.c (print_offset_data::update)
7154 (print_offset_data::finish): Likewise.
7155 * xtensa-tdep.c (xtensa_store_return_value)
7156 (xtensa_push_dummy_call): Likewise.
7157
e432ccf1
JT
71582019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7159
7160 * windows-nat.c (display_selector): Fixed format specifications
7161 for 64-bit Cygwin.
7162
65d2b333
PW
71632019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7164
7165 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7166
f489207e
SL
71672019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7168
7169 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7170 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7171 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7172 (nios2_linux_init_abi): Install it.
7173
bffa1015
AH
71742019-03-28 Alan Hayward <alan.hayward@arm.com>
7175
7176 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7177
fc96163a
AH
71782019-03-28 Alan Hayward <alan.hayward@arm.com>
7179
7180 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7181
20dc7e9b
PW
71822019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7183 Tom Tromey <tromey@adacore.com>
7184
7185 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7186
7f5331a8
JB
71872019-03-26 Joel Brobecker <brobecker@adacore.com>
7188
7189 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7190 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7191 method to compute the bounds of range types. Also print "[evaluated]"
7192 if the bounds' values come from a dynamic evaluation.
7193
18c77628
AB
71942019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7195
7196 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7197 whitespace when pretty printing is on.
7198
53c973f2
AH
71992019-03-26 Alan Hayward <alan.hayward@arm.com>
7200
e79be6e5 7201 * ppc-linux-nat.c: Add include.
53c973f2 7202
d851aa71
AH
72032019-03-26 Alan Hayward <alan.hayward@arm.com>
7204
e79be6e5 7205 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7206
2fe7bab7
AH
72072019-03-26 Alan Hayward <alan.hayward@arm.com>
7208
e79be6e5 7209 * arm-linux-nat.c: Add include.
2fe7bab7 7210
068ef30e
SM
72112019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7212
7213 * source-cache.c (source_cache::get_source_lines): Re-read
7214 fullname after calling open_source_file.
7215
81a24d04
JB
72162019-03-25 John Baldwin <jhb@FreeBSD.org>
7217
7218 * NEWS: Mention TLS support for FreeBSD.
7219
79e7ae11
TT
72202019-03-25 Tom Tromey <tromey@adacore.com>
7221
7222 * minsyms.c (BUNCH_SIZE): Update comment.
7223 (~minimal_symbol_reader): Remove old comment.
7224 (compact_minimal_symbols): Update comment.
7225 (minimal_symbol_reader::install): Remove old comment. Update
7226 other comments.
7227
d45963c2
AH
72282019-03-25 Alan Hayward <alan.hayward@arm.com>
7229
7230 * s390-linux-nat.c: Add include.
7231
0f83012e
AH
72322019-03-25 Alan Hayward <alan.hayward@arm.com>
7233
7234 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7235 Call linux_get_hwcap.
7236 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7237 Likewise.
7238 (aarch64_linux_get_hwcap): Remove function.
7239 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7240 declaration.
7241 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7242 linux_get_hwcap.
7243 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7244 * linux-tdep.c (linux_get_hwcap): Add function.
7245 (linux_get_hwcap2): Likewise.
7246 * linux-tdep.h (linux_get_hwcap): Add declaration.
7247 (linux_get_hwcap2): Likewise.
7248 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7249 (ppc_linux_get_hwcap2): Likewise.
7250 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7251 linux_get_hwcap.
7252 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7253 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7254 (ppc_linux_nat_target::read_description): Likewise.
7255 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7256 * s390-linux-nat.c: Likewise.
7257 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7258
6640a367
TT
72592019-03-24 Tom Tromey <tom@tromey.com>
7260
7261 * ada-lang.c (standard_lookup): Simplify initialization.
7262 (ada_lookup_symbol_nonlocal): Simplify return.
7263 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7264 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7265 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7266 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7267 initialization.
7268 * solib.c (solib_global_lookup): Simplify.
7269 * symtab.c (null_block_symbol): Remove.
7270 (symbol_cache_lookup): Simplify returns.
7271 (lookup_language_this): Simplify returns.
7272 (lookup_symbol_aux): Simplify return.
7273 (lookup_local_symbol): Simplify returns.
7274 (lookup_global_symbol_from_objfile): Simplify return.
7275 (lookup_symbol_in_objfile_symtabs)
7276 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7277 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7278 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7279 * cp-namespace.c (cp_lookup_bare_symbol)
7280 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7281 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7282 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7283 (cp_lookup_symbol_via_imports): Simplify initialization.
7284 (find_symbol_in_baseclass): Likewise.
7285 * symtab.h (null_block_symbol): Remove.
7286 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7287 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7288 (d_lookup_symbol_module): Likewise.
7289 (find_symbol_in_baseclass): Simplify initialization.
7290
a930ebcd
TT
72912019-03-24 Tom Tromey <tom@tromey.com>
7292
7293 * expression.h: Don't include symtab.h.
7294 (struct block): Forward declare.
7295
582942f4
TT
72962019-03-24 Tom Tromey <tom@tromey.com>
7297
7298 * c-exp.y (typebase): Remove casts.
7299 * gdbtypes.c (lookup_unsigned_typename, )
7300 (lookup_signed_typename): Remove cast.
7301 * eval.c (parse_to_comma_and_eval): Remove cast.
7302 * parse.c (write_dollar_variable): Remove cast.
7303 * block.h (struct block) <superblock>: Now const.
7304 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7305 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7306 (map_block): Make "block" const.
7307 * symfile.h (struct quick_symbol_functions)
7308 <map_matching_symbols>: Constify block argument to "callback".
7309 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7310 const.
7311 (find_pc_sect_compunit_symtab): Make "b" const.
7312 (find_symbol_at_address): Likewise.
7313 (search_symbols): Likewise.
7314 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7315 (dw2_debug_names_lookup_symbol): Likewise.
7316 (dw2_map_matching_symbols): Update.
7317 * p-valprint.c (pascal_val_print): Remove "block".
7318 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7319 (aux_add_nonlocal_symbols): Make "block" const.
7320 (resolve_subexp): Remove cast.
7321 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7322 const.
7323 (iterate_over_file_blocks): Likewise.
7324 * f-exp.y (%union) <bval>: Remove.
7325 * coffread.c (patch_opaque_types): Make "b" const.
7326 * spu-tdep.c (spu_catch_start): Make "block" const.
7327 * c-valprint.c (print_unpacked_pointer): Remove "block".
7328 * symmisc.c (dump_symtab_1): Make "b" const.
7329 (block_depth): Make "block" const.
7330 * d-exp.y (%union) <bval>: Remove.
7331 * cp-support.h (cp_lookup_rtti_type): Update.
7332 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7333 * psymtab.c (psym_lookup_symbol): Make "block" const.
7334 (maintenance_check_psymtabs): Make "b" const.
7335 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7336 (enumerate_locals, enumerate_args): Update.
7337 * python/py-symtab.c (stpy_global_block): Make "block" const.
7338 (stpy_static_block): Likewise.
7339 * inline-frame.c (block_starting_point_at): Make "new_block"
7340 const.
7341 * block.c (find_block_in_blockvector): Make return type const.
7342 (blockvector_for_pc_sect): Make "b" const.
7343 (find_block_in_blockvector): Make "b" const.
7344
7ad417dd
TT
73452019-03-23 Tom Tromey <tom@tromey.com>
7346
7347 * varobj.c (varobj_create): Update.
7348 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7349 * printcmd.c (display_command, do_one_display): Don't reset
7350 innermost_block.
7351 * parser-defs.h (enum innermost_block_tracker_type): Move to
7352 expression.h.
7353 (innermost_block): Update comment.
7354 * parse.c (parse_exp_1): Add tracker_types parameter.
7355 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7356 tracker_types parameter. Reset innermost_block.
7357 (parse_exp_in_context): Remove.
7358 (parse_expression_for_completion): Update.
7359 * objfiles.c (~objfile): Don't reset expression_context_block or
7360 innermost_block.
7361 * expression.h (enum innermost_block_tracker_type): Move from
7362 parser-defs.h.
7363 (parse_exp_1): Add tracker_types parameter.
7364 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7365 reset innermost_block.
7366
b366c208
TT
73672019-03-23 Tom Tromey <tom@tromey.com>
7368
7369 * objfiles.h: Include bcache.h.
7370
9bb9b2f9
TT
73712019-03-23 Tom Tromey <tom@tromey.com>
7372
7373 * linespec.c (get_current_search_block): Use
7374 scoped_restore_current_language.
7375 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7376
59c28372
AH
73772019-03-22 Alan Hayward <alan.hayward@arm.com>
7378 Jiong Wang <jiong.wang@arm.com>
7379
7380 * aarch64-linux-tdep.c
7381 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7382 section.
7383 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7384
17e116a7
AH
73852019-03-22 Alan Hayward <alan.hayward@arm.com>
7386 Jiong Wang <jiong.wang@arm.com>
7387
7388 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7389 instructions.
7390 (aarch64_analyze_prologue_test): Add PACIASP test.
7391 (aarch64_prologue_prev_register): Unmask PC value.
7392
11e1b75f
AH
73932019-03-22 Alan Hayward <alan.hayward@arm.com>
7394 Jiong Wang <jiong.wang@arm.com>
7395
7396 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7397 (aarch64_dwarf2_prev_register): Unmask PC value.
7398 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7399 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7400 DW_CFA_AARCH64_negate_ra_state.
7401 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7402
34dcc7cf
AH
74032019-03-22 Alan Hayward <alan.hayward@arm.com>
7404 Jiong Wang <jiong.wang@arm.com>
7405
7406 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7407 registers.
7408 (aarch64_pseudo_register_name): Likewise.
7409 (aarch64_pseudo_register_type): Likewise.
7410 (aarch64_pseudo_register_reggroup_p): Likewise.
7411 (aarch64_gdbarch_init): Add pauth registers.
7412 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7413 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7414 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7415 (struct gdbarch_tdep): Add regnum for ra_state.
7416
1ef53e6b
AH
74172019-03-22 Alan Hayward <alan.hayward@arm.com>
7418 Jiong Wang <jiong.wang@arm.com>
7419
7420 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7421
76bed0fd
AH
74222019-03-22 Alan Hayward <alan.hayward@arm.com>
7423 Jiong Wang <jiong.wang@arm.com>
7424
7425 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7426 function.
7427 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7428 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7429 (aarch64_gdbarch_init): Add puth registers.
7430 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7431 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7432 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7433
ee4fbcfa
AH
74342019-03-22 Alan Hayward <alan.hayward@arm.com>
7435 Jiong Wang <jiong.wang@arm.com>
7436
7437 * aarch64-linux-nat.c
7438 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7439 * aarch64-linux-tdep.c
7440 (aarch64_linux_core_read_description): Likewise.
7441 (aarch64_linux_get_hwcap): New function.
7442 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7443 (aarch64_linux_get_hwcap): New declaration.
7444
6dc0ebde
AH
74452019-03-22 Alan Hayward <alan.hayward@arm.com>
7446 Jiong Wang <jiong.wang@arm.com>
7447
7448 * aarch64-linux-nat.c
7449 (aarch64_linux_nat_target::read_description): Add pauth param.
7450 * aarch64-linux-tdep.c
7451 (aarch64_linux_core_read_description): Likewise.
7452 * aarch64-tdep.c (struct target_desc): Add in pauth.
7453 (aarch64_read_description): Add pauth param.
7454 (aarch64_gdbarch_init): Likewise.
7455 * aarch64-tdep.h (aarch64_read_description): Likewise.
7456 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7457 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7458 * features/Makefile: Add new files.
7459 * features/aarch64-pauth.c: New file.
7460 * features/aarch64-pauth.xml: New file.
7461
595915c1
TT
74622019-03-20 Tom Tromey <tromey@adacore.com>
7463
7464 * infrun.c (handle_inferior_event): Rename from
7465 handle_inferior_event_1. Create a scoped_value_mark.
7466 (handle_inferior_event): Remove.
7467
4c7d57e7
TT
74682019-03-19 Tom Tromey <tromey@adacore.com>
7469
7470 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7471 * infrun.h (print_stop_event): Add "displays" parameter.
7472 * infrun.c (print_stop_event): Add "displays" parameter.
7473
cb246234
PA
74742019-03-19 Pedro Alves <palves@redhat.com>
7475
7476 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7477 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7478 to -1. Fix TABs vs spaces.
7479 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7480 * tui/tui-out.h (tui_ui_out) Add intro comments.
7481 <m_line, m_start_of_line>: In-class initialize, and add describing
7482 comment.
7483
3a0e45b2
AH
74842019-03-18 Alan Hayward <alan.hayward@arm.com>
7485
7486 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7487 variable names.
7488 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7489
5371b850
PA
74902019-03-18 Pedro Alves <palves@redhat.com>
7491 Eli Zaretskii <eliz@gnu.org>
7492
7493 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7494 m_line and m_start_of_line.
7495
b17c4cd0
EZ
74962019-03-18 Eli Zaretskii <eliz@gnu.org>
7497
7498 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7499 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7500 it returns a newline. This fixes a regression in TU mode, whereby
7501 the next line is output on the same screen line as the user input.
7502
4bd56d18
TT
75032019-03-18 Tom Tromey <tromey@adacore.com>
7504
7505 * minsyms.c (minimal_symbol_reader::install): Remove call to
7506 obstack_blank.
7507
55c10aca
PA
75082019-03-18 Pedro Alves <palves@redhat.com>
7509
7510 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7511 New globals.
7512 (apply_style): New, factored out from ...
7513 (apply_ansi_escape): ... this. Handle reverse video mode.
7514 (tui_set_reverse_mode): New function.
7515 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7516 * tui/tui-winsource.c (tui_show_source_line): Use
7517 tui_set_reverse_mode instead of setting A_STANDOUT.
7518 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7519 New setter methods.
7520
647bb750
HD
75212019-03-18 Hannes Domani <ssbssa@yahoo.de>
7522
7523 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7524 Handle tabs.
7525
bff8c71f
TT
75262019-03-18 Tom Tromey <tromey@adacore.com>
7527
7528 * ada-lang.c (empty_array): Add "high" parameter.
7529 (ada_evaluate_subexp): Update.
7530
58785d98
ST
75312019-03-17 Sergei Trofimovich <siarheit@google.com>
7532
7533 * unittests/string_view-selftests.c: Define
7534 _initialize_string_view_selftests unconditionally.
7535
d4cbef22
ВМ
75362019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7537
7538 PR gdb/24350
7539 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7540
fce4c071
ВМ
75412019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7542
7543 PR gdb/24351
7544 * windows-nat.c (display_selector): Fix format specifiers.
7545
f7f0a123
EZ
75462019-03-17 Eli Zaretskii <eliz@gnu.org>
7547
7548 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7549 tui_refill_source_window instead of tui_refresh_win, to update the
7550 current execution line. This fixes redisplay of the current line
7551 when stepping through the code with "next" or "step".
7552
ab42892f
EZ
75532019-03-16 Eli Zaretskii <eliz@gnu.org>
7554
7555 * source-cache.c (source_cache::get_source_lines): Call
7556 find_source_lines to initialize s->nlines. This fixes vertical
7557 scrolling of TUI source window when the DOWN arrow is pressed.
7558
8d8c087f
PW
75592019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7560
7561 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7562 linux-thread-db.c (_initialize_thread_db): Likewise.
7563
798e1c30
EZ
75642019-03-16 Eli Zaretskii <eliz@gnu.org>
7565
7566 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7567 wclrtoeol in tui_show_source_line". This reverts changes made in
7568 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7569
eefba3da
TT
75702019-03-15 Tom Tromey <tom@tromey.com>
7571
7572 * symtab.h (struct minimal_symbol): Derive from
7573 general_symbol_info.
7574 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7575 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7576 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7577 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7578 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7579 (MSYMBOL_SEARCH_NAME): Update.
7580 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7581 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7582 * minsyms.c (minimal_symbol_reader::record_full): Update.
7583
0de2420c
TT
75842019-03-15 Tom Tromey <tom@tromey.com>
7585
7586 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7587
042d75e4
TT
75882019-03-15 Tom Tromey <tom@tromey.com>
7589
7590 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7591 unique_xmalloc_ptr.
7592 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7593 Update.
7594 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7595 (build_minimal_symbol_hash_tables)
7596 (minimal_symbol_reader::install): Update.
7597
db92718b
TT
75982019-03-15 Tom Tromey <tom@tromey.com>
7599
7600 * symtab.c (create_demangled_names_hash): Update.
7601 (symbol_set_names): Update.
7602 * objfiles.h (struct objfile_per_bfd_storage)
7603 <demangled_names_hash>: Now an htab_up.
7604 * objfiles.c (objfile_per_bfd_storage): Simplify.
7605
d6797f46
TT
76062019-03-15 Tom Tromey <tom@tromey.com>
7607
7608 * objfiles.h (struct objfile_per_bfd_storage): Declare
7609 destructor.
7610 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7611 New.
7612 (get_objfile_bfd_data): Use new. Don't initialize
7613 language_of_main.
7614 (free_objfile_per_bfd_storage): Remove.
7615 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7616
741d7538
TT
76172019-03-15 Tom Tromey <tom@tromey.com>
7618
7619 * symfile.c (reread_symbols): Update.
7620 * objfiles.c (objfile::objfile): Update.
7621 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7622 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7623 comment.
7624 (minimal_symbol_reader::install): Update.
7625 (terminate_minimal_symbol_table): Remove.
7626 * jit.c (jit_object_close_impl): Update.
7627
788c80d1
TT
76282019-03-15 Tom Tromey <tom@tromey.com>
7629
7630 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7631 initializations.
7632
1b7a07cb
TT
76332019-03-15 Tom Tromey <tom@tromey.com>
7634
7635 * objfiles.h (struct objfile_per_bfd_storage)
7636 <demangled_hash_languages>: Now a bitset.
7637 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7638 (lookup_minimal_symbol): Update.
7639
3db066bc
TT
76402019-03-15 Tom Tromey <tom@tromey.com>
7641
7642 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7643 Don't return the symbol.
7644 * coffread.c (record_minimal_symbol): Use record_full.
7645
3fff2c37
EZ
76462019-03-14 Eli Zaretskii <eliz@gnu.org>
7647
7648 The MS-Windows port of ncurses fails to switch to a color pair if
7649 one or both of the colors are the implicit default colors. This
7650 change records the default colors when TUI is initialized, and
7651 then specifies them explicitly when a color pair uses the default
7652 colors. This allows color styling in TUI mode on MS-Windows.
7653
7654 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7655 ncurses_norm_attr.
7656 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7657 colors in ncurses_norm_attr.
7658 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7659 "none", replace it with the default color recorded in
7660 ncurses_norm_attr.
7661
3b336828
TT
76622019-03-14 Tom Tromey <tromey@adacore.com>
7663
7664 * source-cache.h (class source_cache) <get_source_lines>: Return
7665 std::string.
7666 * source-cache.c (source_cache::extract_lines): Handle case where
7667 first_pos==npos. Return std::string.
7668 (source_cache::get_source_lines): Update.
7669
d085f989
TT
76702019-03-14 Tom Tromey <tromey@adacore.com>
7671
7672 * NEWS: Add item for "style sources" commands.
7673 * source-cache.c (source_cache::get_source_lines): Check
7674 source_styling.
7675 * cli/cli-style.c (source_styling): New global.
7676 (_initialize_cli_style): Add "style sources" commands.
7677 (show_style_sources): New function.
7678 * cli/cli-style.h (source_styling): Declare.
7679
6f11e682
TT
76802019-03-14 Pedro Alves <palves@redhat.com>
7681 Tom Tromey <tromey@adacore.com>
7682
7683 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7684 * tui/tui-winsource.c (tui_refill_source_window): New function,
7685 from...
7686 (tui_horizontal_source_scroll): ... here. Move some logic.
7687 * cli/cli-style.c (set_style_enabled): Notify new observable.
7688 * tui/tui-hooks.c (tui_redisplay_source): New function.
7689 (tui_attach_detach_observers): Attach or detach
7690 tui_redisplay_source.
7691 * observable.h (source_styling_changed): New observable.
7692 * observable.c: Define source_styling_changed observable.
7693
a068643d
TT
76942019-03-13 Tom Tromey <tromey@adacore.com>
7695
7696 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7697 (i386_gnu_nat_target::store_registers): Update.
7698 * target-debug.h (target_debug_print_std_string): New macro.
7699 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7700 * windows-tdep.c (display_one_tib): Update.
7701 * tui/tui-stack.c (tui_make_status_line): Update.
7702 * top.c (print_inferior_quit_action): Update.
7703 * thread.c (thr_try_catch_cmd): Update.
7704 (add_thread_with_info): Update.
7705 (thread_target_id_str): Update.
7706 (thr_try_catch_cmd): Update.
7707 (thread_command): Update.
7708 (thread_find_command): Update.
7709 * record-btrace.c (record_btrace_target::info_record)
7710 (record_btrace_resume_thread, record_btrace_target::resume)
7711 (record_btrace_cancel_resume, record_btrace_step_thread)
7712 (record_btrace_target::wait, record_btrace_target::wait)
7713 (record_btrace_target::wait, record_btrace_target::stop): Update.
7714 * progspace.c (print_program_space): Update.
7715 * process-stratum-target.c
7716 (process_stratum_target::thread_address_space): Update.
7717 * linux-fork.c (linux_fork_mourn_inferior)
7718 (detach_checkpoint_command, info_checkpoints_command)
7719 (linux_fork_context): Update.
7720 (linux_fork_detach): Update.
7721 (class scoped_switch_fork_info): Update.
7722 (delete_checkpoint_command): Update.
7723 * infrun.c (follow_fork_inferior): Update.
7724 (follow_fork_inferior): Update.
7725 (proceed_after_vfork_done): Update.
7726 (handle_vfork_child_exec_or_exit): Update.
7727 (follow_exec): Update.
7728 (displaced_step_prepare_throw): Update.
7729 (displaced_step_restore): Update.
7730 (start_step_over): Update.
7731 (resume_1): Update.
7732 (clear_proceed_status_thread): Update.
7733 (proceed): Update.
7734 (print_target_wait_results): Update.
7735 (do_target_wait): Update.
7736 (context_switch): Update.
7737 (stop_all_threads): Update.
7738 (restart_threads): Update.
7739 (finish_step_over): Update.
7740 (handle_signal_stop): Update.
7741 (switch_back_to_stepped_thread): Update.
7742 (keep_going_pass_signal): Update.
7743 (print_exited_reason): Update.
7744 (normal_stop): Update.
7745 * inferior.c (inferior_pid_to_str): Change return type.
7746 (print_selected_inferior): Update.
7747 (add_inferior): Update.
7748 (detach_inferior): Update.
7749 * dummy-frame.c (fprint_dummy_frames): Update.
7750 * dcache.c (dcache_info_1): Update.
7751 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7752 (btrace_fetch, btrace_clear): Update.
7753 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7754 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7755 type.
7756 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7757 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7758 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7759 * gdbarch.c, gdbarch.h: Rebuild.
7760 * gdbarch.sh (core_pid_to_str): Change return type.
7761 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7762 return type.
7763 (windows_nat_target::pid_to_str): Change return type.
7764 (windows_delete_thread): Update.
7765 (windows_nat_target::attach): Update.
7766 (windows_nat_target::files_info): Update.
7767 * target-delegates.c: Rebuild.
7768 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7769 return type.
7770 (sol_thread_target::pid_to_str): Change return type.
7771 * remote.c (class remote_target) <pid_to_str>: Change return
7772 type.
7773 (remote_target::pid_to_str): Change return type.
7774 (extended_remote_target::attach, remote_target::remote_stop_ns)
7775 (remote_target::remote_notif_remove_queued_reply)
7776 (remote_target::push_stop_reply, remote_target::disable_btrace):
7777 Update.
7778 (extended_remote_target::attach): Update.
7779 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7780 type.
7781 (gdbsim_target::pid_to_str): Change return type.
7782 * ravenscar-thread.c (struct ravenscar_thread_target)
7783 <pid_to_str>: Change return type.
7784 (ravenscar_thread_target::pid_to_str): Change return type.
7785 * procfs.c (class procfs_target) <pid_to_str>: Change return
7786 type.
7787 (procfs_target::pid_to_str): Change return type.
7788 (procfs_target::attach): Update.
7789 (procfs_target::detach): Update.
7790 (procfs_target::fetch_registers): Update.
7791 (procfs_target::store_registers): Update.
7792 (procfs_target::wait): Update.
7793 (procfs_target::files_info): Update.
7794 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7795 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7796 return type.
7797 (nto_procfs_target::pid_to_str): Change return type.
7798 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7799 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7800 return type.
7801 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7802 (exit_lwp): Update.
7803 (attach_proc_task_lwp_callback, get_detach_signal)
7804 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7805 (linux_nat_target::resume, wait_lwp, stop_callback)
7806 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7807 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7808 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7809 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7810 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7811 type.
7812 (inf_ptrace_target::attach): Update.
7813 (inf_ptrace_target::files_info): Update.
7814 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7815 type.
7816 (go32_nat_target::pid_to_str): Change return type.
7817 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7818 (gnu_nat_target::wait): Update.
7819 (gnu_nat_target::wait): Update.
7820 (gnu_nat_target::resume): Update.
7821 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7822 (fbsd_nat_target::wait): Update.
7823 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7824 type.
7825 (darwin_nat_target::attach): Update.
7826 * corelow.c (class core_target) <pid_to_str>: Change return type.
7827 (core_target::pid_to_str): Change return type.
7828 * target.c (normal_pid_to_str): Change return type.
7829 (default_pid_to_str): Likewise.
7830 (target_pid_to_str): Change return type.
7831 (target_translate_tls_address): Update.
7832 (target_announce_detach): Update.
7833 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7834 return type.
7835 (bsd_uthread_target::pid_to_str): Change return type.
7836 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7837 type.
7838 (bsd_kvm_target::pid_to_str): Change return type.
7839 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7840 return type.
7841 (aix_thread_target::pid_to_str): Change return type.
7842 * target.h (struct target_ops) <pid_to_str>: Change return type.
7843 (target_pid_to_str, normal_pid_to_str): Likewise.
7844 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7845 type.
7846 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7847 type.
7848 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7849 return type.
7850 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7851 type.
7852 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7853 type.
7854 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7855 return type.
7856
b4be1b06
SM
78572019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7858
7859 * NEWS: Mention that the new default MI version is 3. Mention
7860 changes to the output of commands and events that deal with
7861 multi-location breakpoints.
7862 * breakpoint.c: Include "mi/mi-out.h".
7863 (print_one_breakpoint): Change output syntax if using MI version
7864 >= 3.
7865 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7866 New.
7867 (mi_multi_location_breakpoint_output_fixed): New.
7868 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7869 (mi_cmd_fix_multi_location_breakpoint_output): New.
7870 (mi_multi_location_breakpoint_output_fixed): New.
7871 * mi/mi-cmds.c (mi_cmds): Register command
7872 -fix-multi-location-breakpoint-output.
7873 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7874 interpreter "mi".
7875
8e5e5494
SM
78762019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7877
7878 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7879 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7880 instantiate mi_ui_out based on interpreter name.
7881 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7882 * mi/mi-main.c (mi_load_progress): Likewise.
7883
197df35e
JB
78842019-03-12 John Baldwin <jhb@FreeBSD.org>
7885
7886 * NEWS: Combine separate "New targets" sections for 8.3.
7887
8399425f
JB
78882019-03-12 John Baldwin <jhb@FreeBSD.org>
7889
7890 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7891 (ppcfbsd_init_abi): Install gdbarch
7892 "fetch_tls_load_module_address" and "get_thread_local_address"
7893 methods.
7894
b0f87ed0
JB
78952019-03-12 John Baldwin <jhb@FreeBSD.org>
7896
7897 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7898 (riscv_fbsd_init_abi): Install gdbarch
7899 "fetch_tls_load_module_address" and "get_thread_local_address"
7900 methods.
7901
ce25aa57
JB
79022019-03-12 John Baldwin <jhb@FreeBSD.org>
7903
7904 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7905 (i386fbsd_init_abi): Install gdbarch
7906 "fetch_tls_load_module_address" and "get_thread_local_address"
7907 methods.
7908
f5424cfa
JB
79092019-03-12 John Baldwin <jhb@FreeBSD.org>
7910
7911 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7912 (amd64fbsd_init_abi): Install gdbarch
7913 "fetch_tls_load_module_address" and "get_thread_local_address"
7914 methods.
7915
945f3901
JB
79162019-03-12 John Baldwin <jhb@FreeBSD.org>
7917
7918 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7919 (struct fbsd_pspace_data): New type.
7920 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7921 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7922 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7923 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7924 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7925
ef0bd204
JB
79262019-03-12 John Baldwin <jhb@FreeBSD.org>
7927
7928 * gdbtypes.c (lookup_struct_elt): New function.
7929 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7930 * gdbtypes.h (struct struct_elt): New type.
7931 (lookup_struct_elt): New prototype.
7932
36c53a02
JB
79332019-03-12 John Baldwin <jhb@FreeBSD.org>
7934
7935 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7936 remove disabled code block.
7937
6e056c81
JB
79382019-03-12 John Baldwin <jhb@FreeBSD.org>
7939
7940 * gdbarch.sh (get_thread_local_address): New method.
7941 * gdbarch.h, gdbarch.c: Regenerate.
7942 * target.c (target_translate_tls_address): Use
7943 gdbarch_get_thread_local_address if present instead of
7944 target::get_thread_local_address.
7945
cd250a18
JB
79462019-03-12 John Baldwin <jhb@FreeBSD.org>
7947
7948 * target.h (target::get_thread_local_address): Update comment.
7949
df22c1e5
JB
79502019-03-12 John Baldwin <jhb@FreeBSD.org>
7951
7952 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7953 objfile->separate_debug_objfile_backlink if not NULL.
7954
dd6876c9
JB
79552019-03-12 John Baldwin <jhb@FreeBSD.org>
7956
7957 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7958 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7959 (amd64bsd_store_inferior_registers): Likewise.
7960 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7961 Enable segment base registers.
7962 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7963 PT_GETFSBASE and PT_GETGSBASE.
7964 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7965 PT_SETGSBASE.
7966 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7967 segment base registers.
7968 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7969
1163a4b7
JB
79702019-03-12 John Baldwin <jhb@FreeBSD.org>
7971
7972 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7973 Update calls to i386_target_description to add 'segments'
7974 parameter.
7975 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7976 add segment base registers.
7977 * arch/i386.c (i386_create_target_description): Add 'segments'
7978 parameter to enable segment base registers.
7979 * arch/i386.h (i386_create_target_description): Likewise.
7980 * features/i386/32bit-segments.xml: New file.
7981 * features/i386/32bit-segments.c: Generate.
7982 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7983 call to i386_target_description to add 'segments' parameter.
7984 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7985 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7986 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7987 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
7988 if feature is present.
7989 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
7990 Add 'segments' parameter to call to i386_target_description.
7991 (i386_target_description): Add 'segments' parameter to enable
7992 segment base registers.
7993 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
7994 to call to i386_target_description.
7995 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
7996 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
7997 Define I386_NUM_REGS.
7998 (i386_target_description): Add 'segments' parameter to enable
7999 segment base registers.
8000
3a350822
EZ
80012019-03-12 Eli Zaretskii <eliz@gnu.org>
8002
8003 PR/24325
8004 * source-cache.c: #undef open and close, to avoid unresolved
8005 externals during linking.
8006
ffdd69cf
TT
80072019-03-12 Tom Tromey <tromey@adacore.com>
8008
8009 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8010 const. Add initializers.
8011 (_initialize_remote): Don't initialize ptid globals.
8012
ec148c57
PA
80132019-03-12 Pedro Alves <palves@redhat.com>
8014
8015 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8016
32764270
PA
80172019-03-12 Pedro Alves <palves@redhat.com>
8018
8019 * cp-name-parser.y (main): Remove unused 'len' variable.
8020
17547186
TT
80212019-03-12 Tom Tromey <tromey@adacore.com>
8022
8023 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8024 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8025
d3a70e03
TT
80262019-03-12 Tom Tromey <tromey@adacore.com>
8027
8028 * linux-nat.c (iterate_over_lwps): Update.
8029 (stop_callback): Remove parameter.
8030 (stop_wait_callback, detach_callback, resume_set_callback)
8031 (select_singlestep_lwp_callback, set_ignore_sigint)
8032 (status_callback, resumed_callback, resume_clear_callback)
8033 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8034 data parameter.
8035 (linux_nat_target::detach, linux_nat_target::resume)
8036 (linux_stop_and_wait_all_lwps, select_event_lwp)
8037 (linux_nat_filter_event, linux_nat_wait_1)
8038 (linux_nat_target::kill, linux_nat_target::stop)
8039 (linux_nat_target::stop): Update.
8040 (linux_nat_resume_callback): Change type.
8041 (resume_stopped_resumed_lwps, count_events_callback)
8042 (select_event_lwp_callback): Likewise.
8043 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8044 * arm-linux-nat.c (struct update_registers_data): Remove.
8045 (update_registers_callback): Change type.
8046 (arm_linux_insert_hw_breakpoint1): Update.
8047 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8048 parameter.
8049 (x86_linux_dr_set_addr): Update.
8050 (x86_linux_dr_set_control): Update.
8051 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8052 (iterate_over_lwps): Use gdb::function_view.
8053 * nat/aarch64-linux-hw-point.c (struct
8054 aarch64_dr_update_callback_param): Remove.
8055 (debug_reg_change_callback): Change type.
8056 (aarch64_notify_debug_reg_change): Update.
8057 * s390-linux-nat.c (s390_refresh_per_info): Update.
8058
82cb27ff
TT
80592019-03-11 Tom Tromey <tromey@adacore.com>
8060
8061 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8062 redundant assignment to "this_cu".
8063
568c0683
SM
80642019-03-08 Simon Marchi <simon.marchi@efficios.com>
8065
8066 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8067
f09ce22d
SM
80682019-03-08 Simon Marchi <simon.marchi@efficios.com>
8069
8070 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8071 from...
8072 (rank_one_type): ... this.
8073
595f96a9
SM
80742019-03-08 Simon Marchi <simon.marchi@efficios.com>
8075
8076 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8077 from...
8078 (rank_one_type): ... this.
8079
2598a94b
SM
80802019-03-08 Simon Marchi <simon.marchi@efficios.com>
8081
8082 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8083 from...
8084 (rank_one_type): ... this.
8085
7f17b20d
SM
80862019-03-08 Simon Marchi <simon.marchi@efficios.com>
8087
8088 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8089 from...
8090 (rank_one_type): ... this.
8091
2c509035
SM
80922019-03-08 Simon Marchi <simon.marchi@efficios.com>
8093
8094 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8095 from...
8096 (rank_one_type): ... this.
8097
0dd322dc
SM
80982019-03-08 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8101 from...
8102 (rank_one_type): ... this.
8103
41ea4728
SM
81042019-03-08 Simon Marchi <simon.marchi@efficios.com>
8105
8106 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8107 from...
8108 (rank_one_type): ... this.
8109
793cd1d2
SM
81102019-03-08 Simon Marchi <simon.marchi@efficios.com>
8111
8112 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8113 from...
8114 (rank_one_type): ... this.
8115
34910087
SM
81162019-03-08 Simon Marchi <simon.marchi@efficios.com>
8117
8118 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8119 from...
8120 (rank_one_type): ... this.
8121
f1f832d6
SM
81222019-03-08 Simon Marchi <simon.marchi@efficios.com>
8123
8124 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8125 from...
8126 (rank_one_type): ... this.
8127
b9f4512f
SM
81282019-03-08 Simon Marchi <simon.marchi@efficios.com>
8129
8130 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8131 from...
8132 (rank_one_type): ... this.
8133
9293fc63
SM
81342019-03-08 Simon Marchi <simon.marchi@efficios.com>
8135
8136 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8137 from...
8138 (rank_one_type): ... this.
8139
e3abbe7e
PW
81402019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8141
8142 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8143 inferior-events' shows the example events.
8144
e4adb939
EZ
81452019-03-08 Eli Zaretskii <eliz@gnu.org>
8146
8147 Support styling on native MS-Windows console
8148
8149 PR/24315
8150 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8151 on MS-Windows if $TERM is not defined.
8152
8153 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8154
8155 * posix-hdep.c (gdb_console_fputs):
8156 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8157 functions.
8158 * ui-file.h (gdb_console_fputs): Add prototype.
8159
8160 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8161 back to fputs only if the former returns zero.
8162
25629dfd
TT
81632019-03-07 Tom Tromey <tom@tromey.com>
8164
8165 * symmisc.c (print_symbol_bcache_statistics): Update.
8166 (print_objfile_statistics): Update.
8167 * symfile.c (allocate_symtab): Update.
8168 * stabsread.c: Don't include bcache.h.
8169 * psymtab.h (struct psymbol_bcache): Don't declare.
8170 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8171 (psymbol_bcache_init, psymbol_bcache_free)
8172 (psymbol_bcache_get_bcache): Don't declare.
8173 * psymtab.c (struct psymbol_bcache): Remove.
8174 (psymtab_storage::psymtab_storage): Update.
8175 (psymtab_storage::~psymtab_storage): Update.
8176 (psymbol_bcache_init, psymbol_bcache_free)
8177 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8178 (add_psymbol_to_bcache): Update.
8179 (allocate_psymtab): Update.
8180 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8181 macro_cache>: No longer pointers.
8182 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8183 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8184 * macrotab.c (macro_bcache): Update.
8185 * macroexp.c: Don't include bcache.h.
8186 * gdbtypes.c (check_types_worklist): Update.
8187 (types_deeply_equal): Remove TRY/CATCH. Update.
8188 * elfread.c (elf_symtab_read): Update.
8189 * dwarf2read.c: Don't include bcache.h.
8190 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8191 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8192 (print_bcache_statistics, bcache_memory_used): Don't declare.
8193 (struct bcache): Move from bcache.c. Add constructor, destructor,
8194 methods. Rename all data members.
8195 * bcache.c (struct bcache): Move to bcache.h.
8196 (bcache::expand_hash_table): Rename from expand_hash_table.
8197 (bcache): Remove.
8198 (bcache::insert): Rename from bcache_full.
8199 (bcache::compare): Rename from bcache_compare.
8200 (bcache_xmalloc): Remove.
8201 (bcache::~bcache): Rename from bcache_xfree.
8202 (bcache::print_statistics): Rename from print_bcache_statistics.
8203 (bcache::memory_used): Rename from bcache_memory_used.
8204
fe726667
PA
82052019-03-07 Pedro Alves <palves@redhat.com>
8206
8207 * infrun.c (normal_stop): Also check for
8208 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8209
7584bb30
AB
82102019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8211
8212 * f-lang.c (value_from_host_double): Moved to...
8213 * value.c (value_from_host_double): ...here.
8214 * value.h (value_from_host_double): Declare.
8215 * guile/scm-math.c (vlscm_convert_typed_number): Use
8216 value_from_host_double.
8217 (vlscm_convert_number): Likewise.
8218 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8219 * python/py-value.c (convert_value_from_python): Likewise.
8220
a7b1986e
TT
82212019-03-06 Tom Tromey <tom@tromey.com>
8222
8223 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8224
0ccf4211
TT
82252019-03-06 Tom Tromey <tom@tromey.com>
8226
8227 * utils.h (free_current_contents): Don't declare.
8228 * utils.c (free_current_contents): Remove.
8229
fe7b42e5
TT
82302019-03-06 Tom Tromey <tom@tromey.com>
8231
8232 * top.c (quit_force): Update.
8233 * main.c (captured_command_loop): Update.
8234 * common/new-op.c (operator new): Update.
8235 * common/common-exceptions.c (struct catcher)
8236 <save_cleanup_chain>: Remove member.
8237 (exceptions_state_mc_init): Update.
8238 (exception_try_scope_entry): Return nullptr.
8239 (exception_try_scope_exit, exception_rethrow)
8240 (throw_exception_sjlj, throw_exception_cxx): Update.
8241 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8242 (all_cleanups, do_cleanups, discard_cleanups)
8243 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8244 (restore_cleanups, restore_final_cleanups): Don't declare.
8245 (do_final_cleanups): Remove parameter.
8246 * common/cleanups.c (cleanup_chain, make_cleanup)
8247 (make_cleanup_dtor, all_cleanups, do_cleanups)
8248 (discard_my_cleanups, discard_cleanups)
8249 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8250 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8251 (null_cleanup): Remove.
8252 (do_final_cleanups): Remove parameter.
8253
c6321f19
TT
82542019-03-06 Tom Tromey <tom@tromey.com>
8255
8256 * remote.c (remote_target::remote_parse_stop_reply): Use
8257 unique_xmalloc_ptr.
8258
61b30099
TT
82592019-03-06 Tom Tromey <tom@tromey.com>
8260
8261 * stabsread.c (struct stabs_field_info): Rename from field_info.
8262 <list, fnlist>: Add initializers.
8263 <obstack>: New member.
8264 (read_member_functions, read_struct_fields, read_baseclasses):
8265 Allocate on obstack. Don't use cleanups.
8266 (read_one_struct_field, read_member_functions, read_struct_fields)
8267 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8268 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8269 (read_struct_type): Update.
8270
6cceac94
TT
82712019-03-06 Tom Tromey <tom@tromey.com>
8272
8273 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8274 * common/filestuff.h (make_cleanup_close): Don't declare.
8275 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8276 Remove.
8277
72412762
TT
82782019-03-06 Tom Tromey <tom@tromey.com>
8279
8280 * solib-aix.c: Use make_scope_exit.
8281
2b6ff1c0
TT
82822019-03-06 Tom Tromey <tom@tromey.com>
8283
8284 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8285 Use make_scope_exit.
8286
d01c5877
TT
82872019-03-06 Tom Tromey <tom@tromey.com>
8288
8289 * solib-svr4.c (disable_probes_interface): Remove parameter.
8290 (svr4_handle_solib_event): Use make_scope_exit.
8291
32603266
TT
82922019-03-06 Tom Tromey <tom@tromey.com>
8293
8294 * remote.c (struct stop_reply_deleter): Remove.
8295 (stop_reply_up): Update.
8296 (struct stop_reply): Derive from notif_event. Don't typedef.
8297 <regcache>: Now a std::vector.
8298 (stop_reply_xfree): Remove.
8299 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8300 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8301 (remote_target::discard_pending_stop_replies): Use delete.
8302 (remote_target::remote_parse_stop_reply): Update.
8303 (remote_target::process_stop_reply): Update.
8304 * remote-notif.h (struct notif_event): Add virtual destructor.
8305 Remove "dtr" member.
8306 (struct notif_client) <alloc_event>: Return a unique_ptr.
8307 (notif_event_xfree): Don't declare.
8308 (notif_event_up): New typedef.
8309 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8310 (notif_event_xfree, do_notif_event_xfree): Remove.
8311 (remote_notif_state_xfree): Update.
8312
9799571e
TT
83132019-03-06 Tom Tromey <tom@tromey.com>
8314
8315 * infrun.c (displaced_step_clear_cleanup): Now a
8316 forward_scope_exit type.
8317 (displaced_step_prepare_throw): Update.
8318 (displaced_step_fixup): Update.
8319
09e3c4ca
TT
83202019-03-06 Tom Tromey <tom@tromey.com>
8321
8322 * inferior.h (class inferior): Update comment.
8323 * gdbthread.h (class thread_info): Update comment.
8324
e2a03548
TT
83252019-03-06 Joel Brobecker <brobecker@adacore.com>
8326 Tom Tromey <tom@tromey.com>
8327
8328 * stabsread.h (struct stab_section_list): Remove.
8329 (coffstab_build_psymtabs): Update.
8330 * dbxread.c (symbuf_sections): Now a std::vector.
8331 (sect_idx): New global.
8332 (fill_symbuf): Update.
8333 (coffstab_build_psymtabs): Change type of stabsects parameter.
8334 Update.
8335 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8336 std::vector.
8337 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8338 (coff_locate_sections): Update.
8339 (coff_symfile_read): Remove cleanups. Update.
8340 (init_stringtab): Add storage parameter.
8341 (free_stringtab, free_stringtab_cleanup): Remove.
8342 (init_lineno): Add storage parameter.
8343 (free_linetab, free_linetab_cleanup): Remove.
8344
b7e60d85
PA
83452019-03-06 Pedro Alves <palves@redhat.com>
8346
8347 * linux-fork.c (fork_info::clobber_regs): Delete.
8348 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8349 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8350 comment. Adjust.
8351 (scoped_switch_fork_info::scoped_switch_fork_info)
8352 (checkpoint_command, linux_fork_context): Adjust
8353 fork_save_infrun_state calls.
8354
e52c971f
PA
83552019-03-06 Pedro Alves <palves@redhat.com>
8356
8357 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8358 (inf_has_multiple_threads): Return 'bool' and rewrite using
8359 inferior_info::threads().
8360
06974e6c
PA
83612019-03-06 Pedro Alves <palves@redhat.com>
8362
8363 * linux-fork.c: Include <list>.
8364 (fork_list): Now a std::list instance.
8365 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8366 (forks_exist_p, find_last_fork): Adjust.
8367 (new_fork): Delete.
8368 (one_fork_p): New.
8369 (add_fork): Adjust.
8370 (free_fork): Delete, folded into fork_info::~fork_info().
8371 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8372 Adjust.
8373 (init_fork_list): Delete.
8374 (linux_fork_killall, linux_fork_mourn_inferior)
8375 (linux_fork_detach, info_checkpoints_command): Adjust.
8376 (_initialize_linux_fork): No longer call init_fork_list.
8377
72f31aea
PA
83782019-03-06 Pedro Alves <palves@redhat.com>
8379
8380 * linux-fork.c (new_fork): New, split out of ...
8381 (add_fork): ... this. Return void. Move "first fork" special
8382 case from here, to ...
8383 (checkpoint_command): ... here.
8384 * linux-linux.h (add_fork): Return void.
8385
efbecbc1
AB
83862019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8387
8388 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8389
0841c79a
AB
83902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8391 Chris January <chris.january@arm.com>
8392 David Lecomber <david.lecomber@arm.com>
8393
8394 * f-exp.y: New token, UNOP_INTRINSIC.
8395 (exp): New pattern using UNOP_INTRINSIC token.
8396 (f77_keywords): Add 'abs' keyword.
8397 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8398 (value_from_host_double): New function.
8399 (evaluate_subexp_f): Support UNOP_ABS.
8400
4a270568
AB
84012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8402
8403 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8404 types.
8405
067630bd
AB
84062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8407
8408 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8409 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8410 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8411
3be47f7a
AB
84122019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8413
8414 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8415
4d00f5d8
AB
84162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8417 Chris January <chris.january@arm.com>
8418
8419 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8420 * f-exp.y: Define 'KIND' token.
8421 (exp): New pattern for KIND expressions.
8422 (ptype): Handle types with a kind extension.
8423 (direct_abs_decl): Extend to spot kind extensions.
8424 (f77_keywords): Add 'kind' to the list.
8425 (push_kind_type): New function.
8426 (convert_to_kind_type): New function.
8427 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8428 * parse.c (operator_length_standard): Likewise.
8429 * parser-defs.h (enum type_pieces): Add tp_kind.
8430 * std-operator.def: Add UNOP_KIND.
8431
e454224f
AB
84322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8433
8434 * f-exp.y (f_parse): Set yydebug.
8435
9dad4a58
AB
84362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8437
8438 * f-lang.c (evaluate_subexp_f): New function.
8439 (exp_descriptor_f): New global.
8440 (f_language_defn): Use exp_descriptor_f instead of
8441 exp_descriptor_standard.
8442
c8f91604
AB
84432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8444
8445 * f-exp.y (struct token): Add comments.
8446 (dot_ops): Remove uppercase versions and the end marker.
8447 (f77_keywords): Likewise.
8448 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8449 entries in the dot_ops array are case insensitive, and use
8450 strncasecmp to compare strings. Also some whitespace cleanup in
8451 this area. Similar for the f77_keywords array, except entries in
8452 this list might be case sensitive.
8453
dd9f2c76
AB
84542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8455
8456 * f-exp.y (struct f77_boolean_val): Add comments.
8457 (boolean_values): Remove uppercase versions, and end marker.
8458 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8459 and use strncasecmp to achieve case insensitivity. Additionally,
8460 perform whitespace cleanup around this code.
8461
67a3048c
TT
84622019-03-06 Tom Tromey <tromey@adacore.com>
8463
8464 * remote-sim.c (gdbsim_target_open): Use result of
8465 gdb_argv::release.
8466
aa3cfbda
RB
84672019-03-06 Richard Bunt <richard.bunt@arm.com>
8468 Dirk Schubert <dirk.schubert@arm.com>
8469 Chris January <chris.january@arm.com>
8470
8471 * eval.c (evaluate_subexp_standard): Call Fortran argument
8472 wrapping logic.
8473 * f-lang.c (struct value): A value which can be passed into a
8474 Fortran function call.
8475 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8476 where appropriate.
8477 (struct type): Value ready for a Fortran function call.
8478 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8479 is needed.
8480 * f-lang.h (fortran_argument_convert): Declaration.
8481 (fortran_preserve_arg_pointer): Declaration.
8482 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8483
ea38e5df
TT
84842019-03-05 Tom Tromey <tromey@adacore.com>
8485
8486 * python/py-prettyprint.c (print_string_repr): Remove #if.
8487 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8488
06b5b831
TT
84892019-03-05 Tom Tromey <tromey@adacore.com>
8490
8491 * target.c (the_dummy_target): Move later. Change type to
8492 "dummy_target".
8493 (initialize_targets): Don't initialize the_dummy_target.
8494
edbd9e45
TT
84952019-03-05 Tom Tromey <tromey@adacore.com>
8496
8497 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8498 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8499
c119e040
TT
85002019-03-05 Tom Tromey <tromey@adacore.com>
8501
8502 * windows-nat.c (windows_nat_target::attach)
8503 (windows_nat_target::detach): Don't call gdb_flush.
8504 * valprint.c (generic_val_print, val_print, val_print_string):
8505 Don't call gdb_flush.
8506 * utils.c (defaulted_query): Don't call gdb_flush.
8507 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8508 * target.c (target_announce_detach): Don't call gdb_flush.
8509 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8510 * remote.c (extended_remote_target::attach): Don't call
8511 gdb_flush.
8512 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8513 * printcmd.c (do_examine): Don't call gdb_flush.
8514 (info_display_command): Don't call gdb_flush.
8515 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8516 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8517 * memattr.c (info_mem_command): Don't call gdb_flush.
8518 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8519 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8520 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8521 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8522 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8523 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8524 (gnu_nat_target::detach): Don't call gdb_flush.
8525 * f-valprint.c (f_val_print): Don't call gdb_flush.
8526 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8527 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8528 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8529 gdb_flush.
8530 * c-valprint.c (c_val_print): Don't call gdb_flush.
8531 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8532
895dafa6
TT
85332019-03-05 Tom Tromey <tromey@adacore.com>
8534
8535 * varobj.c (update_dynamic_varobj_children): Update.
8536 (install_default_visualizer): Use reset, not release.
8537 * value.c (set_internalvar): Update.
8538 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8539 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8540 ATTRIBUTE_UNUSED_RESULT.
8541
88a774b9
TT
85422019-03-05 Tom Tromey <tromey@adacore.com>
8543
8544 * remote.c (class scoped_remote_fd) <release>: Add
8545 ATTRIBUTE_UNUSED_RESULT.
8546
4e4a8b93
TT
85472019-03-05 Tom Tromey <tromey@adacore.com>
8548
8549 * macroexp.c (struct macro_buffer) <release>: Add
8550 ATTRIBUTE_UNUSED_RESULT.
8551
083eef1f
TT
85522019-03-05 Tom Tromey <tromey@adacore.com>
8553
8554 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8555 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8556 ATTRIBUTE_UNUSED_RESULT.
8557
3cabd438
TT
85582019-03-05 Tom Tromey <tromey@adacore.com>
8559
8560 * common/scoped_fd.h (class scoped_fd) <release>: Add
8561 ATTRIBUTE_UNUSED_RESULT.
8562
41e3300a
TT
85632019-03-05 Tom Tromey <tromey@adacore.com>
8564
8565 * parser-defs.h (struct parser_state) <release>: Add
8566 ATTRIBUTE_UNUSED_RESULT.
8567
18cb7c9f
TT
85682019-03-05 Tom Tromey <tromey@adacore.com>
8569
8570 * utils.h (class gdb_argv) <release>: Add
8571 ATTRIBUTE_UNUSED_RESULT.
8572 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8573
41fa577f
EZ
85742019-03-02 Eli Zaretskii <eliz@gnu.org>
8575
a6a4b2c6
EZ
8576 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8577 for-loop range, to avoid compiler warnings.
8578
8579 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8580 avoid compiler warnings about unused variables.
8581
742a7df5
EZ
8582 * NEWS: Mention end of support for native debugging on MS-Windows
8583 before XP.
8584
41fa577f
EZ
8585 PR gdb/24292
8586 * common/netstuff.c:
8587 * gdbserver/gdbreplay.c
8588 * gdbserver/remote-utils.c:
8589 * ser-tcp.c:
8590 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8591 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8592 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8593 'getaddrinfo' and 'freeaddrinfo' were not available before
8594 Windows XP, and mingw.org's MinGW headers by default define
8595 _WIN32_WINNT to 0x500.
8596
827f438f
GB
85972019-03-01 Gary Benson <gbenson@redhat.com>
8598
8599 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8600
92137da0
RO
86012019-02-28 Brian Vandenberg <phantall@gmail.com>
8602 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8603
8604 PR gdb/8527
8605 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8606 set_sigint_trap, clear_sigint_trap.
8607
799efbe8
PW
86082019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8609
8610 * target.c (target_detach): Clear the regcache and the
8611 frame cache.
8612
8ed25214
PA
86132019-02-27 Pedro Alves <palves@redhat.com>
8614
8615 * utils.c (set_screen_size): When we cap the height/width sizes,
8616 tweak the corresponding command variable to show "unlimited":
8617
23031e31
SJ
86182019-02-27 Saagar Jha <saagar@saagarjha.com>
8619 Pedro Alves <palves@redhat.com>
8620
8621 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8622 before calling rl_set_screen_size.
8623
6c28e44a
TT
86242019-02-27 Tom Tromey <tromey@adacore.com>
8625
8626 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8627 define.
8628 * python/py-value.c: Remove Python 2.4 workaround.
8629 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8630 workaround.
8631 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8632 Python 2.4 workaround.
8633 * python/python-internal.h: Remove Python 2.4 comment.
8634 (Py_ssize_t): Don't define.
8635 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8636 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8637 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8638 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8639 * python/python.c (do_start_initialization): Remove Python 2.4
8640 workaround.
8641 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8642 (print_children): Remove Python 2.4 workaround.
8643 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8644 workaround.
8645 (CHARBUFFERPROC_NAME): Remove.
8646 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8647 Python 2.4 workaround.
8648
2c3fc25d 86492019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8650
2c3fc25d
KB
8651 * NEWS: Note minimum Python version.
8652
6ca62222
KB
86532019-02-27 Kevin Buettner <kevinb@redhat.com>
8654
8655 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8656 code from these functions. Remove corresponding ifdefs. Use
8657 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8658 Remove gotos and target of gotos.
8659 (infpy_search_memory): Likewise.
8660
f4bc7d2c
AB
86612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8662
8663 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8664 (hppa_gdbarch_init): Don't register deleted functions with
8665 gdbarch.
8666
9734a586
AB
86672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8668
8669 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8670 (h8300_unwind_sp): Delete.
8671 (h8300_dummy_id): Delete.
8672 (h8300_gdbarch_init): Don't register deleted functions with
8673 gdbarch.
8674
68b867f3
AB
86752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8676
8677 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8678 (ft32_unwind_pc): Delete.
8679 (ft32_unwind_sp): Delete.
8680 (ft32_gdbarch_init): Don't register deleted functions with
8681 gdbarch.
8682
2fbe7ad0
AB
86832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8684
8685 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8686 (frv_unwind_pc): Delete.
8687 (frv_unwind_sp): Delete.
8688 (frv_gdbarch_init): Don't register deleted functions with
8689 gdbarch.
8690
76055cbe
AB
86912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8692
8693 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8694 (riscv_unwind_pc): Delete.
8695 (riscv_unwind_sp): Delete.
8696 (riscv_gdbarch_init): Don't register deleted functions with
8697 gdbarch.
8698
4133e5a1
AB
86992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8700
8701 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8702 (csky_unwind_pc): Delete.
8703 (csky_unwind_sp): Delete.
8704 (csky_gdbarch_init): Don't register deleted functions with
8705 gdbarch.
8706
8010f576
AB
87072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8708
8709 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8710 (cris_unwind_pc): Delete.
8711 (cris_unwind_sp): Delete.
8712 (cris_gdbarch_init): Don't register deleted functions with
8713 gdbarch.
8714
b56bf084
AB
87152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8716
8717 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8718 (bfin_unwind_pc): Delete.
8719 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8720
a19a650f
AB
87212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8722
8723 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8724 (arm_unwind_pc): Delete.
8725 (arm_unwind_sp): Delete.
8726 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8727
f8278c3c
AB
87282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8729
8730 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8731 (arc_unwind_pc): Delete.
8732 (arc_unwind_sp): Delete.
8733 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8734
480e46cf
AB
87352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8736
8737 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8738 (alpha_unwind_pc): Delete.
8739 (alpha_gdbarch_init): Don't register deleted functions with
8740 gdbarch.
8741
7a995095
AB
87422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8743
8744 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8745 (aarch64_unwind_pc): Delete.
8746 (aarch64_unwind_sp): Delete.
8747 (aarch64_gdbarch_init): Don't register deleted functions with
8748 gdbarch.
8749
bf9a735e
AB
87502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8751
8752 * gdbtypes.c (type_align): Don't consider static members when
8753 computing structure alignment.
8754
5561fc30
AB
87552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8756
8757 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8758 return 0 for other types.
8759 * arch-utils.c (default_type_align): Always return 0.
8760 * gdbarch.h: Regenerate.
8761 * gdbarch.sh (type_align): Extend comment.
8762 * gdbtypes.c (type_align): Add additional comments, always call
8763 gdbarch_type_align before applying the default rules.
8764 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8765 generic code will then apply a suitable default.
8766 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8767 types, return 0 for other types.
8768
9335e75a
JB
87692019-02-27 Joel Brobecker <brobecker@adacore.com>
8770
8771 * NEWS: Create a new section for the next release branch.
8772 Rename the section of the current branch, now that it has
8773 been cut.
8774
3d34d8de
JB
87752019-02-27 Joel Brobecker <brobecker@adacore.com>
8776
8777 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8778 * version.in: Bump version to 8.3.50.DATE-git.
8779
143420fb
SM
87802019-02-26 Simon Marchi <simon.marchi@efficios.com>
8781
8782 * aix-thread.c (ptid_cmp): Remove unused variable.
8783 (get_signaled_thread): Likewise.
8784 (store_regs_user_thread): Likewise.
8785 (store_regs_kernel_thread): Likewise.
8786 (fetch_regs_kernel_thread): Remove shadowed variable.
8787
172fb711
AB
87882019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8789
8790 * features/riscv/32bit-cpu.xml: Add register numbers.
8791 * features/riscv/32bit-fpu.c: Regenerate.
8792 * features/riscv/32bit-fpu.xml: Add register numbers.
8793 * features/riscv/64bit-cpu.xml: Add register numbers.
8794 * features/riscv/64bit-fpu.c: Regenerate.
8795 * features/riscv/64bit-fpu.xml: Add register numbers.
8796
26c89782
KB
87972019-02-26 Kevin Buettner <kevinb@redhat.com>
8798
af54ade9 8799 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
8800 * python/py-value.c (convert_buffer_and_type_to_value): New
8801 function.
8802 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8803 Add support for handling an optional second argument. Call
8804 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
8805 * python/python-internal.h (Py_buffer_deleter): New struct.
8806 (Py_buffer_up): New typedef.
8807
0f58c9e8
JB
88082019-02-25 John Baldwin <jhb@FreeBSD.org>
8809
8810 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8811 instead of releasing ownership.
8812
0a0f4c01
JR
88132019-02-25 Jordan Rupprecht <rupprecht@google.com>
8814
8815 * dwarf2read.c (open_and_init_dwp_file): Call
8816 elf_numsections instead of bfd_count_sections to initialize
8817 dwp_file->num_sections.
8818
cd5a152c
TT
88192019-02-25 Tom Tromey <tromey@adacore.com>
8820
8821 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8822
8a6a8513
SDJ
88232019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8824
8825 * gcore.in: Add '--readnever' option when invoking GDB.
8826
04dcda9c
SM
88272019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8828
8829 * MAINTAINERS: Update my email address.
8830
07bc701d
SM
88312019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8832
8833 * build-id.c (build_id_to_debug_bfd_1): New function.
8834 (build_id_to_debug_bfd): Look for separate debug file in
8835 sysroot.
8836
c6f4a5d0
AB
88372019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8838
8839 * gdbarch.sh: Update the copyright year range that is placed into
8840 generated files.
8841
9600246d
KS
88422019-02-22 Keith Seitz <keiths@redhat.com>
8843
8844 PR symtab/23853
8845 * linespec.c (create_sals_line_offset): Search for the default
8846 symtab's filename instead of its fullname.
8847
7557a514
AH
88482019-02-21 Alan Hayward <alan.hayward@arm.com>
8849
8850 * NEWS: Update style defaults.
8851
ee2bcb0c
AH
88522019-02-21 Alan Hayward <alan.hayward@arm.com>
8853
8854 * main.c (captured_main_1): Disable styling in batch mode.
8855
0c95f9ed
TT
88562019-02-20 Tom Tromey <tom@tromey.com>
8857
8858 * symtab.c (symtab_symbol_info): Fix typos.
8859
c763b894
TT
88602019-02-20 Tom Tromey <tromey@adacore.com>
8861
8862 * findcmd.c (_initialize_mem_search): Use upper case for
8863 metasyntactic variables.
8864
0ef8a082
AH
88652019-02-20 Alan Hayward <alan.hayward@arm.com>
8866
8867 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8868 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8869
6caa91b6
SM
88702019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8871
8872 * top.h (source_file_name): Change to std::string.
8873 * top.c (source_file_name): Likewise.
8874 (command_line_input): Adjust.
8875 * cli/cli-script.c (script_from_file): Adjust.
8876
98814c6c
TT
88772019-02-19 Tom Tromey <tromey@adacore.com>
8878
8879 * ravenscar-thread.c
8880 (ravenscar_thread_target::update_thread_list): Don't call
8881 ada_build_task_list.
8882 * ada-lang.h (ada_build_task_list): Don't declare.
8883 * ada-tasks.c (struct ada_tasks_inferior_data)
8884 <task_list_valid_p>: Now bool.
8885 (read_known_tasks, ada_task_list_changed)
8886 (ada_tasks_invalidate_inferior_data): Update.
8887 (read_known_tasks_array): Return bool.
8888 (read_known_tasks_list): Likewise.
8889 (read_known_tasks): Return void.
8890 (ada_build_task_list): Now static.
8891
70cd633e
AB
88922019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8893
8894 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8895 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8896
040b3e95
PW
88972019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8898
8899 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8900 variant for ada_tasks_pspace_data_handle and
8901 ada_tasks_inferior_data_handle.
8902 (ada_tasks_pspace_data_cleanup): New function.
8903 (ada_tasks_inferior_data_cleanup): New function.
8904
9409233b
TT
89052019-02-17 Tom Tromey <tom@tromey.com>
8906
8907 * macrotab.h (macro_source_fullname): Return a std::string.
8908 * macrotab.c (macro_include, check_for_redefinition)
8909 (macro_undef, macro_lookup_definition, foreach_macro)
8910 (foreach_macro_in_scope): Update.
8911 (macro_source_fullname): Return a std::string.
8912 * macrocmd.c (show_pp_source_pos): Update.
8913
6506371f
TT
89142019-02-17 Tom Tromey <tom@tromey.com>
8915
8916 * macrocmd.c (show_pp_source_pos): Style the file names.
8917
0c820d67
TT
89182019-02-17 Tom Tromey <tom@tromey.com>
8919
8920 PR tui/24197:
8921 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8922
a0087920
TT
89232019-02-17 Tom Tromey <tom@tromey.com>
8924
8925 * ada-lang.c (user_select_syms): Use filtered printing.
8926 * utils.c (wrap_style): New global.
8927 (desired_style): Remove.
8928 (emit_style_escape): Add stream parameter.
8929 (set_output_style, reset_terminal_style, prompt_for_continue):
8930 Update.
8931 (flush_wrap_buffer): Only flush gdb_stdout.
8932 (wrap_here): Set wrap_style.
8933 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8934 treat escape sequences as a character. Change when wrap buffer is
8935 flushed.
8936 (fputs_styled): Do not set the output style when the default is
8937 requested.
8938 * ui-style.h (struct ui_file_style) <is_default>: New method.
8939 * source.c (print_source_lines_base): Emit escape sequences in one
8940 piece.
8941
75ba10dc
JB
89422019-02-17 Joel Brobecker <brobecker@adacore.com>
8943
8944 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8945 integers and enumeration types.
8946
a2cd4f14
JB
89472019-02-17 Joel Brobecker <brobecker@adacore.com>
8948
8949 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8950 instead of lookup_symbol_in_language
8951 (do_exact_match): New function.
8952 (ada_get_symbol_name_matcher): Return do_exact_match when
8953 doing a verbatim match.
8954
485b851b
TT
89552019-02-15 Tom Tromey <tromey@adacore.com>
8956
8957 * ravenscar-thread.c (ravenscar_thread_target::resume)
8958 (ravenscar_thread_target::wait): Special case wildcard requests.
8959
0b790b1e
TT
89602019-02-15 Tom Tromey <tromey@adacore.com>
8961
8962 * ravenscar-thread.c (base_ptid): Remove.
8963 (struct ravenscar_thread_target) <close>: New method.
8964 <m_base_ptid>: New member.
8965 <update_inferior_ptid, active_task, task_is_currently_active,
8966 runtime_initialized>: Declare methods.
8967 <ravenscar_thread_target>: Add constructor.
8968 (ravenscar_thread_target::task_is_currently_active)
8969 (ravenscar_thread_target::update_inferior_ptid)
8970 (ravenscar_runtime_initialized): Rename. Now methods.
8971 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8972 (ravenscar_thread_target::update_thread_list): Update.
8973 (ravenscar_thread_target::active_task): Now method.
8974 (ravenscar_thread_target::store_registers)
8975 (ravenscar_thread_target::prepare_to_store)
8976 (ravenscar_thread_target::prepare_to_store)
8977 (ravenscar_thread_target::mourn_inferior): Update.
8978 (ravenscar_inferior_created): Use "new" to create target.
8979 (ravenscar_thread_target::get_ada_task_ptid): Update.
8980 (_initialize_ravenscar): Don't initialize base_ptid.
8981 (ravenscar_ops): Remove global.
8982
dea57a62
TT
89832019-02-15 Tom Tromey <tromey@adacore.com>
8984
8985 * target.h (push_target): Declare new overload.
8986 * target.c (push_target): New overload, taking an rvalue reference.
8987 * remote.c (remote_target::open_1): Use push_target overload.
8988 * corelow.c (core_target_open): Use push_target overload.
8989
989f3c58
TT
89902019-02-15 Tom Tromey <tromey@adacore.com>
8991
8992 * ravenscar-thread.c (is_ravenscar_task)
8993 (ravenscar_task_is_currently_active): Return bool.
8994 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
8995 (_initialize_ravenscar): Remove "(void)".
8996 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
8997 Return bool.
8998
6cbcc006
TT
89992019-02-15 Tom Tromey <tromey@adacore.com>
9000
9001 * ravenscar-thread.c (ravenscar_runtime_initializer)
9002 (has_ravenscar_runtime, get_running_thread_id)
9003 (ravenscar_thread_target::resume): Fix indentation.
9004
7657f14d
TT
90052019-02-15 Tom Tromey <tromey@adacore.com>
9006
9007 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9008 from ravenscar_arch_ops.
9009 (sparc_ravenscar_ops::fetch_registers)
9010 (sparc_ravenscar_ops::store_registers): Now methods.
9011 (sparc_ravenscar_prepare_to_store): Remove.
9012 (sparc_ravenscar_ops): Redefine.
9013 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9014 methods and destructor. Remove members.
9015 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9016 (ravenscar_thread_target::store_registers)
9017 (ravenscar_thread_target::prepare_to_store): Update.
9018 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9019 Remove.
9020 (struct ppc_ravenscar_powerpc_ops): Derive from
9021 ravenscar_arch_ops.
9022 (ppc_ravenscar_powerpc_ops::fetch_registers)
9023 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9024 (ppc_ravenscar_powerpc_ops): Redefine.
9025 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9026 (ppc_ravenscar_e500_ops::fetch_registers)
9027 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9028 (ppc_ravenscar_e500_ops): Redefine.
9029 * aarch64-ravenscar-thread.c
9030 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9031 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9032 (aarch64_ravenscar_fetch_registers)
9033 (aarch64_ravenscar_store_registers): Now methods.
9034 (aarch64_ravenscar_ops): Redefine.
9035
5b6ea500
TT
90362019-02-15 Tom Tromey <tromey@adacore.com>
9037
9038 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9039 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9040 (ravenscar_thread_target::stopped_by_watchpoint)
9041 (ravenscar_thread_target::stopped_data_address)
9042 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9043
e397fd39
TT
90442019-02-15 Tom Tromey <tromey@adacore.com>
9045
9046 * ravenscar-thread.c: Fix some typos.
9047
cc12f4a8
TT
90482019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9049 Tom Tromey <tromey@adacore.com>
9050
9051 * ada-lang.c (ada_exception_sal): Change addr_string to a
9052 std::string.
9053 (create_ada_exception_catchpoint): Update.
9054
5f486660
TT
90552019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9056 Tom Tromey <tromey@adacore.com>
9057
9058 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9059 (bp_location_ops): Remove.
9060 (base_breakpoint_allocate_location): Update.
9061 (free_bp_location): Update.
9062 * ada-lang.c (class ada_catchpoint_location)
9063 <ada_catchpoint_location>: Remove ops parameter.
9064 (ada_catchpoint_location_dtor): Remove.
9065 (ada_catchpoint_location_ops): Remove.
9066 (allocate_location_exception): Update.
9067 * breakpoint.h (struct bp_location_ops): Remove.
9068 (class bp_location) <bp_location>: Remove bp_location_ops
9069 parameter.
9070 <~bp_location>: Add destructor.
9071 <ops>: Remove.
9072
b671c7fb
TS
90732019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9074 Pedro Alves <palves@redhat.com>
9075
9076 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9077 'PATH_MAX'.
9078
8071c5ce
DM
90792019-02-14 David Michael <fedora.dm0@gmail.com>
9080 Samuel Thibault <samuel.thibault@gnu.org>
9081 Thomas Schwinge <thomas@codesourcery.com>
9082
9083 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9084 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9085
b1041ae0
TS
90862019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9087
924514e1
TS
9088 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9089 (check_empty): Use "const char *".
9090
c29ee8d4
TS
9091 * gnu-nat.c (gnu_nat_target::detach): Instead of
9092 'detach_inferior (pid)' call
9093 'detach_inferior (find_inferior_pid (pid))'.
9094
6c6ef69f
TS
9095 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9096 'nat/fork-inferior.o'.
9097 * gnu-nat.c: #include "nat/fork-inferior.h".
9098
2d0a338c
TS
9099 * gnu-nat.c (gnu_nat_target::detach): Instead of
9100 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9101 * gnu-nat.h: #include "inf-child.h".
9102 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9103 'i386_gnu_nat_target::fetch_registers'.
9104 (gnu_store_registers): Rename/move to
9105 'i386_gnu_nat_target::store_registers'.
9106
cabb5f06
TS
9107 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9108 * gnu-nat.h (mach_thread_info): New function.
9109 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9110
b1041ae0
TS
9111 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9112
2988d01e
KF
91132019-02-14 Frederic Konrad <konrad@adacore.com>
9114
9115 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9116
c559d709
JB
91172019-02-14 Joel Brobecker <brobecker@adacore.com>
9118
9119 * windows-nat.c (windows_add_thread): Add new parameter
9120 "main_thread_p" with default value set to false. Update
9121 function documentation as well as all callers.
9122 (windows_delete_thread): Likewise.
9123 (fake_create_process): Update call to windows_add_thread.
9124 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9125 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9126 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9127 call to windows_delete_thread.
9128
007024cc
SM
91292019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9130
9131 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9132
f62318e9
JB
91332019-02-12 John Baldwin <jhb@FreeBSD.org>
9134
9135 * symfile.c (find_separate_debug_file): Use canonical path of
9136 sysroot with child_path instead of gdb_sysroot if it is valid.
9137
cd4b7848
JB
91382019-02-12 John Baldwin <jhb@FreeBSD.org>
9139
9140 * symfile.c (find_separate_debug_file): Use child_path to
9141 determine if an object file is under a sysroot.
9142
efac4bfe
JB
91432019-02-12 John Baldwin <jhb@FreeBSD.org>
9144
9145 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9146 unittests/child-path-selftests.c.
9147 * common/pathstuff.c (child_path): New function.
9148 * common/pathstuff.h (child_path): New prototype.
9149 * unittests/child-path-selftests.c: New file.
9150
402d2bfe
JB
91512019-02-12 John Baldwin <jhb@FreeBSD.org>
9152
9153 * symfile.c (find_separate_debug_file): Look for separate debug
9154 files in debug directories under the sysroot.
9155
1ed9f74e
PW
91562019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9157
9158 * symtab.h (struct minimal_symbol data_p): New const method.
9159 (struct minimal_symbol text_p): Likewise.
9160 * symtab.c (output_source_filename): Use file name style
9161 to print file name.
9162 (print_symbol_info): Likewise.
9163 (print_msymbol_info): Use address style to print addresses.
9164 Use function name style to print executable text symbols.
9165 (expand_symtab_containing_pc): Use data_p.
9166 (find_pc_sect_compunit_symtab): Likewise.
9167
2636d81d
PW
91682019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9169
9170 * breakpoint.c (describe_other_breakpoints): Use address style
9171 to print addresses.
9172 (say_where): Likewise.
9173
ac8c53cc
PW
91742019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9175
9176 * ada-typeprint.c (print_func_type): Print function name
9177 style to print function name.
9178 * c-typeprint.c (c_print_type_1): Likewise.
9179
ea638c43
AH
91802019-02-11 Alan Hayward <alan.hayward@arm.com>
9181
9182 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9183 for execve.
9184
ab759ca8
PW
91852019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9186
9187 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9188 type_stack.
9189
aff29d1c
JB
91902019-02-10 Joel Brobecker <brobecker@adacore.com>
9191
9192 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9193 TYPE_CODE_REF types.
9194
617126bc
JW
91952019-02-08 Jim Wilson <jimw@sifive.com>
9196
9197 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9198 (riscv_linux_fregset): New.
9199 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9200
46e3ed7f
TT
92012019-02-07 Tom Tromey <tom@tromey.com>
9202
9203 * thread.c (thread_cancel_execution_command): Update.
9204 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9205 methods.
9206 (struct thread_fsm_ops): Remove.
9207 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9208 (thread_fsm_should_stop, thread_fsm_return_value)
9209 (thread_fsm_set_finished, thread_fsm_finished_p)
9210 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9211 Don't declare.
9212 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9213 * infrun.c (clear_proceed_status_thread)
9214 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9215 (print_stop_event): Update.
9216 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9217 Add constructor.
9218 (step_command_fsm_ops): Remove.
9219 (new_step_command_fsm): Remove.
9220 (step_1): Update.
9221 (step_command_fsm::should_stop): Rename from
9222 step_command_fsm_should_stop.
9223 (step_command_fsm::clean_up): Rename from
9224 step_command_fsm_clean_up.
9225 (step_command_fsm::do_async_reply_reason): Rename from
9226 step_command_fsm_async_reply_reason.
9227 (struct until_next_fsm): Inherit from thread_fsm. Add
9228 constructor.
9229 (until_next_fsm_ops): Remove.
9230 (new_until_next_fsm): Remove.
9231 (until_next_fsm::should_stop): Rename from
9232 until_next_fsm_should_stop.
9233 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9234 (until_next_fsm::do_async_reply_reason): Rename from
9235 until_next_fsm_async_reply_reason.
9236 (struct finish_command_fsm): Inherit from thread_fsm. Add
9237 constructor. Change type of breakpoint.
9238 (finish_command_fsm_ops): Remove.
9239 (new_finish_command_fsm): Remove.
9240 (finish_command_fsm::should_stop): Rename from
9241 finish_command_fsm_should_stop.
9242 (finish_command_fsm::clean_up): Rename from
9243 finish_command_fsm_clean_up.
9244 (finish_command_fsm::return_value): Rename from
9245 finish_command_fsm_return_value.
9246 (finish_command_fsm::do_async_reply_reason): Rename from
9247 finish_command_fsm_async_reply_reason.
9248 (finish_command): Update.
9249 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9250 Add constructor.
9251 (call_thread_fsm_ops): Remove.
9252 (call_thread_fsm::call_thread_fsm): Rename from
9253 new_call_thread_fsm.
9254 (call_thread_fsm::should_stop): Rename from
9255 call_thread_fsm_should_stop.
9256 (call_thread_fsm::should_notify_stop): Rename from
9257 call_thread_fsm_should_notify_stop.
9258 (run_inferior_call, call_function_by_hand_dummy): Update.
9259 * cli/cli-interp.c (should_print_stop_to_console): Update.
9260 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9261 Add constructor. Change type of location_breakpoint,
9262 caller_breakpoint.
9263 (until_break_fsm_ops): Remove.
9264 (new_until_break_fsm): Remove.
9265 (until_break_fsm::should_stop): Rename from
9266 until_break_fsm_should_stop.
9267 (until_break_fsm::clean_up): Rename from
9268 until_break_fsm_clean_up.
9269 (until_break_fsm::do_async_reply_reason): Rename from
9270 until_break_fsm_async_reply_reason.
9271 (until_break_command): Update.
9272 * thread-fsm.c: Remove.
9273 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9274
1a5c2598
TT
92752019-02-07 Tom Tromey <tom@tromey.com>
9276
9277 * yy-remap.h: Add include guard.
9278 * xtensa-tdep.h: Add include guard.
9279 * xcoffread.h: Rename include guard.
9280 * varobj-iter.h: Add include guard.
9281 * tui/tui.h: Rename include guard.
9282 * tui/tui-winsource.h: Rename include guard.
9283 * tui/tui-wingeneral.h: Rename include guard.
9284 * tui/tui-windata.h: Rename include guard.
9285 * tui/tui-win.h: Rename include guard.
9286 * tui/tui-stack.h: Rename include guard.
9287 * tui/tui-source.h: Rename include guard.
9288 * tui/tui-regs.h: Rename include guard.
9289 * tui/tui-out.h: Rename include guard.
9290 * tui/tui-layout.h: Rename include guard.
9291 * tui/tui-io.h: Rename include guard.
9292 * tui/tui-hooks.h: Rename include guard.
9293 * tui/tui-file.h: Rename include guard.
9294 * tui/tui-disasm.h: Rename include guard.
9295 * tui/tui-data.h: Rename include guard.
9296 * tui/tui-command.h: Rename include guard.
9297 * tic6x-tdep.h: Add include guard.
9298 * target/waitstatus.h: Rename include guard.
9299 * target/wait.h: Rename include guard.
9300 * target/target.h: Rename include guard.
9301 * target/resume.h: Rename include guard.
9302 * target-float.h: Rename include guard.
9303 * stabsread.h: Add include guard.
9304 * rs6000-tdep.h: Add include guard.
9305 * riscv-fbsd-tdep.h: Add include guard.
9306 * regformats/regdef.h: Rename include guard.
9307 * record.h: Rename include guard.
9308 * python/python.h: Rename include guard.
9309 * python/python-internal.h: Rename include guard.
9310 * python/py-stopevent.h: Rename include guard.
9311 * python/py-ref.h: Rename include guard.
9312 * python/py-record.h: Rename include guard.
9313 * python/py-record-full.h: Rename include guard.
9314 * python/py-record-btrace.h: Rename include guard.
9315 * python/py-instruction.h: Rename include guard.
9316 * python/py-events.h: Rename include guard.
9317 * python/py-event.h: Rename include guard.
9318 * procfs.h: Add include guard.
9319 * proc-utils.h: Add include guard.
9320 * p-lang.h: Add include guard.
9321 * or1k-tdep.h: Rename include guard.
9322 * observable.h: Rename include guard.
9323 * nto-tdep.h: Rename include guard.
9324 * nat/x86-linux.h: Rename include guard.
9325 * nat/x86-linux-dregs.h: Rename include guard.
9326 * nat/x86-gcc-cpuid.h: Add include guard.
9327 * nat/x86-dregs.h: Rename include guard.
9328 * nat/x86-cpuid.h: Rename include guard.
9329 * nat/ppc-linux.h: Rename include guard.
9330 * nat/mips-linux-watch.h: Rename include guard.
9331 * nat/linux-waitpid.h: Rename include guard.
9332 * nat/linux-ptrace.h: Rename include guard.
9333 * nat/linux-procfs.h: Rename include guard.
9334 * nat/linux-osdata.h: Rename include guard.
9335 * nat/linux-nat.h: Rename include guard.
9336 * nat/linux-namespaces.h: Rename include guard.
9337 * nat/linux-btrace.h: Rename include guard.
9338 * nat/glibc_thread_db.h: Rename include guard.
9339 * nat/gdb_thread_db.h: Rename include guard.
9340 * nat/gdb_ptrace.h: Rename include guard.
9341 * nat/fork-inferior.h: Rename include guard.
9342 * nat/amd64-linux-siginfo.h: Rename include guard.
9343 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9344 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9345 * nat/aarch64-linux.h: Rename include guard.
9346 * nat/aarch64-linux-hw-point.h: Rename include guard.
9347 * mn10300-tdep.h: Add include guard.
9348 * mips-linux-tdep.h: Add include guard.
9349 * mi/mi-parse.h: Rename include guard.
9350 * mi/mi-out.h: Rename include guard.
9351 * mi/mi-main.h: Rename include guard.
9352 * mi/mi-interp.h: Rename include guard.
9353 * mi/mi-getopt.h: Rename include guard.
9354 * mi/mi-console.h: Rename include guard.
9355 * mi/mi-common.h: Rename include guard.
9356 * mi/mi-cmds.h: Rename include guard.
9357 * mi/mi-cmd-break.h: Rename include guard.
9358 * m2-lang.h: Add include guard.
9359 * location.h: Rename include guard.
9360 * linux-record.h: Rename include guard.
9361 * linux-nat.h: Add include guard.
9362 * linux-fork.h: Add include guard.
9363 * i386-darwin-tdep.h: Rename include guard.
9364 * hppa-linux-offsets.h: Add include guard.
9365 * guile/guile.h: Rename include guard.
9366 * guile/guile-internal.h: Rename include guard.
9367 * gnu-nat.h: Rename include guard.
9368 * gdb-stabs.h: Rename include guard.
9369 * frv-tdep.h: Add include guard.
9370 * f-lang.h: Add include guard.
9371 * event-loop.h: Add include guard.
9372 * darwin-nat.h: Rename include guard.
9373 * cp-abi.h: Rename include guard.
9374 * config/sparc/nm-sol2.h: Rename include guard.
9375 * config/nm-nto.h: Rename include guard.
9376 * config/nm-linux.h: Add include guard.
9377 * config/i386/nm-i386gnu.h: Rename include guard.
9378 * config/djgpp/nl_types.h: Rename include guard.
9379 * config/djgpp/langinfo.h: Rename include guard.
9380 * compile/gcc-cp-plugin.h: Add include guard.
9381 * compile/gcc-c-plugin.h: Add include guard.
9382 * compile/compile.h: Rename include guard.
9383 * compile/compile-object-run.h: Rename include guard.
9384 * compile/compile-object-load.h: Rename include guard.
9385 * compile/compile-internal.h: Rename include guard.
9386 * compile/compile-cplus.h: Rename include guard.
9387 * compile/compile-c.h: Rename include guard.
9388 * common/xml-utils.h: Rename include guard.
9389 * common/x86-xstate.h: Rename include guard.
9390 * common/version.h: Rename include guard.
9391 * common/vec.h: Rename include guard.
9392 * common/tdesc.h: Rename include guard.
9393 * common/selftest.h: Rename include guard.
9394 * common/scoped_restore.h: Rename include guard.
9395 * common/scoped_mmap.h: Rename include guard.
9396 * common/scoped_fd.h: Rename include guard.
9397 * common/safe-iterator.h: Rename include guard.
9398 * common/run-time-clock.h: Rename include guard.
9399 * common/refcounted-object.h: Rename include guard.
9400 * common/queue.h: Rename include guard.
9401 * common/ptid.h: Rename include guard.
9402 * common/print-utils.h: Rename include guard.
9403 * common/preprocessor.h: Rename include guard.
9404 * common/pathstuff.h: Rename include guard.
9405 * common/observable.h: Rename include guard.
9406 * common/netstuff.h: Rename include guard.
9407 * common/job-control.h: Rename include guard.
9408 * common/host-defs.h: Rename include guard.
9409 * common/gdb_wait.h: Rename include guard.
9410 * common/gdb_vecs.h: Rename include guard.
9411 * common/gdb_unlinker.h: Rename include guard.
9412 * common/gdb_unique_ptr.h: Rename include guard.
9413 * common/gdb_tilde_expand.h: Rename include guard.
9414 * common/gdb_sys_time.h: Rename include guard.
9415 * common/gdb_string_view.h: Rename include guard.
9416 * common/gdb_splay_tree.h: Rename include guard.
9417 * common/gdb_setjmp.h: Rename include guard.
9418 * common/gdb_ref_ptr.h: Rename include guard.
9419 * common/gdb_optional.h: Rename include guard.
9420 * common/gdb_locale.h: Rename include guard.
9421 * common/gdb_assert.h: Rename include guard.
9422 * common/filtered-iterator.h: Rename include guard.
9423 * common/filestuff.h: Rename include guard.
9424 * common/fileio.h: Rename include guard.
9425 * common/environ.h: Rename include guard.
9426 * common/common-utils.h: Rename include guard.
9427 * common/common-types.h: Rename include guard.
9428 * common/common-regcache.h: Rename include guard.
9429 * common/common-inferior.h: Rename include guard.
9430 * common/common-gdbthread.h: Rename include guard.
9431 * common/common-exceptions.h: Rename include guard.
9432 * common/common-defs.h: Rename include guard.
9433 * common/common-debug.h: Rename include guard.
9434 * common/cleanups.h: Rename include guard.
9435 * common/buffer.h: Rename include guard.
9436 * common/btrace-common.h: Rename include guard.
9437 * common/break-common.h: Rename include guard.
9438 * cli/cli-utils.h: Rename include guard.
9439 * cli/cli-style.h: Rename include guard.
9440 * cli/cli-setshow.h: Rename include guard.
9441 * cli/cli-script.h: Rename include guard.
9442 * cli/cli-interp.h: Rename include guard.
9443 * cli/cli-decode.h: Rename include guard.
9444 * cli/cli-cmds.h: Rename include guard.
9445 * charset-list.h: Add include guard.
9446 * buildsym-legacy.h: Rename include guard.
9447 * bfin-tdep.h: Add include guard.
9448 * ax.h: Rename include guard.
9449 * arm-linux-tdep.h: Add include guard.
9450 * arm-fbsd-tdep.h: Add include guard.
9451 * arch/xtensa.h: Rename include guard.
9452 * arch/tic6x.h: Add include guard.
9453 * arch/i386.h: Add include guard.
9454 * arch/arm.h: Rename include guard.
9455 * arch/arm-linux.h: Rename include guard.
9456 * arch/arm-get-next-pcs.h: Rename include guard.
9457 * arch/amd64.h: Add include guard.
9458 * arch/aarch64-insn.h: Rename include guard.
9459 * arch-utils.h: Rename include guard.
9460 * annotate.h: Add include guard.
9461 * amd64-darwin-tdep.h: Rename include guard.
9462 * aarch64-linux-tdep.h: Add include guard.
9463 * aarch64-fbsd-tdep.h: Add include guard.
9464 * aarch32-linux-nat.h: Add include guard.
9465
ab9268d2
PW
94662019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9467
9468 * macrotab.c (macro_define_internal): New function that
9469 factorizes macro_define_object_internal and macro_define_function
9470 code.
9471 (macro_define_object_internal): Use macro_define_internal.
9472 (macro_define_function): Likewise.
9473
bb0da2b4
PW
94742019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9475
9476 * macrocmd.c (extract_identifier): Return
9477 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9478 callers.
9479
424eb552
JB
94802019-02-06 John Baldwin <jhb@FreeBSD.org>
9481
9482 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9483
1688cb29
TT
94842019-02-05 Tom Tromey <tom@tromey.com>
9485
9486 * target.c (target_stack::unpush): Move assertion earlier.
9487
b5eba2d8
TT
94882019-01-30 Tom Tromey <tom@tromey.com>
9489
9490 PR python/23615:
9491 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9492 (gdbpy_parse_and_eval): Likewise.
9493 * python/python-internal.h (gdbpy_allow_threads): New class.
9494
7054e2ff
JB
94952019-01-28 John Baldwin <jhb@FreeBSD.org>
9496
9497 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9498 (aarch64_fbsd_fpregmap): Move earlier.
9499 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9500 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9501 instead of individual calls to trad_frame_set_reg_addr.
9502 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9503 earlier.
9504 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9505 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9506 instead of individual calls to trad_frame_set_reg_addr.
9507
36c25ffa
AH
95082019-01-28 Alan Hayward <alan.hayward@arm.com>
9509
9510 * CONTRIBUTE: Replace contribution list with wiki link.
9511
a0707f3c
TT
95122019-01-25 Tom Tromey <tom@tromey.com>
9513
9514 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9515
0747795c
TT
95162019-01-25 Tom Tromey <tom@tromey.com>
9517
9518 * xtensa-linux-nat.c: Fix common/ includes.
9519 * xml-support.h: Fix common/ includes.
9520 * xml-support.c: Fix common/ includes.
9521 * x86-linux-nat.c: Fix common/ includes.
9522 * windows-nat.c: Fix common/ includes.
9523 * varobj.h: Fix common/ includes.
9524 * varobj.c: Fix common/ includes.
9525 * value.c: Fix common/ includes.
9526 * valops.c: Fix common/ includes.
9527 * utils.c: Fix common/ includes.
9528 * unittests/xml-utils-selftests.c: Fix common/ includes.
9529 * unittests/utils-selftests.c: Fix common/ includes.
9530 * unittests/unpack-selftests.c: Fix common/ includes.
9531 * unittests/tracepoint-selftests.c: Fix common/ includes.
9532 * unittests/style-selftests.c: Fix common/ includes.
9533 * unittests/string_view-selftests.c: Fix common/ includes.
9534 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9535 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9536 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9537 * unittests/rsp-low-selftests.c: Fix common/ includes.
9538 * unittests/parse-connection-spec-selftests.c: Fix common/
9539 includes.
9540 * unittests/optional-selftests.c: Fix common/ includes.
9541 * unittests/offset-type-selftests.c: Fix common/ includes.
9542 * unittests/observable-selftests.c: Fix common/ includes.
9543 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9544 * unittests/memrange-selftests.c: Fix common/ includes.
9545 * unittests/memory-map-selftests.c: Fix common/ includes.
9546 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9547 * unittests/function-view-selftests.c: Fix common/ includes.
9548 * unittests/environ-selftests.c: Fix common/ includes.
9549 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9550 * unittests/common-utils-selftests.c: Fix common/ includes.
9551 * unittests/cli-utils-selftests.c: Fix common/ includes.
9552 * unittests/array-view-selftests.c: Fix common/ includes.
9553 * ui-file.c: Fix common/ includes.
9554 * tui/tui-io.c: Fix common/ includes.
9555 * tracepoint.h: Fix common/ includes.
9556 * tracepoint.c: Fix common/ includes.
9557 * tracefile-tfile.c: Fix common/ includes.
9558 * top.h: Fix common/ includes.
9559 * top.c: Fix common/ includes.
9560 * thread.c: Fix common/ includes.
9561 * target/waitstatus.h: Fix common/ includes.
9562 * target/waitstatus.c: Fix common/ includes.
9563 * target.h: Fix common/ includes.
9564 * target.c: Fix common/ includes.
9565 * target-memory.c: Fix common/ includes.
9566 * target-descriptions.c: Fix common/ includes.
9567 * symtab.h: Fix common/ includes.
9568 * symfile.c: Fix common/ includes.
9569 * stap-probe.c: Fix common/ includes.
9570 * spu-linux-nat.c: Fix common/ includes.
9571 * sparc-nat.c: Fix common/ includes.
9572 * source.c: Fix common/ includes.
9573 * solib.c: Fix common/ includes.
9574 * solib-target.c: Fix common/ includes.
9575 * ser-unix.c: Fix common/ includes.
9576 * ser-tcp.c: Fix common/ includes.
9577 * ser-pipe.c: Fix common/ includes.
9578 * ser-base.c: Fix common/ includes.
9579 * selftest-arch.c: Fix common/ includes.
9580 * s12z-tdep.c: Fix common/ includes.
9581 * rust-exp.y: Fix common/ includes.
9582 * rs6000-aix-tdep.c: Fix common/ includes.
9583 * riscv-tdep.c: Fix common/ includes.
9584 * remote.c: Fix common/ includes.
9585 * remote-notif.h: Fix common/ includes.
9586 * remote-fileio.h: Fix common/ includes.
9587 * remote-fileio.c: Fix common/ includes.
9588 * regcache.h: Fix common/ includes.
9589 * regcache.c: Fix common/ includes.
9590 * record-btrace.c: Fix common/ includes.
9591 * python/python.c: Fix common/ includes.
9592 * python/py-type.c: Fix common/ includes.
9593 * python/py-inferior.c: Fix common/ includes.
9594 * progspace.h: Fix common/ includes.
9595 * producer.c: Fix common/ includes.
9596 * procfs.c: Fix common/ includes.
9597 * proc-api.c: Fix common/ includes.
9598 * printcmd.c: Fix common/ includes.
9599 * ppc-linux-nat.c: Fix common/ includes.
9600 * parser-defs.h: Fix common/ includes.
9601 * osdata.c: Fix common/ includes.
9602 * obsd-nat.c: Fix common/ includes.
9603 * nat/x86-linux.c: Fix common/ includes.
9604 * nat/x86-linux-dregs.c: Fix common/ includes.
9605 * nat/x86-dregs.h: Fix common/ includes.
9606 * nat/x86-dregs.c: Fix common/ includes.
9607 * nat/ppc-linux.c: Fix common/ includes.
9608 * nat/mips-linux-watch.h: Fix common/ includes.
9609 * nat/mips-linux-watch.c: Fix common/ includes.
9610 * nat/linux-waitpid.c: Fix common/ includes.
9611 * nat/linux-ptrace.h: Fix common/ includes.
9612 * nat/linux-ptrace.c: Fix common/ includes.
9613 * nat/linux-procfs.c: Fix common/ includes.
9614 * nat/linux-personality.c: Fix common/ includes.
9615 * nat/linux-osdata.c: Fix common/ includes.
9616 * nat/linux-namespaces.c: Fix common/ includes.
9617 * nat/linux-btrace.h: Fix common/ includes.
9618 * nat/linux-btrace.c: Fix common/ includes.
9619 * nat/fork-inferior.c: Fix common/ includes.
9620 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9621 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9622 * nat/aarch64-linux.c: Fix common/ includes.
9623 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9624 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9625 * namespace.h: Fix common/ includes.
9626 * mips-linux-tdep.c: Fix common/ includes.
9627 * minsyms.c: Fix common/ includes.
9628 * mi/mi-parse.h: Fix common/ includes.
9629 * mi/mi-main.c: Fix common/ includes.
9630 * mi/mi-cmd-env.c: Fix common/ includes.
9631 * memrange.h: Fix common/ includes.
9632 * memattr.c: Fix common/ includes.
9633 * maint.h: Fix common/ includes.
9634 * maint.c: Fix common/ includes.
9635 * main.c: Fix common/ includes.
9636 * machoread.c: Fix common/ includes.
9637 * location.c: Fix common/ includes.
9638 * linux-thread-db.c: Fix common/ includes.
9639 * linux-nat.c: Fix common/ includes.
9640 * linux-fork.c: Fix common/ includes.
9641 * inline-frame.c: Fix common/ includes.
9642 * infrun.c: Fix common/ includes.
9643 * inflow.c: Fix common/ includes.
9644 * inferior.h: Fix common/ includes.
9645 * inferior.c: Fix common/ includes.
9646 * infcmd.c: Fix common/ includes.
9647 * inf-ptrace.c: Fix common/ includes.
9648 * inf-child.c: Fix common/ includes.
9649 * ia64-linux-nat.c: Fix common/ includes.
9650 * i387-tdep.c: Fix common/ includes.
9651 * i386-tdep.c: Fix common/ includes.
9652 * i386-linux-tdep.c: Fix common/ includes.
9653 * i386-linux-nat.c: Fix common/ includes.
9654 * i386-go32-tdep.c: Fix common/ includes.
9655 * i386-fbsd-tdep.c: Fix common/ includes.
9656 * i386-fbsd-nat.c: Fix common/ includes.
9657 * guile/scm-type.c: Fix common/ includes.
9658 * guile/guile.c: Fix common/ includes.
9659 * go32-nat.c: Fix common/ includes.
9660 * gnu-nat.c: Fix common/ includes.
9661 * gdbthread.h: Fix common/ includes.
9662 * gdbarch-selftests.c: Fix common/ includes.
9663 * gdb_usleep.c: Fix common/ includes.
9664 * gdb_select.h: Fix common/ includes.
9665 * gdb_bfd.c: Fix common/ includes.
9666 * gcore.c: Fix common/ includes.
9667 * fork-child.c: Fix common/ includes.
9668 * findvar.c: Fix common/ includes.
9669 * fbsd-nat.c: Fix common/ includes.
9670 * event-top.c: Fix common/ includes.
9671 * event-loop.c: Fix common/ includes.
9672 * dwarf2read.c: Fix common/ includes.
9673 * dwarf2loc.c: Fix common/ includes.
9674 * dwarf2-frame.c: Fix common/ includes.
9675 * dwarf-index-cache.c: Fix common/ includes.
9676 * dtrace-probe.c: Fix common/ includes.
9677 * disasm-selftests.c: Fix common/ includes.
9678 * defs.h: Fix common/ includes.
9679 * csky-tdep.c: Fix common/ includes.
9680 * cp-valprint.c: Fix common/ includes.
9681 * cp-support.h: Fix common/ includes.
9682 * cp-support.c: Fix common/ includes.
9683 * corelow.c: Fix common/ includes.
9684 * completer.h: Fix common/ includes.
9685 * completer.c: Fix common/ includes.
9686 * compile/compile.c: Fix common/ includes.
9687 * compile/compile-loc2c.c: Fix common/ includes.
9688 * compile/compile-cplus-types.c: Fix common/ includes.
9689 * compile/compile-cplus-symbols.c: Fix common/ includes.
9690 * command.h: Fix common/ includes.
9691 * cli/cli-dump.c: Fix common/ includes.
9692 * cli/cli-cmds.c: Fix common/ includes.
9693 * charset.c: Fix common/ includes.
9694 * build-id.c: Fix common/ includes.
9695 * btrace.h: Fix common/ includes.
9696 * btrace.c: Fix common/ includes.
9697 * breakpoint.h: Fix common/ includes.
9698 * breakpoint.c: Fix common/ includes.
9699 * ax.h:
9700 (enum agent_op): Fix common/ includes.
9701 * ax-general.c (struct aop_map): Fix common/ includes.
9702 * ax-gdb.c: Fix common/ includes.
9703 * auxv.c: Fix common/ includes.
9704 * auto-load.c: Fix common/ includes.
9705 * arm-tdep.c: Fix common/ includes.
9706 * arch/riscv.c: Fix common/ includes.
9707 * arch/ppc-linux-common.c: Fix common/ includes.
9708 * arch/i386.c: Fix common/ includes.
9709 * arch/arm.c: Fix common/ includes.
9710 * arch/arm-linux.c: Fix common/ includes.
9711 * arch/arm-get-next-pcs.c: Fix common/ includes.
9712 * arch/amd64.c: Fix common/ includes.
9713 * arch/aarch64.c: Fix common/ includes.
9714 * arch/aarch64-insn.c: Fix common/ includes.
9715 * arch-utils.c: Fix common/ includes.
9716 * amd64-windows-tdep.c: Fix common/ includes.
9717 * amd64-tdep.c: Fix common/ includes.
9718 * amd64-sol2-tdep.c: Fix common/ includes.
9719 * amd64-obsd-tdep.c: Fix common/ includes.
9720 * amd64-nbsd-tdep.c: Fix common/ includes.
9721 * amd64-linux-tdep.c: Fix common/ includes.
9722 * amd64-linux-nat.c: Fix common/ includes.
9723 * amd64-fbsd-tdep.c: Fix common/ includes.
9724 * amd64-fbsd-nat.c: Fix common/ includes.
9725 * amd64-dicos-tdep.c: Fix common/ includes.
9726 * amd64-darwin-tdep.c: Fix common/ includes.
9727 * agent.c: Fix common/ includes.
9728 * ada-lang.h: Fix common/ includes.
9729 * ada-lang.c: Fix common/ includes.
9730 * aarch64-tdep.c: Fix common/ includes.
9731
2f5c153e
TT
97322019-01-25 Tom Tromey <tom@tromey.com>
9733
9734 * common/create-version.sh: Use common/version.h.
9735
adc6a863
PA
97362019-01-24 Pedro Alves <palves@redhat.com>
9737
9738 * infrun.c (signal_stop, signal_print, signal_program)
9739 (signal_catch, signal_pass): Now arrays instead of pointers.
9740 (update_signals_program_target, do_target_resume)
9741 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9742 * linux-nat.c (linux_nat_target::pass_signals)
9743 (linux_nat_target::create_inferior, linux_nat_target::attach):
9744 Adjust.
9745 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9746 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9747 * procfs.c (procfs_target::pass_signals): Adjust.
9748 * record-full.c (record_full_target::resume): Adjust.
9749 * remote.c (remote_target::pass_signals)
9750 (remote_target::program_signals): Adjust.
9751 * target-debug.h (target_debug_print_signals): Now takes a
9752 gdb::array_view as parameter. Adjust.
9753 * target.h (target_ops) <pass_signals, program_signals>: Replace
9754 pointer and length parameters with gdb::array_view.
9755 (target_pass_signals, target_program_signals): Likewise.
9756 * target-delegates.c: Regenerate.
9757
3046d67a
PA
97582019-01-24 Pedro Alves <palves@redhat.com>
9759
9760 * common/forward-scope-exit.h
9761 (forward_scope_exit::forward_scope_exit): Pass arguments to
9762 m_bind_function directly, instead of creating a std::bind and
9763 copying that.
9764
353229bf
AH
97652019-01-24 Alan Hayward <alan.hayward@arm.com>
9766
9767 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9768 for static members.
9769 (pass_in_v_vfp_candidate): Likewise.
9770
311dc83a
TT
97712019-01-23 Tom Tromey <tom@tromey.com>
9772 Pedro Alves <palves@redhat.com>
9773
9774 * regcache.c (class regcache_invalidator): Remove.
9775 (regcache::raw_write): Use make_scope_exit.
9776
296bd123
TT
97772019-01-23 Tom Tromey <tom@tromey.com>
9778
9779 * ui-out.h (class ui_out_emit_type): Update comment.
9780
979a0d13
TT
97812019-01-23 Tom Tromey <tom@tromey.com>
9782
9783 * infrun.c (fetch_inferior_event): Update comment.
9784
d238133d
TT
97852019-01-23 Tom Tromey <tom@tromey.com>
9786 Pedro Alves <palves@redhat.com>
9787
9788 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9789 parameter.
9790 (fetch_inferior_event): Use SCOPE_EXIT.
9791
9792
9885e6bb
TT
97932019-01-23 Tom Tromey <tom@tromey.com>
9794 Pedro Alves <palves@redhat.com>
9795
9796 * infrun.c (disable_thread_events): Delete.
9797 (stop_all_threads): Use SCOPE_EXIT.
9798
286526c1
TT
97992019-01-23 Tom Tromey <tom@tromey.com>
9800 Pedro Alves <palves@redhat.com>
9801
9802 * symfile.c: Include forward-scope-exit.h.
9803 (clear_symtab_users_cleanup): Replace forward declaration with
9804 a FORWARD_SCOPE_EXIT.
9805 (syms_from_objfile_1): Use the forward_scope_exit and
9806 gdb::optional instead of cleanup_function.
9807 (reread_symbols): Use the forward_scope_exit instead of
9808 cleanup_function.
9809 (clear_symtab_users_cleanup): Remove function.
9810
1db93f14
TT
98112019-01-23 Tom Tromey <tom@tromey.com>
9812 Pedro Alves <palves@redhat.com>
9813
9814 * linux-nat.c: Include scope-exit.h.
9815 (cleanup_target_stop): Remove.
9816 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9817 SCOPE_EXIT.
9818
2cc83d1e
TT
98192019-01-23 Tom Tromey <tom@tromey.com>
9820 Pedro Alves <palves@redhat.com>
9821
9822 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9823 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9824
694c6bf5
TT
98252019-01-23 Tom Tromey <tom@tromey.com>
9826 Andrew Burgess <andrew.burgess@embecosm.com>
9827 Pedro Alves <palves@redhat.com>
9828
9829 * infrun.c (fetch_inferior_event): Use scope_exit.
9830 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9831 * top.c (execute_command): Use scope_exit.
9832 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9833 * utils.c (do_bpstat_clear_actions_cleanup)
9834 (make_bpstat_clear_actions_cleanup): Remove.
9835
4c41382a
TT
98362019-01-23 Tom Tromey <tom@tromey.com>
9837 Pedro Alves <palves@redhat.com>
9838
9839 * infrun.c: Include "common/scope-exit.h"
9840 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9841 (wait_for_inferior): Use SCOPE_EXIT.
9842 (fetch_inferior_event): Use scope_exit.
9843
89f8fb50
TT
98442019-01-23 Tom Tromey <tom@tromey.com>
9845 Pedro Alves <palves@redhat.com>
9846
9847 * breakpoint.c (create_breakpoint): Remove cleanup.
9848
5419bdae
TT
98492019-01-23 Tom Tromey <tom@tromey.com>
9850 Andrew Burgess <andrew.burgess@embecosm.com>
9851 Pedro Alves <palves@redhat.com>
9852
e587ef42
PA
98532019-01-23 Pedro Alves <palves@redhat.com>
9854
9855 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9856
77f0e74c
PA
98572019-01-23 Pedro Alves <palves@redhat.com>
9858 Andrew Burgess <andrew.burgess@embecosm.com>
9859
9860 * gdbthread.h: Include "common/forward-scope-exit.h".
9861 (scoped_finish_thread_state): Redefine custom class in terms of
9862 forward_scope_exit.
9863
5b9b3e53
PA
98642019-01-23 Pedro Alves <palves@redhat.com>
9865 Andrew Burgess <andrew.burgess@embecosm.com>
9866
9867 * common/forward-scope-exit.h: New file.
9868
54b65c9b
PA
98692019-01-23 Pedro Alves <palves@redhat.com>
9870 Andrew Burgess <andrew.burgess@embecosm.com>
9871 Tom Tromey <tom@tromey.com>
9872
9873 * common/scope-exit.h: New file.
9874
cf08fb29
PA
98752019-01-23 Pedro Alves <palves@redhat.com>
9876
9877 * common/preprocessor.h (ESC): Rename to ...
9878 (ESC_PARENS): ... this.
9879 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9880 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9881
ae73e2e2
TT
98822019-01-23 Tom Tromey <tom@tromey.com>
9883
9884 * language.h (class scoped_switch_to_sym_language_if_auto):
9885 Initialize m_lang in both cases.
9886
6594e122
AH
98872019-01-23 Alan Hayward <alan.hayward@arm.com>
9888
9889 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9890 with XCNEW.
9891
a7c9855d
TT
98922019-01-22 Tom Tromey <tom@tromey.com>
9893
9894 * corelow.c: Do not include sys/file.h.
9895
93cc1d53
TT
98962019-01-22 Tom Tromey <tom@tromey.com>
9897
9898 * tui/tui-wingeneral.h: Include gdb_curses.h.
9899
38561778
TT
99002019-01-22 Tom Tromey <tom@tromey.com>
9901
9902 * source-cache.h (class source_cache) <get_source_lines,
9903 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9904
37b3ab5b
TT
99052019-01-22 Tom Tromey <tom@tromey.com>
9906
9907 * remote-fileio.h (struct remote_target): Declare.
9908
3fabc016
TT
99092019-01-22 Tom Tromey <tom@tromey.com>
9910
9911 * python/py-arch.c: Do not include py-ref.h.
9912 * python/py-bpevent.c: Do not include py-ref.h.
9913 * python/py-cmd.c: Do not include py-ref.h.
9914 * python/py-continueevent.c: Do not include py-ref.h.
9915 * python/py-event.h: Do not include py-ref.h.
9916 * python/py-evtregistry.c: Do not include py-ref.h.
9917 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9918 * python/py-frame.c: Do not include py-ref.h.
9919 * python/py-framefilter.c: Do not include py-ref.h.
9920 * python/py-function.c: Do not include py-ref.h.
9921 * python/py-infevents.c: Do not include py-ref.h.
9922 * python/py-linetable.c: Do not include py-ref.h.
9923 * python/py-objfile.c: Do not include py-ref.h.
9924 * python/py-param.c: Do not include py-ref.h.
9925 * python/py-prettyprint.c: Do not include py-ref.h.
9926 * python/py-progspace.c: Do not include py-ref.h.
9927 * python/py-symbol.c: Do not include py-ref.h.
9928 * python/py-symtab.c: Do not include py-ref.h.
9929 * python/py-type.c: Do not include py-ref.h.
9930 * python/py-unwind.c: Do not include py-ref.h.
9931 * python/py-utils.c: Do not include py-ref.h.
9932 * python/py-value.c: Do not include py-ref.h.
9933 * python/py-varobj.c: Do not include py-ref.h.
9934 * python/py-xmethods.c: Do not include py-ref.h.
9935 * python/python.c: Do not include py-ref.h.
9936 * varobj.c: Do not include py-ref.h.
9937
6b4d7774
TT
99382019-01-22 Tom Tromey <tom@tromey.com>
9939
9940 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9941 keyword for bcache.
9942
7af7e9b5
TT
99432019-01-22 Tom Tromey <tom@tromey.com>
9944
9945 * compile/compile-cplus-types.c: Remove a comment by #include.
9946
951d1049
TT
99472019-01-22 Tom Tromey <tom@tromey.com>
9948
9949 * compile/gcc-c-plugin.h: Include compile-internal.h.
9950
d65d5705
TT
99512019-01-22 Tom Tromey <tom@tromey.com>
9952
9953 * stabsread.c (EXTERN): Do not define.
9954 (symnum, next_symbol_text_func, processing_gcc_compilation)
9955 (within_function, global_sym_chain, global_stabs)
9956 (previous_stab_code, this_object_header_files)
9957 (n_this_object_header_files)
9958 (n_allocated_this_object_header_files): Define.
9959 * stabsread.h (EXTERN): Never define. Use "extern".
9960
b6fb1ee5
PW
99612019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9962
9963 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9964 history_value.
9965
be6d4f74
TT
99662019-01-21 Tom Tromey <tom@tromey.com>
9967
9968 * ui-out.c: Fix includes.
9969 * tui/tui-source.c: Fix includes.
9970 * target.c: Fix includes.
9971 * remote.c: Fix includes.
9972 * regcache.c: Fix includes.
9973 * python/py-block.c: Fix includes.
9974 * printcmd.c: Fix includes.
9975 * or1k-tdep.c: Fix includes.
9976 * mi/mi-main.c: Fix includes.
9977 * m32r-tdep.c: Fix includes.
9978 * csky-tdep.c: Fix includes.
9979 * compile/compile-cplus-types.c: Fix includes.
9980 * cli/cli-interp.c: Fix includes.
9981
73021deb
AH
99822019-01-21 Alan Hayward <alan.hayward@arm.com>
9983
9984 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9985 for padding.
9986
7932255d
TT
99872019-01-16 Tom Tromey <tom@tromey.com>
9988
9989 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
9990 earlier.
9991 (struct objfile) <msymbols_range>: Move from top level.
9992 <msymbols>: New method.
9993 (class objfile_msymbols): Remove.
9994 * symtab.c (default_collect_symbol_completion_matches_break_on):
9995 Update.
9996 * symmisc.c (dump_msymbols): Update.
9997 * stabsread.c (scan_file_globals): Update.
9998 * objc-lang.c (info_selectors_command, info_classes_command)
9999 (find_methods): Update.
10000 * minsyms.c (find_solib_trampoline_target): Update.
10001 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10002 * coffread.c (coff_symfile_read): Update.
10003 * ada-lang.c (ada_lookup_simple_minsym)
10004 (ada_collect_symbol_completion_matches): Update.
10005
604b1bfb
TT
100062019-01-16 Tom Tromey <tom@tromey.com>
10007
10008 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10009 type. Remove no-argument constructor.
10010 <iterator::operator++>: Simplify.
10011 <begin>: Update.
10012 <end>: Use minimal_symbol_count.
10013
f252c6d5
TT
100142019-01-16 Tom Tromey <tom@tromey.com>
10015
10016 * objfiles.h (struct objfile) <psymtabs>: New method.
10017 (class objfile_psymtabs): Remove.
10018 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10019 typedef.
10020 <range>: New method.
10021 (require_partial_symbols): Change return type.
10022 * psymtab.c (require_partial_symbols)
10023 (psym_expand_symtabs_matching): Update.
10024 * mdebugread.c (parse_partial_symbols): Update.
10025 * dbxread.c (dbx_end_psymtab): Update.
10026
b669c953
TT
100272019-01-15 Tom Tromey <tom@tromey.com>
10028
10029 * symtab.c (lookup_objfile_from_block)
10030 (lookup_symbol_in_objfile_symtabs)
10031 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10032 (find_line_symtab, info_sources_command)
10033 (default_collect_symbol_completion_matches_break_on)
10034 (make_source_files_completion_list): Update.
10035 * symmisc.c (print_objfile_statistics, dump_objfile)
10036 (maintenance_print_symbols, maintenance_info_symtabs)
10037 (maintenance_check_symtabs, maintenance_info_line_tables):
10038 Update.
10039 * source.c (select_source_symtab)
10040 (forget_cached_source_info_for_objfile): Update.
10041 * objfiles.h (class objfile_compunits): Remove.
10042 (struct objfile) <compunits_range>: New typedef.
10043 (compunits): New method.
10044 * objfiles.c (objfile_relocate1): Update.
10045 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10046 * maint.c (count_symtabs_and_blocks): Update.
10047 * linespec.c (iterate_over_all_matching_symtabs): Update.
10048 * cp-support.c (add_symbol_overload_list_qualified): Update.
10049 * coffread.c (coff_symtab_read): Update.
10050 * ada-lang.c (add_nonlocal_symbols)
10051 (ada_collect_symbol_completion_matches)
10052 (ada_add_global_exceptions): Update.
10053
7e955d83
TT
100542019-01-15 Tom Tromey <tom@tromey.com>
10055
10056 * progspace.h (program_space) <objfiles_safe_range>: New
10057 typedef.
10058 <objfiles_safe>: New method.
10059 * objfiles.h (class all_objfiles_safe): Remove.
10060 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10061 * jit.c (jit_inferior_exit_hook): Update.
10062
2030c079
TT
100632019-01-17 Tom Tromey <tom@tromey.com>
10064
10065 * progspace.h (program_space) <objfiles_range>: New typedef.
10066 <objfiles>: New method.
10067 <objfiles_head>: Rename from objfiles.
10068 (object_files): Update.
10069 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10070 * guile/scm-pretty-print.c
10071 (ppscm_find_pretty_printer_from_objfiles): Update.
10072 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10073 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10074 Update.
10075 * python/py-progspace.c (pspy_get_objfiles): Update.
10076 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10077 Update.
10078 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10079 (objfpy_lookup_objfile_by_build_id): Update.
10080 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10081 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10082 Update.
10083 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10084 (expand_symtab_containing_pc, lookup_objfile_from_block)
10085 (lookup_static_symbol, basic_lookup_transparent_type)
10086 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10087 (find_line_symtab, info_sources_command)
10088 (default_collect_symbol_completion_matches_break_on)
10089 (make_source_files_completion_list, find_main_name): Update.
10090 * symmisc.c (print_symbol_bcache_statistics)
10091 (print_objfile_statistics, maintenance_print_symbols)
10092 (maintenance_print_msymbols, maintenance_print_objfiles)
10093 (maintenance_info_symtabs, maintenance_check_symtabs)
10094 (maintenance_expand_symtabs, maintenance_info_line_tables):
10095 Update.
10096 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10097 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10098 (map_overlay_command, unmap_overlay_command)
10099 (simple_overlay_update, expand_symtabs_matching)
10100 (map_symbol_filenames): Update.
10101 * symfile-debug.c (set_debug_symfile): Update.
10102 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10103 Update.
10104 * source.c (select_source_symtab, forget_cached_source_info):
10105 Update.
10106 * solib.c (solib_read_symbols): Update.
10107 * solib-spu.c (append_ocl_sos): Update.
10108 * psymtab.c (maintenance_print_psymbols)
10109 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10110 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10111 * printcmd.c (info_symbol_command): Update.
10112 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10113 Update.
10114 * objfiles.h (class all_objfiles): Remove.
10115 * objfiles.c (have_partial_symbols, have_full_symbols)
10116 (have_minimal_symbols, qsort_cmp, update_section_map)
10117 (shared_objfile_contains_address_p)
10118 (default_iterate_over_objfiles_in_search_order): Update.
10119 * objc-lang.c (info_selectors_command, info_classes_command)
10120 (find_methods): Update.
10121 * minsyms.c (find_solib_trampoline_target): Update.
10122 * maint.c (maintenance_info_sections)
10123 (maintenance_translate_address, count_symtabs_and_blocks):
10124 Update.
10125 * main.c (captured_main_1): Update.
10126 * linux-thread-db.c (try_thread_db_load_from_pdir)
10127 (has_libpthread): Update.
10128 * linespec.c (iterate_over_all_matching_symtabs)
10129 (search_minsyms_for_name): Update.
10130 * jit.c (jit_find_objf_with_entry_addr): Update.
10131 * hppa-tdep.c (find_unwind_entry)
10132 (hppa_lookup_stub_minimal_symbol): Update.
10133 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10134 Update.
10135 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10136 (elf_gnu_ifunc_resolve_by_got): Update.
10137 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10138 * dwarf-index-write.c (save_gdb_index_command): Update.
10139 * cp-support.c (add_symbol_overload_list_qualified): Update.
10140 * breakpoint.c (create_overlay_event_breakpoint)
10141 (create_longjmp_master_breakpoint)
10142 (create_std_terminate_master_breakpoint)
10143 (create_exception_master_breakpoint): Update.
10144 * blockframe.c (find_pc_partial_function): Update.
10145 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10146 (ada_collect_symbol_completion_matches)
10147 (ada_add_global_exceptions): Update.
10148
776489e0
TT
101492019-01-17 Tom Tromey <tom@tromey.com>
10150
10151 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10152 declare VEC.
10153 (solib_target_parse_libraries): Change return type.
10154 (library_list_start_segment, library_list_start_section)
10155 (library_list_end_library, library_list_start_library); Update.
10156 (solib_target_free_library_list): Remove.
10157 (solib_target_parse_libraries): Remove cleanup. Change return
10158 type.
10159 (solib_target_current_sos): Update.
10160
6471e7d2
TT
101612019-01-17 Tom Tromey <tromey@bapiya>
10162
10163 * valprint.c: Replace "the the" with "the".
10164 * symtab.c: Replace "the the" with "the".
10165 * solib.c: Replace "the the" with "the".
10166 * solib-dsbt.c: Replace "the the" with "the".
10167 * linespec.c: Replace "the the" with "the".
10168 * dwarf2loc.h: Replace "the the" with "the".
10169 * amd64-windows-tdep.c: Replace "the the" with "the".
10170 * aarch64-tdep.c: Replace "the the" with "the".
10171
c24bdb02
KS
101722019-01-16 Keith Seitz <keiths@redhat.com>
10173
10174 PR gdb/23773
10175 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10176 <builder>: Rename to ..
10177 <m_builder>: ... this and make private.
10178 (dwarf2_cu::get_builder): New method. Change all users of
10179 `builder' to use this method.
10180 (dwarf2_start_symtab): Move to ...
10181 (dwarf2_cu::start_symtab): ... here. Update all callers
10182 (setup_type_unit_groups): Move to ...
10183 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10184 callers.
10185 (dwarf2_cu::reset_builder): New method.
10186 (process_full_compunit, process_full_type_unit): Use
10187 dwarf2_cu::reset_builder.
10188 (follow_die_offset): Record the ancestor CU if it is different
10189 from the followed DIE's CU.
10190 (follow_die_sig_1): Likewise.
10191
8d64371b
TT
101922019-01-15 Tom Tromey <tom@tromey.com>
10193
10194 * remote.c (class remote_state) <buf>: Now a char_vector.
10195 <buf_size>: Remove.
10196 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10197 parameter.
10198 (remote_target::getpkt_or_notif_sane_1)
10199 (remote_target::getpkt_sane)
10200 (remote_target::getpkt_or_notif_sane): Likewise.
10201 (class remote_target) <putpkt>: New overload.
10202 (remote_target::read_frame): Change type of "buf_p". Remove
10203 sizeof_p parameter.
10204 (packet_ok): New overload.
10205 (packet_check_result): New overload.
10206 Update all uses.
10207
bb277751
TT
102082019-01-14 Tom Tromey <tom@tromey.com>
10209
10210 * remote-notif.c (handle_notification, remote_notif_ack)
10211 (remote_notif_parse): Make "buf" const.
10212 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10213 const.
10214 (remote_notif_parse, remote_notif_ack, handle_notification):
10215 Likewise.
10216 * remote.c (remote_notif_stop_parse): Make "buf" const.
10217 (remote_target::remote_parse_stop_reply): Make "buf" const.
10218 (remote_notif_stop_ack): Make "buf" const.
10219
05be00a8
TT
102202019-01-14 Tom Tromey <tom@tromey.com>
10221
10222 * remote.c (remote_console_output): Make parameter const.
10223
491adeca
TT
102242019-01-14 Tom Tromey <tom@tromey.com>
10225
10226 * target-debug.h (target_debug_print_signals): Constify.
10227 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10228 * procfs.c (procfs_target::pass_signals): Update.
10229 * linux-nat.c (linux_nat_target::pass_signals): Update.
10230 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10231 * target-delegates.c: Rebuild.
10232 * remote.c (remote_target::program_signals): Update.
10233 (remote_target::pass_signals): Update.
10234 * target.c (target_pass_signals): Constify argument.
10235 (target_program_signals): Likewise.
10236 * target.h (struct target_ops) <pass_signals, program_signals>:
10237 Constify argument.
10238 (target_pass_signals, target_program_signals): Constify argument.
10239
bbd94648
TT
102402019-01-14 Tom Tromey <tom@tromey.com>
10241
10242 PR tui/28819:
10243 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10244
6f072a10
PFC
102452019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10246
10247 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10248 field.
10249 * rs6000-tdep.c: Include reggroups.h.
10250 (IS_V_ALIAS_PSEUDOREG): Define.
10251 (rs6000_register_name): Return names for the "vX" aliases.
10252 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10253 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10254 aliases. Call default_register_reggroup_p for all other
10255 pseudo-registers.
10256 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10257 New functions.
10258 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10259 Handle "vX" aliases.
10260 (v_alias_pseudo_register_collect): New function.
10261 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10262 (rs6000_gdbarch_init): Initialize "vX" aliases as
10263 pseudo-registers. Restore registration of
10264 rs6000_pseudo_register_reggroup_p with
10265 set_tdesc_pseudo_register_reggroup_p.
10266
1a782351
MF
102672019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10268
10269 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10270 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10271 set_gdbarch_num_pseudo_regs.
10272
d73cff18
PW
102732019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10274
10275 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10276 Remove arg prefixname, add do_set and do_show.
10277 Add member functions set_list and show_list.
10278 * cli/cli-style.c (class cli_style_option): Update accordingly.
10279 (style_set_list): Move to file scope.
10280 (style_show_list): Likewise.
10281 (set_style): Call help_list.
10282 (show_style): Call cmd_show_list.
10283 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10284 Update to use the new macro.
10285
60a90376
JB
102862019-10-12 Joel Brobecker <brobecker@adacore.com>
10287
10288 * ada-lang.c (_initialize_ada_language): Expand the help text
10289 for the "catch exception" command.
10290
9d7c67bf
PW
102912019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10292
10293 * symtab.c (matching_obj_sections): Initialize obj,
10294 declare it closer to its usage.
10295
7cf47dc4
TT
102962019-01-10 Tom Tromey <tom@tromey.com>
10297
10298 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10299 (basic_inf_threads_range): Remove.
10300 (inf_threads_range, inf_non_exited_threads_range)
10301 (safe_inf_threads_range): Use next_adapter.
10302
d3cb6808
KS
103032019-01-10 Keith Seitz <keiths@redhat.com>
10304
10305 PR gdb/23712
10306 PR symtab/23010
10307 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10308 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10309
63a20375
KS
103102019-01-10 Keith Seitz <keiths@redhat.com>
10311
10312 PR gdb/23712
10313 PR symtab/23010
10314 * dictionary.c (pending_to_vector): Remove.
10315 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10316 Remove _1 suffix, replacing functions of the same name. Update
10317 all callers.
10318 (dict_create_hashed, dict_create_hashed_expandable)
10319 (dict_create_linear, dict_create_linear_expandable, dict_free)
10320 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10321 Make functions static.
10322
b026f593
KS
103232019-01-10 Keith Seitz <keiths@redhat.com>
10324
10325 PR gdb/23712
10326 PR symtab/23010
10327 * dictionary.h (struct dictionary): Replace declaration with
10328 multidictionary.
10329 (dict_create_hashed, dict_create_hashed_expandable)
10330 (dict_create_linear, dict_create_linear_expandable)
10331 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10332 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10333 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10334 taking multidictionary argument.
10335 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10336 * block.h (struct block) <dict>: Change to multidictionary
10337 and rename `multidict'.
10338 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10339 symmisc.c: Update all dictionary references to multidictionary.
10340
c7748ee9
KS
103412019-01-10 Keith Seitz <keiths@redhat.com>
10342
10343 PR gdb/23712
10344 PR symtab/23010
10345 * dictionary.c: Include unordered_map.
10346 (pending_to_vector): New function.
10347 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10348 Rewrite the non-"_1" functions to take vector instead
10349 of linked list.
10350 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10351 "new" _1 versions of the same name.
10352 (multidictionary): Define.
10353 (std::hash<enum language): New definition.
10354 (collate_pending_symbols_by_language, mdict_create_hashed)
10355 (mdict_create_hashed_expandable, mdict_create_linear)
10356 (mdict_create_linear_expandable, mdict_free)
10357 (find_language_dictionary, create_new_language_dictionary)
10358 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10359 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10360 (mdict_size, mdict_empty): New functions.
10361 * dictionary.h (mdict_iterator): Define.
10362
67aa1f3c
PA
103632019-01-10 Pedro Alves <palves@redhat.com>
10364
10365 * breakpoint.c (read_uploaded_action)
10366 (create_tracepoint_from_upload): Adjust to use
10367 gdb::unique_xmalloc_ptr.
10368 * ctf.c (ctf_write_uploaded_tp):
10369 (SET_ARRAY_FIELD): Use emplace_back.
10370 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10371 * tracefile-tfile.c (tfile_write_uploaded_tp):
10372 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10373 gdb::unique_xmalloc_ptr.
10374 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10375 at_string, cond_string, cmd_strings>: Replace char pointers
10376 with gdb::unique_xmalloc_ptr.
10377
2f667667
PA
103782019-01-10 Pedro Alves <palves@redhat.com>
10379
10380 * solib-target.c (library_list_start_library): Don't xstrdup name.
10381
36cb7237
PA
103822019-01-10 Pedro Alves <palves@redhat.com>
10383
10384 * mdebugread.c (parse_partial_symbols): Use
10385 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10386
da584958
AB
103872019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10388
10389 * linux-fork.c (scoped_switch_fork_info)
10390 <~scoped_switch_fork_info>: Fix incorrect variable name.
10391
1ef8573c
AB
103922019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10393
10394 * linux-fork.c (scoped_switch_fork_info)
10395 <scoped_switch_fork_info>: Make explicit.
10396 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10397
8d7bcccb
TT
103982019-01-10 Tom Tromey <tom@tromey.com>
10399
10400 * objfiles.h (objfile::reset_psymtabs): Update.
10401 * objfiles.c (objfile::objfile): Update.
10402 * psymtab.h (psymtab_storage::obstack): Update.
10403 (psymtab_storage::m_obstack): Use gdb::optional.
10404 (class psymtab_storage): Update comment. Remove objfile
10405 parameter.
10406 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10407
b596a3c7
TT
104082019-01-10 Tom Tromey <tom@tromey.com>
10409
10410 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10411 <free_psymtabs>: Now private.
10412 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10413 (allocate_psymtab): Use new method.
10414
a9342b62
TT
104152019-01-10 Tom Tromey <tom@tromey.com>
10416
10417 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10418 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10419 * mdebugread.c (parse_partial_symbols): Use
10420 allocate_dependencies.
10421 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10422 allocate_dependencies.
10423 (process_psymtab_comp_unit_reader)
10424 (build_type_psymtab_dependencies): Likewise.
10425 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10426
5af70966
TT
104272019-01-10 Tom Tromey <tom@tromey.com>
10428
10429 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10430 PSYMBOL_SET_LANGUAGE.
10431 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10432
5923a04c
TT
104332019-01-10 Tom Tromey <tom@tromey.com>
10434
10435 * psymtab.h (psymtab_storage::obstack): New method.
10436 <m_obstack>: Rename from obstack; now private.
10437 * psymtab.c (psymtab_storage): Update.
10438 * dwarf2read.c (create_addrmap_from_index)
10439 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10440 Update.
10441
6d6a12bf
TT
104422019-01-10 Tom Tromey <tom@tromey.com>
10443
10444 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10445 * objfiles.h (objfile::reset_psymtabs): New method.
10446
d320c2b5
TT
104472019-01-10 Tom Tromey <tom@tromey.com>
10448
10449 * symmisc.c (print_symbol_bcache_statistics): Update.
10450 (print_objfile_statistics): Update.
10451 * symfile.c (reread_symbols): Update.
10452 * psymtab.h (class psymtab_storage): New.
10453 * psymtab.c (psymtab_storage): New constructor.
10454 (~psymtab_storage): New destructor.
10455 (require_partial_symbols): Update.
10456 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10457 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10458 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10459 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10460 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10461 (start_psymtab_common, end_psymtab_common)
10462 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10463 (allocate_psymtab): Update.
10464 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10465 Update.
10466 (dump_psymtab_addrmap, maintenance_print_psymbols)
10467 (maintenance_check_psymtabs): Update.
10468 (class objfile_psymtabs): Move to objfiles.h.
10469 * psympriv.h (discard_psymtab): Now inline.
10470 (psymtab_discarder::psymtab_discarder): Update.
10471 (psymtab_discarder::~psymtab_discarder): Update.
10472 (ALL_OBJFILE_PSYMTABS): Rewrite.
10473 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10474 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10475 Remove fields.
10476 <partial_symtabs>: New field.
10477 (class objfile_psymtabs): Move from psymtab.h. Update.
10478 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10479 psymbol_cache.
10480 (objfile::~objfile): Don't destroy psymbol_cache.
10481 * mdebugread.c (parse_partial_symbols): Update.
10482 * dwarf2read.c (create_addrmap_from_index)
10483 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10484 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10485 (add_partial_subprogram, dwarf2_ranges_read): Update.
10486 * dwarf-index-write.c (write_address_map)
10487 (write_one_signatured_type, recursively_write_psymbols)
10488 (class debug_names, class debug_names, write_psymtabs_to_index):
10489 Update.
10490
1d94a5a3
TT
104912019-01-10 Tom Tromey <tom@tromey.com>
10492
10493 * symtab.h (SYMBOL_SET_NAMES): Update.
10494 (symbol_set_names): Update.
10495 (MSYMBOL_SET_NAMES): Update.
10496 * symtab.c (symbol_set_names): Change argument to be an
10497 objfile_per_bfd_storage.
10498 * psymtab.c (add_psymbol_to_bcache): Update.
10499 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10500
0f14768a
TT
105012019-01-10 Tom Tromey <tom@tromey.com>
10502
10503 * symtab.c (create_demangled_names_hash): Change argument to be an
10504 objfile_per_bfd_storage.
10505 (symbol_set_names): Update.
10506
6eee24ce
TT
105072019-01-10 Tom Tromey <tom@tromey.com>
10508
10509 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10510 init_psymbol_list.
10511 * psymtab.c (init_psymbol_list): Do nothing if already called.
10512 * psympriv.h (init_psymbol_list): Add comment.
10513 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10514 init_psymbol_list.
10515 * dbxread.c (dbx_symfile_read): Unconditionally call
10516 init_psymbol_list.
10517
75aedd27
TT
105182019-01-10 Tom Tromey <tom@tromey.com>
10519
10520 * xcoffread.c (scan_xcoff_symtab): Update.
10521 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10522 "where".
10523 * mdebugread.c (parse_partial_symbols)
10524 (handle_psymbol_enumerators): Update.
10525 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10526 * dbxread.c (read_dbx_symtab): Update.
10527 * psympriv.h (psymbol_placement): New enum.
10528 (add_psymbol_to_list): Update.
10529
939652a5
TT
105302019-01-10 Tom Tromey <tom@tromey.com>
10531
10532 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10533 static_psymbols parameters.
10534 (scan_xcoff_symtab): Update.
10535 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10536 static_psymbols parameters.
10537 * psympriv.h (start_psymtab_common): Update.
10538 * mdebugread.c (parse_partial_symbols): Update.
10539 * dwarf2read.c (create_partial_symtab): Update.
10540 * dbxread.c (read_dbx_symtab): Update.
10541 (start_psymtab): Remove global_psymbols and static_psymbols
10542 parameters.
10543
baa62830
TT
105442019-01-10 Tom Tromey <tom@tromey.com>
10545
10546 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10547 * psymtab.c (allocate_psymtab): Add comment.
10548 * psympriv.h (allocate_psymtab): Add comment.
10549 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10550 initializations.
10551 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10552
0e8f53ba
TT
105532019-01-10 Tom Tromey <tom@tromey.com>
10554
10555 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10556 Don't declare.
10557 * mipsread.c: Include mdebugread.h.
10558 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10559 Declare.
10560 * elfread.c: Include mdebugread.h.
10561
b22a7c6a
TT
105622019-01-09 Tom Tromey <tom@tromey.com>
10563
10564 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10565 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10566 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10567 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10568 (psym_lookup_symbol, psym_find_last_source_symtab)
10569 (psym_forget_cached_source_info, psym_print_stats)
10570 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10571 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10572 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10573 (psym_find_compunit_symtab_by_address)
10574 (maintenance_print_psymbols, maintenance_info_psymtabs)
10575 (maintenance_check_psymtabs): Use ranged for.
10576 * psymtab.h (class objfile_psymtabs): New.
10577 (require_partial_symbols): Return objfile_psymtabs.
10578 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10579
3b9d3ac2
TT
105802019-01-09 Tom Tromey <tom@tromey.com>
10581
10582 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10583 (find_pc_mapped_section, list_overlays_command)
10584 (map_overlay_command, unmap_overlay_command)
10585 (simple_overlay_update): Use all_objfiles.
10586 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10587 * printcmd.c (info_symbol_command): Use all_objfiles.
10588 * objfiles.h (ALL_OBJSECTIONS): Remove.
10589 * maint.c (maintenance_translate_address): Use all_objfiles.
10590 * gcore.c (gcore_create_callback): Use all_objfiles.
10591 (objfile_find_memory_regions): Likewise.
10592
8b31193a
TT
105932019-01-09 Tom Tromey <tom@tromey.com>
10594
10595 * symtab.c (find_line_symtab, info_sources_command)
10596 (make_source_files_completion_list): Use objfile_compunits.
10597 * source.c (select_source_symtab): Use objfile_compunits.
10598 * objfiles.h (struct objfile): Update comment.
10599 (ALL_OBJFILES): Remove.
10600 (ALL_FILETABS): Remove.
10601 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10602 objfile_compunits.
10603
d5da8b3c
TT
106042019-01-09 Tom Tromey <tom@tromey.com>
10605
10606 * symmisc.c (print_objfile_statistics, dump_objfile)
10607 (maintenance_print_symbols): Use compunit_filetabs.
10608 * source.c (forget_cached_source_info_for_objfile): Use
10609 compunit_filetabs.
10610 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10611 (ALL_FILETABS): Use compunit_filetabs.
10612 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10613 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10614
5accd1a0
TT
106152019-01-09 Tom Tromey <tom@tromey.com>
10616
10617 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10618 (compunit_filetabs): New.
10619 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10620 compunit_filetabs.
10621 (info_sources_command, make_source_files_completion_list): Remove
10622 declaration.
10623 * symmisc.c (print_objfile_statistics, dump_objfile)
10624 (maintenance_print_symbols): Remove declaration.
10625 (maintenance_info_symtabs): Use compunit_filetabs.
10626 (maintenance_info_line_tables): Likewise.
10627 * source.c (select_source_symtab): Change local variable name.
10628 (forget_cached_source_info_for_objfile): Remove declaration.
10629 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10630 * objfiles.c (objfile_relocate1): Remove declaration.
10631 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10632 declaration.
10633 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10634 * coffread.c (coff_symtab_read): Remove declaration.
10635 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10636 compunit_filetabs.
10637
d8aeb77f
TT
106382019-01-09 Tom Tromey <tom@tromey.com>
10639
10640 * symtab.c (lookup_objfile_from_block)
10641 (find_pc_sect_compunit_symtab, search_symbols)
10642 (default_collect_symbol_completion_matches_break_on): Use
10643 objfile_compunits.
10644 * objfiles.h (ALL_COMPUNITS): Remove.
10645 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10646 * cp-support.c (add_symbol_overload_list_qualified): Use
10647 objfile_compunits.
10648 * ada-lang.c (ada_collect_symbol_completion_matches)
10649 (ada_add_global_exceptions): Use objfile_compunits.
10650
592553c4
TT
106512019-01-09 Tom Tromey <tom@tromey.com>
10652
10653 * source.c (select_source_symtab)
10654 (forget_cached_source_info_for_objfile): Remove declaration.
10655 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10656 declaration.
10657 * maint.c (count_symtabs_and_blocks): Remove declaration.
10658 * cp-support.c (add_symbol_overload_list_qualified): Remove
10659 declaration.
10660 * coffread.c (coff_symtab_read): Remove declaration.
10661 * symtab.c (lookup_symbol_in_objfile_symtabs)
10662 (basic_lookup_transparent_type_1): Use objfile_compunits.
10663 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10664 (info_sources_command, search_symbols)
10665 (default_collect_symbol_completion_matches_break_on)
10666 (make_source_files_completion_list): Remove declaration.
10667 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10668 (ada_collect_symbol_completion_matches)
10669 (ada_add_global_exceptions): Remove declaration.
10670 * linespec.c (iterate_over_all_matching_symtabs): Use
10671 objfile_compunits.
10672 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10673 (class objfile_compunits): New.
10674 (ALL_COMPUNITS): Use objfile_compunits.
10675 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10676 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10677 objfile_compunits.
10678 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10679
5325b9bf
TT
106802019-01-09 Tom Tromey <tom@tromey.com>
10681
10682 * symtab.c (search_symbols)
10683 (default_collect_symbol_completion_matches_break_on): Use
10684 objfile_msymbols.
10685 * ada-lang.c (ada_lookup_simple_minsym)
10686 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10687 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10688 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10689 objfile_msymbols.
10690 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10691 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10692 * objc-lang.c (find_methods): Use objfile_msymbols.
10693 (info_selectors_command, info_classes_command): Likewise.
10694 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10695 * objfiles.h (class objfile_msymbols): New.
10696 (ALL_OBJFILE_MSYMBOLS): Remove.
10697 (ALL_MSYMBOLS): Remove.
10698
cac85af2
TT
106992019-01-09 Tom Tromey <tom@tromey.com>
10700
10701 * common/next-iterator.h (next_adapter): Add Iterator template
10702 parameter.
10703 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10704 (class all_objfiles_safe): New.
10705 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10706 * objfiles.c (put_objfile_before): Update comment.
10707 (add_separate_debug_objfile): Likewise.
10708 (free_all_objfiles): Use all_objfiles_safe.
10709 (objfile_purge_solibs): Likewise.
10710
aed57c53
TT
107112019-01-09 Tom Tromey <tom@tromey.com>
10712
10713 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10714 (expand_symtab_containing_pc, lookup_static_symbol)
10715 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10716 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10717 all_objfiles.
10718 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10719 * breakpoint.c (create_overlay_event_breakpoint)
10720 (create_longjmp_master_breakpoint)
10721 (create_std_terminate_master_breakpoint)
10722 (create_exception_master_breakpoint): Use all_objfiles.
10723 * linux-thread-db.c (try_thread_db_load_from_pdir)
10724 (has_libpthread): Use all_objfiles.
10725 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10726 * linespec.c (iterate_over_all_matching_symtabs)
10727 (search_minsyms_for_name): Use all_objfiles.
10728 * maint.c (maintenance_info_sections): Use all_objfiles.
10729 * main.c (captured_main_1): Use all_objfiles.
10730 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10731 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10732 * guile/scm-pretty-print.c
10733 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10734 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10735 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10736 (maintenance_print_msymbols): Use all_objfiles.
10737 * source.c (select_source_symtab): Use all_objfiles.
10738 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10739 * symfile.c (remove_symbol_file_command)
10740 (expand_symtabs_matching, map_symbol_filenames): Use
10741 all_objfiles.
10742 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10743 all_objfiles.
10744 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10745 * objc-lang.c (find_methods): Use all_objfiles.
10746 * objfiles.c (have_partial_symbols, have_full_symbols)
10747 (have_minimal_symbols, qsort_cmp)
10748 (default_iterate_over_objfiles_in_search_order): Use
10749 all_objfiles.
10750 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10751 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10752 (maintenance_check_psymtabs): Use all_objfiles.
10753 (ALL_PSYMTABS): Remove.
10754 * compile/compile-object-run.c (do_module_cleanup): Use
10755 all_objfiles.
10756 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10757 * cp-support.c (add_symbol_overload_list_qualified): Use
10758 all_objfiles.
10759 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10760 Use all_objfiles.
10761 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10762 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10763 all_objfiles.
10764 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10765 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10766 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10767 Uses all_objfiles.
10768 * solib.c (solib_read_symbols): Use all_objfiles
10769
99d89cde
TT
107702019-01-09 Tom Tromey <tom@tromey.com>
10771
10772 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10773 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10774 all_objfiles.
10775 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10776 * symmisc.c (print_symbol_bcache_statistics)
10777 (print_objfile_statistics, maintenance_print_objfiles)
10778 (maintenance_info_symtabs, maintenance_check_symtabs)
10779 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10780 all_objfiles.
10781 * source.c (forget_cached_source_info): Use all_objfiles.
10782 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10783 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10784 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10785 * objfiles.c (update_section_map): Use all_objfiles.
10786 (shared_objfile_contains_address_p): Likewise.
10787 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10788 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10789
21708325
TT
107902019-01-09 Tom Tromey <tom@tromey.com>
10791
10792 * common/next-iterator.h: New file.
10793 * objfiles.h (class all_objfiles): New.
10794 (struct objfile_iterator): New.
10795
669e09f6
PW
107962019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10797
10798 * NEWS: Move the description of the changed "frame", "select-frame",
10799 and "info frame" commands to the Changed commands section.
10800
041be526
SM
108012019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10802
10803 * gdbtypes.c (check_stub_method_group): Remove handling of old
10804 mangling schemes.
10805 * linespec.c (find_methods): Likewise.
10806 * stabsread.c (read_member_functions): Likewise.
10807 * valops.c (search_struct_method): Likewise.
10808 (value_struct_elt_for_reference): Likewise.
10809 * NEWS: Mention this change.
10810
0e2a2133
AB
108112019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10812
10813 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10814 print_source_lines.
10815 * source.c (print_source_lines_base): Update line number check.
10816 (print_source_lines): New function.
10817 (source_lines_range::source_lines_range): New function.
10818 * source.h (class source_lines_range): New class.
10819 (print_source_lines): New declaration.
10820
1055a3b4
PW
108212019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10822
10823 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10824
cfeadda5
TT
108252019-01-08 Tom Tromey <tom@tromey.com>
10826 Simon Marchi <simon.marchi@ericsson.com>
10827
10828 PR gdb/24060
10829 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10830 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10831 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10832 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10833 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10834 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10835
583068ca
AB
108362019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10837
10838 * source.c (select_source_symtab): Move header comment to
10839 declaration in source.h.
10840 (forget_cached_source_info_for_objfile): Likewise.
10841 (forget_cached_source_info): Likewise.
10842 (identify_source_line): Likewise.
10843 * source.h (identify_source_line): Move declaration from symtab.h
10844 and add comment from source.c
10845 (print_source_lines): Likewise.
10846 (forget_cached_source_info_for_objfile): Likewise.
10847 (forget_cached_source_info): Likewise.
10848 (select_source_symtab): Likewise.
10849 (enum print_source_lines_flag): Move definition from symtab.h.
10850 * symtab.h (identify_source_line): Move declaration to source.h.
10851 (print_source_lines): Likewise.
10852 (forget_cached_source_info_for_objfile): Likewise.
10853 (forget_cached_source_info): Likewise.
10854 (select_source_symtab): Likewise.
10855 (enum print_source_lines_flag): Move definition to source.h.
10856 * tui/tui-hooks.c: Add 'source.h' include.
10857
ec98a4ad
AB
108582019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10859
10860 * source.c (print_source_lines_base): Handle requests to print
10861 reverse line number sequences, and guard against empty lines
10862 string.
10863
62ea19c1
AB
108642019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10865
10866 * source.c (print_source_lines_base): Fix skip of '\r' if next
10867 character is '\n'.
10868
9d30e1fd
TT
108692019-01-06 Tom Tromey <tom@tromey.com>
10870
10871 * c-exp.y (struct c_parse_state) <macro_original_text,
10872 expansion_obstack>: New member.
10873 (macro_original_text, expansion_obstack): Remove globals.
10874 (scan_macro_expansion, scanning_macro_expansion)
10875 (finished_macro_expansion): Update.
10876 (scan_macro_cleanup): Remove.
10877 (yylex, c_parse): Update.
10878
c65bac38
TT
108792019-01-06 Tom Tromey <tom@tromey.com>
10880
10881 * c-exp.y (struct c_parse_state) <strings>: New member.
10882 (operator_stoken): Update.
10883
02e12e38
TT
108842019-01-06 Tom Tromey <tom@tromey.com>
10885
10886 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10887 (union type_stack_elt) <typelist_val>: Now a pointer to
10888 std::vector.
10889 (type_stack_cleanup): Don't declare.
10890 (push_typelist): Update.
10891 * parse.c (pop_typelist): Return a std::vector.
10892 (push_typelist): Take a std::vector.
10893 (follow_types): Update. Do not free args.
10894 (type_stack_cleanup): Remove.
10895 * c-exp.y (struct c_parse_state): New.
10896 (cpstate): New global.
10897 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10898 (nonempty_typelist): Update.
10899 (func_mod): Create a new vector.
10900 (c_parse): Create a c_parse_state.
10901 (check_parameter_typelist): Do not delete params.
10902 (function_method): Update. Do not delete type_list.
10903
f097f5ad
TT
109042019-01-06 Tom Tromey <tom@tromey.com>
10905
10906 PR gdb/28155:
10907 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10908 check_typedef.
10909 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10910 (print_return_value): Likewise.
10911
d2adf9f1
TT
109122019-01-05 Tom Tromey <tom@tromey.com>
10913
10914 * contrib/cleanup_check.py: Remove.
10915 * contrib/gcc-with-excheck: Remove.
10916 * contrib/exsummary.py: Remove.
10917 * contrib/excheck.py: Remove.
10918
2eab46b1
JB
109192019-01-05 Joel Brobecker <brobecker@adacore.com>
10920
10921 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10922 NULL. Initialize tpprev to NULL instead of assigning it
10923 to NULL on the next statement.
10924 * windows-nat.c (windows_delete_thread): Remove check for
10925 main_thread_id before printing thread exit notifications.
10926 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10927 Remove thread ID check against main_thread_id.
10928 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10929 windows_delete_thread.
10930 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10931
48c5e7e2
TT
109322019-01-04 Tom Tromey <tom@tromey.com>
10933
10934 * compile/compile.c (_initialize_compile): Use upper case for
10935 metasyntactic variables.
10936 * symmisc.c (_initialize_symmisc): Use upper case for
10937 metasyntactic variables.
10938 * psymtab.c (_initialize_psymtab): Use upper case for
10939 metasyntactic variables.
10940 * demangle.c (demangle_command): Use upper case for metasyntactic
10941 variables.
10942 (_initialize_demangler): Likewise.
10943 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10944 variables.
10945
986041cd
TT
109462019-01-03 Tom Tromey <tom@tromey.com>
10947
10948 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10949
7c711119
TT
109502019-01-03 Tom Tromey <tom@tromey.com>
10951
10952 * python/py-symtab.c (salpy_str): Update.
10953 (struct salpy_sal_object) <symtab>: Now a PyObject.
10954 (salpy_dealloc): Update.
10955 (del_objfile_sal): Use gdbpy_ref.
10956
1b20edf0
TT
109572019-01-03 Tom Tromey <tom@tromey.com>
10958
10959 * python/py-type.c (convert_field): Use new_reference. Return
10960 gdbpy_ref.
10961 (make_fielditem): Return gdbpy_ref.
10962 (typy_fields): Update.
10963 (typy_getitem): Update.
10964 (field_name): Return gdbpy_ref. Use new_reference.
10965 (typy_iterator_iternext): Update.
10966
ea41325b
TT
109672019-01-03 Tom Tromey <tom@tromey.com>
10968
10969 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10970
2a3c71d6
TT
109712019-01-03 Tom Tromey <tom@tromey.com>
10972
10973 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10974 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10975 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10976 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10977 (pspy_set_type_printers): Likewise.
10978 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10979 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10980 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10981 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10982 (objfpy_set_type_printers): Likewise.
10983
5c329e6a
TT
109842019-01-03 Tom Tromey <tom@tromey.com>
10985
10986 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10987 (gdbpy_print_stack): Use gdbpy_err_fetch.
10988 * python/python-internal.h (class gdbpy_err_fetch): New class.
10989 (class gdbpy_enter) <m_error_type, m_error_value,
10990 m_error_traceback>: Remove.
10991 <m_error>: New member.
10992 (gdbpy_exception_to_string): Don't declare.
10993 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
10994 * python/py-value.c (convert_value_from_python): Use
10995 gdbpy_err_fetch.
10996 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
10997 gdbpy_exception_to_string.
10998 (gdbpy_handle_exception): Use gdbpy_err_fetch.
10999 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11000 gdbpy_err_fetch.
11001
169bb27b
AB
110022019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11003
11004 * linux-nat.c (delete_lwp_cleanup): Delete.
11005 (struct lwp_deleter): New struct.
11006 (lwp_info_up): New typedef.
11007 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11008 lwp_info_up.
11009
a07c8880
AB
110102019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11011
11012 * linux-fork.c (class scoped_switch_fork_info): New class.
11013 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11014
26089c49
AB
110152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11016
11017 * valops.c (find_overload_match): Remove use of null_cleanup, and
11018 calls to do_cleanups.
11019
06d3e5b0
AB
110202019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11021
11022 * compile/compile-cplus-types.c
11023 (compile_cplus_instance::decl_name): Handle changes to
11024 cp_func_name.
11025 * cp-support.c (cp_func_name): Update header comment, update
11026 return type.
11027 * cp-support.h (cp_func_name): Update return type in declaration.
11028 * valops.c (find_overload_match): Move temp_func local to top
11029 level of function and change its type. Use temp_func to hold and
11030 delete temporary string obtained from cp_func_name.
11031
66644cd3
AB
110322019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11033
11034 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11035 gdb::char_vector, remove cleanup, and update uses of `msg`.
11036
592d8c0a
JW
110372019-01-03 Jim Wilson <jimw@sifive.com>
11038
11039 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11040
c55d06ec
TT
110412019-01-02 Tom Tromey <tom@tromey.com>
11042
11043 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11044 (tdesc_parse_xml): Remove cleanups.
11045 * target-descriptions.h (make_cleanup_free_target_description):
11046 Don't declare.
11047 (target_desc_deleter): New struct.
11048 (target_desc_up): New typedef.
11049 * target-descriptions.c (target_desc_deleter::operator()): Rename
11050 from free_target_description.
11051 (make_cleanup_free_target_description): Remove.
11052
3a6ae42d
TT
110532019-01-02 Tom Tromey <tom@tromey.com>
11054
11055 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11056 constructor, destructor.
11057 (linespec_parser): Remove typedef.
11058 (~linespec_parser): Rename from linespec_parser_delete.
11059 (linespec_lex_to_end, linespec_complete_label)
11060 (linespec_complete): Update.
11061 (decode_line_full): Remove cleanups.
11062 (decode_line_1): Update.
11063
61fd3e73
TT
110642019-01-02 Tom Tromey <tom@tromey.com>
11065
11066 * python/python-internal.h (inferior_to_inferior_object): Change
11067 return type.
11068 * python/py-exitedevent.c (create_exited_event_object): Update.
11069 * python/py-inferior.c (inferior_to_inferior_object): Return
11070 gdbpy_ref.
11071 (python_new_inferior, python_inferior_deleted)
11072 (thread_to_thread_object, delete_thread_object)
11073 (build_inferior_list, gdbpy_selected_inferior): Update.
11074 * python/py-infthread.c (create_thread_object): Update. Also fail
11075 if inferior_to_inferior_object fails.
11076
d20172fc
SM
110772019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11078
11079 * inferior.h (class inferior) <displaced_step_state>: New field.
11080 * infrun.h (struct displaced_step_state): Move here from
11081 infrun.c. Initialize fields, add constructor.
11082 <inf>: Remove field.
11083 <reset>: New method.
11084 * infrun.c (struct displaced_step_inferior_state): Move to
11085 infrun.h.
11086 (displaced_step_inferior_states): Remove.
11087 (get_displaced_stepping_state): Adust.
11088 (displaced_step_in_progress_any_inferior): Adjust.
11089 (displaced_step_in_progress_thread): Adjust.
11090 (displaced_step_in_progress): Adjust.
11091 (add_displaced_stepping_state): Remove.
11092 (get_displaced_step_closure_by_addr): Adjust.
11093 (remove_displaced_stepping_state): Remove.
11094 (infrun_inferior_exit): Call displaced_step_state.reset.
11095 (use_displaced_stepping): Don't check for NULL.
11096 (displaced_step_prepare_throw): Call
11097 get_displaced_stepping_state.
11098 (displaced_step_fixup): Don't check for NULL.
11099 (prepare_for_detach): Don't check for NULL.
11100
e3319240
PW
111012019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11102
11103 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11104 in case of call that did not complete.
11105
5d36dfb9
AU
111062019-01-02 Andrey Utkin <autkin@undo.io>
11107
11108 * symfile.c (find_separate_debug_file): Fix search of debug files for
11109 remote debuggee.
11110
8833fbf0
TT
111112019-01-02 Tom Tromey <tom@tromey.com>
11112
11113 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11114 indentation.
11115 * python/py-frame.c (frapy_older): Remove cast.
11116 (frapy_newer): Likewise.
11117 * python/py-breakpoint.c (local_setattro): Remove cast.
11118 * python/py-arch.c (archpy_name): Remove local variable.
11119 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11120
4ada3dfd
JB
111212019-01-02 Joel Brobecker <brobecker@adacore.com>
11122
11123 * unittests/basic_string_view/element_access/char/empty.cc:
11124 Fix year range in copyright header.
11125
113b7b81
AB
111262019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11127
11128 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11129 Delete.
11130 <operator==>: Update with for removed field.
11131 <hash>: Likewise.
11132 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11133 <isa_features>: ...this.
11134 <abi_features>: New field.
11135 (riscv_isa_flen): Update comment.
11136 (riscv_abi_xlen): New declaration.
11137 (riscv_abi_flen): New declaration.
11138 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11139 isa_features.
11140 (riscv_abi_xlen): New function.
11141 (riscv_isa_flen): Update to get answer from isa_features.
11142 (riscv_abi_flen): New function.
11143 (riscv_has_fp_abi): Update to get answer from abi_features.
11144 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11145 xlen and flen.
11146 (riscv_call_info) <xlen, flen>: Update comment.
11147 (riscv_call_arg_struct): Remove invalid assertions
11148 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11149 is removed.
11150 (riscv_gdbarch_init): Gather isa features and abi features
11151 separately, ensure both match on the gdbarch when reusing an old
11152 gdbarch. Relax an error check to allow 32-bit abi float to run on
11153 a target with 64-bit float hardware.
11154
b18ca514
PW
111552019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11156
11157 * source.c (search_command_helper): Stop reverse search
11158 when line 1 has been searched.
11159
ec70d8db
PW
111602019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11161
11162 * record-full.c (record_full_base_target::close): Rewrite
11163 record_full_core_buf_list free logic.
11164
5b38f9c1
PW
111652019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11166
11167 * break-catch-syscall.c (print_one_catch_syscall): xfree
11168 the last text.
11169
66d91b39
JB
111702019-01-01 Joel Brobecker <brobecker@adacore.com>
11171
11172 * top.c (print_gdb_version): Update Copyright year in version
11173 message.
11174
42a4f53d
JB
111752019-01-01 Joel Brobecker <brobecker@adacore.com>
11176
11177 Update copyright year range in all GDB files.
11178
7e955d83 111792019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11180
5bbd631d 11181 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11182
5bbd631d 11183For older changes see ChangeLog-2018.
c906108c
SS
11184\f
11185Local Variables:
11186mode: change-log
11187left-margin: 8
11188fill-column: 74
11189version-control: never
57da7796 11190coding: utf-8
c906108c 11191End:
5bbd631d 11192
This page took 3.200291 seconds and 4 git commands to generate.