Remove struct tui_layout_def
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2afade5d
TT
12019-08-13 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-layout.c (tui_set_layout): Update.
4 * tui/tui-data.h (struct tui_layout_def): Remove.
5 (tui_layout_def): Don't declare.
6 * tui/tui-data.c (layout_def): Remove.
7 (tui_layout_def): Remove.
8
a3504e96
TT
92019-08-13 Tom Tromey <tom@tromey.com>
10
11 * tui/tui-winsource.h (struct tui_source_window_base)
12 <clear_detail>: No longer "override".
13 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
14 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
15 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
16 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
17 Remove.
18 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
19
29c92911
TT
202019-08-13 Tom Tromey <tromey@adacore.com>
21
22 * tracepoint.c: Don't include readline.h or history.h.
23
86c6b807
TT
242019-08-12 Tom Tromey <tom@tromey.com>
25
26 * configure: Rebuild.
27 * configure.ac: Check for readline 7.
28 * NEWS: Mention readline 7 requirement.
29 * README: Update.
30
5db2718c
TT
312019-08-12 Tom Tromey <tom@tromey.com>
32
33 * mingw-hdep.c (gdb_select): Remove readline hack.
34
dac36daf
PFC
352019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
36
37 * blockframe.c (find_pc_partial_function): Set *block to nullptr
38 when the function fails.
39
1022c627
AA
402019-08-09 Andreas Arnez <arnez@linux.ibm.com>
41
42 * s390-tdep.c (s390_type_align): New function.
43 (s390_gdbarch_init): Set it as type_align gdbarch method.
44
eba4caf2
TV
452019-08-09 Tom de Vries <tdevries@suse.de>
46
47 PR gdb/24591
48 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
49 pc_low with relocation offset.
50
123cd851
TT
512019-08-07 Tom Tromey <tromey@adacore.com>
52
53 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
54 (print_frame_args): Update.
55 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
56 Update.
57 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
58 * frame.h (struct frame_arg): Add initializers.
59 <error>: Now a unique_xmalloc_ptr.
60
3d31bc39
AH
612019-08-07 Alan Hayward <alan.hayward@arm.com>
62
63 * NEWS: Expand the Pointer Authentication entry.
64 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
65 (aarch64_frame_unmask_lr): ... to this.
66 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
67 Call aarch64_frame_unmask_lr.
68 * frame.c (struct frame_info): Add "masked" variable.
69 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
70 (fprint_frame): Check for masked pc.
71 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
72 declarations.
73 * python/py-framefilter.c (py_print_frame): Check for masked pc.
74 * stack.c (print_frame): Check for masked pc.
75
0cf9feb9
TT
762019-08-06 Tom Tromey <tom@tromey.com>
77
78 * stabsread.c (patch_block_stabs, read_one_struct_field)
79 (read_enum_type): Use obstack_strndup.
80 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
81 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
82 * dwarf2read.c (guess_full_die_structure_name)
83 (anonymous_struct_prefix): Use obstack_strndup.
84 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
85 * c-exp.y (yylex): Use obstack_strndup.
86 * ada-exp.y (write_object_renaming, write_ambiguous_var)
87 (write_var_or_type): Use obstack_strndup.
88
efba19b0
TT
892019-08-06 Tom Tromey <tom@tromey.com>
90
91 * symfile.c (reread_symbols): Use obstack_strdup.
92 * stabsread.c (read_type): Use obstack_strdup.
93 * gdb_obstack.h (obstack_strdup): New overload.
94 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
95 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
96 (dwarf2_canonicalize_name): Use obstack_strdup.
97 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
98 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
99 Use obstack_strdup.
100
f25102f7
TT
1012019-08-06 Tom Tromey <tom@tromey.com>
102
103 * gdb_obstack.h (obstack_strdup): Define.
104 * gdb_obstack.c (obstack_strdup): Don't define.
105
021887d8
TT
1062019-08-06 Tom Tromey <tom@tromey.com>
107
108 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
109 obstack_strdup.
110 * typeprint.c (typedef_hash_table::find_global_typedef): Use
111 obstack_strdup.
112 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
113 * stabsread.c (common_block_start): Use obstack_strdup.
114 * objfiles.c (set_objfile_main_name, objfile): Use
115 obstack_strdup.
116 * namespace.c (add_using_directive): Use obstack_strdup.
117 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
118 * jit.c (finalize_symtab): Use obstack_strdup.
119 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
120 (guess_partial_die_structure_name, partial_die_info::fixup)
121 (dwarf2_name): Use obstack_strdup.
122 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
123 obstack_strdup.
124 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
125 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
126 obstack_strdup.
127 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
128
d2834edc
PW
1292019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
130
131 * unittests/help-doc-selftests.c: New file.
132 * Makefile.in: Add the new file.
133
590042fc
PW
1342019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
135
136 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
137 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
138 the full first line, except when FOR_VALUE_PREFIX. In this case,
139 the trailing '.' is not output, and the first character is uppercased.
140 (print_help_for_command): Update call to print_doc_line.
141 (print_doc_of_command): Likewise.
142 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
143 * cli/cli-option.c (append_indented_doc): Do not append newline.
144 (build_help_option): Append newline after first appended_indented_doc
145 only if a second call is done.
146 (build_help): Append 2 new lines before each option, except the first
147 one.
148 * compile/compile.c (_initialize_compile): Add new lines after
149 %OPTIONS%, when not at the end of the help.
150 Change help doc or code
151 producing the help doc to respect the invariants.
152 * maint-test-options.c (_initialize_maint_test_options): Likewise.
153 Also removed the new line after 'Options:', as all other commands
154 do not put an empty line between 'Options:' and the first option.
155 * printcmd.c (_initialize_printcmd): Likewise.
156 * stack.c (_initialize_stack): Likewise.
157 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
158 incorrectly telling COMMAND is optional.
159 * ada-lang.c (_initialize_ada_language): Change help doc or code
160 producing the help doc to respect the invariants.
161 * ada-tasks.c (_initialize_ada_tasks): Likewise.
162 * breakpoint.c (_initialize_breakpoint): Likewise.
163 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
164 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
165 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
166 * cli/cli-style.c (cli_style_option::add_setshow_commands,
167 _initialize_cli_style): Likewise.
168 * corelow.c (core_target_info): Likewise.
169 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
170 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
171 * filesystem.c (_initialize_filesystem): Likewise.
172 * frame.c (_initialize_frame): Likewise.
173 * gnu-nat.c (add_task_commands): Likewise.
174 * infcall.c (_initialize_infcall): Likewise.
175 * infcmd.c (_initialize_infcmd): Likewise.
176 * interps.c (_initialize_interpreter): Likewise.
177 * language.c (_initialize_language): Likewise.
178 * linux-fork.c (_initialize_linux_fork): Likewise.
179 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
180 * maint.c (_initialize_maint_cmds): Likewise.
181 * memattr.c (_initialize_mem): Likewise.
182 * printcmd.c (_initialize_printcmd): Likewise.
183 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
184 _RegEx): Likewise.
185 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
186 * record-btrace.c (_initialize_record_btrace): Likewise.
187 * record-full.c (_initialize_record_full): Likewise.
188 * record.c (_initialize_record): Likewise.
189 * regcache-dump.c (_initialize_regcache_dump): Likewise.
190 * regcache.c (_initialize_regcache): Likewise.
191 * remote.c (add_packet_config_cmd, init_remote_threadtests,
192 _initialize_remote): Likewise.
193 * ser-tcp.c (_initialize_ser_tcp): Likewise.
194 * serial.c (_initialize_serial): Likewise.
195 * skip.c (_initialize_step_skip): Likewise.
196 * source.c (_initialize_source): Likewise.
197 * stack.c (_initialize_stack): Likewise.
198 * symfile.c (_initialize_symfile): Likewise.
199 * symtab.c (_initialize_symtab): Likewise.
200 * target-descriptions.c (_initialize_target_descriptions): Likewise.
201 * top.c (init_main): Likewise.
202 * tracefile-tfile.c (tfile_target_info): Likewise.
203 * tracepoint.c (_initialize_tracepoint): Likewise.
204 * tui/tui-win.c (_initialize_tui_win): Likewise.
205 * utils.c (add_internal_problem_command): Likewise.
206 * valprint.c (value_print_option_defs): Likewise.
207
404f2902
FCE
2082019-08-06 Frank Ch. Eigler <fche@redhat.com>
209
210 PR build/24886
211 * configure.ac: Drop enable-libmcheck support.
212 * configure, config.in: Rebuild.
213 * libmcheck.m4: Remove.
214 * acinclude.m4: Don't include it.
215 * Makefile.in: Don't distribute it.
216 * top.c (print_gdb_configuration): Don't mention it.
217
046bebe1
TT
2182019-08-06 Tom Tromey <tom@tromey.com>
219
220 * utils.c (set_output_style): Sometimes pass stream to
221 emit_style_escape.
222 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
223 * record-btrace.c (btrace_insn_history): Update.
224 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
225 method.
226 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
227 Update initializers.
228 <m_uiout>: New field.
229 <m_di>: Move lower.
230 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
231 Remove "uiout" parameter.
232 (dump_insns): Update.
233 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
234 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
235
ddbcedf5
CB
2362019-08-06 Christian Biesinger <cbiesinger@google.com>
237
238 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
239 (error_in_psymtab_expansion): Likewise.
240 (lookup_symbol_via_quick_fns): Likewise.
241 (basic_lookup_transparent_type_quick): Likewise.
242 (basic_lookup_transparent_type_1): Likewise.
243
b08b16c8
TT
2442019-08-06 Tom Tromey <tromey@adacore.com>
245
246 * source.c (last_source_error): Now bool.
247 (print_source_lines_base): Make "noprint" bool. Only open
248 source file when last_source_visited changes.
249
cb44333d
TT
2502019-08-06 Tom Tromey <tromey@adacore.com>
251
252 * annotate.c (annotate_source_line): Use g_source_cache.
253 * source-cache.c (source_cache::get_plain_source_lines): Change
254 parameters. Populate m_offset_cache.
255 (source_cache::ensure): New method.
256 (source_cache::get_line_charpos): New method.
257 (extract_lines): Move lower. Change parameters.
258 (source_cache::get_source_lines): Move lower.
259 * source-cache.h (class source_cache): Update comment.
260 <get_line_charpos>: New method.
261 <get_source_lines>: Update comment.
262 <clear>: Clear m_offset_cache.
263 <get_plain_source_lines>: Change parameters.
264 <ensure>: New method
265 <m_offset_cache>: New member.
266 * source.c (forget_cached_source_info_for_objfile): Update.
267 (info_source_command): Use g_source_cache.
268 (find_source_lines, open_source_file_with_line_charpos): Remove.
269 (print_source_lines_base, search_command_helper): Use g_source_cache.
270 * source.h (open_source_file_with_line_charpos): Don't declare.
271 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
272 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
273 Use g_source_cache.
274
872dceaa
TT
2752019-08-06 Tom Tromey <tromey@adacore.com>
276
277 * source-cache.c (source_cache::get_plain_source_lines):
278 Remove "first_line" and "last_line" parameters.
279 (source_cache::get_source_lines): Cache plain text.
280 * source-cache.h (class source_cache)
281 <get_plain_source_lines>: Update.
282
269249d9
TT
2832019-08-06 Tom Tromey <tromey@adacore.com>
284
285 * source-cache.c (extract_lines): No longer a method.
286 Changed type of parameter. Include final newline.
287 (selftests::extract_lines_test): New function.
288 (_initialize_source_cache): Likewise.
289 * source-cache.h (class source_cache)
290 <extract_lines>: Don't declare.
291
c0e8dcd8
TT
2922019-08-06 Tom Tromey <tromey@adacore.com>
293
294 * breakpoint.c (init_breakpoint_sal): Update.
295 (breakpoint): Update.
296 * breakpoint.h (struct breakpoint) <filter>: Now a
297 unique_xmalloc_ptr.
298
0b27c27d
CB
2992019-08-05 Christian Biesinger <cbiesinger@google.com>
300
301 * NEWS: Mention dictionary access on blocks.
302 * python/py-block.c (blpy_getitem): New function.
303 (block_object_as_mapping): New struct.
304 (block_object_type): Use new struct for tp_as_mapping field.
305
4ee94178
CB
3062019-08-05 Christian Biesinger <cbiesinger@google.com>
307
308 * objfiles.h (objfile): Add a comment describing partial symbols.
309
8abfcabc
TT
3102019-08-05 Tom Tromey <tromey@adacore.com>
311
312 * compile/compile.c (_initialize_compile): Use _(), not N_().
313 * thread.c (_initialize_thread): Use _(), not N_().
314 * stack.c (_initialize_stack): Use _(), not N_().
315 * printcmd.c (_initialize_printcmd): Use _(), not N_().
316
2b79f376
SM
3172019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
318
319 * dwarf2read.c (struct dw2_symtab_iterator):
320 <want_specific_block>: Remove.
321 <block_index>: Change type to gdb::optional.
322 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
323 change type of BLOCK_INDEX parameter to gdb::optional.
324 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
325 (dw2_lookup_symbol): Don't pass argument for
326 WANT_SPECIFIC_BLOCK.
327 (dw2_expand_symtabs_for_function): Don't pass argument for
328 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
329 (class dw2_debug_names_iterator)
330 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
331 parameter, change BLOCK_INDEX type to gdb::optional.
332 <m_want_specific_block>: Remove.
333 <m_block_index>: Change type to gdb::optional.
334 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
335 gdb::optional. Re-write in function of gdb::optional.
336 (dw2_debug_names_lookup_symbol): Don't pass argument for
337 WANT_SPECIFIC_BLOCK.
338 (dw2_debug_names_expand_symtabs_for_function): Don't pass
339 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
340 BLOCK_INDEX.
341
ae60f04e
PW
3422019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
343
344 * NEWS: Mention changes to "info sources" command.
345
28cd9371
PW
3462019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
347
348 * symtab.c (filename_partial_match_opts): New struct type.
349 (struct output_source_filename_data): New members
350 regexp, c_regexp, partial_match.
351 (output_source_filename): Use new members to decide to print file.
352 (info_sources_option_defs): New variable.
353 (make_info_sources_options_def_group, print_info_sources_header,
354 info_sources_command_completer):
355 New functions.
356 (info_sources_command): Read new optional arguments.
357 (_initialize_symtab): Update info sources help.
358
ca683e3a
AO
3592019-08-02 Alexandre Oliva <oliva@adacore.com>
360
361 * ada-lang.c (exception_support_info_v0): Renamed from...
362 (default_exception_support_info): ... this. Create new
363 definition for v1.
364 (ada_has_this_exception_support): Look up catch_handlers_sym.
365 (ada_exception_support_info_sniffer): Try v0 after default.
366
f1264162
TT
3672019-08-01 Tom Tromey <tromey@adacore.com>
368
369 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
370 gdbarch.h.
371
0a7b2485
CB
3722019-08-01 Christian Biesinger <cbiesinger@google.com>
373
374 * s12z-tdep.c: Fix include path for s12z-opc.h.
375
c6bdbeb7
AH
3762019-08-01 Alan Hayward <alan.hayward@arm.com>
377
378 * NEWS: Require GNU make 3.82.
379
a2bd7b82
TT
3802019-07-16 Tom Tromey <tom@tromey.com>
381
382 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
383 declare.
384
aa3b6533
TT
3852019-07-30 Tom Tromey <tromey@adacore.com>
386
387 * block.c (contained_in): Remove BLOCK_FUNCTION check.
388
a1530dc7
KB
3892019-07-30 Kevin Buettner <kevinb@redhat.com>
390
391 * printcmd.c (print_address_symbolic): Print negative offsets.
392 (build_address_symbolic): Force signed arithmetic when computing
393 offset.
394
2906593f
CB
3952019-07-30 Christian Biesinger <cbiesinger@google.com>
396
397 PR/24474: Add a function to lookup static variables.
398 * NEWS: Mention this new function.
399 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
400 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
401 * python/python.c (python_GdbMethods): Add new function.
402
c620ed88
CB
4032019-07-29 Christian Biesinger <cbiesinger@google.com>
404
405 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
406 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
407 (objfpy_lookup_static_symbol): New function.
408 (objfile_object_methods): Add new functions.
409
bc4268a5
PW
4102019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
411
412 * NEWS: Mention 'set|show print frame-info'. Mention new
413 'presence' value for 'frame-arguments'. Mention new '-frame-info'
414 backtrace argument. Mention that python frame filtering code
415 is now consistent with what 'backtrace' command prints.
416
4b5e8d19
PW
4172019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
418
419 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
420 comments.
421 (print_frame_info_auto, print_frame_info_source_line,
422 print_frame_info_location, print_frame_info_source_and_location,
423 print_frame_info_location_and_address, print_frame_info_short_location):
424 New declarations.
425 (struct frame_print_options): New member print_frame_info.
426 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
427 * stack.h (get_user_print_what_frame_info): New declaration.
428 (frame_show_address): New declaration.
429 * stack.c (print_frame_arguments_choices): New value 'presence'.
430 (print_frame_info_auto, print_frame_info_source_line,
431 print_frame_info_location, print_frame_info_source_and_location,
432 print_frame_info_location_and_address, print_frame_info_short_location,
433 print_frame_info_choices, print_frame_info_print_what): New definitions.
434 (print_frame_args): Only print dots for args if print frame-arguments
435 is 'presence'.
436 (frame_print_option_defs): New element for "frame-info".
437 (get_user_print_what_frame_info): New function.
438 (frame_show_address): Make non static. Move comment to stack.h.
439 (print_frame_info_to_print_what): New function.
440 (print_frame_info): Update comment. Use fp_opts.print_frame_info
441 to decide what to print.
442 (backtrace_command_1): Handle the new print_frame_arguments_presence
443 value.
444 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
445 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
446 (py_print_frame): In non-mi mode, use LOCATION as default for
447 print_what, similarly to frame information printed directly by
448 backtrace command. Handle frame-info user option in non MI mode.
449
6bdfee81
KB
4502019-07-27 Kevin Buettner <kevinb@redhat.com>
451
452 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
453 Add case for debugging 32-bit target on 64-bit host. Revise
454 comment.
455
98a617f8
KB
4562019-07-27 Kevin Buettner <kevinb@redhat.com>
457
458 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
459 instead of find_function_entry_range_from_pc.
460
567238c9
KB
4612019-07-27 Kevin Buettner <kevinb@redhat.com>
462
463 * stack.c (find_frame_funname): Remove code which preferred
464 minsym over symtab sym in "certain pathological cases".
465
2dc80cf8
KB
466 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
467 parameter. Change type of "do_demangle" to bool.
468 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
469 Pass suitable "prefer_sym_over_minsym" flag to
470 build_address_symbolic(). Don't output "+" for negative offsets.
471 * printcmd.c (print_address_symbolic): Update invocation of
472 build_address_symbolic to include a "prefer_sym_over_minsym"
473 flag.
474 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
475 Restrict cases in which use of minimal symbol is preferred to that
476 of a found symbol. Update comments.
477
1aff7173
KB
478 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
479 for entry pc when entry pc is out of range for that FDE.
480
89b085ac
BC
4812019-07-26 Brian Callahan <bcallah@openbsd.org>
482
483 PR gdb/24839:
484 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
485 type.
486
f32feb4a
CB
4872019-07-25 Christian Biesinger <cbiesinger@google.com>
488
489 * python/py-objfile.c (add_separate_debug_file): Fix comment about
490 this function's Python signature.
491
492
4932019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
494
495 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
496 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
497 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
498 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
499 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
500
501
c54e4253
YS
5022019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
503
504 * h8300-tdep.c (h8300_register_name_common): New.
505 h8300_register_name): Use h8300_register_name_common.
506 (h8300s_register_name): Likewise.
507 (h8300sx_register_name): Likewise.
508 (h8300h_register_nam): New.
509 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
510
511
40eadf04
SP
5122019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
513
514 * arm-tdep.c (arm_skip_cmse_entry): New function.
515 (arm_is_sgstubs_section): New function.
516 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
517
bfa2a36d
TT
5182019-07-22 Tom Tromey <tom@tromey.com>
519
520 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
521 Don't self-assign.
522
a8e9d247
AB
5232019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
526 type_print.
527
eb86c5e2
AB
5282019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * symtab.c (search_symbols): Adjust msymbol matching type arrays
531 so that GDB doesn't match any msymbols when searching in the
532 TYPES_DOMAIN.
533 (print_symbol_info): Print using typedef_print or type_print based
534 on the type of the symbol. Add updated FIXME comment moved from...
535 (_initialize_symtab): ... move and update FIXME comment to above.
536
a8eab7c6
AB
5372019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
538
539 * NEWS: Mention adding -q option to "info types".
540 * symtab.c (struct info_types_options): New struct.
541 (info_types_options_defs): New variable.
542 (make_info_types_options_def_group): New function.
543 (info_types_command): Use gdb::option framework to parse options.
544 (info_types_command_completer): New function.
545 (_initialize_symtab): Extend the help text on "info types" and
546 register command completer.
547
b4603c34
CB
5482019-07-21 Christian Biesinger <cbiesinger@google.com>
549
550 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
551 (lookup_symbol_in_objfile): Change int to block_enum and add a
552 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
553
c8cdc1e0
CB
5542019-07-20 Christian Biesinger <cbiesinger@google.com>
555
556 * MAINTAINERS (Write After Approval): Add self.
557
01e175fe
AB
5582019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
561 instruction to the dummy code region.
562
56f79b63
TT
5632019-07-19 Tom Tromey <tromey@adacore.com>
564
565 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
566 (ARGSUSED, PARAMS, __func__): Remove rules.
567
4c5aa8e0
AH
5682019-07-19 Alan Hayward <alan.hayward@arm.com>
569
570 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
571 * features/arm/arm-with-iwmmxt.c: Remove.
572 * features/arm/arm-with-iwmmxt.xml: Remove.
573 * features/arm/arm-with-m-fpa-layout.c: Remove.
574 * features/arm/arm-with-m-fpa-layout.xml: Remove.
575 * features/arm/arm-with-m-vfp-d16.c: Remove.
576 * features/arm/arm-with-m-vfp-d16.xml: Remove.
577 * features/arm/arm-with-m.c: Remove.
578 * features/arm/arm-with-m.xml: Remove.
579 * features/arm/arm-with-neon.c: Remove.
580 * features/arm/arm-with-neon.xml: Remove.
581 * features/arm/arm-with-vfpv2.c: Remove.
582 * features/arm/arm-with-vfpv2.xml: Remove.
583 * features/arm/arm-with-vfpv3.c: Remove.
584 * features/arm/arm-with-vfpv3.xml: Remove.
585
f42b2617
AH
5862019-07-19 Alan Hayward <alan.hayward@arm.com>
587
588 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
589
f29ec966
AH
5902019-07-19 Alan Hayward <alan.hayward@arm.com>
591
592 * arch/aarch32.c (aarch32_create_target_description): Create
593 target descriptions using features.
594 * arch/arm.c (arm_create_target_description)
595 (arm_create_mprofile_target_description): Likewise.
596 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
597
d105cce5
AH
5982019-07-19 Alan Hayward <alan.hayward@arm.com>
599
600 * Makefile.in: Add new files.
601 * aarch32-tdep.c: New file.
602 * aarch32-tdep.h: New file.
603 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
604 Call aarch32_read_description.
605 * arch/aarch32.c: New file.
606 * arch/aarch32.h: New file.
607 * arch/arm.c (arm_create_target_description)
608 (arm_create_mprofile_target_description): New function.
609 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
610 (arm_create_target_description)
611 (arm_create_mprofile_target_description): New declaration.
612 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
613 read_description functions.
614 * arm-linux-nat.c (arm_linux_nat_target::read_description):
615 Likewise.
616 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
617 * arm-tdep.c (tdesc_arm_list): New variable.
618 (arm_register_g_packet_guesses): Call create description functions.
619 (arm_read_description) (arm_read_mprofile_description): New
620 function.
621 * arm-tdep.h (arm_read_description)
622 (arm_read_mprofile_description): Add declaration.
623 * configure.tgt: Add new files.
624
afe09f0b
GL
6252019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
626
627 * top.c (new_ui_command): Open specified terminal just once.
628
cd215b2e
TT
6292019-07-18 Tom Tromey <tromey@adacore.com>
630
631 * symtab.c (main_name): Constify return type.
632 * symfile.c (set_initial_language): Update.
633 * symtab.h (main_name): Constify return type.
634
d8f68fcb
TT
6352019-07-17 Tom Tromey <tom@tromey.com>
636
637 * tui/tui-winsource.c (tui_update_source_window)
638 (tui_update_source_window_as_is)
639 (tui_update_source_windows_with_line): Remove return.
640 * tui/tui-disasm.c (tui_show_disassem)
641 (tui_show_disassem_and_update_source): Remove return.
642 * tui/tui.c (tui_reset): Remove return.
643 * tui/tui-wingeneral.c
644 (tui_check_and_display_highlight_if_needed): Remove return.
645
ca5af91e
TT
6462019-07-17 Tom Tromey <tom@tromey.com>
647
648 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
649
5104fe36
TT
6502019-07-17 Tom Tromey <tom@tromey.com>
651
652 * tui/tui-winsource.h (struct tui_exec_info_window)
653 (struct tui_source_window_base): Move from tui-data.h.
654 * tui/tui-winsource.c: Move many method definitions from
655 elsewhere. Remove "structuring" comments.
656 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
657 (tui_source_window_base::refresh_window): Move to
658 tui-winsource.c.
659 * tui/tui-win.c (tui_source_window_base::refresh_all)
660 (tui_source_window_base::update_tab_width)
661 (tui_source_window_base::set_new_height)
662 (tui_source_window_base::do_make_visible_with_new_height): Move to
663 tui-winsource.c.
664 * tui/tui-source.h: Update.
665 * tui/tui-source.c (tui_source_window_base::reset): Move to
666 tui-winsource.c.
667 * tui/tui-disasm.h: Update.
668 * tui/tui-data.h (struct tui_exec_info_window): Move to
669 tui-winsource.h.
670 (struct tui_source_window_base): Likewise.
671 * tui/tui-data.c (tui_source_window_base::clear_detail)
672 (tui_source_window_base, ~tui_source_window_base): Move to
673 tui-winsource.c.
674
daa15dde
TT
6752019-07-17 Tom Tromey <tom@tromey.com>
676
677 * tui/tui-win.c (tui_resize_all)
678 (tui_source_window_base::update_tab_width)
679 (tui_adjust_win_heights): Update.
680 (tui_win_info::make_invisible_and_set_new_height): Rename from
681 make_invisible_and_set_new_height.
682 * tui/tui-data.h (struct tui_win_info)
683 <make_invisible_and_set_new_height>: New method.
684
bfad4537
TT
6852019-07-17 Tom Tromey <tom@tromey.com>
686
687 * tui/tui.c: Update.
688 * tui/tui-source.h (struct tui_source_window): Move from
689 tui-data.h.
690 * tui/tui-layout.c: Update.
691 * tui/tui-disasm.c: Update.
692 * tui/tui-data.h (struct tui_source_window): Move to
693 tui-source.h.
694
88f7e873
TT
6952019-07-17 Tom Tromey <tom@tromey.com>
696
697 * tui/tui-disasm.h (struct tui_disasm_window): Move from
698 tui-data.h.
699 * tui/tui-data.h (struct tui_disasm_window): Move to
700 tui-disasm.h.
701
96bd6233
TT
7022019-07-17 Tom Tromey <tom@tromey.com>
703
704 * tui/tui-regs.h (struct tui_data_item_window): Move from
705 tui-data.h.
706 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
707 * tui/tui-data.h (struct tui_data_item_window): Move to
708 tui-regs.h.
709 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
710
ce38393b
TT
7112019-07-17 Tom Tromey <tom@tromey.com>
712
713 * tui/tui.c: Update.
714 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
715 (tui_cmd_window::max_height): Move to tui-command.c.
716 * tui/tui-layout.c: Update.
717 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
718 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
719 tui-command.c.
720 * tui/tui-command.h (struct tui_cmd_window): Move from
721 tui-data.h.
722 * tui/tui-command.c: Remove "structuring" comments.
723 (tui_cmd_window::clear_detail)
724 (tui_cmd_window::do_make_visible_with_new_height)
725 (tui_cmd_window::max_height): Move from elsewhere.
726
2d8b51cb
TT
7272019-07-17 Tom Tromey <tom@tromey.com>
728
729 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
730 Now static.
731 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
732 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
733
18ab23af
TT
7342019-07-17 Tom Tromey <tom@tromey.com>
735
736 * tui/tui.c: Update.
737 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
738 tui-regs.c.
739 * tui/tui-windata.h: Remove file.
740 * tui/tui-windata.c: Remove file.
741 * tui/tui-win.c (tui_data_window::set_new_height)
742 (tui_data_window::do_make_visible_with_new_height): Move to
743 tui-regs.c.
744 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
745 * tui/tui-regs.c: Remove "structuring" comments.
746 (tui_data_window::first_data_item_displayed)
747 (tui_data_window::delete_data_content_windows)
748 (tui_data_window::erase_data_content)
749 (tui_data_window::display_all_data)
750 (tui_data_window::refresh_all)
751 (tui_data_window::do_scroll_vertical)
752 (tui_data_window::clear_detail, tui_data_window::set_new_height)
753 (tui_data_window::do_make_visible_with_new_height)
754 (tui_data_window::refresh_window): Move from elsewhere.
755 (_initialize_tui_regs): Move to end of file.
756 * tui/tui-layout.c: Update.
757 * tui/tui-hooks.c: Update.
758 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
759 * tui/tui-data.c (tui_data_window::clear_detail): Move to
760 tui-regs.c.
761 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
762
88b7e7cc
TT
7632019-07-17 Tom Tromey <tom@tromey.com>
764
765 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
766 seen.
767
0fcd3711
TT
7682019-07-17 Tom Tromey <tom@tromey.com>
769
770 * tui/tui-win.c (tui_source_window_base::set_new_height)
771 (tui_source_window_base::do_make_visible_with_new_height): Use
772 m_has_locator field directly.
773 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
774 method.
775 (struct tui_source_window_base) <has_locator>: Likewise.
776
4a38112d
TT
7772019-07-17 Tom Tromey <tom@tromey.com>
778
779 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
780 Don't declare.
781 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
782 Remove.
783 * tui/tui-win.c (tui_source_window_base::set_new_height)
784 (tui_source_window_base::set_new_height)
785 (make_invisible_and_set_new_height)
786 (tui_source_window_base::do_make_visible_with_new_height)
787 (tui_source_window_base::do_make_visible_with_new_height):
788 Update.
789 * tui/tui-layout.c (show_source_disasm_command, show_data)
790 (show_source_or_disasm_and_command): Update.
791 * tui/tui-layout.c (show_layout): Update.
792
09129226
TT
7932019-07-17 Tom Tromey <tom@tromey.com>
794
795 * tui/tui-layout.c (make_data_window): Remove.
796 (show_data): Unify creation and re-initialization cases.
797
4a8a5e84
TT
7982019-07-17 Tom Tromey <tom@tromey.com>
799
800 * tui/tui-layout.c (make_source_window, make_disasm_window):
801 Remove.
802 (show_data): Unify creation and re-initialization cases.
803
76d2be8e
TT
8042019-07-17 Tom Tromey <tom@tromey.com>
805
806 * tui/tui-layout.c (make_command_window): Remove.
807 (show_source_disasm_command, show_source_or_disasm_and_command):
808 Unify creation and re-initialization cases.
809
890b8bde
TT
8102019-07-17 Tom Tromey <tom@tromey.com>
811
812 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
813 creation and re-initialization cases.
814
2cdfa113
TT
8152019-07-17 Tom Tromey <tom@tromey.com>
816
817 * tui/tui-regs.c (tui_get_register): Return void.
818
8e3cfd09
TT
8192019-07-17 Tom Tromey <tom@tromey.com>
820
821 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
822 Simplify.
823
f4e04977
TT
8242019-07-17 Tom Tromey <tom@tromey.com>
825
826 * tui/tui-layout.c (show_source_disasm_command): Simplify window
827 resetting.
828
0379b883
TT
8292019-07-17 Tom Tromey <tom@tromey.com>
830
831 * tui/tui.h (tui_set_layout_by_name): Don't declare.
832 * tui/tui-regs.c (tui_reg_layout): New function.
833 (tui_show_registers, tui_reg_command): Use it.
834 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
835 (tui_layout_command): Rename from tui_set_layout_by_name. Change
836 parameters.
837 (tui_layout_command): Remove.
838
b7fbad91
TT
8392019-07-17 Tom Tromey <tom@tromey.com>
840
841 * tui/tui-layout.h (tui/tui-layout): Return void.
842 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
843
4e1e56b9
TT
8442019-07-17 Tom Tromey <tom@tromey.com>
845
846 * tui/tui-layout.c (show_source_disasm_command, show_data):
847 Update.
848 (reset_locator): Remove.
849 (show_source_or_disasm_and_command): Update.
850
1e0c09ba
TT
8512019-07-17 Tom Tromey <tom@tromey.com>
852
853 * tui/tui-source.c (tui_source_window_base::reset): Remove
854 win_type parameter.
855 * tui/tui-layout.c (make_command_window, make_source_window)
856 (make_disasm_window, make_data_window)
857 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
858 (reset_locator, show_source_or_disasm_and_command): Update.
859 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
860 win_type parameter.
861 (struct tui_source_window_base) <reset>: Likewise.
862
1bf605de
TT
8632019-07-17 Tom Tromey <tom@tromey.com>
864
865 * tui/tui-layout.c (show_source_disasm_command): Use
866 reset_locator.
867 (reset_locator): New function.
868 (init_and_make_win): Remove.
869 (show_source_or_disasm_and_command): Use reset_locator.
870
098f9ed4
TT
8712019-07-17 Tom Tromey <tom@tromey.com>
872
873 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
874 condition.
875 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
876 Remove condition.
877 * tui/tui-source.c (tui_source_window_base::reset): New method.
878 * tui/tui-layout.c (make_command_window): Don't call
879 init_and_make_win.
880 (make_source_window, make_disasm_window): Don't call
881 make_source_or_disasm_window.
882 (make_data_window): Don't call init_and_make_win. Change calling
883 convention.
884 (show_source_disasm_command, show_data): Simplify.
885 (make_source_or_disasm_window): Remove.
886 (show_source_or_disasm_and_command): Simplify.
887 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
888 (struct tui_source_window_base) <reset>: Likewise.
889 <execution_info>: Remove initializer.
890 * tui/tui-data.c (tui_source_window_base): Initialize
891 execution_info.
892
80110957
TT
8932019-07-17 Tom Tromey <tom@tromey.com>
894
895 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
896 variable.
897
cf82af05
TT
8982019-07-17 Tom Tromey <tom@tromey.com>
899
900 * tui/tui.c (tui_rl_other_window): Update.
901 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
902 superclass method first. Always iterate over regs_content.
903 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
904 method.
905 * tui/tui-win.c (tui_set_focus_command): Update.
906
01aeb396
TT
9072019-07-17 Tom Tromey <tom@tromey.com>
908
909 * tui/tui-win.c (tui_set_focus_command): Rename from
910 tui_set_focus. Call tui_enable.
911 (tui_set_focus_command): Remove.
912
fd6c75ee
TT
9132019-07-17 Tom Tromey <tom@tromey.com>
914
915 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
916 refresh_window.
917 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
918 touchwin.
919 (tui_data_window::refresh_window): Call refresh_window on data
920 items. Always call superclass refresh_window.
921 (tui_win_info::refresh): Remove.
922 (tui_source_window_base::refresh_window): Update.
923 (tui_refresh_all): Update.
924 * tui/tui-layout.c (show_source_disasm_command): Remove call to
925 refresh_window.
926 (show_source_or_disasm_and_command): Likewise.
927 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
928 (struct tui_source_window_base) <refresh>: Likewise.
929
f6cc34a9
TT
9302019-07-17 Tom Tromey <tom@tromey.com>
931
932 * tui/tui-winsource.c (tui_clear_source_content)
933 (tui_show_source_content): Update.
934 * tui/tui-source.c (tui_source_window::showing_source_p): Check
935 whether content is empty.
936 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
937 Remove.
938
f31ec9af
TT
9392019-07-17 Tom Tromey <tom@tromey.com>
940
941 * tui/tui-winsource.c (tui_erase_source_content): Clear the
942 window's contents.
943 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
944 * tui/tui-source.c (tui_set_source_content_nil): Remove.
945
d1b6f1e5
TT
9462019-07-17 Tom Tromey <tom@tromey.com>
947
948 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
949 (struct tui_data_item_window): Update.
950
d9743a13
TT
9512019-07-17 Tom Tromey <tom@tromey.com>
952
953 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
954 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
955 defines.
956
caf0bc4e
TT
9572019-07-17 Tom Tromey <tom@tromey.com>
958
959 * tui/tui-winsource.h (tui_erase_source_content)
960 (tui_clear_source_content): Remove "display_prompt" parameter.
961 * tui/tui-winsource.c (tui_update_source_window_as_is)
962 (tui_update_source_windows_with_addr): Update.
963 (tui_clear_source_content): Remove "display_prompt" parameter.
964 (tui_erase_source_content): Likewise. Simplify.
965 (tui_show_source_content): Update.
966 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
967 * tui/tui-stack.c (tui_show_frame_info): Update.
968 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
969 Remove defines.
970
9d391078
TT
9712019-07-17 Tom Tromey <tom@tromey.com>
972
973 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
974 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
975 parameter.
976 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
977 parameter.
978
a38da35d
TT
9792019-07-17 Tom Tromey <tom@tromey.com>
980
981 * tui/tui-winsource.c (tui_clear_source_content)
982 (tui_show_source_content, tui_show_exec_info_content)
983 (tui_clear_exec_info_content): Update.
984 * tui/tui-stack.c (tui_show_locator_content): Update.
985 (tui_show_frame_info): Update.
986 * tui/tui-source.h (tui_source_window): Don't declare.
987 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
988 from tui_source_is_displayed.
989 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
990 Remove field.
991 (struct tui_source_window_base) <content_in_use>: New field. Now
992 bool.
993 (struct tui_source_window) <showing_source_p>: New method.
994 (TUI_SRC_WIN): Change cast.
995 * tui/tui-data.c (tui_initialize_static_data): Update.
996
c2cd8994
TT
9972019-07-17 Tom Tromey <tom@tromey.com>
998
999 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1000 location_matches_p.
1001 * tui/tui-source.c (tui_source_window::location_matches_p): New
1002 method.
1003 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1004 method.
1005 * tui/tui-data.h (struct tui_source_window_base)
1006 <location_matches_p>: New method.
1007 (struct tui_source_window, struct tui_disasm_window)
1008 <location_matches_p>: Likewise.
1009
4dde7b34
TT
10102019-07-17 Tom Tromey <tom@tromey.com>
1011
1012 * tui/tui-win.c (tui_set_win_height_command): Rename from
1013 tui_set_win_height.
1014 (tui_set_win_height_command): Remove.
1015
b73dd877
TT
10162019-07-17 Tom Tromey <tom@tromey.com>
1017
1018 * tui/tui-source.c (tui_source_window): New constructor. Add
1019 observer.
1020 (~tui_source_window): New destructor.
1021 (tui_source_window::style_changed): New method.
1022 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1023 (tui_attach_detach_observers): Update.
1024 * tui/tui-data.h (struct tui_source_window): Make constructor not
1025 inline. Add destructor.
1026 (struct tui_source_window) <style_changed>: New method.
1027 <m_observable>: New member.
1028
ae2b5380
TT
10292019-07-17 Tom Tromey <tom@tromey.com>
1030
1031 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1032 * tui/tui-win.c (tui_resize_all): Fix typo.
1033
1ce3e844
TT
10342019-07-17 Tom Tromey <tom@tromey.com>
1035
1036 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1037 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1038 (tui_refresh_all): Remove "list" parameter. Use foreach.
1039 * tui/tui-win.c (window_name_completer): Use foreach.
1040 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1041 (update_tab_width): Likewise.
1042 * tui/tui-layout.c (show_layout): Update.
1043 * tui/tui-data.h (class tui_window_iterator): New.
1044 (struct all_tui_windows): New.
1045 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1046
fe3eaf1c
TT
10472019-07-17 Tom Tromey <tom@tromey.com>
1048
1049 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1050 parameter. Don't reference globals.
1051 (tui_reg_command): Update.
1052
368c1354
TT
10532019-07-17 Tom Tromey <tom@tromey.com>
1054
1055 * tui/tui-regs.c (tui_show_registers): Simplify.
1056
e80cd204
TT
10572019-07-17 Tom Tromey <tom@tromey.com>
1058
1059 * tui/tui-regs.c (tui_show_registers): Update.
1060 (tui_show_register_group): Add win_info parameter.
1061
aca2dd16
TT
10622019-07-17 Tom Tromey <tom@tromey.com>
1063
1064 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1065 Rename from tui_display_reg_element_at_line.
1066 (tui_data_window::display_registers_from_line): Update.
1067 * tui/tui-data.h (struct tui_data_window)
1068 <display_reg_element_at_line>: New method.
1069
517e9505
TT
10702019-07-17 Tom Tromey <tom@tromey.com>
1071
1072 * tui/tui-regs.h (tui_display_registers_from)
1073 (tui_display_registers_from_line): Don't declare.
1074 * tui/tui-windata.c (tui_data_window::display_all_data)
1075 (tui_data_window::refresh_all)
1076 (tui_data_window::do_scroll_vertical): Update.
1077 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1078 from tui_display_registers_from.
1079 (tui_display_reg_element_at_line): Update.
1080 (tui_data_window::display_registers_from_line): Rename from
1081 tui_display_registers_from_line.
1082 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1083 display_registers_from_line>: New methods.
1084
f76d8b19
TT
10852019-07-17 Tom Tromey <tom@tromey.com>
1086
1087 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1088 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1089 from tui_erase_data_content.
1090 (tui_data_window::display_all_data)
1091 (tui_data_window::refresh_all)
1092 (tui_data_window::do_scroll_vertical): Update.
1093 * tui/tui-regs.c (tui_show_registers): Update.
1094 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1095 New method.
1096
b4094625
TT
10972019-07-17 Tom Tromey <tom@tromey.com>
1098
1099 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1100 declare.
1101 * tui/tui-windata.c
1102 (tui_data_window::delete_data_content_windows): Rename from
1103 tui_delete_data_content_windows.
1104 (tui_data_window::display_all_data)
1105 (tui_data_window::do_scroll_vertical): Update.
1106 * tui/tui-data.h (struct tui_data_window)
1107 <delete_data_content_windows>: New method.
1108
c223a729
TT
11092019-07-17 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1112 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1113
50daf268
TT
11142019-07-17 Tom Tromey <tom@tromey.com>
1115
1116 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1117 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1118 from tui_display_all_data.
1119 * tui/tui-win.c
1120 (tui_data_window::do_make_visible_with_new_height): Update.
1121 * tui/tui-regs.c (tui_show_registers): Update.
1122 * tui/tui-layout.c (tui_set_layout): Update.
1123 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1124 method.
1125
df5f8cab
TT
11262019-07-17 Tom Tromey <tom@tromey.com>
1127
1128 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1129 * tui/tui-windata.c (tui_display_data_from): Remove.
1130 (tui_data_window::refresh_all): Update.
1131
80cb6c27
TT
11322019-07-17 Tom Tromey <tom@tromey.com>
1133
1134 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1135 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1136 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1137 tui_display_registers_from_line.
1138 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1139 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1140 "force_display" parameter.
1141
baff0c28
TT
11422019-07-17 Tom Tromey <tom@tromey.com>
1143
1144 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1145 declare.
1146 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1147 Rename from tui_first_reg_element_no_inline.
1148 (tui_display_reg_element_at_line)
1149 (tui_display_registers_from_line): Update.
1150 * tui/tui-data.h (struct tui_data_window)
1151 <first_reg_element_no_inline>: New method.
1152
3b23c5f2
TT
11532019-07-17 Tom Tromey <tom@tromey.com>
1154
1155 * tui/tui-windata.c (tui_display_data_from)
1156 (tui_data_window::do_scroll_vertical): Update.
1157 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1158 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1159 Rename from tui_line_from_reg_element_no.
1160 (tui_display_registers_from_line): Update.
1161 * tui/tui-data.h (struct tui_data_window)
1162 <line_from_reg_element_no>: New method.
1163
0b5ec218
TT
11642019-07-17 Tom Tromey <tom@tromey.com>
1165
1166 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1167 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1168 tui_last_regs_line_no.
1169 (tui_display_reg_element_at_line)
1170 (tui_display_registers_from_line): Update.
1171 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1172 method.
1173
0807ab7b
TT
11742019-07-17 Tom Tromey <tom@tromey.com>
1175
1176 PR tui/24722:
1177 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1178 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1179 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1180 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1181 (tui_update_breakpoint_info): Likewise.
1182 * tui/tui-hooks.c (tui_event_create_breakpoint)
1183 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1184 Update.
1185
9ad7fdef
TT
11862019-07-17 Tom Tromey <tom@tromey.com>
1187
1188 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1189
5813316f
TT
11902019-07-17 Tom Tromey <tom@tromey.com>
1191
1192 * tui/tui-winsource.c (tui_update_source_window_as_is)
1193 (tui_update_source_windows_with_addr): Update.
1194 * tui/tui-source.h (tui_set_source_content)
1195 (tui_show_symtab_source): Add "win_info" parameter.
1196 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1197 parameter.
1198 (tui_show_symtab_source): Likewise.
1199
00e264e7
TT
12002019-07-17 Tom Tromey <tom@tromey.com>
1201
1202 * tui/tui-wingeneral.c
1203 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1204
06210ce4
TT
12052019-07-17 Tom Tromey <tom@tromey.com>
1206
1207 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1208 (struct tui_cmd_window) <can_scroll>: New method.
1209 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1210 method.
1211
381befee
TT
12122019-07-17 Tom Tromey <tromey@adacore.com>
1213
1214 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1215 do_field_signed>: Rename. Change type of "value".
1216 * ui-out.c (ui_out::field_signed): Rename from field_int.
1217 Change type of "value".
1218 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1219 type of "value".
1220 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1221 do_field_int. Change type of "value".
1222 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1223 do_field_int. Change type of "value".
1224 * tracepoint.c (trace_status_mi, tfind_1)
1225 (print_one_static_tracepoint_marker): Update.
1226 * thread.c (print_thread_info_1, print_selected_thread_frame):
1227 Update.
1228 * stack.c (print_frame, print_frame_info): Update.
1229 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1230 Update.
1231 * source.c (print_source_lines_base): Update.
1232 * skip.c (info_skip_command): Update.
1233 * record-btrace.c (btrace_ui_out_decode_error)
1234 (btrace_call_history_src_line): Update.
1235 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1236 Update.
1237 * progspace.c (print_program_space): Update.
1238 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1239 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1240 do_field_int. Change type of "value".
1241 * mi/mi-out.c (mi_ui_out::do_table_begin)
1242 (mi_ui_out::do_table_header): Update.
1243 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1244 type of "value".
1245 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1246 (mi_cmd_data_list_changed_registers, output_register)
1247 (mi_cmd_data_read_memory, mi_load_progress)
1248 (mi_cmd_trace_frame_collected): Update.
1249 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1250 Update.
1251 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1252 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1253 (mi_cmd_var_list_children, varobj_update_one): Update.
1254 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1255 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1256 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1257 * inferior.c (print_inferior): Update.
1258 * gdb_bfd.c (print_one_bfd): Update.
1259 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1260 Update.
1261 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1262 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1263 do_field_int. Change type of "value".
1264 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1265 do_field_int. Change type of "value".
1266 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1267 (print_one_breakpoint_location, print_it_catch_fork)
1268 (print_one_catch_fork, print_it_catch_vfork)
1269 (print_one_catch_vfork, print_it_catch_solib)
1270 (print_it_catch_exec, print_it_ranged_breakpoint)
1271 (print_mention_watchpoint, print_mention_masked_watchpoint)
1272 (bkpt_print_it, update_static_tracepoint): Update.
1273 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1274 * break-catch-syscall.c (print_it_catch_syscall): Update.
1275 * ada-tasks.c (print_ada_task_info): Update.
1276 * ada-lang.c (print_it_exception, print_mention_exception):
1277 Update.
1278
6b78c3f8
AB
12792019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1280
1281 PR breakpoints/24541
1282 * gdbarch.c: Regenerate.
1283 * gdbarch.h: Regenerate.
1284 * gdbarch.sh: Adjust return type and parameter types for
1285 'stap_adjust_register'.
1286 (i386_stap_adjust_register): Adjust signature and return new
1287 register name.
1288 * stap-probe.c (stap_parse_register_operand): Adjust use of
1289 'gdbarch_stap_adjust_register'.
1290
d72a9b85
TT
12912019-07-17 Tom Tromey <tromey@adacore.com>
1292
1293 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1294 declare VEC.
1295 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1296 std::vector.
1297 (struct s390_process_info): Add initializers.
1298 (s390_add_process): Use new.
1299 (s390_linux_nat_target::low_forget_process): Use delete.
1300 (s390_linux_nat_target::low_new_fork)
1301 (s390_linux_nat_target::stopped_by_watchpoint)
1302 (s390_linux_nat_target::low_prepare_to_resume)
1303 (s390_linux_nat_target::insert_watchpoint)
1304 (s390_linux_nat_target::insert_hw_breakpoint)
1305 (s390_linux_nat_target::remove_watchpoint)
1306 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1307
206e6c58
JB
13082019-07-16 John Baldwin <jhb@FreeBSD.org>
1309
1310 * aarch64-fbsd-nat.c: Include regcache.h.
1311 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1312 argument.
1313 (aarch64_fbsd_nat_target::fetch_registers)
1314 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1315 variable.
1316 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1317
cbde90f2
JB
13182019-07-16 John Baldwin <jhb@FreeBSD.org>
1319
1320 * fbsd-nat.c: Include gdbarch.h.
1321
07128006
TT
13222019-07-15 Tom Tromey <tromey@adacore.com>
1323
1324 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1325
1f77b012
TT
13262019-07-15 Tom Tromey <tromey@adacore.com>
1327
1328 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1329 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1330 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1331 * cli-out.c (cli_ui_out::do_field_int): New method.
1332 * ui-out.c (ui_out::field_unsigned): New method.
1333 * symfile.c (generic_load): Use field_unsigned.
1334 (print_transfer_performance): Likewise.
1335 * record-btrace.c (ui_out_field_uint): Remove.
1336 (btrace_call_history_insn_range, btrace_call_history): Use
1337 field_unsigned.
1338 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1339 field_unsigned.
1340 * ui-out.h (class ui_out) <field_unsigned>: New method.
1341 <do_field_unsigned>: Likewise.
1342
33eca680
TT
13432019-07-15 Tom Tromey <tromey@adacore.com>
1344
1345 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1346 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1347 * target.c (flash_erase_command): Use field_string.
1348 * infrun.c (print_signal_received_reason): Use field_string.
1349 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1350 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1351 field_string.
1352 * ada-tasks.c (print_ada_task_info): Use field_string.
1353
ca8d69be
TT
13542019-07-15 Tom Tromey <tromey@adacore.com>
1355
1356 * target.c (flash_erase_command): Use field_core_addr.
1357 * symfile.c (generic_load): Use field_core_addr.
1358 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1359 Use field_core_addr.
1360 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1361 field_core_addr.
1362
0d4e84ed
AB
13632019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1364
1365 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1366 value if its desired type is smaller than a CORE_ADDR and signed.
1367
9a49df9d
AB
13682019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1371 of changes to field names, and use new is_reference field to
1372 decide if a property is a reference or not.
1373 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1374 field.
1375 (struct dwarf2_property_baton): Update header comment, rename
1376 'referenced_type' to 'property_type' and update comments.
1377 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1378 default property type, store in property baton, update to take
1379 accound of renamed field.
1380 (read_func_scope): Update call to attr_to_dynamic_prop.
1381 (read_array_type): Likewise.
1382 (dwarf2_per_cu_addr_sized_int_type): New function.
1383 (read_subrange_index_type): Move type finding code to
1384 dwarf2_per_cu_addr_sized_int_type.
1385 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1386 (dwarf2_per_cu_addr_type): New function.
1387 (set_die_type): Update calls to attr_to_dynamic_prop.
1388
b86352cf
AB
13892019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1390
1391 * dwarf2read.c (read_subrange_index_type): New function.
1392 (read_subrange_type): Move code into new function and call it.
1393 * gdbtypes.c (create_range_type): Add some asserts.
1394
603490bf
AB
13952019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1398 update return statements.
1399 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1400 declaration, and update comment to match.
1401 * gdbtypes.c (resolve_dynamic_array): Update call to
1402 dwarf2_evaluate_property to match new return type.
1403
592f9d27
AB
14042019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1405
1406 * valarith.c (value_subscripted_rvalue): Change lowerbound
1407 parameter type from int to LONGEST.
1408 * value.h (value_subscripted_rvalue): Likewise in declaration.
1409
60cfcb20
AB
14102019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1411
1412 * cli/cli-utils.c (info_print_command_completer): New function.
1413 * cli/cli-utils.h: Add 'completer.h' include, and forward
1414 declaration for 'struct cmd_list_element'.
1415 (info_print_command_completer): Declare.
1416 * stack.c (_initialize_stack): Add completer for 'info locals' and
1417 'info args'.
1418 * symtab.c (_initialize_symtab): Add completer for 'info
1419 variables' and 'info functions'.
1420 * NEWS: Mention completion for additional info commands.
1421
b16507e0
AB
14222019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * cli/cli-utils.c (extract_info_print_args): Delete.
1425 (extract_arg_maybe_quoted): Delete.
1426 (info_print_options_defs): New variable.
1427 (make_info_print_options_def_group): New function.
1428 (extract_info_print_options): Define new function.
1429 * cli/cli-utils.h (extract_info_print_args): Delete.
1430 (struct info_print_options): New structure.
1431 (extract_info_print_options): Declare new function.
1432 * stack.c (info_locals_command): Update to use new
1433 extract_info_print_options, also add a header comment.
1434 (info_args_command): Likewise.
1435 * symtab.c (info_variables_command): Likewise.
1436 (info_functions_command): Likewise.
1437
021d8588
AB
14382019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1441 to extract string arguments.
1442 * common/common-utils.c (extract_string_maybe_quoted): New function.
1443 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1444
b777eb6d
TT
14452019-07-11 Tom Tromey <tromey@adacore.com>
1446
1447 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1448 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1449 * top.h (gdbinit): Don't declare.
1450 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1451 into...
1452 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1453 * top.c (gdb_init): Don't call init_cli_cmds.
1454 (gdbinit): Remove.
1455 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1456
72ee03ff
TT
14572019-07-11 Tom Tromey <tromey@adacore.com>
1458
1459 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1460 after it has been moved.
1461
00db9531
SM
14622019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1463
1464 * valops.c (value_must_coerce_to_target): Change return type to
1465 bool.
1466 * value.h (value_must_coerce_to_target): Likewise.
1467
f2478a7e
SM
14682019-07-10 Simon Marchi <simon.marchi@efficios.com>
1469
1470 * breakpoint.c (is_hardware_watchpoint): Remove
1471 forward-declaration.
1472 (is_masked_watchpoint): Change return type to bool.
1473 (is_tracepoint): Likewise.
1474 (is_breakpoint): Likewise.
1475 (is_hardware_watchpoint): Likewise.
1476 (is_watchpoint): Likewise.
1477 (is_no_memory_software_watchpoint): Likewise.
1478 (is_catchpoint): Likewise.
1479 (breakpoint_1): Make FILTER parameter's return type bool.
1480 is_masked_watchpoint): Change return type to bool.
1481 (save_breakpoints): Make FILTER parameter's return type bool.
1482 * breakpoint.h (is_breakpoint): Change return type to bool.
1483 (is_watchpoint): Likewise.
1484 (is_catchpoint): Likewise.
1485 (is_tracepoint): Likewise.
1486
0d12e84c
TT
14872019-07-10 Tom Tromey <tom@tromey.com>
1488
1489 * defs.h: Don't include gdbarch.h.
1490 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1491 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1492 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1493 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1494 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1495 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1496 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1497 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1498 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1499 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1500 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1501 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1502 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1503 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1504 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1505 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1506 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1507 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1508 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1509 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1510 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1511 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1512 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1513 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1514 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1515 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1516 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1517
f06f1252
TT
15182019-07-10 Tom Tromey <tromey@adacore.com>
1519
1520 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1521 * breakpoint.c (init_ada_exception_breakpoint): Register as
1522 bp_catchpoint.
1523 (print_one_breakpoint_location, print_one_breakpoint): Use
1524 is_ada_exception_catchpoint.
1525 * ada-lang.c (class ada_catchpoint_location): Pass
1526 bp_loc_software_breakpoint to bp_location constructor.
1527 (is_ada_exception_catchpoint): New function.
1528
7a5d944b
TT
15292019-07-10 Tom Tromey <tromey@adacore.com>
1530
1531 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1532 VEC.
1533 (struct arm_exidx_entry): New method operator<.
1534 (struct arm_exidx_data) <section_maps>: Change type.
1535 (arm_exidx_data_free): Remove.
1536 (arm_exidx_data_key): Change type. Move lower.
1537 (arm_exidx_new_objfile): Update.
1538 (arm_compare_exidx_entries): Remove.
1539 (arm_find_exidx_entry, _initialize_arm_tdep)
1540
48c66e1d
TT
15412019-07-10 Tom Tromey <tromey@adacore.com>
1542
1543 * solib-spu.c (ocl_program_data_key): Change type.
1544 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1545 Update.
1546
a269fbf1
TT
15472019-07-10 Tom Tromey <tromey@adacore.com>
1548
1549 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1550 (struct solib_aix_inferior_data) <library_list>: Change type.
1551 (solib_aix_inferior_data_handle): Change type.
1552 (get_solib_aix_inferior_data): Update.
1553 (solib_aix_free_library_list): Remove.
1554 (library_list_start_library): Update.
1555 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1556 return type.
1557 (solib_aix_get_library_list)
1558 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1559 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1560
c294730c
TT
15612019-07-10 Tom Tromey <tromey@adacore.com>
1562
1563 * solib-dsbt.c (struct dsbt_info): Add initializers.
1564 (solib_dsbt_pspace_data): Change type.
1565 (dsbt_pspace_data_cleanup): Remove.
1566 (get_dsbt_info, _initialize_dsbt_solib): Update.
1567
9d52077d
TT
15682019-07-10 Tom Tromey <tromey@adacore.com>
1569
1570 * spu-tdep.c (spu_overlay_data): Change type.
1571 (spu_get_overlay_table, spu_overlay_new_objfile)
1572 (_initialize_spu_tdep): Update.
1573
22a20dca
TT
15742019-07-10 Tom Tromey <tromey@adacore.com>
1575
1576 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1577 destructor.
1578 (dbx_objfile_data_key): Change type and declare later.
1579 (DBX_SYMFILE_INFO): Rewrite.
1580 * dbxread.c (dbx_objfile_data_key): Change type.
1581 (dbx_symfile_init): Update.
1582 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1583 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1584 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1585
cb60f420
TT
15862019-07-10 Tom Tromey <tromey@adacore.com>
1587
1588 * jit.c (jit_program_space_key): Change type. Move lower.
1589 (get_jit_program_space_data): Update.
1590 (jit_program_space_data_cleanup): Remove.
1591 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1592 Update.
1593 (struct jit_program_space_data): Add initializers.
1594
51df2ae3
TT
15952019-07-10 Tom Tromey <tromey@adacore.com>
1596
1597 * solib-darwin.c (struct darwin_info): Add initializers.
1598 (solib_darwin_pspace_data): Change type.
1599 (darwin_pspace_data_cleanup): Remove.
1600 (get_darwin_info, _initialize_darwin_solib): Update.
1601
18101a35
TT
16022019-07-10 Tom Tromey <tromey@adacore.com>
1603
1604 * remote-sim.c (struct sim_inferior_data): Add initializers,
1605 constructor, and destructor.
1606 (sim_inferior_data_key): Change type. Move lower.
1607 (check_for_duplicate_sim_descriptor): Update.
1608 (get_sim_inferior_data): Use new. Update.
1609 (~sim_inferior_data_cleanup): Rename from
1610 sim_inferior_data_cleanup. Simplify.
1611 (gdbsim_close_inferior, simulator_command)
1612 (sim_command_completer, _initialize_remote_sim): Update.
1613 (next_pid, INITIAL_PID): Move earlier.
1614
05b08ac1
TT
16152019-07-10 Tom Tromey <tromey@adacore.com>
1616
1617 * python/python-internal.h (create_thread_object): Return
1618 gdbpy_ref.
1619 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1620 * python/py-inferior.c (struct threadlist_entry): Add
1621 constructor.
1622 <thread_obj>: Now a gdbpy_ref.
1623 (thread_to_thread_object): Update.
1624 (add_thread_object): Use new.
1625 (delete_thread_object): Use delete.
1626 (infpy_threads): Update.
1627 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1628 GIL.
1629
32372d80
TT
16302019-07-10 Tom Tromey <tromey@adacore.com>
1631
1632 * valops.c (value_cast): Specialize error message for Ada.
1633
5c458ae8
SM
16342019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1635
1636 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1637
4c462cb0
SM
16382019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1639
1640 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1641 bpstat_should_step): Return bool, adjust comments.
1642 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1643 bpstat_should_step): Likewise.
1644
89abbcc2
AH
16452019-07-10 Alan Hayward <alan.hayward@arm.com>
1646
1647 * features/Makefile: Use feature target descriptions for Arm.
1648 * features/arm/arm-core.c: Generate new file.
1649 * features/arm/arm-fpa.c: Likewise.
1650 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1651 * features/arm/arm-m-profile.c: Likewise.
1652 * features/arm/arm-vfpv2.c: Likewise.
1653 * features/arm/arm-vfpv3.c: Likewise.
1654 * features/arm/xscale-iwmmxt.c: Likewise.
1655 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1656
166a82be
AH
16572019-07-10 Alan Hayward <alan.hayward@arm.com>
1658
1659 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1660 ptrace earlier.
1661
9fb4c7e9
AH
16622019-07-10 Alan Hayward <alan.hayward@arm.com>
1663
1664 * features/aarch64-pauth.c: Regenerate.
1665
e2d0f980
SM
16662019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1669 bool.
1670 (bpstat_what): Use false instead of 0.
1671
a38118e5
PA
16722019-07-09 Pedro Alves <palves@redhat.com>
1673
1674 * break-catch-throw.c (is_exception_catchpoint): New.
1675 * breakpoint.c (print_one_breakpoint_location): New parameter
1676 'raw_loc'. Handle it. Use
1677 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1678 looking at the breakpoint's type.
1679 (print_one_breakpoint): If handling "maint info breakpoints", also
1680 print locations of exception catchpoints.
1681 * breakpoint.h (is_exception_catchpoint): Declare.
1682
cb1e4e32
PA
16832019-07-09 Pedro Alves <palves@redhat.com>
1684
1685 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1686 "addr" field.
1687 (allocate_location_exception_catchpoint): New.
1688 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1689 (initialize_throw_catchpoint_ops): Install
1690 allocate_location_exception_catchpoint as allocate_location
1691 method.
1692 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1693 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1694 bp_loc_other.
1695 (breakpoint_address_is_meaningful): Delete.
1696 (bl_address_is_meaningful): New.
1697 (breakpoint_locations_match): Adjust comment.
1698 (bp_location_from_bp_type): New, factored out of...
1699 (bp_location::bp_location(breakpoint *)): ... this.
1700 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1701 factored out of...
1702 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1703 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1704 breakpoint_address_is_meaningful.
1705 (bp_locations_compare): Adjust comment.
1706 (update_global_location_list): Use bl_address_is_meaningful
1707 instead of breakpoint_address_is_meaningful.
1708 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1709 explicit.
1710 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1711 * python/py-breakpoint.c (bppy_get_location): No longer check
1712 whether location is null.
1713
b58a68fe
PA
17142019-07-09 Pedro Alves <palves@redhat.com>
1715
1716 PR c++/15468
1717 * breakpoint.c (print_one_breakpoint_location): Remove
1718 single-location assert.
1719
268a13a5
TT
17202019-07-09 Tom Tromey <tom@tromey.com>
1721
1722 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1723 * configure: Rebuild.
1724 * configure.ac: Change common to gdbsupport.
1725 * gdbsupport: Rename from common.
1726 * acinclude.m4: Change common to gdbsupport.
1727 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1728 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1729 gdbsupport.
1730 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1731 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1732 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1733 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1734 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1735 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1736 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1737 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1738 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1739 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1740 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1741 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1742 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1743 coff-pe-read.c, command.h, compile/compile-c-support.c,
1744 compile/compile-c.h, compile/compile-cplus-symbols.c,
1745 compile/compile-cplus-types.c, compile/compile-cplus.h,
1746 compile/compile-loc2c.c, compile/compile.c, completer.c,
1747 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1748 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1749 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1750 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1751 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1752 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1753 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1754 features/aarch64-core.c, features/aarch64-fpu.c,
1755 features/aarch64-pauth.c, features/aarch64-sve.c,
1756 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1757 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1758 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1759 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1760 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1761 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1762 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1763 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1764 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1765 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1766 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1767 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1768 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1769 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1770 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1771 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1772 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1773 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1774 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1775 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1776 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1777 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1778 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1779 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1780 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1781 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1782 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1783 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1784 minsyms.c, mips-linux-tdep.c, namespace.h,
1785 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1786 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1787 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1788 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1789 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1790 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1791 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1792 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1793 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1794 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1795 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1796 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1797 procfs.c, producer.c, progspace.h, psymtab.h,
1798 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1799 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1800 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1801 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1802 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1803 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1804 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1805 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1806 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1807 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1808 target-memory.c, target.c, target.h, target/waitstatus.c,
1809 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1810 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1811 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1812 unittests/array-view-selftests.c,
1813 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1814 unittests/common-utils-selftests.c,
1815 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1816 unittests/format_pieces-selftests.c,
1817 unittests/function-view-selftests.c,
1818 unittests/lookup_name_info-selftests.c,
1819 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1820 unittests/mkdir-recursive-selftests.c,
1821 unittests/observable-selftests.c,
1822 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1823 unittests/parse-connection-spec-selftests.c,
1824 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1825 unittests/scoped_fd-selftests.c,
1826 unittests/scoped_mmap-selftests.c,
1827 unittests/scoped_restore-selftests.c,
1828 unittests/string_view-selftests.c, unittests/style-selftests.c,
1829 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1830 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1831 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1832 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1833 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1834 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1835
5b0e2db4
AB
18362019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1837
1838 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1839 bool value.
1840 (decode_digits_ordinary): Set explicit_line field in sal.
1841 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1842 symtab_and_line that was set on an explicit line number in
1843 assembler code. Do always update the recorded symtab and line if
1844 we do skip the prologue.
1845
0ba852ab
AB
18462019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * breakpoint.c (set_breakpoint_location_function): Remove
1849 explicit_loc parameter.
1850 (momentary_breakpoint_from_master): Update call to
1851 set_breakpoint_location_function.
1852 (add_location_to_breakpoint): Likewise.
1853
b3a7d171
AB
18542019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1857 required features based on default bfd type when no specific bfd
1858 is present.
1859
1f6f6e21
PW
18602019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1861
1862 * NEWS: Mention that GDB printf and eval commands can now print
1863 C-style and Ada-style convenience var strings without
1864 calling the inferior.
1865 * printcmd.c (printf_c_string): Locally print GDB internal var
1866 instead of transiting via the inferior.
1867 (printf_wide_c_string): Likewise.
1868
18692019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
1870
1871 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1872
0598af48
TT
18732019-07-04 Tom Tromey <tom@tromey.com>
1874
1875 PR tui/24724:
1876 * tui/tui-winsource.c (tui_clear_source_content): Update.
1877 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1878 (tui_update_breakpoint_info): Update.
1879 (tui_set_exec_info_content): Update.
1880 * tui/tui-source.c (tui_set_source_content_nil): Update.
1881 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1882 has_break.
1883 * tui/tui-data.h (enum tui_bp_flag): New.
1884 (tui_bp_flags): New enum flags type.
1885 (struct tui_source_element) <break_mode>: Change type. Rename
1886 from has_break.
1887 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1888 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1889 constants.
1890 * tui/tui-winsource.h: Fix comment.
1891
350fab54
AH
18922019-07-04 Alan Hayward <alan.hayward@arm.com>
1893
1894 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1895 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1896 (store_fpregs_to_thread)
1897 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1898 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1899 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1900 (IWMMXT_REGS_SIZE): Add define.
1901 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1902 (fetch_vfp_regs, store_vfp_regs)
1903 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1904 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1905
f0452268
AH
19062019-07-04 Alan Hayward <alan.hayward@arm.com>
1907
1908 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1909 defines.
1910 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1911 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1912 (ARM_INT_REGISTER_SIZE): ...to this.
1913 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1914 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1915 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1916 (arm_linux_collect_gregset, supply_nwfpe_register)
1917 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
1918 defines.
1919 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
1920 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
1921 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
1922 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
1923 (arm_return_in_memory, arm_store_return_value)
1924 (arm_get_longjmp_target, arm_register_g_packet_guesses)
1925 (arm_record_ld_st_multiple): Likewise.
1926 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
1927 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
1928
e935475c
AH
19292019-07-04 Alan Hayward <alan.hayward@arm.com>
1930
1931 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
1932 AARCH64_DISPLACED_MODIFIED_INSNS.
1933 * aarch64-tdep.c (struct aarch64_displaced_step_data)
1934 (aarch64_displaced_step_copy_insn): Likewise.
1935 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1936 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
1937 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1938 ARM_DISPLACED_MODIFIED_INSNS.
1939 * arm-tdep.c (arm_gdbarch_init): Likewise.
1940 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1941 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
1942 (struct arm_displaced_step_closure): Use
1943 ARM_DISPLACED_MODIFIED_INSNS.
1944
df0bb381
AH
19452019-07-04 Alan Hayward <alan.hayward@arm.com>
1946
1947 * features/Makefile: Remove unused xml files.
1948 * features/aarch64.xml: Remove.
1949 * features/i386/amd64-avx-avx512-linux.xml: Remove.
1950 * features/i386/amd64-avx-avx512.xml: Remove.
1951 * features/i386/amd64-avx-linux.xml: Remove.
1952 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
1953 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
1954 * features/i386/amd64-avx-mpx-linux.xml: Remove.
1955 * features/i386/amd64-avx-mpx.xml: Remove.
1956 * features/i386/amd64-avx.xml: Remove.
1957 * features/i386/amd64-linux.xml: Remove.
1958 * features/i386/amd64-mpx-linux.xml: Remove.
1959 * features/i386/amd64-mpx.xml: Remove.
1960 * features/i386/amd64.xml: Remove.
1961 * features/i386/i386-avx-avx512-linux.xml: Remove.
1962 * features/i386/i386-avx-avx512.xml: Remove.
1963 * features/i386/i386-avx-linux.xml: Remove.
1964 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
1965 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
1966 * features/i386/i386-avx-mpx-linux.xml: Remove.
1967 * features/i386/i386-avx-mpx.xml: Remove.
1968 * features/i386/i386-avx.xml: Remove.
1969 * features/i386/i386-linux.xml: Remove.
1970 * features/i386/i386-mmx-linux.xml: Remove.
1971 * features/i386/i386-mmx.xml: Remove.
1972 * features/i386/i386-mpx-linux.xml: Remove.
1973 * features/i386/i386-mpx.xml: Remove.
1974 * features/i386/i386.xml: Remove.
1975 * features/i386/x32-avx-avx512-linux.xml: Remove.
1976 * features/i386/x32-avx-linux.xml: Remove.
1977 * features/i386/x32-linux.xml: Remove.
1978
edd6266a
AH
19792019-07-04 Alan Hayward <alan.hayward@arm.com>
1980
1981 * regformats/aarch64.dat: Remove.
1982 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
1983 * regformats/i386/amd64-avx-linux.dat: Remove.
1984 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
1985 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
1986 * regformats/i386/amd64-linux.dat: Remove.
1987 * regformats/i386/amd64-mpx-linux.dat: Remove.
1988 * regformats/i386/amd64.dat: Remove.
1989 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
1990 * regformats/i386/i386-avx-linux.dat: Remove.
1991 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
1992 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
1993 * regformats/i386/i386-linux.dat: Remove.
1994 * regformats/i386/i386-mmx-linux.dat: Remove.
1995 * regformats/i386/i386-mpx-linux.dat: Remove.
1996 * regformats/i386/i386.dat: Remove.
1997 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
1998 * regformats/i386/x32-avx-linux.dat: Remove.
1999 * regformats/i386/x32-linux.dat: Remove.
2000
2b40fda7
AH
20012019-07-04 Alan Hayward <alan.hayward@arm.com>
2002
2003 * aarch64-tdep.c: Remove xml self tests.
2004 * amd64-linux-tdep.c: Likewise.
2005 * amd64-tdep.c: Likewise.
2006 * i386-linux-tdep.c: Likewise.
2007 * i386-tdep.c: Likewise.
2008
5f4ba3e7
PA
20092019-07-03 Pedro Alves <palves@redhat.com>
2010
2011 PR cli/24732
2012 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2013 (pipe_cmd_option_defs): New.
2014 (make_pipe_cmd_options_def_group): New.
2015 (pipe_command): Use gdb::option::process_options.
2016 (pipe_command_completer): New function.
2017 (_initialize_cli_cmds): Install completer for "pipe" command.
2018
3d9be6f5
PA
20192019-07-03 Pedro Alves <palves@redhat.com>
2020
2021 * cli/cli-option.c (union option_value) <string>: New field.
2022 (struct option_def_and_value): Add ctor, move ctor, dtor and
2023 use DISABLE_COPY_AND_ASSIGN.
2024 (option_def_and_value::clear_value): New.
2025 (parse_option, save_option_value_in_ctx, get_val_type_str)
2026 (add_setshow_cmds_for_options): Handle var_string.
2027 * cli-option.h (union option_def::var_address) <string>: New
2028 field.
2029 (struct string_option_def): New.
2030 * maint-test-options.c (struct test_options_opts): Add default
2031 ctor and use DISABLE_COPY_AND_ASSIGN.
2032 <string_opt>: New field.
2033 (test_options_opts::~test_options_opts): New.
2034 (test_options_opts::dump): Also dump "-string".
2035 (test_options_option_defs): Install "string.
2036
41fc454c
PA
20372019-07-03 Pedro Alves <palves@redhat.com>
2038
2039 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2040 option_value with a null enumeration.
2041 (complete_options): Save the option values in the context.
2042 (save_option_value_in_ctx): New, factored out from ...
2043 (process_options): ... here.
2044 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2045 of the function.
2046 * maint-test-options.c (test_options_opts::dump): New, factored
2047 out from ...
2048 (maintenance_test_options_command_mode): ... here.
2049 (maintenance_test_options_command_completion_result): Delete.
2050 (maintenance_test_options_command_completion_text): Update
2051 comment.
2052 (maintenance_show_test_options_completion_result): Change
2053 prototype. Just print
2054 maintenance_test_options_command_completion_text.
2055 (save_completion_result): New.
2056 (maintenance_test_options_completer_mode): Pass options context to
2057 complete_options, and then save a dump.
2058 (_initialize_maint_test_options): Use add_cmd to install "maint
2059 show test-options-completion-result".
2060
fdbc9870
PA
20612019-07-03 Pedro Alves <palves@redhat.com>
2062
2063 * NEWS (New commands): Mention "with" and "maint with".
2064 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2065 (with_command, with_command_completer): New.
2066 (pipe_command): Adjust to new repeat_previous
2067 interface.
2068 (_initialize_cli_cmds): Install the "with" command and its "w"
2069 alias.
2070 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2071 declarations.
2072 * cli/cli-setshow.c (parse_cli_var_uinteger)
2073 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2074 argument strings for all var_types.
2075 (get_setshow_command_value_string): New, factored out from ...
2076 (do_show_command): ... this.
2077 * cli/cli-setshow.h: Include <string>.
2078 (get_setshow_command_value_string): Declare.
2079 * command.h (repeat_previous): Now returns const char *. Adjust
2080 comment.
2081 * maint.c: Include "cli/cli-cmds.h".
2082 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2083 (_initialize_maint_cmds): Register the "maintenance with" command.
2084 * top.c (repeat_previous): Move bits from pipe_command here:
2085 Return the saved command line, if any; error out if there's no
2086 command to relaunch.
2087
c6ac8931
PA
20882019-07-03 Pedro Alves <palves@redhat.com>
2089
2090 * NEWS (New commands): Mention "maint set/show test-settings"
2091 instead of "maint test-settings".
2092 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2093 (maintenance_test_settings_set_list): Rename to ...
2094 (maintenance_set_test_settings_list): ... this.
2095 (maintenance_test_settings_show_list): Rename to ...
2096 (maintenance_show_test_settings_list): ... this.
2097 (maintenance_test_settings_cmd): Delete.
2098 (maintenance_test_settings_set_cmd): ...
2099 (maintenance_set_test_settings_cmd): ... this.
2100 (maintenance_test_settings_show_cmd): ...
2101 (maintenance_show_test_settings_cmd): ... this.
2102 (maintenance_test_settings_show_value_cmd):
2103 (maintenance_show_test_settings_value_cmd): ... this.
2104 (_initialize_maint_test_settings): No longer install the "maint
2105 test-settings" prefix command. Rename "maint test-settings set"
2106 to "maint set test-settings", and "maint test-settings show" to
2107 "maint show test-settings". Adjust all subcommands.
2108
d1fcf2fd
PA
21092019-07-03 Pedro Alves <palves@redhat.com>
2110
2111 * maint-test-settings.c: Fix file's intro comment. Replace all
2112 references to "test-options" with references to "test-settings",
2113 in comments.
2114
970f9d09
PA
21152019-07-03 Pedro Alves <palves@redhat.com>
2116
2117 * maint-test-settings.c (maintenance_test_settings_xxx)
2118 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2119 New.
2120 (maintenance_test_settings_enums): Use them.
2121 (maintenance_test_settings_enum): Default to
2122 maintenance_test_settings_xxx.
2123 (_initialize_maint_test_settings): Initialize
2124 MAINTENANCE_TEST_SETTINGS_FILENAME.
2125
f3869b1a
SM
21262019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2127
2128 * breakpoint.h (remove_breakpoints_inf): Change return type to
2129 void, move function documentation here.
2130 * breakpoint.c (remove_breakpoints_inf): Change return type to
2131 void, move function documentation to header.
2132
54d66006
PA
21332019-07-02 Pedro Alves <palves@redhat.com>
2134
2135 * NEWS (Completion improvements): Mention "info threads".
2136 * thread.c (struct info_threads_opts, info_threads_option_defs)
2137 (make_info_threads_options_def_group): New.
2138 (info_threads_command): Use gdb::option::process_options.
2139 (info_threads_command_completer): New.
2140 (_initialize_thread): Use gdb::option::build_help to build the
2141 help text for "info threads".
2142
854f6088
SM
21432019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2144
2145 * defs.h (generic_load): Move from here...
2146 * symfile.h (generic_load): ... to here. Rename name parameter
2147 to args.
2148 * symfile.c (generic_load): Add comment.
2149
54ee4252
TT
21502019-07-01 Tom Tromey <tromey@adacore.com>
2151
2152 * dwarf2read.c
2153 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2154 declaration of without_params. Fix formatting.
2155
65392b3e
TT
21562019-07-01 Tom Tromey <tromey@adacore.com>
2157
2158 * ada-exp.y (find_primitive_type): Update.
2159 * ada-lang.h (ada_lookup_symbol): Update.
2160 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2161 parameter.
2162 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2163
7d7571f0
SDJ
21642019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2165
2166 PR breakpoints/24541
2167 * gdbarch.c: Regenerate.
2168 * gdbarch.h: Regenerate.
2169 * gdbarch.sh: Add 'stap_adjust_register'.
2170 * i386-tdep.c: Include '<unordered_set>'.
2171 (i386_stap_adjust_register): New function.
2172 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2173 * stap-probe.c (stap_parse_register_operand): Call
2174 'gdbarch_stap_adjust_register'.
2175
5af5392a
SDJ
21762019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2177
2178 PR python/24742
2179 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2180 * python/python.c (do_start_initialization): Use 'xmalloc'
2181 instead of 'PyMem_Malloc'.
2182
10d06d82
TT
21832019-06-28 Tom Tromey <tromey@adacore.com>
2184
2185 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2186 for Ada.
2187
1b7f24cd
TT
21882019-06-27 Tom Tromey <tromey@adacore.com>
2189
2190 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2191 objfile_key.
2192 (arm_find_mapping_symbol, arm_record_special_symbol)
2193 (_initialize_arm_tdep): Update.
2194 (arm_objfile_data_free): Remove.
2195
3d507ff2
TT
21962019-06-27 Tom Tromey <tromey@adacore.com>
2197
2198 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2199 to cp_print_static_field.
2200
762c164d
TT
22012019-06-26 Tom Tromey <tromey@adacore.com>
2202
2203 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2204 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2205 declare.
2206
aa2f9bcf
AH
22072019-06-26 Alan Hayward <alan.hayward@arm.com>
2208
2209 * features/aarch64-core.c (create_feature_aarch64_core):
2210 Regenerate.
2211 * features/aarch64-core.xml: Add cpsr flags.
2212
3426ae57
AH
22132019-06-26 Alan Hayward <alan.hayward@arm.com>
2214
2215 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2216 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2217
4838e44c
SM
22182019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2219
2220 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2221 field.
2222 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2223 use.
2224 (arm_record_special_symbol): Don't insert new symbol in sorted
2225 position, push it at the end.
2226
54cc7474
SM
22272019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2228
2229 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2230 (arm_mapping_symbol_s): Remove.
2231 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2232 (arm_mapping_symbol_vec): New typedef.
2233 (struct arm_per_objfile): Add constructor.
2234 <section_maps>: Change type to
2235 std::unique_ptr<arm_mapping_symbol_vec[]>.
2236 (arm_compare_mapping_symbols): Remove.
2237 (arm_find_mapping_symbol): Adjust to section_maps type change.
2238 (arm_objfile_data_free): Call delete on arm_per_objfile.
2239 (arm_record_special_symbol): Adjust to section_maps type change.
2240 Allocate arm_per_objfile with new.
2241
b65b566c
PW
22422019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2243
2244 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2245 with the command prefix.
2246
c2fc64f5
TT
22472019-06-25 Tom Tromey <tom@tromey.com>
2248
2249 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2250 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2251
fb54fa76
TT
22522019-06-25 Tom Tromey <tom@tromey.com>
2253
2254 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2255 type.
2256 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2257 protected.
2258
f7952c57
TT
22592019-06-25 Tom Tromey <tom@tromey.com>
2260
2261 * tui/tui-winsource.c
2262 (tui_source_window_base::set_is_exec_point_at): Add check against
2263 LOA_ADDRESS.
2264
17568d78
TT
22652019-06-25 Tom Tromey <tom@tromey.com>
2266
2267 * tui/tui-source.c (tui_set_source_content): Don't check before
2268 xfree.
2269 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2270
53e7cdba
TT
22712019-06-25 Tom Tromey <tom@tromey.com>
2272
2273 * tui/tui-winsource.h (tui_update_source_window_as_is)
2274 (tui_alloc_source_buffer, tui_line_is_displayed)
2275 (tui_addr_is_displayed): Change type of win_info.
2276 * tui/tui-winsource.c (tui_update_source_window_as_is)
2277 (tui_clear_source_content, tui_show_source_line)
2278 (tui_show_source_content, tui_source_window_base::refill)
2279 (tui_source_window_base::set_is_exec_point_at)
2280 (tui_source_window_base::set_is_exec_point_at)
2281 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2282 (tui_alloc_source_buffer, tui_line_is_displayed)
2283 (tui_addr_is_displayed): Change type of win_info. Update.
2284 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2285 (tui_source_window_base::do_make_visible_with_new_height):
2286 Update.
2287 * tui/tui-source.c (tui_set_source_content)
2288 (tui_set_source_content_nil)
2289 (tui_source_window::do_scroll_vertical): Update.
2290 * tui/tui-layout.c (show_layout): Update.
2291 * tui/tui-disasm.c (tui_set_disassem_content)
2292 (tui_disasm_window::do_scroll_vertical): Update.
2293 * tui/tui-data.h (tui_win_content): Remove.
2294 (struct tui_gen_win_info) <content, content_size>: Remove.
2295 (struct tui_source_element): Add initializers and destructor.
2296 (union tui_which_element, struct tui_win_element): Remove.
2297 (struct tui_source_window_base) <content>: New field.
2298 (struct tui_data_window): Remove destructor.
2299 (tui_alloc_content, tui_free_win_content)
2300 (tui_free_all_source_wins_content): Don't declare.
2301 * tui/tui-data.c (tui_initialize_static_data): Update.
2302 (init_content_element, tui_alloc_content): Remove.
2303 (~tui_gen_win_info): Update.
2304 (~tui_data_window, tui_free_all_source_wins_content)
2305 (tui_free_win_content, free_content, free_content_elements):
2306 Remove.
2307
7908abbf
TT
23082019-06-25 Tom Tromey <tom@tromey.com>
2309
2310 * tui/tui-winsource.h (tui_clear_source_content)
2311 (tui_erase_source_content, tui_show_source_content): Change type
2312 of win_info.
2313 * tui/tui-winsource.c (tui_clear_source_content)
2314 (tui_erase_source_content, tui_show_source_content): Change type
2315 of win_info.
2316 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2317 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2318 win_info.
2319 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2320 win_info.
2321 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2322
02c28df0
TT
23232019-06-25 Tom Tromey <tom@tromey.com>
2324
2325 * tui/tui-winsource.c (tui_clear_source_content)
2326 (tui_source_window_base::set_is_exec_point_at): Update.
2327 * tui/tui-source.c (tui_set_source_content_nil): Update.
2328 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2329 a bool.
2330 * tui/tui-data.c (init_content_element): Update.
2331
6658b1bf
TT
23322019-06-25 Tom Tromey <tom@tromey.com>
2333
2334 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2335 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2336 * tui/tui-layout.c (init_and_make_win): Update.
2337 * tui/tui.h (enum tui_win_type): Update.
2338 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2339 tui_win_is_auxillary.
2340 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2341 tui_win_is_auxillary.
2342
21e1c91e
TT
23432019-06-25 Tom Tromey <tom@tromey.com>
2344
2345 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2346 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2347 (tui_delete_data_content_windows, tui_display_all_data)
2348 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2349 Update.
2350 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2351 * tui/tui-regs.c (tui_last_regs_line_no)
2352 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2353 (tui_show_registers): Update.
2354 (tui_show_register_group): Return void. Update.
2355 (tui_display_registers_from, tui_display_reg_element_at_line)
2356 (tui_display_registers_from_line, tui_check_register_values):
2357 Update.
2358 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2359 member.
2360 (struct tui_data_window) <regs_content>: Now a std::vector.
2361 <regs_content_count>: Remove.
2362 (tui_add_content_elements, tui_free_data_content): Don't declare.
2363 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2364 (init_content_element): Remove DATA_WIN case. Add assert.
2365 (tui_add_content_elements): Remove.
2366 (tui_data_window): Update.
2367 (tui_free_data_content): Remove.
2368 (free_content_elements): Remove DATA_WIN case.
2369
115ac53b
TT
23702019-06-25 Tom Tromey <tom@tromey.com>
2371
2372 * tui/tui-data.c (tui_data_item_window): Update.
2373 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2374 * tui/tui-windata.c (tui_display_all_data)
2375 (tui_display_data_from_line): Update.
2376 (tui_check_data_values): Remove.
2377 * tui/tui-regs.c (tui_show_register_group)
2378 (tui_display_reg_element_at_line): Update.
2379 * tui/tui-hooks.c (tui_register_changed)
2380 (tui_refresh_frame_and_register_information): Call
2381 tui_check_register_values.
2382 * tui/tui-data.h (struct tui_data_window) <data_content,
2383 data_content_count, data_type>: Remove.
2384 (enum tui_data_type): Remove.
2385
2386 * tui/tui-data.c (tui_data_window::clear_detail)
2387 (~tui_data_window): Update.
2388
eaf9738b
TT
23892019-06-25 Tom Tromey <tom@tromey.com>
2390
2391 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2392 declare.
2393 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2394 Rename from tui_first_data_item_displayed. Update.
2395 (tui_data_window::refresh_all)
2396 (tui_data_window::do_scroll_vertical): Update.
2397 * tui/tui-data.h (struct tui_data_window)
2398 <first_data_item_displayed>: Declare new method.
2399
31ca4723
TT
24002019-06-25 Tom Tromey <tom@tromey.com>
2401
2402 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2403 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2404 contents...
2405 (tui_initialize_static_data): ...here.
2406
41bcff7f
TT
24072019-06-25 Tom Tromey <tom@tromey.com>
2408
2409 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2410 (tui_display_registers_from, tui_check_register_values): Update.
2411 (tui_display_register): Remove win_info parameter; update.
2412 (tui_get_register): Change type of parameters.
2413 * tui/tui-data.h (struct tui_data_element): Remove.
2414 (union tui_which_element) <data>: Remove.
2415 <data_window>: Change type.
2416 (struct tui_data_item_window): New.
2417 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2418 case. Add assert.
2419 (~tui_data_item_window): New destructor.
2420 (free_content_elements): Remove DATA_ITEM_WIN case.
2421
d2802c33
TT
24222019-06-25 Tom Tromey <tom@tromey.com>
2423
2424 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2425 Remove.
2426
dd835f8b
TT
24272019-06-25 Tom Tromey <tom@tromey.com>
2428
2429 * tui/tui-data.h (struct tui_command_element): Remove.
2430 (union tui_which_element) <command>: Remove.
2431 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2432 assert.
2433 (free_content_elements): Remove CMD_WIN case.
2434
bd7db367
TT
24352019-06-25 Tom Tromey <tom@tromey.com>
2436
2437 * tui/tui-layout.c (tui_set_layout): Update.
2438 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2439 * tui/tui-data.c (layout_def): Update.
2440
3add462f
TT
24412019-06-25 Tom Tromey <tom@tromey.com>
2442
2443 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2444 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2445 (tui_source_window_base::set_new_height): Update.
2446 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2447 Update.
2448 (tui_set_locator_fullname, tui_set_locator_info)
2449 (tui_show_frame_info): Update.
2450 * tui/tui-source.c (tui_set_source_content)
2451 (tui_source_is_displayed): Update.
2452 * tui/tui-layout.c (show_source_disasm_command, show_data)
2453 (show_source_or_disasm_and_command): Update.
2454 * tui/tui-disasm.c (tui_set_disassem_content)
2455 (tui_get_begin_asm_address): Update.
2456 * tui/tui-data.h (struct tui_locator_element): Remove.
2457 (union tui_which_element) <locator>: Remove.
2458 (struct tui_locator_window): New.
2459 (tui_locator_win_info_ptr): Change return type.
2460 * tui/tui-data.c (_locator): Change type.
2461 (tui_locator_win_info_ptr): Change return type.
2462 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2463 (tui_alloc_content): Add assert.
2464
489e9d8b
TT
24652019-06-25 Tom Tromey <tom@tromey.com>
2466
2467 * tui/tui-winsource.c
2468 (tui_exec_info_window::maybe_allocate_content): New method.
2469 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2470 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2471 (make_source_or_disasm_window): Add cast.
2472 * tui/tui-data.h (union tui_which_element) <simple_string>:
2473 Remove.
2474 (struct tui_source_info): New.
2475 (struct tui_source_window_base) <execution_info>: Change type.
2476 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2477 case, and add assert.
2478 (tui_alloc_content): Add assert.
2479
c3fabb7d
TT
24802019-06-25 Tom Tromey <tom@tromey.com>
2481
2482 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2483 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2484 * tui/tui-data.c (tui_alloc_win_info): Remove.
2485
bbc228ee
TT
24862019-06-25 Tom Tromey <tom@tromey.com>
2487
2488 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2489 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2490 can_highlight.
2491
5fcee43a
TT
24922019-06-25 Tom Tromey <tom@tromey.com>
2493
2494 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2495 make_visible_with_new_height method.
2496 (tui_win_info::make_visible_with_new_height): New method.
2497 (tui_source_window_base::do_make_visible_with_new_height)
2498 (tui_data_window::do_make_visible_with_new_height)
2499 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2500 (make_visible_with_new_height): Remove.
2501 (tui_resize_all, tui_adjust_win_heights): Use
2502 make_visible_with_new_height method.
2503 * tui/tui-data.h (struct tui_win_info)
2504 <do_make_visible_with_new_height, make_visible_with_new_height>:
2505 New methods.
2506 (struct tui_source_window_base, struct tui_data_window)
2507 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2508 methods.
2509
d83f1fe6
TT
25102019-06-25 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2513 method.
2514 (update_tab_width): Call update_tab_width method.
2515 * tui/tui-data.h (struct tui_win_info)
2516 (struct tui_source_window_base) <update_tab_width>: New methods.
2517
17374de4
TT
25182019-06-25 Tom Tromey <tom@tromey.com>
2519
2520 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2521 parameter.
2522 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2523 parameter.
2524 (tui_gen_win_info::make_visible): Update.
2525 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2526 parameter.
2527 * tui/tui-data.h (enum tui_box): New enum.
2528 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2529
f936bca2
TT
25302019-06-25 Tom Tromey <tom@tromey.com>
2531
2532 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2533 init_and_make_win for EXEC_INFO_WIN.
2534 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2535 longer inline.
2536 (struct tui_win_info) <~tui_win_info>: Inline.
2537 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2538 Don't declare.
2539 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2540 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2541 Remove.
2542 (tui_initialize_static_data): Update.
2543 (~tui_gen_win_info): Handle more cleanup here.
2544 (~tui_source_window_base): Delete "execution_info".
2545 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2546
d6ba6a11
TT
25472019-06-25 Tom Tromey <tom@tromey.com>
2548
2549 * tui/tui-layout.c (make_command_window): Don't set
2550 can_highlight.
2551 (show_source_disasm_command): Call the reset method.
2552 (show_data): Don't set can_highlight. Call the reset method.
2553 (tui_gen_win_info::reset): Rename from init_gen_win_info
2554 (init_and_make_win): Simplify. Return tui_gen_win_info.
2555 (show_source_or_disasm_and_command): Call the reset method.
2556 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2557 (struct tui_cmd_window): Set can_highlight.
2558
48a3bd16
TT
25592019-06-25 Tom Tromey <tom@tromey.com>
2560
2561 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2562 from make_visible.
2563 (tui_make_visible, tui_make_invisible): Rewrite.
2564 (tui_win_info::make_visible): Remove.
2565 (tui_source_window_base::make_visible): Update.
2566 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2567 method. Moved from...
2568 (struct tui_win_info) <make_visible>: ...here.
2569
c3bd716f
TT
25702019-06-25 Tom Tromey <tom@tromey.com>
2571
2572 * tui/tui-winsource.c
2573 (tui_source_window_base::do_scroll_horizontal): Remove direction
2574 parameter.
2575 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2576 direction parameter.
2577 * tui/tui-win.c (tui_win_info::forward_scroll)
2578 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2579 (tui_win_info::right_scroll): Update.
2580 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2581 direction parameter.
2582 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2583 direction parameter.
2584 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2585 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2586 Remove direction parameter.
2587 (struct tui_source_window_base, struct tui_source_window)
2588 (struct tui_disasm_window, struct tui_data_window)
2589 (struct tui_cmd_window): Update.
2590
21c32dca
TT
25912019-06-25 Tom Tromey <tom@tromey.com>
2592
2593 * tui/tui-winsource.h (tui_set_exec_info_content)
2594 (tui_show_exec_info_content, tui_erase_exec_info_content)
2595 (tui_clear_exec_info_content, tui_update_exec_info): Change
2596 argument to tui_source_window_base.
2597 * tui/tui-winsource.c (tui_set_exec_info_content)
2598 (tui_show_exec_info_content, tui_erase_exec_info_content)
2599 (tui_clear_exec_info_content, tui_update_exec_info): Change
2600 argument to tui_source_window_base.
2601
73fbdc65
TT
26022019-06-25 Tom Tromey <tom@tromey.com>
2603
2604 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2605 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2606
33325343
TT
26072019-06-25 Tom Tromey <tom@tromey.com>
2608
2609 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2610 check.
2611
29d2c474
TT
26122019-06-25 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2615 type to void.
2616 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2617 type to void.
2618 * tui/tui-source.c (tui_set_source_content): Update.
2619 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2620
152f3f4b
TT
26212019-06-25 Tom Tromey <tom@tromey.com>
2622
2623 * tui/tui-win.c (window_name_completer, tui_set_focus)
2624 (tui_all_windows_info): Use name method.
2625 * tui/tui-data.h (struct tui_gen_win_info)
2626 (struct tui_source_window, struct tui_disasm_window)
2627 (struct tui_data_window, struct tui_cmd_window) <name>: New
2628 method.
2629 (tui_win_name): Don't declare.
2630 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2631 (tui_win_name): Remove.
2632
be4da588
TT
26332019-06-25 Tom Tromey <tom@tromey.com>
2634
2635 * tui/tui-winsource.h (tui_update_source_window)
2636 (tui_update_source_window_as_is): Change parameter type.
2637 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2638 to be a tui_source_window_base.
2639 (tui_update_source_window_as_is): Likewise.
2640 * tui/tui-win.c (make_visible_with_new_height): Update.
2641
5b81daba
TT
26422019-06-25 Tom Tromey <tom@tromey.com>
2643
2644 * tui/tui-winsource.c (tui_erase_source_content)
2645 (tui_show_source_content, tui_show_exec_info_content)
2646 (tui_erase_exec_info_content): Use refresh_window method.
2647 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2648 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2649 from tui_refresh_win.
2650 (tui_data_window::refresh_window): New method.
2651 (tui_win_info::refresh, tui_source_window_base::refresh)
2652 (tui_refresh_all): Use refresh_window method.
2653 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2654 method.
2655 * tui/tui-regs.c (tui_display_register): Call refresh_window
2656 method.
2657 * tui/tui-layout.c (show_source_disasm_command)
2658 (show_source_or_disasm_and_command): Call refresh_window method.
2659 * tui/tui-data.h (struct tui_gen_win_info)
2660 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2661 New method.
2662
cb2ce893
TT
26632019-06-25 Tom Tromey <tom@tromey.com>
2664
2665 * tui/tui.c (tui_rl_other_window, tui_enable)
2666 (tui_is_window_visible, tui_get_command_dimension): Update.
2667 * tui/tui-winsource.c (tui_update_source_window_as_is)
2668 (tui_clear_source_content, tui_erase_source_content)
2669 (tui_show_source_line, tui_source_window_base::refill)
2670 (tui_source_window_base::do_scroll_horizontal)
2671 (tui_source_window_base::set_is_exec_point_at)
2672 (tui_update_breakpoint_info, tui_set_exec_info_content)
2673 (tui_alloc_source_buffer, tui_line_is_displayed)
2674 (tui_addr_is_displayed): Update.
2675 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2676 (tui_check_and_display_highlight_if_needed)
2677 (tui_win_info::make_visible, tui_win_info::refresh)
2678 (tui_refresh_all): Update.
2679 * tui/tui-windata.c (tui_first_data_item_displayed)
2680 (tui_delete_data_content_windows, tui_erase_data_content)
2681 (tui_display_all_data, tui_data_window::refresh_all)
2682 (tui_check_data_values): Update.
2683 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2684 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2685 (tui_win_info::backward_scroll, tui_refresh_all_win)
2686 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2687 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2688 (tui_source_window_base::set_new_height)
2689 (tui_data_window::set_new_height)
2690 (make_invisible_and_set_new_height)
2691 (make_visible_with_new_height, new_height_ok)
2692 (parse_scrolling_args): Update.
2693 * tui/tui-stack.c (tui_show_frame_info): Update.
2694 * tui/tui-source.c (tui_set_source_content)
2695 (tui_set_source_content_nil, tui_source_is_displayed)
2696 (tui_source_window::do_scroll_vertical): Update.
2697 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2698 (tui_display_registers_from, tui_display_reg_element_at_line)
2699 (tui_check_register_values, tui_reg_command): Update.
2700 * tui/tui-layout.c (tui_default_win_height)
2701 (show_source_disasm_command, show_data, init_and_make_win)
2702 (show_source_or_disasm_and_command): Update.
2703 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2704 (tui_redisplay_readline, tui_mld_flush)
2705 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2706 (tui_getc): Update.
2707 * tui/tui-disasm.c (tui_set_disassem_content)
2708 (tui_disasm_window::do_scroll_vertical): Update.
2709 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2710 Now virtual.
2711 (struct tui_win_info): Derive from tui_gen_win_info.
2712 <~tui_win_info>: Mark as override.
2713 <generic>: Remove member.
2714 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2715 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2716 (~tui_data_window, ~tui_win_info)
2717 (tui_free_all_source_wins_content): Update.
2718 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2719
ab313b35
TT
27202019-06-25 Tom Tromey <tom@tromey.com>
2721
2722 * tui/tui-layout.c (init_and_make_win): Use new.
2723 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2724 destructor, initializers.
2725 (tui_alloc_generic_win_info): Don't declare.
2726 * tui/tui-data.c (_locator): Add argument to constructor.
2727 (source_win, disasm_win): New globals.
2728 (exec_info): Remove.
2729 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2730 Update.
2731 (tui_alloc_generic_win_info): Remove.
2732 (init_content_element): Use new.
2733 (tui_win_info::tui_win_info): Update.
2734 (free_content_elements) <case DATA_WIN>: Use delete.
2735
dc2c33e4
TT
27362019-06-25 Tom Tromey <tom@tromey.com>
2737
2738 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2739 * tui/tui-windata.c (tui_first_data_item_displayed)
2740 (tui_delete_data_content_windows): Update.
2741 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2742 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2743 (tui_display_registers_from, tui_check_register_values): Update.
2744 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2745 pointer.
2746 * tui/tui-data.c (init_content_element): Update. Allocate the new
2747 window.
2748 (tui_free_data_content): Update.
2749 (free_content_elements) <case DATA_WIN>: Free the window.
2750
214a5cbe
TT
27512019-06-25 Tom Tromey <tom@tromey.com>
2752
2753 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2754 Update.
2755 * tui/tui-layout.c (make_command_window)
2756 (show_source_disasm_command, show_data, init_and_make_win)
2757 (show_source_or_disasm_and_command): Update.
2758 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2759 method.
2760 <can_highight, is_highlighted>: Now bool.
2761 (tui_set_win_highlight): Don't declare.
2762 * tui/tui-data.c (tui_set_win_highlight): Remove.
2763
8e2daf15
TT
27642019-06-25 Tom Tromey <tom@tromey.com>
2765
2766 * tui/tui-wingeneral.c (make_visible): Remove check of window
2767 type.
2768
8903bd8a
TT
27692019-06-25 Tom Tromey <tom@tromey.com>
2770
2771 * tui/tui-win.c (tui_win_info::max_height)
2772 (tui_cmd_window::max_height): New methods.
2773 (new_height_ok): Call max_height.
2774 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2775 <max_height>: New method.
2776
3f02ce1e
TT
27772019-06-25 Tom Tromey <tom@tromey.com>
2778
2779 * tui/tui-win.c (tui_source_window_base::set_new_height)
2780 (tui_data_window::set_new_height): New methods.
2781 (make_invisible_and_set_new_height): Call set_new_height method.
2782 * tui/tui-data.h (struct tui_win_info)
2783 (struct tui_source_window_base, struct tui_data_window)
2784 <set_new_height>: New method.
2785
1825f487
TT
27862019-06-25 Tom Tromey <tom@tromey.com>
2787
2788 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2789 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2790 tui_refresh_data_win.
2791 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2792 method.
2793 (tui_refresh_all_win): Call the refresh_all method.
2794 (tui_set_focus): Likewise.
2795 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2796 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2797 Likewise.
2798
ad54d15b
TT
27992019-06-25 Tom Tromey <tom@tromey.com>
2800
2801 * tui/tui-winsource.h (tui_refill_source_window)
2802 (tui_set_is_exec_point_at): Don't declare.
2803 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2804 (tui_source_window_base::refill): Rename from
2805 tui_refill_source_window.
2806 (tui_source_window_base::do_scroll_horizontal): Update.
2807 (tui_source_window_base::set_is_exec_point_at): Rename from
2808 tui_set_is_exec_point_at.
2809 (tui_update_all_breakpoint_info): Update.
2810 * tui/tui-stack.c (tui_show_frame_info): Update.
2811 * tui/tui-layout.c (show_data): Add cast.
2812 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2813 * tui/tui-data.h (struct tui_source_window_base) <refill,
2814 set_is_exec_point_at>: New methods.
2815 (tui_source_windows, tui_add_to_source_windows): Update types.
2816 (tui_add_to_source_windows): Remove redundant declaration.
2817 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2818 (tui_source_windows): Change return type.
2819 (tui_clear_source_windows_detail): Update.
2820 (tui_add_to_source_windows): Change type of parameter.
2821 (tui_free_all_source_wins_content): Update.
2822
2042b506
TT
28232019-06-25 Tom Tromey <tom@tromey.com>
2824
2825 * tui/tui-wingeneral.c (tui_win_info::refresh)
2826 (tui_source_window_base::refresh): New methods.
2827 (tui_refresh_all): Call the refresh method.
2828 * tui/tui-data.h (struct tui_win_info)
2829 (struct tui_source_window_base) <refresh>: New method.
2830
56122977
TT
28312019-06-25 Tom Tromey <tom@tromey.com>
2832
2833 * tui/tui.h (tui_is_window_visible): Return bool.
2834 * tui/tui.c (tui_is_window_visible): Return bool.
2835 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2836 (tui_make_visible, tui_make_invisible)
2837 (tui_win_info::make_visible)
2838 (tui_source_window_base::make_visible, make_all_visible)
2839 (tui_make_all_visible, tui_make_all_invisible): Update.
2840 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2841 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2842 bool.
2843 (struct tui_win_info, struct tui_source_window_base)
2844 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2845 * tui/tui-data.c (tui_init_generic_part): Update.
2846
cda37efb
TT
28472019-06-25 Tom Tromey <tom@tromey.com>
2848
2849 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2850 (tui_source_window_base::make_visible): New methods.
2851 (make_all_visible): Make method call.
2852 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2853 (struct tui_source_window_base, struct tui_cmd_window): Override
2854 make_visible.
2855 (tui_win_is_source_type): Don't declare.
2856 * tui/tui-data.c (tui_win_is_source_type): Remove.
2857
6a0ee02c
TT
28582019-06-25 Tom Tromey <tom@tromey.com>
2859
2860 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2861 NULL check.
2862
63901aec
TT
28632019-06-25 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2866 Inline constructor. Add initializers for members.
2867 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2868 constructors; now inline in class.
2869
ceb13a13
TT
28702019-06-25 Tom Tromey <tom@tromey.com>
2871
2872 * tui/tui-regs.c (tui_show_registers): Update.
2873 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2874 bool.
2875 * tui/tui-data.c (tui_data_window::clear_detail)
2876 (tui_data_window): Update.
2877
238eb706
TT
28782019-06-25 Tom Tromey <tom@tromey.com>
2879
2880 * tui/tui-windata.c (tui_display_all_data)
2881 (tui_display_data_from_line, tui_display_data_from)
2882 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2883 Update.
2884 * tui/tui-regs.c (tui_last_regs_line_no)
2885 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2886 (tui_show_registers, tui_show_register_group)
2887 (tui_display_registers_from, tui_display_reg_element_at_line)
2888 (tui_display_registers_from_line, tui_check_register_values)
2889 (tui_reg_next, tui_reg_prev): Update.
2890 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2891 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2892 tui_data_window.
2893 (struct tui_win_info) <detail>: Remove. Add new fields from
2894 tui_data_info.
2895 (TUI_DATA_WIN): Add cast.
2896 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2897 (~tui_data_window): Simplify.
2898
81491aa0
TT
28992019-06-25 Tom Tromey <tom@tromey.com>
2900
2901 * tui/tui-layout.c (show_source_disasm_command)
2902 (show_source_or_disasm_and_command): Update.
2903 * tui/tui-io.c (update_cmdwin_start_line)
2904 (tui_redisplay_readline): Update.
2905 * tui/tui-data.h (struct tui_command_info): Remove.
2906 (struct tui_win_info) <detail>: Remove command_info member.
2907 (struct tui_data_window) <start_line>: New member, from
2908 tui_command_info.
2909 (TUI_CMD_WIN): Add casts.
2910
e6e41501
TT
29112019-06-25 Tom Tromey <tom@tromey.com>
2912
2913 * tui/tui-winsource.c (tui_update_source_window)
2914 (tui_refill_source_window)
2915 (tui_source_window_base::do_scroll_horizontal)
2916 (tui_update_breakpoint_info, tui_set_exec_info_content)
2917 (tui_show_exec_info_content, tui_erase_exec_info_content)
2918 (tui_clear_exec_info_content): Update.
2919 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
2920 Update.
2921 * tui/tui-win.c (make_invisible_and_set_new_height)
2922 (make_visible_with_new_height): Update.
2923 * tui/tui-source.c (tui_set_source_content)
2924 (tui_show_symtab_source): Update.
2925 * tui/tui-layout.c (extract_display_start_addr)
2926 (show_source_disasm_command, show_data)
2927 (make_source_or_disasm_window)
2928 (show_source_or_disasm_and_command): Update.
2929 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
2930 (tui_disasm_window::do_scroll_vertical): Remove shadowing
2931 "gdbarch".
2932 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
2933 to tui_source_window_base.
2934 (struct tui_win_info) <detail>: Remove source_info member.
2935 (struct tui_source_window_base) <has_locator>: Inline.
2936 Move contents from tui_source_info; rename has_locator member to
2937 m_has_locator.
2938 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
2939 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
2940 header file.
2941 (tui_source_window_base::clear_detail, ~tui_source_window_base):
2942 Simplify.
2943 (tui_free_all_source_wins_content): Cast to
2944 tui_source_window_base.
2945
44f0e208
TT
29462019-06-25 Tom Tromey <tom@tromey.com>
2947
2948 * tui/tui-win.c (make_invisible_and_set_new_height)
2949 (make_visible_with_new_height): Call has_locator method.
2950 * tui/tui-layout.c (show_source_disasm_command, show_data)
2951 (show_source_or_disasm_and_command): Update for bool change.
2952 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
2953 (tui_win_info) <has_locator>: New method.
2954 (struct tui_source_window_base) <has_locator>: New method.
2955 (tui_win_has_locator): Don't declare.
2956 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
2957 from tui_win_has_locator.
2958 (tui_source_window_base): Use false, not FALSE.
2959
7778b912
TT
29602019-06-25 Tom Tromey <tom@tromey.com>
2961
2962 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
2963 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
2964 clear_detail method directly.
2965 (tui_clear_win_detail): Remove.
2966
f83d391c
TT
29672019-06-25 Tom Tromey <tom@tromey.com>
2968
2969 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
2970 "this", not TUI_DISASM_WIN.
2971
13446e05
TT
29722019-06-25 Tom Tromey <tom@tromey.com>
2973
2974 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
2975 declare.
2976 * tui/tui-winsource.c
2977 (tui_source_window_base::do_scroll_horizontal): Rename from
2978 tui_horizontal_source_scroll.
2979 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
2980 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
2981 from tui_vertical_data_scroll.
2982 * tui/tui-win.h (tui_scroll): Don't declare.
2983 * tui/tui-win.c (tui_win_info::forward_scroll)
2984 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2985 (tui_win_info::right_scroll): Rename and update.
2986 (tui_scroll_forward_command, tui_scroll_backward_command)
2987 (tui_scroll_left_command, tui_scroll_right_command): Update.
2988 (tui_scroll): Remove.
2989 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
2990 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
2991 from tui_vertical_source_scroll.
2992 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
2993 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
2994 from tui_vertical_disassem_scroll.
2995 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
2996 do_scroll_horizontal>: New methods.
2997 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
2998 Likewise.
2999 (struct tui_source_window_base): Add do_scroll_horizontal.
3000 (struct tui_source_window, struct tui_disasm_window): Add
3001 do_scroll_vertical.
3002 (struct tui_data_window, struct tui_cmd_window): Add
3003 do_scroll_horizontal and do_scroll_vertical.
3004 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3005
5cf82909
TT
30062019-06-25 Tom Tromey <tom@tromey.com>
3007
3008 * tui/tui-data.h (struct tui_source_window_base): New struct.
3009 (struct tui_source_window): Derive from tui_source_window_base.
3010 (struct tui_disasm_window): New struct.
3011 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3012 from tui_source_window::clear_detail.
3013 (tui_source_window_base): Rename from tui_source_window.
3014 (~tui_source_window_base): Rename from ~tui_source_window.
3015 (tui_alloc_win_info): Create a tui_disasm_window.
3016
ee1d42d6
TT
30172019-06-25 Tom Tromey <tom@tromey.com>
3018
3019 * tui/tui-data.h (struct tui_source_window)
3020 (struct tui_data_window): Declare destructors.
3021 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3022 destructors.
3023 (tui_win_info): Simplify.
3024
b4eb2452
TT
30252019-06-25 Tom Tromey <tom@tromey.com>
3026
3027 * tui/tui-winsource.c (tui_display_main)
3028 (tui_update_source_windows_with_addr)
3029 (tui_update_all_breakpoint_info): Update.
3030 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3031 (new_height_ok, parse_scrolling_args): Update.
3032 * tui/tui-stack.c (tui_show_frame_info): Update.
3033 * tui/tui-data.h (struct tui_list): Remove.
3034 (tui_source_windows): Return a reference to a std::vector.
3035 * tui/tui-data.c (source_windows): Now a std::vector.
3036 (tui_source_windows): Change return type.
3037 (tui_clear_source_windows): Rewrite.
3038 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3039 (tui_free_all_source_wins_content): Rewrite.
3040
8761a91b
TT
30412019-06-25 Tom Tromey <tom@tromey.com>
3042
3043 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3044 (struct tui_data_window, struct tui_cmd_window): Declare
3045 clear_detail method.
3046 * tui/tui-data.c (tui_source_window::clear_detail)
3047 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3048 methods.
3049 (tui_clear_win_detail): Simplify.
3050
0ed69eda
TT
30512019-06-25 Tom Tromey <tom@tromey.com>
3052
3053 * tui/tui-layout.c (make_source_window, make_disasm_window)
3054 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3055 Return the new window.
3056 (show_source_disasm_command, show_data)
3057 (show_source_or_disasm_and_command): Update.
3058
82432e10
TT
30592019-06-25 Tom Tromey <tom@tromey.com>
3060
3061 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3062 parameter. Return the new window.
3063 (show_source_disasm_command): Update and remove NULL check.
3064 (show_source_or_disasm_and_command): Update.
3065
ec328aa5
TT
30662019-06-25 Tom Tromey <tom@tromey.com>
3067
3068 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3069
33b906ab
TT
30702019-06-25 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-data.h (struct tui_win_info): Make constructor
3073 protected. Make destructor virtual. Add initializers.
3074 (tui_source_window, tui_data_window, tui_cmd_window): New
3075 classes.
3076 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3077 constructor. Add "type" parameter.
3078 (tui_source_window, tui_data_window, tui_cmd_window): New
3079 constructors.
3080 (tui_alloc_win_info): Instantiate the appropriate subclass.
3081
e7e11af4
TT
30822019-06-25 Tom Tromey <tom@tromey.com>
3083
3084 * tui/tui-win.c (tui_resize_all): Use delete.
3085 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3086 destructor.
3087 (tui_free_window): Don't declare.
3088 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3089 Update.
3090
6792b55e
TT
30912019-06-25 Tom Tromey <tom@tromey.com>
3092
3093 * tui/tui-data.h (struct tui_win_info): Add constructor.
3094 * tui/tui-data.c (tui_alloc_win_info): Use new.
3095 (tui_free_window): Use delete.
3096
f95675e1
TT
30972019-06-22 Tom Tromey <tom@tromey.com>
3098
3099 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3100 declare.
3101 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3102
5bff081c
TT
31032019-06-22 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3106 declare.
3107 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3108
47e3f474
TV
31092019-06-22 Tom de Vries <tdevries@suse.de>
3110
3111 * dwarf2read.c (create_addrmap_from_aranges)
3112 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3113 instead of '%zu'.
3114
fd5866f6
SM
31152019-06-21 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * dwarf2read.h (dwarf2_section_info_def): Remove.
3118 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3119 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3120 std::vector<dwarf2_section_info>.
3121 (struct dwo_file) <~dwo_file>: Remove.
3122 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3123 types field.
3124 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3125 (dwarf2_read_debug_names): Likewise.
3126 (create_debug_types_hash_table): Change parameter type to
3127 array_view, adjust code accordingly.
3128 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3129 (partial_die_info::fixup): Likewise.
3130 (determine_prefix): Likewise.
3131 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3132
fb1eb2f9
SM
31332019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3134
3135 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3136 gdb_bfd_ref_ptr.
3137 <~dwo_file>: Remove call to gdb_bfd_unref.
3138 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3139 gdb_bfd_ref_ptr::get.
3140
51ac9db5
SM
31412019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3142
3143 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3144 type to htab_up.
3145 * dwarf2read.c (struct dwo_file): Initialize fields.
3146 <~dwo_file>: New.
3147 (free_dwo_file): Remove, move content to ~dwo_file.
3148 (struct dwo_file_deleter): Remove.
3149 (dwo_file_up>: Remove custom deleter.
3150 (free_dwo_files): Remove.
3151 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3152 dwo_files.
3153 (process_skeletonless_type_units): Call unique_ptr::get.
3154 (allocate_dwo_file_hash_table): Add deleter to created hash
3155 table. Change return type to htab_up.
3156 (lookup_dwo_file_slot): Don't memset dwo_file, call
3157 unique_ptr::get.
3158 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3159 (create_dwo_unit_in_dwp_v2): Likewise.
3160 (open_and_init_dwo_file): Likewise.
3161 (free_dwo_file_from_slot): Remove.
3162
dc4ccb6f
SM
31632019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3164
3165 * dwarf2read.h (struct dwarf2_section_info) <readin,
3166 is_virtual>: Change type to bool.
3167 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3168 true instead of 1.
3169
e6a1c5cb
TT
31702019-06-19 Tom Tromey <tom@tromey.com>
3171
3172 * tui/tui-data.h (tui_init_content_element): Don't declare.
3173
6f6ffbeb
TT
31742019-06-19 Tom Tromey <tom@tromey.com>
3175
3176 * tui/tui-data.h (tui_init_win_info): Don't declare.
3177
f23f598e
TV
31782019-06-19 Tom de Vries <tdevries@suse.de>
3179
3180 * dwarf2read.h (abstract_to_concrete): Change type to
3181 std::unordered_map<sect_offset, std::vector<sect_offset>,
3182 gdb::hash_enum<sect_offset>>.
3183
680e1bee
TT
31842019-06-19 Tom Tromey <tromey@adacore.com>
3185
3186 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3187 EVAL_AVOID_SIDE_EFFECTS specially.
3188
dcf37923
TT
31892019-06-19 Tom Tromey <tromey@adacore.com>
3190
3191 * source-cache.c (highlighter): New global.
3192 (source_cache::get_source_lines): Create a highlighter on demand.
3193
494986d5
AB
31942019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3195
3196 * defs.h (deprecated_interactive_hook): Delete declaration.
3197 * interps.c (clear_interpreter_hooks): Remove use of
3198 deprecated_interactive_hook.
3199 * top.c (deprecated_interactive_hook): Delete definition.
3200 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3201
3360b6e7
TV
32022019-06-18 Tom de Vries <tdevries@suse.de>
3203
3204 PR gdb/24515
3205 * dwarf2read.h (abstract_to_concrete): Change type from
3206 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3207 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3208 * dwarf2read.c (read_variable): Update.
3209 (dwarf2_fetch_die_loc_sect_off): Update.
3210
310b3441
TV
32112019-06-17 Tom de Vries <tdevries@suse.de>
3212
3213 PR gdb/24617
3214 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3215 accessing parent[parent_len - 1].
3216
ba9777be
PP
32172019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3218
3219 PR gdb/24364
3220 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3221 call dtrace_process_dof with NULL dof.
3222
2b9f6e89
TV
32232019-06-16 Tom de Vries <tdevries@suse.de>
3224
3225 PR gdb/24445
3226 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3227
431b3ead
TT
32282019-06-16 Tom Tromey <tom@tromey.com>
3229
3230 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3231 (make_all_visible): Use address of member.
3232
d04b44a1
TT
32332019-06-16 Tom Tromey <tom@tromey.com>
3234
3235 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3236 (tui_free_window, free_content, free_content_elements): Remove
3237 unnecessary cast.
3238 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3239 cast.
3240 * tui/tui-regs.c (tui_show_register_group)
3241 (tui_display_registers_from, tui_display_reg_element_at_line):
3242 Remove unnecessary cast.
3243
bf5142e7
AB
32442019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3245
3246 * linux-nat.c (normal_mask): Delete.
3247 (_initialize_linux_nat): Don't initialise normal_mask.
3248
c4973306
SM
32492019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 PR gdb/24445
3252 * dwarf-index-write.h (write_psymtabs_to_index): Add
3253 dwz_basename parameter.
3254 * dwarf-index-write.c (write_gdbindex): Move file writing to
3255 write_gdbindex_1. Change return type void.
3256 (assert_file_size): Move up, remove filename parameter.
3257 (write_gdbindex_1): New function.
3258 (write_debug_names): Change return type to void, call
3259 assert_file_size.
3260 (struct index_wip_file): New struct.
3261 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3262 file logic to index_wip_file. Write index for dwz file if
3263 needed.
3264 (save_gdb_index_command): Pass basename of dwz file, if present.
3265 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3266 build-id of dwz file, if present.
3267 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3268 (dwarf2_get_dwz_file): Likewise.
3269 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3270 (dwarf2_get_dwz_file): Likewise.
3271
395f9c91
TT
32722019-06-16 Tom Tromey <tom@tromey.com>
3273
3274 * coffread.c (process_coff_symbol): Use xstrdup.
3275 * value.c (create_internalvar): Use xstrdup.
3276
cafb3438
TT
32772019-06-16 Tom Tromey <tom@tromey.com>
3278
3279 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3280 * breakpoint.c (stopin_command, stopat_command)
3281 (until_break_command, decode_location_default): Remove unnecessary
3282 cast.
3283 * utils.c (subset_compare): Remove unnecessary cast.
3284 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3285 cast.
3286 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3287 cast.
3288 * infcmd.c (path_command): Remove unnecessary cast.
3289 * coffread.c (decode_type): Remove unnecessary cast.
3290 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3291 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3292 * tui/tui-stack.c (tui_show_locator_content)
3293 (tui_show_frame_info): Remove unnecessary cast.
3294 * tui/tui-win.c (tui_scroll_forward_command)
3295 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3296 (parse_scrolling_args): Remove unnecessary cast.
3297 * tui/tui-data.c (init_win_info, tui_del_window)
3298 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3299 (free_content_elements): Remove unnecessary cast.
3300 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3301 unnecessary cast.
3302 * tui/tui-source.c (tui_set_source_content)
3303 (tui_vertical_source_scroll): Remove unnecessary cast.
3304 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3305 cast.
3306 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3307 * tui/tui-regs.c (tui_display_registers_from)
3308 (tui_display_register): Remove unnecessary cast.
3309 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3310 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3311 (make_visible): Remove unnecessary cast.
3312 * tui/tui-winsource.c (tui_erase_source_content)
3313 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3314 unnecessary cast.
3315 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3316 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3317 * stabsread.c (read_type, read_array_type, read_range_type):
3318 Remove unnecessary cast.
3319 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3320 (parse_symbol, parse_type, upgrade_type, parse_external)
3321 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3322 unnecessary cast.
3323 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3324
730ead81
TT
33252019-06-16 Tom Tromey <tom@tromey.com>
3326
3327 * tui/tui-data.c (tui_alloc_generic_win_info)
3328 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3329 checks.
3330
584a927c
AB
33312019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3332 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * f-typeprint.c (f_print_type): Don't return early for not
3335 associated or not allocated types.
3336 (f_type_print_varspec_suffix): Add print_rank parameter and print
3337 ranks of array types in case they dangling.
3338 (f_type_print_base): Add print_rank parameter.
3339
30056ea0
AB
33402019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3341
3342 * NEWS: Mention new MI commands.
3343 * break-catch-throw.c (enum exception_event_kind): Move to
3344 breakpoint.h.
3345 (print_mention_exception_catchpoint): Output text as a single
3346 message.
3347 (catch_exception_command_1): Rename to...
3348 (catch_exception_event): ...this, make non-static, update header
3349 command, and change some parameter types.
3350 (catch_catch_command): Update for changes to
3351 catch_exception_command_1.
3352 (catch_throw_command): Likewise.
3353 (catch_rethrow_command): Likewise.
3354 * breakpoint.c (enum exception_event_kind): Delete.
3355 * breakpoint.h (enum exception_event_kind): Moved here from
3356 break-catch-throw.c.
3357 (catch_exception_event): Declare.
3358 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3359 (mi_cmd_catch_throw): New function.
3360 (mi_cmd_catch_rethrow): New function.
3361 (mi_cmd_catch_catch): New function.
3362 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3363 'catch-catch' entries.
3364 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3365 (mi_cmd_catch_rethrow): Declare.
3366 (mi_cmd_catch_catch): Declare.
3367
ec8e2b6d
AB
33682019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * annotate.c (annotate_source_line): Change return type to void,
3371 update implementation to match.
3372 * annotate.h (annotate_source_line): Change return type to void,
3373 update header comment.
3374 * stack.c (print_frame_info): Don't change what frame information
3375 is printed based on whether annotations are on or not.
3376
0d3abd8c
AB
33772019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3378
3379 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3380 (annotate_source): Make static.
3381 (annotate_source_line): Moved from source.c and renamed from
3382 identify_source_line. Update the return type.
3383 * annotate.h (annotate_source): Delete declaration.
3384 (annotate_source_line): Declaration moved from source.h, and
3385 renamed from identify_source_line. Return type updated.
3386 * source.c (identify_source_line): Moved to annotate.c and renamed
3387 to annotate_source_line.
3388 (info_line_command): Remove check of annotation_level.
3389 * source.h (identify_source_line): Move declaration to annotate.h
3390 and rename to annotate_source_line.
3391 * stack.c: Add 'annotate.h' include.
3392 (print_frame_info): Remove check of annotation_level before
3393 calling annotate_source_line.
3394
00df30ae
AB
33952019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * source-cache.c (source_cache::get_plain_source_lines): Use
3398 open_source_file_with_line_charpos instead of just
3399 open_source_file, remove call to find_source_lines.
3400 (source_cache::get_source_lines): Likewise.
3401 * source.c (find_source_lines): Make static.
3402 (get_filename_and_charpos): Renamed into...
3403 (open_source_file_with_line_charpos): ..this along with changes to
3404 return a scoped_fd, and some other minor clean ups.
3405 (identify_source_line): Use open_source_file_with_line_charpos.
3406 (search_command_helper): Use open_source_file_with_line_charpos
3407 instead of just open_source_file, remove call to
3408 find_source_lines.
3409 * source.h (open_source_file_with_line_charpos): Declare new
3410 function.
3411 (find_source_lines): Delete declaration.
3412
afda45a2
AB
34132019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * source.c (get_filename_and_charpos): Remove fullname
3416 parameter.
3417 (identify_source_line): Update call to get_filename_and_charpos.
3418
0735b091
TT
34192019-06-14 Tom Tromey <tromey@adacore.com>
3420
3421 PR gdb/24502:
3422 * ui-style.h (skip_ansi_escape): Update comment.
3423 * ui-file.h (class no_terminal_escape_file): New class.
3424 * ui-file.c (no_terminal_escape_file::write)
3425 (no_terminal_escape_file::puts): New methods.
3426 * cli/cli-logging.c (handle_redirections): Use
3427 no_terminal_escape_file.
3428
52ce35e2
TT
34292019-06-14 Tom Tromey <tromey@adacore.com>
3430
3431 * NEWS: Move convenience variable news above Python news.
3432
73cc7272
TT
34332019-06-14 Tom Tromey <tom@tromey.com>
3434
3435 * gnulib: Move directory to top-level.
3436 * configure.ac: Don't configure gnulib.
3437 * configure: Rebuild.
3438 * common/common-defs.h: Use new path to gnulib.
3439 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3440 (GNULIB_H): Remove.
3441 (INCGNU): Look in new gnulib location.
3442 (HFILES_NO_SRCDIR): Remove gnulib files.
3443 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3444 (generated_files): Remove GNULIB_H.
3445 ($(LIBGNU), all-lib): Remove targets.
3446 (distclean): Don't mention GNULIB_BUILDDIR.
3447 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3448
f5686554
TT
34492019-06-14 Tom Tromey <tromey@adacore.com>
3450
3451 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3452 Warn if symbol file does not provide any symbols.
3453
a0c1ffed
TT
34542019-06-14 Tom Tromey <tromey@adacore.com>
3455
3456 * source.c (find_and_open_source): Respect basenames_may_differ.
3457
7c39e397
AB
34582019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3459
3460 * annotate.c (annotate_breakpoints_invalid): Make use of
3461 scoped_restore_terminal_state.
3462 (annotate_frames_invalid): Likewise.
3463
f411722c
TT
34642019-06-14 Tom Tromey <tromey@adacore.com>
3465
3466 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3467 allow assignment to an internalvar.
3468
4268ec18
TT
34692019-06-14 Tom Tromey <tromey@adacore.com>
3470
3471 * ada-lex.l: Allow "_" in attribute names.
3472
abdb711e
TT
34732019-06-14 Tom Tromey <tromey@adacore.com>
3474
3475 PR gdb/24653:
3476 * regcache.c (registers_changed): Don't call alloca.
3477 * top.c (execute_command): Don't call alloca.
3478
4c048731
PA
34792019-06-13 Pedro Alves <palves@redhat.com>
3480
3481 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3482 'expression'. When parsing an expression, error out if there's
3483 junk after "unlimited".
3484 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3485 (do_set_command): Adjust calls to is_unlimited_literal.
3486
66eb1ed3
PA
34872019-06-13 Pedro Alves <palves@redhat.com>
3488
3489 * compile/compile.c (make_compile_options_def_group): Add braces
3490 around array_view initializer.
3491 * thread.c (make_thread_apply_all_options_def_group)
3492 (make_thread_apply_all_options_def_group): Likewise.
3493
3345721a
PA
34942019-06-13 Pedro Alves <palves@redhat.com>
3495
3496 * NEWS (New commands): Mention "maint test-options
3497 require-delimiter", "maint test-options unknown-is-error", "maint
3498 test-options unknown-is-operand" and "maint show
3499 test-options-completion-result".
3500 (New command options, command completion): New section.
3501 (Completion improvements): New section.
3502 Mention that you can abbreviate "unlimited".
3503
6206060d
PA
35042019-06-13 Pedro Alves <palves@redhat.com>
3505
3506 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3507 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3508 * unittests/cli-utils-selftests.c (test_parse_flags)
3509 (test_parse_flags_qcs): Delete.
3510 (test_cli_utils): Don't call deleted functions.
3511
6665660a
PA
35122019-06-13 Pedro Alves <palves@redhat.com>
3513
3514 * thread.c: Include "cli/cli-option.h".
3515 (tp_array_compar_ascending): Global.
3516 (tp_array_compar): Delete function.
3517 (tp_array_compar_ascending, tp_array_compar_descending): New
3518 functions.
3519 (ascending_option_def, qcs_flag_option_def)
3520 (thr_qcs_flags_option_defs)
3521 (make_thread_apply_all_options_def_group)
3522 (make_thread_apply_options_def_group): New.
3523 (thread_apply_all_command): Use gdb::option::process_options.
3524 (thread_apply_command_completer)
3525 (thread_apply_all_command_completer): New.
3526 (thread_apply_command): Use gdb::option::process_options.
3527 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3528 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3529 to generate help text of "thread apply". Adjust "taas"'s help.
3530 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3531 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3532
f7e13587
PA
35332019-06-13 Pedro Alves <palves@redhat.com>
3534
3535 * thread.c (thread_apply_command): Check for invalid TID with
3536 isdigit instead of !isalpha.
3537
5d707134
PA
35382019-06-13 Pedro Alves <palves@redhat.com>
3539
3540 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3541 (validate_flags_qcs): New.
3542 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3543 (validate_flags_qcs): Declare.
3544 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3545 (make_frame_apply_options_def_group): New.
3546 (frame_apply_command_count): Process options with
3547 gdb::option::process_options.
3548 (frame_apply_completer): New.
3549 (frame_apply_level_completer, frame_apply_all_completer)
3550 (frame_apply_completer): New.
3551 (_initialize_stack): Update help of "frame apply", "frame apply
3552 level", "frame apply all" and "faas" to mention supported options
3553 and install command completers.
3554 * stack.h (frame_apply_all_completer): Declare.
3555 * thread.c: Include "stack.h".
3556 (tfaas_command): Add "--".
3557 (_initialize_thread): Update help "tfaas" to mention supported
3558 options and install command completer.
3559
272d4594
PA
35602019-06-13 Pedro Alves <palves@redhat.com>
3561
3562 * completer.c (complete_nested_command_line): New.
3563 (gdb_completion_word_break_characters_throw): Add assertion.
3564 * completer.h (complete_nested_command_line): Declare.
3565
90a1ef87
PA
35662019-06-13 Pedro Alves <palves@redhat.com>
3567
3568 * stack.c (parse_backtrace_qualifiers): New.
3569 (backtrace_command): Use it.
3570 (backtrace_command_completer): Complete on qualifiers.
3571
d4c16835
PA
35722019-06-13 Pedro Alves <palves@redhat.com>
3573
3574 * frame.c: Include "cli/cli-option.h.
3575 (user_set_backtrace_options): New.
3576 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3577 Delete.
3578 (get_prev_frame): Adjust.
3579 (boolean_option_def, uinteger_option_def)
3580 (set_backtrace_option_defs): New.
3581 (_initialize_frame): Adjust and use
3582 gdb::option::add_setshow_cmds_for_options to install "set
3583 backtrace past-main" and "set backtrace past-entry".
3584 * frame.h: Include "cli/cli-option.h".
3585 (struct frame_print_options): Forward declare.
3586 (print_frame_arguments_all, print_frame_arguments_scalars)
3587 (print_frame_arguments_none): Declare.
3588 (print_entry_values): Delete declaration.
3589 (struct frame_print_options, user_frame_print_options): New.
3590 (struct set_backtrace_options): New.
3591 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3592 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3593 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3594 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3595 (list_args_or_locals): Add frame_print_options parameter.
3596 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3597 * python/py-framefilter.c (enumerate_args): Pass down
3598 USER_FRAME_PRINT_OPTIONS.
3599 * stack.c: Include "cli/cli-option.h".
3600 (print_frame_arguments_all, print_frame_arguments_scalars)
3601 (print_frame_arguments_none): Declare.
3602 (print_raw_frame_arguments, print_entry_values): Delete.
3603 (user_frame_print_options): New.
3604 (boolean_option_def, enum_option_def, frame_print_option_defs):
3605 New.
3606 (struct backtrace_cmd_options): New.
3607 (bt_flag_option_def): New.
3608 (backtrace_command_option_defs): New.
3609 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3610 (print_frame_arg, read_frame_arg, print_frame_args)
3611 (print_frame_info, print_frame): Add frame_print_options parameter
3612 and use it.
3613 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3614 (backtrace_command_1): Add frame_print_options and
3615 backtrace_cmd_options parameters and use them.
3616 (make_backtrace_options_def_group): New.
3617 (backtrace_command): Process command options with
3618 gdb::option::process_options.
3619 (backtrace_command_completer): New.
3620 (_initialize_stack): Extend "backtrace"'s help to mention
3621 supported options. Install completer for "backtrace".
3622 Install some settings commands with add_setshow_cmds_for_options.
3623
2daf894e
PA
36242019-06-13 Pedro Alves <palves@redhat.com>
3625
3626 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3627 and that "set/show print raw frame-arguments" are now deprecated.
3628
3629 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3630 command.
3631 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3632 * stack.c (_initialize_stack): Install "set/show print
3633 raw-frame-arguments", and deprecate "set/show print raw
3634 frame-arguments".
3635 * valprint.c (_initialize_valprint): Deprecate "set/show print
3636 raw".
3637
e6ed716c
PA
36382019-06-13 Pedro Alves <palves@redhat.com>
3639
3640 * compile/compile.c (struct compile_options): New.
3641 (compile_flag_option_def, compile_command_option_defs)
3642 (make_compile_options_def_group): New.
3643 (compile_file_command): Handle options with
3644 gdb::option::process_options.
3645 (compile_file_command_completer): New function.
3646 (compile_code_command): Handle options with
3647 gdb::option::process_options.
3648 (compile_code_command_completer): New function.
3649 (_initialize_compiler): Install completers for "compile code" and
3650 "compile file". Mention available options in "compile code" and
3651 "compile code"'s help.
3652 * completer.c (advance_to_completion_word): New, factored out from
3653 ...
3654 (advance_to_expression_complete_word_point): ... this.
3655 (advance_to_filename_complete_word_point): New.
3656 * completer.h (advance_to_filename_complete_word_point): New
3657 declaration.
3658
7d8062de
PA
36592019-06-13 Pedro Alves <palves@redhat.com>
3660
3661 * compile/compile.c: Include "cli/cli-option.h".
3662 (compile_print_value): Scope data pointer is now a
3663 value_print_options pointer; adjust.
3664 (compile_print_command): Process options. Scope data pointer is
3665 now a value_print_options pointer; adjust.
3666 (_initialize_compile): Update "compile print"'s help to include
3667 supported options. Install a completer for "compile print".
3668 * cp-valprint.c (show_vtblprint, show_objectprint)
3669 (show_static_field_print): Delete.
3670 (_initialize_cp_valprint): Don't install "set print
3671 static-members", "set print vtbl", "set print object" here.
3672 * printcmd.c: Include "cli/cli-option.h" and
3673 "common/gdb_optional.h".
3674 (print_command_parse_format): Rework to fill in a
3675 value_print_options instead of a format_data.
3676 (print_value): Change parameter type from format_data pointer to
3677 value_print_options reference. Adjust.
3678 (print_command_1): Process options. Adjust to pass down a
3679 value_print_options.
3680 (print_command_completer): New.
3681 (_initialize_printcmd): Install print_command_completer as
3682 handle_brkchars completer for the "print" command. Update
3683 "print"'s help to include supported options.
3684 * valprint.c: Include "cli/cli-option.h".
3685 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3686 here from cp-valprint.c.
3687 (boolean_option_def, uinteger_option_def)
3688 (value_print_option_defs, make_value_print_options_def_group):
3689 New. Use gdb::option::add_setshow_cmds_for_options to install
3690 "set print elements", "set print null-stop", "set print repeats",
3691 "set print pretty", "set print union", "set print array", "set
3692 print address", "set print symbol", "set print array-indexes".
3693 * valprint.h: Include <string> and "cli/cli-option.h".
3694 (make_value_print_options_def_group): Declare.
3695 (print_value): Change parameter type from format_data pointer to
3696 value_print_options reference.
3697 (print_command_completer): Declare.
3698
9d0faba9
PA
36992019-06-13 Pedro Alves <palves@redhat.com>
3700
3701 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3702 (COMMON_SFILES): Add maint-test-settings.c.
3703 * cli/cli-decode.c (boolean_enums): New global, factored out from
3704 ...
3705 (add_setshow_boolean_cmd): ... here.
3706 * cli/cli-decode.h (boolean_enums): Declare.
3707 * cli/cli-option.c: New file.
3708 * cli/cli-option.h: New file.
3709 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3710 factored out from ...
3711 (parse_cli_boolean_value(const char *)): ... this.
3712 (is_unlimited_literal): Change parameter type to pointer to
3713 pointer. Adjust and advance ARG pointer.
3714 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3715 (parse_cli_var_enum): New, factored out from ...
3716 (do_set_command): ... this. Adjust.
3717 * cli/cli-setshow.h (parse_cli_boolean_value)
3718 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3719 (parse_cli_var_enum): Declare.
3720 * cli/cli-utils.c: Include "cli/cli-option.h".
3721 (get_ulongest): New.
3722 * cli/cli-utils.h (get_ulongest): Declare.
3723 (check_for_argument): New overloads.
3724 * maint-test-options.c: New file.
3725
2c722807
PA
37262019-06-13 Pedro Alves <palves@redhat.com>
3727
3728 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3729 parse a range if "-" is at the end of the string.
3730
dee7b4c8
PA
37312019-06-13 Pedro Alves <palves@redhat.com>
3732
3733 * cli/cli-setshow.c (parse_auto_binary_operation)
3734 (parse_cli_boolean_value): Don't allow "o".
3735
dca0f6c0
PA
37362019-06-13 Pedro Alves <palves@redhat.com>
3737
3738 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3739 * NEWS: Mention maint test-settings KIND.
3740 * maint-test-settings.c: New file.
3741
597bf39d
PA
37422019-06-13 Pedro Alves <palves@redhat.com>
3743
3744 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3745 completer.
3746 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3747 "set" completers.
3748
48c410fb
PA
37492019-06-13 Pedro Alves <palves@redhat.com>
3750
3751 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3752 after item.
3753
93bcb043
PA
37542019-06-13 Pedro Alves <palves@redhat.com>
3755
3756 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3757
cbba3ecd
PA
37582019-06-13 Pedro Alves <palves@redhat.com>
3759
3760 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3761 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3762 call.
3763 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3764 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3765 calls.
3766 (check_for_argument): Skip spaces after argument.
3767
b9a3f842
PA
37682019-06-13 Pedro Alves <palves@redhat.com>
3769
3770 * thread.c (thread_apply_command): Adjust TID parsing.
3771 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3772 detected before end of string.
3773 (tid_is_in_list): Error out if LIST is invalid.
3774
3844e605
PA
37752019-06-13 Pedro Alves <palves@redhat.com>
3776
3777 * completer.c (complete_line_internal_1): Rewind completion word
3778 point.
3779 (completion_tracker::advance_custom_word_point_by): Change
3780 parameter type to int.
3781 * completer.h (completion_tracker::advance_custom_word_point_by):
3782 Likewise.
3783
00b56dbe
PA
37842019-06-13 Pedro Alves <palves@redhat.com>
3785
3786 * completer.c (advance_to_completion_word): Handle delimiters.
3787
d106773e
PA
37882019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3789
3790 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3791
08f10e02
TT
37922019-06-11 Tom Tromey <tom@tromey.com>
3793
3794 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3795 (xmalloc_failed): Move to alloc.c.
3796 * alloc.c: New file.
3797 * Makefile.in (COMMON_SFILES): Add alloc.c.
3798
1c7fe951
TT
37992019-06-11 Tom Tromey <tom@tromey.com>
3800
3801 * nat/linux-waitpid.c: Don't include server.h.
3802 (linux_debug): Remove.
3803 (my_waitpid): Update.
3804
89549d7f
TT
38052019-06-11 Tom Tromey <tromey@adacore.com>
3806
3807 * infcall.c (_initialize_infcall): Remove trailing newline from
3808 help.
3809 * user-regs.c (_initialize_user_regs): Remove trailing newline
3810 from help.
3811 * typeprint.c (_initialize_typeprint): Remove trailing newline
3812 from help.
3813 * reverse.c (_initialize_reverse): Remove trailing newlines from
3814 help.
3815 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3816 from help.
3817 * language.c (add_set_language_command): Remove trailing newline
3818 from help.
3819 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3820 help.
3821 * disasm.c (_initialize_disasm): Remove trailing newline from
3822 help.
3823 * top.c (init_main): Remove trailing newline from help.
3824 * interps.c (_initialize_interpreter): Remove trailing newline
3825 from help.
3826 * btrace.c (_initialize_btrace): Remove trailing newlines from
3827 help.
3828 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3829 from help.
3830 * python/python.c (_initialize_python): Remove trailing newline
3831 from help.
3832 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3833 help.
3834 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3835 from help. Reformat some text.
3836 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3837 from help.
3838 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3839 newline from help.
3840
86108c13
TT
38412019-06-11 Tom Tromey <tromey@adacore.com>
3842
3843 * darwin-nat.c (darwin_decode_exception_message)
3844 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3845
a7067863
AB
38462019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3847
3848 * valops.c (value_slice): Check for not allocated or not
3849 associated values.
3850
9ab08412
TV
38512019-06-10 Tom de Vries <tdevries@suse.de>
3852
3853 PR gdb/24618
3854 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3855 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3856 invalid.
3857
f19e22e9
TV
38582019-06-10 Tom de Vries <tdevries@suse.de>
3859
3860 PR gdb/24611
3861 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3862 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3863
e99f9db0
TV
38642019-06-10 Tom de Vries <tdevries@suse.de>
3865
3866 PR symtab/24545
3867 * symtab.c (struct demangled_name_entry): Add language field.
3868 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3869 static minimal symbol". Set and use language field.
3870
9bf7038b
TT
38712019-06-10 Tom Tromey <tromey@adacore.com>
3872
3873 * ada-lang.c (_initialize_ada_language): Update help text.
3874
422186a9
TT
38752019-06-10 Tom Tromey <tromey@adacore.com>
3876
3877 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3878 with a newline.
3879 * guile/guile.c (handle_boot_error): Don't end warning with a
3880 newline.
3881 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3882 warning with a newline.
3883 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3884 newline.
3885 (s12z_frame_cache): Likewise.
3886 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3887 a newline.
3888 * solib-svr4.c (disable_probes_interface): Don't end warning with
3889 a newline.
3890 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3891 newline.
3892 * python/python.c (do_finish_initialization): Don't end warning
3893 with a newline.
3894
25ce02ee
TT
38952019-06-10 Tom Tromey <tom@tromey.com>
3896
3897 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3898 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3899 gdbpy_enter.
3900
caa429d8
TT
39012019-06-10 Tom Tromey <tromey@adacore.com>
3902
3903 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3904 data.
3905 (elf_new_init): Don't call stabsread_new_init.
3906 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3907 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3908 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3909
81873cc8
TV
39102019-06-10 Tom de Vries <tdevries@suse.de>
3911
3912 PR symtab/16264
3913 PR symtab/24517
3914 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3915
4fa0265e
РИ
39162019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3917
3918 * source.c (find_and_open_source): Also rewrite relative file
3919 names.
3920
1a3da2cd
AB
39212019-04-26 Amos Bird <amosbird@gmail.com>
3922
3923 * annotate.c (annotate_thread_exited): Add "thread-exited"
3924 annotation.
3925
3847a7bf
TT
39262019-06-06 Tom Tromey <tromey@adacore.com>
3927
3928 * maint.h (class scoped_command_stats): Use
3929 DISABLE_COPY_AND_ASSIGN.
3930 <print_time>: New method.
3931 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
3932 print_time.
3933 (scoped_command_stats::print_time): New method.
3934
312617a3
AB
39352019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3936
3937 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
3938 instructions of lengths 6 or 8 bytes.
3939
b02f78f9
PA
39402019-06-04 Pedro Alves <palves@redhat.com>
3941
3942 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
3943
3944 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
3945 * breakpoint.c (condition_completer): Likewise.
3946 * cli/cli-dump.c (scan_expression): Likewise.
3947 * common/filestuff.c (mkdir_recursive): Likewise.
3948 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
3949 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
3950 (gdb_abspath): Likewise.
3951 * compile/compile-cplus-types.c
3952 (compile_cplus_instance::decl_name): Likewise.
3953 * completer.c (complete_explicit_location):
3954 (signal_completer, reg_or_group_completer_1): Likewise.
3955 * cp-support.c (cp_remove_params_if_any): Likewise.
3956 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
3957 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
3958 * infcmd.c (strip_bg_char): Likewise.
3959 * linespec.c (copy_token_string): Likewise.
3960 * mi/mi-main.c (output_cores): Likewise.
3961 * psymtab.c (psymtab_search_name):
3962 * symfile.c (test_set_ext_lang_command): Likewise.
3963 * target.c (target_fileio_read_stralloc): Likewise.
3964 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
3965 * value.c (complete_internalvar): Likewise.
3966
e1f2e1a2
CB
39672019-06-04 Christian Biesinger <cbiesinger@google.com>
3968
3969 Add objfile property to gdb.Type.
d3238f7d
PA
3970 * NEWS: Mention Python API addition.
3971 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 3972
e664d728
PW
39732019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3974
3975 * NEWS: Mention the new set|show style [title|highlight].
3976 Mention changes to "show style", "help" and "apropos".
3977
66d8c862
PW
39782019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3979
3980 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
3981 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
3982 instead of print_help_for_command.
3983 (print_doc_of_command): New function.
3984 (help_list): Add 'apropos -v word' suggestion.
3985 (print_help_for_command): Style the command name using title style.
3986 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
3987 (_initialize_cli_cmds): Describe -v in apropos_command help.
3988
9303eb2f
PW
39892019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3990
3991 * cli/cli-style.h (cli_style_option): Add name in constructor,
3992 add m_name class member, add constructor with intensity,
3993 add name class function.
3994 (cli_style_option::add_setshow_commands): Remove name argument.
3995 (highlight_style, title_style): New styles.
3996 * cli/cli-style.c (do_show): New function that shows a style
3997 characteristic styling the style name with itself.
3998 (set_style_name): New function.
3999 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4000 Update all callers according to the changes in cli/cli-style.h.
4001 * utils.h (fputs_highlighted): New function.
4002 * utils.c (fputs_highlighted): Likewise.
4003
e2c52041
PW
40042019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4005
4006 * NEWS: Mention new pipe command and new convenience variables.
4007
947d3946
PW
40082019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4009
4010 * cli/cli-cmds.c (pipe_command): New function.
4011 (_initialize_cli_cmds): Call add_com for pipe_command.
4012 Define | as an alias for pipe.
4013 (exit_status_set_internal_vars): New function.
4014 (shell_escape): Call exit_status_set_internal_vars.
4015 cli/cli-decode.c (find_command_name_length): Recognize | as
4016 a single character command.
4017
b8fd0918
PW
40182019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4019
4020 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4021 top.c (execute_command_to_ui_file): New function, mostly a copy
4022 of execute_command_to_string.
4023 (execute_command_to_string): Implement by calling
4024 execute_command_to_ui_file.
4025
68bb5386
PW
40262019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4027
4028 * top.h (saved_command_line): Remove declaration.
4029 * top.c (previous_saved_command_line, previous_repeat_arguments):
4030 New variables.
4031 (saved_command_line): Make static, define together with other
4032 'repeat variables'.
4033 (dont_repeat): Clear repeat_arguments.
4034 (repeat_previous, get_saved_command_line, save_command_line):
4035 New functions.
4036 (gdb_init): Initialize saved_command_line
4037 and previous_saved_command_line.
4038 * main.c (captured_main_1): Remove saved_command_line initialization.
4039 * event-top.c (handle_line_of_input): Update to use
4040 the new 'repeat' related functions instead of direct access to
4041 saved_command_line.
4042 * command.h (repeat_previous, get_saved_command_line,
4043 save_command_line): New declarations.
4044 (dont_repeat): Add comment.
4045
bfcdb852
TT
40462019-05-30 Tom Tromey <tromey@adacore.com>
4047
4048 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4049 Fix comment.
4050 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4051
0ef209f2
JV
40522019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4053
4054 PR cli/24587
4055 * completer.c (complete): Initialize variable word.
4056
955b06fa
SDJ
40572019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4058
4059 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4060 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4061 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4062 'body' is NULL to the outter 'if', protecting the '!is_define'
4063 situation as well.
4064
fa9c3fa0
TT
40652019-05-29 Tom Tromey <tromey@adacore.com>
4066
4067 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4068 (dwarf_unknown): New function.
4069 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4070 (dwarf_type_encoding_name): Use dwarf_unknown.
4071
4330d61d
TT
40722019-05-29 Tom Tromey <tromey@adacore.com>
4073
4074 PR c++/20020:
4075 * cp-valprint.c (cp_print_value_fields): Call
4076 cp_print_static_field inside "try".
4077
33a6bc35
TT
40782019-05-29 Tom Tromey <tromey@adacore.com>
4079
4080 * inflow.c (struct terminal_info): Add default operator=.
4081 * configure: Rebuild.
4082 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4083 -Wdeprecated-copy-dtor, -Wredundant-move.
4084
000439d5
TT
40852019-05-29 Tom Tromey <tromey@adacore.com>
4086
4087 * NEWS: Add entry.
4088 * infcmd.c (print_return_value_1): Handle finish_print
4089 option.
4090 (show_print_finish): New function.
4091 (_initialize_infcmd): Add "set/show print finish" commands.
4092 * valprint.c (user_print_options): Initialize new member.
4093 * valprint.h (struct value_print_options) <finish_print>: New
4094 member.
4095
c0e70c62
TT
40962019-05-28 Tom Tromey <tromey@adacore.com>
4097
4098 * ada-lang.c (ada_remove_Xbn_suffix)
4099 (find_old_style_renaming_symbol)
4100 (parse_old_style_renaming): Remove.
4101 (ada_find_renaming_symbol): Don't call
4102 find_old_style_renaming_symbol.
4103 (ada_is_renaming_symbol): Rename from
4104 ada_find_renaming_symbol. Remove "block" parameter. Return
4105 bool. Now static.
4106 (ada_read_var_value): Update and simplify.
4107 * ada-exp.y (write_var_or_type): Remove old code.
4108
766f8836
AH
41092019-05-28 Alan Hayward <alan.hayward@arm.com>
4110
4111 * event-top.c: Remove include comment.
4112 * inflow.c (class scoped_ignore_sigttou): Move from here...
4113 * inflow.h (class scoped_ignore_sigttou): ...to here.
4114 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4115 * top.c: Remove include comment.
4116
eb41253a
TT
41172019-05-27 Tom Tromey <tom@tromey.com>
4118
4119 * NEWS: Fix typo.
4120
4ca51187
TT
41212019-05-22 Tom Tromey <tromey@adacore.com>
4122
4123 * target.c (target_follow_exec): Constify parameter.
4124 * target-delegates.c: Rebuild.
4125 * remote.c (remote_target::follow_exec): Constify parameter.
4126 * infrun.c (follow_exec): Constify parameter.
4127 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4128 (target_follow_exec): Likewise.
4129
8fca4da0
AH
41302019-05-22 Alan Hayward <alan.hayward@arm.com>
4131
4132 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4133 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4134
b7060614
AH
41352019-05-22 Alan Hayward <alan.hayward@arm.com>
4136
4137 * NEWS: Add debugredirect and testsuite sections.
4138
0a5954bd
SC
41392019-05-22 Simon Cook <simon.cook@embecosm.com>
4140
4141 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4142 target descriptions using exclusively floating point register name
4143 aliases.
4144
dc42e902
AB
41452019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4146
4147 PR gdb/18644:
4148 * f-lang.c (build_fortran_types): Handle the case where
4149 gdbarch_floatformat_for_type returns a nullptr.
4150
fb7806c7
TV
41512019-05-21 Tom de Vries <tdevries@suse.de>
4152
4153 PR cli/24587
4154 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4155
34d11c68
AB
41562019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4157
4158 PR gdb/18644:
4159 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4160 16-byte floats.
4161 * i386-tdep.c (i386_floatformat_for_type): Use
4162 floatformats_ia64_quad for the 16-byte floating point component
4163 within a fortran 32-byte complex number.
4164
122cf0f2
AB
41652019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4166
4167 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4168 delete default constructor.
4169 (find_partial_die): Update to return const struct.
4170 (partial_die_parent_scope): Move variable declaration into scope
4171 of its use and change its type to auto.
4172 (guess_partial_die_structure_name): Likewise.
4173 (partial_die_info::fixup): Likewise.
4174
33d0e35a
TT
41752019-05-17 Tom Tromey <tromey@adacore.com>
4176
4177 * source.c (find_and_open_source): Remove cast.
4178
a45575b0
TT
41792019-05-17 Tom Tromey <tromey@adacore.com>
4180
4181 * annotate.c (annotate_source): Make "filename" const.
4182 * annotate.h (annotate_source): Use const.
4183
81f47ac2
AH
41842019-05-17 Alan Hayward <alan.hayward@arm.com>
4185
4186 * disasm.c (set_disassembler_options): Send errors to stderr.
4187
ca1285d1
AH
41882019-05-17 Alan Hayward <alan.hayward@arm.com>
4189
4190 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4191 (cli_interp_base::set_logging): Check debug_redirect.
4192 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4193 * cli/cli-logging.c (debug_redirect): Add static variable.
4194 (pop_output_files): Add default param.
4195 (handle_redirections): Print debug setting.
4196 (show_logging_command): Likewise.
4197 (_initialize_cli_logging): Add debugredirect command.
4198 * interps.c (current_interp_set_logging): Add debug_redirect
4199 parameter.
4200 * interps.h (set_logging): Add debug_redirect parameter.
4201 (current_interp_set_logging): Likewise.
4202 * mi/mi-common.h: Likewise.
4203 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4204
42052019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4206 Tom Tromey <tromey@adacore.com>
4207
4208 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4209 directly.
4210 * cli/cli-interp.h (make_logging_output): Remove declaration.
4211 * cli/cli-logging.c (make_logging_output): Remove function.
4212 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4213 directly.
4214 * ui-file.c (tee_file::tee_file): Remove bools.
4215 (tee_file::~tee_file): Remove deletes.
4216 * ui-file.h (tee_file): Remove bools.
4217
26648588
JV
42182019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4219
4220 * mi/mi-cmds.h (mi_cmd_complete): New function.
4221 * mi/mi-main.c (mi_cmd_complete): Likewise.
4222 * mi/mi-cmds.c: Define new MI command -complete.
4223 * NEWS: Mention new -complete command.
4224
6e035501
JV
42252019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4226
4227 * completer.h (complete): New function.
4228 * completer.c (complete): Likewise.
4229 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4230 function defined in completer.h.
4231
7d0e2ece
JV
42322019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4233
e79be6e5 4234 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4235
fb816e8b
TV
42362019-05-17 Tom de Vries <tdevries@suse.de>
4237
4238 PR gdb/24094
4239 * dwarf2read.c (struct cu_partial_die_info): New struct.
4240 (find_partial_die): Return cu_partial_die_info.
4241 (partial_die_parent_scope, guess_partial_die_structure_name)
4242 (partial_die_info::fixup): Handle new return type of find_partial_die.
4243
677052f2
SDJ
42442019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4245
4246 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4247 "std::string", simplifying the algorithm.
4248
f3da9116
SDJ
42492019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4250
4251 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4252 (stap_static_probe_ops::get_probes): Likewise.
4253
f1bb75ab
SDJ
42542019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4255
4256 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4257 '-')" and "else if".
4258 (stap_parse_single_operand): Join checks for
4259 "gdbarch_stap_parse_special_token_p" and
4260 "gdbarch_stap_parse_special_token" in the same "if" statement.
4261 Invert check when verifying for operation on register
4262 displacement.
4263
3ca58cde
SDJ
42642019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4265
4266 * stap-probe.c (stap_get_opcode): Update comment.
4267 (stap_get_expected_argument_type): Likewise.
4268 (handle_stap_probe): Likewise.
4269
af2d9bee
SDJ
42702019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4271
4272 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4273 return type to 'bool'. Adjust comment. Use 'bool' when
4274 appropriate.
4275 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4276 * stap-probe.c (stap_parse_argument_1): Likewise.
4277 (stap_is_operator): Likewise.
4278 (stap_is_generic_prefix): Likewise.
4279 (stap_is_register_prefix): Likewise.
4280 (stap_is_register_indirection_prefix): Likewise.
4281 (stap_is_integer_prefix): Likewise.
4282 (stap_generic_check_suffix): Likewise.
4283 (stap_check_integer_suffix): Likewise.
4284 (stap_check_register_suffix): Likewise.
4285 (stap_check_register_indirection_suffix): Likewise.
4286 (stap_parse_register_operand): Likewise.
4287 (stap_parse_single_operand): Likewise.
4288 (stap_parse_argument_1): Likewise.
4289 (stap_probe::get_argument_count): Likewise.
4290 (stap_is_operator): Likewise.
4291
61c9c421
TT
42922019-05-16 Tom Tromey <tromey@adacore.com>
4293
4294 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4295 keyword to foreach.
4296
9ddc1af1
SM
42972019-05-15 Simon Marchi <simon.marchi@efficios.com>
4298
4299 * linux-thread-db.c (try_thread_db_load_1): Change return type
4300 to bool.
4301 (try_thread_db_load): Likewise.
4302 (try_thread_db_load_from_pdir_1): Likewise.
4303 (try_thread_db_load_from_pdir): Likewise.
4304 (try_thread_db_load_from_sdir): Likewise.
4305 (try_thread_db_load_from_dir): Likewise.
4306 (thread_db_load_search): Likewise.
4307 (has_libpthread): Likewise.
4308 (thread_db_load): Likewise.
4309
7bede828
SDJ
43102019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4311
4312 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4313 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4314 NULL, and complain/return if that's the case.
4315
c5358db4
JD
43162019-05-15 John Darrington <john@darrington.wattle.id.au>
4317
4318 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4319 (advance, posn, abstract_read_memory): New functions.
4320 [struct mem_read_abstraction]: New struct.
4321 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4322
c408a94f
TT
43232019-05-14 Tom Tromey <tromey@adacore.com>
4324
4325 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4326 value is not lval_memory.
4327
e7bd7fba
TT
43282019-05-14 Tom Tromey <tromey@adacore.com>
4329
4330 * solib.c (info_sharedlibrary_command): Style the file name.
4331
a6d0f249
AH
43322019-05-14 Alan Hayward <alan.hayward@arm.com>
4333
4334 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4335 (aarch64_vnv_type): Likewise.
4336 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4337 * common/tdesc.c: Likewise.
4338 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4339 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4340 * features/aarch64-fpu.xml: Add ieee half view.
4341 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4342 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4343 * gdbtypes.h (struct builtin_type): Likewise.
4344 (struct objfile_type): Likewise.
4345
66b8bb74
SM
43462019-05-12 Paul Naert <paul.naert@polymtl.ca>
4347
4348 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4349 typo.
4350 * location.h (string_to_event_location): Likewise.
4351
21c219fd
JB
43522019-05-11 Joel Brobecker <brobecker@adacore.com>
4353
4354 GDB 8.3 released.
4355
13674803
SM
43562019-05-10 Simon Marchi <simon.marchi@efficios.com>
4357
4358 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4359 New variable declaration.
4360 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4361 New variable.
4362 (print_one_breakpoint): Use ui_out::test_flags and new global
4363 variable to compute use_fixed_output.
4364 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4365 Remove.
4366 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4367 (mi_multi_location_breakpoint_output_fixed): Remove.
4368 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4369 new variable.
4370 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4371 fix_multi_location_breakpoint_output flag if version >= 3.
4372 * ui-out.h (enum ui_out_flag)
4373 <fix_multi_location_breakpoint_output>: New enumerator.
4374
a9eac7f9
SM
43752019-05-10 Simon Marchi <simon.marchi@efficios.com>
4376
4377 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4378
71bed2db
TT
43792019-05-10 Tom Tromey <tromey@adacore.com>
4380
4381 * ada-lang.c (catch_ada_completer): New function.
4382 (_initialize_ada_language): Use it.
4383
24c54127
TT
43842019-05-10 Tom Tromey <tromey@adacore.com>
4385
4386 * thread.c (print_thread_info): Make "requested_threads" const.
4387 * gdbthread.h (print_thread_info): Make "requested_threads"
4388 const.
4389 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4390 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4391
7a102139
TT
43922019-05-08 Tom Tromey <tom@tromey.com>
4393
4394 * gdbtypes.c (objfile_type_data): Change type.
4395 (objfile_type, _initialize_gdbtypes): Update.
4396
924d79e2
TT
43972019-05-08 Tom Tromey <tom@tromey.com>
4398
4399 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4400 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4401 (_initialize_dwarf2_frame): Update.
4402
4c58e337
TT
44032019-05-08 Tom Tromey <tom@tromey.com>
4404
4405 * objc-lang.c (objc_objfile_data): Change type.
4406 (find_methods): Update.
4407 (_initialize_objc_lang): Remove.
4408
d772d2ab
TT
44092019-05-08 Tom Tromey <tom@tromey.com>
4410
4411 * stabsread.c (rs6000_builtin_type_data): Change type.
4412 (rs6000_builtin_type, _initialize_stabsread): Update.
4413
d11d83f4
TT
44142019-05-08 Tom Tromey <tom@tromey.com>
4415
4416 * mips-tdep.c (mips_pdr_data): Remove.
4417 (_initialize_mips_tdep): Update.
4418
9a73f0ad
TT
44192019-05-08 Tom Tromey <tom@tromey.com>
4420
4421 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4422 (hppa_init_objfile_priv_data, read_unwind_info)
4423 (find_unwind_entry, _initialize_hppa_tdep): Update.
4424
8127a2fa
TT
44252019-05-08 Tom Tromey <tom@tromey.com>
4426
4427 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4428 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4429 on obstack.
4430 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4431
91d3055d
TT
44322019-05-08 Tom Tromey <tom@tromey.com>
4433
4434 * mdebugread.c (basic_type_data): Change type.
4435 (basic_type, _initialize_mdebugread): Update.
4436
31930bd3
TT
44372019-05-08 Tom Tromey <tom@tromey.com>
4438
4439 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4440
bdb3ed9e
TT
44412019-05-08 Tom Tromey <tom@tromey.com>
4442
4443 * nto-tdep.c (nto_inferior_data_reg): Change type.
4444 (nto_inferior_data): Update.
4445 (nto_inferior_data_cleanup, nto_new_inferior_data)
4446 (_initialize_nto_tdep): Remove.
4447 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4448
f37b313d
TT
44492019-05-08 Tom Tromey <tom@tromey.com>
4450
4451 * ada-lang.c (struct ada_inferior_data): Add initializers.
4452 (ada_inferior_data): Change type.
4453 (ada_inferior_data_cleanup): Remove.
4454 (get_ada_inferior_data, ada_inferior_exit)
4455 (struct ada_pspace_data): Add initializers, destructor.
4456 (ada_pspace_data_handle): Change type.
4457 (get_ada_pspace_data): Update.
4458 (ada_pspace_data_cleanup): Remove.
4459
24699405
TT
44602019-05-08 Tom Tromey <tom@tromey.com>
4461
4462 * coffread.c (struct coff_symfile_info): Add initializers.
4463 (coff_objfile_data_key): Move lower. Change type.
4464 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4465 Update.
4466 (coff_free_info): Remove.
4467
d4e05d2f
TT
44682019-05-08 Tom Tromey <tom@tromey.com>
4469
4470 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4471 (fbsd_pspace_data_handle): Move lower. Change type.
4472 (get_fbsd_pspace_data): Update.
4473 (fbsd_pspace_data_cleanup): Remove.
4474 (_initialize_fbsd_tdep): Update.
4475
14ef6690
TT
44762019-05-08 Tom Tromey <tom@tromey.com>
4477
4478 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4479 (get_ada_tasks_pspace_data): Update.
4480 (ada_tasks_pspace_data_cleanup): Remove.
4481 (_initialize_tasks): Update.
4482 (ada_tasks_inferior_data_handle): Change type.
4483 (get_ada_tasks_inferior_data): Update.
4484 (ada_tasks_inferior_data_cleanup): Remove.
4485 (struct ada_tasks_pspace_data): Add initializers.
4486
814cf43a
TT
44872019-05-08 Tom Tromey <tom@tromey.com>
4488
4489 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4490 * symfile-debug.c (debug_sym_get_probes): Change type.
4491 * stap-probe.c (handle_stap_probe):
4492 (stap_static_probe_ops::get_probes): Change type.
4493 * probe.h (class static_probe_ops) <get_probes>: Change type.
4494 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4495 (parse_probes_in_pspace): Update.
4496 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4497 Update.
4498 (any_static_probe_ops::get_probes): Change type.
4499 * elfread.c (elfread_data): New typedef.
4500 (probe_key): Change type.
4501 (elf_get_probes): Likewise. Update.
4502 (probe_key_free): Remove.
4503 (_initialize_elfread): Update.
4504 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4505 Change type.
4506 (dtrace_process_dof_probe, dtrace_process_dof)
4507 (dtrace_static_probe_ops::get_probe): Change type.
4508
02dc647e
TT
45092019-05-08 Tom Tromey <tom@tromey.com>
4510
4511 * xcoffread.c (struct xcoff_symfile_info): Rename from
4512 coff_symfile_info. Add initializers.
4513 (xcoff_objfile_data_key): Move lower. Change type.
4514 (XCOFF_DATA): Rewrite.
4515 (xcoff_free_info): Remove.
4516 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4517 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4518 (xcoff_initial_scan): Update.
4519
09232438
TT
45202019-05-08 Tom Tromey <tom@tromey.com>
4521
4522 * solib-svr4.c (struct svr4_info): Add initializers and
4523 destructor.
4524 <probes_table>: Now an htab_up.
4525 (solib_svr4_pspace_data): Change type.
4526 (free_probes_table): Simplify.
4527 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4528 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4529 (probes_table_remove_objfile_probes, register_solib_event_probe)
4530 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4531 (_initialize_svr4_solib): Update.
4532
7b4a314f
TT
45332019-05-08 Tom Tromey <tom@tromey.com>
4534
4535 * remote.c (remote_pspace_data): Change type.
4536 (remote_pspace_data_cleanup): Remove.
4537 (get_remote_exec_file, set_pspace_remote_exec_file)
4538 (_initialize_remote): Update.
4539
51d3063a
TT
45402019-05-08 Tom Tromey <tom@tromey.com>
4541
4542 * breakpoint.c (breakpoint_objfile_key): Change type.
4543 (get_breakpoint_objfile_data): Update.
4544 (free_breakpoint_objfile_data): Remove.
4545 (_initialize_breakpoint): Update.
4546
89fb8848
TT
45472019-05-08 Tom Tromey <tom@tromey.com>
4548
4549 * linux-tdep.c (struct linux_info): Add initializers.
4550 (linux_inferior_data): Move. Change type.
4551 (invalidate_linux_cache_inf): Update.
4552 (linux_inferior_data_cleanup): Remove.
4553 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4554
e9b89e2d
TT
45552019-05-08 Tom Tromey <tom@tromey.com>
4556
4557 * auxv.c (auxv_inferior_data): Move. Change type.
4558 (auxv_inferior_data_cleanup): Remove.
4559 (invalidate_auxv_cache_inf): Rewrite.
4560 (get_auxv_inferior_data, _initialize_auxv): Update.
4561
8c42777c
TT
45622019-05-08 Tom Tromey <tom@tromey.com>
4563
4564 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4565 (symfile_debug_objfile_data_key): Change type.
4566 (symfile_debug_installed, debug_qf_has_symbols)
4567 (debug_qf_find_last_source_symtab)
4568 (debug_qf_forget_cached_source_info)
4569 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4570 (debug_qf_print_stats, debug_qf_dump)
4571 (debug_qf_expand_symtabs_for_function)
4572 (debug_qf_expand_all_symtabs)
4573 (debug_qf_expand_symtabs_with_fullname)
4574 (debug_qf_map_matching_symbols)
4575 (debug_qf_expand_symtabs_matching)
4576 (debug_qf_find_pc_sect_compunit_symtab)
4577 (debug_qf_map_symbol_filenames)
4578 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4579 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4580 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4581 (debug_sym_read_linetable, debug_sym_relocate): Update.
4582 (symfile_debug_free_objfile): Remove.
4583 (install_symfile_debug_logging, _initialize_symfile_debug):
4584 Update.
4585
5bfd760d
TT
45862019-05-08 Tom Tromey <tom@tromey.com>
4587
4588 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4589 allocate_on_obstack.
4590 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4591 (get_dwarf2_per_objfile): Update.
4592 (set_dwarf2_per_objfile): Remove.
4593 (dwarf2_has_info, dwarf2_get_section_info): Update.
4594 (dwarf2_free_objfile): Remove.
4595 (_initialize_dwarf2_read): Update.
4596
e85e19b4
TT
45972019-05-08 Tom Tromey <tom@tromey.com>
4598
4599 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4600 initializers.
4601 <unsupported_script_warning_printed,
4602 script_not_found_warning_printed>: Now bool.
4603 (auto_load_pspace_data): Change type.
4604 (~auto_load_pspace_info): Rename from
4605 auto_load_pspace_data_cleanup.
4606 (get_auto_load_pspace_data, init_loaded_scripts_info)
4607 (clear_section_scripts, maybe_print_unsupported_script_warning)
4608 (maybe_print_script_not_found_warning, _initialize_auto_load):
4609 Update.
4610
f6aa7436
TT
46112019-05-08 Tom Tromey <tom@tromey.com>
4612
4613 * objfiles.c (objfile_pspace_info): Add destructor and
4614 initializers.
4615 (objfiles_pspace_data): Change type.
4616 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4617 (get_objfile_pspace_data): Update.
4618 (objfiles_bfd_data): Change type.
4619 (get_objfile_bfd_data): Update.
4620 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4621
6ae614f6
TT
46222019-05-08 Tom Tromey <tom@tromey.com>
4623
4624 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4625 Change type.
4626 (get_catch_syscall_inferior_data): Update.
4627 (catch_syscall_inferior_data_cleanup): Remove.
4628 (_initialize_break_catch_syscall): Update.
4629
6509b8eb
TT
46302019-05-08 Tom Tromey <tom@tromey.com>
4631
4632 * inflow.c (struct terminal_info): Add destructor and
4633 initializers.
4634 (inflow_inferior_data): Change type.
4635 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4636 (get_inflow_inferior_data, inflow_inferior_exit)
4637 (swap_terminal_info, _initialize_inflow): Update.
4638
35632941
TT
46392019-05-08 Tom Tromey <tom@tromey.com>
4640
4641 * target-dcache.c (target_dcache_cleanup): Remove.
4642 (target_dcache_aspace_key): Change type.
4643 (target_dcache_init_p, target_dcache_invalidate)
4644 (target_dcache_get, target_dcache_get_or_init)
4645 (_initialize_target_dcache): Update.
4646 * dcache.h (struct dcache_deleter): New.
4647
3017b94d
TT
46482019-05-08 Tom Tromey <tom@tromey.com>
4649
4650 * symtab.c (struct symbol_cache): Add destructor and
4651 initializers.
4652 (symbol_cache_key): Move. Change type.
4653 (make_symbol_cache, free_symbol_cache): Remove.
4654 (get_symbol_cache): Update.
4655 (symbol_cache_cleanup): Remove.
4656 (ALL_PSPACES, symbol_cache_flush)
4657 (maintenance_print_symbol_cache)
4658 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4659 Update.
4660
a32ad8c5
TT
46612019-05-08 Tom Tromey <tom@tromey.com>
4662
4663 * symtab.c (struct main_info): Add destructor and initializers.
4664 (main_progspace_key): Move. Change type.
4665 (get_main_info): Update.
4666 (main_info_cleanup): Remove.
4667 (_initialize_symtab): Update.
4668
5f6e90a0
TT
46692019-05-08 Tom Tromey <tom@tromey.com>
4670
4671 * registry.h (DECLARE_REGISTRY): Define the _key class.
4672
1bd0c6e4
AB
46732019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4674
4675 * NEWS: Merge two 'New commands' sections.
4676
2228ef77
XR
46772019-05-08 Joel Brobecker <brobecker@adacore.com>
4678
4679 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4680 parameter and use Ada language definition instead.
4681 (ada_val_print_ptr): Remove unused language parameter.
4682 (ada_val_print_num): Remove language parameter and use Ada language
4683 definition instead.
4684 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4685 parameter.
4686 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4687 parameter and use Ada language definition instead.
4688 (ada_val_print_1): Update all ada_val_print_xxx calls.
4689 Remove language parameter.
4690 (ada_val_print): Update ada_val_print_1 call.
4691
60fcc1c3
TT
46922019-05-08 Tom Tromey <tromey@adacore.com>
4693
4694 * remote.c (remote_hw_watchpoint_limit)
4695 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4696 Now static.
4697
ed2b7c17
TT
46982019-05-08 Tom Tromey <tromey@adacore.com>
4699
4700 * maint.c (_initialize_maint_cmds): Move initialization code to
4701 remote.c.
4702 (watchdog, show_watchdog): Move to remote.c.
4703 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4704 "watchdog" static.
4705 (_initialize_remote): Move initialization code from maint.c.
4706 * defs.h (watchdog): Don't declare.
4707
b0be6c91
TT
47082019-05-08 Tom Tromey <tromey@adacore.com>
4709
4710 * tui/tui-interp.c: Include main.h.
4711 * interps.c: Include main.h.
4712 * main.h (interpreter_p): Declare.
4713 * defs.h (interpreter_p): Don't declare.
4714
587ee17b
TT
47152019-05-08 Tom Tromey <tromey@adacore.com>
4716
4717 * dwarf2loc.c: Include dwarf2read.h.
4718 * defs.h (read_unsigned_leb128): Don't declare.
4719 * dwarf2read.h (read_unsigned_leb128): Declare.
4720
ca1df239
TT
47212019-05-08 Tom Tromey <tromey@adacore.com>
4722
4723 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4724 method.
4725
99f20f08
TT
47262019-05-08 Tom Tromey <tromey@adacore.com>
4727
4728 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4729 when no wrap column is set.
4730
80e55b13
TT
47312019-05-08 Tom Tromey <tromey@adacore.com>
4732
4733 * c-lang.c (c_get_string): Handle non-C-style arrays.
4734
9d3421af
TT
47352019-05-08 Tom Tromey <tromey@adacore.com>
4736
4737 * typeprint.c (print_offset_data::update): Print the bit offset,
4738 not the number of bits remaining.
4739
844333e2
TT
47402019-05-08 Tom Tromey <tromey@adacore.com>
4741
4742 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4743 padding at end of comment.
4744
988915ee
TT
47452019-05-08 Tom Tromey <tromey@adacore.com>
4746
4747 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4748 Compare main types.
4749
26bfd823
TT
47502019-05-06 Tom Tromey <tom@tromey.com>
4751
4752 * common/scoped_mmap.c: Include common-defs.h.
4753 * common/scoped_mmap.h: Don't include config.h.
4754
89055eaa
TT
47552019-05-04 Tom Tromey <tom@tromey.com>
4756
4757 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4758 (struct aarch64_call_info): Add initializers.
4759 <si>: Now a std::vector.
4760 (pass_on_stack, aarch64_push_dummy_call): Update.
4761
5da01df5
TT
47622019-05-04 Simon Marchi <simon.marchi@efficios.com>
4763 Tom Tromey <tom@tromey.com>
4764
4765 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4766 (ppc_threads): Now a std::vector. Now static.
4767 (hwdebug_find_thread_points_by_tid)
4768 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4769 Update.
4770
fbdf05a1
TT
47712019-05-04 Tom Tromey <tom@tromey.com>
4772
4773 * arc-tdep.c (arc_tdesc_init): Return bool.
4774
06d16ec9
TT
47752019-05-04 Tom Tromey <tom@tromey.com>
4776
4777 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4778 Use gdb_assert_not_reached.
4779
9c056022
TT
47802019-05-04 Tom Tromey <tom@tromey.com>
4781
4782 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4783 "false".
4784
fa9c2a59
TT
47852019-05-04 Tom Tromey <tom@tromey.com>
4786
4787 * arc-tdep.c (arc_tdesc_init): Use bool.
4788
e2eb806a
TT
47892019-05-04 Tom Tromey <tom@tromey.com>
4790
4791 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4792
6fe87677
TT
47932019-05-04 Tom Tromey <tom@tromey.com>
4794
4795 * cli/cli-cmds.c (valid_command_p): Return bool.
4796
7f008c9e
TT
47972019-05-04 Tom Tromey <tom@tromey.com>
4798
4799 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4800 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4801
b6484282
RT
48022019-05-04 Raul Tambre <raul@tambre.ee>
4803
4804 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4805 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4806 operator for comparison.
4807
af97b416
TT
48082019-05-04 Tom Tromey <tom@tromey.com>
4809
4810 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4811 (lookup_partial_symbol, print_partial_symbols)
4812 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4813 (psymbol_compare): Update.
4814 (add_psymbol_to_bcache): Clear the entire psymbol.
4815 (maintenance_check_psymtabs): Update.
4816 * psympriv.h (struct partial_symbol): Don't derive from
4817 general_symbol_info.
4818 <obj_section, unrelocated_address, address,
4819 set_unrelocated_address>: Update.
4820 <ginfo>: New member.
4821 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4822 (debug_names::write_psymbols): Update.
4823
9d6d4be8
TV
48242019-05-04 Tom de Vries <tdevries@suse.de>
4825
4826 * contrib/cc-with-tweaks.sh: Support -n arg.
4827
66452beb
PW
48282019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4829
4830 * corelow.c (core_target::detach): Ensure frame cache and
4831 register caches are cleared.
4832 inferior.c (exit_inferior_1): Likewise.
4833
bde09ab7
TT
48342019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4835 Tom Tromey <tom@tromey.com>
4836
4837 * dictionary.c (collate_pending_symbols_by_language): Remove
4838 "struct" from foreach.
4839 * symtab.c (lookup_global_symbol_from_objfile)
4840 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4841 foreach.
4842 * ser-tcp.c (net_open): Remove "struct" from foreach.
4843 * objfiles.c (objfile_relocate, objfile_rebase)
4844 (objfile_has_symbols): Remove "struct" from foreach.
4845 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4846 from foreach.
4847 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4848 foreach.
4849 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4850 "struct" from foreach.
4851 * ada-lang.c (create_excep_cond_exprs)
4852 (ada_exception_catchpoint_cond_string): Remove "struct" from
4853 foreach.
4854
222a8d25
TT
48552019-05-03 Tom Tromey <tromey@adacore.com>
4856
4857 * ada-exp.y (convert_char_literal): Check suffix of each
4858 enumerator.
4859
fcd60b84
DP
48602019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4861
4862 PR ada/21406:
4863 * ada-exp.y (yywrap): Don't define.
4864 * ada-lex.l (%option): Add noyywrap
4865 (yywrap): Remove.
4866
5f2459c2
EZ
48672019-05-03 Eli Zaretskii <eliz@gnu.org>
4868
353ea2d1
EZ
4869 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4870 _WIN32_WINNT to the XP level, unless already defined to a higher
4871 level.
4872
4873 * unittests/parse-connection-spec-selftests.c:
4874 * ser-tcp.c:
4875 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4876 override.
4877
5f2459c2
EZ
4878 * symfile.c (find_separate_debug_file): Remove colon from the
4879 drive spec of DOS/Windows file names of the target, so that the
4880 file name produced from DEBUGDIR and the target's directory will
4881 be valid on DOS/Windows systems.
4882
80062eb9
AB
48832019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4884
4885 * rust-lang.c (val_print_struct): Handle printing structures
4886 containing strings.
4887
b8c05e85
TT
48882019-05-02 Tom Tromey <tromey@adacore.com>
4889
4890 * valarith.c (_initialize_valarith): Remove.
4891
4504bbde
TT
48922019-05-01 Tom Tromey <tromey@adacore.com>
4893
4894 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4895 bitfields.
4896
d48e62f4
TT
48972019-05-01 Tom Tromey <tromey@adacore.com>
4898
4899 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4900 for big-endian copies.
4901
15f18d14
AT
49022019-04-30 Ali Tamur <tamur@google.com>
4903 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4904 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4905 (read_3_bytes): New function.
4906
ab4ee614
JB
49072019-04-30 Joel Brobecker <brobecker@adacore.com>
4908
4909 * windows-nat.c (main_thread_id): Delete.
4910 (handle_output_debug_string): Replace main_thread_id by
4911 current_event.dwThreadId.
4912 (fake_create_process): Likewise.
4913 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4914 Do not set main_thread_id.
4915 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4916 current_event.dwThreadId.
4917 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
4918
8ed5b76e
JB
49192019-04-30 Joel Brobecker <brobecker@adacore.com>
4920
4921 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
4922 Use current_event.dwThreadId instead of main_thread_id.
4923
2ff0a947
TT
49242019-04-30 Tom Tromey <tromey@adacore.com>
4925
4926 * ada-lang.c (ada_lookup_simple_minsyms): New function.
4927 (create_excep_cond_exprs): Iterate over program spaces.
4928 (ada_exception_catchpoint_cond_string): Examine all minimal
4929 symbols for exception types.
4930
a776957c
TT
49312019-04-30 Tom Tromey <tromey@adacore.com>
4932
4933 PR c++/24470:
4934 * dwarf2read.c (process_structure_scope): Handle case where type
4935 has template parameters but no symbol was created.
4936
bc68014d
AB
49372019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4938 Chris January <chris.january@arm.com>
4939
4940 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
4941 qualifier.
4942 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
4943
f1fdc960
AB
49442019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4945
4946 * f-typeprint.c (f_print_type): Update rules for printing
4947 whitespace.
4948 (f_type_print_varspec_suffix): Likewise.
4949
bf7a4de1
AB
49502019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4951 Chris January <chris.january@arm.com>
4952
4953 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
4954 function arguments.
4955
bbe75b9d
AB
49562019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4957
4958 * f-lang.c (build_fortran_types): Change name of void type to
4959 lower case.
4960 * f-typeprint.c (f_type_print_base): Print the name of the void
4961 type, rather than a fixed string.
4962 * f-valprint.c (f_decorations): Use lower case void string.
4963
1db455a7
AB
49642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4965 Chris January <chris.january@arm.com>
4966
4967 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
4968 types for Fortran.
4969
b6d03bb2
AB
49702019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4971 Chris January <chris.january@arm.com>
4972 David Lecomber <david.lecomber@arm.com>
4973
4974 * f-exp.y (BINOP_INTRINSIC): New token.
4975 (exp): New parser rule handling BINOP_INTRINSIC.
4976 (f77_keywords): Add new builtin procedures.
4977 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
4978 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4979 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
4980 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4981 (print_unop_subexp_f): New function.
4982 (print_binop_subexp_f): New function.
4983 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4984 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
4985 (dump_subexp_body_f): Likewise.
4986 (operator_check_f): Likewise.
4987 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
4988 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
4989
83228e93
AB
49902019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4991
4992 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
4993 UNOP_KIND.
4994 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
4995 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
4996 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
4997 (operator_length_f): New fuction.
4998 (print_subexp_f): New function.
4999 (op_name_f): New function.
5000 (dump_subexp_body_f): New function.
5001 (operator_check_f): New function.
5002 (exp_descriptor_f): Replace standard expression handling functions
5003 with new functions.
5004 * gdb/fortran-operator.def: New file.
5005 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5006 * gdb/std-operator.def: Remove UNOP_KIND.
5007
6fdcd7cc
AB
50082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5009
5010 * std-operator.def: Remove unbalanced, stray double quote
5011 character.
5012
2e62ab40
AB
50132019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5014 Chris January <chris.january@arm.com>
5015 Daniel Everett <daniel.everett@arm.com>
5016 Nick Forrington <nick.forrington@arm.com>
5017 Richard Bunt <richard.bunt@arm.com>
5018
5019 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5020 of depth when printing anonymous structs or unions.
5021 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5022 Don't print either the top-level value, or the children if the
5023 max-depth is exceeded.
5024 (ppscm_print_children): When printing the key of a map, allow one
5025 extra level of depth.
5026 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5027 print either the top-level value, or the children if the max-depth
5028 is exceeded.
5029 (print_children): When printing the key of a map, allow one extra
5030 level of depth.
5031 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5032 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5033 (user_print_options): Initialise max_depth field.
5034 (val_print_scalar_or_string_type_p): New function.
5035 (val_print): Check to see if the max depth has been reached.
5036 (val_print_check_max_depth): Define new function.
5037 (show_print_max_depth): New function.
5038 (_initialize_valprint): Add 'print max-depth' option.
5039 * valprint.h (struct value_print_options) <max_depth>: New field.
5040 (val_print_check_max_depth): Declare new function.
5041 * NEWS: Document new feature.
5042
4be290b2
AB
50432019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5044
5045 * ada-lang.c (ada_language_defn): Initialise new field.
5046 * c-lang.c (c_is_string_type_p): New function.
5047 (c_language_defn): Initialise new field.
5048 (cplus_language_defn): Initialise new field.
5049 (asm_language_defn): Initialise new field.
5050 (minimal_language_defn): Initialise new field.
5051 * c-lang.h (c_is_string_type_p): Declare new function.
5052 * d-lang.c (d_language_defn): Initialise new field.
5053 * f-lang.c (f_is_string_type_p): New function.
5054 (f_language_defn): Initialise new field.
5055 * go-lang.c (go_is_string_type_p): New function.
5056 (go_language_defn): Initialise new field.
5057 * language.c (default_is_string_type_p): New function.
5058 (unknown_language_defn): Initialise new field.
5059 (auto_language_defn): Initialise new field.
5060 * language.h (struct language_defn) <la_is_string_type_p>: New
5061 member variable.
5062 (default_is_string_type_p): Declare new function.
5063 * m2-lang.c (m2_language_defn): Initialise new field.
5064 * objc-lang.c (objc_language_defn): Initialise new field.
5065 * opencl-lang.c (opencl_language_defn): Initialise new field.
5066 * p-lang.c (pascal_is_string_type_p): New function.
5067 (pascal_language_defn): Initialise new field.
5068 * rust-lang.c (rust_is_string_type_p): New function.
5069 (rust_language_defn): Initialise new field.
5070
721b08c6
AB
50712019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5072
5073 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5074 New field.
5075 * ada-lang.c (ada_language_defn): Initialise new field.
5076 * c-lang.c (c_language_defn): Likewise.
5077 (cplus_language_defn): Likewise.
5078 (asm_language_defn): Likewise.
5079 (minimal_language_defn): Likewise.
5080 * d-lang.c (d_language_defn): Likewise.
5081 * f-lang.c (f_language_defn): Likewise.
5082 * go-lang.c (go_language_defn): Likewise.
5083 * language.c (unknown_language_defn): Likewise.
5084 (auto_language_defn): Likewise.
5085 * m2-lang.c (m2_language_defn): Likewise.
5086 * objc-lang.c (objc_language_defn): Likewise.
5087 * opencl-lang.c (opencl_language_defn): Likewise.
5088 * p-lang.c (pascal_language_defn): Likewise.
5089 * rust-lang.c (rust_language_defn): Likewise.
5090
fc913e53
AB
50912019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5092
5093 * ada-lang.c (ada_is_character_type): Change return type to bool.
5094 (ada_is_string_type): Likewise.
5095 * ada-lang.h (ada_is_character_type): Update declaration
5096 (ada_is_string_type): Likewise.
5097
fa731fa0
PW
50982019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5099
5100 Support style in 'frame|thread apply'
5101
5102 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5103 * record.c (record_start, record_stop): Update callers of
5104 execute_command_to_string with false.
5105 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5106 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5107 methods.
5108 (class string_file): New constructor with term_out parameter.
5109 Override methods term_out and can_emit_style_escape. New member
5110 term_out.
5111 (class stdio_file): Override can_emit_style_escape.
5112 (class tee_file): Override term_out and can_emit_style_escape.
5113 * utils.h (can_emit_style_escape): Remove.
5114 * utils.c (can_emit_style_escape): Likewise.
5115 Update all callers of can_emit_style_escape (SOMESTREAM) to
5116 SOMESTREAM->can_emit_style_escape.
5117 * source-cache.c (source_cache::get_source_lines): Likewise.
5118 * stack.c (frame_apply_command_count): Call execute_command_to_string
5119 passing the term_out characteristic of the current gdb_stdout.
5120 * thread.c (thr_try_catch_cmd): Likewise.
5121 * top.c (execute_command_to_string): pass term_out parameter
5122 to construct the string_file for the command output.
5123 * ui-file.c (term_cli_styling): New function (most code moved
5124 from utils.c can_emit_style_escape).
5125 (string_file::string_file, string_file::can_emit_style_escape,
5126 stdio_file::can_emit_style_escape, tee_file::term_out,
5127 tee_file::can_emit_style_escape): New functions.
5128
136afab8
PW
51292019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5130
5131 * NEWS: Mention the new set|show may-call-functions.
5132 * infcall.c (may_call_functions_p): New variable.
5133 (show_may_call_functions_p): New function.
5134 (call_function_by_hand_dummy): Throws an error if not
5135 may-call-functions.
5136 (_initialize_infcall): Call add_setshow_boolean_cmd for
5137 may-call-functions.
5138
725cbb63
KS
51392019-04-25 Keith Seitz <keiths@redhat.com>
5140
5141 PR c++/24367
5142 * cp-support.c (inspect_type): Don't attempt substitutions
5143 of symbol with the same name.
5144
3d1cbb78
TT
51452019-04-25 Tom Tromey <tromey@adacore.com>
5146
5147 PR gdb/24475:
5148 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5149 static.
5150
94aeb44b
TT
51512019-04-25 Tom Tromey <tromey@adacore.com>
5152
5153 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5154 rvalue reference.
5155 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5156 (gdb_xml_parser::parse): Use std::move.
5157 * python/python-internal.h (gdbpy_convert_exception): Take a const
5158 reference.
5159 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5160 std::move.
5161 * python/py-utils.c (gdbpy_convert_exception): Take a const
5162 reference.
5163 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5164 Use std::move.
5165 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5166 Use std::move.
5167 * mi/mi-main.c (mi_print_exception): Take a const reference.
5168 * main.c (handle_command_errors): Take a const reference.
5169 * linespec.c (parse_linespec): Use std::move.
5170 * infcall.c (run_inferior_call): Use std::move.
5171 (call_function_by_hand_dummy): Use std::move.
5172 * exec.c (try_open_exec_file): Use std::move.
5173 * exceptions.h (exception_print, exception_fprintf)
5174 (exception_print_same): Update.
5175 * exceptions.c (print_exception, exception_print)
5176 (exception_fprintf, exception_print_same): Change parameters to
5177 const reference.
5178 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5179 * common/new-op.c: Use std::move.
5180 * common/common-exceptions.h (struct gdb_exception): Add move
5181 constructor.
5182 (struct gdb_exception_error, struct gdb_exception_quit, struct
5183 gdb_quit_bad_alloc): Change constructor to move constructor.
5184 (throw_exception): Change parameter to rvalue reference.
5185 * common/common-exceptions.c (throw_exception): Take rvalue
5186 reference.
5187 * cli/cli-interp.c (safe_execute_command): Use std::move.
5188 * breakpoint.c (insert_bp_location, location_to_sals): Use
5189 std::move.
5190
680d7fd5
TT
51912019-04-25 Tom Tromey <tromey@adacore.com>
5192
5193 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5194 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5195 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5196 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5197 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5198 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5199 guile/scm-value.c: Use unpack.
5200 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5201 gdbscm_gdb_exception.
5202 (gdbscm_throw_gdb_exception): Likewise.
5203 (struct gdbscm_gdb_exception): New.
5204 (unpack): New function.
5205 (gdbscm_wrap): Use unpack.
5206
c6fdd8b2
TT
52072019-04-25 Tom Tromey <tromey@adacore.com>
5208
5209 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5210 (gdb_rl_callback_handler): Use std::move.
5211 * common/common-exceptions.h (struct gdb_exception): Add move
5212 assignment operator.
5213 (throw_exception_sjlj): Change "exception" to const reference.
5214 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5215 (throw_exception_sjlj): Change "exception" to const reference.
5216
cc06b668
TT
52172019-04-25 Tom Tromey <tromey@adacore.com>
5218
5219 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5220 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5221 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5222 Update.
5223 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5224 Update.
5225 * mi/mi-interp.c (mi_interp::exec): Update.
5226 * linespec.c (parse_linespec): Update.
5227 * infcall.c (run_inferior_call): Update.
5228 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5229 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5230 (gdbscm_lookup_global_symbol): Update.
5231 * guile/scm-param.c (gdbscm_parameter_value): Update.
5232 * guile/scm-frame.c (gdbscm_frame_read_register)
5233 (gdbscm_frame_read_var): Update.
5234 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5235 * exec.c (try_open_exec_file): Update.
5236 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5237 (gdb_rl_callback_handler): Update.
5238 * common/common-exceptions.h (exception_none): Don't declare.
5239 * common/common-exceptions.c (exception_none): Don't define.
5240 (struct catcher) <exception>: Update.
5241 * cli/cli-interp.c (safe_execute_command): Update.
5242 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5243
cf532bd1
AT
52442019-04-25 Ali Tamur <tamur@google.com>
5245
5246 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5247 (read_attribute_value): Likewise.
5248 (dwarf2_read_addr_index): Update comment.
5249 (read_str_index): Add DW_FORM_strx.
5250 (dwarf2_string_attr): Likewise.
5251 (dwarf2_const_value_attr): Likewise.
5252 (dump_die_shallow): Likewise.
5253 (dwarf2_fetch_constant_bytes): Likewise.
5254 (skip_form_bytes): Likewise.
5255 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5256
82433e3e
SDJ
52572019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5258
5259 PR corefiles/11608
5260 PR corefiles/18187
5261 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5262 OFFSET. Verify if current mapping contains an ELF header.
5263 (linux_find_memory_regions_full): Adjust call to
5264 dump_mapping_p.
5265
723adb65
SL
52662019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5267 Kang Li <kanglictf@gmail.com>
5268
5269 PR gdb/21600
5270
5271 * dwarf2-frame.c (read_initial_length): Be consistent about using
5272 unsigned representation of length.
5273 (decode_frame_entry_1): Likewise. Check for wraparound of
5274 end pointer as well as buffer overflow.
5275
596179f7
SDJ
52762019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5277
5278 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5279 "vq".
5280
a59240a4
TT
52812019-04-24 Tom Tromey <tromey@adacore.com>
5282
5283 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5284
f872fdbb
AB
52852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 * s12z-tdep.c (s12z_unwind_pc): Delete.
5288 (s12z_unwind_sp): Delete.
5289 (s12z_gdbarch_init): Don't register deleted functions with
5290 gdbarch.
5291
b614e6f3
AB
52922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5293
5294 * rl78-tdep.c (rl78_unwind_sp): Delete.
5295 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5296
14faed38
AB
52972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5298
5299 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5300 (xstormy16_unwind_pc): Delete.
5301 (xstormy16_dummy_id): Delete.
5302 (xstormy16_gdbarch_init): Don't register deleted functions with
5303 gdbarch.
5304
541aad8a
AB
53052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5306
5307 * vax-tdep.c (vax_unwind_pc): Delete.
5308 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5309
29222070
AB
53102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 * v850-tdep.c (v850_unwind_sp): Delete.
5313 (v850_unwind_pc): Delete.
5314 (v850_dummy_id): Delete.
5315 (v850_gdbarch_init): Don't register deleted functions with
5316 gdbarch.
5317
0f534d76
AB
53182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5319
5320 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5321 (tilegx_unwind_pc): Delete.
5322 (tilegx_unwind_dummy_id): Delete.
5323 (tilegx_gdbarch_init): Don't register deleted functions with
5324 gdbarch.
5325
1ba7b7f9
AB
53262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5329 (tic6x_dummy_id): Delete.
5330 (tic6x_gdbarch_init): Don't register deleted functions with
5331 gdbarch.
5332
d31f262c
AB
53332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5334
5335 * sparc-tdep.c (sparc_unwind_pc): Delete.
5336 (sparc32_gdbarch_init): Don't register deleted function with
5337 gdbarch.
5338
6d14d64d
AB
53392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5340
5341 * sh-tdep.c (sh_unwind_sp): Delete.
5342 (sh_unwind_pc): Delete.
5343 (sh_dummy_id): Delete.
5344 (sh_gdbarch_init): Don't register deleted functions with
5345 gdbarch.
5346
a40dde9d
AB
53472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5348
5349 * score-tdep.c (score_unwind_sp): Delete.
5350 (score_unwind_pc): Delete.
5351 (score_dummy_id): Delete.
5352 (score_gdbarch_init): Don't register deleted functions with
5353 gdbarch.
5354
47c47d69
AB
53552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5356
5357 * rx-tdep.c (rx_unwind_pc): Delete.
5358 (rx_unwind_sp): Delete.
5359 (rx_dummy_id): Delete.
5360 (rx_gdbarch_init): Don't register deleted functions with
5361 gdbarch. Update comment.
5362
833a4480
AB
53632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5364
5365 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5366 (rs6000_dummy_id): Delete.
5367 (rs6000_gdbarch_init): Don't register deleted functions with
5368 gdbarch.
5369
3f2cef49
AB
53702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5371
5372 * or1k-tdep.c (or1k_dummy_id): Delete.
5373 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5374
96acf884
AB
53752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * nios2-tdep.c (nios2_dummy_id): Delete.
5378 (nios2_unwind_sp): Delete.
5379 (nios2_gdbarch_init): Don't register deleted functions with
5380 gdbarch.
5381
ca0ab0aa
AB
53822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * nds32-tdep.c (nds32_dummy_id): Delete.
5385 (nds32_unwind_pc): Delete.
5386 (nds32_unwind_sp): Delete.
5387 (nds32_gdbarch_init): Don't register deleted functions with
5388 gdbarch.
5389
c8259044
AB
53902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5391
5392 * msp430-tdep.c (msp430_unwind_pc): Delete.
5393 (msp430_unwind_sp): Delete.
5394 (msp430_dummy_id): Delete.
5395 (msp430_gdbarch_init): Don't register deleted functions with
5396 gdbarch.
5397
27f113c8
AB
53982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5399
5400 * moxie-tdep.c (moxie_unwind_sp): Delete.
5401 (moxie_unwind_pc): Delete.
5402 (moxie_dummy_id): Delete.
5403 (moxie_gdbarch_init): Don't register deleted functions with
5404 gdbarch.
5405
aee6c3cd
AB
54062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5407
5408 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5409 (mn10300_unwind_pc): Delete.
5410 (mn10300_unwind_sp): Delete.
5411 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5412 mn10300_unwind_sp.
5413 (mn10300_frame_unwind_init): Don't register deleted functions with
5414 gdbarch.
5415
8e2b5aea
AB
54162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5417
5418 * mep-tdep.c (mep_unwind_pc): Delete.
5419 (mep_unwind_sp): Delete.
5420 (mep_dummy_id): Delete.
5421 (mep_gdbarch_init): Don't register deleted functions with
5422 gdbarch.
5423
43cf3ede
AB
54242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5425
5426 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5427 (m68hc11_unwind_sp): Delete.
5428 (m68hc11_gdbarch_init): Don't register deleted functions with
5429 gdbarch.
5430
5e79b7bb
AB
54312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5432
5433 * m32r-tdep.c (m32r_unwind_sp): Delete.
5434 (m32r_unwind_pc): Delete.
5435 (m32r_dummy_id): Delete.
5436 (m32r_gdbarch_init): Don't register deleted functions with
5437 gdbarch.
5438
89b268d8
AB
54392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5440
5441 * m32c-tdep.c (m32c_unwind_pc): Delete.
5442 (m32c_unwind_sp): Delete.
5443 (m32c_dummy_id): Delete.
5444 (m32c_gdbarch_init): Don't register deleted functions with
5445 gdbarch.
5446
946c28d2
AB
54472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5448
5449 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5450 (lm32_unwind_pc): Delete.
5451 (lm32_dummy_id): Delete.
5452 (lm32_gdbarch_init): Don't register deleted functions with
5453 gdbarch.
5454
bf12844a
AB
54552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5456
5457 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5458 (iq2000_unwind_pc): Delete.
5459 (iq2000_dummy_id): Delete.
5460 (iq2000_gdbarch_init): Don't register deleted functions with
5461 gdbarch.
5462
ecbc06d2
AB
54632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5464
5465 * nds32-tdep.c (nds32_type_align): Delete.
5466 (nds32_push_dummy_call): Use type_align instead.
5467
030197b4
AB
54682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * arm-tdep.c (arm_type_align): Only handle vector override case.
5471 (arm_push_dummy_call): Use type_align.
5472 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5473
b907456c
AB
54742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5475
5476 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5477 case.
5478 (pass_on_stack): Use type_align.
5479 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5480 function.
5481
9e97ba43
TT
54822019-04-23 Tom Tromey <tromey@adacore.com>
5483
5484 * dwarf2read.c (line_header::file_name_at): Remove unused
5485 overload.
5486
6892f601
TV
54872019-04-23 Tom de Vries <tdevries@suse.de>
5488
5489 PR gdb/24438
5490 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5491 invocation.
5492
336d760d
AT
5493
54942019-03-27 Ali Tamur <tamur@google.com>
5495
5496 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5497 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5498 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5499 (dwarf_expr_context::get_addr_index): Likewise
5500 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5501 (symbol_needs_eval_context::get_addr_index): Likewise
5502 (disassemble_dwarf_expression): Add DW_OP_addrx
5503 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5504 (read_cutu_die_from_dwo): Update comment
5505 (skip_one_die): Add DW_FORM_addrx
5506 (read_attribute_value): Likewise
5507 (var_decode_location): Add DW_OP_addrx
5508 (dwarf2_const_value_attr): Add DW_FORM_addrx
5509 (dump_die_shallow): Likewise
5510 (dwarf2_fetch_constant_bytes): Likewise
5511 (decode_locdesc): Add DW_OP_addrx
5512 (skip_form_bytes): Add DW_FORM_addrx
5513
ad9d13f8
AT
55142019-04-22 Ali Tamur <tamur@google.com>
5515
5516 * MAINTAINERS (Write After Approval): Add self.
5517
d70cc3ba
SM
55182019-04-22 Simon Marchi <simon.marchi@efficios.com>
5519
5520 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5521 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5522 (open_symbol_file_object): Likewise.
5523 (svr4_default_sos): Add info parameter.
5524 (svr4_read_so_list): Likewise.
5525 (svr4_current_sos_direct): Adjust functions calls to pass down
5526 info.
5527 (svr4_current_sos_1): Add info parameter.
5528 (svr4_current_sos): Call get_svr4_info, pass info down to
5529 svr4_current_sos_1.
5530 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5531 get_svr4_info.
5532 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5533 get_svr4_info.
5534 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5535 to get_svr4_info.
5536 (probes_table_remove_objfile_probes): Likewise.
5537 (register_solib_event_probe): Add info parameter.
5538 (solist_update_incremental): Pass info parameter down to
5539 svr4_read_so_list.
5540 (disable_probes_interface): Add info parameter.
5541 (svr4_handle_solib_event): Pass current_program_space to
5542 get_svr4_info. Adjust disable_probes_interface cleanup.
5543 (svr4_create_probe_breakpoints): Add info parameter, pass it
5544 down to register_solib_event_probe.
5545 (svr4_create_solib_event_breakpoints): Add info parameter,
5546 pass it down to svr4_create_probe_breakpoints.
5547 (enable_break): Pass info down to
5548 svr4_create_solib_event_breakpoints.
5549 (svr4_solib_create_inferior_hook): Pass current_program_space to
5550 get_svr4_info.
5551 (svr4_clear_solib): Likewise.
5552
7905fc35
PA
55532019-04-22 Pedro Alves <palves@redhat.com>
5554
5555 * solib-svr4.c (svr4_free_objfile_observer): New.
5556 (probe_and_action::objfile): New field.
5557 (probes_table_htab_remove_objfile_probes)
5558 (probes_table_remove_objfile_probes): New functions.
5559 (register_solib_event_probe): Add 'objfile' parameter. Store it
5560 in the new probe_and_action. Don't store the probe in 'lookup'.
5561 (svr4_create_probe_breakpoints): Pass objfile to
5562 register_solib_event_probe.
5563 (_initialize_svr4_solib): Register a free_objfile observer.
5564
fb881986
TT
55652019-04-19 Tom Tromey <tom@tromey.com>
5566
5567 * common/queue.h: Remove.
5568
8732db6c
TT
55692019-04-19 Tom Tromey <tom@tromey.com>
5570
5571 * event-loop.c: Don't include "common/queue.h".
5572
97dfbadd
TT
55732019-04-19 Tom Tromey <tom@tromey.com>
5574
5575 * remote.c (remote_target): Use delete.
5576 * remote-notif.h: Include <list>, not "common/queue.h".
5577 (notif_client_p): Remove typedef.
5578 (remote_notif_state): Add constructor, destructor, initializer.
5579 <notif_queue>: Now a std::list.
5580 (remote_notif_state_xfree): Don't declare.
5581 * remote-notif.c (remote_notif_process, handle_notification)
5582 (remote_notif_state_allocate): Update.
5583 (~remote_notif_state): Rename from remote_notif_state_xfree.
5584
cf250e36
TT
55852019-04-19 Tom Tromey <tom@tromey.com>
5586
5587 * symfile.c (reread_symbols): Update.
5588 * objfiles.c (objfile_register_static_link)
5589 (objfile_lookup_static_link): Update
5590 (~objfile) Don't delete static_links.
5591 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5592
61f4b350
TT
55932019-04-19 Tom Tromey <tom@tromey.com>
5594
5595 * type-stack.h (struct type_stack) <insert>: Constify string.
5596 * type-stack.c (type_stack::insert): Constify string.
5597 * gdbtypes.h (lookup_template_type): Update.
5598 (address_space_name_to_int): Update.
5599 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5600 const.
5601 (lookup_template_type): Make name const.
5602 * c-exp.y: Update rules.
5603 (lex_one_token, classify_name, classify_inner_name)
5604 (c_print_token): Update.
5605 * p-exp.y: Update rules.
5606 (yylex): Update.
5607 * f-exp.y: Update rules.
5608 (yylex): Update.
5609 * d-exp.y: Update rules.
5610 (lex_one_token, classify_name, classify_inner_name): Update.
5611 * parse.c (write_dollar_variable, copy_name): Return std::string.
5612 * parser-defs.h (copy_name): Change return type.
5613 * m2-exp.y: Update rules.
5614 (yylex): Update.
5615 * go-exp.y (lex_one_token): Update.
5616 Update rules.
5617 (classify_unsafe_function, classify_packaged_name)
5618 (classify_name, yylex): Update.
5619
189b8c2e
ST
56202019-04-19 Sergei Trofimovich <siarheit@google.com>
5621
5622 * configure.ac: add --enable-source-highlight switch.
5623 * configure: Regenerate.
5624 * top.c (print_gdb_version): plumb --enable-source-highlight
5625 status to "show configuration".
5626
8ecb59f8
TT
56272019-04-19 Tom Tromey <tromey@adacore.com>
5628
5629 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5630 Check ADA_TYPE_P.
5631 (empty_record, ada_template_to_fixed_record_type_1)
5632 (template_to_static_fixed_type)
5633 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5634 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5635 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5636 macros.
5637
62160ec9
TT
56382019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5639
5640 PR symtab/24423:
5641 * source.c (print_source_lines_base): Advance "iter" when a
5642 control character is seen.
5643
f2ae8bc8
PW
56442019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5645
5646 * inferior.h (struct infcall_suspend_state_deleter):
5647 Catch exception in destructor to avoid crash.
5648
d563b953
PW
56492019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5650
5651 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5652 close to the add_com "shell".
5653
dc34c897
TT
56542019-04-18 Tom Tromey <tromey@adacore.com>
5655
5656 * process-stratum-target.h (class process_stratum_target)
5657 <stratum>: Add "final".
5658
a12e5744
TT
56592019-04-17 Tom Tromey <tromey@adacore.com>
5660
5661 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5662 against nullptr before use.
5663
a7e559cc
AH
56642019-04-17 Alan Hayward <alan.hayward@arm.com>
5665
5666 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5667
c01660c6
AB
56682019-04-17 Jim Wilson <jimw@sifive.com>
5669 Andrew Burgess <andrew.burgess@embecosm.com>
5670
5671 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5672 code read might fail, assume 4-byte breakpoint in that case.
5673
4aa866af
LS
56742019-04-15 Leszek Swirski <leszeks@google.com>
5675
5676 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5677 rather than a hand-rolled POD check when checking for forced MEMORY
5678 classification.
5679
48574d91
AH
56802019-04-15 Alan Hayward <alan.hayward@arm.com>
5681
5682 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5683 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5684 function.
5685 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5686 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5687 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5688 declaration.
5689
4da037ef
AH
56902019-04-15 Alan Hayward <alan.hayward@arm.com>
5691
5692 * aarch64-linux-nat.c
5693 (aarch64_linux_nat_target::thread_architecture): Add override.
5694 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5695 each VQ.
5696
ccb8d7e8
AH
56972019-04-15 Alan Hayward <alan.hayward@arm.com>
5698
5699 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5700
35add35e
AB
57012019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5702
5703 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5704 target types of size 96-bits, add some additional comments, and
5705 check that the builtin type we found was the correct size.
5706
51196bbc
EZ
57072019-04-12 Eli Zaretskii <eliz@gnu.org>
5708
5709 * utils.c (prompt_for_continue): Don't restore the styling at the
5710 end, as applied_style has the wrong value. This fixes styling in
5711 long lists of file names that are interrupted by the "Continue?"
5712 prompt.
5713
62253a61
AB
57142019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5715
5716 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5717 * c-lang.c (c_language_defn): Likewise.
5718 (cplus_language_defn): Likewise.
5719 (asm_language_defn): Likewise.
5720 (minimal_language_defn): Likewise.
5721 * d-lang.c (d_language_defn): Likewise.
5722 * f-lang.c (f_language_defn): Likewise.
5723 * go-lang.c (go_language_defn): Likewise.
5724 * language.c (unknown_language_defn): Likewise.
5725 (auto_language_defn): Likewise.
5726 * language.h (struct language_defn): Remove la_magic field.
5727 (LANG_MAGIC): Delete.
5728 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5729 * objc-lang.c (objc_language_defn): Likewise.
5730 * opencl-lang.c (opencl_language_defn): Likewise.
5731 * p-lang.c (pascal_language_defn): Likewise.
5732 * rust-lang.c (rust_language_defn): Likewise.
5733
a9158a86
AB
57342019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5735
5736 * riscv-tdep.c (riscv_type_align): New function.
5737 (riscv_type_alignment): Delete.
5738 (riscv_arg_location): Use 'type_align'.
5739 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5740
41077b66
AB
57412019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5742
5743 * gdbtypes.c (type_align): A struct with no non-static fields also
5744 has alignment of 1.
5745
9f0272f8
AB
57462019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5747
5748 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5749 component to 0.
5750 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5751 member.
5752 (riscv_struct_info::analyse): New implementation using new
5753 analyse_inner member function.
5754 (riscv_struct_info::field_offset): New member function.
5755 (riscv_struct_info::m_offsets): New member variable.
5756 (riscv_struct_info::analyse_inner): New private member function,
5757 takes the old implementation of riscv_struct_info::analyse but
5758 extended to track field offsets.
5759 (riscv_call_arg_struct): Update the struct folding special cases
5760 to handle cases where empty C++ structs, which are non-zero
5761 length, are found.
5762 (riscv_arg_location): Initialise the length of each location, a
5763 non-zero length now indicates the location is in use.
5764 (riscv_push_dummy_call): Allow for the first location having a
5765 non-zero offset when setting up arguments.
5766 (riscv_return_value): Likewise, but for return values.
5767
02cf60c7
TT
57682019-04-11 Tom Tromey <tromey@adacore.com>
5769
5770 * utils.c (internal_vproblem): Make "msg" const.
5771
68811f8f
AH
57722019-04-11 Alan Hayward <alan.hayward@arm.com>
5773
5774 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5775 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5776 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5777 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5778
3f52fdbc
KB
57792019-04-10 Kevin Buettner <kevinb@redhat.com>
5780
5781 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5782 function.
5783 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5784 of amd64_collect_native_gregset.
5785 (amd64_linux_nat_target::store_registers): Likewise.
5786
e9ad22ee
TT
57872019-04-10 Tom Tromey <tom@tromey.com>
5788
5789 * symtab.c (lookup_global_symbol_from_objfile)
5790 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5791 * objfiles.h (class separate_debug_iterator): New.
5792 (class separate_debug_range): New.
5793 (struct objfile) <separate_debug_objfiles>: New method.
5794 (objfile_separate_debug_iterate): Don't declare.
5795 * objfiles.c (separate_debug_iterator::operator++): Rename from
5796 objfile_separate_debug_iterate.
5797 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5798 iterator.
5799 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5800 iterator.
5801
ee371134
TT
58022019-04-10 Tom Tromey <tom@tromey.com>
5803
5804 * symfile.c (reread_symbols): Remove old comment.
5805 * objfiles.c (free_all_objfiles): Fix a typo.
5806
bf227d61
TT
58072019-04-10 Tom Tromey <tom@tromey.com>
5808
5809 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5810 * minsyms.c (lookup_minimal_symbol): Use foreach.
5811 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5812 (lookup_minimal_symbol_solib_trampoline): Likewise.
5813 * symfile.c (reread_symbols): Use foreach.
5814
8dc433a0
TT
58152019-04-09 Ivan Begert <ivanbegert@gmail.com>
5816 Tom Tromey <tromey@adacore.com>
5817
5818 PR rust/24414:
5819 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5820 (rust_lex_int_test): Change "value" to be LONGEST.
5821 (rust_lex_tests): Add test for long integer literal.
5822
9ab8741a
TT
58232019-04-09 Tom Tromey <tromey@adacore.com>
5824
5825 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5826 to bool.
5827 (extended_remote_target::attach): Update.
5828 (remote_target::remote_notice_new_inferior): Update.
5829 (remote_target::add_current_inferior_and_thread): Update.
5830 * inferior.c (exit_inferior_1): Use "false".
5831 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5832
e242fd12
SM
58332019-04-09 Simon Marchi <simon.marchi@efficios.com>
5834
9ca1957f 5835 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
5836 the "start" command.
5837
2b0c8b01
KB
58382019-04-08 Kevin Buettner <kevinb@redhat.com>
5839
5840 * python/py-inferior.c (infpy_thread_from_thread_handle):
5841 Adjust comments to reflect renaming of thread_from_thread_handle
5842 to thread_from_handle. Adjust keywords. Fix type error message.
5843 (inferior_object_methods): Add thread_from_handle. Retain
5844 thread_from_thread_handle, but mark it as deprecated.
5845
50a82723
KB
58462019-04-08 Kevin Buettner <kevinb@redhat.com>
5847
5848 * gdbthread.h (find_thread_by_handle): Revise declaration.
5849 * thread.c (find_thread_by_handle): Likewise. Adjust
5850 implementation too.
5851 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5852 support for buffer objects as handles.
5853
cf63b016
KB
58542019-04-08 Kevin Buettner <kevinb@redhat.com>
5855
5856 * python/py-infthread.c (thpy_thread_handle): New function.
5857 (thread_object_methods): Register thpy_thread_handle.
5858
3d6c6204
KB
58592019-04-08 Kevin Buettner <kevinb@redhat.com>
5860
5861 * gdbthread.h (thread_to_thread_handle): Declare.
5862 * thread.c (gdbtypes.h): Include.
5863 (thread_to_thread_handle): New function.
5864
5865 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5866 (target_thread_info_to_thread_handle): Declare.
5867 * target.c (target_thread_info_to_thread_handle): New function.
5868 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5869 * target-delegates.c: Regenerate.
5870
5871 * linux-thread-db.c (class thread_db_target): Add method
5872 thread_info_to_thread_handle.
5873 (thread_db_target::thread_info_to_thread_handle): Define.
5874 * remote.c (class remote_target): Add new method
5875 thread_info_to_thread_handle.
5876 (remote_target::thread_info_to_thread_handle): Define.
5877
56be6ea8
PA
58782019-04-08 Pedro Alves <palves@redhat.com>
5879
5880 * common/common-exceptions.c (throw_exception): Don't create
5881 named object to throw; throw directly.
5882 (throw_it): Likewise. Don't initialize gdb_exception::message
5883 here, with new; pass FMT and AP to the ctor instead.
5884 * common/common-exceptions.h: Include <string>.
5885 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5886 const char *, va_list)): New ctor. Use std::make_shared.
5887 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5888 errors)): Delete.
5889 (gdb_exception_error::gdb_exception_error(enum errors, const char
5890 *, va_list)): New.
5891 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5892 Add assertion.
5893 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5894 errors)): Delete.
5895 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5896 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5897 Add assertion.
5898
eedc3f4f
TT
58992019-04-08 Tom Tromey <tom@tromey.com>
5900
5901 * valops.c (value_rtti_indirect_type): Replace throw_exception
5902 with throw.
5903 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5904 with throw.
5905 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5906 throw.
5907 * target.c (target_translate_tls_address): Replace throw_exception
5908 with throw.
5909 * stack.c (frame_apply_command_count): Replace throw_exception
5910 with throw.
5911 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5912 throw.
5913 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5914 with throw.
5915 * rs6000-tdep.c (rs6000_frame_cache)
5916 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5917 * remote.c: Replace throw_exception with throw.
5918 * record-full.c (record_full_message, record_full_wait_1)
5919 (record_full_restore): Replace throw_exception with throw.
5920 * record-btrace.c:
5921 (get_thread_current_frame_id, record_btrace_start_replaying)
5922 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
5923 (cmd_record_btrace_start): Replace throw_exception with throw.
5924 * parse.c (parse_exp_in_context_1): Replace throw_exception with
5925 throw.
5926 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
5927 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
5928 * linespec.c:
5929 (find_linespec_symbols): Replace throw_exception with throw.
5930 * infrun.c (displaced_step_prepare, resume): Replace
5931 throw_exception with throw.
5932 * infcmd.c (post_create_inferior): Replace throw_exception with
5933 throw.
5934 * inf-loop.c (inferior_event_handler): Replace throw_exception
5935 with throw.
5936 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5937 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
5938 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
5939 (get_prev_frame_always, get_frame_pc_if_available)
5940 (get_frame_address_in_block_if_available, get_frame_language):
5941 Replace throw_exception with throw.
5942 * frame-unwind.c (frame_unwind_try_unwinder): Replace
5943 throw_exception with throw.
5944 * eval.c (fetch_subexp_value, evaluate_var_value)
5945 (evaluate_funcall, evaluate_subexp_standard): Replace
5946 throw_exception with throw.
5947 * dwarf2loc.c (call_site_find_chain)
5948 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
5949 Replace throw_exception with throw.
5950 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
5951 with throw.
5952 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
5953 throw.
5954 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
5955 * completer.c (complete_line_internal): Replace throw_exception
5956 with throw.
5957 * compile/compile-object-run.c (compile_object_run): Replace
5958 throw_exception with throw.
5959 * cli/cli-script.c (process_next_line): Replace throw_exception
5960 with throw.
5961 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
5962 (btrace_enable, btrace_maint_update_pt_packets): Replace
5963 throw_exception with throw.
5964 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
5965 throw_exception with throw.
5966 * break-catch-throw.c (re_set_exception_catchpoint): Replace
5967 throw_exception with throw.
5968 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5969 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
5970 * aarch64-tdep.c (aarch64_make_prologue_cache)
5971 (aarch64_make_stub_cache): Replace throw_exception with throw.
5972
26003a20
TT
59732019-04-08 Tom Tromey <tom@tromey.com>
5974
5975 * common/common-exceptions.c (throw_exception): Rename from
5976 throw_exception_cxx. Remove old copy. Make argument const.
5977 (throw_it): Create and throw exception objects directly.
5978 * common/common-exceptions.h (throw_exception): Make argument
5979 const.
5980 (struct gdb_exception_error): Add constructor.
5981 (struct gdb_exception_quit): Add constructor.
5982
d272eb37
TT
59832019-04-08 Tom Tromey <tom@tromey.com>
5984
5985 * common/common-exceptions.h (exception_rethrow): Don't declare.
5986 (TRY_SJLJ): Update comment.
5987 (TRY, CATCH, END_CATCH): Remove.
5988 * common/common-exceptions.c (exception_rethrow): Remove.
5989
230d2906
TT
59902019-04-08 Tom Tromey <tom@tromey.com>
5991
5992 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
5993 Remove.
5994 (gdb_exception_error): Rename from
5995 gdb_exception_RETURN_MASK_ERROR.
5996 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
5997 (gdb_quit_bad_alloc): Update.
5998 * aarch64-tdep.c: Update.
5999 * ada-lang.c: Update.
6000 * ada-typeprint.c: Update.
6001 * ada-valprint.c: Update.
6002 * amd64-tdep.c: Update.
6003 * arch-utils.c: Update.
6004 * break-catch-throw.c: Update.
6005 * breakpoint.c: Update.
6006 * btrace.c: Update.
6007 * c-varobj.c: Update.
6008 * cli/cli-cmds.c: Update.
6009 * cli/cli-interp.c: Update.
6010 * cli/cli-script.c: Update.
6011 * common/common-exceptions.c: Update.
6012 * common/new-op.c: Update.
6013 * common/selftest.c: Update.
6014 * compile/compile-c-symbols.c: Update.
6015 * compile/compile-cplus-symbols.c: Update.
6016 * compile/compile-object-load.c: Update.
6017 * compile/compile-object-run.c: Update.
6018 * completer.c: Update.
6019 * corelow.c: Update.
6020 * cp-abi.c: Update.
6021 * cp-support.c: Update.
6022 * cp-valprint.c: Update.
6023 * darwin-nat.c: Update.
6024 * disasm-selftests.c: Update.
6025 * dtrace-probe.c: Update.
6026 * dwarf-index-cache.c: Update.
6027 * dwarf-index-write.c: Update.
6028 * dwarf2-frame-tailcall.c: Update.
6029 * dwarf2-frame.c: Update.
6030 * dwarf2loc.c: Update.
6031 * dwarf2read.c: Update.
6032 * eval.c: Update.
6033 * event-loop.c: Update.
6034 * event-top.c: Update.
6035 * exec.c: Update.
6036 * f-valprint.c: Update.
6037 * fbsd-tdep.c: Update.
6038 * frame-unwind.c: Update.
6039 * frame.c: Update.
6040 * gdbtypes.c: Update.
6041 * gnu-v3-abi.c: Update.
6042 * guile/guile-internal.h: Update.
6043 * guile/scm-block.c: Update.
6044 * guile/scm-breakpoint.c: Update.
6045 * guile/scm-cmd.c: Update.
6046 * guile/scm-disasm.c: Update.
6047 * guile/scm-frame.c: Update.
6048 * guile/scm-lazy-string.c: Update.
6049 * guile/scm-math.c: Update.
6050 * guile/scm-param.c: Update.
6051 * guile/scm-ports.c: Update.
6052 * guile/scm-pretty-print.c: Update.
6053 * guile/scm-symbol.c: Update.
6054 * guile/scm-symtab.c: Update.
6055 * guile/scm-type.c: Update.
6056 * guile/scm-value.c: Update.
6057 * i386-linux-tdep.c: Update.
6058 * i386-tdep.c: Update.
6059 * inf-loop.c: Update.
6060 * infcall.c: Update.
6061 * infcmd.c: Update.
6062 * infrun.c: Update.
6063 * jit.c: Update.
6064 * language.c: Update.
6065 * linespec.c: Update.
6066 * linux-fork.c: Update.
6067 * linux-nat.c: Update.
6068 * linux-tdep.c: Update.
6069 * linux-thread-db.c: Update.
6070 * main.c: Update.
6071 * mi/mi-cmd-break.c: Update.
6072 * mi/mi-cmd-stack.c: Update.
6073 * mi/mi-interp.c: Update.
6074 * mi/mi-main.c: Update.
6075 * objc-lang.c: Update.
6076 * p-valprint.c: Update.
6077 * parse.c: Update.
6078 * ppc-linux-tdep.c: Update.
6079 * printcmd.c: Update.
6080 * python/py-arch.c: Update.
6081 * python/py-breakpoint.c: Update.
6082 * python/py-cmd.c: Update.
6083 * python/py-finishbreakpoint.c: Update.
6084 * python/py-frame.c: Update.
6085 * python/py-framefilter.c: Update.
6086 * python/py-gdb-readline.c: Update.
6087 * python/py-inferior.c: Update.
6088 * python/py-infthread.c: Update.
6089 * python/py-lazy-string.c: Update.
6090 * python/py-linetable.c: Update.
6091 * python/py-objfile.c: Update.
6092 * python/py-param.c: Update.
6093 * python/py-prettyprint.c: Update.
6094 * python/py-progspace.c: Update.
6095 * python/py-record-btrace.c: Update.
6096 * python/py-record.c: Update.
6097 * python/py-symbol.c: Update.
6098 * python/py-type.c: Update.
6099 * python/py-unwind.c: Update.
6100 * python/py-utils.c: Update.
6101 * python/py-value.c: Update.
6102 * python/python.c: Update.
6103 * record-btrace.c: Update.
6104 * record-full.c: Update.
6105 * remote-fileio.c: Update.
6106 * remote.c: Update.
6107 * riscv-tdep.c: Update.
6108 * rs6000-aix-tdep.c: Update.
6109 * rs6000-tdep.c: Update.
6110 * rust-exp.y: Update.
6111 * rust-lang.c: Update.
6112 * s390-tdep.c: Update.
6113 * selftest-arch.c: Update.
6114 * solib-dsbt.c: Update.
6115 * solib-frv.c: Update.
6116 * solib-spu.c: Update.
6117 * solib-svr4.c: Update.
6118 * solib.c: Update.
6119 * sparc64-linux-tdep.c: Update.
6120 * stack.c: Update.
6121 * symfile-mem.c: Update.
6122 * symmisc.c: Update.
6123 * target.c: Update.
6124 * thread.c: Update.
6125 * top.c: Update.
6126 * tracefile-tfile.c: Update.
6127 * tui/tui.c: Update.
6128 * typeprint.c: Update.
6129 * unittests/cli-utils-selftests.c: Update.
6130 * unittests/parse-connection-spec-selftests.c: Update.
6131 * valops.c: Update.
6132 * valprint.c: Update.
6133 * value.c: Update.
6134 * varobj.c: Update.
6135 * windows-nat.c: Update.
6136 * x86-linux-nat.c: Update.
6137 * xml-support.c: Update.
6138
a70b8144
TT
61392019-04-08 Tom Tromey <tom@tromey.com>
6140
6141 * xml-support.c: Use C++ exception handling.
6142 * x86-linux-nat.c: Use C++ exception handling.
6143 * windows-nat.c: Use C++ exception handling.
6144 * varobj.c: Use C++ exception handling.
6145 * value.c: Use C++ exception handling.
6146 * valprint.c: Use C++ exception handling.
6147 * valops.c: Use C++ exception handling.
6148 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6149 handling.
6150 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6151 * typeprint.c: Use C++ exception handling.
6152 * tui/tui.c: Use C++ exception handling.
6153 * tracefile-tfile.c: Use C++ exception handling.
6154 * top.c: Use C++ exception handling.
6155 * thread.c: Use C++ exception handling.
6156 * target.c: Use C++ exception handling.
6157 * symmisc.c: Use C++ exception handling.
6158 * symfile-mem.c: Use C++ exception handling.
6159 * stack.c: Use C++ exception handling.
6160 * sparc64-linux-tdep.c: Use C++ exception handling.
6161 * solib.c: Use C++ exception handling.
6162 * solib-svr4.c: Use C++ exception handling.
6163 * solib-spu.c: Use C++ exception handling.
6164 * solib-frv.c: Use C++ exception handling.
6165 * solib-dsbt.c: Use C++ exception handling.
6166 * selftest-arch.c: Use C++ exception handling.
6167 * s390-tdep.c: Use C++ exception handling.
6168 * rust-lang.c: Use C++ exception handling.
6169 * rust-exp.y: Use C++ exception handling.
6170 * rs6000-tdep.c: Use C++ exception handling.
6171 * rs6000-aix-tdep.c: Use C++ exception handling.
6172 * riscv-tdep.c: Use C++ exception handling.
6173 * remote.c: Use C++ exception handling.
6174 * remote-fileio.c: Use C++ exception handling.
6175 * record-full.c: Use C++ exception handling.
6176 * record-btrace.c: Use C++ exception handling.
6177 * python/python.c: Use C++ exception handling.
6178 * python/py-value.c: Use C++ exception handling.
6179 * python/py-utils.c: Use C++ exception handling.
6180 * python/py-unwind.c: Use C++ exception handling.
6181 * python/py-type.c: Use C++ exception handling.
6182 * python/py-symbol.c: Use C++ exception handling.
6183 * python/py-record.c: Use C++ exception handling.
6184 * python/py-record-btrace.c: Use C++ exception handling.
6185 * python/py-progspace.c: Use C++ exception handling.
6186 * python/py-prettyprint.c: Use C++ exception handling.
6187 * python/py-param.c: Use C++ exception handling.
6188 * python/py-objfile.c: Use C++ exception handling.
6189 * python/py-linetable.c: Use C++ exception handling.
6190 * python/py-lazy-string.c: Use C++ exception handling.
6191 * python/py-infthread.c: Use C++ exception handling.
6192 * python/py-inferior.c: Use C++ exception handling.
6193 * python/py-gdb-readline.c: Use C++ exception handling.
6194 * python/py-framefilter.c: Use C++ exception handling.
6195 * python/py-frame.c: Use C++ exception handling.
6196 * python/py-finishbreakpoint.c: Use C++ exception handling.
6197 * python/py-cmd.c: Use C++ exception handling.
6198 * python/py-breakpoint.c: Use C++ exception handling.
6199 * python/py-arch.c: Use C++ exception handling.
6200 * printcmd.c: Use C++ exception handling.
6201 * ppc-linux-tdep.c: Use C++ exception handling.
6202 * parse.c: Use C++ exception handling.
6203 * p-valprint.c: Use C++ exception handling.
6204 * objc-lang.c: Use C++ exception handling.
6205 * mi/mi-main.c: Use C++ exception handling.
6206 * mi/mi-interp.c: Use C++ exception handling.
6207 * mi/mi-cmd-stack.c: Use C++ exception handling.
6208 * mi/mi-cmd-break.c: Use C++ exception handling.
6209 * main.c: Use C++ exception handling.
6210 * linux-thread-db.c: Use C++ exception handling.
6211 * linux-tdep.c: Use C++ exception handling.
6212 * linux-nat.c: Use C++ exception handling.
6213 * linux-fork.c: Use C++ exception handling.
6214 * linespec.c: Use C++ exception handling.
6215 * language.c: Use C++ exception handling.
6216 * jit.c: Use C++ exception handling.
6217 * infrun.c: Use C++ exception handling.
6218 * infcmd.c: Use C++ exception handling.
6219 * infcall.c: Use C++ exception handling.
6220 * inf-loop.c: Use C++ exception handling.
6221 * i386-tdep.c: Use C++ exception handling.
6222 * i386-linux-tdep.c: Use C++ exception handling.
6223 * guile/scm-value.c: Use C++ exception handling.
6224 * guile/scm-type.c: Use C++ exception handling.
6225 * guile/scm-symtab.c: Use C++ exception handling.
6226 * guile/scm-symbol.c: Use C++ exception handling.
6227 * guile/scm-pretty-print.c: Use C++ exception handling.
6228 * guile/scm-ports.c: Use C++ exception handling.
6229 * guile/scm-param.c: Use C++ exception handling.
6230 * guile/scm-math.c: Use C++ exception handling.
6231 * guile/scm-lazy-string.c: Use C++ exception handling.
6232 * guile/scm-frame.c: Use C++ exception handling.
6233 * guile/scm-disasm.c: Use C++ exception handling.
6234 * guile/scm-cmd.c: Use C++ exception handling.
6235 * guile/scm-breakpoint.c: Use C++ exception handling.
6236 * guile/scm-block.c: Use C++ exception handling.
6237 * guile/guile-internal.h: Use C++ exception handling.
6238 * gnu-v3-abi.c: Use C++ exception handling.
6239 * gdbtypes.c: Use C++ exception handling.
6240 * frame.c: Use C++ exception handling.
6241 * frame-unwind.c: Use C++ exception handling.
6242 * fbsd-tdep.c: Use C++ exception handling.
6243 * f-valprint.c: Use C++ exception handling.
6244 * exec.c: Use C++ exception handling.
6245 * event-top.c: Use C++ exception handling.
6246 * event-loop.c: Use C++ exception handling.
6247 * eval.c: Use C++ exception handling.
6248 * dwarf2read.c: Use C++ exception handling.
6249 * dwarf2loc.c: Use C++ exception handling.
6250 * dwarf2-frame.c: Use C++ exception handling.
6251 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6252 * dwarf-index-write.c: Use C++ exception handling.
6253 * dwarf-index-cache.c: Use C++ exception handling.
6254 * dtrace-probe.c: Use C++ exception handling.
6255 * disasm-selftests.c: Use C++ exception handling.
6256 * darwin-nat.c: Use C++ exception handling.
6257 * cp-valprint.c: Use C++ exception handling.
6258 * cp-support.c: Use C++ exception handling.
6259 * cp-abi.c: Use C++ exception handling.
6260 * corelow.c: Use C++ exception handling.
6261 * completer.c: Use C++ exception handling.
6262 * compile/compile-object-run.c: Use C++ exception handling.
6263 * compile/compile-object-load.c: Use C++ exception handling.
6264 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6265 * compile/compile-c-symbols.c: Use C++ exception handling.
6266 * common/selftest.c: Use C++ exception handling.
6267 * common/new-op.c: Use C++ exception handling.
6268 * cli/cli-script.c: Use C++ exception handling.
6269 * cli/cli-interp.c: Use C++ exception handling.
6270 * cli/cli-cmds.c: Use C++ exception handling.
6271 * c-varobj.c: Use C++ exception handling.
6272 * btrace.c: Use C++ exception handling.
6273 * breakpoint.c: Use C++ exception handling.
6274 * break-catch-throw.c: Use C++ exception handling.
6275 * arch-utils.c: Use C++ exception handling.
6276 * amd64-tdep.c: Use C++ exception handling.
6277 * ada-valprint.c: Use C++ exception handling.
6278 * ada-typeprint.c: Use C++ exception handling.
6279 * ada-lang.c: Use C++ exception handling.
6280 * aarch64-tdep.c: Use C++ exception handling.
6281
3d6e9d23
TT
62822019-04-08 Tom Tromey <tom@tromey.com>
6283
6284 * xml-support.c (gdb_xml_parser::parse): Update.
6285 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6286 * value.c (show_convenience): Update.
6287 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6288 (test_parse_flags_qcs): Update.
6289 * thread.c (thr_try_catch_cmd): Update.
6290 * target.c (target_translate_tls_address): Update.
6291 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6292 (info_frame_command_core, frame_apply_command_count): Update.
6293 * rust-exp.y (rust_lex_exception_test): Update.
6294 * riscv-tdep.c (riscv_print_one_register_info): Update.
6295 * remote.c (remote_target::enable_btrace): Update.
6296 * record-btrace.c (record_btrace_enable_warn): Update.
6297 * python/py-utils.c (gdbpy_convert_exception): Update.
6298 * printcmd.c (do_one_display, print_variable_and_value): Update.
6299 * mi/mi-main.c (mi_print_exception): Update.
6300 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6301 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6302 * linux-nat.c (linux_nat_target::attach): Update.
6303 * linux-fork.c (class scoped_switch_fork_info): Update.
6304 * infrun.c (displaced_step_prepare): Update.
6305 * infcall.c (call_function_by_hand_dummy): Update.
6306 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6307 * gnu-v3-abi.c (print_one_vtable): Update.
6308 * frame.c (get_prev_frame_always): Update.
6309 * f-valprint.c (info_common_command_for_block): Update.
6310 * exec.c (try_open_exec_file): Update.
6311 * exceptions.c (print_exception, exception_print)
6312 (exception_fprintf, exception_print_same): Update.
6313 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6314 * dwarf-index-cache.c (index_cache::store)
6315 (index_cache::lookup_gdb_index): Update.
6316 * darwin-nat.c (maybe_cache_shell): Update.
6317 * cp-valprint.c (cp_print_value_fields): Update.
6318 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6319 (gcc_cplus_symbol_address): Update.
6320 * compile/compile-c-symbols.c (gcc_convert_symbol)
6321 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6322 * common/selftest.c: Update.
6323 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6324 a std::string.
6325 (exception_try_scope_entry, exception_try_scope_exit): Don't
6326 declare.
6327 (struct exception_try_scope): Remove.
6328 (TRY): Don't use exception_try_scope.
6329 (struct gdb_exception): Add constructor, operator=.
6330 <what>: New method.
6331 (struct gdb_exception_RETURN_MASK_ALL)
6332 (struct gdb_exception_RETURN_MASK_ERROR)
6333 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6334 (struct gdb_quit_bad_alloc): Update.
6335 * common/common-exceptions.c (exception_none): Change
6336 initializer.
6337 (struct catcher) <state, exception>: Initialize inline.
6338 <prev>: Remove member.
6339 (current_catcher): Remove.
6340 (catchers): New global.
6341 (exceptions_state_mc_init): Simplify.
6342 (catcher_pop): Remove.
6343 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6344 (try_scope_depth, exception_try_scope_entry)
6345 (exception_try_scope_exit): Remove.
6346 (throw_exception_sjlj): Update.
6347 (exception_messages, exception_messages_size): Remove.
6348 (throw_it): Simplify.
6349 (gdb_exception_sliced_copy): Remove.
6350 (throw_exception_cxx): Update.
6351 * cli/cli-script.c (script_from_file): Update.
6352 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6353 Update.
6354 * ada-valprint.c (ada_val_print): Update.
6355 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6356 (create_excep_cond_exprs): Update.
6357
c5c10118
TT
63582019-04-08 Tom Tromey <tom@tromey.com>
6359
6360 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6361 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6362 (TRY, CATCH, END_CATCH): Remove some definitions.
6363 * common/common-exceptions.c: Don't use GDB_XCPT.
6364 (catcher_list_size): Remove.
6365 (throw_exception, throw_it): Simplify.
6366
4de283e4
TT
63672019-04-05 Tom Tromey <tom@tromey.com>
6368
6369 Revert the header-sorting patch.
6370 * ft32-tdep.c: Revert.
6371 * frv-tdep.c: Revert.
6372 * frv-linux-tdep.c: Revert.
6373 * frame.c: Revert.
6374 * frame-unwind.c: Revert.
6375 * frame-base.c: Revert.
6376 * fork-child.c: Revert.
6377 * findvar.c: Revert.
6378 * findcmd.c: Revert.
6379 * filesystem.c: Revert.
6380 * filename-seen-cache.h: Revert.
6381 * filename-seen-cache.c: Revert.
6382 * fbsd-tdep.c: Revert.
6383 * fbsd-nat.h: Revert.
6384 * fbsd-nat.c: Revert.
6385 * f-valprint.c: Revert.
6386 * f-typeprint.c: Revert.
6387 * f-lang.c: Revert.
6388 * extension.h: Revert.
6389 * extension.c: Revert.
6390 * extension-priv.h: Revert.
6391 * expprint.c: Revert.
6392 * exec.h: Revert.
6393 * exec.c: Revert.
6394 * exceptions.c: Revert.
6395 * event-top.c: Revert.
6396 * event-loop.c: Revert.
6397 * eval.c: Revert.
6398 * elfread.c: Revert.
6399 * dwarf2read.h: Revert.
6400 * dwarf2read.c: Revert.
6401 * dwarf2loc.c: Revert.
6402 * dwarf2expr.h: Revert.
6403 * dwarf2expr.c: Revert.
6404 * dwarf2-frame.c: Revert.
6405 * dwarf2-frame-tailcall.c: Revert.
6406 * dwarf-index-write.h: Revert.
6407 * dwarf-index-write.c: Revert.
6408 * dwarf-index-common.c: Revert.
6409 * dwarf-index-cache.h: Revert.
6410 * dwarf-index-cache.c: Revert.
6411 * dummy-frame.c: Revert.
6412 * dtrace-probe.c: Revert.
6413 * disasm.h: Revert.
6414 * disasm.c: Revert.
6415 * disasm-selftests.c: Revert.
6416 * dictionary.c: Revert.
6417 * dicos-tdep.c: Revert.
6418 * demangle.c: Revert.
6419 * dcache.h: Revert.
6420 * dcache.c: Revert.
6421 * darwin-nat.h: Revert.
6422 * darwin-nat.c: Revert.
6423 * darwin-nat-info.c: Revert.
6424 * d-valprint.c: Revert.
6425 * d-namespace.c: Revert.
6426 * d-lang.c: Revert.
6427 * ctf.c: Revert.
6428 * csky-tdep.c: Revert.
6429 * csky-linux-tdep.c: Revert.
6430 * cris-tdep.c: Revert.
6431 * cris-linux-tdep.c: Revert.
6432 * cp-valprint.c: Revert.
6433 * cp-support.c: Revert.
6434 * cp-namespace.c: Revert.
6435 * cp-abi.c: Revert.
6436 * corelow.c: Revert.
6437 * corefile.c: Revert.
6438 * continuations.c: Revert.
6439 * completer.h: Revert.
6440 * completer.c: Revert.
6441 * complaints.c: Revert.
6442 * coffread.c: Revert.
6443 * coff-pe-read.c: Revert.
6444 * cli-out.h: Revert.
6445 * cli-out.c: Revert.
6446 * charset.c: Revert.
6447 * c-varobj.c: Revert.
6448 * c-valprint.c: Revert.
6449 * c-typeprint.c: Revert.
6450 * c-lang.c: Revert.
6451 * buildsym.c: Revert.
6452 * buildsym-legacy.c: Revert.
6453 * build-id.h: Revert.
6454 * build-id.c: Revert.
6455 * btrace.c: Revert.
6456 * bsd-uthread.c: Revert.
6457 * breakpoint.h: Revert.
6458 * breakpoint.c: Revert.
6459 * break-catch-throw.c: Revert.
6460 * break-catch-syscall.c: Revert.
6461 * break-catch-sig.c: Revert.
6462 * blockframe.c: Revert.
6463 * block.c: Revert.
6464 * bfin-tdep.c: Revert.
6465 * bfin-linux-tdep.c: Revert.
6466 * bfd-target.c: Revert.
6467 * bcache.c: Revert.
6468 * ax-general.c: Revert.
6469 * ax-gdb.h: Revert.
6470 * ax-gdb.c: Revert.
6471 * avr-tdep.c: Revert.
6472 * auxv.c: Revert.
6473 * auto-load.c: Revert.
6474 * arm-wince-tdep.c: Revert.
6475 * arm-tdep.c: Revert.
6476 * arm-symbian-tdep.c: Revert.
6477 * arm-pikeos-tdep.c: Revert.
6478 * arm-obsd-tdep.c: Revert.
6479 * arm-nbsd-tdep.c: Revert.
6480 * arm-nbsd-nat.c: Revert.
6481 * arm-linux-tdep.c: Revert.
6482 * arm-linux-nat.c: Revert.
6483 * arm-fbsd-tdep.c: Revert.
6484 * arm-fbsd-nat.c: Revert.
6485 * arm-bsd-tdep.c: Revert.
6486 * arch-utils.c: Revert.
6487 * arc-tdep.c: Revert.
6488 * arc-newlib-tdep.c: Revert.
6489 * annotate.h: Revert.
6490 * annotate.c: Revert.
6491 * amd64-windows-tdep.c: Revert.
6492 * amd64-windows-nat.c: Revert.
6493 * amd64-tdep.c: Revert.
6494 * amd64-sol2-tdep.c: Revert.
6495 * amd64-obsd-tdep.c: Revert.
6496 * amd64-obsd-nat.c: Revert.
6497 * amd64-nbsd-tdep.c: Revert.
6498 * amd64-nbsd-nat.c: Revert.
6499 * amd64-nat.c: Revert.
6500 * amd64-linux-tdep.c: Revert.
6501 * amd64-linux-nat.c: Revert.
6502 * amd64-fbsd-tdep.c: Revert.
6503 * amd64-fbsd-nat.c: Revert.
6504 * amd64-dicos-tdep.c: Revert.
6505 * amd64-darwin-tdep.c: Revert.
6506 * amd64-bsd-nat.c: Revert.
6507 * alpha-tdep.c: Revert.
6508 * alpha-obsd-tdep.c: Revert.
6509 * alpha-nbsd-tdep.c: Revert.
6510 * alpha-mdebug-tdep.c: Revert.
6511 * alpha-linux-tdep.c: Revert.
6512 * alpha-linux-nat.c: Revert.
6513 * alpha-bsd-tdep.c: Revert.
6514 * alpha-bsd-nat.c: Revert.
6515 * aix-thread.c: Revert.
6516 * agent.c: Revert.
6517 * addrmap.c: Revert.
6518 * ada-varobj.c: Revert.
6519 * ada-valprint.c: Revert.
6520 * ada-typeprint.c: Revert.
6521 * ada-tasks.c: Revert.
6522 * ada-lang.c: Revert.
6523 * aarch64-tdep.c: Revert.
6524 * aarch64-ravenscar-thread.c: Revert.
6525 * aarch64-newlib-tdep.c: Revert.
6526 * aarch64-linux-tdep.c: Revert.
6527 * aarch64-linux-nat.c: Revert.
6528 * aarch64-fbsd-tdep.c: Revert.
6529 * aarch64-fbsd-nat.c: Revert.
6530 * aarch32-linux-nat.c: Revert.
6531
d55e5aa6
TT
65322019-04-05 Tom Tromey <tom@tromey.com>
6533
6534 * ft32-tdep.c: Sort headers.
6535 * frv-tdep.c: Sort headers.
6536 * frv-linux-tdep.c: Sort headers.
6537 * frame.c: Sort headers.
6538 * frame-unwind.c: Sort headers.
6539 * frame-base.c: Sort headers.
6540 * fork-child.c: Sort headers.
6541 * findvar.c: Sort headers.
6542 * findcmd.c: Sort headers.
6543 * filesystem.c: Sort headers.
6544 * filename-seen-cache.h: Sort headers.
6545 * filename-seen-cache.c: Sort headers.
6546 * fbsd-tdep.c: Sort headers.
6547 * fbsd-nat.h: Sort headers.
6548 * fbsd-nat.c: Sort headers.
6549 * f-valprint.c: Sort headers.
6550 * f-typeprint.c: Sort headers.
6551 * f-lang.c: Sort headers.
6552 * extension.h: Sort headers.
6553 * extension.c: Sort headers.
6554 * extension-priv.h: Sort headers.
6555 * expprint.c: Sort headers.
6556 * exec.h: Sort headers.
6557 * exec.c: Sort headers.
6558 * exceptions.c: Sort headers.
6559 * event-top.c: Sort headers.
6560 * event-loop.c: Sort headers.
6561 * eval.c: Sort headers.
6562 * elfread.c: Sort headers.
6563 * dwarf2read.h: Sort headers.
6564 * dwarf2read.c: Sort headers.
6565 * dwarf2loc.c: Sort headers.
6566 * dwarf2expr.h: Sort headers.
6567 * dwarf2expr.c: Sort headers.
6568 * dwarf2-frame.c: Sort headers.
6569 * dwarf2-frame-tailcall.c: Sort headers.
6570 * dwarf-index-write.h: Sort headers.
6571 * dwarf-index-write.c: Sort headers.
6572 * dwarf-index-common.c: Sort headers.
6573 * dwarf-index-cache.h: Sort headers.
6574 * dwarf-index-cache.c: Sort headers.
6575 * dummy-frame.c: Sort headers.
6576 * dtrace-probe.c: Sort headers.
6577 * disasm.h: Sort headers.
6578 * disasm.c: Sort headers.
6579 * disasm-selftests.c: Sort headers.
6580 * dictionary.c: Sort headers.
6581 * dicos-tdep.c: Sort headers.
6582 * demangle.c: Sort headers.
6583 * dcache.h: Sort headers.
6584 * dcache.c: Sort headers.
6585 * darwin-nat.h: Sort headers.
6586 * darwin-nat.c: Sort headers.
6587 * darwin-nat-info.c: Sort headers.
6588 * d-valprint.c: Sort headers.
6589 * d-namespace.c: Sort headers.
6590 * d-lang.c: Sort headers.
6591 * ctf.c: Sort headers.
6592 * csky-tdep.c: Sort headers.
6593 * csky-linux-tdep.c: Sort headers.
6594 * cris-tdep.c: Sort headers.
6595 * cris-linux-tdep.c: Sort headers.
6596 * cp-valprint.c: Sort headers.
6597 * cp-support.c: Sort headers.
6598 * cp-namespace.c: Sort headers.
6599 * cp-abi.c: Sort headers.
6600 * corelow.c: Sort headers.
6601 * corefile.c: Sort headers.
6602 * continuations.c: Sort headers.
6603 * completer.h: Sort headers.
6604 * completer.c: Sort headers.
6605 * complaints.c: Sort headers.
6606 * coffread.c: Sort headers.
6607 * coff-pe-read.c: Sort headers.
6608 * cli-out.h: Sort headers.
6609 * cli-out.c: Sort headers.
6610 * charset.c: Sort headers.
6611 * c-varobj.c: Sort headers.
6612 * c-valprint.c: Sort headers.
6613 * c-typeprint.c: Sort headers.
6614 * c-lang.c: Sort headers.
6615 * buildsym.c: Sort headers.
6616 * buildsym-legacy.c: Sort headers.
6617 * build-id.h: Sort headers.
6618 * build-id.c: Sort headers.
6619 * btrace.c: Sort headers.
6620 * bsd-uthread.c: Sort headers.
6621 * breakpoint.h: Sort headers.
6622 * breakpoint.c: Sort headers.
6623 * break-catch-throw.c: Sort headers.
6624 * break-catch-syscall.c: Sort headers.
6625 * break-catch-sig.c: Sort headers.
6626 * blockframe.c: Sort headers.
6627 * block.c: Sort headers.
6628 * bfin-tdep.c: Sort headers.
6629 * bfin-linux-tdep.c: Sort headers.
6630 * bfd-target.c: Sort headers.
6631 * bcache.c: Sort headers.
6632 * ax-general.c: Sort headers.
6633 * ax-gdb.h: Sort headers.
6634 * ax-gdb.c: Sort headers.
6635 * avr-tdep.c: Sort headers.
6636 * auxv.c: Sort headers.
6637 * auto-load.c: Sort headers.
6638 * arm-wince-tdep.c: Sort headers.
6639 * arm-tdep.c: Sort headers.
6640 * arm-symbian-tdep.c: Sort headers.
6641 * arm-pikeos-tdep.c: Sort headers.
6642 * arm-obsd-tdep.c: Sort headers.
6643 * arm-nbsd-tdep.c: Sort headers.
6644 * arm-nbsd-nat.c: Sort headers.
6645 * arm-linux-tdep.c: Sort headers.
6646 * arm-linux-nat.c: Sort headers.
6647 * arm-fbsd-tdep.c: Sort headers.
6648 * arm-fbsd-nat.c: Sort headers.
6649 * arm-bsd-tdep.c: Sort headers.
6650 * arch-utils.c: Sort headers.
6651 * arc-tdep.c: Sort headers.
6652 * arc-newlib-tdep.c: Sort headers.
6653 * annotate.h: Sort headers.
6654 * annotate.c: Sort headers.
6655 * amd64-windows-tdep.c: Sort headers.
6656 * amd64-windows-nat.c: Sort headers.
6657 * amd64-tdep.c: Sort headers.
6658 * amd64-sol2-tdep.c: Sort headers.
6659 * amd64-obsd-tdep.c: Sort headers.
6660 * amd64-obsd-nat.c: Sort headers.
6661 * amd64-nbsd-tdep.c: Sort headers.
6662 * amd64-nbsd-nat.c: Sort headers.
6663 * amd64-nat.c: Sort headers.
6664 * amd64-linux-tdep.c: Sort headers.
6665 * amd64-linux-nat.c: Sort headers.
6666 * amd64-fbsd-tdep.c: Sort headers.
6667 * amd64-fbsd-nat.c: Sort headers.
6668 * amd64-dicos-tdep.c: Sort headers.
6669 * amd64-darwin-tdep.c: Sort headers.
6670 * amd64-bsd-nat.c: Sort headers.
6671 * alpha-tdep.c: Sort headers.
6672 * alpha-obsd-tdep.c: Sort headers.
6673 * alpha-nbsd-tdep.c: Sort headers.
6674 * alpha-mdebug-tdep.c: Sort headers.
6675 * alpha-linux-tdep.c: Sort headers.
6676 * alpha-linux-nat.c: Sort headers.
6677 * alpha-bsd-tdep.c: Sort headers.
6678 * alpha-bsd-nat.c: Sort headers.
6679 * aix-thread.c: Sort headers.
6680 * agent.c: Sort headers.
6681 * addrmap.c: Sort headers.
6682 * ada-varobj.c: Sort headers.
6683 * ada-valprint.c: Sort headers.
6684 * ada-typeprint.c: Sort headers.
6685 * ada-tasks.c: Sort headers.
6686 * ada-lang.c: Sort headers.
6687 * aarch64-tdep.c: Sort headers.
6688 * aarch64-ravenscar-thread.c: Sort headers.
6689 * aarch64-newlib-tdep.c: Sort headers.
6690 * aarch64-linux-tdep.c: Sort headers.
6691 * aarch64-linux-nat.c: Sort headers.
6692 * aarch64-fbsd-tdep.c: Sort headers.
6693 * aarch64-fbsd-nat.c: Sort headers.
6694 * aarch32-linux-nat.c: Sort headers.
6695
699bd4cf
TT
66962019-04-04 Tom Tromey <tom@tromey.com>
6697
6698 * varobj.c (varobj_create): Update.
6699 * rust-exp.y (struct rust_parser) <update_innermost_block,
6700 lookup_symbol>: New methods.
6701 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6702 Rename.
6703 (rust_parser::rust_lookup_type)
6704 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6705 * printcmd.c (display_command, do_one_display): Update.
6706 * parser-defs.h (struct parser_state) <parser_state>: Add
6707 "tracker" parameter.
6708 (block_tracker): New member.
6709 (class innermost_block_tracker) <innermost_block_tracker>: Add
6710 "types" parameter.
6711 <reset>: Remove method.
6712 (innermost_block): Don't declare.
6713 (null_post_parser): Update.
6714 * parse.c (innermost_block): Remove global.
6715 (write_dollar_variable): Update.
6716 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6717 Remove "tracker_types" parameter.
6718 (parse_expression): Add "tracker" parameter.
6719 (parse_expression_for_completion): Update.
6720 (null_post_parser): Add "tracker" parameter.
6721 * p-exp.y: Update rules.
6722 * m2-exp.y: Update rules.
6723 * language.h (struct language_defn) <la_post_parser>: Add
6724 "tracker" parameter.
6725 * go-exp.y: Update rules.
6726 * f-exp.y: Update rules.
6727 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6728 parameter.
6729 * d-exp.y: Update rules.
6730 * c-exp.y: Update rules.
6731 * breakpoint.c (set_breakpoint_condition): Create an
6732 innermost_block_tracker.
6733 (watch_command_1): Likewise.
6734 * ada-lang.c (resolve): Add "tracker" parameter.
6735 (resolve_subexp): Likewise.
6736 * ada-exp.y (write_var_from_sym): Update.
6737
dac43e32
TT
67382019-04-04 Tom Tromey <tom@tromey.com>
6739
6740 * type-stack.h: New file.
6741 * type-stack.c: New file.
6742 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6743 type-stack.h.
6744 (insert_into_type_stack, insert_type, push_type, push_type_int)
6745 (insert_type_address_space, pop_type, pop_type_int)
6746 (pop_typelist, pop_type_stack, append_type_stack)
6747 (push_type_stack, get_type_stack, push_typelist)
6748 (follow_type_instance_flags, follow_types): Don't declare.
6749 * parse.c (type_stack): Remove global.
6750 (parse_exp_in_context): Update.
6751 (insert_into_type_stack, insert_type, push_type, push_type_int)
6752 (insert_type_address_space, pop_type, pop_type_int)
6753 (pop_typelist, pop_type_stack, append_type_stack)
6754 (push_type_stack, get_type_stack, push_typelist)
6755 (follow_type_instance_flags, follow_types): Remove (moved to
6756 type-stack.c).
6757 * f-exp.y (type_stack): New global.
6758 Update rules.
6759 (push_kind_type, f_parse): Update.
6760 * d-exp.y (type_stack): New global.
6761 Update rules.
6762 (d_parse): Update.
6763 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6764 Update rules.
6765 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6766 (HFILES_NO_SRCDIR): Add type-stack.h.
6767
2a612529
TT
67682019-04-04 Tom Tromey <tom@tromey.com>
6769
6770 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6771 (rust_parser::convert_ast_to_expression, rust_parse)
6772 (rust_lex_test_completion, rust_lex_tests): Update.
6773 * parser-defs.h (struct expr_completion_state): New.
6774 (struct parser_state) <parser_state>: Add completion parameter.
6775 <mark_struct_expression, mark_completion_tag>: New methods.
6776 <parse_completion, m_completion_state>: New members.
6777 (prefixify_expression, null_post_parser): Update.
6778 (mark_struct_expression, mark_completion_tag): Don't declare.
6779 * parse.c (parse_completion, expout_last_struct)
6780 (expout_tag_completion_type, expout_completion_name): Remove
6781 globals.
6782 (parser_state::mark_struct_expression)
6783 (parser_state::mark_completion_tag): Now methods.
6784 (prefixify_expression): Add last_struct parameter.
6785 (prefixify_subexp): Likewise.
6786 (parse_exp_1): Update.
6787 (parse_exp_in_context): Add cstate parameter. Update.
6788 (parse_expression_for_completion): Create an
6789 expr_completion_state.
6790 (null_post_parser): Add "completion" parameter.
6791 * p-exp.y: Update rules.
6792 (yylex): Update.
6793 * language.h (struct language_defn) <la_post_parser>: Add
6794 "completing" parameter.
6795 * go-exp.y: Update rules.
6796 (lex_one_token): Update.
6797 * expression.h (parse_completion): Don't declare.
6798 * d-exp.y: Update rules.
6799 (lex_one_token): Update rules.
6800 * c-exp.y: Update rules.
6801 (lex_one_token): Update.
6802 * ada-lang.c (resolve): Add "parse_completion" parameter.
6803 (resolve_subexp): Likewise.
6804 (ada_resolve_function): Likewise.
6805
43476f0b
TT
68062019-04-04 Tom Tromey <tom@tromey.com>
6807
6808 * parser-defs.h (struct parser_state) <start_arglist,
6809 end_arglist>: New methods.
6810 <arglist_len, m_funcall_chain>: New members.
6811 (arglist_len, start_arglist, end_arglist): Don't declare.
6812 * parse.c (arglist_len, funcall_chain): Remove global.
6813 (start_arglist, end_arglist): Remove functions.
6814 (parse_exp_in_context): Update.
6815 * p-exp.y: Update rules.
6816 * m2-exp.y: Update rules.
6817 * go-exp.y: Update rules.
6818 * f-exp.y: Update rules.
6819 * d-exp.y: Update rules.
6820 * c-exp.y: Update rules.
6821
5776fca3
TT
68222019-04-04 Tom Tromey <tom@tromey.com>
6823
6824 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6825 lex_operator, push_back>: New methods.
6826 Update all rules.
6827 (rust_parser::lex_hex, lex_escape): Rename and update.
6828 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6829 (rust_parser::lex_operator): Rename and update.
6830 (rust_parser::lex_number, rustyylex, rustyyerror)
6831 (rust_lex_test_init, rust_lex_test_sequence)
6832 (rust_lex_test_push_back, rust_lex_tests): Update.
6833 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6834 parameter.
6835 <lexptr, prev_lexptr>: New members.
6836 (lexptr, prev_lexptr): Don't declare.
6837 * parse.c (lexptr, prev_lexptr): Remove globals.
6838 (parse_exp_in_context): Update.
6839 * p-exp.y (yylex, yyerror): Update.
6840 * m2-exp.y (parse_number, yylex, yyerror): Update.
6841 * go-exp.y (lex_one_token, yyerror): Update.
6842 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6843 * d-exp.y (lex_one_token, yyerror): Update.
6844 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6845 (lex_one_token, yyerror): Update.
6846 * ada-lex.l (YY_INPUT): Update.
6847 (rewind_to_char): Update.
6848 * ada-exp.y (yyerror): Update.
6849
8621b685
TT
68502019-04-04 Tom Tromey <tom@tromey.com>
6851
6852 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6853 * parser-defs.h (struct parser_state) <parser_state>: Add new
6854 parameter.
6855 <comma_terminates>: New member.
6856 (comma_terminates): Don't declare global.
6857 * parse.c (comma_terminates): Remove global.
6858 (parse_exp_in_context): Update.
6859 * p-exp.y (yylex): Update.
6860 * m2-exp.y (yylex): Update.
6861 * go-exp.y (lex_one_token): Update.
6862 * f-exp.y (yylex): Update.
6863 * d-exp.y (lex_one_token): Update.
6864 * c-exp.y (lex_one_token): Update.
6865 * ada-lex.l: Update.
6866
28aaf3fd
TT
68672019-04-04 Tom Tromey <tom@tromey.com>
6868
6869 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6870 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6871 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6872 * parser-defs.h (paren_depth): Don't declare.
6873 * parse.c (paren_depth): Remove global.
6874 (parse_exp_in_context): Update.
6875 * p-exp.y (paren_depth): New global.
6876 (pascal_parse): Initialize it.
6877 * m2-exp.y (paren_depth): New global.
6878 (m2_parse): Initialize it.
6879 * go-exp.y (paren_depth): New global.
6880 (go_parse): Initialize it.
6881 * f-exp.y (paren_depth): New global.
6882 (f_parse): Initialize it.
6883 * d-exp.y (paren_depth): New global.
6884 (d_parse): Initialize it.
6885 * c-exp.y (paren_depth): New global.
6886 (c_parse): Initialize it.
6887 * ada-lex.l (paren_depth): New global.
6888 (lexer_init): Initialize it.
6889
1e58a4a4
TT
68902019-04-04 Tom Tromey <tom@tromey.com>
6891
6892 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6893 (rust_parser::convert_ast_to_type)
6894 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6895 * parser-defs.h (struct parser_state) <parser_state>: Add
6896 parameters. Initialize new members.
6897 <expression_context_block, expression_context_pc>: New members.
6898 * parse.c (expression_context_block, expression_context_pc):
6899 Remove globals.
6900 (parse_exp_in_context): Update.
6901 * p-exp.y: Update all rules.
6902 (yylex): Update.
6903 * m2-exp.y: Update all rules.
6904 (yylex): Update.
6905 * go-exp.y (yylex): Update.
6906 * f-exp.y (yylex): Update.
6907 * d-exp.y: Update all rules.
6908 (yylex): Update.
6909 * c-exp.y: Update all rules.
6910 (lex_one_token, classify_name, yylex, c_parse): Update.
6911 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6912
37eedb39
TT
69132019-04-04 Tom Tromey <tom@tromey.com>
6914
6915 * gdbarch.h, gdbarch.c: Rebuild.
6916 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6917 * stap-probe.h:
6918 (struct stap_parse_info): Replace "parser_state" with
6919 "expr_builder".
6920 * parser-defs.h (struct expr_builder): Rename from "parser_state".
6921 (parser_state): New class.
6922 * parse.c (expr_builder): Rename.
6923 (expr_builder::release): Rename.
6924 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
6925 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
6926 (write_exp_elt_longcst, write_exp_elt_floatcst)
6927 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
6928 (write_exp_string_vector, write_exp_bitstring)
6929 (write_exp_msymbol, mark_struct_expression)
6930 (write_dollar_variable)
6931 (insert_type_address_space, increase_expout_size): Replace
6932 "parser_state" with "expr_builder".
6933 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
6934 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
6935 "parser_state" with "expr_builder".
6936
73923d7e
TT
69372019-04-04 Tom Tromey <tom@tromey.com>
6938
6939 * rust-exp.y: Replace "parse_language" with method call.
6940 * p-exp.y:
6941 (yylex): Replace "parse_language" with method call.
6942 * m2-exp.y:
6943 (yylex): Replace "parse_language" with method call.
6944 * go-exp.y (classify_name): Replace "parse_language" with method
6945 call.
6946 * f-exp.y (yylex): Replace "parse_language" with method call.
6947 * d-exp.y (lex_one_token): Replace "parse_language" with method
6948 call.
6949 * c-exp.y:
6950 (lex_one_token, classify_name, yylex): Replace "parse_language"
6951 with method call.
6952 * ada-exp.y (find_primitive_type, type_char)
6953 (type_system_address): Replace "parse_language" with method call.
6954
fa9f5be6
TT
69552019-04-04 Tom Tromey <tom@tromey.com>
6956
6957 * rust-exp.y: Replace "parse_gdbarch" with method call.
6958 * parse.c (write_dollar_variable, insert_type_address_space):
6959 Replace "parse_gdbarch" with method call.
6960 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
6961 call.
6962 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
6963 call.
6964 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
6965 "parse_gdbarch" with method call.
6966 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
6967 with method call.
6968 * f-exp.y (parse_type, parse_f_type, yylex): Replace
6969 "parse_gdbarch" with method call.
6970 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
6971 "parse_gdbarch" with method call.
6972 * c-exp.y (parse_type, parse_number, classify_name): Replace
6973 "parse_gdbarch" with method call.
6974 * ada-lex.l: Replace "parse_gdbarch" with method call.
6975 * ada-exp.y (parse_type, find_primitive_type, type_char)
6976 (type_system_address): Replace "parse_gdbarch" with method call.
6977
1201a264
TT
69782019-04-04 Tom Tromey <tom@tromey.com>
6979
6980 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
6981 * stap-probe.c (stap_parse_argument): Update.
6982 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
6983 initial_size parameter.
6984 * rust-exp.y (rust_lex_tests): Update.
6985 * parse.c (parser_state): Update.
6986 (parse_exp_in_context): Update.
6987 * parser-defs.h (struct parser_state) <parser_state>: Remove
6988 "initial_size" parameter.
6989
e3980ce2
TT
69902019-04-04 Tom Tromey <tom@tromey.com>
6991
6992 * parser-defs.h (increase_expout_size): Don't declare.
6993 * parse.c (increase_expout_size): Now static.
6994
e9f8e3f1
TS
69952019-04-04 Thomas Schwinge <thomas@codesourcery.com>
6996
6997 * gnu-nat.c (gnu_nat_target::wait): Fix
6998 target_waitstatus_to_string call.
6999
d7df6549
AB
70002019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7001
7002 * eval.c (evaluate_subexp_standard): Handle internal functions
7003 during Fortran function call handling.
7004
8bdc1658
AB
70052019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * NEWS: Mention new internal functions.
7008 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7009 (read_base_type): Use dwarf2_init_complex_target_type.
7010 * value.c (creal_internal_fn): New function.
7011 (cimag_internal_fn): New function.
7012 (_initialize_values): Register new internal functions.
7013
c29705b7
PW
70142019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7015
7016 * infrun.c (stop_all_threads): If debug_infrun, always
7017 trace the wait status after wait_one, using
7018 target_waitstatus_to_string and target_pid_to_str.
7019 (handle_inferior_event): Replace various trace of
7020 wait status kind by a single trace.
7021 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7022 wait status kind image by target_waitstatus_to_string.
7023 * target/waitstatus.c (target_waitstatus_to_string): Fix
7024 obsolete comment.
7025
05caa1d2
TT
70262019-04-01 Tom Tromey <tromey@adacore.com>
7027
7028 PR symtab/23331:
7029 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7030
9d1447e0
SDJ
70312019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7032 Pedro Alves <palves@redhat.com>
7033
7034 * top.c (quit_force): Call 'finalize_values'.
7035 * value.c (finalize_values): New function.
7036 * value.h (finalize_values): Declare.
7037
7734102d
EZ
70382019-03-30 Eli Zaretskii <eliz@gnu.org>
7039
7040 * NEWS: Announce $_gdb_major and $_gdb_minor.
7041
7042 * top.c (init_gdb_version_vars): New function.
7043 (gdb_init): Call init_gdb_version_vars.
7044
188e1fa9
TT
70452019-03-29 Tom Tromey <tromey@adacore.com>
7046
7047 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7048 help text. Remove dead code.
7049
2880242d
KS
70502019-03-29 Keith Seitz <keiths@redhat.com>
7051
7052 From Siddhesh Poyarekar:
7053 * f-lang.h (f77_get_upperbound): Return LONGEST.
7054 (f77_get_lowerbound): Likewise.
7055 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7056 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7057 print them.
7058 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7059 plongest to format print it.
7060 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7061 (f77_get_upperbound): Likewise.
7062 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7063 LOWER_BOUND to LONGEST.
7064 (f77_create_arrayprint_offset_tbl): Likewise.
7065
cc1defb1
KS
70662019-03-29 Keith Seitz <keiths@redhat.com>
7067
7068 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7069 %s/pulongest for TYPE_LENGTH instead of %d in format
7070 strings.
7071 * ada-typerint.c (ada_print_type): Likewise.
7072 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7073 * compile/compile-c-support.c (generate_register_struct): Likewise.
7074 * gdbtypes.c (recursive_dump_type): Likewise.
7075 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7076 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7077 instead of %d in format strings.
7078 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7079 to std::min to ULONGEST.
7080 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7081 instead of %d in format strings.
7082 * tracepoint.c (info_scope_command): Likewise.
7083 * typeprint.c (print_offset_data::update)
7084 (print_offset_data::finish): Likewise.
7085 * xtensa-tdep.c (xtensa_store_return_value)
7086 (xtensa_push_dummy_call): Likewise.
7087
e432ccf1
JT
70882019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7089
7090 * windows-nat.c (display_selector): Fixed format specifications
7091 for 64-bit Cygwin.
7092
65d2b333
PW
70932019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7094
7095 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7096
f489207e
SL
70972019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7098
7099 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7100 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7101 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7102 (nios2_linux_init_abi): Install it.
7103
bffa1015
AH
71042019-03-28 Alan Hayward <alan.hayward@arm.com>
7105
7106 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7107
fc96163a
AH
71082019-03-28 Alan Hayward <alan.hayward@arm.com>
7109
7110 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7111
20dc7e9b
PW
71122019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7113 Tom Tromey <tromey@adacore.com>
7114
7115 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7116
7f5331a8
JB
71172019-03-26 Joel Brobecker <brobecker@adacore.com>
7118
7119 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7120 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7121 method to compute the bounds of range types. Also print "[evaluated]"
7122 if the bounds' values come from a dynamic evaluation.
7123
18c77628
AB
71242019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7125
7126 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7127 whitespace when pretty printing is on.
7128
53c973f2
AH
71292019-03-26 Alan Hayward <alan.hayward@arm.com>
7130
e79be6e5 7131 * ppc-linux-nat.c: Add include.
53c973f2 7132
d851aa71
AH
71332019-03-26 Alan Hayward <alan.hayward@arm.com>
7134
e79be6e5 7135 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7136
2fe7bab7
AH
71372019-03-26 Alan Hayward <alan.hayward@arm.com>
7138
e79be6e5 7139 * arm-linux-nat.c: Add include.
2fe7bab7 7140
068ef30e
SM
71412019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7142
7143 * source-cache.c (source_cache::get_source_lines): Re-read
7144 fullname after calling open_source_file.
7145
81a24d04
JB
71462019-03-25 John Baldwin <jhb@FreeBSD.org>
7147
7148 * NEWS: Mention TLS support for FreeBSD.
7149
79e7ae11
TT
71502019-03-25 Tom Tromey <tromey@adacore.com>
7151
7152 * minsyms.c (BUNCH_SIZE): Update comment.
7153 (~minimal_symbol_reader): Remove old comment.
7154 (compact_minimal_symbols): Update comment.
7155 (minimal_symbol_reader::install): Remove old comment. Update
7156 other comments.
7157
d45963c2
AH
71582019-03-25 Alan Hayward <alan.hayward@arm.com>
7159
7160 * s390-linux-nat.c: Add include.
7161
0f83012e
AH
71622019-03-25 Alan Hayward <alan.hayward@arm.com>
7163
7164 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7165 Call linux_get_hwcap.
7166 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7167 Likewise.
7168 (aarch64_linux_get_hwcap): Remove function.
7169 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7170 declaration.
7171 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7172 linux_get_hwcap.
7173 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7174 * linux-tdep.c (linux_get_hwcap): Add function.
7175 (linux_get_hwcap2): Likewise.
7176 * linux-tdep.h (linux_get_hwcap): Add declaration.
7177 (linux_get_hwcap2): Likewise.
7178 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7179 (ppc_linux_get_hwcap2): Likewise.
7180 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7181 linux_get_hwcap.
7182 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7183 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7184 (ppc_linux_nat_target::read_description): Likewise.
7185 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7186 * s390-linux-nat.c: Likewise.
7187 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7188
6640a367
TT
71892019-03-24 Tom Tromey <tom@tromey.com>
7190
7191 * ada-lang.c (standard_lookup): Simplify initialization.
7192 (ada_lookup_symbol_nonlocal): Simplify return.
7193 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7194 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7195 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7196 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7197 initialization.
7198 * solib.c (solib_global_lookup): Simplify.
7199 * symtab.c (null_block_symbol): Remove.
7200 (symbol_cache_lookup): Simplify returns.
7201 (lookup_language_this): Simplify returns.
7202 (lookup_symbol_aux): Simplify return.
7203 (lookup_local_symbol): Simplify returns.
7204 (lookup_global_symbol_from_objfile): Simplify return.
7205 (lookup_symbol_in_objfile_symtabs)
7206 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7207 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7208 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7209 * cp-namespace.c (cp_lookup_bare_symbol)
7210 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7211 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7212 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7213 (cp_lookup_symbol_via_imports): Simplify initialization.
7214 (find_symbol_in_baseclass): Likewise.
7215 * symtab.h (null_block_symbol): Remove.
7216 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7217 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7218 (d_lookup_symbol_module): Likewise.
7219 (find_symbol_in_baseclass): Simplify initialization.
7220
a930ebcd
TT
72212019-03-24 Tom Tromey <tom@tromey.com>
7222
7223 * expression.h: Don't include symtab.h.
7224 (struct block): Forward declare.
7225
582942f4
TT
72262019-03-24 Tom Tromey <tom@tromey.com>
7227
7228 * c-exp.y (typebase): Remove casts.
7229 * gdbtypes.c (lookup_unsigned_typename, )
7230 (lookup_signed_typename): Remove cast.
7231 * eval.c (parse_to_comma_and_eval): Remove cast.
7232 * parse.c (write_dollar_variable): Remove cast.
7233 * block.h (struct block) <superblock>: Now const.
7234 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7235 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7236 (map_block): Make "block" const.
7237 * symfile.h (struct quick_symbol_functions)
7238 <map_matching_symbols>: Constify block argument to "callback".
7239 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7240 const.
7241 (find_pc_sect_compunit_symtab): Make "b" const.
7242 (find_symbol_at_address): Likewise.
7243 (search_symbols): Likewise.
7244 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7245 (dw2_debug_names_lookup_symbol): Likewise.
7246 (dw2_map_matching_symbols): Update.
7247 * p-valprint.c (pascal_val_print): Remove "block".
7248 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7249 (aux_add_nonlocal_symbols): Make "block" const.
7250 (resolve_subexp): Remove cast.
7251 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7252 const.
7253 (iterate_over_file_blocks): Likewise.
7254 * f-exp.y (%union) <bval>: Remove.
7255 * coffread.c (patch_opaque_types): Make "b" const.
7256 * spu-tdep.c (spu_catch_start): Make "block" const.
7257 * c-valprint.c (print_unpacked_pointer): Remove "block".
7258 * symmisc.c (dump_symtab_1): Make "b" const.
7259 (block_depth): Make "block" const.
7260 * d-exp.y (%union) <bval>: Remove.
7261 * cp-support.h (cp_lookup_rtti_type): Update.
7262 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7263 * psymtab.c (psym_lookup_symbol): Make "block" const.
7264 (maintenance_check_psymtabs): Make "b" const.
7265 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7266 (enumerate_locals, enumerate_args): Update.
7267 * python/py-symtab.c (stpy_global_block): Make "block" const.
7268 (stpy_static_block): Likewise.
7269 * inline-frame.c (block_starting_point_at): Make "new_block"
7270 const.
7271 * block.c (find_block_in_blockvector): Make return type const.
7272 (blockvector_for_pc_sect): Make "b" const.
7273 (find_block_in_blockvector): Make "b" const.
7274
7ad417dd
TT
72752019-03-23 Tom Tromey <tom@tromey.com>
7276
7277 * varobj.c (varobj_create): Update.
7278 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7279 * printcmd.c (display_command, do_one_display): Don't reset
7280 innermost_block.
7281 * parser-defs.h (enum innermost_block_tracker_type): Move to
7282 expression.h.
7283 (innermost_block): Update comment.
7284 * parse.c (parse_exp_1): Add tracker_types parameter.
7285 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7286 tracker_types parameter. Reset innermost_block.
7287 (parse_exp_in_context): Remove.
7288 (parse_expression_for_completion): Update.
7289 * objfiles.c (~objfile): Don't reset expression_context_block or
7290 innermost_block.
7291 * expression.h (enum innermost_block_tracker_type): Move from
7292 parser-defs.h.
7293 (parse_exp_1): Add tracker_types parameter.
7294 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7295 reset innermost_block.
7296
b366c208
TT
72972019-03-23 Tom Tromey <tom@tromey.com>
7298
7299 * objfiles.h: Include bcache.h.
7300
9bb9b2f9
TT
73012019-03-23 Tom Tromey <tom@tromey.com>
7302
7303 * linespec.c (get_current_search_block): Use
7304 scoped_restore_current_language.
7305 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7306
59c28372
AH
73072019-03-22 Alan Hayward <alan.hayward@arm.com>
7308 Jiong Wang <jiong.wang@arm.com>
7309
7310 * aarch64-linux-tdep.c
7311 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7312 section.
7313 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7314
17e116a7
AH
73152019-03-22 Alan Hayward <alan.hayward@arm.com>
7316 Jiong Wang <jiong.wang@arm.com>
7317
7318 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7319 instructions.
7320 (aarch64_analyze_prologue_test): Add PACIASP test.
7321 (aarch64_prologue_prev_register): Unmask PC value.
7322
11e1b75f
AH
73232019-03-22 Alan Hayward <alan.hayward@arm.com>
7324 Jiong Wang <jiong.wang@arm.com>
7325
7326 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7327 (aarch64_dwarf2_prev_register): Unmask PC value.
7328 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7329 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7330 DW_CFA_AARCH64_negate_ra_state.
7331 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7332
34dcc7cf
AH
73332019-03-22 Alan Hayward <alan.hayward@arm.com>
7334 Jiong Wang <jiong.wang@arm.com>
7335
7336 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7337 registers.
7338 (aarch64_pseudo_register_name): Likewise.
7339 (aarch64_pseudo_register_type): Likewise.
7340 (aarch64_pseudo_register_reggroup_p): Likewise.
7341 (aarch64_gdbarch_init): Add pauth registers.
7342 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7343 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7344 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7345 (struct gdbarch_tdep): Add regnum for ra_state.
7346
1ef53e6b
AH
73472019-03-22 Alan Hayward <alan.hayward@arm.com>
7348 Jiong Wang <jiong.wang@arm.com>
7349
7350 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7351
76bed0fd
AH
73522019-03-22 Alan Hayward <alan.hayward@arm.com>
7353 Jiong Wang <jiong.wang@arm.com>
7354
7355 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7356 function.
7357 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7358 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7359 (aarch64_gdbarch_init): Add puth registers.
7360 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7361 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7362 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7363
ee4fbcfa
AH
73642019-03-22 Alan Hayward <alan.hayward@arm.com>
7365 Jiong Wang <jiong.wang@arm.com>
7366
7367 * aarch64-linux-nat.c
7368 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7369 * aarch64-linux-tdep.c
7370 (aarch64_linux_core_read_description): Likewise.
7371 (aarch64_linux_get_hwcap): New function.
7372 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7373 (aarch64_linux_get_hwcap): New declaration.
7374
6dc0ebde
AH
73752019-03-22 Alan Hayward <alan.hayward@arm.com>
7376 Jiong Wang <jiong.wang@arm.com>
7377
7378 * aarch64-linux-nat.c
7379 (aarch64_linux_nat_target::read_description): Add pauth param.
7380 * aarch64-linux-tdep.c
7381 (aarch64_linux_core_read_description): Likewise.
7382 * aarch64-tdep.c (struct target_desc): Add in pauth.
7383 (aarch64_read_description): Add pauth param.
7384 (aarch64_gdbarch_init): Likewise.
7385 * aarch64-tdep.h (aarch64_read_description): Likewise.
7386 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7387 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7388 * features/Makefile: Add new files.
7389 * features/aarch64-pauth.c: New file.
7390 * features/aarch64-pauth.xml: New file.
7391
595915c1
TT
73922019-03-20 Tom Tromey <tromey@adacore.com>
7393
7394 * infrun.c (handle_inferior_event): Rename from
7395 handle_inferior_event_1. Create a scoped_value_mark.
7396 (handle_inferior_event): Remove.
7397
4c7d57e7
TT
73982019-03-19 Tom Tromey <tromey@adacore.com>
7399
7400 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7401 * infrun.h (print_stop_event): Add "displays" parameter.
7402 * infrun.c (print_stop_event): Add "displays" parameter.
7403
cb246234
PA
74042019-03-19 Pedro Alves <palves@redhat.com>
7405
7406 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7407 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7408 to -1. Fix TABs vs spaces.
7409 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7410 * tui/tui-out.h (tui_ui_out) Add intro comments.
7411 <m_line, m_start_of_line>: In-class initialize, and add describing
7412 comment.
7413
3a0e45b2
AH
74142019-03-18 Alan Hayward <alan.hayward@arm.com>
7415
7416 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7417 variable names.
7418 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7419
5371b850
PA
74202019-03-18 Pedro Alves <palves@redhat.com>
7421 Eli Zaretskii <eliz@gnu.org>
7422
7423 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7424 m_line and m_start_of_line.
7425
b17c4cd0
EZ
74262019-03-18 Eli Zaretskii <eliz@gnu.org>
7427
7428 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7429 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7430 it returns a newline. This fixes a regression in TU mode, whereby
7431 the next line is output on the same screen line as the user input.
7432
4bd56d18
TT
74332019-03-18 Tom Tromey <tromey@adacore.com>
7434
7435 * minsyms.c (minimal_symbol_reader::install): Remove call to
7436 obstack_blank.
7437
55c10aca
PA
74382019-03-18 Pedro Alves <palves@redhat.com>
7439
7440 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7441 New globals.
7442 (apply_style): New, factored out from ...
7443 (apply_ansi_escape): ... this. Handle reverse video mode.
7444 (tui_set_reverse_mode): New function.
7445 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7446 * tui/tui-winsource.c (tui_show_source_line): Use
7447 tui_set_reverse_mode instead of setting A_STANDOUT.
7448 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7449 New setter methods.
7450
647bb750
HD
74512019-03-18 Hannes Domani <ssbssa@yahoo.de>
7452
7453 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7454 Handle tabs.
7455
bff8c71f
TT
74562019-03-18 Tom Tromey <tromey@adacore.com>
7457
7458 * ada-lang.c (empty_array): Add "high" parameter.
7459 (ada_evaluate_subexp): Update.
7460
58785d98
ST
74612019-03-17 Sergei Trofimovich <siarheit@google.com>
7462
7463 * unittests/string_view-selftests.c: Define
7464 _initialize_string_view_selftests unconditionally.
7465
d4cbef22
ВМ
74662019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7467
7468 PR gdb/24350
7469 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7470
fce4c071
ВМ
74712019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7472
7473 PR gdb/24351
7474 * windows-nat.c (display_selector): Fix format specifiers.
7475
f7f0a123
EZ
74762019-03-17 Eli Zaretskii <eliz@gnu.org>
7477
7478 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7479 tui_refill_source_window instead of tui_refresh_win, to update the
7480 current execution line. This fixes redisplay of the current line
7481 when stepping through the code with "next" or "step".
7482
ab42892f
EZ
74832019-03-16 Eli Zaretskii <eliz@gnu.org>
7484
7485 * source-cache.c (source_cache::get_source_lines): Call
7486 find_source_lines to initialize s->nlines. This fixes vertical
7487 scrolling of TUI source window when the DOWN arrow is pressed.
7488
8d8c087f
PW
74892019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7490
7491 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7492 linux-thread-db.c (_initialize_thread_db): Likewise.
7493
798e1c30
EZ
74942019-03-16 Eli Zaretskii <eliz@gnu.org>
7495
7496 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7497 wclrtoeol in tui_show_source_line". This reverts changes made in
7498 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7499
eefba3da
TT
75002019-03-15 Tom Tromey <tom@tromey.com>
7501
7502 * symtab.h (struct minimal_symbol): Derive from
7503 general_symbol_info.
7504 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7505 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7506 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7507 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7508 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7509 (MSYMBOL_SEARCH_NAME): Update.
7510 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7511 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7512 * minsyms.c (minimal_symbol_reader::record_full): Update.
7513
0de2420c
TT
75142019-03-15 Tom Tromey <tom@tromey.com>
7515
7516 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7517
042d75e4
TT
75182019-03-15 Tom Tromey <tom@tromey.com>
7519
7520 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7521 unique_xmalloc_ptr.
7522 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7523 Update.
7524 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7525 (build_minimal_symbol_hash_tables)
7526 (minimal_symbol_reader::install): Update.
7527
db92718b
TT
75282019-03-15 Tom Tromey <tom@tromey.com>
7529
7530 * symtab.c (create_demangled_names_hash): Update.
7531 (symbol_set_names): Update.
7532 * objfiles.h (struct objfile_per_bfd_storage)
7533 <demangled_names_hash>: Now an htab_up.
7534 * objfiles.c (objfile_per_bfd_storage): Simplify.
7535
d6797f46
TT
75362019-03-15 Tom Tromey <tom@tromey.com>
7537
7538 * objfiles.h (struct objfile_per_bfd_storage): Declare
7539 destructor.
7540 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7541 New.
7542 (get_objfile_bfd_data): Use new. Don't initialize
7543 language_of_main.
7544 (free_objfile_per_bfd_storage): Remove.
7545 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7546
741d7538
TT
75472019-03-15 Tom Tromey <tom@tromey.com>
7548
7549 * symfile.c (reread_symbols): Update.
7550 * objfiles.c (objfile::objfile): Update.
7551 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7552 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7553 comment.
7554 (minimal_symbol_reader::install): Update.
7555 (terminate_minimal_symbol_table): Remove.
7556 * jit.c (jit_object_close_impl): Update.
7557
788c80d1
TT
75582019-03-15 Tom Tromey <tom@tromey.com>
7559
7560 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7561 initializations.
7562
1b7a07cb
TT
75632019-03-15 Tom Tromey <tom@tromey.com>
7564
7565 * objfiles.h (struct objfile_per_bfd_storage)
7566 <demangled_hash_languages>: Now a bitset.
7567 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7568 (lookup_minimal_symbol): Update.
7569
3db066bc
TT
75702019-03-15 Tom Tromey <tom@tromey.com>
7571
7572 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7573 Don't return the symbol.
7574 * coffread.c (record_minimal_symbol): Use record_full.
7575
3fff2c37
EZ
75762019-03-14 Eli Zaretskii <eliz@gnu.org>
7577
7578 The MS-Windows port of ncurses fails to switch to a color pair if
7579 one or both of the colors are the implicit default colors. This
7580 change records the default colors when TUI is initialized, and
7581 then specifies them explicitly when a color pair uses the default
7582 colors. This allows color styling in TUI mode on MS-Windows.
7583
7584 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7585 ncurses_norm_attr.
7586 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7587 colors in ncurses_norm_attr.
7588 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7589 "none", replace it with the default color recorded in
7590 ncurses_norm_attr.
7591
3b336828
TT
75922019-03-14 Tom Tromey <tromey@adacore.com>
7593
7594 * source-cache.h (class source_cache) <get_source_lines>: Return
7595 std::string.
7596 * source-cache.c (source_cache::extract_lines): Handle case where
7597 first_pos==npos. Return std::string.
7598 (source_cache::get_source_lines): Update.
7599
d085f989
TT
76002019-03-14 Tom Tromey <tromey@adacore.com>
7601
7602 * NEWS: Add item for "style sources" commands.
7603 * source-cache.c (source_cache::get_source_lines): Check
7604 source_styling.
7605 * cli/cli-style.c (source_styling): New global.
7606 (_initialize_cli_style): Add "style sources" commands.
7607 (show_style_sources): New function.
7608 * cli/cli-style.h (source_styling): Declare.
7609
6f11e682
TT
76102019-03-14 Pedro Alves <palves@redhat.com>
7611 Tom Tromey <tromey@adacore.com>
7612
7613 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7614 * tui/tui-winsource.c (tui_refill_source_window): New function,
7615 from...
7616 (tui_horizontal_source_scroll): ... here. Move some logic.
7617 * cli/cli-style.c (set_style_enabled): Notify new observable.
7618 * tui/tui-hooks.c (tui_redisplay_source): New function.
7619 (tui_attach_detach_observers): Attach or detach
7620 tui_redisplay_source.
7621 * observable.h (source_styling_changed): New observable.
7622 * observable.c: Define source_styling_changed observable.
7623
a068643d
TT
76242019-03-13 Tom Tromey <tromey@adacore.com>
7625
7626 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7627 (i386_gnu_nat_target::store_registers): Update.
7628 * target-debug.h (target_debug_print_std_string): New macro.
7629 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7630 * windows-tdep.c (display_one_tib): Update.
7631 * tui/tui-stack.c (tui_make_status_line): Update.
7632 * top.c (print_inferior_quit_action): Update.
7633 * thread.c (thr_try_catch_cmd): Update.
7634 (add_thread_with_info): Update.
7635 (thread_target_id_str): Update.
7636 (thr_try_catch_cmd): Update.
7637 (thread_command): Update.
7638 (thread_find_command): Update.
7639 * record-btrace.c (record_btrace_target::info_record)
7640 (record_btrace_resume_thread, record_btrace_target::resume)
7641 (record_btrace_cancel_resume, record_btrace_step_thread)
7642 (record_btrace_target::wait, record_btrace_target::wait)
7643 (record_btrace_target::wait, record_btrace_target::stop): Update.
7644 * progspace.c (print_program_space): Update.
7645 * process-stratum-target.c
7646 (process_stratum_target::thread_address_space): Update.
7647 * linux-fork.c (linux_fork_mourn_inferior)
7648 (detach_checkpoint_command, info_checkpoints_command)
7649 (linux_fork_context): Update.
7650 (linux_fork_detach): Update.
7651 (class scoped_switch_fork_info): Update.
7652 (delete_checkpoint_command): Update.
7653 * infrun.c (follow_fork_inferior): Update.
7654 (follow_fork_inferior): Update.
7655 (proceed_after_vfork_done): Update.
7656 (handle_vfork_child_exec_or_exit): Update.
7657 (follow_exec): Update.
7658 (displaced_step_prepare_throw): Update.
7659 (displaced_step_restore): Update.
7660 (start_step_over): Update.
7661 (resume_1): Update.
7662 (clear_proceed_status_thread): Update.
7663 (proceed): Update.
7664 (print_target_wait_results): Update.
7665 (do_target_wait): Update.
7666 (context_switch): Update.
7667 (stop_all_threads): Update.
7668 (restart_threads): Update.
7669 (finish_step_over): Update.
7670 (handle_signal_stop): Update.
7671 (switch_back_to_stepped_thread): Update.
7672 (keep_going_pass_signal): Update.
7673 (print_exited_reason): Update.
7674 (normal_stop): Update.
7675 * inferior.c (inferior_pid_to_str): Change return type.
7676 (print_selected_inferior): Update.
7677 (add_inferior): Update.
7678 (detach_inferior): Update.
7679 * dummy-frame.c (fprint_dummy_frames): Update.
7680 * dcache.c (dcache_info_1): Update.
7681 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7682 (btrace_fetch, btrace_clear): Update.
7683 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7684 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7685 type.
7686 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7687 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7688 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7689 * gdbarch.c, gdbarch.h: Rebuild.
7690 * gdbarch.sh (core_pid_to_str): Change return type.
7691 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7692 return type.
7693 (windows_nat_target::pid_to_str): Change return type.
7694 (windows_delete_thread): Update.
7695 (windows_nat_target::attach): Update.
7696 (windows_nat_target::files_info): Update.
7697 * target-delegates.c: Rebuild.
7698 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7699 return type.
7700 (sol_thread_target::pid_to_str): Change return type.
7701 * remote.c (class remote_target) <pid_to_str>: Change return
7702 type.
7703 (remote_target::pid_to_str): Change return type.
7704 (extended_remote_target::attach, remote_target::remote_stop_ns)
7705 (remote_target::remote_notif_remove_queued_reply)
7706 (remote_target::push_stop_reply, remote_target::disable_btrace):
7707 Update.
7708 (extended_remote_target::attach): Update.
7709 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7710 type.
7711 (gdbsim_target::pid_to_str): Change return type.
7712 * ravenscar-thread.c (struct ravenscar_thread_target)
7713 <pid_to_str>: Change return type.
7714 (ravenscar_thread_target::pid_to_str): Change return type.
7715 * procfs.c (class procfs_target) <pid_to_str>: Change return
7716 type.
7717 (procfs_target::pid_to_str): Change return type.
7718 (procfs_target::attach): Update.
7719 (procfs_target::detach): Update.
7720 (procfs_target::fetch_registers): Update.
7721 (procfs_target::store_registers): Update.
7722 (procfs_target::wait): Update.
7723 (procfs_target::files_info): Update.
7724 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7725 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7726 return type.
7727 (nto_procfs_target::pid_to_str): Change return type.
7728 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7729 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7730 return type.
7731 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7732 (exit_lwp): Update.
7733 (attach_proc_task_lwp_callback, get_detach_signal)
7734 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7735 (linux_nat_target::resume, wait_lwp, stop_callback)
7736 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7737 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7738 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7739 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7740 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7741 type.
7742 (inf_ptrace_target::attach): Update.
7743 (inf_ptrace_target::files_info): Update.
7744 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7745 type.
7746 (go32_nat_target::pid_to_str): Change return type.
7747 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7748 (gnu_nat_target::wait): Update.
7749 (gnu_nat_target::wait): Update.
7750 (gnu_nat_target::resume): Update.
7751 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7752 (fbsd_nat_target::wait): Update.
7753 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7754 type.
7755 (darwin_nat_target::attach): Update.
7756 * corelow.c (class core_target) <pid_to_str>: Change return type.
7757 (core_target::pid_to_str): Change return type.
7758 * target.c (normal_pid_to_str): Change return type.
7759 (default_pid_to_str): Likewise.
7760 (target_pid_to_str): Change return type.
7761 (target_translate_tls_address): Update.
7762 (target_announce_detach): Update.
7763 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7764 return type.
7765 (bsd_uthread_target::pid_to_str): Change return type.
7766 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7767 type.
7768 (bsd_kvm_target::pid_to_str): Change return type.
7769 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7770 return type.
7771 (aix_thread_target::pid_to_str): Change return type.
7772 * target.h (struct target_ops) <pid_to_str>: Change return type.
7773 (target_pid_to_str, normal_pid_to_str): Likewise.
7774 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7775 type.
7776 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7777 type.
7778 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7779 return type.
7780 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7781 type.
7782 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7783 type.
7784 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7785 return type.
7786
b4be1b06
SM
77872019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7788
7789 * NEWS: Mention that the new default MI version is 3. Mention
7790 changes to the output of commands and events that deal with
7791 multi-location breakpoints.
7792 * breakpoint.c: Include "mi/mi-out.h".
7793 (print_one_breakpoint): Change output syntax if using MI version
7794 >= 3.
7795 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7796 New.
7797 (mi_multi_location_breakpoint_output_fixed): New.
7798 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7799 (mi_cmd_fix_multi_location_breakpoint_output): New.
7800 (mi_multi_location_breakpoint_output_fixed): New.
7801 * mi/mi-cmds.c (mi_cmds): Register command
7802 -fix-multi-location-breakpoint-output.
7803 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7804 interpreter "mi".
7805
8e5e5494
SM
78062019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7807
7808 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7809 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7810 instantiate mi_ui_out based on interpreter name.
7811 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7812 * mi/mi-main.c (mi_load_progress): Likewise.
7813
197df35e
JB
78142019-03-12 John Baldwin <jhb@FreeBSD.org>
7815
7816 * NEWS: Combine separate "New targets" sections for 8.3.
7817
8399425f
JB
78182019-03-12 John Baldwin <jhb@FreeBSD.org>
7819
7820 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7821 (ppcfbsd_init_abi): Install gdbarch
7822 "fetch_tls_load_module_address" and "get_thread_local_address"
7823 methods.
7824
b0f87ed0
JB
78252019-03-12 John Baldwin <jhb@FreeBSD.org>
7826
7827 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7828 (riscv_fbsd_init_abi): Install gdbarch
7829 "fetch_tls_load_module_address" and "get_thread_local_address"
7830 methods.
7831
ce25aa57
JB
78322019-03-12 John Baldwin <jhb@FreeBSD.org>
7833
7834 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7835 (i386fbsd_init_abi): Install gdbarch
7836 "fetch_tls_load_module_address" and "get_thread_local_address"
7837 methods.
7838
f5424cfa
JB
78392019-03-12 John Baldwin <jhb@FreeBSD.org>
7840
7841 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7842 (amd64fbsd_init_abi): Install gdbarch
7843 "fetch_tls_load_module_address" and "get_thread_local_address"
7844 methods.
7845
945f3901
JB
78462019-03-12 John Baldwin <jhb@FreeBSD.org>
7847
7848 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7849 (struct fbsd_pspace_data): New type.
7850 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7851 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7852 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7853 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7854 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7855
ef0bd204
JB
78562019-03-12 John Baldwin <jhb@FreeBSD.org>
7857
7858 * gdbtypes.c (lookup_struct_elt): New function.
7859 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7860 * gdbtypes.h (struct struct_elt): New type.
7861 (lookup_struct_elt): New prototype.
7862
36c53a02
JB
78632019-03-12 John Baldwin <jhb@FreeBSD.org>
7864
7865 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7866 remove disabled code block.
7867
6e056c81
JB
78682019-03-12 John Baldwin <jhb@FreeBSD.org>
7869
7870 * gdbarch.sh (get_thread_local_address): New method.
7871 * gdbarch.h, gdbarch.c: Regenerate.
7872 * target.c (target_translate_tls_address): Use
7873 gdbarch_get_thread_local_address if present instead of
7874 target::get_thread_local_address.
7875
cd250a18
JB
78762019-03-12 John Baldwin <jhb@FreeBSD.org>
7877
7878 * target.h (target::get_thread_local_address): Update comment.
7879
df22c1e5
JB
78802019-03-12 John Baldwin <jhb@FreeBSD.org>
7881
7882 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7883 objfile->separate_debug_objfile_backlink if not NULL.
7884
dd6876c9
JB
78852019-03-12 John Baldwin <jhb@FreeBSD.org>
7886
7887 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7888 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7889 (amd64bsd_store_inferior_registers): Likewise.
7890 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7891 Enable segment base registers.
7892 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7893 PT_GETFSBASE and PT_GETGSBASE.
7894 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7895 PT_SETGSBASE.
7896 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7897 segment base registers.
7898 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7899
1163a4b7
JB
79002019-03-12 John Baldwin <jhb@FreeBSD.org>
7901
7902 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7903 Update calls to i386_target_description to add 'segments'
7904 parameter.
7905 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7906 add segment base registers.
7907 * arch/i386.c (i386_create_target_description): Add 'segments'
7908 parameter to enable segment base registers.
7909 * arch/i386.h (i386_create_target_description): Likewise.
7910 * features/i386/32bit-segments.xml: New file.
7911 * features/i386/32bit-segments.c: Generate.
7912 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7913 call to i386_target_description to add 'segments' parameter.
7914 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7915 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7916 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7917 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
7918 if feature is present.
7919 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
7920 Add 'segments' parameter to call to i386_target_description.
7921 (i386_target_description): Add 'segments' parameter to enable
7922 segment base registers.
7923 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
7924 to call to i386_target_description.
7925 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
7926 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
7927 Define I386_NUM_REGS.
7928 (i386_target_description): Add 'segments' parameter to enable
7929 segment base registers.
7930
3a350822
EZ
79312019-03-12 Eli Zaretskii <eliz@gnu.org>
7932
7933 PR/24325
7934 * source-cache.c: #undef open and close, to avoid unresolved
7935 externals during linking.
7936
ffdd69cf
TT
79372019-03-12 Tom Tromey <tromey@adacore.com>
7938
7939 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
7940 const. Add initializers.
7941 (_initialize_remote): Don't initialize ptid globals.
7942
ec148c57
PA
79432019-03-12 Pedro Alves <palves@redhat.com>
7944
7945 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
7946
32764270
PA
79472019-03-12 Pedro Alves <palves@redhat.com>
7948
7949 * cp-name-parser.y (main): Remove unused 'len' variable.
7950
17547186
TT
79512019-03-12 Tom Tromey <tromey@adacore.com>
7952
7953 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
7954 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
7955
d3a70e03
TT
79562019-03-12 Tom Tromey <tromey@adacore.com>
7957
7958 * linux-nat.c (iterate_over_lwps): Update.
7959 (stop_callback): Remove parameter.
7960 (stop_wait_callback, detach_callback, resume_set_callback)
7961 (select_singlestep_lwp_callback, set_ignore_sigint)
7962 (status_callback, resumed_callback, resume_clear_callback)
7963 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
7964 data parameter.
7965 (linux_nat_target::detach, linux_nat_target::resume)
7966 (linux_stop_and_wait_all_lwps, select_event_lwp)
7967 (linux_nat_filter_event, linux_nat_wait_1)
7968 (linux_nat_target::kill, linux_nat_target::stop)
7969 (linux_nat_target::stop): Update.
7970 (linux_nat_resume_callback): Change type.
7971 (resume_stopped_resumed_lwps, count_events_callback)
7972 (select_event_lwp_callback): Likewise.
7973 (linux_stop_lwp, linux_nat_stop_lwp): Update.
7974 * arm-linux-nat.c (struct update_registers_data): Remove.
7975 (update_registers_callback): Change type.
7976 (arm_linux_insert_hw_breakpoint1): Update.
7977 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
7978 parameter.
7979 (x86_linux_dr_set_addr): Update.
7980 (x86_linux_dr_set_control): Update.
7981 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
7982 (iterate_over_lwps): Use gdb::function_view.
7983 * nat/aarch64-linux-hw-point.c (struct
7984 aarch64_dr_update_callback_param): Remove.
7985 (debug_reg_change_callback): Change type.
7986 (aarch64_notify_debug_reg_change): Update.
7987 * s390-linux-nat.c (s390_refresh_per_info): Update.
7988
82cb27ff
TT
79892019-03-11 Tom Tromey <tromey@adacore.com>
7990
7991 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
7992 redundant assignment to "this_cu".
7993
568c0683
SM
79942019-03-08 Simon Marchi <simon.marchi@efficios.com>
7995
7996 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
7997
f09ce22d
SM
79982019-03-08 Simon Marchi <simon.marchi@efficios.com>
7999
8000 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8001 from...
8002 (rank_one_type): ... this.
8003
595f96a9
SM
80042019-03-08 Simon Marchi <simon.marchi@efficios.com>
8005
8006 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8007 from...
8008 (rank_one_type): ... this.
8009
2598a94b
SM
80102019-03-08 Simon Marchi <simon.marchi@efficios.com>
8011
8012 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8013 from...
8014 (rank_one_type): ... this.
8015
7f17b20d
SM
80162019-03-08 Simon Marchi <simon.marchi@efficios.com>
8017
8018 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8019 from...
8020 (rank_one_type): ... this.
8021
2c509035
SM
80222019-03-08 Simon Marchi <simon.marchi@efficios.com>
8023
8024 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8025 from...
8026 (rank_one_type): ... this.
8027
0dd322dc
SM
80282019-03-08 Simon Marchi <simon.marchi@efficios.com>
8029
8030 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8031 from...
8032 (rank_one_type): ... this.
8033
41ea4728
SM
80342019-03-08 Simon Marchi <simon.marchi@efficios.com>
8035
8036 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8037 from...
8038 (rank_one_type): ... this.
8039
793cd1d2
SM
80402019-03-08 Simon Marchi <simon.marchi@efficios.com>
8041
8042 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8043 from...
8044 (rank_one_type): ... this.
8045
34910087
SM
80462019-03-08 Simon Marchi <simon.marchi@efficios.com>
8047
8048 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8049 from...
8050 (rank_one_type): ... this.
8051
f1f832d6
SM
80522019-03-08 Simon Marchi <simon.marchi@efficios.com>
8053
8054 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8055 from...
8056 (rank_one_type): ... this.
8057
b9f4512f
SM
80582019-03-08 Simon Marchi <simon.marchi@efficios.com>
8059
8060 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8061 from...
8062 (rank_one_type): ... this.
8063
9293fc63
SM
80642019-03-08 Simon Marchi <simon.marchi@efficios.com>
8065
8066 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8067 from...
8068 (rank_one_type): ... this.
8069
e3abbe7e
PW
80702019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8071
8072 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8073 inferior-events' shows the example events.
8074
e4adb939
EZ
80752019-03-08 Eli Zaretskii <eliz@gnu.org>
8076
8077 Support styling on native MS-Windows console
8078
8079 PR/24315
8080 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8081 on MS-Windows if $TERM is not defined.
8082
8083 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8084
8085 * posix-hdep.c (gdb_console_fputs):
8086 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8087 functions.
8088 * ui-file.h (gdb_console_fputs): Add prototype.
8089
8090 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8091 back to fputs only if the former returns zero.
8092
25629dfd
TT
80932019-03-07 Tom Tromey <tom@tromey.com>
8094
8095 * symmisc.c (print_symbol_bcache_statistics): Update.
8096 (print_objfile_statistics): Update.
8097 * symfile.c (allocate_symtab): Update.
8098 * stabsread.c: Don't include bcache.h.
8099 * psymtab.h (struct psymbol_bcache): Don't declare.
8100 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8101 (psymbol_bcache_init, psymbol_bcache_free)
8102 (psymbol_bcache_get_bcache): Don't declare.
8103 * psymtab.c (struct psymbol_bcache): Remove.
8104 (psymtab_storage::psymtab_storage): Update.
8105 (psymtab_storage::~psymtab_storage): Update.
8106 (psymbol_bcache_init, psymbol_bcache_free)
8107 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8108 (add_psymbol_to_bcache): Update.
8109 (allocate_psymtab): Update.
8110 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8111 macro_cache>: No longer pointers.
8112 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8113 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8114 * macrotab.c (macro_bcache): Update.
8115 * macroexp.c: Don't include bcache.h.
8116 * gdbtypes.c (check_types_worklist): Update.
8117 (types_deeply_equal): Remove TRY/CATCH. Update.
8118 * elfread.c (elf_symtab_read): Update.
8119 * dwarf2read.c: Don't include bcache.h.
8120 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8121 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8122 (print_bcache_statistics, bcache_memory_used): Don't declare.
8123 (struct bcache): Move from bcache.c. Add constructor, destructor,
8124 methods. Rename all data members.
8125 * bcache.c (struct bcache): Move to bcache.h.
8126 (bcache::expand_hash_table): Rename from expand_hash_table.
8127 (bcache): Remove.
8128 (bcache::insert): Rename from bcache_full.
8129 (bcache::compare): Rename from bcache_compare.
8130 (bcache_xmalloc): Remove.
8131 (bcache::~bcache): Rename from bcache_xfree.
8132 (bcache::print_statistics): Rename from print_bcache_statistics.
8133 (bcache::memory_used): Rename from bcache_memory_used.
8134
fe726667
PA
81352019-03-07 Pedro Alves <palves@redhat.com>
8136
8137 * infrun.c (normal_stop): Also check for
8138 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8139
7584bb30
AB
81402019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8141
8142 * f-lang.c (value_from_host_double): Moved to...
8143 * value.c (value_from_host_double): ...here.
8144 * value.h (value_from_host_double): Declare.
8145 * guile/scm-math.c (vlscm_convert_typed_number): Use
8146 value_from_host_double.
8147 (vlscm_convert_number): Likewise.
8148 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8149 * python/py-value.c (convert_value_from_python): Likewise.
8150
a7b1986e
TT
81512019-03-06 Tom Tromey <tom@tromey.com>
8152
8153 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8154
0ccf4211
TT
81552019-03-06 Tom Tromey <tom@tromey.com>
8156
8157 * utils.h (free_current_contents): Don't declare.
8158 * utils.c (free_current_contents): Remove.
8159
fe7b42e5
TT
81602019-03-06 Tom Tromey <tom@tromey.com>
8161
8162 * top.c (quit_force): Update.
8163 * main.c (captured_command_loop): Update.
8164 * common/new-op.c (operator new): Update.
8165 * common/common-exceptions.c (struct catcher)
8166 <save_cleanup_chain>: Remove member.
8167 (exceptions_state_mc_init): Update.
8168 (exception_try_scope_entry): Return nullptr.
8169 (exception_try_scope_exit, exception_rethrow)
8170 (throw_exception_sjlj, throw_exception_cxx): Update.
8171 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8172 (all_cleanups, do_cleanups, discard_cleanups)
8173 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8174 (restore_cleanups, restore_final_cleanups): Don't declare.
8175 (do_final_cleanups): Remove parameter.
8176 * common/cleanups.c (cleanup_chain, make_cleanup)
8177 (make_cleanup_dtor, all_cleanups, do_cleanups)
8178 (discard_my_cleanups, discard_cleanups)
8179 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8180 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8181 (null_cleanup): Remove.
8182 (do_final_cleanups): Remove parameter.
8183
c6321f19
TT
81842019-03-06 Tom Tromey <tom@tromey.com>
8185
8186 * remote.c (remote_target::remote_parse_stop_reply): Use
8187 unique_xmalloc_ptr.
8188
61b30099
TT
81892019-03-06 Tom Tromey <tom@tromey.com>
8190
8191 * stabsread.c (struct stabs_field_info): Rename from field_info.
8192 <list, fnlist>: Add initializers.
8193 <obstack>: New member.
8194 (read_member_functions, read_struct_fields, read_baseclasses):
8195 Allocate on obstack. Don't use cleanups.
8196 (read_one_struct_field, read_member_functions, read_struct_fields)
8197 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8198 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8199 (read_struct_type): Update.
8200
6cceac94
TT
82012019-03-06 Tom Tromey <tom@tromey.com>
8202
8203 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8204 * common/filestuff.h (make_cleanup_close): Don't declare.
8205 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8206 Remove.
8207
72412762
TT
82082019-03-06 Tom Tromey <tom@tromey.com>
8209
8210 * solib-aix.c: Use make_scope_exit.
8211
2b6ff1c0
TT
82122019-03-06 Tom Tromey <tom@tromey.com>
8213
8214 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8215 Use make_scope_exit.
8216
d01c5877
TT
82172019-03-06 Tom Tromey <tom@tromey.com>
8218
8219 * solib-svr4.c (disable_probes_interface): Remove parameter.
8220 (svr4_handle_solib_event): Use make_scope_exit.
8221
32603266
TT
82222019-03-06 Tom Tromey <tom@tromey.com>
8223
8224 * remote.c (struct stop_reply_deleter): Remove.
8225 (stop_reply_up): Update.
8226 (struct stop_reply): Derive from notif_event. Don't typedef.
8227 <regcache>: Now a std::vector.
8228 (stop_reply_xfree): Remove.
8229 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8230 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8231 (remote_target::discard_pending_stop_replies): Use delete.
8232 (remote_target::remote_parse_stop_reply): Update.
8233 (remote_target::process_stop_reply): Update.
8234 * remote-notif.h (struct notif_event): Add virtual destructor.
8235 Remove "dtr" member.
8236 (struct notif_client) <alloc_event>: Return a unique_ptr.
8237 (notif_event_xfree): Don't declare.
8238 (notif_event_up): New typedef.
8239 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8240 (notif_event_xfree, do_notif_event_xfree): Remove.
8241 (remote_notif_state_xfree): Update.
8242
9799571e
TT
82432019-03-06 Tom Tromey <tom@tromey.com>
8244
8245 * infrun.c (displaced_step_clear_cleanup): Now a
8246 forward_scope_exit type.
8247 (displaced_step_prepare_throw): Update.
8248 (displaced_step_fixup): Update.
8249
09e3c4ca
TT
82502019-03-06 Tom Tromey <tom@tromey.com>
8251
8252 * inferior.h (class inferior): Update comment.
8253 * gdbthread.h (class thread_info): Update comment.
8254
e2a03548
TT
82552019-03-06 Joel Brobecker <brobecker@adacore.com>
8256 Tom Tromey <tom@tromey.com>
8257
8258 * stabsread.h (struct stab_section_list): Remove.
8259 (coffstab_build_psymtabs): Update.
8260 * dbxread.c (symbuf_sections): Now a std::vector.
8261 (sect_idx): New global.
8262 (fill_symbuf): Update.
8263 (coffstab_build_psymtabs): Change type of stabsects parameter.
8264 Update.
8265 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8266 std::vector.
8267 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8268 (coff_locate_sections): Update.
8269 (coff_symfile_read): Remove cleanups. Update.
8270 (init_stringtab): Add storage parameter.
8271 (free_stringtab, free_stringtab_cleanup): Remove.
8272 (init_lineno): Add storage parameter.
8273 (free_linetab, free_linetab_cleanup): Remove.
8274
b7e60d85
PA
82752019-03-06 Pedro Alves <palves@redhat.com>
8276
8277 * linux-fork.c (fork_info::clobber_regs): Delete.
8278 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8279 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8280 comment. Adjust.
8281 (scoped_switch_fork_info::scoped_switch_fork_info)
8282 (checkpoint_command, linux_fork_context): Adjust
8283 fork_save_infrun_state calls.
8284
e52c971f
PA
82852019-03-06 Pedro Alves <palves@redhat.com>
8286
8287 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8288 (inf_has_multiple_threads): Return 'bool' and rewrite using
8289 inferior_info::threads().
8290
06974e6c
PA
82912019-03-06 Pedro Alves <palves@redhat.com>
8292
8293 * linux-fork.c: Include <list>.
8294 (fork_list): Now a std::list instance.
8295 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8296 (forks_exist_p, find_last_fork): Adjust.
8297 (new_fork): Delete.
8298 (one_fork_p): New.
8299 (add_fork): Adjust.
8300 (free_fork): Delete, folded into fork_info::~fork_info().
8301 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8302 Adjust.
8303 (init_fork_list): Delete.
8304 (linux_fork_killall, linux_fork_mourn_inferior)
8305 (linux_fork_detach, info_checkpoints_command): Adjust.
8306 (_initialize_linux_fork): No longer call init_fork_list.
8307
72f31aea
PA
83082019-03-06 Pedro Alves <palves@redhat.com>
8309
8310 * linux-fork.c (new_fork): New, split out of ...
8311 (add_fork): ... this. Return void. Move "first fork" special
8312 case from here, to ...
8313 (checkpoint_command): ... here.
8314 * linux-linux.h (add_fork): Return void.
8315
efbecbc1
AB
83162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8317
8318 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8319
0841c79a
AB
83202019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8321 Chris January <chris.january@arm.com>
8322 David Lecomber <david.lecomber@arm.com>
8323
8324 * f-exp.y: New token, UNOP_INTRINSIC.
8325 (exp): New pattern using UNOP_INTRINSIC token.
8326 (f77_keywords): Add 'abs' keyword.
8327 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8328 (value_from_host_double): New function.
8329 (evaluate_subexp_f): Support UNOP_ABS.
8330
4a270568
AB
83312019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8332
8333 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8334 types.
8335
067630bd
AB
83362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8337
8338 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8339 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8340 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8341
3be47f7a
AB
83422019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8343
8344 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8345
4d00f5d8
AB
83462019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8347 Chris January <chris.january@arm.com>
8348
8349 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8350 * f-exp.y: Define 'KIND' token.
8351 (exp): New pattern for KIND expressions.
8352 (ptype): Handle types with a kind extension.
8353 (direct_abs_decl): Extend to spot kind extensions.
8354 (f77_keywords): Add 'kind' to the list.
8355 (push_kind_type): New function.
8356 (convert_to_kind_type): New function.
8357 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8358 * parse.c (operator_length_standard): Likewise.
8359 * parser-defs.h (enum type_pieces): Add tp_kind.
8360 * std-operator.def: Add UNOP_KIND.
8361
e454224f
AB
83622019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8363
8364 * f-exp.y (f_parse): Set yydebug.
8365
9dad4a58
AB
83662019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8367
8368 * f-lang.c (evaluate_subexp_f): New function.
8369 (exp_descriptor_f): New global.
8370 (f_language_defn): Use exp_descriptor_f instead of
8371 exp_descriptor_standard.
8372
c8f91604
AB
83732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8374
8375 * f-exp.y (struct token): Add comments.
8376 (dot_ops): Remove uppercase versions and the end marker.
8377 (f77_keywords): Likewise.
8378 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8379 entries in the dot_ops array are case insensitive, and use
8380 strncasecmp to compare strings. Also some whitespace cleanup in
8381 this area. Similar for the f77_keywords array, except entries in
8382 this list might be case sensitive.
8383
dd9f2c76
AB
83842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8385
8386 * f-exp.y (struct f77_boolean_val): Add comments.
8387 (boolean_values): Remove uppercase versions, and end marker.
8388 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8389 and use strncasecmp to achieve case insensitivity. Additionally,
8390 perform whitespace cleanup around this code.
8391
67a3048c
TT
83922019-03-06 Tom Tromey <tromey@adacore.com>
8393
8394 * remote-sim.c (gdbsim_target_open): Use result of
8395 gdb_argv::release.
8396
aa3cfbda
RB
83972019-03-06 Richard Bunt <richard.bunt@arm.com>
8398 Dirk Schubert <dirk.schubert@arm.com>
8399 Chris January <chris.january@arm.com>
8400
8401 * eval.c (evaluate_subexp_standard): Call Fortran argument
8402 wrapping logic.
8403 * f-lang.c (struct value): A value which can be passed into a
8404 Fortran function call.
8405 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8406 where appropriate.
8407 (struct type): Value ready for a Fortran function call.
8408 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8409 is needed.
8410 * f-lang.h (fortran_argument_convert): Declaration.
8411 (fortran_preserve_arg_pointer): Declaration.
8412 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8413
ea38e5df
TT
84142019-03-05 Tom Tromey <tromey@adacore.com>
8415
8416 * python/py-prettyprint.c (print_string_repr): Remove #if.
8417 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8418
06b5b831
TT
84192019-03-05 Tom Tromey <tromey@adacore.com>
8420
8421 * target.c (the_dummy_target): Move later. Change type to
8422 "dummy_target".
8423 (initialize_targets): Don't initialize the_dummy_target.
8424
edbd9e45
TT
84252019-03-05 Tom Tromey <tromey@adacore.com>
8426
8427 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8428 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8429
c119e040
TT
84302019-03-05 Tom Tromey <tromey@adacore.com>
8431
8432 * windows-nat.c (windows_nat_target::attach)
8433 (windows_nat_target::detach): Don't call gdb_flush.
8434 * valprint.c (generic_val_print, val_print, val_print_string):
8435 Don't call gdb_flush.
8436 * utils.c (defaulted_query): Don't call gdb_flush.
8437 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8438 * target.c (target_announce_detach): Don't call gdb_flush.
8439 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8440 * remote.c (extended_remote_target::attach): Don't call
8441 gdb_flush.
8442 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8443 * printcmd.c (do_examine): Don't call gdb_flush.
8444 (info_display_command): Don't call gdb_flush.
8445 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8446 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8447 * memattr.c (info_mem_command): Don't call gdb_flush.
8448 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8449 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8450 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8451 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8452 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8453 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8454 (gnu_nat_target::detach): Don't call gdb_flush.
8455 * f-valprint.c (f_val_print): Don't call gdb_flush.
8456 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8457 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8458 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8459 gdb_flush.
8460 * c-valprint.c (c_val_print): Don't call gdb_flush.
8461 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8462
895dafa6
TT
84632019-03-05 Tom Tromey <tromey@adacore.com>
8464
8465 * varobj.c (update_dynamic_varobj_children): Update.
8466 (install_default_visualizer): Use reset, not release.
8467 * value.c (set_internalvar): Update.
8468 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8469 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8470 ATTRIBUTE_UNUSED_RESULT.
8471
88a774b9
TT
84722019-03-05 Tom Tromey <tromey@adacore.com>
8473
8474 * remote.c (class scoped_remote_fd) <release>: Add
8475 ATTRIBUTE_UNUSED_RESULT.
8476
4e4a8b93
TT
84772019-03-05 Tom Tromey <tromey@adacore.com>
8478
8479 * macroexp.c (struct macro_buffer) <release>: Add
8480 ATTRIBUTE_UNUSED_RESULT.
8481
083eef1f
TT
84822019-03-05 Tom Tromey <tromey@adacore.com>
8483
8484 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8485 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8486 ATTRIBUTE_UNUSED_RESULT.
8487
3cabd438
TT
84882019-03-05 Tom Tromey <tromey@adacore.com>
8489
8490 * common/scoped_fd.h (class scoped_fd) <release>: Add
8491 ATTRIBUTE_UNUSED_RESULT.
8492
41e3300a
TT
84932019-03-05 Tom Tromey <tromey@adacore.com>
8494
8495 * parser-defs.h (struct parser_state) <release>: Add
8496 ATTRIBUTE_UNUSED_RESULT.
8497
18cb7c9f
TT
84982019-03-05 Tom Tromey <tromey@adacore.com>
8499
8500 * utils.h (class gdb_argv) <release>: Add
8501 ATTRIBUTE_UNUSED_RESULT.
8502 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8503
41fa577f
EZ
85042019-03-02 Eli Zaretskii <eliz@gnu.org>
8505
a6a4b2c6
EZ
8506 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8507 for-loop range, to avoid compiler warnings.
8508
8509 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8510 avoid compiler warnings about unused variables.
8511
742a7df5
EZ
8512 * NEWS: Mention end of support for native debugging on MS-Windows
8513 before XP.
8514
41fa577f
EZ
8515 PR gdb/24292
8516 * common/netstuff.c:
8517 * gdbserver/gdbreplay.c
8518 * gdbserver/remote-utils.c:
8519 * ser-tcp.c:
8520 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8521 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8522 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8523 'getaddrinfo' and 'freeaddrinfo' were not available before
8524 Windows XP, and mingw.org's MinGW headers by default define
8525 _WIN32_WINNT to 0x500.
8526
827f438f
GB
85272019-03-01 Gary Benson <gbenson@redhat.com>
8528
8529 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8530
92137da0
RO
85312019-02-28 Brian Vandenberg <phantall@gmail.com>
8532 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8533
8534 PR gdb/8527
8535 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8536 set_sigint_trap, clear_sigint_trap.
8537
799efbe8
PW
85382019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8539
8540 * target.c (target_detach): Clear the regcache and the
8541 frame cache.
8542
8ed25214
PA
85432019-02-27 Pedro Alves <palves@redhat.com>
8544
8545 * utils.c (set_screen_size): When we cap the height/width sizes,
8546 tweak the corresponding command variable to show "unlimited":
8547
23031e31
SJ
85482019-02-27 Saagar Jha <saagar@saagarjha.com>
8549 Pedro Alves <palves@redhat.com>
8550
8551 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8552 before calling rl_set_screen_size.
8553
6c28e44a
TT
85542019-02-27 Tom Tromey <tromey@adacore.com>
8555
8556 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8557 define.
8558 * python/py-value.c: Remove Python 2.4 workaround.
8559 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8560 workaround.
8561 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8562 Python 2.4 workaround.
8563 * python/python-internal.h: Remove Python 2.4 comment.
8564 (Py_ssize_t): Don't define.
8565 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8566 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8567 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8568 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8569 * python/python.c (do_start_initialization): Remove Python 2.4
8570 workaround.
8571 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8572 (print_children): Remove Python 2.4 workaround.
8573 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8574 workaround.
8575 (CHARBUFFERPROC_NAME): Remove.
8576 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8577 Python 2.4 workaround.
8578
2c3fc25d 85792019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8580
2c3fc25d
KB
8581 * NEWS: Note minimum Python version.
8582
6ca62222
KB
85832019-02-27 Kevin Buettner <kevinb@redhat.com>
8584
8585 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8586 code from these functions. Remove corresponding ifdefs. Use
8587 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8588 Remove gotos and target of gotos.
8589 (infpy_search_memory): Likewise.
8590
f4bc7d2c
AB
85912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8592
8593 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8594 (hppa_gdbarch_init): Don't register deleted functions with
8595 gdbarch.
8596
9734a586
AB
85972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8598
8599 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8600 (h8300_unwind_sp): Delete.
8601 (h8300_dummy_id): Delete.
8602 (h8300_gdbarch_init): Don't register deleted functions with
8603 gdbarch.
8604
68b867f3
AB
86052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8606
8607 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8608 (ft32_unwind_pc): Delete.
8609 (ft32_unwind_sp): Delete.
8610 (ft32_gdbarch_init): Don't register deleted functions with
8611 gdbarch.
8612
2fbe7ad0
AB
86132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8614
8615 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8616 (frv_unwind_pc): Delete.
8617 (frv_unwind_sp): Delete.
8618 (frv_gdbarch_init): Don't register deleted functions with
8619 gdbarch.
8620
76055cbe
AB
86212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8624 (riscv_unwind_pc): Delete.
8625 (riscv_unwind_sp): Delete.
8626 (riscv_gdbarch_init): Don't register deleted functions with
8627 gdbarch.
8628
4133e5a1
AB
86292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8630
8631 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8632 (csky_unwind_pc): Delete.
8633 (csky_unwind_sp): Delete.
8634 (csky_gdbarch_init): Don't register deleted functions with
8635 gdbarch.
8636
8010f576
AB
86372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8638
8639 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8640 (cris_unwind_pc): Delete.
8641 (cris_unwind_sp): Delete.
8642 (cris_gdbarch_init): Don't register deleted functions with
8643 gdbarch.
8644
b56bf084
AB
86452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8646
8647 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8648 (bfin_unwind_pc): Delete.
8649 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8650
a19a650f
AB
86512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8652
8653 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8654 (arm_unwind_pc): Delete.
8655 (arm_unwind_sp): Delete.
8656 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8657
f8278c3c
AB
86582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8659
8660 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8661 (arc_unwind_pc): Delete.
8662 (arc_unwind_sp): Delete.
8663 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8664
480e46cf
AB
86652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8666
8667 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8668 (alpha_unwind_pc): Delete.
8669 (alpha_gdbarch_init): Don't register deleted functions with
8670 gdbarch.
8671
7a995095
AB
86722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8673
8674 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8675 (aarch64_unwind_pc): Delete.
8676 (aarch64_unwind_sp): Delete.
8677 (aarch64_gdbarch_init): Don't register deleted functions with
8678 gdbarch.
8679
bf9a735e
AB
86802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8681
8682 * gdbtypes.c (type_align): Don't consider static members when
8683 computing structure alignment.
8684
5561fc30
AB
86852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8686
8687 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8688 return 0 for other types.
8689 * arch-utils.c (default_type_align): Always return 0.
8690 * gdbarch.h: Regenerate.
8691 * gdbarch.sh (type_align): Extend comment.
8692 * gdbtypes.c (type_align): Add additional comments, always call
8693 gdbarch_type_align before applying the default rules.
8694 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8695 generic code will then apply a suitable default.
8696 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8697 types, return 0 for other types.
8698
9335e75a
JB
86992019-02-27 Joel Brobecker <brobecker@adacore.com>
8700
8701 * NEWS: Create a new section for the next release branch.
8702 Rename the section of the current branch, now that it has
8703 been cut.
8704
3d34d8de
JB
87052019-02-27 Joel Brobecker <brobecker@adacore.com>
8706
8707 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8708 * version.in: Bump version to 8.3.50.DATE-git.
8709
143420fb
SM
87102019-02-26 Simon Marchi <simon.marchi@efficios.com>
8711
8712 * aix-thread.c (ptid_cmp): Remove unused variable.
8713 (get_signaled_thread): Likewise.
8714 (store_regs_user_thread): Likewise.
8715 (store_regs_kernel_thread): Likewise.
8716 (fetch_regs_kernel_thread): Remove shadowed variable.
8717
172fb711
AB
87182019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8719
8720 * features/riscv/32bit-cpu.xml: Add register numbers.
8721 * features/riscv/32bit-fpu.c: Regenerate.
8722 * features/riscv/32bit-fpu.xml: Add register numbers.
8723 * features/riscv/64bit-cpu.xml: Add register numbers.
8724 * features/riscv/64bit-fpu.c: Regenerate.
8725 * features/riscv/64bit-fpu.xml: Add register numbers.
8726
26c89782
KB
87272019-02-26 Kevin Buettner <kevinb@redhat.com>
8728
af54ade9 8729 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
8730 * python/py-value.c (convert_buffer_and_type_to_value): New
8731 function.
8732 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8733 Add support for handling an optional second argument. Call
8734 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
8735 * python/python-internal.h (Py_buffer_deleter): New struct.
8736 (Py_buffer_up): New typedef.
8737
0f58c9e8
JB
87382019-02-25 John Baldwin <jhb@FreeBSD.org>
8739
8740 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8741 instead of releasing ownership.
8742
0a0f4c01
JR
87432019-02-25 Jordan Rupprecht <rupprecht@google.com>
8744
8745 * dwarf2read.c (open_and_init_dwp_file): Call
8746 elf_numsections instead of bfd_count_sections to initialize
8747 dwp_file->num_sections.
8748
cd5a152c
TT
87492019-02-25 Tom Tromey <tromey@adacore.com>
8750
8751 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8752
8a6a8513
SDJ
87532019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8754
8755 * gcore.in: Add '--readnever' option when invoking GDB.
8756
04dcda9c
SM
87572019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8758
8759 * MAINTAINERS: Update my email address.
8760
07bc701d
SM
87612019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8762
8763 * build-id.c (build_id_to_debug_bfd_1): New function.
8764 (build_id_to_debug_bfd): Look for separate debug file in
8765 sysroot.
8766
c6f4a5d0
AB
87672019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8768
8769 * gdbarch.sh: Update the copyright year range that is placed into
8770 generated files.
8771
9600246d
KS
87722019-02-22 Keith Seitz <keiths@redhat.com>
8773
8774 PR symtab/23853
8775 * linespec.c (create_sals_line_offset): Search for the default
8776 symtab's filename instead of its fullname.
8777
7557a514
AH
87782019-02-21 Alan Hayward <alan.hayward@arm.com>
8779
8780 * NEWS: Update style defaults.
8781
ee2bcb0c
AH
87822019-02-21 Alan Hayward <alan.hayward@arm.com>
8783
8784 * main.c (captured_main_1): Disable styling in batch mode.
8785
0c95f9ed
TT
87862019-02-20 Tom Tromey <tom@tromey.com>
8787
8788 * symtab.c (symtab_symbol_info): Fix typos.
8789
c763b894
TT
87902019-02-20 Tom Tromey <tromey@adacore.com>
8791
8792 * findcmd.c (_initialize_mem_search): Use upper case for
8793 metasyntactic variables.
8794
0ef8a082
AH
87952019-02-20 Alan Hayward <alan.hayward@arm.com>
8796
8797 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8798 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8799
6caa91b6
SM
88002019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8801
8802 * top.h (source_file_name): Change to std::string.
8803 * top.c (source_file_name): Likewise.
8804 (command_line_input): Adjust.
8805 * cli/cli-script.c (script_from_file): Adjust.
8806
98814c6c
TT
88072019-02-19 Tom Tromey <tromey@adacore.com>
8808
8809 * ravenscar-thread.c
8810 (ravenscar_thread_target::update_thread_list): Don't call
8811 ada_build_task_list.
8812 * ada-lang.h (ada_build_task_list): Don't declare.
8813 * ada-tasks.c (struct ada_tasks_inferior_data)
8814 <task_list_valid_p>: Now bool.
8815 (read_known_tasks, ada_task_list_changed)
8816 (ada_tasks_invalidate_inferior_data): Update.
8817 (read_known_tasks_array): Return bool.
8818 (read_known_tasks_list): Likewise.
8819 (read_known_tasks): Return void.
8820 (ada_build_task_list): Now static.
8821
70cd633e
AB
88222019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8823
8824 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8825 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8826
040b3e95
PW
88272019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8828
8829 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8830 variant for ada_tasks_pspace_data_handle and
8831 ada_tasks_inferior_data_handle.
8832 (ada_tasks_pspace_data_cleanup): New function.
8833 (ada_tasks_inferior_data_cleanup): New function.
8834
9409233b
TT
88352019-02-17 Tom Tromey <tom@tromey.com>
8836
8837 * macrotab.h (macro_source_fullname): Return a std::string.
8838 * macrotab.c (macro_include, check_for_redefinition)
8839 (macro_undef, macro_lookup_definition, foreach_macro)
8840 (foreach_macro_in_scope): Update.
8841 (macro_source_fullname): Return a std::string.
8842 * macrocmd.c (show_pp_source_pos): Update.
8843
6506371f
TT
88442019-02-17 Tom Tromey <tom@tromey.com>
8845
8846 * macrocmd.c (show_pp_source_pos): Style the file names.
8847
0c820d67
TT
88482019-02-17 Tom Tromey <tom@tromey.com>
8849
8850 PR tui/24197:
8851 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8852
a0087920
TT
88532019-02-17 Tom Tromey <tom@tromey.com>
8854
8855 * ada-lang.c (user_select_syms): Use filtered printing.
8856 * utils.c (wrap_style): New global.
8857 (desired_style): Remove.
8858 (emit_style_escape): Add stream parameter.
8859 (set_output_style, reset_terminal_style, prompt_for_continue):
8860 Update.
8861 (flush_wrap_buffer): Only flush gdb_stdout.
8862 (wrap_here): Set wrap_style.
8863 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8864 treat escape sequences as a character. Change when wrap buffer is
8865 flushed.
8866 (fputs_styled): Do not set the output style when the default is
8867 requested.
8868 * ui-style.h (struct ui_file_style) <is_default>: New method.
8869 * source.c (print_source_lines_base): Emit escape sequences in one
8870 piece.
8871
75ba10dc
JB
88722019-02-17 Joel Brobecker <brobecker@adacore.com>
8873
8874 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8875 integers and enumeration types.
8876
a2cd4f14
JB
88772019-02-17 Joel Brobecker <brobecker@adacore.com>
8878
8879 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8880 instead of lookup_symbol_in_language
8881 (do_exact_match): New function.
8882 (ada_get_symbol_name_matcher): Return do_exact_match when
8883 doing a verbatim match.
8884
485b851b
TT
88852019-02-15 Tom Tromey <tromey@adacore.com>
8886
8887 * ravenscar-thread.c (ravenscar_thread_target::resume)
8888 (ravenscar_thread_target::wait): Special case wildcard requests.
8889
0b790b1e
TT
88902019-02-15 Tom Tromey <tromey@adacore.com>
8891
8892 * ravenscar-thread.c (base_ptid): Remove.
8893 (struct ravenscar_thread_target) <close>: New method.
8894 <m_base_ptid>: New member.
8895 <update_inferior_ptid, active_task, task_is_currently_active,
8896 runtime_initialized>: Declare methods.
8897 <ravenscar_thread_target>: Add constructor.
8898 (ravenscar_thread_target::task_is_currently_active)
8899 (ravenscar_thread_target::update_inferior_ptid)
8900 (ravenscar_runtime_initialized): Rename. Now methods.
8901 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8902 (ravenscar_thread_target::update_thread_list): Update.
8903 (ravenscar_thread_target::active_task): Now method.
8904 (ravenscar_thread_target::store_registers)
8905 (ravenscar_thread_target::prepare_to_store)
8906 (ravenscar_thread_target::prepare_to_store)
8907 (ravenscar_thread_target::mourn_inferior): Update.
8908 (ravenscar_inferior_created): Use "new" to create target.
8909 (ravenscar_thread_target::get_ada_task_ptid): Update.
8910 (_initialize_ravenscar): Don't initialize base_ptid.
8911 (ravenscar_ops): Remove global.
8912
dea57a62
TT
89132019-02-15 Tom Tromey <tromey@adacore.com>
8914
8915 * target.h (push_target): Declare new overload.
8916 * target.c (push_target): New overload, taking an rvalue reference.
8917 * remote.c (remote_target::open_1): Use push_target overload.
8918 * corelow.c (core_target_open): Use push_target overload.
8919
989f3c58
TT
89202019-02-15 Tom Tromey <tromey@adacore.com>
8921
8922 * ravenscar-thread.c (is_ravenscar_task)
8923 (ravenscar_task_is_currently_active): Return bool.
8924 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
8925 (_initialize_ravenscar): Remove "(void)".
8926 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
8927 Return bool.
8928
6cbcc006
TT
89292019-02-15 Tom Tromey <tromey@adacore.com>
8930
8931 * ravenscar-thread.c (ravenscar_runtime_initializer)
8932 (has_ravenscar_runtime, get_running_thread_id)
8933 (ravenscar_thread_target::resume): Fix indentation.
8934
7657f14d
TT
89352019-02-15 Tom Tromey <tromey@adacore.com>
8936
8937 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
8938 from ravenscar_arch_ops.
8939 (sparc_ravenscar_ops::fetch_registers)
8940 (sparc_ravenscar_ops::store_registers): Now methods.
8941 (sparc_ravenscar_prepare_to_store): Remove.
8942 (sparc_ravenscar_ops): Redefine.
8943 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
8944 methods and destructor. Remove members.
8945 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
8946 (ravenscar_thread_target::store_registers)
8947 (ravenscar_thread_target::prepare_to_store): Update.
8948 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
8949 Remove.
8950 (struct ppc_ravenscar_powerpc_ops): Derive from
8951 ravenscar_arch_ops.
8952 (ppc_ravenscar_powerpc_ops::fetch_registers)
8953 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
8954 (ppc_ravenscar_powerpc_ops): Redefine.
8955 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
8956 (ppc_ravenscar_e500_ops::fetch_registers)
8957 (ppc_ravenscar_e500_ops::store_registers): Now methods.
8958 (ppc_ravenscar_e500_ops): Redefine.
8959 * aarch64-ravenscar-thread.c
8960 (aarch64_ravenscar_generic_prepare_to_store): Remove.
8961 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
8962 (aarch64_ravenscar_fetch_registers)
8963 (aarch64_ravenscar_store_registers): Now methods.
8964 (aarch64_ravenscar_ops): Redefine.
8965
5b6ea500
TT
89662019-02-15 Tom Tromey <tromey@adacore.com>
8967
8968 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
8969 (ravenscar_thread_target::stopped_by_hw_breakpoint)
8970 (ravenscar_thread_target::stopped_by_watchpoint)
8971 (ravenscar_thread_target::stopped_data_address)
8972 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
8973
e397fd39
TT
89742019-02-15 Tom Tromey <tromey@adacore.com>
8975
8976 * ravenscar-thread.c: Fix some typos.
8977
cc12f4a8
TT
89782019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8979 Tom Tromey <tromey@adacore.com>
8980
8981 * ada-lang.c (ada_exception_sal): Change addr_string to a
8982 std::string.
8983 (create_ada_exception_catchpoint): Update.
8984
5f486660
TT
89852019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8986 Tom Tromey <tromey@adacore.com>
8987
8988 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
8989 (bp_location_ops): Remove.
8990 (base_breakpoint_allocate_location): Update.
8991 (free_bp_location): Update.
8992 * ada-lang.c (class ada_catchpoint_location)
8993 <ada_catchpoint_location>: Remove ops parameter.
8994 (ada_catchpoint_location_dtor): Remove.
8995 (ada_catchpoint_location_ops): Remove.
8996 (allocate_location_exception): Update.
8997 * breakpoint.h (struct bp_location_ops): Remove.
8998 (class bp_location) <bp_location>: Remove bp_location_ops
8999 parameter.
9000 <~bp_location>: Add destructor.
9001 <ops>: Remove.
9002
b671c7fb
TS
90032019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9004 Pedro Alves <palves@redhat.com>
9005
9006 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9007 'PATH_MAX'.
9008
8071c5ce
DM
90092019-02-14 David Michael <fedora.dm0@gmail.com>
9010 Samuel Thibault <samuel.thibault@gnu.org>
9011 Thomas Schwinge <thomas@codesourcery.com>
9012
9013 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9014 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9015
b1041ae0
TS
90162019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9017
924514e1
TS
9018 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9019 (check_empty): Use "const char *".
9020
c29ee8d4
TS
9021 * gnu-nat.c (gnu_nat_target::detach): Instead of
9022 'detach_inferior (pid)' call
9023 'detach_inferior (find_inferior_pid (pid))'.
9024
6c6ef69f
TS
9025 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9026 'nat/fork-inferior.o'.
9027 * gnu-nat.c: #include "nat/fork-inferior.h".
9028
2d0a338c
TS
9029 * gnu-nat.c (gnu_nat_target::detach): Instead of
9030 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9031 * gnu-nat.h: #include "inf-child.h".
9032 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9033 'i386_gnu_nat_target::fetch_registers'.
9034 (gnu_store_registers): Rename/move to
9035 'i386_gnu_nat_target::store_registers'.
9036
cabb5f06
TS
9037 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9038 * gnu-nat.h (mach_thread_info): New function.
9039 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9040
b1041ae0
TS
9041 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9042
2988d01e
KF
90432019-02-14 Frederic Konrad <konrad@adacore.com>
9044
9045 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9046
c559d709
JB
90472019-02-14 Joel Brobecker <brobecker@adacore.com>
9048
9049 * windows-nat.c (windows_add_thread): Add new parameter
9050 "main_thread_p" with default value set to false. Update
9051 function documentation as well as all callers.
9052 (windows_delete_thread): Likewise.
9053 (fake_create_process): Update call to windows_add_thread.
9054 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9055 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9056 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9057 call to windows_delete_thread.
9058
007024cc
SM
90592019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9060
9061 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9062
f62318e9
JB
90632019-02-12 John Baldwin <jhb@FreeBSD.org>
9064
9065 * symfile.c (find_separate_debug_file): Use canonical path of
9066 sysroot with child_path instead of gdb_sysroot if it is valid.
9067
cd4b7848
JB
90682019-02-12 John Baldwin <jhb@FreeBSD.org>
9069
9070 * symfile.c (find_separate_debug_file): Use child_path to
9071 determine if an object file is under a sysroot.
9072
efac4bfe
JB
90732019-02-12 John Baldwin <jhb@FreeBSD.org>
9074
9075 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9076 unittests/child-path-selftests.c.
9077 * common/pathstuff.c (child_path): New function.
9078 * common/pathstuff.h (child_path): New prototype.
9079 * unittests/child-path-selftests.c: New file.
9080
402d2bfe
JB
90812019-02-12 John Baldwin <jhb@FreeBSD.org>
9082
9083 * symfile.c (find_separate_debug_file): Look for separate debug
9084 files in debug directories under the sysroot.
9085
1ed9f74e
PW
90862019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9087
9088 * symtab.h (struct minimal_symbol data_p): New const method.
9089 (struct minimal_symbol text_p): Likewise.
9090 * symtab.c (output_source_filename): Use file name style
9091 to print file name.
9092 (print_symbol_info): Likewise.
9093 (print_msymbol_info): Use address style to print addresses.
9094 Use function name style to print executable text symbols.
9095 (expand_symtab_containing_pc): Use data_p.
9096 (find_pc_sect_compunit_symtab): Likewise.
9097
2636d81d
PW
90982019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9099
9100 * breakpoint.c (describe_other_breakpoints): Use address style
9101 to print addresses.
9102 (say_where): Likewise.
9103
ac8c53cc
PW
91042019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9105
9106 * ada-typeprint.c (print_func_type): Print function name
9107 style to print function name.
9108 * c-typeprint.c (c_print_type_1): Likewise.
9109
ea638c43
AH
91102019-02-11 Alan Hayward <alan.hayward@arm.com>
9111
9112 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9113 for execve.
9114
ab759ca8
PW
91152019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9116
9117 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9118 type_stack.
9119
aff29d1c
JB
91202019-02-10 Joel Brobecker <brobecker@adacore.com>
9121
9122 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9123 TYPE_CODE_REF types.
9124
617126bc
JW
91252019-02-08 Jim Wilson <jimw@sifive.com>
9126
9127 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9128 (riscv_linux_fregset): New.
9129 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9130
46e3ed7f
TT
91312019-02-07 Tom Tromey <tom@tromey.com>
9132
9133 * thread.c (thread_cancel_execution_command): Update.
9134 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9135 methods.
9136 (struct thread_fsm_ops): Remove.
9137 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9138 (thread_fsm_should_stop, thread_fsm_return_value)
9139 (thread_fsm_set_finished, thread_fsm_finished_p)
9140 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9141 Don't declare.
9142 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9143 * infrun.c (clear_proceed_status_thread)
9144 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9145 (print_stop_event): Update.
9146 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9147 Add constructor.
9148 (step_command_fsm_ops): Remove.
9149 (new_step_command_fsm): Remove.
9150 (step_1): Update.
9151 (step_command_fsm::should_stop): Rename from
9152 step_command_fsm_should_stop.
9153 (step_command_fsm::clean_up): Rename from
9154 step_command_fsm_clean_up.
9155 (step_command_fsm::do_async_reply_reason): Rename from
9156 step_command_fsm_async_reply_reason.
9157 (struct until_next_fsm): Inherit from thread_fsm. Add
9158 constructor.
9159 (until_next_fsm_ops): Remove.
9160 (new_until_next_fsm): Remove.
9161 (until_next_fsm::should_stop): Rename from
9162 until_next_fsm_should_stop.
9163 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9164 (until_next_fsm::do_async_reply_reason): Rename from
9165 until_next_fsm_async_reply_reason.
9166 (struct finish_command_fsm): Inherit from thread_fsm. Add
9167 constructor. Change type of breakpoint.
9168 (finish_command_fsm_ops): Remove.
9169 (new_finish_command_fsm): Remove.
9170 (finish_command_fsm::should_stop): Rename from
9171 finish_command_fsm_should_stop.
9172 (finish_command_fsm::clean_up): Rename from
9173 finish_command_fsm_clean_up.
9174 (finish_command_fsm::return_value): Rename from
9175 finish_command_fsm_return_value.
9176 (finish_command_fsm::do_async_reply_reason): Rename from
9177 finish_command_fsm_async_reply_reason.
9178 (finish_command): Update.
9179 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9180 Add constructor.
9181 (call_thread_fsm_ops): Remove.
9182 (call_thread_fsm::call_thread_fsm): Rename from
9183 new_call_thread_fsm.
9184 (call_thread_fsm::should_stop): Rename from
9185 call_thread_fsm_should_stop.
9186 (call_thread_fsm::should_notify_stop): Rename from
9187 call_thread_fsm_should_notify_stop.
9188 (run_inferior_call, call_function_by_hand_dummy): Update.
9189 * cli/cli-interp.c (should_print_stop_to_console): Update.
9190 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9191 Add constructor. Change type of location_breakpoint,
9192 caller_breakpoint.
9193 (until_break_fsm_ops): Remove.
9194 (new_until_break_fsm): Remove.
9195 (until_break_fsm::should_stop): Rename from
9196 until_break_fsm_should_stop.
9197 (until_break_fsm::clean_up): Rename from
9198 until_break_fsm_clean_up.
9199 (until_break_fsm::do_async_reply_reason): Rename from
9200 until_break_fsm_async_reply_reason.
9201 (until_break_command): Update.
9202 * thread-fsm.c: Remove.
9203 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9204
1a5c2598
TT
92052019-02-07 Tom Tromey <tom@tromey.com>
9206
9207 * yy-remap.h: Add include guard.
9208 * xtensa-tdep.h: Add include guard.
9209 * xcoffread.h: Rename include guard.
9210 * varobj-iter.h: Add include guard.
9211 * tui/tui.h: Rename include guard.
9212 * tui/tui-winsource.h: Rename include guard.
9213 * tui/tui-wingeneral.h: Rename include guard.
9214 * tui/tui-windata.h: Rename include guard.
9215 * tui/tui-win.h: Rename include guard.
9216 * tui/tui-stack.h: Rename include guard.
9217 * tui/tui-source.h: Rename include guard.
9218 * tui/tui-regs.h: Rename include guard.
9219 * tui/tui-out.h: Rename include guard.
9220 * tui/tui-layout.h: Rename include guard.
9221 * tui/tui-io.h: Rename include guard.
9222 * tui/tui-hooks.h: Rename include guard.
9223 * tui/tui-file.h: Rename include guard.
9224 * tui/tui-disasm.h: Rename include guard.
9225 * tui/tui-data.h: Rename include guard.
9226 * tui/tui-command.h: Rename include guard.
9227 * tic6x-tdep.h: Add include guard.
9228 * target/waitstatus.h: Rename include guard.
9229 * target/wait.h: Rename include guard.
9230 * target/target.h: Rename include guard.
9231 * target/resume.h: Rename include guard.
9232 * target-float.h: Rename include guard.
9233 * stabsread.h: Add include guard.
9234 * rs6000-tdep.h: Add include guard.
9235 * riscv-fbsd-tdep.h: Add include guard.
9236 * regformats/regdef.h: Rename include guard.
9237 * record.h: Rename include guard.
9238 * python/python.h: Rename include guard.
9239 * python/python-internal.h: Rename include guard.
9240 * python/py-stopevent.h: Rename include guard.
9241 * python/py-ref.h: Rename include guard.
9242 * python/py-record.h: Rename include guard.
9243 * python/py-record-full.h: Rename include guard.
9244 * python/py-record-btrace.h: Rename include guard.
9245 * python/py-instruction.h: Rename include guard.
9246 * python/py-events.h: Rename include guard.
9247 * python/py-event.h: Rename include guard.
9248 * procfs.h: Add include guard.
9249 * proc-utils.h: Add include guard.
9250 * p-lang.h: Add include guard.
9251 * or1k-tdep.h: Rename include guard.
9252 * observable.h: Rename include guard.
9253 * nto-tdep.h: Rename include guard.
9254 * nat/x86-linux.h: Rename include guard.
9255 * nat/x86-linux-dregs.h: Rename include guard.
9256 * nat/x86-gcc-cpuid.h: Add include guard.
9257 * nat/x86-dregs.h: Rename include guard.
9258 * nat/x86-cpuid.h: Rename include guard.
9259 * nat/ppc-linux.h: Rename include guard.
9260 * nat/mips-linux-watch.h: Rename include guard.
9261 * nat/linux-waitpid.h: Rename include guard.
9262 * nat/linux-ptrace.h: Rename include guard.
9263 * nat/linux-procfs.h: Rename include guard.
9264 * nat/linux-osdata.h: Rename include guard.
9265 * nat/linux-nat.h: Rename include guard.
9266 * nat/linux-namespaces.h: Rename include guard.
9267 * nat/linux-btrace.h: Rename include guard.
9268 * nat/glibc_thread_db.h: Rename include guard.
9269 * nat/gdb_thread_db.h: Rename include guard.
9270 * nat/gdb_ptrace.h: Rename include guard.
9271 * nat/fork-inferior.h: Rename include guard.
9272 * nat/amd64-linux-siginfo.h: Rename include guard.
9273 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9274 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9275 * nat/aarch64-linux.h: Rename include guard.
9276 * nat/aarch64-linux-hw-point.h: Rename include guard.
9277 * mn10300-tdep.h: Add include guard.
9278 * mips-linux-tdep.h: Add include guard.
9279 * mi/mi-parse.h: Rename include guard.
9280 * mi/mi-out.h: Rename include guard.
9281 * mi/mi-main.h: Rename include guard.
9282 * mi/mi-interp.h: Rename include guard.
9283 * mi/mi-getopt.h: Rename include guard.
9284 * mi/mi-console.h: Rename include guard.
9285 * mi/mi-common.h: Rename include guard.
9286 * mi/mi-cmds.h: Rename include guard.
9287 * mi/mi-cmd-break.h: Rename include guard.
9288 * m2-lang.h: Add include guard.
9289 * location.h: Rename include guard.
9290 * linux-record.h: Rename include guard.
9291 * linux-nat.h: Add include guard.
9292 * linux-fork.h: Add include guard.
9293 * i386-darwin-tdep.h: Rename include guard.
9294 * hppa-linux-offsets.h: Add include guard.
9295 * guile/guile.h: Rename include guard.
9296 * guile/guile-internal.h: Rename include guard.
9297 * gnu-nat.h: Rename include guard.
9298 * gdb-stabs.h: Rename include guard.
9299 * frv-tdep.h: Add include guard.
9300 * f-lang.h: Add include guard.
9301 * event-loop.h: Add include guard.
9302 * darwin-nat.h: Rename include guard.
9303 * cp-abi.h: Rename include guard.
9304 * config/sparc/nm-sol2.h: Rename include guard.
9305 * config/nm-nto.h: Rename include guard.
9306 * config/nm-linux.h: Add include guard.
9307 * config/i386/nm-i386gnu.h: Rename include guard.
9308 * config/djgpp/nl_types.h: Rename include guard.
9309 * config/djgpp/langinfo.h: Rename include guard.
9310 * compile/gcc-cp-plugin.h: Add include guard.
9311 * compile/gcc-c-plugin.h: Add include guard.
9312 * compile/compile.h: Rename include guard.
9313 * compile/compile-object-run.h: Rename include guard.
9314 * compile/compile-object-load.h: Rename include guard.
9315 * compile/compile-internal.h: Rename include guard.
9316 * compile/compile-cplus.h: Rename include guard.
9317 * compile/compile-c.h: Rename include guard.
9318 * common/xml-utils.h: Rename include guard.
9319 * common/x86-xstate.h: Rename include guard.
9320 * common/version.h: Rename include guard.
9321 * common/vec.h: Rename include guard.
9322 * common/tdesc.h: Rename include guard.
9323 * common/selftest.h: Rename include guard.
9324 * common/scoped_restore.h: Rename include guard.
9325 * common/scoped_mmap.h: Rename include guard.
9326 * common/scoped_fd.h: Rename include guard.
9327 * common/safe-iterator.h: Rename include guard.
9328 * common/run-time-clock.h: Rename include guard.
9329 * common/refcounted-object.h: Rename include guard.
9330 * common/queue.h: Rename include guard.
9331 * common/ptid.h: Rename include guard.
9332 * common/print-utils.h: Rename include guard.
9333 * common/preprocessor.h: Rename include guard.
9334 * common/pathstuff.h: Rename include guard.
9335 * common/observable.h: Rename include guard.
9336 * common/netstuff.h: Rename include guard.
9337 * common/job-control.h: Rename include guard.
9338 * common/host-defs.h: Rename include guard.
9339 * common/gdb_wait.h: Rename include guard.
9340 * common/gdb_vecs.h: Rename include guard.
9341 * common/gdb_unlinker.h: Rename include guard.
9342 * common/gdb_unique_ptr.h: Rename include guard.
9343 * common/gdb_tilde_expand.h: Rename include guard.
9344 * common/gdb_sys_time.h: Rename include guard.
9345 * common/gdb_string_view.h: Rename include guard.
9346 * common/gdb_splay_tree.h: Rename include guard.
9347 * common/gdb_setjmp.h: Rename include guard.
9348 * common/gdb_ref_ptr.h: Rename include guard.
9349 * common/gdb_optional.h: Rename include guard.
9350 * common/gdb_locale.h: Rename include guard.
9351 * common/gdb_assert.h: Rename include guard.
9352 * common/filtered-iterator.h: Rename include guard.
9353 * common/filestuff.h: Rename include guard.
9354 * common/fileio.h: Rename include guard.
9355 * common/environ.h: Rename include guard.
9356 * common/common-utils.h: Rename include guard.
9357 * common/common-types.h: Rename include guard.
9358 * common/common-regcache.h: Rename include guard.
9359 * common/common-inferior.h: Rename include guard.
9360 * common/common-gdbthread.h: Rename include guard.
9361 * common/common-exceptions.h: Rename include guard.
9362 * common/common-defs.h: Rename include guard.
9363 * common/common-debug.h: Rename include guard.
9364 * common/cleanups.h: Rename include guard.
9365 * common/buffer.h: Rename include guard.
9366 * common/btrace-common.h: Rename include guard.
9367 * common/break-common.h: Rename include guard.
9368 * cli/cli-utils.h: Rename include guard.
9369 * cli/cli-style.h: Rename include guard.
9370 * cli/cli-setshow.h: Rename include guard.
9371 * cli/cli-script.h: Rename include guard.
9372 * cli/cli-interp.h: Rename include guard.
9373 * cli/cli-decode.h: Rename include guard.
9374 * cli/cli-cmds.h: Rename include guard.
9375 * charset-list.h: Add include guard.
9376 * buildsym-legacy.h: Rename include guard.
9377 * bfin-tdep.h: Add include guard.
9378 * ax.h: Rename include guard.
9379 * arm-linux-tdep.h: Add include guard.
9380 * arm-fbsd-tdep.h: Add include guard.
9381 * arch/xtensa.h: Rename include guard.
9382 * arch/tic6x.h: Add include guard.
9383 * arch/i386.h: Add include guard.
9384 * arch/arm.h: Rename include guard.
9385 * arch/arm-linux.h: Rename include guard.
9386 * arch/arm-get-next-pcs.h: Rename include guard.
9387 * arch/amd64.h: Add include guard.
9388 * arch/aarch64-insn.h: Rename include guard.
9389 * arch-utils.h: Rename include guard.
9390 * annotate.h: Add include guard.
9391 * amd64-darwin-tdep.h: Rename include guard.
9392 * aarch64-linux-tdep.h: Add include guard.
9393 * aarch64-fbsd-tdep.h: Add include guard.
9394 * aarch32-linux-nat.h: Add include guard.
9395
ab9268d2
PW
93962019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9397
9398 * macrotab.c (macro_define_internal): New function that
9399 factorizes macro_define_object_internal and macro_define_function
9400 code.
9401 (macro_define_object_internal): Use macro_define_internal.
9402 (macro_define_function): Likewise.
9403
bb0da2b4
PW
94042019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9405
9406 * macrocmd.c (extract_identifier): Return
9407 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9408 callers.
9409
424eb552
JB
94102019-02-06 John Baldwin <jhb@FreeBSD.org>
9411
9412 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9413
1688cb29
TT
94142019-02-05 Tom Tromey <tom@tromey.com>
9415
9416 * target.c (target_stack::unpush): Move assertion earlier.
9417
b5eba2d8
TT
94182019-01-30 Tom Tromey <tom@tromey.com>
9419
9420 PR python/23615:
9421 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9422 (gdbpy_parse_and_eval): Likewise.
9423 * python/python-internal.h (gdbpy_allow_threads): New class.
9424
7054e2ff
JB
94252019-01-28 John Baldwin <jhb@FreeBSD.org>
9426
9427 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9428 (aarch64_fbsd_fpregmap): Move earlier.
9429 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9430 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9431 instead of individual calls to trad_frame_set_reg_addr.
9432 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9433 earlier.
9434 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9435 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9436 instead of individual calls to trad_frame_set_reg_addr.
9437
36c25ffa
AH
94382019-01-28 Alan Hayward <alan.hayward@arm.com>
9439
9440 * CONTRIBUTE: Replace contribution list with wiki link.
9441
a0707f3c
TT
94422019-01-25 Tom Tromey <tom@tromey.com>
9443
9444 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9445
0747795c
TT
94462019-01-25 Tom Tromey <tom@tromey.com>
9447
9448 * xtensa-linux-nat.c: Fix common/ includes.
9449 * xml-support.h: Fix common/ includes.
9450 * xml-support.c: Fix common/ includes.
9451 * x86-linux-nat.c: Fix common/ includes.
9452 * windows-nat.c: Fix common/ includes.
9453 * varobj.h: Fix common/ includes.
9454 * varobj.c: Fix common/ includes.
9455 * value.c: Fix common/ includes.
9456 * valops.c: Fix common/ includes.
9457 * utils.c: Fix common/ includes.
9458 * unittests/xml-utils-selftests.c: Fix common/ includes.
9459 * unittests/utils-selftests.c: Fix common/ includes.
9460 * unittests/unpack-selftests.c: Fix common/ includes.
9461 * unittests/tracepoint-selftests.c: Fix common/ includes.
9462 * unittests/style-selftests.c: Fix common/ includes.
9463 * unittests/string_view-selftests.c: Fix common/ includes.
9464 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9465 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9466 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9467 * unittests/rsp-low-selftests.c: Fix common/ includes.
9468 * unittests/parse-connection-spec-selftests.c: Fix common/
9469 includes.
9470 * unittests/optional-selftests.c: Fix common/ includes.
9471 * unittests/offset-type-selftests.c: Fix common/ includes.
9472 * unittests/observable-selftests.c: Fix common/ includes.
9473 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9474 * unittests/memrange-selftests.c: Fix common/ includes.
9475 * unittests/memory-map-selftests.c: Fix common/ includes.
9476 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9477 * unittests/function-view-selftests.c: Fix common/ includes.
9478 * unittests/environ-selftests.c: Fix common/ includes.
9479 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9480 * unittests/common-utils-selftests.c: Fix common/ includes.
9481 * unittests/cli-utils-selftests.c: Fix common/ includes.
9482 * unittests/array-view-selftests.c: Fix common/ includes.
9483 * ui-file.c: Fix common/ includes.
9484 * tui/tui-io.c: Fix common/ includes.
9485 * tracepoint.h: Fix common/ includes.
9486 * tracepoint.c: Fix common/ includes.
9487 * tracefile-tfile.c: Fix common/ includes.
9488 * top.h: Fix common/ includes.
9489 * top.c: Fix common/ includes.
9490 * thread.c: Fix common/ includes.
9491 * target/waitstatus.h: Fix common/ includes.
9492 * target/waitstatus.c: Fix common/ includes.
9493 * target.h: Fix common/ includes.
9494 * target.c: Fix common/ includes.
9495 * target-memory.c: Fix common/ includes.
9496 * target-descriptions.c: Fix common/ includes.
9497 * symtab.h: Fix common/ includes.
9498 * symfile.c: Fix common/ includes.
9499 * stap-probe.c: Fix common/ includes.
9500 * spu-linux-nat.c: Fix common/ includes.
9501 * sparc-nat.c: Fix common/ includes.
9502 * source.c: Fix common/ includes.
9503 * solib.c: Fix common/ includes.
9504 * solib-target.c: Fix common/ includes.
9505 * ser-unix.c: Fix common/ includes.
9506 * ser-tcp.c: Fix common/ includes.
9507 * ser-pipe.c: Fix common/ includes.
9508 * ser-base.c: Fix common/ includes.
9509 * selftest-arch.c: Fix common/ includes.
9510 * s12z-tdep.c: Fix common/ includes.
9511 * rust-exp.y: Fix common/ includes.
9512 * rs6000-aix-tdep.c: Fix common/ includes.
9513 * riscv-tdep.c: Fix common/ includes.
9514 * remote.c: Fix common/ includes.
9515 * remote-notif.h: Fix common/ includes.
9516 * remote-fileio.h: Fix common/ includes.
9517 * remote-fileio.c: Fix common/ includes.
9518 * regcache.h: Fix common/ includes.
9519 * regcache.c: Fix common/ includes.
9520 * record-btrace.c: Fix common/ includes.
9521 * python/python.c: Fix common/ includes.
9522 * python/py-type.c: Fix common/ includes.
9523 * python/py-inferior.c: Fix common/ includes.
9524 * progspace.h: Fix common/ includes.
9525 * producer.c: Fix common/ includes.
9526 * procfs.c: Fix common/ includes.
9527 * proc-api.c: Fix common/ includes.
9528 * printcmd.c: Fix common/ includes.
9529 * ppc-linux-nat.c: Fix common/ includes.
9530 * parser-defs.h: Fix common/ includes.
9531 * osdata.c: Fix common/ includes.
9532 * obsd-nat.c: Fix common/ includes.
9533 * nat/x86-linux.c: Fix common/ includes.
9534 * nat/x86-linux-dregs.c: Fix common/ includes.
9535 * nat/x86-dregs.h: Fix common/ includes.
9536 * nat/x86-dregs.c: Fix common/ includes.
9537 * nat/ppc-linux.c: Fix common/ includes.
9538 * nat/mips-linux-watch.h: Fix common/ includes.
9539 * nat/mips-linux-watch.c: Fix common/ includes.
9540 * nat/linux-waitpid.c: Fix common/ includes.
9541 * nat/linux-ptrace.h: Fix common/ includes.
9542 * nat/linux-ptrace.c: Fix common/ includes.
9543 * nat/linux-procfs.c: Fix common/ includes.
9544 * nat/linux-personality.c: Fix common/ includes.
9545 * nat/linux-osdata.c: Fix common/ includes.
9546 * nat/linux-namespaces.c: Fix common/ includes.
9547 * nat/linux-btrace.h: Fix common/ includes.
9548 * nat/linux-btrace.c: Fix common/ includes.
9549 * nat/fork-inferior.c: Fix common/ includes.
9550 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9551 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9552 * nat/aarch64-linux.c: Fix common/ includes.
9553 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9554 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9555 * namespace.h: Fix common/ includes.
9556 * mips-linux-tdep.c: Fix common/ includes.
9557 * minsyms.c: Fix common/ includes.
9558 * mi/mi-parse.h: Fix common/ includes.
9559 * mi/mi-main.c: Fix common/ includes.
9560 * mi/mi-cmd-env.c: Fix common/ includes.
9561 * memrange.h: Fix common/ includes.
9562 * memattr.c: Fix common/ includes.
9563 * maint.h: Fix common/ includes.
9564 * maint.c: Fix common/ includes.
9565 * main.c: Fix common/ includes.
9566 * machoread.c: Fix common/ includes.
9567 * location.c: Fix common/ includes.
9568 * linux-thread-db.c: Fix common/ includes.
9569 * linux-nat.c: Fix common/ includes.
9570 * linux-fork.c: Fix common/ includes.
9571 * inline-frame.c: Fix common/ includes.
9572 * infrun.c: Fix common/ includes.
9573 * inflow.c: Fix common/ includes.
9574 * inferior.h: Fix common/ includes.
9575 * inferior.c: Fix common/ includes.
9576 * infcmd.c: Fix common/ includes.
9577 * inf-ptrace.c: Fix common/ includes.
9578 * inf-child.c: Fix common/ includes.
9579 * ia64-linux-nat.c: Fix common/ includes.
9580 * i387-tdep.c: Fix common/ includes.
9581 * i386-tdep.c: Fix common/ includes.
9582 * i386-linux-tdep.c: Fix common/ includes.
9583 * i386-linux-nat.c: Fix common/ includes.
9584 * i386-go32-tdep.c: Fix common/ includes.
9585 * i386-fbsd-tdep.c: Fix common/ includes.
9586 * i386-fbsd-nat.c: Fix common/ includes.
9587 * guile/scm-type.c: Fix common/ includes.
9588 * guile/guile.c: Fix common/ includes.
9589 * go32-nat.c: Fix common/ includes.
9590 * gnu-nat.c: Fix common/ includes.
9591 * gdbthread.h: Fix common/ includes.
9592 * gdbarch-selftests.c: Fix common/ includes.
9593 * gdb_usleep.c: Fix common/ includes.
9594 * gdb_select.h: Fix common/ includes.
9595 * gdb_bfd.c: Fix common/ includes.
9596 * gcore.c: Fix common/ includes.
9597 * fork-child.c: Fix common/ includes.
9598 * findvar.c: Fix common/ includes.
9599 * fbsd-nat.c: Fix common/ includes.
9600 * event-top.c: Fix common/ includes.
9601 * event-loop.c: Fix common/ includes.
9602 * dwarf2read.c: Fix common/ includes.
9603 * dwarf2loc.c: Fix common/ includes.
9604 * dwarf2-frame.c: Fix common/ includes.
9605 * dwarf-index-cache.c: Fix common/ includes.
9606 * dtrace-probe.c: Fix common/ includes.
9607 * disasm-selftests.c: Fix common/ includes.
9608 * defs.h: Fix common/ includes.
9609 * csky-tdep.c: Fix common/ includes.
9610 * cp-valprint.c: Fix common/ includes.
9611 * cp-support.h: Fix common/ includes.
9612 * cp-support.c: Fix common/ includes.
9613 * corelow.c: Fix common/ includes.
9614 * completer.h: Fix common/ includes.
9615 * completer.c: Fix common/ includes.
9616 * compile/compile.c: Fix common/ includes.
9617 * compile/compile-loc2c.c: Fix common/ includes.
9618 * compile/compile-cplus-types.c: Fix common/ includes.
9619 * compile/compile-cplus-symbols.c: Fix common/ includes.
9620 * command.h: Fix common/ includes.
9621 * cli/cli-dump.c: Fix common/ includes.
9622 * cli/cli-cmds.c: Fix common/ includes.
9623 * charset.c: Fix common/ includes.
9624 * build-id.c: Fix common/ includes.
9625 * btrace.h: Fix common/ includes.
9626 * btrace.c: Fix common/ includes.
9627 * breakpoint.h: Fix common/ includes.
9628 * breakpoint.c: Fix common/ includes.
9629 * ax.h:
9630 (enum agent_op): Fix common/ includes.
9631 * ax-general.c (struct aop_map): Fix common/ includes.
9632 * ax-gdb.c: Fix common/ includes.
9633 * auxv.c: Fix common/ includes.
9634 * auto-load.c: Fix common/ includes.
9635 * arm-tdep.c: Fix common/ includes.
9636 * arch/riscv.c: Fix common/ includes.
9637 * arch/ppc-linux-common.c: Fix common/ includes.
9638 * arch/i386.c: Fix common/ includes.
9639 * arch/arm.c: Fix common/ includes.
9640 * arch/arm-linux.c: Fix common/ includes.
9641 * arch/arm-get-next-pcs.c: Fix common/ includes.
9642 * arch/amd64.c: Fix common/ includes.
9643 * arch/aarch64.c: Fix common/ includes.
9644 * arch/aarch64-insn.c: Fix common/ includes.
9645 * arch-utils.c: Fix common/ includes.
9646 * amd64-windows-tdep.c: Fix common/ includes.
9647 * amd64-tdep.c: Fix common/ includes.
9648 * amd64-sol2-tdep.c: Fix common/ includes.
9649 * amd64-obsd-tdep.c: Fix common/ includes.
9650 * amd64-nbsd-tdep.c: Fix common/ includes.
9651 * amd64-linux-tdep.c: Fix common/ includes.
9652 * amd64-linux-nat.c: Fix common/ includes.
9653 * amd64-fbsd-tdep.c: Fix common/ includes.
9654 * amd64-fbsd-nat.c: Fix common/ includes.
9655 * amd64-dicos-tdep.c: Fix common/ includes.
9656 * amd64-darwin-tdep.c: Fix common/ includes.
9657 * agent.c: Fix common/ includes.
9658 * ada-lang.h: Fix common/ includes.
9659 * ada-lang.c: Fix common/ includes.
9660 * aarch64-tdep.c: Fix common/ includes.
9661
2f5c153e
TT
96622019-01-25 Tom Tromey <tom@tromey.com>
9663
9664 * common/create-version.sh: Use common/version.h.
9665
adc6a863
PA
96662019-01-24 Pedro Alves <palves@redhat.com>
9667
9668 * infrun.c (signal_stop, signal_print, signal_program)
9669 (signal_catch, signal_pass): Now arrays instead of pointers.
9670 (update_signals_program_target, do_target_resume)
9671 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9672 * linux-nat.c (linux_nat_target::pass_signals)
9673 (linux_nat_target::create_inferior, linux_nat_target::attach):
9674 Adjust.
9675 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9676 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9677 * procfs.c (procfs_target::pass_signals): Adjust.
9678 * record-full.c (record_full_target::resume): Adjust.
9679 * remote.c (remote_target::pass_signals)
9680 (remote_target::program_signals): Adjust.
9681 * target-debug.h (target_debug_print_signals): Now takes a
9682 gdb::array_view as parameter. Adjust.
9683 * target.h (target_ops) <pass_signals, program_signals>: Replace
9684 pointer and length parameters with gdb::array_view.
9685 (target_pass_signals, target_program_signals): Likewise.
9686 * target-delegates.c: Regenerate.
9687
3046d67a
PA
96882019-01-24 Pedro Alves <palves@redhat.com>
9689
9690 * common/forward-scope-exit.h
9691 (forward_scope_exit::forward_scope_exit): Pass arguments to
9692 m_bind_function directly, instead of creating a std::bind and
9693 copying that.
9694
353229bf
AH
96952019-01-24 Alan Hayward <alan.hayward@arm.com>
9696
9697 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9698 for static members.
9699 (pass_in_v_vfp_candidate): Likewise.
9700
311dc83a
TT
97012019-01-23 Tom Tromey <tom@tromey.com>
9702 Pedro Alves <palves@redhat.com>
9703
9704 * regcache.c (class regcache_invalidator): Remove.
9705 (regcache::raw_write): Use make_scope_exit.
9706
296bd123
TT
97072019-01-23 Tom Tromey <tom@tromey.com>
9708
9709 * ui-out.h (class ui_out_emit_type): Update comment.
9710
979a0d13
TT
97112019-01-23 Tom Tromey <tom@tromey.com>
9712
9713 * infrun.c (fetch_inferior_event): Update comment.
9714
d238133d
TT
97152019-01-23 Tom Tromey <tom@tromey.com>
9716 Pedro Alves <palves@redhat.com>
9717
9718 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9719 parameter.
9720 (fetch_inferior_event): Use SCOPE_EXIT.
9721
9722
9885e6bb
TT
97232019-01-23 Tom Tromey <tom@tromey.com>
9724 Pedro Alves <palves@redhat.com>
9725
9726 * infrun.c (disable_thread_events): Delete.
9727 (stop_all_threads): Use SCOPE_EXIT.
9728
286526c1
TT
97292019-01-23 Tom Tromey <tom@tromey.com>
9730 Pedro Alves <palves@redhat.com>
9731
9732 * symfile.c: Include forward-scope-exit.h.
9733 (clear_symtab_users_cleanup): Replace forward declaration with
9734 a FORWARD_SCOPE_EXIT.
9735 (syms_from_objfile_1): Use the forward_scope_exit and
9736 gdb::optional instead of cleanup_function.
9737 (reread_symbols): Use the forward_scope_exit instead of
9738 cleanup_function.
9739 (clear_symtab_users_cleanup): Remove function.
9740
1db93f14
TT
97412019-01-23 Tom Tromey <tom@tromey.com>
9742 Pedro Alves <palves@redhat.com>
9743
9744 * linux-nat.c: Include scope-exit.h.
9745 (cleanup_target_stop): Remove.
9746 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9747 SCOPE_EXIT.
9748
2cc83d1e
TT
97492019-01-23 Tom Tromey <tom@tromey.com>
9750 Pedro Alves <palves@redhat.com>
9751
9752 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9753 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9754
694c6bf5
TT
97552019-01-23 Tom Tromey <tom@tromey.com>
9756 Andrew Burgess <andrew.burgess@embecosm.com>
9757 Pedro Alves <palves@redhat.com>
9758
9759 * infrun.c (fetch_inferior_event): Use scope_exit.
9760 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9761 * top.c (execute_command): Use scope_exit.
9762 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9763 * utils.c (do_bpstat_clear_actions_cleanup)
9764 (make_bpstat_clear_actions_cleanup): Remove.
9765
4c41382a
TT
97662019-01-23 Tom Tromey <tom@tromey.com>
9767 Pedro Alves <palves@redhat.com>
9768
9769 * infrun.c: Include "common/scope-exit.h"
9770 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9771 (wait_for_inferior): Use SCOPE_EXIT.
9772 (fetch_inferior_event): Use scope_exit.
9773
89f8fb50
TT
97742019-01-23 Tom Tromey <tom@tromey.com>
9775 Pedro Alves <palves@redhat.com>
9776
9777 * breakpoint.c (create_breakpoint): Remove cleanup.
9778
5419bdae
TT
97792019-01-23 Tom Tromey <tom@tromey.com>
9780 Andrew Burgess <andrew.burgess@embecosm.com>
9781 Pedro Alves <palves@redhat.com>
9782
e587ef42
PA
97832019-01-23 Pedro Alves <palves@redhat.com>
9784
9785 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9786
77f0e74c
PA
97872019-01-23 Pedro Alves <palves@redhat.com>
9788 Andrew Burgess <andrew.burgess@embecosm.com>
9789
9790 * gdbthread.h: Include "common/forward-scope-exit.h".
9791 (scoped_finish_thread_state): Redefine custom class in terms of
9792 forward_scope_exit.
9793
5b9b3e53
PA
97942019-01-23 Pedro Alves <palves@redhat.com>
9795 Andrew Burgess <andrew.burgess@embecosm.com>
9796
9797 * common/forward-scope-exit.h: New file.
9798
54b65c9b
PA
97992019-01-23 Pedro Alves <palves@redhat.com>
9800 Andrew Burgess <andrew.burgess@embecosm.com>
9801 Tom Tromey <tom@tromey.com>
9802
9803 * common/scope-exit.h: New file.
9804
cf08fb29
PA
98052019-01-23 Pedro Alves <palves@redhat.com>
9806
9807 * common/preprocessor.h (ESC): Rename to ...
9808 (ESC_PARENS): ... this.
9809 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9810 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9811
ae73e2e2
TT
98122019-01-23 Tom Tromey <tom@tromey.com>
9813
9814 * language.h (class scoped_switch_to_sym_language_if_auto):
9815 Initialize m_lang in both cases.
9816
6594e122
AH
98172019-01-23 Alan Hayward <alan.hayward@arm.com>
9818
9819 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9820 with XCNEW.
9821
a7c9855d
TT
98222019-01-22 Tom Tromey <tom@tromey.com>
9823
9824 * corelow.c: Do not include sys/file.h.
9825
93cc1d53
TT
98262019-01-22 Tom Tromey <tom@tromey.com>
9827
9828 * tui/tui-wingeneral.h: Include gdb_curses.h.
9829
38561778
TT
98302019-01-22 Tom Tromey <tom@tromey.com>
9831
9832 * source-cache.h (class source_cache) <get_source_lines,
9833 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9834
37b3ab5b
TT
98352019-01-22 Tom Tromey <tom@tromey.com>
9836
9837 * remote-fileio.h (struct remote_target): Declare.
9838
3fabc016
TT
98392019-01-22 Tom Tromey <tom@tromey.com>
9840
9841 * python/py-arch.c: Do not include py-ref.h.
9842 * python/py-bpevent.c: Do not include py-ref.h.
9843 * python/py-cmd.c: Do not include py-ref.h.
9844 * python/py-continueevent.c: Do not include py-ref.h.
9845 * python/py-event.h: Do not include py-ref.h.
9846 * python/py-evtregistry.c: Do not include py-ref.h.
9847 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9848 * python/py-frame.c: Do not include py-ref.h.
9849 * python/py-framefilter.c: Do not include py-ref.h.
9850 * python/py-function.c: Do not include py-ref.h.
9851 * python/py-infevents.c: Do not include py-ref.h.
9852 * python/py-linetable.c: Do not include py-ref.h.
9853 * python/py-objfile.c: Do not include py-ref.h.
9854 * python/py-param.c: Do not include py-ref.h.
9855 * python/py-prettyprint.c: Do not include py-ref.h.
9856 * python/py-progspace.c: Do not include py-ref.h.
9857 * python/py-symbol.c: Do not include py-ref.h.
9858 * python/py-symtab.c: Do not include py-ref.h.
9859 * python/py-type.c: Do not include py-ref.h.
9860 * python/py-unwind.c: Do not include py-ref.h.
9861 * python/py-utils.c: Do not include py-ref.h.
9862 * python/py-value.c: Do not include py-ref.h.
9863 * python/py-varobj.c: Do not include py-ref.h.
9864 * python/py-xmethods.c: Do not include py-ref.h.
9865 * python/python.c: Do not include py-ref.h.
9866 * varobj.c: Do not include py-ref.h.
9867
6b4d7774
TT
98682019-01-22 Tom Tromey <tom@tromey.com>
9869
9870 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9871 keyword for bcache.
9872
7af7e9b5
TT
98732019-01-22 Tom Tromey <tom@tromey.com>
9874
9875 * compile/compile-cplus-types.c: Remove a comment by #include.
9876
951d1049
TT
98772019-01-22 Tom Tromey <tom@tromey.com>
9878
9879 * compile/gcc-c-plugin.h: Include compile-internal.h.
9880
d65d5705
TT
98812019-01-22 Tom Tromey <tom@tromey.com>
9882
9883 * stabsread.c (EXTERN): Do not define.
9884 (symnum, next_symbol_text_func, processing_gcc_compilation)
9885 (within_function, global_sym_chain, global_stabs)
9886 (previous_stab_code, this_object_header_files)
9887 (n_this_object_header_files)
9888 (n_allocated_this_object_header_files): Define.
9889 * stabsread.h (EXTERN): Never define. Use "extern".
9890
b6fb1ee5
PW
98912019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9892
9893 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9894 history_value.
9895
be6d4f74
TT
98962019-01-21 Tom Tromey <tom@tromey.com>
9897
9898 * ui-out.c: Fix includes.
9899 * tui/tui-source.c: Fix includes.
9900 * target.c: Fix includes.
9901 * remote.c: Fix includes.
9902 * regcache.c: Fix includes.
9903 * python/py-block.c: Fix includes.
9904 * printcmd.c: Fix includes.
9905 * or1k-tdep.c: Fix includes.
9906 * mi/mi-main.c: Fix includes.
9907 * m32r-tdep.c: Fix includes.
9908 * csky-tdep.c: Fix includes.
9909 * compile/compile-cplus-types.c: Fix includes.
9910 * cli/cli-interp.c: Fix includes.
9911
73021deb
AH
99122019-01-21 Alan Hayward <alan.hayward@arm.com>
9913
9914 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9915 for padding.
9916
7932255d
TT
99172019-01-16 Tom Tromey <tom@tromey.com>
9918
9919 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
9920 earlier.
9921 (struct objfile) <msymbols_range>: Move from top level.
9922 <msymbols>: New method.
9923 (class objfile_msymbols): Remove.
9924 * symtab.c (default_collect_symbol_completion_matches_break_on):
9925 Update.
9926 * symmisc.c (dump_msymbols): Update.
9927 * stabsread.c (scan_file_globals): Update.
9928 * objc-lang.c (info_selectors_command, info_classes_command)
9929 (find_methods): Update.
9930 * minsyms.c (find_solib_trampoline_target): Update.
9931 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
9932 * coffread.c (coff_symfile_read): Update.
9933 * ada-lang.c (ada_lookup_simple_minsym)
9934 (ada_collect_symbol_completion_matches): Update.
9935
604b1bfb
TT
99362019-01-16 Tom Tromey <tom@tromey.com>
9937
9938 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
9939 type. Remove no-argument constructor.
9940 <iterator::operator++>: Simplify.
9941 <begin>: Update.
9942 <end>: Use minimal_symbol_count.
9943
f252c6d5
TT
99442019-01-16 Tom Tromey <tom@tromey.com>
9945
9946 * objfiles.h (struct objfile) <psymtabs>: New method.
9947 (class objfile_psymtabs): Remove.
9948 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
9949 typedef.
9950 <range>: New method.
9951 (require_partial_symbols): Change return type.
9952 * psymtab.c (require_partial_symbols)
9953 (psym_expand_symtabs_matching): Update.
9954 * mdebugread.c (parse_partial_symbols): Update.
9955 * dbxread.c (dbx_end_psymtab): Update.
9956
b669c953
TT
99572019-01-15 Tom Tromey <tom@tromey.com>
9958
9959 * symtab.c (lookup_objfile_from_block)
9960 (lookup_symbol_in_objfile_symtabs)
9961 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
9962 (find_line_symtab, info_sources_command)
9963 (default_collect_symbol_completion_matches_break_on)
9964 (make_source_files_completion_list): Update.
9965 * symmisc.c (print_objfile_statistics, dump_objfile)
9966 (maintenance_print_symbols, maintenance_info_symtabs)
9967 (maintenance_check_symtabs, maintenance_info_line_tables):
9968 Update.
9969 * source.c (select_source_symtab)
9970 (forget_cached_source_info_for_objfile): Update.
9971 * objfiles.h (class objfile_compunits): Remove.
9972 (struct objfile) <compunits_range>: New typedef.
9973 (compunits): New method.
9974 * objfiles.c (objfile_relocate1): Update.
9975 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
9976 * maint.c (count_symtabs_and_blocks): Update.
9977 * linespec.c (iterate_over_all_matching_symtabs): Update.
9978 * cp-support.c (add_symbol_overload_list_qualified): Update.
9979 * coffread.c (coff_symtab_read): Update.
9980 * ada-lang.c (add_nonlocal_symbols)
9981 (ada_collect_symbol_completion_matches)
9982 (ada_add_global_exceptions): Update.
9983
7e955d83
TT
99842019-01-15 Tom Tromey <tom@tromey.com>
9985
9986 * progspace.h (program_space) <objfiles_safe_range>: New
9987 typedef.
9988 <objfiles_safe>: New method.
9989 * objfiles.h (class all_objfiles_safe): Remove.
9990 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
9991 * jit.c (jit_inferior_exit_hook): Update.
9992
2030c079
TT
99932019-01-17 Tom Tromey <tom@tromey.com>
9994
9995 * progspace.h (program_space) <objfiles_range>: New typedef.
9996 <objfiles>: New method.
9997 <objfiles_head>: Rename from objfiles.
9998 (object_files): Update.
9999 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10000 * guile/scm-pretty-print.c
10001 (ppscm_find_pretty_printer_from_objfiles): Update.
10002 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10003 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10004 Update.
10005 * python/py-progspace.c (pspy_get_objfiles): Update.
10006 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10007 Update.
10008 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10009 (objfpy_lookup_objfile_by_build_id): Update.
10010 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10011 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10012 Update.
10013 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10014 (expand_symtab_containing_pc, lookup_objfile_from_block)
10015 (lookup_static_symbol, basic_lookup_transparent_type)
10016 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10017 (find_line_symtab, info_sources_command)
10018 (default_collect_symbol_completion_matches_break_on)
10019 (make_source_files_completion_list, find_main_name): Update.
10020 * symmisc.c (print_symbol_bcache_statistics)
10021 (print_objfile_statistics, maintenance_print_symbols)
10022 (maintenance_print_msymbols, maintenance_print_objfiles)
10023 (maintenance_info_symtabs, maintenance_check_symtabs)
10024 (maintenance_expand_symtabs, maintenance_info_line_tables):
10025 Update.
10026 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10027 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10028 (map_overlay_command, unmap_overlay_command)
10029 (simple_overlay_update, expand_symtabs_matching)
10030 (map_symbol_filenames): Update.
10031 * symfile-debug.c (set_debug_symfile): Update.
10032 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10033 Update.
10034 * source.c (select_source_symtab, forget_cached_source_info):
10035 Update.
10036 * solib.c (solib_read_symbols): Update.
10037 * solib-spu.c (append_ocl_sos): Update.
10038 * psymtab.c (maintenance_print_psymbols)
10039 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10040 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10041 * printcmd.c (info_symbol_command): Update.
10042 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10043 Update.
10044 * objfiles.h (class all_objfiles): Remove.
10045 * objfiles.c (have_partial_symbols, have_full_symbols)
10046 (have_minimal_symbols, qsort_cmp, update_section_map)
10047 (shared_objfile_contains_address_p)
10048 (default_iterate_over_objfiles_in_search_order): Update.
10049 * objc-lang.c (info_selectors_command, info_classes_command)
10050 (find_methods): Update.
10051 * minsyms.c (find_solib_trampoline_target): Update.
10052 * maint.c (maintenance_info_sections)
10053 (maintenance_translate_address, count_symtabs_and_blocks):
10054 Update.
10055 * main.c (captured_main_1): Update.
10056 * linux-thread-db.c (try_thread_db_load_from_pdir)
10057 (has_libpthread): Update.
10058 * linespec.c (iterate_over_all_matching_symtabs)
10059 (search_minsyms_for_name): Update.
10060 * jit.c (jit_find_objf_with_entry_addr): Update.
10061 * hppa-tdep.c (find_unwind_entry)
10062 (hppa_lookup_stub_minimal_symbol): Update.
10063 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10064 Update.
10065 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10066 (elf_gnu_ifunc_resolve_by_got): Update.
10067 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10068 * dwarf-index-write.c (save_gdb_index_command): Update.
10069 * cp-support.c (add_symbol_overload_list_qualified): Update.
10070 * breakpoint.c (create_overlay_event_breakpoint)
10071 (create_longjmp_master_breakpoint)
10072 (create_std_terminate_master_breakpoint)
10073 (create_exception_master_breakpoint): Update.
10074 * blockframe.c (find_pc_partial_function): Update.
10075 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10076 (ada_collect_symbol_completion_matches)
10077 (ada_add_global_exceptions): Update.
10078
776489e0
TT
100792019-01-17 Tom Tromey <tom@tromey.com>
10080
10081 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10082 declare VEC.
10083 (solib_target_parse_libraries): Change return type.
10084 (library_list_start_segment, library_list_start_section)
10085 (library_list_end_library, library_list_start_library); Update.
10086 (solib_target_free_library_list): Remove.
10087 (solib_target_parse_libraries): Remove cleanup. Change return
10088 type.
10089 (solib_target_current_sos): Update.
10090
6471e7d2
TT
100912019-01-17 Tom Tromey <tromey@bapiya>
10092
10093 * valprint.c: Replace "the the" with "the".
10094 * symtab.c: Replace "the the" with "the".
10095 * solib.c: Replace "the the" with "the".
10096 * solib-dsbt.c: Replace "the the" with "the".
10097 * linespec.c: Replace "the the" with "the".
10098 * dwarf2loc.h: Replace "the the" with "the".
10099 * amd64-windows-tdep.c: Replace "the the" with "the".
10100 * aarch64-tdep.c: Replace "the the" with "the".
10101
c24bdb02
KS
101022019-01-16 Keith Seitz <keiths@redhat.com>
10103
10104 PR gdb/23773
10105 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10106 <builder>: Rename to ..
10107 <m_builder>: ... this and make private.
10108 (dwarf2_cu::get_builder): New method. Change all users of
10109 `builder' to use this method.
10110 (dwarf2_start_symtab): Move to ...
10111 (dwarf2_cu::start_symtab): ... here. Update all callers
10112 (setup_type_unit_groups): Move to ...
10113 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10114 callers.
10115 (dwarf2_cu::reset_builder): New method.
10116 (process_full_compunit, process_full_type_unit): Use
10117 dwarf2_cu::reset_builder.
10118 (follow_die_offset): Record the ancestor CU if it is different
10119 from the followed DIE's CU.
10120 (follow_die_sig_1): Likewise.
10121
8d64371b
TT
101222019-01-15 Tom Tromey <tom@tromey.com>
10123
10124 * remote.c (class remote_state) <buf>: Now a char_vector.
10125 <buf_size>: Remove.
10126 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10127 parameter.
10128 (remote_target::getpkt_or_notif_sane_1)
10129 (remote_target::getpkt_sane)
10130 (remote_target::getpkt_or_notif_sane): Likewise.
10131 (class remote_target) <putpkt>: New overload.
10132 (remote_target::read_frame): Change type of "buf_p". Remove
10133 sizeof_p parameter.
10134 (packet_ok): New overload.
10135 (packet_check_result): New overload.
10136 Update all uses.
10137
bb277751
TT
101382019-01-14 Tom Tromey <tom@tromey.com>
10139
10140 * remote-notif.c (handle_notification, remote_notif_ack)
10141 (remote_notif_parse): Make "buf" const.
10142 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10143 const.
10144 (remote_notif_parse, remote_notif_ack, handle_notification):
10145 Likewise.
10146 * remote.c (remote_notif_stop_parse): Make "buf" const.
10147 (remote_target::remote_parse_stop_reply): Make "buf" const.
10148 (remote_notif_stop_ack): Make "buf" const.
10149
05be00a8
TT
101502019-01-14 Tom Tromey <tom@tromey.com>
10151
10152 * remote.c (remote_console_output): Make parameter const.
10153
491adeca
TT
101542019-01-14 Tom Tromey <tom@tromey.com>
10155
10156 * target-debug.h (target_debug_print_signals): Constify.
10157 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10158 * procfs.c (procfs_target::pass_signals): Update.
10159 * linux-nat.c (linux_nat_target::pass_signals): Update.
10160 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10161 * target-delegates.c: Rebuild.
10162 * remote.c (remote_target::program_signals): Update.
10163 (remote_target::pass_signals): Update.
10164 * target.c (target_pass_signals): Constify argument.
10165 (target_program_signals): Likewise.
10166 * target.h (struct target_ops) <pass_signals, program_signals>:
10167 Constify argument.
10168 (target_pass_signals, target_program_signals): Constify argument.
10169
bbd94648
TT
101702019-01-14 Tom Tromey <tom@tromey.com>
10171
10172 PR tui/28819:
10173 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10174
6f072a10
PFC
101752019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10176
10177 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10178 field.
10179 * rs6000-tdep.c: Include reggroups.h.
10180 (IS_V_ALIAS_PSEUDOREG): Define.
10181 (rs6000_register_name): Return names for the "vX" aliases.
10182 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10183 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10184 aliases. Call default_register_reggroup_p for all other
10185 pseudo-registers.
10186 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10187 New functions.
10188 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10189 Handle "vX" aliases.
10190 (v_alias_pseudo_register_collect): New function.
10191 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10192 (rs6000_gdbarch_init): Initialize "vX" aliases as
10193 pseudo-registers. Restore registration of
10194 rs6000_pseudo_register_reggroup_p with
10195 set_tdesc_pseudo_register_reggroup_p.
10196
1a782351
MF
101972019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10198
10199 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10200 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10201 set_gdbarch_num_pseudo_regs.
10202
d73cff18
PW
102032019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10204
10205 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10206 Remove arg prefixname, add do_set and do_show.
10207 Add member functions set_list and show_list.
10208 * cli/cli-style.c (class cli_style_option): Update accordingly.
10209 (style_set_list): Move to file scope.
10210 (style_show_list): Likewise.
10211 (set_style): Call help_list.
10212 (show_style): Call cmd_show_list.
10213 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10214 Update to use the new macro.
10215
60a90376
JB
102162019-10-12 Joel Brobecker <brobecker@adacore.com>
10217
10218 * ada-lang.c (_initialize_ada_language): Expand the help text
10219 for the "catch exception" command.
10220
9d7c67bf
PW
102212019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10222
10223 * symtab.c (matching_obj_sections): Initialize obj,
10224 declare it closer to its usage.
10225
7cf47dc4
TT
102262019-01-10 Tom Tromey <tom@tromey.com>
10227
10228 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10229 (basic_inf_threads_range): Remove.
10230 (inf_threads_range, inf_non_exited_threads_range)
10231 (safe_inf_threads_range): Use next_adapter.
10232
d3cb6808
KS
102332019-01-10 Keith Seitz <keiths@redhat.com>
10234
10235 PR gdb/23712
10236 PR symtab/23010
10237 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10238 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10239
63a20375
KS
102402019-01-10 Keith Seitz <keiths@redhat.com>
10241
10242 PR gdb/23712
10243 PR symtab/23010
10244 * dictionary.c (pending_to_vector): Remove.
10245 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10246 Remove _1 suffix, replacing functions of the same name. Update
10247 all callers.
10248 (dict_create_hashed, dict_create_hashed_expandable)
10249 (dict_create_linear, dict_create_linear_expandable, dict_free)
10250 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10251 Make functions static.
10252
b026f593
KS
102532019-01-10 Keith Seitz <keiths@redhat.com>
10254
10255 PR gdb/23712
10256 PR symtab/23010
10257 * dictionary.h (struct dictionary): Replace declaration with
10258 multidictionary.
10259 (dict_create_hashed, dict_create_hashed_expandable)
10260 (dict_create_linear, dict_create_linear_expandable)
10261 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10262 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10263 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10264 taking multidictionary argument.
10265 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10266 * block.h (struct block) <dict>: Change to multidictionary
10267 and rename `multidict'.
10268 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10269 symmisc.c: Update all dictionary references to multidictionary.
10270
c7748ee9
KS
102712019-01-10 Keith Seitz <keiths@redhat.com>
10272
10273 PR gdb/23712
10274 PR symtab/23010
10275 * dictionary.c: Include unordered_map.
10276 (pending_to_vector): New function.
10277 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10278 Rewrite the non-"_1" functions to take vector instead
10279 of linked list.
10280 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10281 "new" _1 versions of the same name.
10282 (multidictionary): Define.
10283 (std::hash<enum language): New definition.
10284 (collate_pending_symbols_by_language, mdict_create_hashed)
10285 (mdict_create_hashed_expandable, mdict_create_linear)
10286 (mdict_create_linear_expandable, mdict_free)
10287 (find_language_dictionary, create_new_language_dictionary)
10288 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10289 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10290 (mdict_size, mdict_empty): New functions.
10291 * dictionary.h (mdict_iterator): Define.
10292
67aa1f3c
PA
102932019-01-10 Pedro Alves <palves@redhat.com>
10294
10295 * breakpoint.c (read_uploaded_action)
10296 (create_tracepoint_from_upload): Adjust to use
10297 gdb::unique_xmalloc_ptr.
10298 * ctf.c (ctf_write_uploaded_tp):
10299 (SET_ARRAY_FIELD): Use emplace_back.
10300 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10301 * tracefile-tfile.c (tfile_write_uploaded_tp):
10302 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10303 gdb::unique_xmalloc_ptr.
10304 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10305 at_string, cond_string, cmd_strings>: Replace char pointers
10306 with gdb::unique_xmalloc_ptr.
10307
2f667667
PA
103082019-01-10 Pedro Alves <palves@redhat.com>
10309
10310 * solib-target.c (library_list_start_library): Don't xstrdup name.
10311
36cb7237
PA
103122019-01-10 Pedro Alves <palves@redhat.com>
10313
10314 * mdebugread.c (parse_partial_symbols): Use
10315 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10316
da584958
AB
103172019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10318
10319 * linux-fork.c (scoped_switch_fork_info)
10320 <~scoped_switch_fork_info>: Fix incorrect variable name.
10321
1ef8573c
AB
103222019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 * linux-fork.c (scoped_switch_fork_info)
10325 <scoped_switch_fork_info>: Make explicit.
10326 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10327
8d7bcccb
TT
103282019-01-10 Tom Tromey <tom@tromey.com>
10329
10330 * objfiles.h (objfile::reset_psymtabs): Update.
10331 * objfiles.c (objfile::objfile): Update.
10332 * psymtab.h (psymtab_storage::obstack): Update.
10333 (psymtab_storage::m_obstack): Use gdb::optional.
10334 (class psymtab_storage): Update comment. Remove objfile
10335 parameter.
10336 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10337
b596a3c7
TT
103382019-01-10 Tom Tromey <tom@tromey.com>
10339
10340 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10341 <free_psymtabs>: Now private.
10342 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10343 (allocate_psymtab): Use new method.
10344
a9342b62
TT
103452019-01-10 Tom Tromey <tom@tromey.com>
10346
10347 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10348 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10349 * mdebugread.c (parse_partial_symbols): Use
10350 allocate_dependencies.
10351 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10352 allocate_dependencies.
10353 (process_psymtab_comp_unit_reader)
10354 (build_type_psymtab_dependencies): Likewise.
10355 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10356
5af70966
TT
103572019-01-10 Tom Tromey <tom@tromey.com>
10358
10359 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10360 PSYMBOL_SET_LANGUAGE.
10361 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10362
5923a04c
TT
103632019-01-10 Tom Tromey <tom@tromey.com>
10364
10365 * psymtab.h (psymtab_storage::obstack): New method.
10366 <m_obstack>: Rename from obstack; now private.
10367 * psymtab.c (psymtab_storage): Update.
10368 * dwarf2read.c (create_addrmap_from_index)
10369 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10370 Update.
10371
6d6a12bf
TT
103722019-01-10 Tom Tromey <tom@tromey.com>
10373
10374 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10375 * objfiles.h (objfile::reset_psymtabs): New method.
10376
d320c2b5
TT
103772019-01-10 Tom Tromey <tom@tromey.com>
10378
10379 * symmisc.c (print_symbol_bcache_statistics): Update.
10380 (print_objfile_statistics): Update.
10381 * symfile.c (reread_symbols): Update.
10382 * psymtab.h (class psymtab_storage): New.
10383 * psymtab.c (psymtab_storage): New constructor.
10384 (~psymtab_storage): New destructor.
10385 (require_partial_symbols): Update.
10386 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10387 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10388 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10389 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10390 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10391 (start_psymtab_common, end_psymtab_common)
10392 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10393 (allocate_psymtab): Update.
10394 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10395 Update.
10396 (dump_psymtab_addrmap, maintenance_print_psymbols)
10397 (maintenance_check_psymtabs): Update.
10398 (class objfile_psymtabs): Move to objfiles.h.
10399 * psympriv.h (discard_psymtab): Now inline.
10400 (psymtab_discarder::psymtab_discarder): Update.
10401 (psymtab_discarder::~psymtab_discarder): Update.
10402 (ALL_OBJFILE_PSYMTABS): Rewrite.
10403 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10404 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10405 Remove fields.
10406 <partial_symtabs>: New field.
10407 (class objfile_psymtabs): Move from psymtab.h. Update.
10408 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10409 psymbol_cache.
10410 (objfile::~objfile): Don't destroy psymbol_cache.
10411 * mdebugread.c (parse_partial_symbols): Update.
10412 * dwarf2read.c (create_addrmap_from_index)
10413 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10414 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10415 (add_partial_subprogram, dwarf2_ranges_read): Update.
10416 * dwarf-index-write.c (write_address_map)
10417 (write_one_signatured_type, recursively_write_psymbols)
10418 (class debug_names, class debug_names, write_psymtabs_to_index):
10419 Update.
10420
1d94a5a3
TT
104212019-01-10 Tom Tromey <tom@tromey.com>
10422
10423 * symtab.h (SYMBOL_SET_NAMES): Update.
10424 (symbol_set_names): Update.
10425 (MSYMBOL_SET_NAMES): Update.
10426 * symtab.c (symbol_set_names): Change argument to be an
10427 objfile_per_bfd_storage.
10428 * psymtab.c (add_psymbol_to_bcache): Update.
10429 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10430
0f14768a
TT
104312019-01-10 Tom Tromey <tom@tromey.com>
10432
10433 * symtab.c (create_demangled_names_hash): Change argument to be an
10434 objfile_per_bfd_storage.
10435 (symbol_set_names): Update.
10436
6eee24ce
TT
104372019-01-10 Tom Tromey <tom@tromey.com>
10438
10439 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10440 init_psymbol_list.
10441 * psymtab.c (init_psymbol_list): Do nothing if already called.
10442 * psympriv.h (init_psymbol_list): Add comment.
10443 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10444 init_psymbol_list.
10445 * dbxread.c (dbx_symfile_read): Unconditionally call
10446 init_psymbol_list.
10447
75aedd27
TT
104482019-01-10 Tom Tromey <tom@tromey.com>
10449
10450 * xcoffread.c (scan_xcoff_symtab): Update.
10451 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10452 "where".
10453 * mdebugread.c (parse_partial_symbols)
10454 (handle_psymbol_enumerators): Update.
10455 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10456 * dbxread.c (read_dbx_symtab): Update.
10457 * psympriv.h (psymbol_placement): New enum.
10458 (add_psymbol_to_list): Update.
10459
939652a5
TT
104602019-01-10 Tom Tromey <tom@tromey.com>
10461
10462 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10463 static_psymbols parameters.
10464 (scan_xcoff_symtab): Update.
10465 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10466 static_psymbols parameters.
10467 * psympriv.h (start_psymtab_common): Update.
10468 * mdebugread.c (parse_partial_symbols): Update.
10469 * dwarf2read.c (create_partial_symtab): Update.
10470 * dbxread.c (read_dbx_symtab): Update.
10471 (start_psymtab): Remove global_psymbols and static_psymbols
10472 parameters.
10473
baa62830
TT
104742019-01-10 Tom Tromey <tom@tromey.com>
10475
10476 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10477 * psymtab.c (allocate_psymtab): Add comment.
10478 * psympriv.h (allocate_psymtab): Add comment.
10479 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10480 initializations.
10481 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10482
0e8f53ba
TT
104832019-01-10 Tom Tromey <tom@tromey.com>
10484
10485 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10486 Don't declare.
10487 * mipsread.c: Include mdebugread.h.
10488 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10489 Declare.
10490 * elfread.c: Include mdebugread.h.
10491
b22a7c6a
TT
104922019-01-09 Tom Tromey <tom@tromey.com>
10493
10494 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10495 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10496 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10497 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10498 (psym_lookup_symbol, psym_find_last_source_symtab)
10499 (psym_forget_cached_source_info, psym_print_stats)
10500 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10501 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10502 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10503 (psym_find_compunit_symtab_by_address)
10504 (maintenance_print_psymbols, maintenance_info_psymtabs)
10505 (maintenance_check_psymtabs): Use ranged for.
10506 * psymtab.h (class objfile_psymtabs): New.
10507 (require_partial_symbols): Return objfile_psymtabs.
10508 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10509
3b9d3ac2
TT
105102019-01-09 Tom Tromey <tom@tromey.com>
10511
10512 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10513 (find_pc_mapped_section, list_overlays_command)
10514 (map_overlay_command, unmap_overlay_command)
10515 (simple_overlay_update): Use all_objfiles.
10516 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10517 * printcmd.c (info_symbol_command): Use all_objfiles.
10518 * objfiles.h (ALL_OBJSECTIONS): Remove.
10519 * maint.c (maintenance_translate_address): Use all_objfiles.
10520 * gcore.c (gcore_create_callback): Use all_objfiles.
10521 (objfile_find_memory_regions): Likewise.
10522
8b31193a
TT
105232019-01-09 Tom Tromey <tom@tromey.com>
10524
10525 * symtab.c (find_line_symtab, info_sources_command)
10526 (make_source_files_completion_list): Use objfile_compunits.
10527 * source.c (select_source_symtab): Use objfile_compunits.
10528 * objfiles.h (struct objfile): Update comment.
10529 (ALL_OBJFILES): Remove.
10530 (ALL_FILETABS): Remove.
10531 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10532 objfile_compunits.
10533
d5da8b3c
TT
105342019-01-09 Tom Tromey <tom@tromey.com>
10535
10536 * symmisc.c (print_objfile_statistics, dump_objfile)
10537 (maintenance_print_symbols): Use compunit_filetabs.
10538 * source.c (forget_cached_source_info_for_objfile): Use
10539 compunit_filetabs.
10540 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10541 (ALL_FILETABS): Use compunit_filetabs.
10542 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10543 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10544
5accd1a0
TT
105452019-01-09 Tom Tromey <tom@tromey.com>
10546
10547 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10548 (compunit_filetabs): New.
10549 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10550 compunit_filetabs.
10551 (info_sources_command, make_source_files_completion_list): Remove
10552 declaration.
10553 * symmisc.c (print_objfile_statistics, dump_objfile)
10554 (maintenance_print_symbols): Remove declaration.
10555 (maintenance_info_symtabs): Use compunit_filetabs.
10556 (maintenance_info_line_tables): Likewise.
10557 * source.c (select_source_symtab): Change local variable name.
10558 (forget_cached_source_info_for_objfile): Remove declaration.
10559 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10560 * objfiles.c (objfile_relocate1): Remove declaration.
10561 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10562 declaration.
10563 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10564 * coffread.c (coff_symtab_read): Remove declaration.
10565 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10566 compunit_filetabs.
10567
d8aeb77f
TT
105682019-01-09 Tom Tromey <tom@tromey.com>
10569
10570 * symtab.c (lookup_objfile_from_block)
10571 (find_pc_sect_compunit_symtab, search_symbols)
10572 (default_collect_symbol_completion_matches_break_on): Use
10573 objfile_compunits.
10574 * objfiles.h (ALL_COMPUNITS): Remove.
10575 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10576 * cp-support.c (add_symbol_overload_list_qualified): Use
10577 objfile_compunits.
10578 * ada-lang.c (ada_collect_symbol_completion_matches)
10579 (ada_add_global_exceptions): Use objfile_compunits.
10580
592553c4
TT
105812019-01-09 Tom Tromey <tom@tromey.com>
10582
10583 * source.c (select_source_symtab)
10584 (forget_cached_source_info_for_objfile): Remove declaration.
10585 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10586 declaration.
10587 * maint.c (count_symtabs_and_blocks): Remove declaration.
10588 * cp-support.c (add_symbol_overload_list_qualified): Remove
10589 declaration.
10590 * coffread.c (coff_symtab_read): Remove declaration.
10591 * symtab.c (lookup_symbol_in_objfile_symtabs)
10592 (basic_lookup_transparent_type_1): Use objfile_compunits.
10593 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10594 (info_sources_command, search_symbols)
10595 (default_collect_symbol_completion_matches_break_on)
10596 (make_source_files_completion_list): Remove declaration.
10597 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10598 (ada_collect_symbol_completion_matches)
10599 (ada_add_global_exceptions): Remove declaration.
10600 * linespec.c (iterate_over_all_matching_symtabs): Use
10601 objfile_compunits.
10602 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10603 (class objfile_compunits): New.
10604 (ALL_COMPUNITS): Use objfile_compunits.
10605 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10606 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10607 objfile_compunits.
10608 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10609
5325b9bf
TT
106102019-01-09 Tom Tromey <tom@tromey.com>
10611
10612 * symtab.c (search_symbols)
10613 (default_collect_symbol_completion_matches_break_on): Use
10614 objfile_msymbols.
10615 * ada-lang.c (ada_lookup_simple_minsym)
10616 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10617 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10618 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10619 objfile_msymbols.
10620 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10621 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10622 * objc-lang.c (find_methods): Use objfile_msymbols.
10623 (info_selectors_command, info_classes_command): Likewise.
10624 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10625 * objfiles.h (class objfile_msymbols): New.
10626 (ALL_OBJFILE_MSYMBOLS): Remove.
10627 (ALL_MSYMBOLS): Remove.
10628
cac85af2
TT
106292019-01-09 Tom Tromey <tom@tromey.com>
10630
10631 * common/next-iterator.h (next_adapter): Add Iterator template
10632 parameter.
10633 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10634 (class all_objfiles_safe): New.
10635 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10636 * objfiles.c (put_objfile_before): Update comment.
10637 (add_separate_debug_objfile): Likewise.
10638 (free_all_objfiles): Use all_objfiles_safe.
10639 (objfile_purge_solibs): Likewise.
10640
aed57c53
TT
106412019-01-09 Tom Tromey <tom@tromey.com>
10642
10643 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10644 (expand_symtab_containing_pc, lookup_static_symbol)
10645 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10646 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10647 all_objfiles.
10648 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10649 * breakpoint.c (create_overlay_event_breakpoint)
10650 (create_longjmp_master_breakpoint)
10651 (create_std_terminate_master_breakpoint)
10652 (create_exception_master_breakpoint): Use all_objfiles.
10653 * linux-thread-db.c (try_thread_db_load_from_pdir)
10654 (has_libpthread): Use all_objfiles.
10655 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10656 * linespec.c (iterate_over_all_matching_symtabs)
10657 (search_minsyms_for_name): Use all_objfiles.
10658 * maint.c (maintenance_info_sections): Use all_objfiles.
10659 * main.c (captured_main_1): Use all_objfiles.
10660 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10661 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10662 * guile/scm-pretty-print.c
10663 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10664 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10665 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10666 (maintenance_print_msymbols): Use all_objfiles.
10667 * source.c (select_source_symtab): Use all_objfiles.
10668 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10669 * symfile.c (remove_symbol_file_command)
10670 (expand_symtabs_matching, map_symbol_filenames): Use
10671 all_objfiles.
10672 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10673 all_objfiles.
10674 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10675 * objc-lang.c (find_methods): Use all_objfiles.
10676 * objfiles.c (have_partial_symbols, have_full_symbols)
10677 (have_minimal_symbols, qsort_cmp)
10678 (default_iterate_over_objfiles_in_search_order): Use
10679 all_objfiles.
10680 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10681 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10682 (maintenance_check_psymtabs): Use all_objfiles.
10683 (ALL_PSYMTABS): Remove.
10684 * compile/compile-object-run.c (do_module_cleanup): Use
10685 all_objfiles.
10686 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10687 * cp-support.c (add_symbol_overload_list_qualified): Use
10688 all_objfiles.
10689 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10690 Use all_objfiles.
10691 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10692 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10693 all_objfiles.
10694 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10695 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10696 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10697 Uses all_objfiles.
10698 * solib.c (solib_read_symbols): Use all_objfiles
10699
99d89cde
TT
107002019-01-09 Tom Tromey <tom@tromey.com>
10701
10702 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10703 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10704 all_objfiles.
10705 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10706 * symmisc.c (print_symbol_bcache_statistics)
10707 (print_objfile_statistics, maintenance_print_objfiles)
10708 (maintenance_info_symtabs, maintenance_check_symtabs)
10709 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10710 all_objfiles.
10711 * source.c (forget_cached_source_info): Use all_objfiles.
10712 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10713 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10714 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10715 * objfiles.c (update_section_map): Use all_objfiles.
10716 (shared_objfile_contains_address_p): Likewise.
10717 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10718 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10719
21708325
TT
107202019-01-09 Tom Tromey <tom@tromey.com>
10721
10722 * common/next-iterator.h: New file.
10723 * objfiles.h (class all_objfiles): New.
10724 (struct objfile_iterator): New.
10725
669e09f6
PW
107262019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10727
10728 * NEWS: Move the description of the changed "frame", "select-frame",
10729 and "info frame" commands to the Changed commands section.
10730
041be526
SM
107312019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10732
10733 * gdbtypes.c (check_stub_method_group): Remove handling of old
10734 mangling schemes.
10735 * linespec.c (find_methods): Likewise.
10736 * stabsread.c (read_member_functions): Likewise.
10737 * valops.c (search_struct_method): Likewise.
10738 (value_struct_elt_for_reference): Likewise.
10739 * NEWS: Mention this change.
10740
0e2a2133
AB
107412019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10742
10743 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10744 print_source_lines.
10745 * source.c (print_source_lines_base): Update line number check.
10746 (print_source_lines): New function.
10747 (source_lines_range::source_lines_range): New function.
10748 * source.h (class source_lines_range): New class.
10749 (print_source_lines): New declaration.
10750
1055a3b4
PW
107512019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10752
10753 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10754
cfeadda5
TT
107552019-01-08 Tom Tromey <tom@tromey.com>
10756 Simon Marchi <simon.marchi@ericsson.com>
10757
10758 PR gdb/24060
10759 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10760 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10761 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10762 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10763 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10764 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10765
583068ca
AB
107662019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10767
10768 * source.c (select_source_symtab): Move header comment to
10769 declaration in source.h.
10770 (forget_cached_source_info_for_objfile): Likewise.
10771 (forget_cached_source_info): Likewise.
10772 (identify_source_line): Likewise.
10773 * source.h (identify_source_line): Move declaration from symtab.h
10774 and add comment from source.c
10775 (print_source_lines): Likewise.
10776 (forget_cached_source_info_for_objfile): Likewise.
10777 (forget_cached_source_info): Likewise.
10778 (select_source_symtab): Likewise.
10779 (enum print_source_lines_flag): Move definition from symtab.h.
10780 * symtab.h (identify_source_line): Move declaration to source.h.
10781 (print_source_lines): Likewise.
10782 (forget_cached_source_info_for_objfile): Likewise.
10783 (forget_cached_source_info): Likewise.
10784 (select_source_symtab): Likewise.
10785 (enum print_source_lines_flag): Move definition to source.h.
10786 * tui/tui-hooks.c: Add 'source.h' include.
10787
ec98a4ad
AB
107882019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10789
10790 * source.c (print_source_lines_base): Handle requests to print
10791 reverse line number sequences, and guard against empty lines
10792 string.
10793
62ea19c1
AB
107942019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10795
10796 * source.c (print_source_lines_base): Fix skip of '\r' if next
10797 character is '\n'.
10798
9d30e1fd
TT
107992019-01-06 Tom Tromey <tom@tromey.com>
10800
10801 * c-exp.y (struct c_parse_state) <macro_original_text,
10802 expansion_obstack>: New member.
10803 (macro_original_text, expansion_obstack): Remove globals.
10804 (scan_macro_expansion, scanning_macro_expansion)
10805 (finished_macro_expansion): Update.
10806 (scan_macro_cleanup): Remove.
10807 (yylex, c_parse): Update.
10808
c65bac38
TT
108092019-01-06 Tom Tromey <tom@tromey.com>
10810
10811 * c-exp.y (struct c_parse_state) <strings>: New member.
10812 (operator_stoken): Update.
10813
02e12e38
TT
108142019-01-06 Tom Tromey <tom@tromey.com>
10815
10816 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10817 (union type_stack_elt) <typelist_val>: Now a pointer to
10818 std::vector.
10819 (type_stack_cleanup): Don't declare.
10820 (push_typelist): Update.
10821 * parse.c (pop_typelist): Return a std::vector.
10822 (push_typelist): Take a std::vector.
10823 (follow_types): Update. Do not free args.
10824 (type_stack_cleanup): Remove.
10825 * c-exp.y (struct c_parse_state): New.
10826 (cpstate): New global.
10827 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10828 (nonempty_typelist): Update.
10829 (func_mod): Create a new vector.
10830 (c_parse): Create a c_parse_state.
10831 (check_parameter_typelist): Do not delete params.
10832 (function_method): Update. Do not delete type_list.
10833
f097f5ad
TT
108342019-01-06 Tom Tromey <tom@tromey.com>
10835
10836 PR gdb/28155:
10837 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10838 check_typedef.
10839 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10840 (print_return_value): Likewise.
10841
d2adf9f1
TT
108422019-01-05 Tom Tromey <tom@tromey.com>
10843
10844 * contrib/cleanup_check.py: Remove.
10845 * contrib/gcc-with-excheck: Remove.
10846 * contrib/exsummary.py: Remove.
10847 * contrib/excheck.py: Remove.
10848
2eab46b1
JB
108492019-01-05 Joel Brobecker <brobecker@adacore.com>
10850
10851 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10852 NULL. Initialize tpprev to NULL instead of assigning it
10853 to NULL on the next statement.
10854 * windows-nat.c (windows_delete_thread): Remove check for
10855 main_thread_id before printing thread exit notifications.
10856 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10857 Remove thread ID check against main_thread_id.
10858 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10859 windows_delete_thread.
10860 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10861
48c5e7e2
TT
108622019-01-04 Tom Tromey <tom@tromey.com>
10863
10864 * compile/compile.c (_initialize_compile): Use upper case for
10865 metasyntactic variables.
10866 * symmisc.c (_initialize_symmisc): Use upper case for
10867 metasyntactic variables.
10868 * psymtab.c (_initialize_psymtab): Use upper case for
10869 metasyntactic variables.
10870 * demangle.c (demangle_command): Use upper case for metasyntactic
10871 variables.
10872 (_initialize_demangler): Likewise.
10873 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10874 variables.
10875
986041cd
TT
108762019-01-03 Tom Tromey <tom@tromey.com>
10877
10878 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10879
7c711119
TT
108802019-01-03 Tom Tromey <tom@tromey.com>
10881
10882 * python/py-symtab.c (salpy_str): Update.
10883 (struct salpy_sal_object) <symtab>: Now a PyObject.
10884 (salpy_dealloc): Update.
10885 (del_objfile_sal): Use gdbpy_ref.
10886
1b20edf0
TT
108872019-01-03 Tom Tromey <tom@tromey.com>
10888
10889 * python/py-type.c (convert_field): Use new_reference. Return
10890 gdbpy_ref.
10891 (make_fielditem): Return gdbpy_ref.
10892 (typy_fields): Update.
10893 (typy_getitem): Update.
10894 (field_name): Return gdbpy_ref. Use new_reference.
10895 (typy_iterator_iternext): Update.
10896
ea41325b
TT
108972019-01-03 Tom Tromey <tom@tromey.com>
10898
10899 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10900
2a3c71d6
TT
109012019-01-03 Tom Tromey <tom@tromey.com>
10902
10903 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10904 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10905 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10906 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10907 (pspy_set_type_printers): Likewise.
10908 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10909 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10910 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10911 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10912 (objfpy_set_type_printers): Likewise.
10913
5c329e6a
TT
109142019-01-03 Tom Tromey <tom@tromey.com>
10915
10916 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10917 (gdbpy_print_stack): Use gdbpy_err_fetch.
10918 * python/python-internal.h (class gdbpy_err_fetch): New class.
10919 (class gdbpy_enter) <m_error_type, m_error_value,
10920 m_error_traceback>: Remove.
10921 <m_error>: New member.
10922 (gdbpy_exception_to_string): Don't declare.
10923 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
10924 * python/py-value.c (convert_value_from_python): Use
10925 gdbpy_err_fetch.
10926 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
10927 gdbpy_exception_to_string.
10928 (gdbpy_handle_exception): Use gdbpy_err_fetch.
10929 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
10930 gdbpy_err_fetch.
10931
169bb27b
AB
109322019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10933
10934 * linux-nat.c (delete_lwp_cleanup): Delete.
10935 (struct lwp_deleter): New struct.
10936 (lwp_info_up): New typedef.
10937 (linux_nat_target::follow_fork): Delete cleanup, and make use of
10938 lwp_info_up.
10939
a07c8880
AB
109402019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10941
10942 * linux-fork.c (class scoped_switch_fork_info): New class.
10943 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
10944
26089c49
AB
109452019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10946
10947 * valops.c (find_overload_match): Remove use of null_cleanup, and
10948 calls to do_cleanups.
10949
06d3e5b0
AB
109502019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 * compile/compile-cplus-types.c
10953 (compile_cplus_instance::decl_name): Handle changes to
10954 cp_func_name.
10955 * cp-support.c (cp_func_name): Update header comment, update
10956 return type.
10957 * cp-support.h (cp_func_name): Update return type in declaration.
10958 * valops.c (find_overload_match): Move temp_func local to top
10959 level of function and change its type. Use temp_func to hold and
10960 delete temporary string obtained from cp_func_name.
10961
66644cd3
AB
109622019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10963
10964 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
10965 gdb::char_vector, remove cleanup, and update uses of `msg`.
10966
592d8c0a
JW
109672019-01-03 Jim Wilson <jimw@sifive.com>
10968
10969 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
10970
c55d06ec
TT
109712019-01-02 Tom Tromey <tom@tromey.com>
10972
10973 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
10974 (tdesc_parse_xml): Remove cleanups.
10975 * target-descriptions.h (make_cleanup_free_target_description):
10976 Don't declare.
10977 (target_desc_deleter): New struct.
10978 (target_desc_up): New typedef.
10979 * target-descriptions.c (target_desc_deleter::operator()): Rename
10980 from free_target_description.
10981 (make_cleanup_free_target_description): Remove.
10982
3a6ae42d
TT
109832019-01-02 Tom Tromey <tom@tromey.com>
10984
10985 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
10986 constructor, destructor.
10987 (linespec_parser): Remove typedef.
10988 (~linespec_parser): Rename from linespec_parser_delete.
10989 (linespec_lex_to_end, linespec_complete_label)
10990 (linespec_complete): Update.
10991 (decode_line_full): Remove cleanups.
10992 (decode_line_1): Update.
10993
61fd3e73
TT
109942019-01-02 Tom Tromey <tom@tromey.com>
10995
10996 * python/python-internal.h (inferior_to_inferior_object): Change
10997 return type.
10998 * python/py-exitedevent.c (create_exited_event_object): Update.
10999 * python/py-inferior.c (inferior_to_inferior_object): Return
11000 gdbpy_ref.
11001 (python_new_inferior, python_inferior_deleted)
11002 (thread_to_thread_object, delete_thread_object)
11003 (build_inferior_list, gdbpy_selected_inferior): Update.
11004 * python/py-infthread.c (create_thread_object): Update. Also fail
11005 if inferior_to_inferior_object fails.
11006
d20172fc
SM
110072019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11008
11009 * inferior.h (class inferior) <displaced_step_state>: New field.
11010 * infrun.h (struct displaced_step_state): Move here from
11011 infrun.c. Initialize fields, add constructor.
11012 <inf>: Remove field.
11013 <reset>: New method.
11014 * infrun.c (struct displaced_step_inferior_state): Move to
11015 infrun.h.
11016 (displaced_step_inferior_states): Remove.
11017 (get_displaced_stepping_state): Adust.
11018 (displaced_step_in_progress_any_inferior): Adjust.
11019 (displaced_step_in_progress_thread): Adjust.
11020 (displaced_step_in_progress): Adjust.
11021 (add_displaced_stepping_state): Remove.
11022 (get_displaced_step_closure_by_addr): Adjust.
11023 (remove_displaced_stepping_state): Remove.
11024 (infrun_inferior_exit): Call displaced_step_state.reset.
11025 (use_displaced_stepping): Don't check for NULL.
11026 (displaced_step_prepare_throw): Call
11027 get_displaced_stepping_state.
11028 (displaced_step_fixup): Don't check for NULL.
11029 (prepare_for_detach): Don't check for NULL.
11030
e3319240
PW
110312019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11032
11033 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11034 in case of call that did not complete.
11035
5d36dfb9
AU
110362019-01-02 Andrey Utkin <autkin@undo.io>
11037
11038 * symfile.c (find_separate_debug_file): Fix search of debug files for
11039 remote debuggee.
11040
8833fbf0
TT
110412019-01-02 Tom Tromey <tom@tromey.com>
11042
11043 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11044 indentation.
11045 * python/py-frame.c (frapy_older): Remove cast.
11046 (frapy_newer): Likewise.
11047 * python/py-breakpoint.c (local_setattro): Remove cast.
11048 * python/py-arch.c (archpy_name): Remove local variable.
11049 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11050
4ada3dfd
JB
110512019-01-02 Joel Brobecker <brobecker@adacore.com>
11052
11053 * unittests/basic_string_view/element_access/char/empty.cc:
11054 Fix year range in copyright header.
11055
113b7b81
AB
110562019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11057
11058 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11059 Delete.
11060 <operator==>: Update with for removed field.
11061 <hash>: Likewise.
11062 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11063 <isa_features>: ...this.
11064 <abi_features>: New field.
11065 (riscv_isa_flen): Update comment.
11066 (riscv_abi_xlen): New declaration.
11067 (riscv_abi_flen): New declaration.
11068 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11069 isa_features.
11070 (riscv_abi_xlen): New function.
11071 (riscv_isa_flen): Update to get answer from isa_features.
11072 (riscv_abi_flen): New function.
11073 (riscv_has_fp_abi): Update to get answer from abi_features.
11074 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11075 xlen and flen.
11076 (riscv_call_info) <xlen, flen>: Update comment.
11077 (riscv_call_arg_struct): Remove invalid assertions
11078 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11079 is removed.
11080 (riscv_gdbarch_init): Gather isa features and abi features
11081 separately, ensure both match on the gdbarch when reusing an old
11082 gdbarch. Relax an error check to allow 32-bit abi float to run on
11083 a target with 64-bit float hardware.
11084
b18ca514
PW
110852019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11086
11087 * source.c (search_command_helper): Stop reverse search
11088 when line 1 has been searched.
11089
ec70d8db
PW
110902019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11091
11092 * record-full.c (record_full_base_target::close): Rewrite
11093 record_full_core_buf_list free logic.
11094
5b38f9c1
PW
110952019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11096
11097 * break-catch-syscall.c (print_one_catch_syscall): xfree
11098 the last text.
11099
66d91b39
JB
111002019-01-01 Joel Brobecker <brobecker@adacore.com>
11101
11102 * top.c (print_gdb_version): Update Copyright year in version
11103 message.
11104
42a4f53d
JB
111052019-01-01 Joel Brobecker <brobecker@adacore.com>
11106
11107 Update copyright year range in all GDB files.
11108
7e955d83 111092019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11110
5bbd631d 11111 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11112
5bbd631d 11113For older changes see ChangeLog-2018.
c906108c
SS
11114\f
11115Local Variables:
11116mode: change-log
11117left-margin: 8
11118fill-column: 74
11119version-control: never
57da7796 11120coding: utf-8
c906108c 11121End:
5bbd631d 11122
This page took 3.320479 seconds and 4 git commands to generate.